Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions samples/client/petstore/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ Class | Method | HTTP request | Description
- [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- [ArrayTest](docs/ArrayTest.md)
- [Capitalization](docs/Capitalization.md)
- [Cat](docs/Cat.md)
- [Category](docs/Category.md)
- [ClassModel](docs/ClassModel.md)
Expand Down
15 changes: 15 additions & 0 deletions samples/client/petstore/python/docs/Capitalization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Capitalization

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**small_camel** | **str** | | [optional]
**capital_camel** | **str** | | [optional]
**small_snake** | **str** | | [optional]
**capital_snake** | **str** | | [optional]
**sca_eth_flow_points** | **str** | | [optional]
**att_name** | **str** | Name of the pet | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


1 change: 1 addition & 0 deletions samples/client/petstore/python/petstore_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from .models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly
from .models.array_of_number_only import ArrayOfNumberOnly
from .models.array_test import ArrayTest
from .models.capitalization import Capitalization
from .models.cat import Cat
from .models.category import Category
from .models.class_model import ClassModel
Expand Down
2 changes: 0 additions & 2 deletions samples/client/petstore/python/petstore_api/apis/store_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ def delete_order_with_http_info(self, order_id, **kwargs):
if ('order_id' not in params) or (params['order_id'] is None):
raise ValueError("Missing the required parameter `order_id` when calling `delete_order`")

if 'order_id' in params and params['order_id'] < 1.0:
raise ValueError("Invalid value for parameter `order_id` when calling `delete_order`, must be a value greater than or equal to `1.0`")

collection_formats = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from .array_of_array_of_number_only import ArrayOfArrayOfNumberOnly
from .array_of_number_only import ArrayOfNumberOnly
from .array_test import ArrayTest
from .capitalization import Capitalization
from .cat import Cat
from .category import Category
from .class_model import ClassModel
Expand Down
234 changes: 234 additions & 0 deletions samples/client/petstore/python/petstore_api/models/capitalization.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
# coding: utf-8

"""
Swagger Petstore

This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\

OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from pprint import pformat
from six import iteritems
import re


class Capitalization(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
def __init__(self, small_camel=None, capital_camel=None, small_snake=None, capital_snake=None, sca_eth_flow_points=None, att_name=None):
"""
Capitalization - a model defined in Swagger

:param dict swaggerTypes: The key is attribute name
and the value is attribute type.
:param dict attributeMap: The key is attribute name
and the value is json key in definition.
"""
self.swagger_types = {
'small_camel': 'str',
'capital_camel': 'str',
'small_snake': 'str',
'capital_snake': 'str',
'sca_eth_flow_points': 'str',
'att_name': 'str'
}

self.attribute_map = {
'small_camel': 'smallCamel',
'capital_camel': 'CapitalCamel',
'small_snake': 'small_Snake',
'capital_snake': 'Capital_Snake',
'sca_eth_flow_points': 'SCA_ETH_Flow_Points',
'att_name': 'ATT_NAME'
}

self._small_camel = small_camel
self._capital_camel = capital_camel
self._small_snake = small_snake
self._capital_snake = capital_snake
self._sca_eth_flow_points = sca_eth_flow_points
self._att_name = att_name

@property
def small_camel(self):
"""
Gets the small_camel of this Capitalization.

:return: The small_camel of this Capitalization.
:rtype: str
"""
return self._small_camel

@small_camel.setter
def small_camel(self, small_camel):
"""
Sets the small_camel of this Capitalization.

:param small_camel: The small_camel of this Capitalization.
:type: str
"""

self._small_camel = small_camel

@property
def capital_camel(self):
"""
Gets the capital_camel of this Capitalization.

:return: The capital_camel of this Capitalization.
:rtype: str
"""
return self._capital_camel

@capital_camel.setter
def capital_camel(self, capital_camel):
"""
Sets the capital_camel of this Capitalization.

:param capital_camel: The capital_camel of this Capitalization.
:type: str
"""

self._capital_camel = capital_camel

@property
def small_snake(self):
"""
Gets the small_snake of this Capitalization.

:return: The small_snake of this Capitalization.
:rtype: str
"""
return self._small_snake

@small_snake.setter
def small_snake(self, small_snake):
"""
Sets the small_snake of this Capitalization.

:param small_snake: The small_snake of this Capitalization.
:type: str
"""

self._small_snake = small_snake

@property
def capital_snake(self):
"""
Gets the capital_snake of this Capitalization.

:return: The capital_snake of this Capitalization.
:rtype: str
"""
return self._capital_snake

@capital_snake.setter
def capital_snake(self, capital_snake):
"""
Sets the capital_snake of this Capitalization.

:param capital_snake: The capital_snake of this Capitalization.
:type: str
"""

self._capital_snake = capital_snake

@property
def sca_eth_flow_points(self):
"""
Gets the sca_eth_flow_points of this Capitalization.

:return: The sca_eth_flow_points of this Capitalization.
:rtype: str
"""
return self._sca_eth_flow_points

@sca_eth_flow_points.setter
def sca_eth_flow_points(self, sca_eth_flow_points):
"""
Sets the sca_eth_flow_points of this Capitalization.

:param sca_eth_flow_points: The sca_eth_flow_points of this Capitalization.
:type: str
"""

self._sca_eth_flow_points = sca_eth_flow_points

@property
def att_name(self):
"""
Gets the att_name of this Capitalization.
Name of the pet

:return: The att_name of this Capitalization.
:rtype: str
"""
return self._att_name

@att_name.setter
def att_name(self, att_name):
"""
Sets the att_name of this Capitalization.
Name of the pet

:param att_name: The att_name of this Capitalization.
:type: str
"""

self._att_name = att_name

def to_dict(self):
"""
Returns the model properties as a dict
"""
result = {}

for attr, _ in iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value

return result

def to_str(self):
"""
Returns the string representation of the model
"""
return pformat(self.to_dict())

def __repr__(self):
"""
For `print` and `pprint`
"""
return self.to_str()

def __eq__(self, other):
"""
Returns true if both objects are equal
"""
return self.__dict__ == other.__dict__

def __ne__(self, other):
"""
Returns true if both objects are not equal
"""
return not self == other
2 changes: 1 addition & 1 deletion samples/client/petstore/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
certifi >= 14.05.14
six == 1.8.0
six >= 1.10
python_dateutil >= 2.5.3
setuptools >= 21.0.0
urllib3 >= 1.15.1
Loading