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
14 class ProjectCreateRequest(base_models.ModelBase):
15 def __init__(self, name, description=''):
17 self.description = description
21 class ProjectUpdateRequest(base_models.ModelBase):
22 def __init__(self, name='', description=''):
24 self.description = description
28 class Project(base_models.ModelBase):
30 name=None, _id=None, description=None, create_date=None):
33 self.description = description
34 self.creation_date = create_date
38 class Projects(base_models.ModelBase):
41 @ptype projects: C{list} of L{Project}
44 self.projects = list()
48 return {'projects': Project}