1 ##############################################################################
2 # Copyright (c) 2015 Orange
3 # guyrodrigue.koffi@orange.com / koffirodrigue@gmail.com
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 from opnfv_testapi.models import base_models
10 from opnfv_testapi.tornado_swagger import swagger
13 # name: name of the POD e.g. zte-1
14 # mode: metal or virtual
16 # role: ci-pod or community-pod or single-node
20 class PodCreateRequest(base_models.ModelBase):
21 def __init__(self, name, mode='', details='', role=""):
24 self.details = details
29 class Pod(base_models.ModelBase):
31 name='', mode='', details='',
32 role="", _id='', create_date='', owner=''):
35 self.details = details
38 self.creation_date = create_date
43 class Pods(base_models.ModelBase):
46 @ptype pods: C{list} of L{Pod}