[python] fix #8404: avoid shadowing the name Endpoint (#8405)

if a type was named Endpoint, its import for use in the api would shadow
the name Endpoint for the internal utility
This commit is contained in:
Ronny Pfannschmidt
2021-01-13 17:38:41 +01:00
committed by GitHub
parent 008ddfb1ef
commit 6b6d1b1a97
16 changed files with 107 additions and 107 deletions

View File

@@ -3,7 +3,7 @@
import re # noqa: F401
import sys # noqa: F401
from {{packageName}}.api_client import ApiClient, Endpoint
from {{packageName}}.api_client import ApiClient, Endpoint as _Endpoint
from {{packageName}}.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -125,7 +125,7 @@ class {{classname}}(object):
{{/requiredParams}}
return self.call_with_http_info(**kwargs)
self.{{operationId}} = Endpoint(
self.{{operationId}} = _Endpoint(
settings={
'response_type': {{#returnType}}({{{returnType}}},){{/returnType}}{{^returnType}}None{{/returnType}},
{{#authMethods}}

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from petstore_api.api_client import ApiClient, Endpoint
from petstore_api.api_client import ApiClient, Endpoint as _Endpoint
from petstore_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -102,7 +102,7 @@ class AnotherFakeApi(object):
body
return self.call_with_http_info(**kwargs)
self.call_123_test_special_tags = Endpoint(
self.call_123_test_special_tags = _Endpoint(
settings={
'response_type': (Client,),
'auth': [],

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from petstore_api.api_client import ApiClient, Endpoint
from petstore_api.api_client import ApiClient, Endpoint as _Endpoint
from petstore_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -105,7 +105,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.array_model = Endpoint(
self.array_model = _Endpoint(
settings={
'response_type': (AnimalFarm,),
'auth': [],
@@ -215,7 +215,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.boolean = Endpoint(
self.boolean = _Endpoint(
settings={
'response_type': (bool,),
'auth': [],
@@ -329,7 +329,7 @@ class FakeApi(object):
xml_item
return self.call_with_http_info(**kwargs)
self.create_xml_item = Endpoint(
self.create_xml_item = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -446,7 +446,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.number_with_validations = Endpoint(
self.number_with_validations = _Endpoint(
settings={
'response_type': (NumberWithValidations,),
'auth': [],
@@ -556,7 +556,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.object_model_with_ref_props = Endpoint(
self.object_model_with_ref_props = _Endpoint(
settings={
'response_type': (ObjectModelWithRefProps,),
'auth': [],
@@ -666,7 +666,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.string = Endpoint(
self.string = _Endpoint(
settings={
'response_type': (str,),
'auth': [],
@@ -776,7 +776,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.string_enum = Endpoint(
self.string_enum = _Endpoint(
settings={
'response_type': (StringEnum,),
'auth': [],
@@ -890,7 +890,7 @@ class FakeApi(object):
body
return self.call_with_http_info(**kwargs)
self.test_body_with_file_schema = Endpoint(
self.test_body_with_file_schema = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -1009,7 +1009,7 @@ class FakeApi(object):
body
return self.call_with_http_info(**kwargs)
self.test_body_with_query_params = Endpoint(
self.test_body_with_query_params = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -1131,7 +1131,7 @@ class FakeApi(object):
body
return self.call_with_http_info(**kwargs)
self.test_client_model = Endpoint(
self.test_client_model = _Endpoint(
settings={
'response_type': (Client,),
'auth': [],
@@ -1265,7 +1265,7 @@ class FakeApi(object):
header_number
return self.call_with_http_info(**kwargs)
self.test_endpoint_enums_length_one = Endpoint(
self.test_endpoint_enums_length_one = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -1451,7 +1451,7 @@ class FakeApi(object):
byte
return self.call_with_http_info(**kwargs)
self.test_endpoint_parameters = Endpoint(
self.test_endpoint_parameters = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -1690,7 +1690,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.test_enum_parameters = Endpoint(
self.test_enum_parameters = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -1905,7 +1905,7 @@ class FakeApi(object):
required_int64_group
return self.call_with_http_info(**kwargs)
self.test_group_parameters = Endpoint(
self.test_group_parameters = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -2046,7 +2046,7 @@ class FakeApi(object):
param
return self.call_with_http_info(**kwargs)
self.test_inline_additional_properties = Endpoint(
self.test_inline_additional_properties = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -2165,7 +2165,7 @@ class FakeApi(object):
param2
return self.call_with_http_info(**kwargs)
self.test_json_form_data = Endpoint(
self.test_json_form_data = _Endpoint(
settings={
'response_type': None,
'auth': [],

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from petstore_api.api_client import ApiClient, Endpoint
from petstore_api.api_client import ApiClient, Endpoint as _Endpoint
from petstore_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -102,7 +102,7 @@ class FakeClassnameTags123Api(object):
body
return self.call_with_http_info(**kwargs)
self.test_classname = Endpoint(
self.test_classname = _Endpoint(
settings={
'response_type': (Client,),
'auth': [

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from petstore_api.api_client import ApiClient, Endpoint
from petstore_api.api_client import ApiClient, Endpoint as _Endpoint
from petstore_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -102,7 +102,7 @@ class PetApi(object):
body
return self.call_with_http_info(**kwargs)
self.add_pet = Endpoint(
self.add_pet = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -221,7 +221,7 @@ class PetApi(object):
pet_id
return self.call_with_http_info(**kwargs)
self.delete_pet = Endpoint(
self.delete_pet = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -343,7 +343,7 @@ class PetApi(object):
status
return self.call_with_http_info(**kwargs)
self.find_pets_by_status = Endpoint(
self.find_pets_by_status = _Endpoint(
settings={
'response_type': ([Pet],),
'auth': [
@@ -471,7 +471,7 @@ class PetApi(object):
tags
return self.call_with_http_info(**kwargs)
self.find_pets_by_tags = Endpoint(
self.find_pets_by_tags = _Endpoint(
settings={
'response_type': ([Pet],),
'auth': [
@@ -592,7 +592,7 @@ class PetApi(object):
pet_id
return self.call_with_http_info(**kwargs)
self.get_pet_by_id = Endpoint(
self.get_pet_by_id = _Endpoint(
settings={
'response_type': (Pet,),
'auth': [
@@ -711,7 +711,7 @@ class PetApi(object):
body
return self.call_with_http_info(**kwargs)
self.update_pet = Endpoint(
self.update_pet = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -831,7 +831,7 @@ class PetApi(object):
pet_id
return self.call_with_http_info(**kwargs)
self.update_pet_with_form = Endpoint(
self.update_pet_with_form = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -962,7 +962,7 @@ class PetApi(object):
pet_id
return self.call_with_http_info(**kwargs)
self.upload_file = Endpoint(
self.upload_file = _Endpoint(
settings={
'response_type': (ApiResponse,),
'auth': [
@@ -1103,7 +1103,7 @@ class PetApi(object):
required_file
return self.call_with_http_info(**kwargs)
self.upload_file_with_required_file = Endpoint(
self.upload_file_with_required_file = _Endpoint(
settings={
'response_type': (ApiResponse,),
'auth': [

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from petstore_api.api_client import ApiClient, Endpoint
from petstore_api.api_client import ApiClient, Endpoint as _Endpoint
from petstore_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -102,7 +102,7 @@ class StoreApi(object):
order_id
return self.call_with_http_info(**kwargs)
self.delete_order = Endpoint(
self.delete_order = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -212,7 +212,7 @@ class StoreApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.get_inventory = Endpoint(
self.get_inventory = _Endpoint(
settings={
'response_type': ({str: (int,)},),
'auth': [
@@ -324,7 +324,7 @@ class StoreApi(object):
order_id
return self.call_with_http_info(**kwargs)
self.get_order_by_id = Endpoint(
self.get_order_by_id = _Endpoint(
settings={
'response_type': (Order,),
'auth': [],
@@ -447,7 +447,7 @@ class StoreApi(object):
body
return self.call_with_http_info(**kwargs)
self.place_order = Endpoint(
self.place_order = _Endpoint(
settings={
'response_type': (Order,),
'auth': [],

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from petstore_api.api_client import ApiClient, Endpoint
from petstore_api.api_client import ApiClient, Endpoint as _Endpoint
from petstore_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -102,7 +102,7 @@ class UserApi(object):
body
return self.call_with_http_info(**kwargs)
self.create_user = Endpoint(
self.create_user = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -215,7 +215,7 @@ class UserApi(object):
body
return self.call_with_http_info(**kwargs)
self.create_users_with_array_input = Endpoint(
self.create_users_with_array_input = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -328,7 +328,7 @@ class UserApi(object):
body
return self.call_with_http_info(**kwargs)
self.create_users_with_list_input = Endpoint(
self.create_users_with_list_input = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -442,7 +442,7 @@ class UserApi(object):
username
return self.call_with_http_info(**kwargs)
self.delete_user = Endpoint(
self.delete_user = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -556,7 +556,7 @@ class UserApi(object):
username
return self.call_with_http_info(**kwargs)
self.get_user_by_name = Endpoint(
self.get_user_by_name = _Endpoint(
settings={
'response_type': (User,),
'auth': [],
@@ -677,7 +677,7 @@ class UserApi(object):
password
return self.call_with_http_info(**kwargs)
self.login_user = Endpoint(
self.login_user = _Endpoint(
settings={
'response_type': (str,),
'auth': [],
@@ -795,7 +795,7 @@ class UserApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.logout_user = Endpoint(
self.logout_user = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -907,7 +907,7 @@ class UserApi(object):
body
return self.call_with_http_info(**kwargs)
self.update_user = Endpoint(
self.update_user = _Endpoint(
settings={
'response_type': None,
'auth': [],

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from x_auth_id_alias.api_client import ApiClient, Endpoint
from x_auth_id_alias.api_client import ApiClient, Endpoint as _Endpoint
from x_auth_id_alias.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -96,7 +96,7 @@ class UsageApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.any_key = Endpoint(
self.any_key = _Endpoint(
settings={
'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'auth': [
@@ -204,7 +204,7 @@ class UsageApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.both_keys = Endpoint(
self.both_keys = _Endpoint(
settings={
'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'auth': [
@@ -312,7 +312,7 @@ class UsageApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.key_in_header = Endpoint(
self.key_in_header = _Endpoint(
settings={
'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'auth': [
@@ -419,7 +419,7 @@ class UsageApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.key_in_query = Endpoint(
self.key_in_query = _Endpoint(
settings={
'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'auth': [

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from dynamic_servers.api_client import ApiClient, Endpoint
from dynamic_servers.api_client import ApiClient, Endpoint as _Endpoint
from dynamic_servers.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -96,7 +96,7 @@ class UsageApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.custom_server = Endpoint(
self.custom_server = _Endpoint(
settings={
'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'auth': [],
@@ -250,7 +250,7 @@ class UsageApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.default_server = Endpoint(
self.default_server = _Endpoint(
settings={
'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'auth': [],

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from petstore_api.api_client import ApiClient, Endpoint
from petstore_api.api_client import ApiClient, Endpoint as _Endpoint
from petstore_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -102,7 +102,7 @@ class AnotherFakeApi(object):
client
return self.call_with_http_info(**kwargs)
self.call_123_test_special_tags = Endpoint(
self.call_123_test_special_tags = _Endpoint(
settings={
'response_type': (Client,),
'auth': [],

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from petstore_api.api_client import ApiClient, Endpoint
from petstore_api.api_client import ApiClient, Endpoint as _Endpoint
from petstore_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -96,7 +96,7 @@ class DefaultApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.foo_get = Endpoint(
self.foo_get = _Endpoint(
settings={
'response_type': (InlineResponseDefault,),
'auth': [],

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from petstore_api.api_client import ApiClient, Endpoint
from petstore_api.api_client import ApiClient, Endpoint as _Endpoint
from petstore_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -109,7 +109,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.additional_properties_with_array_of_enums = Endpoint(
self.additional_properties_with_array_of_enums = _Endpoint(
settings={
'response_type': (AdditionalPropertiesWithArrayOfEnums,),
'auth': [],
@@ -221,7 +221,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.array_model = Endpoint(
self.array_model = _Endpoint(
settings={
'response_type': (AnimalFarm,),
'auth': [],
@@ -332,7 +332,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.array_of_enums = Endpoint(
self.array_of_enums = _Endpoint(
settings={
'response_type': (ArrayOfEnums,),
'auth': [],
@@ -444,7 +444,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.boolean = Endpoint(
self.boolean = _Endpoint(
settings={
'response_type': (bool,),
'auth': [],
@@ -556,7 +556,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.composed_one_of_number_with_validations = Endpoint(
self.composed_one_of_number_with_validations = _Endpoint(
settings={
'response_type': (ComposedOneOfNumberWithValidations,),
'auth': [],
@@ -667,7 +667,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.enum_test = Endpoint(
self.enum_test = _Endpoint(
settings={
'response_type': (EnumTest,),
'auth': [],
@@ -777,7 +777,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.fake_health_get = Endpoint(
self.fake_health_get = _Endpoint(
settings={
'response_type': (HealthCheckResult,),
'auth': [],
@@ -887,7 +887,7 @@ class FakeApi(object):
mammal
return self.call_with_http_info(**kwargs)
self.mammal = Endpoint(
self.mammal = _Endpoint(
settings={
'response_type': (Mammal,),
'auth': [],
@@ -1001,7 +1001,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.number_with_validations = Endpoint(
self.number_with_validations = _Endpoint(
settings={
'response_type': (NumberWithValidations,),
'auth': [],
@@ -1113,7 +1113,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.object_model_with_ref_props = Endpoint(
self.object_model_with_ref_props = _Endpoint(
settings={
'response_type': (ObjectModelWithRefProps,),
'auth': [],
@@ -1225,7 +1225,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.string = Endpoint(
self.string = _Endpoint(
settings={
'response_type': (str,),
'auth': [],
@@ -1337,7 +1337,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.string_enum = Endpoint(
self.string_enum = _Endpoint(
settings={
'response_type': (StringEnum,),
'auth': [],
@@ -1454,7 +1454,7 @@ class FakeApi(object):
file_schema_test_class
return self.call_with_http_info(**kwargs)
self.test_body_with_file_schema = Endpoint(
self.test_body_with_file_schema = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -1573,7 +1573,7 @@ class FakeApi(object):
user
return self.call_with_http_info(**kwargs)
self.test_body_with_query_params = Endpoint(
self.test_body_with_query_params = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -1695,7 +1695,7 @@ class FakeApi(object):
client
return self.call_with_http_info(**kwargs)
self.test_client_model = Endpoint(
self.test_client_model = _Endpoint(
settings={
'response_type': (Client,),
'auth': [],
@@ -1835,7 +1835,7 @@ class FakeApi(object):
byte
return self.call_with_http_info(**kwargs)
self.test_endpoint_parameters = Endpoint(
self.test_endpoint_parameters = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -2074,7 +2074,7 @@ class FakeApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.test_enum_parameters = Endpoint(
self.test_enum_parameters = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -2289,7 +2289,7 @@ class FakeApi(object):
required_int64_group
return self.call_with_http_info(**kwargs)
self.test_group_parameters = Endpoint(
self.test_group_parameters = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -2432,7 +2432,7 @@ class FakeApi(object):
request_body
return self.call_with_http_info(**kwargs)
self.test_inline_additional_properties = Endpoint(
self.test_inline_additional_properties = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -2551,7 +2551,7 @@ class FakeApi(object):
param2
return self.call_with_http_info(**kwargs)
self.test_json_form_data = Endpoint(
self.test_json_form_data = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -2690,7 +2690,7 @@ class FakeApi(object):
context
return self.call_with_http_info(**kwargs)
self.test_query_parameter_collection_format = Endpoint(
self.test_query_parameter_collection_format = _Endpoint(
settings={
'response_type': None,
'auth': [],

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from petstore_api.api_client import ApiClient, Endpoint
from petstore_api.api_client import ApiClient, Endpoint as _Endpoint
from petstore_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -102,7 +102,7 @@ class FakeClassnameTags123Api(object):
client
return self.call_with_http_info(**kwargs)
self.test_classname = Endpoint(
self.test_classname = _Endpoint(
settings={
'response_type': (Client,),
'auth': [

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from petstore_api.api_client import ApiClient, Endpoint
from petstore_api.api_client import ApiClient, Endpoint as _Endpoint
from petstore_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -102,7 +102,7 @@ class PetApi(object):
pet
return self.call_with_http_info(**kwargs)
self.add_pet = Endpoint(
self.add_pet = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -231,7 +231,7 @@ class PetApi(object):
pet_id
return self.call_with_http_info(**kwargs)
self.delete_pet = Endpoint(
self.delete_pet = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -353,7 +353,7 @@ class PetApi(object):
status
return self.call_with_http_info(**kwargs)
self.find_pets_by_status = Endpoint(
self.find_pets_by_status = _Endpoint(
settings={
'response_type': ([Pet],),
'auth': [
@@ -482,7 +482,7 @@ class PetApi(object):
tags
return self.call_with_http_info(**kwargs)
self.find_pets_by_tags = Endpoint(
self.find_pets_by_tags = _Endpoint(
settings={
'response_type': ([Pet],),
'auth': [
@@ -604,7 +604,7 @@ class PetApi(object):
pet_id
return self.call_with_http_info(**kwargs)
self.get_pet_by_id = Endpoint(
self.get_pet_by_id = _Endpoint(
settings={
'response_type': (Pet,),
'auth': [
@@ -723,7 +723,7 @@ class PetApi(object):
pet
return self.call_with_http_info(**kwargs)
self.update_pet = Endpoint(
self.update_pet = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -853,7 +853,7 @@ class PetApi(object):
pet_id
return self.call_with_http_info(**kwargs)
self.update_pet_with_form = Endpoint(
self.update_pet_with_form = _Endpoint(
settings={
'response_type': None,
'auth': [
@@ -983,7 +983,7 @@ class PetApi(object):
pet_id
return self.call_with_http_info(**kwargs)
self.upload_file = Endpoint(
self.upload_file = _Endpoint(
settings={
'response_type': (ApiResponse,),
'auth': [
@@ -1118,7 +1118,7 @@ class PetApi(object):
required_file
return self.call_with_http_info(**kwargs)
self.upload_file_with_required_file = Endpoint(
self.upload_file_with_required_file = _Endpoint(
settings={
'response_type': (ApiResponse,),
'auth': [

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from petstore_api.api_client import ApiClient, Endpoint
from petstore_api.api_client import ApiClient, Endpoint as _Endpoint
from petstore_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -102,7 +102,7 @@ class StoreApi(object):
order_id
return self.call_with_http_info(**kwargs)
self.delete_order = Endpoint(
self.delete_order = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -212,7 +212,7 @@ class StoreApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.get_inventory = Endpoint(
self.get_inventory = _Endpoint(
settings={
'response_type': ({str: (int,)},),
'auth': [
@@ -324,7 +324,7 @@ class StoreApi(object):
order_id
return self.call_with_http_info(**kwargs)
self.get_order_by_id = Endpoint(
self.get_order_by_id = _Endpoint(
settings={
'response_type': (Order,),
'auth': [],
@@ -447,7 +447,7 @@ class StoreApi(object):
order
return self.call_with_http_info(**kwargs)
self.place_order = Endpoint(
self.place_order = _Endpoint(
settings={
'response_type': (Order,),
'auth': [],

View File

@@ -11,7 +11,7 @@
import re # noqa: F401
import sys # noqa: F401
from petstore_api.api_client import ApiClient, Endpoint
from petstore_api.api_client import ApiClient, Endpoint as _Endpoint
from petstore_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
@@ -102,7 +102,7 @@ class UserApi(object):
user
return self.call_with_http_info(**kwargs)
self.create_user = Endpoint(
self.create_user = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -217,7 +217,7 @@ class UserApi(object):
user
return self.call_with_http_info(**kwargs)
self.create_users_with_array_input = Endpoint(
self.create_users_with_array_input = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -332,7 +332,7 @@ class UserApi(object):
user
return self.call_with_http_info(**kwargs)
self.create_users_with_list_input = Endpoint(
self.create_users_with_list_input = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -448,7 +448,7 @@ class UserApi(object):
username
return self.call_with_http_info(**kwargs)
self.delete_user = Endpoint(
self.delete_user = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -562,7 +562,7 @@ class UserApi(object):
username
return self.call_with_http_info(**kwargs)
self.get_user_by_name = Endpoint(
self.get_user_by_name = _Endpoint(
settings={
'response_type': (User,),
'auth': [],
@@ -683,7 +683,7 @@ class UserApi(object):
password
return self.call_with_http_info(**kwargs)
self.login_user = Endpoint(
self.login_user = _Endpoint(
settings={
'response_type': (str,),
'auth': [],
@@ -801,7 +801,7 @@ class UserApi(object):
kwargs['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.logout_user = Endpoint(
self.logout_user = _Endpoint(
settings={
'response_type': None,
'auth': [],
@@ -913,7 +913,7 @@ class UserApi(object):
user
return self.call_with_http_info(**kwargs)
self.update_user = Endpoint(
self.update_user = _Endpoint(
settings={
'response_type': None,
'auth': [],