forked from loafle/openapi-generator-original
update samples
This commit is contained in:
@@ -122,7 +122,6 @@ conf = petstore_api.Configuration(
|
|||||||
|
|
||||||
def __init__(self, host=None,
|
def __init__(self, host=None,
|
||||||
api_key=None, api_key_prefix=None,
|
api_key=None, api_key_prefix=None,
|
||||||
access_token=None,
|
|
||||||
username=None, password=None,
|
username=None, password=None,
|
||||||
discard_unknown_keys=False,
|
discard_unknown_keys=False,
|
||||||
disabled_client_side_validations="",
|
disabled_client_side_validations="",
|
||||||
@@ -147,7 +146,6 @@ conf = petstore_api.Configuration(
|
|||||||
"""Temp file folder for downloading files
|
"""Temp file folder for downloading files
|
||||||
"""
|
"""
|
||||||
# Authentication Settings
|
# Authentication Settings
|
||||||
self.access_token = access_token
|
|
||||||
self.api_key = {}
|
self.api_key = {}
|
||||||
if api_key:
|
if api_key:
|
||||||
self.api_key = api_key
|
self.api_key = api_key
|
||||||
@@ -169,6 +167,9 @@ conf = petstore_api.Configuration(
|
|||||||
"""
|
"""
|
||||||
self.discard_unknown_keys = discard_unknown_keys
|
self.discard_unknown_keys = discard_unknown_keys
|
||||||
self.disabled_client_side_validations = disabled_client_side_validations
|
self.disabled_client_side_validations = disabled_client_side_validations
|
||||||
|
self.access_token = None
|
||||||
|
"""access token for OAuth/Bearer
|
||||||
|
"""
|
||||||
self.logger = {}
|
self.logger = {}
|
||||||
"""Logging Settings
|
"""Logging Settings
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -123,7 +123,6 @@ conf = petstore_api.Configuration(
|
|||||||
|
|
||||||
def __init__(self, host=None,
|
def __init__(self, host=None,
|
||||||
api_key=None, api_key_prefix=None,
|
api_key=None, api_key_prefix=None,
|
||||||
access_token=None,
|
|
||||||
username=None, password=None,
|
username=None, password=None,
|
||||||
discard_unknown_keys=False,
|
discard_unknown_keys=False,
|
||||||
disabled_client_side_validations="",
|
disabled_client_side_validations="",
|
||||||
@@ -148,7 +147,6 @@ conf = petstore_api.Configuration(
|
|||||||
"""Temp file folder for downloading files
|
"""Temp file folder for downloading files
|
||||||
"""
|
"""
|
||||||
# Authentication Settings
|
# Authentication Settings
|
||||||
self.access_token = access_token
|
|
||||||
self.api_key = {}
|
self.api_key = {}
|
||||||
if api_key:
|
if api_key:
|
||||||
self.api_key = api_key
|
self.api_key = api_key
|
||||||
@@ -170,6 +168,9 @@ conf = petstore_api.Configuration(
|
|||||||
"""
|
"""
|
||||||
self.discard_unknown_keys = discard_unknown_keys
|
self.discard_unknown_keys = discard_unknown_keys
|
||||||
self.disabled_client_side_validations = disabled_client_side_validations
|
self.disabled_client_side_validations = disabled_client_side_validations
|
||||||
|
self.access_token = None
|
||||||
|
"""access token for OAuth/Bearer
|
||||||
|
"""
|
||||||
self.logger = {}
|
self.logger = {}
|
||||||
"""Logging Settings
|
"""Logging Settings
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ conf = x_auth_id_alias.Configuration(
|
|||||||
|
|
||||||
def __init__(self, host=None,
|
def __init__(self, host=None,
|
||||||
api_key=None, api_key_prefix=None,
|
api_key=None, api_key_prefix=None,
|
||||||
|
access_token=None,
|
||||||
username=None, password=None,
|
username=None, password=None,
|
||||||
discard_unknown_keys=False,
|
discard_unknown_keys=False,
|
||||||
disabled_client_side_validations="",
|
disabled_client_side_validations="",
|
||||||
@@ -126,6 +127,7 @@ conf = x_auth_id_alias.Configuration(
|
|||||||
"""Temp file folder for downloading files
|
"""Temp file folder for downloading files
|
||||||
"""
|
"""
|
||||||
# Authentication Settings
|
# Authentication Settings
|
||||||
|
self.access_token = access_token
|
||||||
self.api_key = {}
|
self.api_key = {}
|
||||||
if api_key:
|
if api_key:
|
||||||
self.api_key = api_key
|
self.api_key = api_key
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ class Configuration(object):
|
|||||||
|
|
||||||
def __init__(self, host=None,
|
def __init__(self, host=None,
|
||||||
api_key=None, api_key_prefix=None,
|
api_key=None, api_key_prefix=None,
|
||||||
|
access_token=None,
|
||||||
username=None, password=None,
|
username=None, password=None,
|
||||||
discard_unknown_keys=False,
|
discard_unknown_keys=False,
|
||||||
disabled_client_side_validations="",
|
disabled_client_side_validations="",
|
||||||
@@ -106,6 +107,7 @@ class Configuration(object):
|
|||||||
"""Temp file folder for downloading files
|
"""Temp file folder for downloading files
|
||||||
"""
|
"""
|
||||||
# Authentication Settings
|
# Authentication Settings
|
||||||
|
self.access_token = access_token
|
||||||
self.api_key = {}
|
self.api_key = {}
|
||||||
if api_key:
|
if api_key:
|
||||||
self.api_key = api_key
|
self.api_key = api_key
|
||||||
|
|||||||
Reference in New Issue
Block a user