Skip to content

Commit 21d7330

Browse files
committed
update samples
1 parent 90e25f6 commit 21d7330

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

samples/client/petstore/python-asyncio/petstore_api/configuration.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ class Configuration(object):
122122

123123
def __init__(self, host=None,
124124
api_key=None, api_key_prefix=None,
125-
access_token=None,
126125
username=None, password=None,
127126
discard_unknown_keys=False,
128127
disabled_client_side_validations="",
@@ -147,7 +146,6 @@ def __init__(self, host=None,
147146
"""Temp file folder for downloading files
148147
"""
149148
# Authentication Settings
150-
self.access_token = access_token
151149
self.api_key = {}
152150
if api_key:
153151
self.api_key = api_key
@@ -169,6 +167,9 @@ def __init__(self, host=None,
169167
"""
170168
self.discard_unknown_keys = discard_unknown_keys
171169
self.disabled_client_side_validations = disabled_client_side_validations
170+
self.access_token = None
171+
"""access token for OAuth/Bearer
172+
"""
172173
self.logger = {}
173174
"""Logging Settings
174175
"""

samples/client/petstore/python-tornado/petstore_api/configuration.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ class Configuration(object):
123123

124124
def __init__(self, host=None,
125125
api_key=None, api_key_prefix=None,
126-
access_token=None,
127126
username=None, password=None,
128127
discard_unknown_keys=False,
129128
disabled_client_side_validations="",
@@ -148,7 +147,6 @@ def __init__(self, host=None,
148147
"""Temp file folder for downloading files
149148
"""
150149
# Authentication Settings
151-
self.access_token = access_token
152150
self.api_key = {}
153151
if api_key:
154152
self.api_key = api_key
@@ -170,6 +168,9 @@ def __init__(self, host=None,
170168
"""
171169
self.discard_unknown_keys = discard_unknown_keys
172170
self.disabled_client_side_validations = disabled_client_side_validations
171+
self.access_token = None
172+
"""access token for OAuth/Bearer
173+
"""
173174
self.logger = {}
174175
"""Logging Settings
175176
"""

samples/openapi3/client/extensions/x-auth-id-alias/python/x_auth_id_alias/configuration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class Configuration(object):
102102

103103
def __init__(self, host=None,
104104
api_key=None, api_key_prefix=None,
105+
access_token=None,
105106
username=None, password=None,
106107
discard_unknown_keys=False,
107108
disabled_client_side_validations="",
@@ -126,6 +127,7 @@ def __init__(self, host=None,
126127
"""Temp file folder for downloading files
127128
"""
128129
# Authentication Settings
130+
self.access_token = access_token
129131
self.api_key = {}
130132
if api_key:
131133
self.api_key = api_key

samples/openapi3/client/features/dynamic-servers/python/dynamic_servers/configuration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class Configuration(object):
8282

8383
def __init__(self, host=None,
8484
api_key=None, api_key_prefix=None,
85+
access_token=None,
8586
username=None, password=None,
8687
discard_unknown_keys=False,
8788
disabled_client_side_validations="",
@@ -106,6 +107,7 @@ def __init__(self, host=None,
106107
"""Temp file folder for downloading files
107108
"""
108109
# Authentication Settings
110+
self.access_token = access_token
109111
self.api_key = {}
110112
if api_key:
111113
self.api_key = api_key

0 commit comments

Comments
 (0)