mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 16:12:49 +00:00
moved to client folder
This commit is contained in:
32
samples/client/petstore/python3/models/Category.py
Normal file
32
samples/client/petstore/python3/models/Category.py
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
Copyright 2012 Wordnik, Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
"""
|
||||
class Category:
|
||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
||||
Do not edit the class manually."""
|
||||
|
||||
|
||||
def __init__(self):
|
||||
self.swaggerTypes = {
|
||||
'id': 'int',
|
||||
'name': 'str'
|
||||
|
||||
}
|
||||
|
||||
|
||||
self.id = None # int
|
||||
self.name = None # str
|
||||
|
||||
39
samples/client/petstore/python3/models/Order.py
Normal file
39
samples/client/petstore/python3/models/Order.py
Normal file
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
Copyright 2012 Wordnik, Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
"""
|
||||
class Order:
|
||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
||||
Do not edit the class manually."""
|
||||
|
||||
|
||||
def __init__(self):
|
||||
self.swaggerTypes = {
|
||||
'id': 'int',
|
||||
'petId': 'int',
|
||||
'status': 'str',
|
||||
'quantity': 'int',
|
||||
'shipDate': 'datetime'
|
||||
|
||||
}
|
||||
|
||||
|
||||
self.id = None # int
|
||||
self.petId = None # int
|
||||
#Order Status
|
||||
self.status = None # str
|
||||
self.quantity = None # int
|
||||
self.shipDate = None # datetime
|
||||
|
||||
41
samples/client/petstore/python3/models/Pet.py
Normal file
41
samples/client/petstore/python3/models/Pet.py
Normal file
@@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
Copyright 2012 Wordnik, Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
"""
|
||||
class Pet:
|
||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
||||
Do not edit the class manually."""
|
||||
|
||||
|
||||
def __init__(self):
|
||||
self.swaggerTypes = {
|
||||
'id': 'int',
|
||||
'tags': 'list[Tag]',
|
||||
'category': 'Category',
|
||||
'status': 'str',
|
||||
'name': 'str',
|
||||
'photoUrls': 'list[str]'
|
||||
|
||||
}
|
||||
|
||||
|
||||
self.id = None # int
|
||||
self.tags = None # list[Tag]
|
||||
self.category = None # Category
|
||||
#pet status in the store
|
||||
self.status = None # str
|
||||
self.name = None # str
|
||||
self.photoUrls = None # list[str]
|
||||
|
||||
32
samples/client/petstore/python3/models/Tag.py
Normal file
32
samples/client/petstore/python3/models/Tag.py
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
Copyright 2012 Wordnik, Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
"""
|
||||
class Tag:
|
||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
||||
Do not edit the class manually."""
|
||||
|
||||
|
||||
def __init__(self):
|
||||
self.swaggerTypes = {
|
||||
'id': 'int',
|
||||
'name': 'str'
|
||||
|
||||
}
|
||||
|
||||
|
||||
self.id = None # int
|
||||
self.name = None # str
|
||||
|
||||
45
samples/client/petstore/python3/models/User.py
Normal file
45
samples/client/petstore/python3/models/User.py
Normal file
@@ -0,0 +1,45 @@
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
Copyright 2012 Wordnik, Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
"""
|
||||
class User:
|
||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
||||
Do not edit the class manually."""
|
||||
|
||||
|
||||
def __init__(self):
|
||||
self.swaggerTypes = {
|
||||
'id': 'int',
|
||||
'lastName': 'str',
|
||||
'username': 'str',
|
||||
'phone': 'str',
|
||||
'email': 'str',
|
||||
'userStatus': 'int',
|
||||
'firstName': 'str',
|
||||
'password': 'str'
|
||||
|
||||
}
|
||||
|
||||
|
||||
self.id = None # int
|
||||
self.lastName = None # str
|
||||
self.username = None # str
|
||||
self.phone = None # str
|
||||
self.email = None # str
|
||||
#User Status
|
||||
self.userStatus = None # int
|
||||
self.firstName = None # str
|
||||
self.password = None # str
|
||||
|
||||
10
samples/client/petstore/python3/models/__init__.py
Normal file
10
samples/client/petstore/python3/models/__init__.py
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env python
|
||||
"""Add all of the modules in the current directory to __all__"""
|
||||
import os
|
||||
|
||||
__all__ = []
|
||||
|
||||
for module in os.listdir(os.path.dirname(__file__)):
|
||||
if module != '__init__.py' and module[-3:] == '.py':
|
||||
__all__.append(module[:-3])
|
||||
|
||||
Reference in New Issue
Block a user