crypticorn 2.16.0__py3-none-any.whl → 2.17.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- crypticorn/__init__.py +2 -2
- crypticorn/auth/client/api/admin_api.py +397 -13
- crypticorn/auth/client/api/auth_api.py +3610 -341
- crypticorn/auth/client/api/service_api.py +249 -7
- crypticorn/auth/client/api/user_api.py +2295 -179
- crypticorn/auth/client/api/wallet_api.py +1468 -81
- crypticorn/auth/client/configuration.py +2 -2
- crypticorn/auth/client/models/create_api_key_request.py +2 -1
- crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
- crypticorn/auth/client/rest.py +23 -4
- crypticorn/auth/main.py +8 -5
- crypticorn/cli/init.py +1 -1
- crypticorn/cli/templates/.env.docker.temp +3 -0
- crypticorn/cli/templates/.env.example.temp +4 -0
- crypticorn/cli/templates/Dockerfile +5 -2
- crypticorn/client.py +226 -59
- crypticorn/common/__init__.py +1 -0
- crypticorn/common/auth.py +45 -14
- crypticorn/common/decorators.py +1 -2
- crypticorn/common/enums.py +0 -2
- crypticorn/common/errors.py +10 -0
- crypticorn/common/metrics.py +30 -0
- crypticorn/common/middleware.py +94 -1
- crypticorn/common/pagination.py +252 -20
- crypticorn/common/router/admin_router.py +2 -2
- crypticorn/common/router/status_router.py +40 -2
- crypticorn/common/scopes.py +2 -2
- crypticorn/common/warnings.py +7 -0
- crypticorn/dex/__init__.py +6 -0
- crypticorn/dex/client/__init__.py +49 -0
- crypticorn/dex/client/api/__init__.py +6 -0
- crypticorn/dex/client/api/admin_api.py +2986 -0
- crypticorn/dex/client/api/signals_api.py +1798 -0
- crypticorn/dex/client/api/status_api.py +892 -0
- crypticorn/dex/client/api_client.py +758 -0
- crypticorn/dex/client/api_response.py +20 -0
- crypticorn/dex/client/configuration.py +620 -0
- crypticorn/dex/client/exceptions.py +220 -0
- crypticorn/dex/client/models/__init__.py +30 -0
- crypticorn/dex/client/models/api_error_identifier.py +121 -0
- crypticorn/dex/client/models/api_error_level.py +37 -0
- crypticorn/dex/client/models/api_error_type.py +37 -0
- crypticorn/dex/client/models/exception_detail.py +117 -0
- crypticorn/dex/client/models/log_level.py +38 -0
- crypticorn/dex/client/models/paginated_response_signal_with_token.py +134 -0
- crypticorn/dex/client/models/risk.py +86 -0
- crypticorn/dex/client/models/signal_overview_stats.py +158 -0
- crypticorn/dex/client/models/signal_volume.py +84 -0
- crypticorn/dex/client/models/signal_with_token.py +163 -0
- crypticorn/dex/client/models/token_data.py +127 -0
- crypticorn/dex/client/models/token_detail.py +116 -0
- crypticorn/dex/client/py.typed +0 -0
- crypticorn/dex/client/rest.py +217 -0
- crypticorn/dex/main.py +1 -0
- crypticorn/hive/client/api/admin_api.py +1173 -47
- crypticorn/hive/client/api/data_api.py +499 -17
- crypticorn/hive/client/api/models_api.py +1595 -87
- crypticorn/hive/client/api/status_api.py +397 -16
- crypticorn/hive/client/api_client.py +0 -5
- crypticorn/hive/client/models/api_error_identifier.py +1 -1
- crypticorn/hive/client/models/coin_info.py +1 -1
- crypticorn/hive/client/models/exception_detail.py +1 -1
- crypticorn/hive/client/models/target_info.py +1 -1
- crypticorn/hive/client/rest.py +23 -4
- crypticorn/hive/main.py +99 -25
- crypticorn/hive/utils.py +2 -2
- crypticorn/klines/client/api/admin_api.py +1173 -47
- crypticorn/klines/client/api/change_in_timeframe_api.py +269 -11
- crypticorn/klines/client/api/funding_rates_api.py +315 -11
- crypticorn/klines/client/api/ohlcv_data_api.py +390 -11
- crypticorn/klines/client/api/status_api.py +397 -16
- crypticorn/klines/client/api/symbols_api.py +216 -11
- crypticorn/klines/client/api/udf_api.py +1268 -51
- crypticorn/klines/client/api_client.py +0 -5
- crypticorn/klines/client/models/api_error_identifier.py +3 -1
- crypticorn/klines/client/models/exception_detail.py +1 -1
- crypticorn/klines/client/models/ohlcv.py +1 -1
- crypticorn/klines/client/models/symbol_group.py +1 -1
- crypticorn/klines/client/models/udf_config.py +1 -1
- crypticorn/klines/client/rest.py +23 -4
- crypticorn/klines/main.py +89 -12
- crypticorn/metrics/client/api/admin_api.py +1173 -47
- crypticorn/metrics/client/api/exchanges_api.py +1370 -145
- crypticorn/metrics/client/api/indicators_api.py +622 -17
- crypticorn/metrics/client/api/logs_api.py +296 -11
- crypticorn/metrics/client/api/marketcap_api.py +1207 -67
- crypticorn/metrics/client/api/markets_api.py +343 -11
- crypticorn/metrics/client/api/quote_currencies_api.py +228 -11
- crypticorn/metrics/client/api/status_api.py +397 -16
- crypticorn/metrics/client/api/tokens_api.py +382 -15
- crypticorn/metrics/client/api_client.py +0 -5
- crypticorn/metrics/client/configuration.py +4 -2
- crypticorn/metrics/client/models/exception_detail.py +1 -1
- crypticorn/metrics/client/models/exchange_mapping.py +1 -1
- crypticorn/metrics/client/models/marketcap_ranking.py +1 -1
- crypticorn/metrics/client/models/marketcap_symbol_ranking.py +1 -1
- crypticorn/metrics/client/models/ohlcv.py +1 -1
- crypticorn/metrics/client/rest.py +23 -4
- crypticorn/metrics/main.py +113 -19
- crypticorn/pay/client/api/admin_api.py +1585 -57
- crypticorn/pay/client/api/now_payments_api.py +961 -39
- crypticorn/pay/client/api/payments_api.py +562 -17
- crypticorn/pay/client/api/products_api.py +880 -30
- crypticorn/pay/client/api/status_api.py +397 -16
- crypticorn/pay/client/api_client.py +0 -5
- crypticorn/pay/client/configuration.py +2 -2
- crypticorn/pay/client/models/api_error_identifier.py +7 -7
- crypticorn/pay/client/models/exception_detail.py +1 -1
- crypticorn/pay/client/models/now_create_invoice_req.py +1 -1
- crypticorn/pay/client/models/now_create_invoice_res.py +1 -1
- crypticorn/pay/client/models/product.py +1 -1
- crypticorn/pay/client/models/product_create.py +1 -1
- crypticorn/pay/client/models/product_update.py +1 -1
- crypticorn/pay/client/models/scope.py +1 -0
- crypticorn/pay/client/rest.py +23 -4
- crypticorn/pay/main.py +10 -6
- crypticorn/trade/client/__init__.py +11 -1
- crypticorn/trade/client/api/__init__.py +0 -1
- crypticorn/trade/client/api/admin_api.py +1184 -55
- crypticorn/trade/client/api/api_keys_api.py +1678 -162
- crypticorn/trade/client/api/bots_api.py +7563 -187
- crypticorn/trade/client/api/exchanges_api.py +565 -19
- crypticorn/trade/client/api/notifications_api.py +1290 -116
- crypticorn/trade/client/api/orders_api.py +393 -55
- crypticorn/trade/client/api/status_api.py +397 -13
- crypticorn/trade/client/api/strategies_api.py +1133 -77
- crypticorn/trade/client/api/trading_actions_api.py +786 -65
- crypticorn/trade/client/models/__init__.py +11 -0
- crypticorn/trade/client/models/actions_count.py +88 -0
- crypticorn/trade/client/models/api_error_identifier.py +1 -0
- crypticorn/trade/client/models/bot.py +7 -18
- crypticorn/trade/client/models/bot_create.py +17 -1
- crypticorn/trade/client/models/bot_update.py +17 -1
- crypticorn/trade/client/models/exchange.py +6 -1
- crypticorn/trade/client/models/exchange_key.py +1 -1
- crypticorn/trade/client/models/exchange_key_balance.py +111 -0
- crypticorn/trade/client/models/exchange_key_create.py +17 -1
- crypticorn/trade/client/models/exchange_key_update.py +17 -1
- crypticorn/trade/client/models/execution_ids.py +1 -1
- crypticorn/trade/client/models/futures_balance.py +27 -25
- crypticorn/trade/client/models/notification.py +17 -1
- crypticorn/trade/client/models/notification_create.py +18 -2
- crypticorn/trade/client/models/notification_update.py +17 -1
- crypticorn/trade/client/models/orders_count.py +88 -0
- crypticorn/trade/client/models/paginated_response_futures_trading_action.py +134 -0
- crypticorn/trade/client/models/paginated_response_order.py +134 -0
- crypticorn/trade/client/models/pn_l.py +95 -0
- crypticorn/trade/client/models/post_futures_action.py +1 -1
- crypticorn/trade/client/models/spot_balance.py +109 -0
- crypticorn/trade/client/models/strategy.py +22 -4
- crypticorn/trade/client/models/strategy_create.py +23 -5
- crypticorn/trade/client/models/strategy_exchange_info.py +16 -4
- crypticorn/trade/client/models/strategy_update.py +19 -3
- crypticorn/trade/client/models/tpsl.py +4 -19
- crypticorn/trade/client/models/tpsl_create.py +6 -19
- crypticorn/trade/client/rest.py +23 -4
- crypticorn/trade/main.py +15 -12
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/METADATA +65 -20
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/RECORD +163 -128
- crypticorn/trade/client/api/futures_trading_panel_api.py +0 -1285
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/WHEEL +0 -0
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/top_level.txt +0 -0
@@ -16,7 +16,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
17
|
from typing_extensions import Annotated
|
18
18
|
|
19
|
-
from pydantic import Field, StrictStr
|
19
|
+
from pydantic import Field, StrictStr, field_validator
|
20
20
|
from typing import Any, List, Optional
|
21
21
|
from typing_extensions import Annotated
|
22
22
|
from crypticorn.auth.client.models.authorize_user200_response import (
|
@@ -46,6 +46,24 @@ from crypticorn.auth.client.api_client import ApiClient, RequestSerialized
|
|
46
46
|
from crypticorn.auth.client.api_response import ApiResponse
|
47
47
|
from crypticorn.auth.client.rest import RESTResponseType
|
48
48
|
|
49
|
+
# Import async_to_sync for sync methods
|
50
|
+
try:
|
51
|
+
from asgiref.sync import async_to_sync
|
52
|
+
|
53
|
+
_HAS_ASGIREF = True
|
54
|
+
except ImportError:
|
55
|
+
_HAS_ASGIREF = False
|
56
|
+
|
57
|
+
def async_to_sync(async_func):
|
58
|
+
"""Fallback decorator that raises an error if asgiref is not available."""
|
59
|
+
|
60
|
+
def wrapper(*args, **kwargs):
|
61
|
+
raise ImportError(
|
62
|
+
"asgiref is required for sync methods. Install with: pip install asgiref"
|
63
|
+
)
|
64
|
+
|
65
|
+
return wrapper
|
66
|
+
|
49
67
|
|
50
68
|
class AuthApi:
|
51
69
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
@@ -54,13 +72,126 @@ class AuthApi:
|
|
54
72
|
Do not edit the class manually.
|
55
73
|
"""
|
56
74
|
|
57
|
-
def __init__(self, api_client=None) -> None:
|
75
|
+
def __init__(self, api_client=None, is_sync: bool = False) -> None:
|
58
76
|
if api_client is None:
|
59
77
|
api_client = ApiClient.get_default()
|
60
78
|
self.api_client = api_client
|
79
|
+
self.is_sync = is_sync
|
80
|
+
|
81
|
+
@validate_call
|
82
|
+
def authorize_user(
|
83
|
+
self,
|
84
|
+
authorize_user_request: AuthorizeUserRequest,
|
85
|
+
_request_timeout: Union[
|
86
|
+
None,
|
87
|
+
Annotated[StrictFloat, Field(gt=0)],
|
88
|
+
Tuple[
|
89
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
90
|
+
],
|
91
|
+
] = None,
|
92
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
93
|
+
_content_type: Optional[StrictStr] = None,
|
94
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
95
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
96
|
+
) -> AuthorizeUser200Response:
|
97
|
+
"""Authorize a user"""
|
98
|
+
if self.is_sync:
|
99
|
+
return self._authorize_user_sync(
|
100
|
+
authorize_user_request=authorize_user_request,
|
101
|
+
_request_timeout=_request_timeout,
|
102
|
+
_request_auth=_request_auth,
|
103
|
+
_content_type=_content_type,
|
104
|
+
_headers=_headers,
|
105
|
+
_host_index=_host_index,
|
106
|
+
)
|
107
|
+
|
108
|
+
else:
|
109
|
+
return self._authorize_user_async(
|
110
|
+
authorize_user_request=authorize_user_request,
|
111
|
+
_request_timeout=_request_timeout,
|
112
|
+
_request_auth=_request_auth,
|
113
|
+
_content_type=_content_type,
|
114
|
+
_headers=_headers,
|
115
|
+
_host_index=_host_index,
|
116
|
+
)
|
117
|
+
|
118
|
+
@validate_call
|
119
|
+
def authorize_user_with_http_info(
|
120
|
+
self,
|
121
|
+
authorize_user_request: AuthorizeUserRequest,
|
122
|
+
_request_timeout: Union[
|
123
|
+
None,
|
124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
125
|
+
Tuple[
|
126
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
127
|
+
],
|
128
|
+
] = None,
|
129
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
130
|
+
_content_type: Optional[StrictStr] = None,
|
131
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
132
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
133
|
+
) -> ApiResponse[AuthorizeUser200Response]:
|
134
|
+
"""Authorize a user with HTTP info"""
|
135
|
+
if self.is_sync:
|
136
|
+
return self._authorize_user_sync_with_http_info(
|
137
|
+
authorize_user_request=authorize_user_request,
|
138
|
+
_request_timeout=_request_timeout,
|
139
|
+
_request_auth=_request_auth,
|
140
|
+
_content_type=_content_type,
|
141
|
+
_headers=_headers,
|
142
|
+
_host_index=_host_index,
|
143
|
+
)
|
144
|
+
|
145
|
+
else:
|
146
|
+
return self._authorize_user_async_with_http_info(
|
147
|
+
authorize_user_request=authorize_user_request,
|
148
|
+
_request_timeout=_request_timeout,
|
149
|
+
_request_auth=_request_auth,
|
150
|
+
_content_type=_content_type,
|
151
|
+
_headers=_headers,
|
152
|
+
_host_index=_host_index,
|
153
|
+
)
|
154
|
+
|
155
|
+
@validate_call
|
156
|
+
def authorize_user_without_preload_content(
|
157
|
+
self,
|
158
|
+
authorize_user_request: AuthorizeUserRequest,
|
159
|
+
_request_timeout: Union[
|
160
|
+
None,
|
161
|
+
Annotated[StrictFloat, Field(gt=0)],
|
162
|
+
Tuple[
|
163
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
164
|
+
],
|
165
|
+
] = None,
|
166
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
167
|
+
_content_type: Optional[StrictStr] = None,
|
168
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
169
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
170
|
+
) -> RESTResponseType:
|
171
|
+
"""Authorize a user without preloading content"""
|
172
|
+
if self.is_sync:
|
173
|
+
return self._authorize_user_sync_without_preload_content(
|
174
|
+
authorize_user_request=authorize_user_request,
|
175
|
+
_request_timeout=_request_timeout,
|
176
|
+
_request_auth=_request_auth,
|
177
|
+
_content_type=_content_type,
|
178
|
+
_headers=_headers,
|
179
|
+
_host_index=_host_index,
|
180
|
+
)
|
181
|
+
|
182
|
+
else:
|
183
|
+
return self._authorize_user_async_without_preload_content(
|
184
|
+
authorize_user_request=authorize_user_request,
|
185
|
+
_request_timeout=_request_timeout,
|
186
|
+
_request_auth=_request_auth,
|
187
|
+
_content_type=_content_type,
|
188
|
+
_headers=_headers,
|
189
|
+
_host_index=_host_index,
|
190
|
+
)
|
61
191
|
|
192
|
+
# Private async implementation methods
|
62
193
|
@validate_call
|
63
|
-
async def
|
194
|
+
async def _authorize_user_async(
|
64
195
|
self,
|
65
196
|
authorize_user_request: AuthorizeUserRequest,
|
66
197
|
_request_timeout: Union[
|
@@ -124,7 +255,7 @@ class AuthApi:
|
|
124
255
|
).data
|
125
256
|
|
126
257
|
@validate_call
|
127
|
-
async def
|
258
|
+
async def _authorize_user_async_with_http_info(
|
128
259
|
self,
|
129
260
|
authorize_user_request: AuthorizeUserRequest,
|
130
261
|
_request_timeout: Union[
|
@@ -183,12 +314,11 @@ class AuthApi:
|
|
183
314
|
)
|
184
315
|
await response_data.read()
|
185
316
|
return self.api_client.response_deserialize(
|
186
|
-
response_data=response_data,
|
187
|
-
response_types_map=_response_types_map,
|
317
|
+
response_data=response_data, response_types_map=_response_types_map
|
188
318
|
)
|
189
319
|
|
190
320
|
@validate_call
|
191
|
-
async def
|
321
|
+
async def _authorize_user_async_without_preload_content(
|
192
322
|
self,
|
193
323
|
authorize_user_request: AuthorizeUserRequest,
|
194
324
|
_request_timeout: Union[
|
@@ -245,7 +375,86 @@ class AuthApi:
|
|
245
375
|
response_data = await self.api_client.call_api(
|
246
376
|
*_param, _request_timeout=_request_timeout
|
247
377
|
)
|
248
|
-
return response_data
|
378
|
+
return response_data
|
379
|
+
|
380
|
+
# Private sync implementation methods
|
381
|
+
@validate_call
|
382
|
+
def _authorize_user_sync(
|
383
|
+
self,
|
384
|
+
authorize_user_request: AuthorizeUserRequest,
|
385
|
+
_request_timeout: Union[
|
386
|
+
None,
|
387
|
+
Annotated[StrictFloat, Field(gt=0)],
|
388
|
+
Tuple[
|
389
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
390
|
+
],
|
391
|
+
] = None,
|
392
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
393
|
+
_content_type: Optional[StrictStr] = None,
|
394
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
395
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
396
|
+
) -> AuthorizeUser200Response:
|
397
|
+
"""Synchronous version of authorize_user"""
|
398
|
+
return async_to_sync(self._authorize_user_async)(
|
399
|
+
authorize_user_request=authorize_user_request,
|
400
|
+
_request_timeout=_request_timeout,
|
401
|
+
_request_auth=_request_auth,
|
402
|
+
_content_type=_content_type,
|
403
|
+
_headers=_headers,
|
404
|
+
_host_index=_host_index,
|
405
|
+
)
|
406
|
+
|
407
|
+
@validate_call
|
408
|
+
def _authorize_user_sync_with_http_info(
|
409
|
+
self,
|
410
|
+
authorize_user_request: AuthorizeUserRequest,
|
411
|
+
_request_timeout: Union[
|
412
|
+
None,
|
413
|
+
Annotated[StrictFloat, Field(gt=0)],
|
414
|
+
Tuple[
|
415
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
416
|
+
],
|
417
|
+
] = None,
|
418
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
419
|
+
_content_type: Optional[StrictStr] = None,
|
420
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
421
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
422
|
+
) -> ApiResponse[AuthorizeUser200Response]:
|
423
|
+
"""Synchronous version of authorize_user_with_http_info"""
|
424
|
+
return async_to_sync(self._authorize_user_async_with_http_info)(
|
425
|
+
authorize_user_request=authorize_user_request,
|
426
|
+
_request_timeout=_request_timeout,
|
427
|
+
_request_auth=_request_auth,
|
428
|
+
_content_type=_content_type,
|
429
|
+
_headers=_headers,
|
430
|
+
_host_index=_host_index,
|
431
|
+
)
|
432
|
+
|
433
|
+
@validate_call
|
434
|
+
def _authorize_user_sync_without_preload_content(
|
435
|
+
self,
|
436
|
+
authorize_user_request: AuthorizeUserRequest,
|
437
|
+
_request_timeout: Union[
|
438
|
+
None,
|
439
|
+
Annotated[StrictFloat, Field(gt=0)],
|
440
|
+
Tuple[
|
441
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
442
|
+
],
|
443
|
+
] = None,
|
444
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
445
|
+
_content_type: Optional[StrictStr] = None,
|
446
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
447
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
448
|
+
) -> RESTResponseType:
|
449
|
+
"""Synchronous version of authorize_user_without_preload_content"""
|
450
|
+
return async_to_sync(self._authorize_user_async_without_preload_content)(
|
451
|
+
authorize_user_request=authorize_user_request,
|
452
|
+
_request_timeout=_request_timeout,
|
453
|
+
_request_auth=_request_auth,
|
454
|
+
_content_type=_content_type,
|
455
|
+
_headers=_headers,
|
456
|
+
_host_index=_host_index,
|
457
|
+
)
|
249
458
|
|
250
459
|
def _authorize_user_serialize(
|
251
460
|
self,
|
@@ -312,7 +521,119 @@ class AuthApi:
|
|
312
521
|
)
|
313
522
|
|
314
523
|
@validate_call
|
315
|
-
|
524
|
+
def create_api_key(
|
525
|
+
self,
|
526
|
+
create_api_key_request: CreateApiKeyRequest,
|
527
|
+
_request_timeout: Union[
|
528
|
+
None,
|
529
|
+
Annotated[StrictFloat, Field(gt=0)],
|
530
|
+
Tuple[
|
531
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
532
|
+
],
|
533
|
+
] = None,
|
534
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
535
|
+
_content_type: Optional[StrictStr] = None,
|
536
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
537
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
538
|
+
) -> CreateApiKey200Response:
|
539
|
+
"""Create API Key"""
|
540
|
+
if self.is_sync:
|
541
|
+
return self._create_api_key_sync(
|
542
|
+
create_api_key_request=create_api_key_request,
|
543
|
+
_request_timeout=_request_timeout,
|
544
|
+
_request_auth=_request_auth,
|
545
|
+
_content_type=_content_type,
|
546
|
+
_headers=_headers,
|
547
|
+
_host_index=_host_index,
|
548
|
+
)
|
549
|
+
|
550
|
+
else:
|
551
|
+
return self._create_api_key_async(
|
552
|
+
create_api_key_request=create_api_key_request,
|
553
|
+
_request_timeout=_request_timeout,
|
554
|
+
_request_auth=_request_auth,
|
555
|
+
_content_type=_content_type,
|
556
|
+
_headers=_headers,
|
557
|
+
_host_index=_host_index,
|
558
|
+
)
|
559
|
+
|
560
|
+
@validate_call
|
561
|
+
def create_api_key_with_http_info(
|
562
|
+
self,
|
563
|
+
create_api_key_request: CreateApiKeyRequest,
|
564
|
+
_request_timeout: Union[
|
565
|
+
None,
|
566
|
+
Annotated[StrictFloat, Field(gt=0)],
|
567
|
+
Tuple[
|
568
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
569
|
+
],
|
570
|
+
] = None,
|
571
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
572
|
+
_content_type: Optional[StrictStr] = None,
|
573
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
574
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
575
|
+
) -> ApiResponse[CreateApiKey200Response]:
|
576
|
+
"""Create API Key with HTTP info"""
|
577
|
+
if self.is_sync:
|
578
|
+
return self._create_api_key_sync_with_http_info(
|
579
|
+
create_api_key_request=create_api_key_request,
|
580
|
+
_request_timeout=_request_timeout,
|
581
|
+
_request_auth=_request_auth,
|
582
|
+
_content_type=_content_type,
|
583
|
+
_headers=_headers,
|
584
|
+
_host_index=_host_index,
|
585
|
+
)
|
586
|
+
|
587
|
+
else:
|
588
|
+
return self._create_api_key_async_with_http_info(
|
589
|
+
create_api_key_request=create_api_key_request,
|
590
|
+
_request_timeout=_request_timeout,
|
591
|
+
_request_auth=_request_auth,
|
592
|
+
_content_type=_content_type,
|
593
|
+
_headers=_headers,
|
594
|
+
_host_index=_host_index,
|
595
|
+
)
|
596
|
+
|
597
|
+
@validate_call
|
598
|
+
def create_api_key_without_preload_content(
|
599
|
+
self,
|
600
|
+
create_api_key_request: CreateApiKeyRequest,
|
601
|
+
_request_timeout: Union[
|
602
|
+
None,
|
603
|
+
Annotated[StrictFloat, Field(gt=0)],
|
604
|
+
Tuple[
|
605
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
606
|
+
],
|
607
|
+
] = None,
|
608
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
609
|
+
_content_type: Optional[StrictStr] = None,
|
610
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
611
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
612
|
+
) -> RESTResponseType:
|
613
|
+
"""Create API Key without preloading content"""
|
614
|
+
if self.is_sync:
|
615
|
+
return self._create_api_key_sync_without_preload_content(
|
616
|
+
create_api_key_request=create_api_key_request,
|
617
|
+
_request_timeout=_request_timeout,
|
618
|
+
_request_auth=_request_auth,
|
619
|
+
_content_type=_content_type,
|
620
|
+
_headers=_headers,
|
621
|
+
_host_index=_host_index,
|
622
|
+
)
|
623
|
+
|
624
|
+
else:
|
625
|
+
return self._create_api_key_async_without_preload_content(
|
626
|
+
create_api_key_request=create_api_key_request,
|
627
|
+
_request_timeout=_request_timeout,
|
628
|
+
_request_auth=_request_auth,
|
629
|
+
_content_type=_content_type,
|
630
|
+
_headers=_headers,
|
631
|
+
_host_index=_host_index,
|
632
|
+
)
|
633
|
+
|
634
|
+
# Private async implementation methods
|
635
|
+
@validate_call
|
636
|
+
async def _create_api_key_async(
|
316
637
|
self,
|
317
638
|
create_api_key_request: CreateApiKeyRequest,
|
318
639
|
_request_timeout: Union[
|
@@ -376,7 +697,7 @@ class AuthApi:
|
|
376
697
|
).data
|
377
698
|
|
378
699
|
@validate_call
|
379
|
-
async def
|
700
|
+
async def _create_api_key_async_with_http_info(
|
380
701
|
self,
|
381
702
|
create_api_key_request: CreateApiKeyRequest,
|
382
703
|
_request_timeout: Union[
|
@@ -435,12 +756,11 @@ class AuthApi:
|
|
435
756
|
)
|
436
757
|
await response_data.read()
|
437
758
|
return self.api_client.response_deserialize(
|
438
|
-
response_data=response_data,
|
439
|
-
response_types_map=_response_types_map,
|
759
|
+
response_data=response_data, response_types_map=_response_types_map
|
440
760
|
)
|
441
761
|
|
442
762
|
@validate_call
|
443
|
-
async def
|
763
|
+
async def _create_api_key_async_without_preload_content(
|
444
764
|
self,
|
445
765
|
create_api_key_request: CreateApiKeyRequest,
|
446
766
|
_request_timeout: Union[
|
@@ -497,29 +817,108 @@ class AuthApi:
|
|
497
817
|
response_data = await self.api_client.call_api(
|
498
818
|
*_param, _request_timeout=_request_timeout
|
499
819
|
)
|
500
|
-
return response_data
|
820
|
+
return response_data
|
501
821
|
|
502
|
-
|
822
|
+
# Private sync implementation methods
|
823
|
+
@validate_call
|
824
|
+
def _create_api_key_sync(
|
503
825
|
self,
|
504
|
-
create_api_key_request,
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
826
|
+
create_api_key_request: CreateApiKeyRequest,
|
827
|
+
_request_timeout: Union[
|
828
|
+
None,
|
829
|
+
Annotated[StrictFloat, Field(gt=0)],
|
830
|
+
Tuple[
|
831
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
832
|
+
],
|
833
|
+
] = None,
|
834
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
835
|
+
_content_type: Optional[StrictStr] = None,
|
836
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
837
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
838
|
+
) -> CreateApiKey200Response:
|
839
|
+
"""Synchronous version of create_api_key"""
|
840
|
+
return async_to_sync(self._create_api_key_async)(
|
841
|
+
create_api_key_request=create_api_key_request,
|
842
|
+
_request_timeout=_request_timeout,
|
843
|
+
_request_auth=_request_auth,
|
844
|
+
_content_type=_content_type,
|
845
|
+
_headers=_headers,
|
846
|
+
_host_index=_host_index,
|
847
|
+
)
|
514
848
|
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
849
|
+
@validate_call
|
850
|
+
def _create_api_key_sync_with_http_info(
|
851
|
+
self,
|
852
|
+
create_api_key_request: CreateApiKeyRequest,
|
853
|
+
_request_timeout: Union[
|
854
|
+
None,
|
855
|
+
Annotated[StrictFloat, Field(gt=0)],
|
856
|
+
Tuple[
|
857
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
858
|
+
],
|
859
|
+
] = None,
|
860
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
861
|
+
_content_type: Optional[StrictStr] = None,
|
862
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
863
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
864
|
+
) -> ApiResponse[CreateApiKey200Response]:
|
865
|
+
"""Synchronous version of create_api_key_with_http_info"""
|
866
|
+
return async_to_sync(self._create_api_key_async_with_http_info)(
|
867
|
+
create_api_key_request=create_api_key_request,
|
868
|
+
_request_timeout=_request_timeout,
|
869
|
+
_request_auth=_request_auth,
|
870
|
+
_content_type=_content_type,
|
871
|
+
_headers=_headers,
|
872
|
+
_host_index=_host_index,
|
873
|
+
)
|
874
|
+
|
875
|
+
@validate_call
|
876
|
+
def _create_api_key_sync_without_preload_content(
|
877
|
+
self,
|
878
|
+
create_api_key_request: CreateApiKeyRequest,
|
879
|
+
_request_timeout: Union[
|
880
|
+
None,
|
881
|
+
Annotated[StrictFloat, Field(gt=0)],
|
882
|
+
Tuple[
|
883
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
884
|
+
],
|
885
|
+
] = None,
|
886
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
887
|
+
_content_type: Optional[StrictStr] = None,
|
888
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
889
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
890
|
+
) -> RESTResponseType:
|
891
|
+
"""Synchronous version of create_api_key_without_preload_content"""
|
892
|
+
return async_to_sync(self._create_api_key_async_without_preload_content)(
|
893
|
+
create_api_key_request=create_api_key_request,
|
894
|
+
_request_timeout=_request_timeout,
|
895
|
+
_request_auth=_request_auth,
|
896
|
+
_content_type=_content_type,
|
897
|
+
_headers=_headers,
|
898
|
+
_host_index=_host_index,
|
899
|
+
)
|
900
|
+
|
901
|
+
def _create_api_key_serialize(
|
902
|
+
self,
|
903
|
+
create_api_key_request,
|
904
|
+
_request_auth,
|
905
|
+
_content_type,
|
906
|
+
_headers,
|
907
|
+
_host_index,
|
908
|
+
) -> RequestSerialized:
|
909
|
+
|
910
|
+
_host = None
|
911
|
+
|
912
|
+
_collection_formats: Dict[str, str] = {}
|
913
|
+
|
914
|
+
_path_params: Dict[str, str] = {}
|
915
|
+
_query_params: List[Tuple[str, str]] = []
|
916
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
917
|
+
_form_params: List[Tuple[str, str]] = []
|
918
|
+
_files: Dict[
|
919
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
920
|
+
] = {}
|
921
|
+
_body_params: Optional[bytes] = None
|
523
922
|
|
524
923
|
# process the path parameters
|
525
924
|
# process the query parameters
|
@@ -564,7 +963,119 @@ class AuthApi:
|
|
564
963
|
)
|
565
964
|
|
566
965
|
@validate_call
|
567
|
-
|
966
|
+
def delete_api_key(
|
967
|
+
self,
|
968
|
+
id: StrictStr,
|
969
|
+
_request_timeout: Union[
|
970
|
+
None,
|
971
|
+
Annotated[StrictFloat, Field(gt=0)],
|
972
|
+
Tuple[
|
973
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
974
|
+
],
|
975
|
+
] = None,
|
976
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
977
|
+
_content_type: Optional[StrictStr] = None,
|
978
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
979
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
980
|
+
) -> object:
|
981
|
+
"""Delete API Key"""
|
982
|
+
if self.is_sync:
|
983
|
+
return self._delete_api_key_sync(
|
984
|
+
id=id,
|
985
|
+
_request_timeout=_request_timeout,
|
986
|
+
_request_auth=_request_auth,
|
987
|
+
_content_type=_content_type,
|
988
|
+
_headers=_headers,
|
989
|
+
_host_index=_host_index,
|
990
|
+
)
|
991
|
+
|
992
|
+
else:
|
993
|
+
return self._delete_api_key_async(
|
994
|
+
id=id,
|
995
|
+
_request_timeout=_request_timeout,
|
996
|
+
_request_auth=_request_auth,
|
997
|
+
_content_type=_content_type,
|
998
|
+
_headers=_headers,
|
999
|
+
_host_index=_host_index,
|
1000
|
+
)
|
1001
|
+
|
1002
|
+
@validate_call
|
1003
|
+
def delete_api_key_with_http_info(
|
1004
|
+
self,
|
1005
|
+
id: StrictStr,
|
1006
|
+
_request_timeout: Union[
|
1007
|
+
None,
|
1008
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1009
|
+
Tuple[
|
1010
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1011
|
+
],
|
1012
|
+
] = None,
|
1013
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1014
|
+
_content_type: Optional[StrictStr] = None,
|
1015
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1016
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1017
|
+
) -> ApiResponse[object]:
|
1018
|
+
"""Delete API Key with HTTP info"""
|
1019
|
+
if self.is_sync:
|
1020
|
+
return self._delete_api_key_sync_with_http_info(
|
1021
|
+
id=id,
|
1022
|
+
_request_timeout=_request_timeout,
|
1023
|
+
_request_auth=_request_auth,
|
1024
|
+
_content_type=_content_type,
|
1025
|
+
_headers=_headers,
|
1026
|
+
_host_index=_host_index,
|
1027
|
+
)
|
1028
|
+
|
1029
|
+
else:
|
1030
|
+
return self._delete_api_key_async_with_http_info(
|
1031
|
+
id=id,
|
1032
|
+
_request_timeout=_request_timeout,
|
1033
|
+
_request_auth=_request_auth,
|
1034
|
+
_content_type=_content_type,
|
1035
|
+
_headers=_headers,
|
1036
|
+
_host_index=_host_index,
|
1037
|
+
)
|
1038
|
+
|
1039
|
+
@validate_call
|
1040
|
+
def delete_api_key_without_preload_content(
|
1041
|
+
self,
|
1042
|
+
id: StrictStr,
|
1043
|
+
_request_timeout: Union[
|
1044
|
+
None,
|
1045
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1046
|
+
Tuple[
|
1047
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1048
|
+
],
|
1049
|
+
] = None,
|
1050
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1051
|
+
_content_type: Optional[StrictStr] = None,
|
1052
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1053
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1054
|
+
) -> RESTResponseType:
|
1055
|
+
"""Delete API Key without preloading content"""
|
1056
|
+
if self.is_sync:
|
1057
|
+
return self._delete_api_key_sync_without_preload_content(
|
1058
|
+
id=id,
|
1059
|
+
_request_timeout=_request_timeout,
|
1060
|
+
_request_auth=_request_auth,
|
1061
|
+
_content_type=_content_type,
|
1062
|
+
_headers=_headers,
|
1063
|
+
_host_index=_host_index,
|
1064
|
+
)
|
1065
|
+
|
1066
|
+
else:
|
1067
|
+
return self._delete_api_key_async_without_preload_content(
|
1068
|
+
id=id,
|
1069
|
+
_request_timeout=_request_timeout,
|
1070
|
+
_request_auth=_request_auth,
|
1071
|
+
_content_type=_content_type,
|
1072
|
+
_headers=_headers,
|
1073
|
+
_host_index=_host_index,
|
1074
|
+
)
|
1075
|
+
|
1076
|
+
# Private async implementation methods
|
1077
|
+
@validate_call
|
1078
|
+
async def _delete_api_key_async(
|
568
1079
|
self,
|
569
1080
|
id: StrictStr,
|
570
1081
|
_request_timeout: Union[
|
@@ -628,7 +1139,7 @@ class AuthApi:
|
|
628
1139
|
).data
|
629
1140
|
|
630
1141
|
@validate_call
|
631
|
-
async def
|
1142
|
+
async def _delete_api_key_async_with_http_info(
|
632
1143
|
self,
|
633
1144
|
id: StrictStr,
|
634
1145
|
_request_timeout: Union[
|
@@ -687,12 +1198,11 @@ class AuthApi:
|
|
687
1198
|
)
|
688
1199
|
await response_data.read()
|
689
1200
|
return self.api_client.response_deserialize(
|
690
|
-
response_data=response_data,
|
691
|
-
response_types_map=_response_types_map,
|
1201
|
+
response_data=response_data, response_types_map=_response_types_map
|
692
1202
|
)
|
693
1203
|
|
694
1204
|
@validate_call
|
695
|
-
async def
|
1205
|
+
async def _delete_api_key_async_without_preload_content(
|
696
1206
|
self,
|
697
1207
|
id: StrictStr,
|
698
1208
|
_request_timeout: Union[
|
@@ -749,7 +1259,86 @@ class AuthApi:
|
|
749
1259
|
response_data = await self.api_client.call_api(
|
750
1260
|
*_param, _request_timeout=_request_timeout
|
751
1261
|
)
|
752
|
-
return response_data
|
1262
|
+
return response_data
|
1263
|
+
|
1264
|
+
# Private sync implementation methods
|
1265
|
+
@validate_call
|
1266
|
+
def _delete_api_key_sync(
|
1267
|
+
self,
|
1268
|
+
id: StrictStr,
|
1269
|
+
_request_timeout: Union[
|
1270
|
+
None,
|
1271
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1272
|
+
Tuple[
|
1273
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1274
|
+
],
|
1275
|
+
] = None,
|
1276
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1277
|
+
_content_type: Optional[StrictStr] = None,
|
1278
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1279
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1280
|
+
) -> object:
|
1281
|
+
"""Synchronous version of delete_api_key"""
|
1282
|
+
return async_to_sync(self._delete_api_key_async)(
|
1283
|
+
id=id,
|
1284
|
+
_request_timeout=_request_timeout,
|
1285
|
+
_request_auth=_request_auth,
|
1286
|
+
_content_type=_content_type,
|
1287
|
+
_headers=_headers,
|
1288
|
+
_host_index=_host_index,
|
1289
|
+
)
|
1290
|
+
|
1291
|
+
@validate_call
|
1292
|
+
def _delete_api_key_sync_with_http_info(
|
1293
|
+
self,
|
1294
|
+
id: StrictStr,
|
1295
|
+
_request_timeout: Union[
|
1296
|
+
None,
|
1297
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1298
|
+
Tuple[
|
1299
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1300
|
+
],
|
1301
|
+
] = None,
|
1302
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1303
|
+
_content_type: Optional[StrictStr] = None,
|
1304
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1305
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1306
|
+
) -> ApiResponse[object]:
|
1307
|
+
"""Synchronous version of delete_api_key_with_http_info"""
|
1308
|
+
return async_to_sync(self._delete_api_key_async_with_http_info)(
|
1309
|
+
id=id,
|
1310
|
+
_request_timeout=_request_timeout,
|
1311
|
+
_request_auth=_request_auth,
|
1312
|
+
_content_type=_content_type,
|
1313
|
+
_headers=_headers,
|
1314
|
+
_host_index=_host_index,
|
1315
|
+
)
|
1316
|
+
|
1317
|
+
@validate_call
|
1318
|
+
def _delete_api_key_sync_without_preload_content(
|
1319
|
+
self,
|
1320
|
+
id: StrictStr,
|
1321
|
+
_request_timeout: Union[
|
1322
|
+
None,
|
1323
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1324
|
+
Tuple[
|
1325
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1326
|
+
],
|
1327
|
+
] = None,
|
1328
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1329
|
+
_content_type: Optional[StrictStr] = None,
|
1330
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1331
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1332
|
+
) -> RESTResponseType:
|
1333
|
+
"""Synchronous version of delete_api_key_without_preload_content"""
|
1334
|
+
return async_to_sync(self._delete_api_key_async_without_preload_content)(
|
1335
|
+
id=id,
|
1336
|
+
_request_timeout=_request_timeout,
|
1337
|
+
_request_auth=_request_auth,
|
1338
|
+
_content_type=_content_type,
|
1339
|
+
_headers=_headers,
|
1340
|
+
_host_index=_host_index,
|
1341
|
+
)
|
753
1342
|
|
754
1343
|
def _delete_api_key_serialize(
|
755
1344
|
self,
|
@@ -808,7 +1397,110 @@ class AuthApi:
|
|
808
1397
|
)
|
809
1398
|
|
810
1399
|
@validate_call
|
811
|
-
|
1400
|
+
def get_api_keys(
|
1401
|
+
self,
|
1402
|
+
_request_timeout: Union[
|
1403
|
+
None,
|
1404
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1405
|
+
Tuple[
|
1406
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1407
|
+
],
|
1408
|
+
] = None,
|
1409
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1410
|
+
_content_type: Optional[StrictStr] = None,
|
1411
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1412
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1413
|
+
) -> List[GetApiKeys200ResponseInner]:
|
1414
|
+
"""Get API Keys"""
|
1415
|
+
if self.is_sync:
|
1416
|
+
return self._get_api_keys_sync(
|
1417
|
+
_request_timeout=_request_timeout,
|
1418
|
+
_request_auth=_request_auth,
|
1419
|
+
_content_type=_content_type,
|
1420
|
+
_headers=_headers,
|
1421
|
+
_host_index=_host_index,
|
1422
|
+
)
|
1423
|
+
|
1424
|
+
else:
|
1425
|
+
return self._get_api_keys_async(
|
1426
|
+
_request_timeout=_request_timeout,
|
1427
|
+
_request_auth=_request_auth,
|
1428
|
+
_content_type=_content_type,
|
1429
|
+
_headers=_headers,
|
1430
|
+
_host_index=_host_index,
|
1431
|
+
)
|
1432
|
+
|
1433
|
+
@validate_call
|
1434
|
+
def get_api_keys_with_http_info(
|
1435
|
+
self,
|
1436
|
+
_request_timeout: Union[
|
1437
|
+
None,
|
1438
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1439
|
+
Tuple[
|
1440
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1441
|
+
],
|
1442
|
+
] = None,
|
1443
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1444
|
+
_content_type: Optional[StrictStr] = None,
|
1445
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1446
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1447
|
+
) -> ApiResponse[List[GetApiKeys200ResponseInner]]:
|
1448
|
+
"""Get API Keys with HTTP info"""
|
1449
|
+
if self.is_sync:
|
1450
|
+
return self._get_api_keys_sync_with_http_info(
|
1451
|
+
_request_timeout=_request_timeout,
|
1452
|
+
_request_auth=_request_auth,
|
1453
|
+
_content_type=_content_type,
|
1454
|
+
_headers=_headers,
|
1455
|
+
_host_index=_host_index,
|
1456
|
+
)
|
1457
|
+
|
1458
|
+
else:
|
1459
|
+
return self._get_api_keys_async_with_http_info(
|
1460
|
+
_request_timeout=_request_timeout,
|
1461
|
+
_request_auth=_request_auth,
|
1462
|
+
_content_type=_content_type,
|
1463
|
+
_headers=_headers,
|
1464
|
+
_host_index=_host_index,
|
1465
|
+
)
|
1466
|
+
|
1467
|
+
@validate_call
|
1468
|
+
def get_api_keys_without_preload_content(
|
1469
|
+
self,
|
1470
|
+
_request_timeout: Union[
|
1471
|
+
None,
|
1472
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1473
|
+
Tuple[
|
1474
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1475
|
+
],
|
1476
|
+
] = None,
|
1477
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1478
|
+
_content_type: Optional[StrictStr] = None,
|
1479
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1480
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1481
|
+
) -> RESTResponseType:
|
1482
|
+
"""Get API Keys without preloading content"""
|
1483
|
+
if self.is_sync:
|
1484
|
+
return self._get_api_keys_sync_without_preload_content(
|
1485
|
+
_request_timeout=_request_timeout,
|
1486
|
+
_request_auth=_request_auth,
|
1487
|
+
_content_type=_content_type,
|
1488
|
+
_headers=_headers,
|
1489
|
+
_host_index=_host_index,
|
1490
|
+
)
|
1491
|
+
|
1492
|
+
else:
|
1493
|
+
return self._get_api_keys_async_without_preload_content(
|
1494
|
+
_request_timeout=_request_timeout,
|
1495
|
+
_request_auth=_request_auth,
|
1496
|
+
_content_type=_content_type,
|
1497
|
+
_headers=_headers,
|
1498
|
+
_host_index=_host_index,
|
1499
|
+
)
|
1500
|
+
|
1501
|
+
# Private async implementation methods
|
1502
|
+
@validate_call
|
1503
|
+
async def _get_api_keys_async(
|
812
1504
|
self,
|
813
1505
|
_request_timeout: Union[
|
814
1506
|
None,
|
@@ -868,7 +1560,7 @@ class AuthApi:
|
|
868
1560
|
).data
|
869
1561
|
|
870
1562
|
@validate_call
|
871
|
-
async def
|
1563
|
+
async def _get_api_keys_async_with_http_info(
|
872
1564
|
self,
|
873
1565
|
_request_timeout: Union[
|
874
1566
|
None,
|
@@ -923,12 +1615,11 @@ class AuthApi:
|
|
923
1615
|
)
|
924
1616
|
await response_data.read()
|
925
1617
|
return self.api_client.response_deserialize(
|
926
|
-
response_data=response_data,
|
927
|
-
response_types_map=_response_types_map,
|
1618
|
+
response_data=response_data, response_types_map=_response_types_map
|
928
1619
|
)
|
929
1620
|
|
930
1621
|
@validate_call
|
931
|
-
async def
|
1622
|
+
async def _get_api_keys_async_without_preload_content(
|
932
1623
|
self,
|
933
1624
|
_request_timeout: Union[
|
934
1625
|
None,
|
@@ -981,17 +1672,90 @@ class AuthApi:
|
|
981
1672
|
response_data = await self.api_client.call_api(
|
982
1673
|
*_param, _request_timeout=_request_timeout
|
983
1674
|
)
|
984
|
-
return response_data
|
1675
|
+
return response_data
|
985
1676
|
|
986
|
-
|
1677
|
+
# Private sync implementation methods
|
1678
|
+
@validate_call
|
1679
|
+
def _get_api_keys_sync(
|
987
1680
|
self,
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
1681
|
+
_request_timeout: Union[
|
1682
|
+
None,
|
1683
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1684
|
+
Tuple[
|
1685
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1686
|
+
],
|
1687
|
+
] = None,
|
1688
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1689
|
+
_content_type: Optional[StrictStr] = None,
|
1690
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1691
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1692
|
+
) -> List[GetApiKeys200ResponseInner]:
|
1693
|
+
"""Synchronous version of get_api_keys"""
|
1694
|
+
return async_to_sync(self._get_api_keys_async)(
|
1695
|
+
_request_timeout=_request_timeout,
|
1696
|
+
_request_auth=_request_auth,
|
1697
|
+
_content_type=_content_type,
|
1698
|
+
_headers=_headers,
|
1699
|
+
_host_index=_host_index,
|
1700
|
+
)
|
993
1701
|
|
994
|
-
|
1702
|
+
@validate_call
|
1703
|
+
def _get_api_keys_sync_with_http_info(
|
1704
|
+
self,
|
1705
|
+
_request_timeout: Union[
|
1706
|
+
None,
|
1707
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1708
|
+
Tuple[
|
1709
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1710
|
+
],
|
1711
|
+
] = None,
|
1712
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1713
|
+
_content_type: Optional[StrictStr] = None,
|
1714
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1715
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1716
|
+
) -> ApiResponse[List[GetApiKeys200ResponseInner]]:
|
1717
|
+
"""Synchronous version of get_api_keys_with_http_info"""
|
1718
|
+
return async_to_sync(self._get_api_keys_async_with_http_info)(
|
1719
|
+
_request_timeout=_request_timeout,
|
1720
|
+
_request_auth=_request_auth,
|
1721
|
+
_content_type=_content_type,
|
1722
|
+
_headers=_headers,
|
1723
|
+
_host_index=_host_index,
|
1724
|
+
)
|
1725
|
+
|
1726
|
+
@validate_call
|
1727
|
+
def _get_api_keys_sync_without_preload_content(
|
1728
|
+
self,
|
1729
|
+
_request_timeout: Union[
|
1730
|
+
None,
|
1731
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1732
|
+
Tuple[
|
1733
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1734
|
+
],
|
1735
|
+
] = None,
|
1736
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1737
|
+
_content_type: Optional[StrictStr] = None,
|
1738
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1739
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1740
|
+
) -> RESTResponseType:
|
1741
|
+
"""Synchronous version of get_api_keys_without_preload_content"""
|
1742
|
+
return async_to_sync(self._get_api_keys_async_without_preload_content)(
|
1743
|
+
_request_timeout=_request_timeout,
|
1744
|
+
_request_auth=_request_auth,
|
1745
|
+
_content_type=_content_type,
|
1746
|
+
_headers=_headers,
|
1747
|
+
_host_index=_host_index,
|
1748
|
+
)
|
1749
|
+
|
1750
|
+
def _get_api_keys_serialize(
|
1751
|
+
self,
|
1752
|
+
_request_auth,
|
1753
|
+
_content_type,
|
1754
|
+
_headers,
|
1755
|
+
_host_index,
|
1756
|
+
) -> RequestSerialized:
|
1757
|
+
|
1758
|
+
_host = None
|
995
1759
|
|
996
1760
|
_collection_formats: Dict[str, str] = {}
|
997
1761
|
|
@@ -1035,7 +1799,119 @@ class AuthApi:
|
|
1035
1799
|
)
|
1036
1800
|
|
1037
1801
|
@validate_call
|
1038
|
-
|
1802
|
+
def get_google_auth_url(
|
1803
|
+
self,
|
1804
|
+
origin: StrictStr,
|
1805
|
+
_request_timeout: Union[
|
1806
|
+
None,
|
1807
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1808
|
+
Tuple[
|
1809
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1810
|
+
],
|
1811
|
+
] = None,
|
1812
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1813
|
+
_content_type: Optional[StrictStr] = None,
|
1814
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1815
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1816
|
+
) -> str:
|
1817
|
+
"""Get Google Auth URL"""
|
1818
|
+
if self.is_sync:
|
1819
|
+
return self._get_google_auth_url_sync(
|
1820
|
+
origin=origin,
|
1821
|
+
_request_timeout=_request_timeout,
|
1822
|
+
_request_auth=_request_auth,
|
1823
|
+
_content_type=_content_type,
|
1824
|
+
_headers=_headers,
|
1825
|
+
_host_index=_host_index,
|
1826
|
+
)
|
1827
|
+
|
1828
|
+
else:
|
1829
|
+
return self._get_google_auth_url_async(
|
1830
|
+
origin=origin,
|
1831
|
+
_request_timeout=_request_timeout,
|
1832
|
+
_request_auth=_request_auth,
|
1833
|
+
_content_type=_content_type,
|
1834
|
+
_headers=_headers,
|
1835
|
+
_host_index=_host_index,
|
1836
|
+
)
|
1837
|
+
|
1838
|
+
@validate_call
|
1839
|
+
def get_google_auth_url_with_http_info(
|
1840
|
+
self,
|
1841
|
+
origin: StrictStr,
|
1842
|
+
_request_timeout: Union[
|
1843
|
+
None,
|
1844
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1845
|
+
Tuple[
|
1846
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1847
|
+
],
|
1848
|
+
] = None,
|
1849
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1850
|
+
_content_type: Optional[StrictStr] = None,
|
1851
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1852
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1853
|
+
) -> ApiResponse[str]:
|
1854
|
+
"""Get Google Auth URL with HTTP info"""
|
1855
|
+
if self.is_sync:
|
1856
|
+
return self._get_google_auth_url_sync_with_http_info(
|
1857
|
+
origin=origin,
|
1858
|
+
_request_timeout=_request_timeout,
|
1859
|
+
_request_auth=_request_auth,
|
1860
|
+
_content_type=_content_type,
|
1861
|
+
_headers=_headers,
|
1862
|
+
_host_index=_host_index,
|
1863
|
+
)
|
1864
|
+
|
1865
|
+
else:
|
1866
|
+
return self._get_google_auth_url_async_with_http_info(
|
1867
|
+
origin=origin,
|
1868
|
+
_request_timeout=_request_timeout,
|
1869
|
+
_request_auth=_request_auth,
|
1870
|
+
_content_type=_content_type,
|
1871
|
+
_headers=_headers,
|
1872
|
+
_host_index=_host_index,
|
1873
|
+
)
|
1874
|
+
|
1875
|
+
@validate_call
|
1876
|
+
def get_google_auth_url_without_preload_content(
|
1877
|
+
self,
|
1878
|
+
origin: StrictStr,
|
1879
|
+
_request_timeout: Union[
|
1880
|
+
None,
|
1881
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1882
|
+
Tuple[
|
1883
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1884
|
+
],
|
1885
|
+
] = None,
|
1886
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1887
|
+
_content_type: Optional[StrictStr] = None,
|
1888
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1889
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1890
|
+
) -> RESTResponseType:
|
1891
|
+
"""Get Google Auth URL without preloading content"""
|
1892
|
+
if self.is_sync:
|
1893
|
+
return self._get_google_auth_url_sync_without_preload_content(
|
1894
|
+
origin=origin,
|
1895
|
+
_request_timeout=_request_timeout,
|
1896
|
+
_request_auth=_request_auth,
|
1897
|
+
_content_type=_content_type,
|
1898
|
+
_headers=_headers,
|
1899
|
+
_host_index=_host_index,
|
1900
|
+
)
|
1901
|
+
|
1902
|
+
else:
|
1903
|
+
return self._get_google_auth_url_async_without_preload_content(
|
1904
|
+
origin=origin,
|
1905
|
+
_request_timeout=_request_timeout,
|
1906
|
+
_request_auth=_request_auth,
|
1907
|
+
_content_type=_content_type,
|
1908
|
+
_headers=_headers,
|
1909
|
+
_host_index=_host_index,
|
1910
|
+
)
|
1911
|
+
|
1912
|
+
# Private async implementation methods
|
1913
|
+
@validate_call
|
1914
|
+
async def _get_google_auth_url_async(
|
1039
1915
|
self,
|
1040
1916
|
origin: StrictStr,
|
1041
1917
|
_request_timeout: Union[
|
@@ -1099,7 +1975,7 @@ class AuthApi:
|
|
1099
1975
|
).data
|
1100
1976
|
|
1101
1977
|
@validate_call
|
1102
|
-
async def
|
1978
|
+
async def _get_google_auth_url_async_with_http_info(
|
1103
1979
|
self,
|
1104
1980
|
origin: StrictStr,
|
1105
1981
|
_request_timeout: Union[
|
@@ -1158,12 +2034,11 @@ class AuthApi:
|
|
1158
2034
|
)
|
1159
2035
|
await response_data.read()
|
1160
2036
|
return self.api_client.response_deserialize(
|
1161
|
-
response_data=response_data,
|
1162
|
-
response_types_map=_response_types_map,
|
2037
|
+
response_data=response_data, response_types_map=_response_types_map
|
1163
2038
|
)
|
1164
2039
|
|
1165
2040
|
@validate_call
|
1166
|
-
async def
|
2041
|
+
async def _get_google_auth_url_async_without_preload_content(
|
1167
2042
|
self,
|
1168
2043
|
origin: StrictStr,
|
1169
2044
|
_request_timeout: Union[
|
@@ -1220,7 +2095,86 @@ class AuthApi:
|
|
1220
2095
|
response_data = await self.api_client.call_api(
|
1221
2096
|
*_param, _request_timeout=_request_timeout
|
1222
2097
|
)
|
1223
|
-
return response_data
|
2098
|
+
return response_data
|
2099
|
+
|
2100
|
+
# Private sync implementation methods
|
2101
|
+
@validate_call
|
2102
|
+
def _get_google_auth_url_sync(
|
2103
|
+
self,
|
2104
|
+
origin: StrictStr,
|
2105
|
+
_request_timeout: Union[
|
2106
|
+
None,
|
2107
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2108
|
+
Tuple[
|
2109
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2110
|
+
],
|
2111
|
+
] = None,
|
2112
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2113
|
+
_content_type: Optional[StrictStr] = None,
|
2114
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2115
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2116
|
+
) -> str:
|
2117
|
+
"""Synchronous version of get_google_auth_url"""
|
2118
|
+
return async_to_sync(self._get_google_auth_url_async)(
|
2119
|
+
origin=origin,
|
2120
|
+
_request_timeout=_request_timeout,
|
2121
|
+
_request_auth=_request_auth,
|
2122
|
+
_content_type=_content_type,
|
2123
|
+
_headers=_headers,
|
2124
|
+
_host_index=_host_index,
|
2125
|
+
)
|
2126
|
+
|
2127
|
+
@validate_call
|
2128
|
+
def _get_google_auth_url_sync_with_http_info(
|
2129
|
+
self,
|
2130
|
+
origin: StrictStr,
|
2131
|
+
_request_timeout: Union[
|
2132
|
+
None,
|
2133
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2134
|
+
Tuple[
|
2135
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2136
|
+
],
|
2137
|
+
] = None,
|
2138
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2139
|
+
_content_type: Optional[StrictStr] = None,
|
2140
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2141
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2142
|
+
) -> ApiResponse[str]:
|
2143
|
+
"""Synchronous version of get_google_auth_url_with_http_info"""
|
2144
|
+
return async_to_sync(self._get_google_auth_url_async_with_http_info)(
|
2145
|
+
origin=origin,
|
2146
|
+
_request_timeout=_request_timeout,
|
2147
|
+
_request_auth=_request_auth,
|
2148
|
+
_content_type=_content_type,
|
2149
|
+
_headers=_headers,
|
2150
|
+
_host_index=_host_index,
|
2151
|
+
)
|
2152
|
+
|
2153
|
+
@validate_call
|
2154
|
+
def _get_google_auth_url_sync_without_preload_content(
|
2155
|
+
self,
|
2156
|
+
origin: StrictStr,
|
2157
|
+
_request_timeout: Union[
|
2158
|
+
None,
|
2159
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2160
|
+
Tuple[
|
2161
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2162
|
+
],
|
2163
|
+
] = None,
|
2164
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2165
|
+
_content_type: Optional[StrictStr] = None,
|
2166
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2167
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2168
|
+
) -> RESTResponseType:
|
2169
|
+
"""Synchronous version of get_google_auth_url_without_preload_content"""
|
2170
|
+
return async_to_sync(self._get_google_auth_url_async_without_preload_content)(
|
2171
|
+
origin=origin,
|
2172
|
+
_request_timeout=_request_timeout,
|
2173
|
+
_request_auth=_request_auth,
|
2174
|
+
_content_type=_content_type,
|
2175
|
+
_headers=_headers,
|
2176
|
+
_host_index=_host_index,
|
2177
|
+
)
|
1224
2178
|
|
1225
2179
|
def _get_google_auth_url_serialize(
|
1226
2180
|
self,
|
@@ -1279,13 +2233,8 @@ class AuthApi:
|
|
1279
2233
|
)
|
1280
2234
|
|
1281
2235
|
@validate_call
|
1282
|
-
|
2236
|
+
def get_user_scopes(
|
1283
2237
|
self,
|
1284
|
-
code: StrictStr,
|
1285
|
-
scope: StrictStr,
|
1286
|
-
authuser: StrictStr,
|
1287
|
-
prompt: StrictStr,
|
1288
|
-
origin: StrictStr,
|
1289
2238
|
_request_timeout: Union[
|
1290
2239
|
None,
|
1291
2240
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1297,21 +2246,114 @@ class AuthApi:
|
|
1297
2246
|
_content_type: Optional[StrictStr] = None,
|
1298
2247
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1299
2248
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1300
|
-
) ->
|
1301
|
-
"""
|
2249
|
+
) -> List[str]:
|
2250
|
+
"""Get User Scopes"""
|
2251
|
+
if self.is_sync:
|
2252
|
+
return self._get_user_scopes_sync(
|
2253
|
+
_request_timeout=_request_timeout,
|
2254
|
+
_request_auth=_request_auth,
|
2255
|
+
_content_type=_content_type,
|
2256
|
+
_headers=_headers,
|
2257
|
+
_host_index=_host_index,
|
2258
|
+
)
|
1302
2259
|
|
1303
|
-
|
2260
|
+
else:
|
2261
|
+
return self._get_user_scopes_async(
|
2262
|
+
_request_timeout=_request_timeout,
|
2263
|
+
_request_auth=_request_auth,
|
2264
|
+
_content_type=_content_type,
|
2265
|
+
_headers=_headers,
|
2266
|
+
_host_index=_host_index,
|
2267
|
+
)
|
2268
|
+
|
2269
|
+
@validate_call
|
2270
|
+
def get_user_scopes_with_http_info(
|
2271
|
+
self,
|
2272
|
+
_request_timeout: Union[
|
2273
|
+
None,
|
2274
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2275
|
+
Tuple[
|
2276
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2277
|
+
],
|
2278
|
+
] = None,
|
2279
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2280
|
+
_content_type: Optional[StrictStr] = None,
|
2281
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2282
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2283
|
+
) -> ApiResponse[List[str]]:
|
2284
|
+
"""Get User Scopes with HTTP info"""
|
2285
|
+
if self.is_sync:
|
2286
|
+
return self._get_user_scopes_sync_with_http_info(
|
2287
|
+
_request_timeout=_request_timeout,
|
2288
|
+
_request_auth=_request_auth,
|
2289
|
+
_content_type=_content_type,
|
2290
|
+
_headers=_headers,
|
2291
|
+
_host_index=_host_index,
|
2292
|
+
)
|
2293
|
+
|
2294
|
+
else:
|
2295
|
+
return self._get_user_scopes_async_with_http_info(
|
2296
|
+
_request_timeout=_request_timeout,
|
2297
|
+
_request_auth=_request_auth,
|
2298
|
+
_content_type=_content_type,
|
2299
|
+
_headers=_headers,
|
2300
|
+
_host_index=_host_index,
|
2301
|
+
)
|
2302
|
+
|
2303
|
+
@validate_call
|
2304
|
+
def get_user_scopes_without_preload_content(
|
2305
|
+
self,
|
2306
|
+
_request_timeout: Union[
|
2307
|
+
None,
|
2308
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2309
|
+
Tuple[
|
2310
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2311
|
+
],
|
2312
|
+
] = None,
|
2313
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2314
|
+
_content_type: Optional[StrictStr] = None,
|
2315
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2316
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2317
|
+
) -> RESTResponseType:
|
2318
|
+
"""Get User Scopes without preloading content"""
|
2319
|
+
if self.is_sync:
|
2320
|
+
return self._get_user_scopes_sync_without_preload_content(
|
2321
|
+
_request_timeout=_request_timeout,
|
2322
|
+
_request_auth=_request_auth,
|
2323
|
+
_content_type=_content_type,
|
2324
|
+
_headers=_headers,
|
2325
|
+
_host_index=_host_index,
|
2326
|
+
)
|
2327
|
+
|
2328
|
+
else:
|
2329
|
+
return self._get_user_scopes_async_without_preload_content(
|
2330
|
+
_request_timeout=_request_timeout,
|
2331
|
+
_request_auth=_request_auth,
|
2332
|
+
_content_type=_content_type,
|
2333
|
+
_headers=_headers,
|
2334
|
+
_host_index=_host_index,
|
2335
|
+
)
|
2336
|
+
|
2337
|
+
# Private async implementation methods
|
2338
|
+
@validate_call
|
2339
|
+
async def _get_user_scopes_async(
|
2340
|
+
self,
|
2341
|
+
_request_timeout: Union[
|
2342
|
+
None,
|
2343
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2344
|
+
Tuple[
|
2345
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2346
|
+
],
|
2347
|
+
] = None,
|
2348
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2349
|
+
_content_type: Optional[StrictStr] = None,
|
2350
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2351
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2352
|
+
) -> List[str]:
|
2353
|
+
"""Get User Scopes
|
2354
|
+
|
2355
|
+
Gets the scopes for the user.
|
1304
2356
|
|
1305
|
-
:param code: (required)
|
1306
|
-
:type code: str
|
1307
|
-
:param scope: (required)
|
1308
|
-
:type scope: str
|
1309
|
-
:param authuser: (required)
|
1310
|
-
:type authuser: str
|
1311
|
-
:param prompt: (required)
|
1312
|
-
:type prompt: str
|
1313
|
-
:param origin: (required)
|
1314
|
-
:type origin: str
|
1315
2357
|
:param _request_timeout: timeout setting for this request. If one
|
1316
2358
|
number provided, it will be total request
|
1317
2359
|
timeout. It can also be a pair (tuple) of
|
@@ -1334,12 +2376,7 @@ class AuthApi:
|
|
1334
2376
|
:return: Returns the result object.
|
1335
2377
|
""" # noqa: E501
|
1336
2378
|
|
1337
|
-
_param = self.
|
1338
|
-
code=code,
|
1339
|
-
scope=scope,
|
1340
|
-
authuser=authuser,
|
1341
|
-
prompt=prompt,
|
1342
|
-
origin=origin,
|
2379
|
+
_param = self._get_user_scopes_serialize(
|
1343
2380
|
_request_auth=_request_auth,
|
1344
2381
|
_content_type=_content_type,
|
1345
2382
|
_headers=_headers,
|
@@ -1347,7 +2384,7 @@ class AuthApi:
|
|
1347
2384
|
)
|
1348
2385
|
|
1349
2386
|
_response_types_map: Dict[str, Optional[str]] = {
|
1350
|
-
"200": "
|
2387
|
+
"200": "List[str]",
|
1351
2388
|
}
|
1352
2389
|
response_data = await self.api_client.call_api(
|
1353
2390
|
*_param, _request_timeout=_request_timeout
|
@@ -1359,13 +2396,8 @@ class AuthApi:
|
|
1359
2396
|
).data
|
1360
2397
|
|
1361
2398
|
@validate_call
|
1362
|
-
async def
|
2399
|
+
async def _get_user_scopes_async_with_http_info(
|
1363
2400
|
self,
|
1364
|
-
code: StrictStr,
|
1365
|
-
scope: StrictStr,
|
1366
|
-
authuser: StrictStr,
|
1367
|
-
prompt: StrictStr,
|
1368
|
-
origin: StrictStr,
|
1369
2401
|
_request_timeout: Union[
|
1370
2402
|
None,
|
1371
2403
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1377,21 +2409,11 @@ class AuthApi:
|
|
1377
2409
|
_content_type: Optional[StrictStr] = None,
|
1378
2410
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1379
2411
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1380
|
-
) -> ApiResponse[
|
1381
|
-
"""
|
2412
|
+
) -> ApiResponse[List[str]]:
|
2413
|
+
"""Get User Scopes
|
1382
2414
|
|
1383
|
-
|
2415
|
+
Gets the scopes for the user.
|
1384
2416
|
|
1385
|
-
:param code: (required)
|
1386
|
-
:type code: str
|
1387
|
-
:param scope: (required)
|
1388
|
-
:type scope: str
|
1389
|
-
:param authuser: (required)
|
1390
|
-
:type authuser: str
|
1391
|
-
:param prompt: (required)
|
1392
|
-
:type prompt: str
|
1393
|
-
:param origin: (required)
|
1394
|
-
:type origin: str
|
1395
2417
|
:param _request_timeout: timeout setting for this request. If one
|
1396
2418
|
number provided, it will be total request
|
1397
2419
|
timeout. It can also be a pair (tuple) of
|
@@ -1414,12 +2436,7 @@ class AuthApi:
|
|
1414
2436
|
:return: Returns the result object.
|
1415
2437
|
""" # noqa: E501
|
1416
2438
|
|
1417
|
-
_param = self.
|
1418
|
-
code=code,
|
1419
|
-
scope=scope,
|
1420
|
-
authuser=authuser,
|
1421
|
-
prompt=prompt,
|
1422
|
-
origin=origin,
|
2439
|
+
_param = self._get_user_scopes_serialize(
|
1423
2440
|
_request_auth=_request_auth,
|
1424
2441
|
_content_type=_content_type,
|
1425
2442
|
_headers=_headers,
|
@@ -1427,25 +2444,19 @@ class AuthApi:
|
|
1427
2444
|
)
|
1428
2445
|
|
1429
2446
|
_response_types_map: Dict[str, Optional[str]] = {
|
1430
|
-
"200": "
|
2447
|
+
"200": "List[str]",
|
1431
2448
|
}
|
1432
2449
|
response_data = await self.api_client.call_api(
|
1433
2450
|
*_param, _request_timeout=_request_timeout
|
1434
2451
|
)
|
1435
2452
|
await response_data.read()
|
1436
2453
|
return self.api_client.response_deserialize(
|
1437
|
-
response_data=response_data,
|
1438
|
-
response_types_map=_response_types_map,
|
2454
|
+
response_data=response_data, response_types_map=_response_types_map
|
1439
2455
|
)
|
1440
2456
|
|
1441
2457
|
@validate_call
|
1442
|
-
async def
|
2458
|
+
async def _get_user_scopes_async_without_preload_content(
|
1443
2459
|
self,
|
1444
|
-
code: StrictStr,
|
1445
|
-
scope: StrictStr,
|
1446
|
-
authuser: StrictStr,
|
1447
|
-
prompt: StrictStr,
|
1448
|
-
origin: StrictStr,
|
1449
2460
|
_request_timeout: Union[
|
1450
2461
|
None,
|
1451
2462
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1458,20 +2469,10 @@ class AuthApi:
|
|
1458
2469
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1459
2470
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1460
2471
|
) -> RESTResponseType:
|
1461
|
-
"""
|
2472
|
+
"""Get User Scopes
|
1462
2473
|
|
1463
|
-
|
2474
|
+
Gets the scopes for the user.
|
1464
2475
|
|
1465
|
-
:param code: (required)
|
1466
|
-
:type code: str
|
1467
|
-
:param scope: (required)
|
1468
|
-
:type scope: str
|
1469
|
-
:param authuser: (required)
|
1470
|
-
:type authuser: str
|
1471
|
-
:param prompt: (required)
|
1472
|
-
:type prompt: str
|
1473
|
-
:param origin: (required)
|
1474
|
-
:type origin: str
|
1475
2476
|
:param _request_timeout: timeout setting for this request. If one
|
1476
2477
|
number provided, it will be total request
|
1477
2478
|
timeout. It can also be a pair (tuple) of
|
@@ -1494,12 +2495,7 @@ class AuthApi:
|
|
1494
2495
|
:return: Returns the result object.
|
1495
2496
|
""" # noqa: E501
|
1496
2497
|
|
1497
|
-
_param = self.
|
1498
|
-
code=code,
|
1499
|
-
scope=scope,
|
1500
|
-
authuser=authuser,
|
1501
|
-
prompt=prompt,
|
1502
|
-
origin=origin,
|
2498
|
+
_param = self._get_user_scopes_serialize(
|
1503
2499
|
_request_auth=_request_auth,
|
1504
2500
|
_content_type=_content_type,
|
1505
2501
|
_headers=_headers,
|
@@ -1507,20 +2503,88 @@ class AuthApi:
|
|
1507
2503
|
)
|
1508
2504
|
|
1509
2505
|
_response_types_map: Dict[str, Optional[str]] = {
|
1510
|
-
"200": "
|
2506
|
+
"200": "List[str]",
|
1511
2507
|
}
|
1512
2508
|
response_data = await self.api_client.call_api(
|
1513
2509
|
*_param, _request_timeout=_request_timeout
|
1514
2510
|
)
|
1515
|
-
return response_data
|
2511
|
+
return response_data
|
1516
2512
|
|
1517
|
-
|
2513
|
+
# Private sync implementation methods
|
2514
|
+
@validate_call
|
2515
|
+
def _get_user_scopes_sync(
|
2516
|
+
self,
|
2517
|
+
_request_timeout: Union[
|
2518
|
+
None,
|
2519
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2520
|
+
Tuple[
|
2521
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2522
|
+
],
|
2523
|
+
] = None,
|
2524
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2525
|
+
_content_type: Optional[StrictStr] = None,
|
2526
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2527
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2528
|
+
) -> List[str]:
|
2529
|
+
"""Synchronous version of get_user_scopes"""
|
2530
|
+
return async_to_sync(self._get_user_scopes_async)(
|
2531
|
+
_request_timeout=_request_timeout,
|
2532
|
+
_request_auth=_request_auth,
|
2533
|
+
_content_type=_content_type,
|
2534
|
+
_headers=_headers,
|
2535
|
+
_host_index=_host_index,
|
2536
|
+
)
|
2537
|
+
|
2538
|
+
@validate_call
|
2539
|
+
def _get_user_scopes_sync_with_http_info(
|
2540
|
+
self,
|
2541
|
+
_request_timeout: Union[
|
2542
|
+
None,
|
2543
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2544
|
+
Tuple[
|
2545
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2546
|
+
],
|
2547
|
+
] = None,
|
2548
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2549
|
+
_content_type: Optional[StrictStr] = None,
|
2550
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2551
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2552
|
+
) -> ApiResponse[List[str]]:
|
2553
|
+
"""Synchronous version of get_user_scopes_with_http_info"""
|
2554
|
+
return async_to_sync(self._get_user_scopes_async_with_http_info)(
|
2555
|
+
_request_timeout=_request_timeout,
|
2556
|
+
_request_auth=_request_auth,
|
2557
|
+
_content_type=_content_type,
|
2558
|
+
_headers=_headers,
|
2559
|
+
_host_index=_host_index,
|
2560
|
+
)
|
2561
|
+
|
2562
|
+
@validate_call
|
2563
|
+
def _get_user_scopes_sync_without_preload_content(
|
2564
|
+
self,
|
2565
|
+
_request_timeout: Union[
|
2566
|
+
None,
|
2567
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2568
|
+
Tuple[
|
2569
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2570
|
+
],
|
2571
|
+
] = None,
|
2572
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2573
|
+
_content_type: Optional[StrictStr] = None,
|
2574
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2575
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2576
|
+
) -> RESTResponseType:
|
2577
|
+
"""Synchronous version of get_user_scopes_without_preload_content"""
|
2578
|
+
return async_to_sync(self._get_user_scopes_async_without_preload_content)(
|
2579
|
+
_request_timeout=_request_timeout,
|
2580
|
+
_request_auth=_request_auth,
|
2581
|
+
_content_type=_content_type,
|
2582
|
+
_headers=_headers,
|
2583
|
+
_host_index=_host_index,
|
2584
|
+
)
|
2585
|
+
|
2586
|
+
def _get_user_scopes_serialize(
|
1518
2587
|
self,
|
1519
|
-
code,
|
1520
|
-
scope,
|
1521
|
-
authuser,
|
1522
|
-
prompt,
|
1523
|
-
origin,
|
1524
2588
|
_request_auth,
|
1525
2589
|
_content_type,
|
1526
2590
|
_headers,
|
@@ -1542,56 +2606,1178 @@ class AuthApi:
|
|
1542
2606
|
|
1543
2607
|
# process the path parameters
|
1544
2608
|
# process the query parameters
|
1545
|
-
|
2609
|
+
# process the header parameters
|
2610
|
+
# process the form parameters
|
2611
|
+
# process the body parameter
|
1546
2612
|
|
1547
|
-
|
2613
|
+
# set the HTTP header `Accept`
|
2614
|
+
if "Accept" not in _header_params:
|
2615
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
2616
|
+
["application/json"]
|
2617
|
+
)
|
1548
2618
|
|
1549
|
-
|
2619
|
+
# authentication setting
|
2620
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
1550
2621
|
|
1551
|
-
|
2622
|
+
return self.api_client.param_serialize(
|
2623
|
+
method="GET",
|
2624
|
+
resource_path="/get-user-scopes",
|
2625
|
+
path_params=_path_params,
|
2626
|
+
query_params=_query_params,
|
2627
|
+
header_params=_header_params,
|
2628
|
+
body=_body_params,
|
2629
|
+
post_params=_form_params,
|
2630
|
+
files=_files,
|
2631
|
+
auth_settings=_auth_settings,
|
2632
|
+
collection_formats=_collection_formats,
|
2633
|
+
_host=_host,
|
2634
|
+
_request_auth=_request_auth,
|
2635
|
+
)
|
1552
2636
|
|
1553
|
-
|
2637
|
+
@validate_call
|
2638
|
+
def oauth_callback(
|
2639
|
+
self,
|
2640
|
+
code: StrictStr,
|
2641
|
+
scope: StrictStr,
|
2642
|
+
authuser: StrictStr,
|
2643
|
+
prompt: StrictStr,
|
2644
|
+
origin: StrictStr,
|
2645
|
+
_request_timeout: Union[
|
2646
|
+
None,
|
2647
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2648
|
+
Tuple[
|
2649
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2650
|
+
],
|
2651
|
+
] = None,
|
2652
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2653
|
+
_content_type: Optional[StrictStr] = None,
|
2654
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2655
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2656
|
+
) -> OauthCallback200Response:
|
2657
|
+
"""OAuth Callback"""
|
2658
|
+
if self.is_sync:
|
2659
|
+
return self._oauth_callback_sync(
|
2660
|
+
code=code,
|
2661
|
+
scope=scope,
|
2662
|
+
authuser=authuser,
|
2663
|
+
prompt=prompt,
|
2664
|
+
origin=origin,
|
2665
|
+
_request_timeout=_request_timeout,
|
2666
|
+
_request_auth=_request_auth,
|
2667
|
+
_content_type=_content_type,
|
2668
|
+
_headers=_headers,
|
2669
|
+
_host_index=_host_index,
|
2670
|
+
)
|
1554
2671
|
|
1555
|
-
|
2672
|
+
else:
|
2673
|
+
return self._oauth_callback_async(
|
2674
|
+
code=code,
|
2675
|
+
scope=scope,
|
2676
|
+
authuser=authuser,
|
2677
|
+
prompt=prompt,
|
2678
|
+
origin=origin,
|
2679
|
+
_request_timeout=_request_timeout,
|
2680
|
+
_request_auth=_request_auth,
|
2681
|
+
_content_type=_content_type,
|
2682
|
+
_headers=_headers,
|
2683
|
+
_host_index=_host_index,
|
2684
|
+
)
|
1556
2685
|
|
1557
|
-
|
2686
|
+
@validate_call
|
2687
|
+
def oauth_callback_with_http_info(
|
2688
|
+
self,
|
2689
|
+
code: StrictStr,
|
2690
|
+
scope: StrictStr,
|
2691
|
+
authuser: StrictStr,
|
2692
|
+
prompt: StrictStr,
|
2693
|
+
origin: StrictStr,
|
2694
|
+
_request_timeout: Union[
|
2695
|
+
None,
|
2696
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2697
|
+
Tuple[
|
2698
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2699
|
+
],
|
2700
|
+
] = None,
|
2701
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2702
|
+
_content_type: Optional[StrictStr] = None,
|
2703
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2704
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2705
|
+
) -> ApiResponse[OauthCallback200Response]:
|
2706
|
+
"""OAuth Callback with HTTP info"""
|
2707
|
+
if self.is_sync:
|
2708
|
+
return self._oauth_callback_sync_with_http_info(
|
2709
|
+
code=code,
|
2710
|
+
scope=scope,
|
2711
|
+
authuser=authuser,
|
2712
|
+
prompt=prompt,
|
2713
|
+
origin=origin,
|
2714
|
+
_request_timeout=_request_timeout,
|
2715
|
+
_request_auth=_request_auth,
|
2716
|
+
_content_type=_content_type,
|
2717
|
+
_headers=_headers,
|
2718
|
+
_host_index=_host_index,
|
2719
|
+
)
|
1558
2720
|
|
1559
|
-
|
2721
|
+
else:
|
2722
|
+
return self._oauth_callback_async_with_http_info(
|
2723
|
+
code=code,
|
2724
|
+
scope=scope,
|
2725
|
+
authuser=authuser,
|
2726
|
+
prompt=prompt,
|
2727
|
+
origin=origin,
|
2728
|
+
_request_timeout=_request_timeout,
|
2729
|
+
_request_auth=_request_auth,
|
2730
|
+
_content_type=_content_type,
|
2731
|
+
_headers=_headers,
|
2732
|
+
_host_index=_host_index,
|
2733
|
+
)
|
1560
2734
|
|
1561
|
-
|
2735
|
+
@validate_call
|
2736
|
+
def oauth_callback_without_preload_content(
|
2737
|
+
self,
|
2738
|
+
code: StrictStr,
|
2739
|
+
scope: StrictStr,
|
2740
|
+
authuser: StrictStr,
|
2741
|
+
prompt: StrictStr,
|
2742
|
+
origin: StrictStr,
|
2743
|
+
_request_timeout: Union[
|
2744
|
+
None,
|
2745
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2746
|
+
Tuple[
|
2747
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2748
|
+
],
|
2749
|
+
] = None,
|
2750
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2751
|
+
_content_type: Optional[StrictStr] = None,
|
2752
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2753
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2754
|
+
) -> RESTResponseType:
|
2755
|
+
"""OAuth Callback without preloading content"""
|
2756
|
+
if self.is_sync:
|
2757
|
+
return self._oauth_callback_sync_without_preload_content(
|
2758
|
+
code=code,
|
2759
|
+
scope=scope,
|
2760
|
+
authuser=authuser,
|
2761
|
+
prompt=prompt,
|
2762
|
+
origin=origin,
|
2763
|
+
_request_timeout=_request_timeout,
|
2764
|
+
_request_auth=_request_auth,
|
2765
|
+
_content_type=_content_type,
|
2766
|
+
_headers=_headers,
|
2767
|
+
_host_index=_host_index,
|
2768
|
+
)
|
1562
2769
|
|
1563
|
-
|
2770
|
+
else:
|
2771
|
+
return self._oauth_callback_async_without_preload_content(
|
2772
|
+
code=code,
|
2773
|
+
scope=scope,
|
2774
|
+
authuser=authuser,
|
2775
|
+
prompt=prompt,
|
2776
|
+
origin=origin,
|
2777
|
+
_request_timeout=_request_timeout,
|
2778
|
+
_request_auth=_request_auth,
|
2779
|
+
_content_type=_content_type,
|
2780
|
+
_headers=_headers,
|
2781
|
+
_host_index=_host_index,
|
2782
|
+
)
|
2783
|
+
|
2784
|
+
# Private async implementation methods
|
2785
|
+
@validate_call
|
2786
|
+
async def _oauth_callback_async(
|
2787
|
+
self,
|
2788
|
+
code: StrictStr,
|
2789
|
+
scope: StrictStr,
|
2790
|
+
authuser: StrictStr,
|
2791
|
+
prompt: StrictStr,
|
2792
|
+
origin: StrictStr,
|
2793
|
+
_request_timeout: Union[
|
2794
|
+
None,
|
2795
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2796
|
+
Tuple[
|
2797
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2798
|
+
],
|
2799
|
+
] = None,
|
2800
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2801
|
+
_content_type: Optional[StrictStr] = None,
|
2802
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2803
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2804
|
+
) -> OauthCallback200Response:
|
2805
|
+
"""OAuth Callback
|
2806
|
+
|
2807
|
+
Handles the OAuth callback from Google.
|
2808
|
+
|
2809
|
+
:param code: (required)
|
2810
|
+
:type code: str
|
2811
|
+
:param scope: (required)
|
2812
|
+
:type scope: str
|
2813
|
+
:param authuser: (required)
|
2814
|
+
:type authuser: str
|
2815
|
+
:param prompt: (required)
|
2816
|
+
:type prompt: str
|
2817
|
+
:param origin: (required)
|
2818
|
+
:type origin: str
|
2819
|
+
:param _request_timeout: timeout setting for this request. If one
|
2820
|
+
number provided, it will be total request
|
2821
|
+
timeout. It can also be a pair (tuple) of
|
2822
|
+
(connection, read) timeouts.
|
2823
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2824
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2825
|
+
request; this effectively ignores the
|
2826
|
+
authentication in the spec for a single request.
|
2827
|
+
:type _request_auth: dict, optional
|
2828
|
+
:param _content_type: force content-type for the request.
|
2829
|
+
:type _content_type: str, Optional
|
2830
|
+
:param _headers: set to override the headers for a single
|
2831
|
+
request; this effectively ignores the headers
|
2832
|
+
in the spec for a single request.
|
2833
|
+
:type _headers: dict, optional
|
2834
|
+
:param _host_index: set to override the host_index for a single
|
2835
|
+
request; this effectively ignores the host_index
|
2836
|
+
in the spec for a single request.
|
2837
|
+
:type _host_index: int, optional
|
2838
|
+
:return: Returns the result object.
|
2839
|
+
""" # noqa: E501
|
2840
|
+
|
2841
|
+
_param = self._oauth_callback_serialize(
|
2842
|
+
code=code,
|
2843
|
+
scope=scope,
|
2844
|
+
authuser=authuser,
|
2845
|
+
prompt=prompt,
|
2846
|
+
origin=origin,
|
2847
|
+
_request_auth=_request_auth,
|
2848
|
+
_content_type=_content_type,
|
2849
|
+
_headers=_headers,
|
2850
|
+
_host_index=_host_index,
|
2851
|
+
)
|
2852
|
+
|
2853
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2854
|
+
"200": "OauthCallback200Response",
|
2855
|
+
}
|
2856
|
+
response_data = await self.api_client.call_api(
|
2857
|
+
*_param, _request_timeout=_request_timeout
|
2858
|
+
)
|
2859
|
+
await response_data.read()
|
2860
|
+
return self.api_client.response_deserialize(
|
2861
|
+
response_data=response_data,
|
2862
|
+
response_types_map=_response_types_map,
|
2863
|
+
).data
|
2864
|
+
|
2865
|
+
@validate_call
|
2866
|
+
async def _oauth_callback_async_with_http_info(
|
2867
|
+
self,
|
2868
|
+
code: StrictStr,
|
2869
|
+
scope: StrictStr,
|
2870
|
+
authuser: StrictStr,
|
2871
|
+
prompt: StrictStr,
|
2872
|
+
origin: StrictStr,
|
2873
|
+
_request_timeout: Union[
|
2874
|
+
None,
|
2875
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2876
|
+
Tuple[
|
2877
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2878
|
+
],
|
2879
|
+
] = None,
|
2880
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2881
|
+
_content_type: Optional[StrictStr] = None,
|
2882
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2883
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2884
|
+
) -> ApiResponse[OauthCallback200Response]:
|
2885
|
+
"""OAuth Callback
|
2886
|
+
|
2887
|
+
Handles the OAuth callback from Google.
|
2888
|
+
|
2889
|
+
:param code: (required)
|
2890
|
+
:type code: str
|
2891
|
+
:param scope: (required)
|
2892
|
+
:type scope: str
|
2893
|
+
:param authuser: (required)
|
2894
|
+
:type authuser: str
|
2895
|
+
:param prompt: (required)
|
2896
|
+
:type prompt: str
|
2897
|
+
:param origin: (required)
|
2898
|
+
:type origin: str
|
2899
|
+
:param _request_timeout: timeout setting for this request. If one
|
2900
|
+
number provided, it will be total request
|
2901
|
+
timeout. It can also be a pair (tuple) of
|
2902
|
+
(connection, read) timeouts.
|
2903
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2904
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2905
|
+
request; this effectively ignores the
|
2906
|
+
authentication in the spec for a single request.
|
2907
|
+
:type _request_auth: dict, optional
|
2908
|
+
:param _content_type: force content-type for the request.
|
2909
|
+
:type _content_type: str, Optional
|
2910
|
+
:param _headers: set to override the headers for a single
|
2911
|
+
request; this effectively ignores the headers
|
2912
|
+
in the spec for a single request.
|
2913
|
+
:type _headers: dict, optional
|
2914
|
+
:param _host_index: set to override the host_index for a single
|
2915
|
+
request; this effectively ignores the host_index
|
2916
|
+
in the spec for a single request.
|
2917
|
+
:type _host_index: int, optional
|
2918
|
+
:return: Returns the result object.
|
2919
|
+
""" # noqa: E501
|
2920
|
+
|
2921
|
+
_param = self._oauth_callback_serialize(
|
2922
|
+
code=code,
|
2923
|
+
scope=scope,
|
2924
|
+
authuser=authuser,
|
2925
|
+
prompt=prompt,
|
2926
|
+
origin=origin,
|
2927
|
+
_request_auth=_request_auth,
|
2928
|
+
_content_type=_content_type,
|
2929
|
+
_headers=_headers,
|
2930
|
+
_host_index=_host_index,
|
2931
|
+
)
|
2932
|
+
|
2933
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2934
|
+
"200": "OauthCallback200Response",
|
2935
|
+
}
|
2936
|
+
response_data = await self.api_client.call_api(
|
2937
|
+
*_param, _request_timeout=_request_timeout
|
2938
|
+
)
|
2939
|
+
await response_data.read()
|
2940
|
+
return self.api_client.response_deserialize(
|
2941
|
+
response_data=response_data, response_types_map=_response_types_map
|
2942
|
+
)
|
2943
|
+
|
2944
|
+
@validate_call
|
2945
|
+
async def _oauth_callback_async_without_preload_content(
|
2946
|
+
self,
|
2947
|
+
code: StrictStr,
|
2948
|
+
scope: StrictStr,
|
2949
|
+
authuser: StrictStr,
|
2950
|
+
prompt: StrictStr,
|
2951
|
+
origin: StrictStr,
|
2952
|
+
_request_timeout: Union[
|
2953
|
+
None,
|
2954
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2955
|
+
Tuple[
|
2956
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2957
|
+
],
|
2958
|
+
] = None,
|
2959
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2960
|
+
_content_type: Optional[StrictStr] = None,
|
2961
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2962
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2963
|
+
) -> RESTResponseType:
|
2964
|
+
"""OAuth Callback
|
2965
|
+
|
2966
|
+
Handles the OAuth callback from Google.
|
2967
|
+
|
2968
|
+
:param code: (required)
|
2969
|
+
:type code: str
|
2970
|
+
:param scope: (required)
|
2971
|
+
:type scope: str
|
2972
|
+
:param authuser: (required)
|
2973
|
+
:type authuser: str
|
2974
|
+
:param prompt: (required)
|
2975
|
+
:type prompt: str
|
2976
|
+
:param origin: (required)
|
2977
|
+
:type origin: str
|
2978
|
+
:param _request_timeout: timeout setting for this request. If one
|
2979
|
+
number provided, it will be total request
|
2980
|
+
timeout. It can also be a pair (tuple) of
|
2981
|
+
(connection, read) timeouts.
|
2982
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2983
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2984
|
+
request; this effectively ignores the
|
2985
|
+
authentication in the spec for a single request.
|
2986
|
+
:type _request_auth: dict, optional
|
2987
|
+
:param _content_type: force content-type for the request.
|
2988
|
+
:type _content_type: str, Optional
|
2989
|
+
:param _headers: set to override the headers for a single
|
2990
|
+
request; this effectively ignores the headers
|
2991
|
+
in the spec for a single request.
|
2992
|
+
:type _headers: dict, optional
|
2993
|
+
:param _host_index: set to override the host_index for a single
|
2994
|
+
request; this effectively ignores the host_index
|
2995
|
+
in the spec for a single request.
|
2996
|
+
:type _host_index: int, optional
|
2997
|
+
:return: Returns the result object.
|
2998
|
+
""" # noqa: E501
|
2999
|
+
|
3000
|
+
_param = self._oauth_callback_serialize(
|
3001
|
+
code=code,
|
3002
|
+
scope=scope,
|
3003
|
+
authuser=authuser,
|
3004
|
+
prompt=prompt,
|
3005
|
+
origin=origin,
|
3006
|
+
_request_auth=_request_auth,
|
3007
|
+
_content_type=_content_type,
|
3008
|
+
_headers=_headers,
|
3009
|
+
_host_index=_host_index,
|
3010
|
+
)
|
3011
|
+
|
3012
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3013
|
+
"200": "OauthCallback200Response",
|
3014
|
+
}
|
3015
|
+
response_data = await self.api_client.call_api(
|
3016
|
+
*_param, _request_timeout=_request_timeout
|
3017
|
+
)
|
3018
|
+
return response_data
|
3019
|
+
|
3020
|
+
# Private sync implementation methods
|
3021
|
+
@validate_call
|
3022
|
+
def _oauth_callback_sync(
|
3023
|
+
self,
|
3024
|
+
code: StrictStr,
|
3025
|
+
scope: StrictStr,
|
3026
|
+
authuser: StrictStr,
|
3027
|
+
prompt: StrictStr,
|
3028
|
+
origin: StrictStr,
|
3029
|
+
_request_timeout: Union[
|
3030
|
+
None,
|
3031
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3032
|
+
Tuple[
|
3033
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3034
|
+
],
|
3035
|
+
] = None,
|
3036
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3037
|
+
_content_type: Optional[StrictStr] = None,
|
3038
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3039
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3040
|
+
) -> OauthCallback200Response:
|
3041
|
+
"""Synchronous version of oauth_callback"""
|
3042
|
+
return async_to_sync(self._oauth_callback_async)(
|
3043
|
+
code=code,
|
3044
|
+
scope=scope,
|
3045
|
+
authuser=authuser,
|
3046
|
+
prompt=prompt,
|
3047
|
+
origin=origin,
|
3048
|
+
_request_timeout=_request_timeout,
|
3049
|
+
_request_auth=_request_auth,
|
3050
|
+
_content_type=_content_type,
|
3051
|
+
_headers=_headers,
|
3052
|
+
_host_index=_host_index,
|
3053
|
+
)
|
3054
|
+
|
3055
|
+
@validate_call
|
3056
|
+
def _oauth_callback_sync_with_http_info(
|
3057
|
+
self,
|
3058
|
+
code: StrictStr,
|
3059
|
+
scope: StrictStr,
|
3060
|
+
authuser: StrictStr,
|
3061
|
+
prompt: StrictStr,
|
3062
|
+
origin: StrictStr,
|
3063
|
+
_request_timeout: Union[
|
3064
|
+
None,
|
3065
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3066
|
+
Tuple[
|
3067
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3068
|
+
],
|
3069
|
+
] = None,
|
3070
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3071
|
+
_content_type: Optional[StrictStr] = None,
|
3072
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3073
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3074
|
+
) -> ApiResponse[OauthCallback200Response]:
|
3075
|
+
"""Synchronous version of oauth_callback_with_http_info"""
|
3076
|
+
return async_to_sync(self._oauth_callback_async_with_http_info)(
|
3077
|
+
code=code,
|
3078
|
+
scope=scope,
|
3079
|
+
authuser=authuser,
|
3080
|
+
prompt=prompt,
|
3081
|
+
origin=origin,
|
3082
|
+
_request_timeout=_request_timeout,
|
3083
|
+
_request_auth=_request_auth,
|
3084
|
+
_content_type=_content_type,
|
3085
|
+
_headers=_headers,
|
3086
|
+
_host_index=_host_index,
|
3087
|
+
)
|
3088
|
+
|
3089
|
+
@validate_call
|
3090
|
+
def _oauth_callback_sync_without_preload_content(
|
3091
|
+
self,
|
3092
|
+
code: StrictStr,
|
3093
|
+
scope: StrictStr,
|
3094
|
+
authuser: StrictStr,
|
3095
|
+
prompt: StrictStr,
|
3096
|
+
origin: StrictStr,
|
3097
|
+
_request_timeout: Union[
|
3098
|
+
None,
|
3099
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3100
|
+
Tuple[
|
3101
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3102
|
+
],
|
3103
|
+
] = None,
|
3104
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3105
|
+
_content_type: Optional[StrictStr] = None,
|
3106
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3107
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3108
|
+
) -> RESTResponseType:
|
3109
|
+
"""Synchronous version of oauth_callback_without_preload_content"""
|
3110
|
+
return async_to_sync(self._oauth_callback_async_without_preload_content)(
|
3111
|
+
code=code,
|
3112
|
+
scope=scope,
|
3113
|
+
authuser=authuser,
|
3114
|
+
prompt=prompt,
|
3115
|
+
origin=origin,
|
3116
|
+
_request_timeout=_request_timeout,
|
3117
|
+
_request_auth=_request_auth,
|
3118
|
+
_content_type=_content_type,
|
3119
|
+
_headers=_headers,
|
3120
|
+
_host_index=_host_index,
|
3121
|
+
)
|
3122
|
+
|
3123
|
+
def _oauth_callback_serialize(
|
3124
|
+
self,
|
3125
|
+
code,
|
3126
|
+
scope,
|
3127
|
+
authuser,
|
3128
|
+
prompt,
|
3129
|
+
origin,
|
3130
|
+
_request_auth,
|
3131
|
+
_content_type,
|
3132
|
+
_headers,
|
3133
|
+
_host_index,
|
3134
|
+
) -> RequestSerialized:
|
3135
|
+
|
3136
|
+
_host = None
|
3137
|
+
|
3138
|
+
_collection_formats: Dict[str, str] = {}
|
3139
|
+
|
3140
|
+
_path_params: Dict[str, str] = {}
|
3141
|
+
_query_params: List[Tuple[str, str]] = []
|
3142
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
3143
|
+
_form_params: List[Tuple[str, str]] = []
|
3144
|
+
_files: Dict[
|
3145
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
3146
|
+
] = {}
|
3147
|
+
_body_params: Optional[bytes] = None
|
3148
|
+
|
3149
|
+
# process the path parameters
|
3150
|
+
# process the query parameters
|
3151
|
+
if code is not None:
|
3152
|
+
|
3153
|
+
_query_params.append(("code", code))
|
3154
|
+
|
3155
|
+
if scope is not None:
|
3156
|
+
|
3157
|
+
_query_params.append(("scope", scope))
|
3158
|
+
|
3159
|
+
if authuser is not None:
|
3160
|
+
|
3161
|
+
_query_params.append(("authuser", authuser))
|
3162
|
+
|
3163
|
+
if prompt is not None:
|
3164
|
+
|
3165
|
+
_query_params.append(("prompt", prompt))
|
3166
|
+
|
3167
|
+
if origin is not None:
|
3168
|
+
|
3169
|
+
_query_params.append(("origin", origin))
|
3170
|
+
|
3171
|
+
# process the header parameters
|
3172
|
+
# process the form parameters
|
3173
|
+
# process the body parameter
|
3174
|
+
|
3175
|
+
# set the HTTP header `Accept`
|
3176
|
+
if "Accept" not in _header_params:
|
3177
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
3178
|
+
["application/json"]
|
3179
|
+
)
|
3180
|
+
|
3181
|
+
# authentication setting
|
3182
|
+
_auth_settings: List[str] = []
|
3183
|
+
|
3184
|
+
return self.api_client.param_serialize(
|
3185
|
+
method="GET",
|
3186
|
+
resource_path="/oauth-callback",
|
3187
|
+
path_params=_path_params,
|
3188
|
+
query_params=_query_params,
|
3189
|
+
header_params=_header_params,
|
3190
|
+
body=_body_params,
|
3191
|
+
post_params=_form_params,
|
3192
|
+
files=_files,
|
3193
|
+
auth_settings=_auth_settings,
|
3194
|
+
collection_formats=_collection_formats,
|
3195
|
+
_host=_host,
|
3196
|
+
_request_auth=_request_auth,
|
3197
|
+
)
|
3198
|
+
|
3199
|
+
@validate_call
|
3200
|
+
def refresh_token_info(
|
3201
|
+
self,
|
3202
|
+
x_refresh_token: Annotated[
|
3203
|
+
Optional[StrictStr],
|
3204
|
+
Field(description="The refresh token for rotating the access token."),
|
3205
|
+
] = None,
|
3206
|
+
_request_timeout: Union[
|
3207
|
+
None,
|
3208
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3209
|
+
Tuple[
|
3210
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3211
|
+
],
|
3212
|
+
] = None,
|
3213
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3214
|
+
_content_type: Optional[StrictStr] = None,
|
3215
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3216
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3217
|
+
) -> RefreshTokenInfo200Response:
|
3218
|
+
"""Refresh token info"""
|
3219
|
+
if self.is_sync:
|
3220
|
+
return self._refresh_token_info_sync(
|
3221
|
+
x_refresh_token=x_refresh_token,
|
3222
|
+
_request_timeout=_request_timeout,
|
3223
|
+
_request_auth=_request_auth,
|
3224
|
+
_content_type=_content_type,
|
3225
|
+
_headers=_headers,
|
3226
|
+
_host_index=_host_index,
|
3227
|
+
)
|
3228
|
+
|
3229
|
+
else:
|
3230
|
+
return self._refresh_token_info_async(
|
3231
|
+
x_refresh_token=x_refresh_token,
|
3232
|
+
_request_timeout=_request_timeout,
|
3233
|
+
_request_auth=_request_auth,
|
3234
|
+
_content_type=_content_type,
|
3235
|
+
_headers=_headers,
|
3236
|
+
_host_index=_host_index,
|
3237
|
+
)
|
3238
|
+
|
3239
|
+
@validate_call
|
3240
|
+
def refresh_token_info_with_http_info(
|
3241
|
+
self,
|
3242
|
+
x_refresh_token: Annotated[
|
3243
|
+
Optional[StrictStr],
|
3244
|
+
Field(description="The refresh token for rotating the access token."),
|
3245
|
+
] = None,
|
3246
|
+
_request_timeout: Union[
|
3247
|
+
None,
|
3248
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3249
|
+
Tuple[
|
3250
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3251
|
+
],
|
3252
|
+
] = None,
|
3253
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3254
|
+
_content_type: Optional[StrictStr] = None,
|
3255
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3256
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3257
|
+
) -> ApiResponse[RefreshTokenInfo200Response]:
|
3258
|
+
"""Refresh token info with HTTP info"""
|
3259
|
+
if self.is_sync:
|
3260
|
+
return self._refresh_token_info_sync_with_http_info(
|
3261
|
+
x_refresh_token=x_refresh_token,
|
3262
|
+
_request_timeout=_request_timeout,
|
3263
|
+
_request_auth=_request_auth,
|
3264
|
+
_content_type=_content_type,
|
3265
|
+
_headers=_headers,
|
3266
|
+
_host_index=_host_index,
|
3267
|
+
)
|
3268
|
+
|
3269
|
+
else:
|
3270
|
+
return self._refresh_token_info_async_with_http_info(
|
3271
|
+
x_refresh_token=x_refresh_token,
|
3272
|
+
_request_timeout=_request_timeout,
|
3273
|
+
_request_auth=_request_auth,
|
3274
|
+
_content_type=_content_type,
|
3275
|
+
_headers=_headers,
|
3276
|
+
_host_index=_host_index,
|
3277
|
+
)
|
3278
|
+
|
3279
|
+
@validate_call
|
3280
|
+
def refresh_token_info_without_preload_content(
|
3281
|
+
self,
|
3282
|
+
x_refresh_token: Annotated[
|
3283
|
+
Optional[StrictStr],
|
3284
|
+
Field(description="The refresh token for rotating the access token."),
|
3285
|
+
] = None,
|
3286
|
+
_request_timeout: Union[
|
3287
|
+
None,
|
3288
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3289
|
+
Tuple[
|
3290
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3291
|
+
],
|
3292
|
+
] = None,
|
3293
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3294
|
+
_content_type: Optional[StrictStr] = None,
|
3295
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3296
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3297
|
+
) -> RESTResponseType:
|
3298
|
+
"""Refresh token info without preloading content"""
|
3299
|
+
if self.is_sync:
|
3300
|
+
return self._refresh_token_info_sync_without_preload_content(
|
3301
|
+
x_refresh_token=x_refresh_token,
|
3302
|
+
_request_timeout=_request_timeout,
|
3303
|
+
_request_auth=_request_auth,
|
3304
|
+
_content_type=_content_type,
|
3305
|
+
_headers=_headers,
|
3306
|
+
_host_index=_host_index,
|
3307
|
+
)
|
3308
|
+
|
3309
|
+
else:
|
3310
|
+
return self._refresh_token_info_async_without_preload_content(
|
3311
|
+
x_refresh_token=x_refresh_token,
|
3312
|
+
_request_timeout=_request_timeout,
|
3313
|
+
_request_auth=_request_auth,
|
3314
|
+
_content_type=_content_type,
|
3315
|
+
_headers=_headers,
|
3316
|
+
_host_index=_host_index,
|
3317
|
+
)
|
3318
|
+
|
3319
|
+
# Private async implementation methods
|
3320
|
+
@validate_call
|
3321
|
+
async def _refresh_token_info_async(
|
3322
|
+
self,
|
3323
|
+
x_refresh_token: Annotated[
|
3324
|
+
Optional[StrictStr],
|
3325
|
+
Field(description="The refresh token for rotating the access token."),
|
3326
|
+
] = None,
|
3327
|
+
_request_timeout: Union[
|
3328
|
+
None,
|
3329
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3330
|
+
Tuple[
|
3331
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3332
|
+
],
|
3333
|
+
] = None,
|
3334
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3335
|
+
_content_type: Optional[StrictStr] = None,
|
3336
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3337
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3338
|
+
) -> RefreshTokenInfo200Response:
|
3339
|
+
"""Refresh token info
|
3340
|
+
|
3341
|
+
Returns the user session record of the refresh token.
|
3342
|
+
|
3343
|
+
:param x_refresh_token: The refresh token for rotating the access token.
|
3344
|
+
:type x_refresh_token: str
|
3345
|
+
:param _request_timeout: timeout setting for this request. If one
|
3346
|
+
number provided, it will be total request
|
3347
|
+
timeout. It can also be a pair (tuple) of
|
3348
|
+
(connection, read) timeouts.
|
3349
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3350
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3351
|
+
request; this effectively ignores the
|
3352
|
+
authentication in the spec for a single request.
|
3353
|
+
:type _request_auth: dict, optional
|
3354
|
+
:param _content_type: force content-type for the request.
|
3355
|
+
:type _content_type: str, Optional
|
3356
|
+
:param _headers: set to override the headers for a single
|
3357
|
+
request; this effectively ignores the headers
|
3358
|
+
in the spec for a single request.
|
3359
|
+
:type _headers: dict, optional
|
3360
|
+
:param _host_index: set to override the host_index for a single
|
3361
|
+
request; this effectively ignores the host_index
|
3362
|
+
in the spec for a single request.
|
3363
|
+
:type _host_index: int, optional
|
3364
|
+
:return: Returns the result object.
|
3365
|
+
""" # noqa: E501
|
3366
|
+
|
3367
|
+
_param = self._refresh_token_info_serialize(
|
3368
|
+
x_refresh_token=x_refresh_token,
|
3369
|
+
_request_auth=_request_auth,
|
3370
|
+
_content_type=_content_type,
|
3371
|
+
_headers=_headers,
|
3372
|
+
_host_index=_host_index,
|
3373
|
+
)
|
3374
|
+
|
3375
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3376
|
+
"200": "RefreshTokenInfo200Response",
|
3377
|
+
}
|
3378
|
+
response_data = await self.api_client.call_api(
|
3379
|
+
*_param, _request_timeout=_request_timeout
|
3380
|
+
)
|
3381
|
+
await response_data.read()
|
3382
|
+
return self.api_client.response_deserialize(
|
3383
|
+
response_data=response_data,
|
3384
|
+
response_types_map=_response_types_map,
|
3385
|
+
).data
|
3386
|
+
|
3387
|
+
@validate_call
|
3388
|
+
async def _refresh_token_info_async_with_http_info(
|
3389
|
+
self,
|
3390
|
+
x_refresh_token: Annotated[
|
3391
|
+
Optional[StrictStr],
|
3392
|
+
Field(description="The refresh token for rotating the access token."),
|
3393
|
+
] = None,
|
3394
|
+
_request_timeout: Union[
|
3395
|
+
None,
|
3396
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3397
|
+
Tuple[
|
3398
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3399
|
+
],
|
3400
|
+
] = None,
|
3401
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3402
|
+
_content_type: Optional[StrictStr] = None,
|
3403
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3404
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3405
|
+
) -> ApiResponse[RefreshTokenInfo200Response]:
|
3406
|
+
"""Refresh token info
|
3407
|
+
|
3408
|
+
Returns the user session record of the refresh token.
|
3409
|
+
|
3410
|
+
:param x_refresh_token: The refresh token for rotating the access token.
|
3411
|
+
:type x_refresh_token: str
|
3412
|
+
:param _request_timeout: timeout setting for this request. If one
|
3413
|
+
number provided, it will be total request
|
3414
|
+
timeout. It can also be a pair (tuple) of
|
3415
|
+
(connection, read) timeouts.
|
3416
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3417
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3418
|
+
request; this effectively ignores the
|
3419
|
+
authentication in the spec for a single request.
|
3420
|
+
:type _request_auth: dict, optional
|
3421
|
+
:param _content_type: force content-type for the request.
|
3422
|
+
:type _content_type: str, Optional
|
3423
|
+
:param _headers: set to override the headers for a single
|
3424
|
+
request; this effectively ignores the headers
|
3425
|
+
in the spec for a single request.
|
3426
|
+
:type _headers: dict, optional
|
3427
|
+
:param _host_index: set to override the host_index for a single
|
3428
|
+
request; this effectively ignores the host_index
|
3429
|
+
in the spec for a single request.
|
3430
|
+
:type _host_index: int, optional
|
3431
|
+
:return: Returns the result object.
|
3432
|
+
""" # noqa: E501
|
3433
|
+
|
3434
|
+
_param = self._refresh_token_info_serialize(
|
3435
|
+
x_refresh_token=x_refresh_token,
|
3436
|
+
_request_auth=_request_auth,
|
3437
|
+
_content_type=_content_type,
|
3438
|
+
_headers=_headers,
|
3439
|
+
_host_index=_host_index,
|
3440
|
+
)
|
3441
|
+
|
3442
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3443
|
+
"200": "RefreshTokenInfo200Response",
|
3444
|
+
}
|
3445
|
+
response_data = await self.api_client.call_api(
|
3446
|
+
*_param, _request_timeout=_request_timeout
|
3447
|
+
)
|
3448
|
+
await response_data.read()
|
3449
|
+
return self.api_client.response_deserialize(
|
3450
|
+
response_data=response_data, response_types_map=_response_types_map
|
3451
|
+
)
|
3452
|
+
|
3453
|
+
@validate_call
|
3454
|
+
async def _refresh_token_info_async_without_preload_content(
|
3455
|
+
self,
|
3456
|
+
x_refresh_token: Annotated[
|
3457
|
+
Optional[StrictStr],
|
3458
|
+
Field(description="The refresh token for rotating the access token."),
|
3459
|
+
] = None,
|
3460
|
+
_request_timeout: Union[
|
3461
|
+
None,
|
3462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3463
|
+
Tuple[
|
3464
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3465
|
+
],
|
3466
|
+
] = None,
|
3467
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3468
|
+
_content_type: Optional[StrictStr] = None,
|
3469
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3470
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3471
|
+
) -> RESTResponseType:
|
3472
|
+
"""Refresh token info
|
3473
|
+
|
3474
|
+
Returns the user session record of the refresh token.
|
3475
|
+
|
3476
|
+
:param x_refresh_token: The refresh token for rotating the access token.
|
3477
|
+
:type x_refresh_token: str
|
3478
|
+
:param _request_timeout: timeout setting for this request. If one
|
3479
|
+
number provided, it will be total request
|
3480
|
+
timeout. It can also be a pair (tuple) of
|
3481
|
+
(connection, read) timeouts.
|
3482
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3483
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3484
|
+
request; this effectively ignores the
|
3485
|
+
authentication in the spec for a single request.
|
3486
|
+
:type _request_auth: dict, optional
|
3487
|
+
:param _content_type: force content-type for the request.
|
3488
|
+
:type _content_type: str, Optional
|
3489
|
+
:param _headers: set to override the headers for a single
|
3490
|
+
request; this effectively ignores the headers
|
3491
|
+
in the spec for a single request.
|
3492
|
+
:type _headers: dict, optional
|
3493
|
+
:param _host_index: set to override the host_index for a single
|
3494
|
+
request; this effectively ignores the host_index
|
3495
|
+
in the spec for a single request.
|
3496
|
+
:type _host_index: int, optional
|
3497
|
+
:return: Returns the result object.
|
3498
|
+
""" # noqa: E501
|
3499
|
+
|
3500
|
+
_param = self._refresh_token_info_serialize(
|
3501
|
+
x_refresh_token=x_refresh_token,
|
3502
|
+
_request_auth=_request_auth,
|
3503
|
+
_content_type=_content_type,
|
3504
|
+
_headers=_headers,
|
3505
|
+
_host_index=_host_index,
|
3506
|
+
)
|
3507
|
+
|
3508
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3509
|
+
"200": "RefreshTokenInfo200Response",
|
3510
|
+
}
|
3511
|
+
response_data = await self.api_client.call_api(
|
3512
|
+
*_param, _request_timeout=_request_timeout
|
3513
|
+
)
|
3514
|
+
return response_data
|
3515
|
+
|
3516
|
+
# Private sync implementation methods
|
3517
|
+
@validate_call
|
3518
|
+
def _refresh_token_info_sync(
|
3519
|
+
self,
|
3520
|
+
x_refresh_token: Annotated[
|
3521
|
+
Optional[StrictStr],
|
3522
|
+
Field(description="The refresh token for rotating the access token."),
|
3523
|
+
] = None,
|
3524
|
+
_request_timeout: Union[
|
3525
|
+
None,
|
3526
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3527
|
+
Tuple[
|
3528
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3529
|
+
],
|
3530
|
+
] = None,
|
3531
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3532
|
+
_content_type: Optional[StrictStr] = None,
|
3533
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3534
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3535
|
+
) -> RefreshTokenInfo200Response:
|
3536
|
+
"""Synchronous version of refresh_token_info"""
|
3537
|
+
return async_to_sync(self._refresh_token_info_async)(
|
3538
|
+
x_refresh_token=x_refresh_token,
|
3539
|
+
_request_timeout=_request_timeout,
|
3540
|
+
_request_auth=_request_auth,
|
3541
|
+
_content_type=_content_type,
|
3542
|
+
_headers=_headers,
|
3543
|
+
_host_index=_host_index,
|
3544
|
+
)
|
3545
|
+
|
3546
|
+
@validate_call
|
3547
|
+
def _refresh_token_info_sync_with_http_info(
|
3548
|
+
self,
|
3549
|
+
x_refresh_token: Annotated[
|
3550
|
+
Optional[StrictStr],
|
3551
|
+
Field(description="The refresh token for rotating the access token."),
|
3552
|
+
] = None,
|
3553
|
+
_request_timeout: Union[
|
3554
|
+
None,
|
3555
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3556
|
+
Tuple[
|
3557
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3558
|
+
],
|
3559
|
+
] = None,
|
3560
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3561
|
+
_content_type: Optional[StrictStr] = None,
|
3562
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3563
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3564
|
+
) -> ApiResponse[RefreshTokenInfo200Response]:
|
3565
|
+
"""Synchronous version of refresh_token_info_with_http_info"""
|
3566
|
+
return async_to_sync(self._refresh_token_info_async_with_http_info)(
|
3567
|
+
x_refresh_token=x_refresh_token,
|
3568
|
+
_request_timeout=_request_timeout,
|
3569
|
+
_request_auth=_request_auth,
|
3570
|
+
_content_type=_content_type,
|
3571
|
+
_headers=_headers,
|
3572
|
+
_host_index=_host_index,
|
3573
|
+
)
|
3574
|
+
|
3575
|
+
@validate_call
|
3576
|
+
def _refresh_token_info_sync_without_preload_content(
|
3577
|
+
self,
|
3578
|
+
x_refresh_token: Annotated[
|
3579
|
+
Optional[StrictStr],
|
3580
|
+
Field(description="The refresh token for rotating the access token."),
|
3581
|
+
] = None,
|
3582
|
+
_request_timeout: Union[
|
3583
|
+
None,
|
3584
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3585
|
+
Tuple[
|
3586
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3587
|
+
],
|
3588
|
+
] = None,
|
3589
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3590
|
+
_content_type: Optional[StrictStr] = None,
|
3591
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3592
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3593
|
+
) -> RESTResponseType:
|
3594
|
+
"""Synchronous version of refresh_token_info_without_preload_content"""
|
3595
|
+
return async_to_sync(self._refresh_token_info_async_without_preload_content)(
|
3596
|
+
x_refresh_token=x_refresh_token,
|
3597
|
+
_request_timeout=_request_timeout,
|
3598
|
+
_request_auth=_request_auth,
|
3599
|
+
_content_type=_content_type,
|
3600
|
+
_headers=_headers,
|
3601
|
+
_host_index=_host_index,
|
3602
|
+
)
|
3603
|
+
|
3604
|
+
def _refresh_token_info_serialize(
|
3605
|
+
self,
|
3606
|
+
x_refresh_token,
|
3607
|
+
_request_auth,
|
3608
|
+
_content_type,
|
3609
|
+
_headers,
|
3610
|
+
_host_index,
|
3611
|
+
) -> RequestSerialized:
|
3612
|
+
|
3613
|
+
_host = None
|
3614
|
+
|
3615
|
+
_collection_formats: Dict[str, str] = {}
|
3616
|
+
|
3617
|
+
_path_params: Dict[str, str] = {}
|
3618
|
+
_query_params: List[Tuple[str, str]] = []
|
3619
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
3620
|
+
_form_params: List[Tuple[str, str]] = []
|
3621
|
+
_files: Dict[
|
3622
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
3623
|
+
] = {}
|
3624
|
+
_body_params: Optional[bytes] = None
|
3625
|
+
|
3626
|
+
# process the path parameters
|
3627
|
+
# process the query parameters
|
3628
|
+
# process the header parameters
|
3629
|
+
if x_refresh_token is not None:
|
3630
|
+
_header_params["X-Refresh-Token"] = x_refresh_token
|
3631
|
+
# process the form parameters
|
3632
|
+
# process the body parameter
|
3633
|
+
|
3634
|
+
# set the HTTP header `Accept`
|
3635
|
+
if "Accept" not in _header_params:
|
3636
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
3637
|
+
["application/json"]
|
3638
|
+
)
|
3639
|
+
|
3640
|
+
# authentication setting
|
3641
|
+
_auth_settings: List[str] = []
|
3642
|
+
|
3643
|
+
return self.api_client.param_serialize(
|
3644
|
+
method="GET",
|
3645
|
+
resource_path="/refresh-token-info",
|
3646
|
+
path_params=_path_params,
|
3647
|
+
query_params=_query_params,
|
3648
|
+
header_params=_header_params,
|
3649
|
+
body=_body_params,
|
3650
|
+
post_params=_form_params,
|
3651
|
+
files=_files,
|
3652
|
+
auth_settings=_auth_settings,
|
3653
|
+
collection_formats=_collection_formats,
|
3654
|
+
_host=_host,
|
3655
|
+
_request_auth=_request_auth,
|
3656
|
+
)
|
3657
|
+
|
3658
|
+
@validate_call
|
3659
|
+
def refresh_token_scopes(
|
3660
|
+
self,
|
3661
|
+
x_refresh_token: Annotated[
|
3662
|
+
Optional[StrictStr],
|
3663
|
+
Field(description="The refresh token for rotating the access token."),
|
3664
|
+
] = None,
|
3665
|
+
_request_timeout: Union[
|
3666
|
+
None,
|
3667
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3668
|
+
Tuple[
|
3669
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3670
|
+
],
|
3671
|
+
] = None,
|
3672
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3673
|
+
_content_type: Optional[StrictStr] = None,
|
3674
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3675
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3676
|
+
) -> RotateTokens200Response:
|
3677
|
+
"""Refresh token scopes"""
|
3678
|
+
if self.is_sync:
|
3679
|
+
return self._refresh_token_scopes_sync(
|
3680
|
+
x_refresh_token=x_refresh_token,
|
3681
|
+
_request_timeout=_request_timeout,
|
3682
|
+
_request_auth=_request_auth,
|
3683
|
+
_content_type=_content_type,
|
3684
|
+
_headers=_headers,
|
3685
|
+
_host_index=_host_index,
|
3686
|
+
)
|
3687
|
+
|
3688
|
+
else:
|
3689
|
+
return self._refresh_token_scopes_async(
|
3690
|
+
x_refresh_token=x_refresh_token,
|
3691
|
+
_request_timeout=_request_timeout,
|
3692
|
+
_request_auth=_request_auth,
|
3693
|
+
_content_type=_content_type,
|
3694
|
+
_headers=_headers,
|
3695
|
+
_host_index=_host_index,
|
3696
|
+
)
|
1564
3697
|
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
3698
|
+
@validate_call
|
3699
|
+
def refresh_token_scopes_with_http_info(
|
3700
|
+
self,
|
3701
|
+
x_refresh_token: Annotated[
|
3702
|
+
Optional[StrictStr],
|
3703
|
+
Field(description="The refresh token for rotating the access token."),
|
3704
|
+
] = None,
|
3705
|
+
_request_timeout: Union[
|
3706
|
+
None,
|
3707
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3708
|
+
Tuple[
|
3709
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3710
|
+
],
|
3711
|
+
] = None,
|
3712
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3713
|
+
_content_type: Optional[StrictStr] = None,
|
3714
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3715
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3716
|
+
) -> ApiResponse[RotateTokens200Response]:
|
3717
|
+
"""Refresh token scopes with HTTP info"""
|
3718
|
+
if self.is_sync:
|
3719
|
+
return self._refresh_token_scopes_sync_with_http_info(
|
3720
|
+
x_refresh_token=x_refresh_token,
|
3721
|
+
_request_timeout=_request_timeout,
|
3722
|
+
_request_auth=_request_auth,
|
3723
|
+
_content_type=_content_type,
|
3724
|
+
_headers=_headers,
|
3725
|
+
_host_index=_host_index,
|
3726
|
+
)
|
1568
3727
|
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
3728
|
+
else:
|
3729
|
+
return self._refresh_token_scopes_async_with_http_info(
|
3730
|
+
x_refresh_token=x_refresh_token,
|
3731
|
+
_request_timeout=_request_timeout,
|
3732
|
+
_request_auth=_request_auth,
|
3733
|
+
_content_type=_content_type,
|
3734
|
+
_headers=_headers,
|
3735
|
+
_host_index=_host_index,
|
1573
3736
|
)
|
1574
3737
|
|
1575
|
-
|
1576
|
-
|
3738
|
+
@validate_call
|
3739
|
+
def refresh_token_scopes_without_preload_content(
|
3740
|
+
self,
|
3741
|
+
x_refresh_token: Annotated[
|
3742
|
+
Optional[StrictStr],
|
3743
|
+
Field(description="The refresh token for rotating the access token."),
|
3744
|
+
] = None,
|
3745
|
+
_request_timeout: Union[
|
3746
|
+
None,
|
3747
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3748
|
+
Tuple[
|
3749
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3750
|
+
],
|
3751
|
+
] = None,
|
3752
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3753
|
+
_content_type: Optional[StrictStr] = None,
|
3754
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3755
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3756
|
+
) -> RESTResponseType:
|
3757
|
+
"""Refresh token scopes without preloading content"""
|
3758
|
+
if self.is_sync:
|
3759
|
+
return self._refresh_token_scopes_sync_without_preload_content(
|
3760
|
+
x_refresh_token=x_refresh_token,
|
3761
|
+
_request_timeout=_request_timeout,
|
3762
|
+
_request_auth=_request_auth,
|
3763
|
+
_content_type=_content_type,
|
3764
|
+
_headers=_headers,
|
3765
|
+
_host_index=_host_index,
|
3766
|
+
)
|
1577
3767
|
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
|
1587
|
-
auth_settings=_auth_settings,
|
1588
|
-
collection_formats=_collection_formats,
|
1589
|
-
_host=_host,
|
1590
|
-
_request_auth=_request_auth,
|
1591
|
-
)
|
3768
|
+
else:
|
3769
|
+
return self._refresh_token_scopes_async_without_preload_content(
|
3770
|
+
x_refresh_token=x_refresh_token,
|
3771
|
+
_request_timeout=_request_timeout,
|
3772
|
+
_request_auth=_request_auth,
|
3773
|
+
_content_type=_content_type,
|
3774
|
+
_headers=_headers,
|
3775
|
+
_host_index=_host_index,
|
3776
|
+
)
|
1592
3777
|
|
3778
|
+
# Private async implementation methods
|
1593
3779
|
@validate_call
|
1594
|
-
async def
|
3780
|
+
async def _refresh_token_scopes_async(
|
1595
3781
|
self,
|
1596
3782
|
x_refresh_token: Annotated[
|
1597
3783
|
Optional[StrictStr],
|
@@ -1608,10 +3794,10 @@ class AuthApi:
|
|
1608
3794
|
_content_type: Optional[StrictStr] = None,
|
1609
3795
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1610
3796
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1611
|
-
) ->
|
1612
|
-
"""Refresh token
|
3797
|
+
) -> RotateTokens200Response:
|
3798
|
+
"""Refresh token scopes
|
1613
3799
|
|
1614
|
-
|
3800
|
+
Refresh token scopes for a given user and a valid access token and a valid refresh token. This manually re-creates the access token with the latest scopes, in case the user changed their subscription status, access to certain features.
|
1615
3801
|
|
1616
3802
|
:param x_refresh_token: The refresh token for rotating the access token.
|
1617
3803
|
:type x_refresh_token: str
|
@@ -1637,7 +3823,7 @@ class AuthApi:
|
|
1637
3823
|
:return: Returns the result object.
|
1638
3824
|
""" # noqa: E501
|
1639
3825
|
|
1640
|
-
_param = self.
|
3826
|
+
_param = self._refresh_token_scopes_serialize(
|
1641
3827
|
x_refresh_token=x_refresh_token,
|
1642
3828
|
_request_auth=_request_auth,
|
1643
3829
|
_content_type=_content_type,
|
@@ -1646,7 +3832,7 @@ class AuthApi:
|
|
1646
3832
|
)
|
1647
3833
|
|
1648
3834
|
_response_types_map: Dict[str, Optional[str]] = {
|
1649
|
-
"200": "
|
3835
|
+
"200": "RotateTokens200Response",
|
1650
3836
|
}
|
1651
3837
|
response_data = await self.api_client.call_api(
|
1652
3838
|
*_param, _request_timeout=_request_timeout
|
@@ -1658,7 +3844,7 @@ class AuthApi:
|
|
1658
3844
|
).data
|
1659
3845
|
|
1660
3846
|
@validate_call
|
1661
|
-
async def
|
3847
|
+
async def _refresh_token_scopes_async_with_http_info(
|
1662
3848
|
self,
|
1663
3849
|
x_refresh_token: Annotated[
|
1664
3850
|
Optional[StrictStr],
|
@@ -1675,10 +3861,10 @@ class AuthApi:
|
|
1675
3861
|
_content_type: Optional[StrictStr] = None,
|
1676
3862
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1677
3863
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1678
|
-
) -> ApiResponse[
|
1679
|
-
"""Refresh token
|
3864
|
+
) -> ApiResponse[RotateTokens200Response]:
|
3865
|
+
"""Refresh token scopes
|
1680
3866
|
|
1681
|
-
|
3867
|
+
Refresh token scopes for a given user and a valid access token and a valid refresh token. This manually re-creates the access token with the latest scopes, in case the user changed their subscription status, access to certain features.
|
1682
3868
|
|
1683
3869
|
:param x_refresh_token: The refresh token for rotating the access token.
|
1684
3870
|
:type x_refresh_token: str
|
@@ -1704,7 +3890,7 @@ class AuthApi:
|
|
1704
3890
|
:return: Returns the result object.
|
1705
3891
|
""" # noqa: E501
|
1706
3892
|
|
1707
|
-
_param = self.
|
3893
|
+
_param = self._refresh_token_scopes_serialize(
|
1708
3894
|
x_refresh_token=x_refresh_token,
|
1709
3895
|
_request_auth=_request_auth,
|
1710
3896
|
_content_type=_content_type,
|
@@ -1713,19 +3899,18 @@ class AuthApi:
|
|
1713
3899
|
)
|
1714
3900
|
|
1715
3901
|
_response_types_map: Dict[str, Optional[str]] = {
|
1716
|
-
"200": "
|
3902
|
+
"200": "RotateTokens200Response",
|
1717
3903
|
}
|
1718
3904
|
response_data = await self.api_client.call_api(
|
1719
3905
|
*_param, _request_timeout=_request_timeout
|
1720
3906
|
)
|
1721
3907
|
await response_data.read()
|
1722
3908
|
return self.api_client.response_deserialize(
|
1723
|
-
response_data=response_data,
|
1724
|
-
response_types_map=_response_types_map,
|
3909
|
+
response_data=response_data, response_types_map=_response_types_map
|
1725
3910
|
)
|
1726
3911
|
|
1727
3912
|
@validate_call
|
1728
|
-
async def
|
3913
|
+
async def _refresh_token_scopes_async_without_preload_content(
|
1729
3914
|
self,
|
1730
3915
|
x_refresh_token: Annotated[
|
1731
3916
|
Optional[StrictStr],
|
@@ -1743,9 +3928,9 @@ class AuthApi:
|
|
1743
3928
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1744
3929
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1745
3930
|
) -> RESTResponseType:
|
1746
|
-
"""Refresh token
|
3931
|
+
"""Refresh token scopes
|
1747
3932
|
|
1748
|
-
|
3933
|
+
Refresh token scopes for a given user and a valid access token and a valid refresh token. This manually re-creates the access token with the latest scopes, in case the user changed their subscription status, access to certain features.
|
1749
3934
|
|
1750
3935
|
:param x_refresh_token: The refresh token for rotating the access token.
|
1751
3936
|
:type x_refresh_token: str
|
@@ -1771,7 +3956,7 @@ class AuthApi:
|
|
1771
3956
|
:return: Returns the result object.
|
1772
3957
|
""" # noqa: E501
|
1773
3958
|
|
1774
|
-
_param = self.
|
3959
|
+
_param = self._refresh_token_scopes_serialize(
|
1775
3960
|
x_refresh_token=x_refresh_token,
|
1776
3961
|
_request_auth=_request_auth,
|
1777
3962
|
_content_type=_content_type,
|
@@ -1780,14 +3965,102 @@ class AuthApi:
|
|
1780
3965
|
)
|
1781
3966
|
|
1782
3967
|
_response_types_map: Dict[str, Optional[str]] = {
|
1783
|
-
"200": "
|
3968
|
+
"200": "RotateTokens200Response",
|
1784
3969
|
}
|
1785
3970
|
response_data = await self.api_client.call_api(
|
1786
3971
|
*_param, _request_timeout=_request_timeout
|
1787
3972
|
)
|
1788
|
-
return response_data
|
3973
|
+
return response_data
|
1789
3974
|
|
1790
|
-
|
3975
|
+
# Private sync implementation methods
|
3976
|
+
@validate_call
|
3977
|
+
def _refresh_token_scopes_sync(
|
3978
|
+
self,
|
3979
|
+
x_refresh_token: Annotated[
|
3980
|
+
Optional[StrictStr],
|
3981
|
+
Field(description="The refresh token for rotating the access token."),
|
3982
|
+
] = None,
|
3983
|
+
_request_timeout: Union[
|
3984
|
+
None,
|
3985
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3986
|
+
Tuple[
|
3987
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
3988
|
+
],
|
3989
|
+
] = None,
|
3990
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3991
|
+
_content_type: Optional[StrictStr] = None,
|
3992
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3993
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
3994
|
+
) -> RotateTokens200Response:
|
3995
|
+
"""Synchronous version of refresh_token_scopes"""
|
3996
|
+
return async_to_sync(self._refresh_token_scopes_async)(
|
3997
|
+
x_refresh_token=x_refresh_token,
|
3998
|
+
_request_timeout=_request_timeout,
|
3999
|
+
_request_auth=_request_auth,
|
4000
|
+
_content_type=_content_type,
|
4001
|
+
_headers=_headers,
|
4002
|
+
_host_index=_host_index,
|
4003
|
+
)
|
4004
|
+
|
4005
|
+
@validate_call
|
4006
|
+
def _refresh_token_scopes_sync_with_http_info(
|
4007
|
+
self,
|
4008
|
+
x_refresh_token: Annotated[
|
4009
|
+
Optional[StrictStr],
|
4010
|
+
Field(description="The refresh token for rotating the access token."),
|
4011
|
+
] = None,
|
4012
|
+
_request_timeout: Union[
|
4013
|
+
None,
|
4014
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4015
|
+
Tuple[
|
4016
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4017
|
+
],
|
4018
|
+
] = None,
|
4019
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4020
|
+
_content_type: Optional[StrictStr] = None,
|
4021
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4022
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4023
|
+
) -> ApiResponse[RotateTokens200Response]:
|
4024
|
+
"""Synchronous version of refresh_token_scopes_with_http_info"""
|
4025
|
+
return async_to_sync(self._refresh_token_scopes_async_with_http_info)(
|
4026
|
+
x_refresh_token=x_refresh_token,
|
4027
|
+
_request_timeout=_request_timeout,
|
4028
|
+
_request_auth=_request_auth,
|
4029
|
+
_content_type=_content_type,
|
4030
|
+
_headers=_headers,
|
4031
|
+
_host_index=_host_index,
|
4032
|
+
)
|
4033
|
+
|
4034
|
+
@validate_call
|
4035
|
+
def _refresh_token_scopes_sync_without_preload_content(
|
4036
|
+
self,
|
4037
|
+
x_refresh_token: Annotated[
|
4038
|
+
Optional[StrictStr],
|
4039
|
+
Field(description="The refresh token for rotating the access token."),
|
4040
|
+
] = None,
|
4041
|
+
_request_timeout: Union[
|
4042
|
+
None,
|
4043
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4044
|
+
Tuple[
|
4045
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4046
|
+
],
|
4047
|
+
] = None,
|
4048
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4049
|
+
_content_type: Optional[StrictStr] = None,
|
4050
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4051
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4052
|
+
) -> RESTResponseType:
|
4053
|
+
"""Synchronous version of refresh_token_scopes_without_preload_content"""
|
4054
|
+
return async_to_sync(self._refresh_token_scopes_async_without_preload_content)(
|
4055
|
+
x_refresh_token=x_refresh_token,
|
4056
|
+
_request_timeout=_request_timeout,
|
4057
|
+
_request_auth=_request_auth,
|
4058
|
+
_content_type=_content_type,
|
4059
|
+
_headers=_headers,
|
4060
|
+
_host_index=_host_index,
|
4061
|
+
)
|
4062
|
+
|
4063
|
+
def _refresh_token_scopes_serialize(
|
1791
4064
|
self,
|
1792
4065
|
x_refresh_token,
|
1793
4066
|
_request_auth,
|
@@ -1827,8 +4100,8 @@ class AuthApi:
|
|
1827
4100
|
_auth_settings: List[str] = []
|
1828
4101
|
|
1829
4102
|
return self.api_client.param_serialize(
|
1830
|
-
method="
|
1831
|
-
resource_path="/refresh-token-
|
4103
|
+
method="POST",
|
4104
|
+
resource_path="/refresh-token-scopes",
|
1832
4105
|
path_params=_path_params,
|
1833
4106
|
query_params=_query_params,
|
1834
4107
|
header_params=_header_params,
|
@@ -1842,7 +4115,7 @@ class AuthApi:
|
|
1842
4115
|
)
|
1843
4116
|
|
1844
4117
|
@validate_call
|
1845
|
-
|
4118
|
+
def rotate_tokens(
|
1846
4119
|
self,
|
1847
4120
|
x_refresh_token: Annotated[
|
1848
4121
|
Optional[StrictStr],
|
@@ -1860,9 +4133,130 @@ class AuthApi:
|
|
1860
4133
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1861
4134
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1862
4135
|
) -> RotateTokens200Response:
|
1863
|
-
"""
|
4136
|
+
"""Rotate tokens"""
|
4137
|
+
if self.is_sync:
|
4138
|
+
return self._rotate_tokens_sync(
|
4139
|
+
x_refresh_token=x_refresh_token,
|
4140
|
+
_request_timeout=_request_timeout,
|
4141
|
+
_request_auth=_request_auth,
|
4142
|
+
_content_type=_content_type,
|
4143
|
+
_headers=_headers,
|
4144
|
+
_host_index=_host_index,
|
4145
|
+
)
|
1864
4146
|
|
1865
|
-
|
4147
|
+
else:
|
4148
|
+
return self._rotate_tokens_async(
|
4149
|
+
x_refresh_token=x_refresh_token,
|
4150
|
+
_request_timeout=_request_timeout,
|
4151
|
+
_request_auth=_request_auth,
|
4152
|
+
_content_type=_content_type,
|
4153
|
+
_headers=_headers,
|
4154
|
+
_host_index=_host_index,
|
4155
|
+
)
|
4156
|
+
|
4157
|
+
@validate_call
|
4158
|
+
def rotate_tokens_with_http_info(
|
4159
|
+
self,
|
4160
|
+
x_refresh_token: Annotated[
|
4161
|
+
Optional[StrictStr],
|
4162
|
+
Field(description="The refresh token for rotating the access token."),
|
4163
|
+
] = None,
|
4164
|
+
_request_timeout: Union[
|
4165
|
+
None,
|
4166
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4167
|
+
Tuple[
|
4168
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4169
|
+
],
|
4170
|
+
] = None,
|
4171
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4172
|
+
_content_type: Optional[StrictStr] = None,
|
4173
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4174
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4175
|
+
) -> ApiResponse[RotateTokens200Response]:
|
4176
|
+
"""Rotate tokens with HTTP info"""
|
4177
|
+
if self.is_sync:
|
4178
|
+
return self._rotate_tokens_sync_with_http_info(
|
4179
|
+
x_refresh_token=x_refresh_token,
|
4180
|
+
_request_timeout=_request_timeout,
|
4181
|
+
_request_auth=_request_auth,
|
4182
|
+
_content_type=_content_type,
|
4183
|
+
_headers=_headers,
|
4184
|
+
_host_index=_host_index,
|
4185
|
+
)
|
4186
|
+
|
4187
|
+
else:
|
4188
|
+
return self._rotate_tokens_async_with_http_info(
|
4189
|
+
x_refresh_token=x_refresh_token,
|
4190
|
+
_request_timeout=_request_timeout,
|
4191
|
+
_request_auth=_request_auth,
|
4192
|
+
_content_type=_content_type,
|
4193
|
+
_headers=_headers,
|
4194
|
+
_host_index=_host_index,
|
4195
|
+
)
|
4196
|
+
|
4197
|
+
@validate_call
|
4198
|
+
def rotate_tokens_without_preload_content(
|
4199
|
+
self,
|
4200
|
+
x_refresh_token: Annotated[
|
4201
|
+
Optional[StrictStr],
|
4202
|
+
Field(description="The refresh token for rotating the access token."),
|
4203
|
+
] = None,
|
4204
|
+
_request_timeout: Union[
|
4205
|
+
None,
|
4206
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4207
|
+
Tuple[
|
4208
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4209
|
+
],
|
4210
|
+
] = None,
|
4211
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4212
|
+
_content_type: Optional[StrictStr] = None,
|
4213
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4214
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4215
|
+
) -> RESTResponseType:
|
4216
|
+
"""Rotate tokens without preloading content"""
|
4217
|
+
if self.is_sync:
|
4218
|
+
return self._rotate_tokens_sync_without_preload_content(
|
4219
|
+
x_refresh_token=x_refresh_token,
|
4220
|
+
_request_timeout=_request_timeout,
|
4221
|
+
_request_auth=_request_auth,
|
4222
|
+
_content_type=_content_type,
|
4223
|
+
_headers=_headers,
|
4224
|
+
_host_index=_host_index,
|
4225
|
+
)
|
4226
|
+
|
4227
|
+
else:
|
4228
|
+
return self._rotate_tokens_async_without_preload_content(
|
4229
|
+
x_refresh_token=x_refresh_token,
|
4230
|
+
_request_timeout=_request_timeout,
|
4231
|
+
_request_auth=_request_auth,
|
4232
|
+
_content_type=_content_type,
|
4233
|
+
_headers=_headers,
|
4234
|
+
_host_index=_host_index,
|
4235
|
+
)
|
4236
|
+
|
4237
|
+
# Private async implementation methods
|
4238
|
+
@validate_call
|
4239
|
+
async def _rotate_tokens_async(
|
4240
|
+
self,
|
4241
|
+
x_refresh_token: Annotated[
|
4242
|
+
Optional[StrictStr],
|
4243
|
+
Field(description="The refresh token for rotating the access token."),
|
4244
|
+
] = None,
|
4245
|
+
_request_timeout: Union[
|
4246
|
+
None,
|
4247
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4248
|
+
Tuple[
|
4249
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4250
|
+
],
|
4251
|
+
] = None,
|
4252
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4253
|
+
_content_type: Optional[StrictStr] = None,
|
4254
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4255
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4256
|
+
) -> RotateTokens200Response:
|
4257
|
+
"""Rotate tokens
|
4258
|
+
|
4259
|
+
Handles token rotation for user authentication. If access token is expired: Uses refresh token to generate a new access token. If access token is still valid: Extends (slides) the current token's expiration date. Returns both updated access and refresh tokens.
|
1866
4260
|
|
1867
4261
|
:param x_refresh_token: The refresh token for rotating the access token.
|
1868
4262
|
:type x_refresh_token: str
|
@@ -1888,7 +4282,7 @@ class AuthApi:
|
|
1888
4282
|
:return: Returns the result object.
|
1889
4283
|
""" # noqa: E501
|
1890
4284
|
|
1891
|
-
_param = self.
|
4285
|
+
_param = self._rotate_tokens_serialize(
|
1892
4286
|
x_refresh_token=x_refresh_token,
|
1893
4287
|
_request_auth=_request_auth,
|
1894
4288
|
_content_type=_content_type,
|
@@ -1909,7 +4303,7 @@ class AuthApi:
|
|
1909
4303
|
).data
|
1910
4304
|
|
1911
4305
|
@validate_call
|
1912
|
-
async def
|
4306
|
+
async def _rotate_tokens_async_with_http_info(
|
1913
4307
|
self,
|
1914
4308
|
x_refresh_token: Annotated[
|
1915
4309
|
Optional[StrictStr],
|
@@ -1927,9 +4321,9 @@ class AuthApi:
|
|
1927
4321
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1928
4322
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1929
4323
|
) -> ApiResponse[RotateTokens200Response]:
|
1930
|
-
"""
|
4324
|
+
"""Rotate tokens
|
1931
4325
|
|
1932
|
-
|
4326
|
+
Handles token rotation for user authentication. If access token is expired: Uses refresh token to generate a new access token. If access token is still valid: Extends (slides) the current token's expiration date. Returns both updated access and refresh tokens.
|
1933
4327
|
|
1934
4328
|
:param x_refresh_token: The refresh token for rotating the access token.
|
1935
4329
|
:type x_refresh_token: str
|
@@ -1955,7 +4349,7 @@ class AuthApi:
|
|
1955
4349
|
:return: Returns the result object.
|
1956
4350
|
""" # noqa: E501
|
1957
4351
|
|
1958
|
-
_param = self.
|
4352
|
+
_param = self._rotate_tokens_serialize(
|
1959
4353
|
x_refresh_token=x_refresh_token,
|
1960
4354
|
_request_auth=_request_auth,
|
1961
4355
|
_content_type=_content_type,
|
@@ -1971,12 +4365,11 @@ class AuthApi:
|
|
1971
4365
|
)
|
1972
4366
|
await response_data.read()
|
1973
4367
|
return self.api_client.response_deserialize(
|
1974
|
-
response_data=response_data,
|
1975
|
-
response_types_map=_response_types_map,
|
4368
|
+
response_data=response_data, response_types_map=_response_types_map
|
1976
4369
|
)
|
1977
4370
|
|
1978
4371
|
@validate_call
|
1979
|
-
async def
|
4372
|
+
async def _rotate_tokens_async_without_preload_content(
|
1980
4373
|
self,
|
1981
4374
|
x_refresh_token: Annotated[
|
1982
4375
|
Optional[StrictStr],
|
@@ -1994,9 +4387,9 @@ class AuthApi:
|
|
1994
4387
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1995
4388
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1996
4389
|
) -> RESTResponseType:
|
1997
|
-
"""
|
4390
|
+
"""Rotate tokens
|
1998
4391
|
|
1999
|
-
|
4392
|
+
Handles token rotation for user authentication. If access token is expired: Uses refresh token to generate a new access token. If access token is still valid: Extends (slides) the current token's expiration date. Returns both updated access and refresh tokens.
|
2000
4393
|
|
2001
4394
|
:param x_refresh_token: The refresh token for rotating the access token.
|
2002
4395
|
:type x_refresh_token: str
|
@@ -2022,7 +4415,7 @@ class AuthApi:
|
|
2022
4415
|
:return: Returns the result object.
|
2023
4416
|
""" # noqa: E501
|
2024
4417
|
|
2025
|
-
_param = self.
|
4418
|
+
_param = self._rotate_tokens_serialize(
|
2026
4419
|
x_refresh_token=x_refresh_token,
|
2027
4420
|
_request_auth=_request_auth,
|
2028
4421
|
_content_type=_content_type,
|
@@ -2036,9 +4429,97 @@ class AuthApi:
|
|
2036
4429
|
response_data = await self.api_client.call_api(
|
2037
4430
|
*_param, _request_timeout=_request_timeout
|
2038
4431
|
)
|
2039
|
-
return response_data
|
4432
|
+
return response_data
|
2040
4433
|
|
2041
|
-
|
4434
|
+
# Private sync implementation methods
|
4435
|
+
@validate_call
|
4436
|
+
def _rotate_tokens_sync(
|
4437
|
+
self,
|
4438
|
+
x_refresh_token: Annotated[
|
4439
|
+
Optional[StrictStr],
|
4440
|
+
Field(description="The refresh token for rotating the access token."),
|
4441
|
+
] = None,
|
4442
|
+
_request_timeout: Union[
|
4443
|
+
None,
|
4444
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4445
|
+
Tuple[
|
4446
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4447
|
+
],
|
4448
|
+
] = None,
|
4449
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4450
|
+
_content_type: Optional[StrictStr] = None,
|
4451
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4452
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4453
|
+
) -> RotateTokens200Response:
|
4454
|
+
"""Synchronous version of rotate_tokens"""
|
4455
|
+
return async_to_sync(self._rotate_tokens_async)(
|
4456
|
+
x_refresh_token=x_refresh_token,
|
4457
|
+
_request_timeout=_request_timeout,
|
4458
|
+
_request_auth=_request_auth,
|
4459
|
+
_content_type=_content_type,
|
4460
|
+
_headers=_headers,
|
4461
|
+
_host_index=_host_index,
|
4462
|
+
)
|
4463
|
+
|
4464
|
+
@validate_call
|
4465
|
+
def _rotate_tokens_sync_with_http_info(
|
4466
|
+
self,
|
4467
|
+
x_refresh_token: Annotated[
|
4468
|
+
Optional[StrictStr],
|
4469
|
+
Field(description="The refresh token for rotating the access token."),
|
4470
|
+
] = None,
|
4471
|
+
_request_timeout: Union[
|
4472
|
+
None,
|
4473
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4474
|
+
Tuple[
|
4475
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4476
|
+
],
|
4477
|
+
] = None,
|
4478
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4479
|
+
_content_type: Optional[StrictStr] = None,
|
4480
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4481
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4482
|
+
) -> ApiResponse[RotateTokens200Response]:
|
4483
|
+
"""Synchronous version of rotate_tokens_with_http_info"""
|
4484
|
+
return async_to_sync(self._rotate_tokens_async_with_http_info)(
|
4485
|
+
x_refresh_token=x_refresh_token,
|
4486
|
+
_request_timeout=_request_timeout,
|
4487
|
+
_request_auth=_request_auth,
|
4488
|
+
_content_type=_content_type,
|
4489
|
+
_headers=_headers,
|
4490
|
+
_host_index=_host_index,
|
4491
|
+
)
|
4492
|
+
|
4493
|
+
@validate_call
|
4494
|
+
def _rotate_tokens_sync_without_preload_content(
|
4495
|
+
self,
|
4496
|
+
x_refresh_token: Annotated[
|
4497
|
+
Optional[StrictStr],
|
4498
|
+
Field(description="The refresh token for rotating the access token."),
|
4499
|
+
] = None,
|
4500
|
+
_request_timeout: Union[
|
4501
|
+
None,
|
4502
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4503
|
+
Tuple[
|
4504
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4505
|
+
],
|
4506
|
+
] = None,
|
4507
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4508
|
+
_content_type: Optional[StrictStr] = None,
|
4509
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4510
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4511
|
+
) -> RESTResponseType:
|
4512
|
+
"""Synchronous version of rotate_tokens_without_preload_content"""
|
4513
|
+
return async_to_sync(self._rotate_tokens_async_without_preload_content)(
|
4514
|
+
x_refresh_token=x_refresh_token,
|
4515
|
+
_request_timeout=_request_timeout,
|
4516
|
+
_request_auth=_request_auth,
|
4517
|
+
_content_type=_content_type,
|
4518
|
+
_headers=_headers,
|
4519
|
+
_host_index=_host_index,
|
4520
|
+
)
|
4521
|
+
|
4522
|
+
def _rotate_tokens_serialize(
|
2042
4523
|
self,
|
2043
4524
|
x_refresh_token,
|
2044
4525
|
_request_auth,
|
@@ -2079,7 +4560,7 @@ class AuthApi:
|
|
2079
4560
|
|
2080
4561
|
return self.api_client.param_serialize(
|
2081
4562
|
method="POST",
|
2082
|
-
resource_path="/
|
4563
|
+
resource_path="/rotate-tokens",
|
2083
4564
|
path_params=_path_params,
|
2084
4565
|
query_params=_query_params,
|
2085
4566
|
header_params=_header_params,
|
@@ -2093,7 +4574,7 @@ class AuthApi:
|
|
2093
4574
|
)
|
2094
4575
|
|
2095
4576
|
@validate_call
|
2096
|
-
|
4577
|
+
def token_info(
|
2097
4578
|
self,
|
2098
4579
|
x_refresh_token: Annotated[
|
2099
4580
|
Optional[StrictStr],
|
@@ -2110,10 +4591,131 @@ class AuthApi:
|
|
2110
4591
|
_content_type: Optional[StrictStr] = None,
|
2111
4592
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2112
4593
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2113
|
-
) ->
|
2114
|
-
"""
|
4594
|
+
) -> TokenInfo200Response:
|
4595
|
+
"""Token info"""
|
4596
|
+
if self.is_sync:
|
4597
|
+
return self._token_info_sync(
|
4598
|
+
x_refresh_token=x_refresh_token,
|
4599
|
+
_request_timeout=_request_timeout,
|
4600
|
+
_request_auth=_request_auth,
|
4601
|
+
_content_type=_content_type,
|
4602
|
+
_headers=_headers,
|
4603
|
+
_host_index=_host_index,
|
4604
|
+
)
|
2115
4605
|
|
2116
|
-
|
4606
|
+
else:
|
4607
|
+
return self._token_info_async(
|
4608
|
+
x_refresh_token=x_refresh_token,
|
4609
|
+
_request_timeout=_request_timeout,
|
4610
|
+
_request_auth=_request_auth,
|
4611
|
+
_content_type=_content_type,
|
4612
|
+
_headers=_headers,
|
4613
|
+
_host_index=_host_index,
|
4614
|
+
)
|
4615
|
+
|
4616
|
+
@validate_call
|
4617
|
+
def token_info_with_http_info(
|
4618
|
+
self,
|
4619
|
+
x_refresh_token: Annotated[
|
4620
|
+
Optional[StrictStr],
|
4621
|
+
Field(description="The refresh token for rotating the access token."),
|
4622
|
+
] = None,
|
4623
|
+
_request_timeout: Union[
|
4624
|
+
None,
|
4625
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4626
|
+
Tuple[
|
4627
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4628
|
+
],
|
4629
|
+
] = None,
|
4630
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4631
|
+
_content_type: Optional[StrictStr] = None,
|
4632
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4633
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4634
|
+
) -> ApiResponse[TokenInfo200Response]:
|
4635
|
+
"""Token info with HTTP info"""
|
4636
|
+
if self.is_sync:
|
4637
|
+
return self._token_info_sync_with_http_info(
|
4638
|
+
x_refresh_token=x_refresh_token,
|
4639
|
+
_request_timeout=_request_timeout,
|
4640
|
+
_request_auth=_request_auth,
|
4641
|
+
_content_type=_content_type,
|
4642
|
+
_headers=_headers,
|
4643
|
+
_host_index=_host_index,
|
4644
|
+
)
|
4645
|
+
|
4646
|
+
else:
|
4647
|
+
return self._token_info_async_with_http_info(
|
4648
|
+
x_refresh_token=x_refresh_token,
|
4649
|
+
_request_timeout=_request_timeout,
|
4650
|
+
_request_auth=_request_auth,
|
4651
|
+
_content_type=_content_type,
|
4652
|
+
_headers=_headers,
|
4653
|
+
_host_index=_host_index,
|
4654
|
+
)
|
4655
|
+
|
4656
|
+
@validate_call
|
4657
|
+
def token_info_without_preload_content(
|
4658
|
+
self,
|
4659
|
+
x_refresh_token: Annotated[
|
4660
|
+
Optional[StrictStr],
|
4661
|
+
Field(description="The refresh token for rotating the access token."),
|
4662
|
+
] = None,
|
4663
|
+
_request_timeout: Union[
|
4664
|
+
None,
|
4665
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4666
|
+
Tuple[
|
4667
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4668
|
+
],
|
4669
|
+
] = None,
|
4670
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4671
|
+
_content_type: Optional[StrictStr] = None,
|
4672
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4673
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4674
|
+
) -> RESTResponseType:
|
4675
|
+
"""Token info without preloading content"""
|
4676
|
+
if self.is_sync:
|
4677
|
+
return self._token_info_sync_without_preload_content(
|
4678
|
+
x_refresh_token=x_refresh_token,
|
4679
|
+
_request_timeout=_request_timeout,
|
4680
|
+
_request_auth=_request_auth,
|
4681
|
+
_content_type=_content_type,
|
4682
|
+
_headers=_headers,
|
4683
|
+
_host_index=_host_index,
|
4684
|
+
)
|
4685
|
+
|
4686
|
+
else:
|
4687
|
+
return self._token_info_async_without_preload_content(
|
4688
|
+
x_refresh_token=x_refresh_token,
|
4689
|
+
_request_timeout=_request_timeout,
|
4690
|
+
_request_auth=_request_auth,
|
4691
|
+
_content_type=_content_type,
|
4692
|
+
_headers=_headers,
|
4693
|
+
_host_index=_host_index,
|
4694
|
+
)
|
4695
|
+
|
4696
|
+
# Private async implementation methods
|
4697
|
+
@validate_call
|
4698
|
+
async def _token_info_async(
|
4699
|
+
self,
|
4700
|
+
x_refresh_token: Annotated[
|
4701
|
+
Optional[StrictStr],
|
4702
|
+
Field(description="The refresh token for rotating the access token."),
|
4703
|
+
] = None,
|
4704
|
+
_request_timeout: Union[
|
4705
|
+
None,
|
4706
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4707
|
+
Tuple[
|
4708
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4709
|
+
],
|
4710
|
+
] = None,
|
4711
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4712
|
+
_content_type: Optional[StrictStr] = None,
|
4713
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4714
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4715
|
+
) -> TokenInfo200Response:
|
4716
|
+
"""Token info
|
4717
|
+
|
4718
|
+
Returns the payload of the access token.
|
2117
4719
|
|
2118
4720
|
:param x_refresh_token: The refresh token for rotating the access token.
|
2119
4721
|
:type x_refresh_token: str
|
@@ -2139,7 +4741,7 @@ class AuthApi:
|
|
2139
4741
|
:return: Returns the result object.
|
2140
4742
|
""" # noqa: E501
|
2141
4743
|
|
2142
|
-
_param = self.
|
4744
|
+
_param = self._token_info_serialize(
|
2143
4745
|
x_refresh_token=x_refresh_token,
|
2144
4746
|
_request_auth=_request_auth,
|
2145
4747
|
_content_type=_content_type,
|
@@ -2148,7 +4750,7 @@ class AuthApi:
|
|
2148
4750
|
)
|
2149
4751
|
|
2150
4752
|
_response_types_map: Dict[str, Optional[str]] = {
|
2151
|
-
"200": "
|
4753
|
+
"200": "TokenInfo200Response",
|
2152
4754
|
}
|
2153
4755
|
response_data = await self.api_client.call_api(
|
2154
4756
|
*_param, _request_timeout=_request_timeout
|
@@ -2160,7 +4762,7 @@ class AuthApi:
|
|
2160
4762
|
).data
|
2161
4763
|
|
2162
4764
|
@validate_call
|
2163
|
-
async def
|
4765
|
+
async def _token_info_async_with_http_info(
|
2164
4766
|
self,
|
2165
4767
|
x_refresh_token: Annotated[
|
2166
4768
|
Optional[StrictStr],
|
@@ -2177,10 +4779,10 @@ class AuthApi:
|
|
2177
4779
|
_content_type: Optional[StrictStr] = None,
|
2178
4780
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2179
4781
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2180
|
-
) -> ApiResponse[
|
2181
|
-
"""
|
4782
|
+
) -> ApiResponse[TokenInfo200Response]:
|
4783
|
+
"""Token info
|
2182
4784
|
|
2183
|
-
|
4785
|
+
Returns the payload of the access token.
|
2184
4786
|
|
2185
4787
|
:param x_refresh_token: The refresh token for rotating the access token.
|
2186
4788
|
:type x_refresh_token: str
|
@@ -2206,7 +4808,7 @@ class AuthApi:
|
|
2206
4808
|
:return: Returns the result object.
|
2207
4809
|
""" # noqa: E501
|
2208
4810
|
|
2209
|
-
_param = self.
|
4811
|
+
_param = self._token_info_serialize(
|
2210
4812
|
x_refresh_token=x_refresh_token,
|
2211
4813
|
_request_auth=_request_auth,
|
2212
4814
|
_content_type=_content_type,
|
@@ -2215,19 +4817,18 @@ class AuthApi:
|
|
2215
4817
|
)
|
2216
4818
|
|
2217
4819
|
_response_types_map: Dict[str, Optional[str]] = {
|
2218
|
-
"200": "
|
4820
|
+
"200": "TokenInfo200Response",
|
2219
4821
|
}
|
2220
4822
|
response_data = await self.api_client.call_api(
|
2221
4823
|
*_param, _request_timeout=_request_timeout
|
2222
4824
|
)
|
2223
4825
|
await response_data.read()
|
2224
4826
|
return self.api_client.response_deserialize(
|
2225
|
-
response_data=response_data,
|
2226
|
-
response_types_map=_response_types_map,
|
4827
|
+
response_data=response_data, response_types_map=_response_types_map
|
2227
4828
|
)
|
2228
4829
|
|
2229
4830
|
@validate_call
|
2230
|
-
async def
|
4831
|
+
async def _token_info_async_without_preload_content(
|
2231
4832
|
self,
|
2232
4833
|
x_refresh_token: Annotated[
|
2233
4834
|
Optional[StrictStr],
|
@@ -2245,9 +4846,9 @@ class AuthApi:
|
|
2245
4846
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2246
4847
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2247
4848
|
) -> RESTResponseType:
|
2248
|
-
"""
|
4849
|
+
"""Token info
|
2249
4850
|
|
2250
|
-
|
4851
|
+
Returns the payload of the access token.
|
2251
4852
|
|
2252
4853
|
:param x_refresh_token: The refresh token for rotating the access token.
|
2253
4854
|
:type x_refresh_token: str
|
@@ -2273,7 +4874,7 @@ class AuthApi:
|
|
2273
4874
|
:return: Returns the result object.
|
2274
4875
|
""" # noqa: E501
|
2275
4876
|
|
2276
|
-
_param = self.
|
4877
|
+
_param = self._token_info_serialize(
|
2277
4878
|
x_refresh_token=x_refresh_token,
|
2278
4879
|
_request_auth=_request_auth,
|
2279
4880
|
_content_type=_content_type,
|
@@ -2282,14 +4883,102 @@ class AuthApi:
|
|
2282
4883
|
)
|
2283
4884
|
|
2284
4885
|
_response_types_map: Dict[str, Optional[str]] = {
|
2285
|
-
"200": "
|
4886
|
+
"200": "TokenInfo200Response",
|
2286
4887
|
}
|
2287
4888
|
response_data = await self.api_client.call_api(
|
2288
4889
|
*_param, _request_timeout=_request_timeout
|
2289
4890
|
)
|
2290
|
-
return response_data
|
4891
|
+
return response_data
|
4892
|
+
|
4893
|
+
# Private sync implementation methods
|
4894
|
+
@validate_call
|
4895
|
+
def _token_info_sync(
|
4896
|
+
self,
|
4897
|
+
x_refresh_token: Annotated[
|
4898
|
+
Optional[StrictStr],
|
4899
|
+
Field(description="The refresh token for rotating the access token."),
|
4900
|
+
] = None,
|
4901
|
+
_request_timeout: Union[
|
4902
|
+
None,
|
4903
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4904
|
+
Tuple[
|
4905
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4906
|
+
],
|
4907
|
+
] = None,
|
4908
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4909
|
+
_content_type: Optional[StrictStr] = None,
|
4910
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4911
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4912
|
+
) -> TokenInfo200Response:
|
4913
|
+
"""Synchronous version of token_info"""
|
4914
|
+
return async_to_sync(self._token_info_async)(
|
4915
|
+
x_refresh_token=x_refresh_token,
|
4916
|
+
_request_timeout=_request_timeout,
|
4917
|
+
_request_auth=_request_auth,
|
4918
|
+
_content_type=_content_type,
|
4919
|
+
_headers=_headers,
|
4920
|
+
_host_index=_host_index,
|
4921
|
+
)
|
4922
|
+
|
4923
|
+
@validate_call
|
4924
|
+
def _token_info_sync_with_http_info(
|
4925
|
+
self,
|
4926
|
+
x_refresh_token: Annotated[
|
4927
|
+
Optional[StrictStr],
|
4928
|
+
Field(description="The refresh token for rotating the access token."),
|
4929
|
+
] = None,
|
4930
|
+
_request_timeout: Union[
|
4931
|
+
None,
|
4932
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4933
|
+
Tuple[
|
4934
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4935
|
+
],
|
4936
|
+
] = None,
|
4937
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4938
|
+
_content_type: Optional[StrictStr] = None,
|
4939
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4940
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4941
|
+
) -> ApiResponse[TokenInfo200Response]:
|
4942
|
+
"""Synchronous version of token_info_with_http_info"""
|
4943
|
+
return async_to_sync(self._token_info_async_with_http_info)(
|
4944
|
+
x_refresh_token=x_refresh_token,
|
4945
|
+
_request_timeout=_request_timeout,
|
4946
|
+
_request_auth=_request_auth,
|
4947
|
+
_content_type=_content_type,
|
4948
|
+
_headers=_headers,
|
4949
|
+
_host_index=_host_index,
|
4950
|
+
)
|
4951
|
+
|
4952
|
+
@validate_call
|
4953
|
+
def _token_info_sync_without_preload_content(
|
4954
|
+
self,
|
4955
|
+
x_refresh_token: Annotated[
|
4956
|
+
Optional[StrictStr],
|
4957
|
+
Field(description="The refresh token for rotating the access token."),
|
4958
|
+
] = None,
|
4959
|
+
_request_timeout: Union[
|
4960
|
+
None,
|
4961
|
+
Annotated[StrictFloat, Field(gt=0)],
|
4962
|
+
Tuple[
|
4963
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
4964
|
+
],
|
4965
|
+
] = None,
|
4966
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4967
|
+
_content_type: Optional[StrictStr] = None,
|
4968
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4969
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4970
|
+
) -> RESTResponseType:
|
4971
|
+
"""Synchronous version of token_info_without_preload_content"""
|
4972
|
+
return async_to_sync(self._token_info_async_without_preload_content)(
|
4973
|
+
x_refresh_token=x_refresh_token,
|
4974
|
+
_request_timeout=_request_timeout,
|
4975
|
+
_request_auth=_request_auth,
|
4976
|
+
_content_type=_content_type,
|
4977
|
+
_headers=_headers,
|
4978
|
+
_host_index=_host_index,
|
4979
|
+
)
|
2291
4980
|
|
2292
|
-
def
|
4981
|
+
def _token_info_serialize(
|
2293
4982
|
self,
|
2294
4983
|
x_refresh_token,
|
2295
4984
|
_request_auth,
|
@@ -2326,11 +5015,11 @@ class AuthApi:
|
|
2326
5015
|
)
|
2327
5016
|
|
2328
5017
|
# authentication setting
|
2329
|
-
_auth_settings: List[str] = []
|
5018
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
2330
5019
|
|
2331
5020
|
return self.api_client.param_serialize(
|
2332
|
-
method="
|
2333
|
-
resource_path="/
|
5021
|
+
method="GET",
|
5022
|
+
resource_path="/token-info",
|
2334
5023
|
path_params=_path_params,
|
2335
5024
|
query_params=_query_params,
|
2336
5025
|
header_params=_header_params,
|
@@ -2344,12 +5033,76 @@ class AuthApi:
|
|
2344
5033
|
)
|
2345
5034
|
|
2346
5035
|
@validate_call
|
2347
|
-
|
5036
|
+
def verify(
|
2348
5037
|
self,
|
2349
|
-
|
2350
|
-
|
2351
|
-
Field(
|
5038
|
+
_request_timeout: Union[
|
5039
|
+
None,
|
5040
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5041
|
+
Tuple[
|
5042
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5043
|
+
],
|
5044
|
+
] = None,
|
5045
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5046
|
+
_content_type: Optional[StrictStr] = None,
|
5047
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5048
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5049
|
+
) -> Verify200Response:
|
5050
|
+
"""Verify Bearer Token"""
|
5051
|
+
if self.is_sync:
|
5052
|
+
return self._verify_sync(
|
5053
|
+
_request_timeout=_request_timeout,
|
5054
|
+
_request_auth=_request_auth,
|
5055
|
+
_content_type=_content_type,
|
5056
|
+
_headers=_headers,
|
5057
|
+
_host_index=_host_index,
|
5058
|
+
)
|
5059
|
+
|
5060
|
+
else:
|
5061
|
+
return self._verify_async(
|
5062
|
+
_request_timeout=_request_timeout,
|
5063
|
+
_request_auth=_request_auth,
|
5064
|
+
_content_type=_content_type,
|
5065
|
+
_headers=_headers,
|
5066
|
+
_host_index=_host_index,
|
5067
|
+
)
|
5068
|
+
|
5069
|
+
@validate_call
|
5070
|
+
def verify_with_http_info(
|
5071
|
+
self,
|
5072
|
+
_request_timeout: Union[
|
5073
|
+
None,
|
5074
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5075
|
+
Tuple[
|
5076
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5077
|
+
],
|
2352
5078
|
] = None,
|
5079
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5080
|
+
_content_type: Optional[StrictStr] = None,
|
5081
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5082
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5083
|
+
) -> ApiResponse[Verify200Response]:
|
5084
|
+
"""Verify Bearer Token with HTTP info"""
|
5085
|
+
if self.is_sync:
|
5086
|
+
return self._verify_sync_with_http_info(
|
5087
|
+
_request_timeout=_request_timeout,
|
5088
|
+
_request_auth=_request_auth,
|
5089
|
+
_content_type=_content_type,
|
5090
|
+
_headers=_headers,
|
5091
|
+
_host_index=_host_index,
|
5092
|
+
)
|
5093
|
+
|
5094
|
+
else:
|
5095
|
+
return self._verify_async_with_http_info(
|
5096
|
+
_request_timeout=_request_timeout,
|
5097
|
+
_request_auth=_request_auth,
|
5098
|
+
_content_type=_content_type,
|
5099
|
+
_headers=_headers,
|
5100
|
+
_host_index=_host_index,
|
5101
|
+
)
|
5102
|
+
|
5103
|
+
@validate_call
|
5104
|
+
def verify_without_preload_content(
|
5105
|
+
self,
|
2353
5106
|
_request_timeout: Union[
|
2354
5107
|
None,
|
2355
5108
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2361,13 +5114,46 @@ class AuthApi:
|
|
2361
5114
|
_content_type: Optional[StrictStr] = None,
|
2362
5115
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2363
5116
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2364
|
-
) ->
|
2365
|
-
"""Token
|
5117
|
+
) -> RESTResponseType:
|
5118
|
+
"""Verify Bearer Token without preloading content"""
|
5119
|
+
if self.is_sync:
|
5120
|
+
return self._verify_sync_without_preload_content(
|
5121
|
+
_request_timeout=_request_timeout,
|
5122
|
+
_request_auth=_request_auth,
|
5123
|
+
_content_type=_content_type,
|
5124
|
+
_headers=_headers,
|
5125
|
+
_host_index=_host_index,
|
5126
|
+
)
|
2366
5127
|
|
2367
|
-
|
5128
|
+
else:
|
5129
|
+
return self._verify_async_without_preload_content(
|
5130
|
+
_request_timeout=_request_timeout,
|
5131
|
+
_request_auth=_request_auth,
|
5132
|
+
_content_type=_content_type,
|
5133
|
+
_headers=_headers,
|
5134
|
+
_host_index=_host_index,
|
5135
|
+
)
|
5136
|
+
|
5137
|
+
# Private async implementation methods
|
5138
|
+
@validate_call
|
5139
|
+
async def _verify_async(
|
5140
|
+
self,
|
5141
|
+
_request_timeout: Union[
|
5142
|
+
None,
|
5143
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5144
|
+
Tuple[
|
5145
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5146
|
+
],
|
5147
|
+
] = None,
|
5148
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5149
|
+
_content_type: Optional[StrictStr] = None,
|
5150
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5151
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5152
|
+
) -> Verify200Response:
|
5153
|
+
"""Verify Bearer Token
|
5154
|
+
|
5155
|
+
Verifies the bearer token is valid.
|
2368
5156
|
|
2369
|
-
:param x_refresh_token: The refresh token for rotating the access token.
|
2370
|
-
:type x_refresh_token: str
|
2371
5157
|
:param _request_timeout: timeout setting for this request. If one
|
2372
5158
|
number provided, it will be total request
|
2373
5159
|
timeout. It can also be a pair (tuple) of
|
@@ -2390,8 +5176,7 @@ class AuthApi:
|
|
2390
5176
|
:return: Returns the result object.
|
2391
5177
|
""" # noqa: E501
|
2392
5178
|
|
2393
|
-
_param = self.
|
2394
|
-
x_refresh_token=x_refresh_token,
|
5179
|
+
_param = self._verify_serialize(
|
2395
5180
|
_request_auth=_request_auth,
|
2396
5181
|
_content_type=_content_type,
|
2397
5182
|
_headers=_headers,
|
@@ -2399,7 +5184,7 @@ class AuthApi:
|
|
2399
5184
|
)
|
2400
5185
|
|
2401
5186
|
_response_types_map: Dict[str, Optional[str]] = {
|
2402
|
-
"200": "
|
5187
|
+
"200": "Verify200Response",
|
2403
5188
|
}
|
2404
5189
|
response_data = await self.api_client.call_api(
|
2405
5190
|
*_param, _request_timeout=_request_timeout
|
@@ -2411,12 +5196,8 @@ class AuthApi:
|
|
2411
5196
|
).data
|
2412
5197
|
|
2413
5198
|
@validate_call
|
2414
|
-
async def
|
5199
|
+
async def _verify_async_with_http_info(
|
2415
5200
|
self,
|
2416
|
-
x_refresh_token: Annotated[
|
2417
|
-
Optional[StrictStr],
|
2418
|
-
Field(description="The refresh token for rotating the access token."),
|
2419
|
-
] = None,
|
2420
5201
|
_request_timeout: Union[
|
2421
5202
|
None,
|
2422
5203
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2428,13 +5209,11 @@ class AuthApi:
|
|
2428
5209
|
_content_type: Optional[StrictStr] = None,
|
2429
5210
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2430
5211
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2431
|
-
) -> ApiResponse[
|
2432
|
-
"""Token
|
5212
|
+
) -> ApiResponse[Verify200Response]:
|
5213
|
+
"""Verify Bearer Token
|
2433
5214
|
|
2434
|
-
|
5215
|
+
Verifies the bearer token is valid.
|
2435
5216
|
|
2436
|
-
:param x_refresh_token: The refresh token for rotating the access token.
|
2437
|
-
:type x_refresh_token: str
|
2438
5217
|
:param _request_timeout: timeout setting for this request. If one
|
2439
5218
|
number provided, it will be total request
|
2440
5219
|
timeout. It can also be a pair (tuple) of
|
@@ -2457,8 +5236,7 @@ class AuthApi:
|
|
2457
5236
|
:return: Returns the result object.
|
2458
5237
|
""" # noqa: E501
|
2459
5238
|
|
2460
|
-
_param = self.
|
2461
|
-
x_refresh_token=x_refresh_token,
|
5239
|
+
_param = self._verify_serialize(
|
2462
5240
|
_request_auth=_request_auth,
|
2463
5241
|
_content_type=_content_type,
|
2464
5242
|
_headers=_headers,
|
@@ -2466,24 +5244,19 @@ class AuthApi:
|
|
2466
5244
|
)
|
2467
5245
|
|
2468
5246
|
_response_types_map: Dict[str, Optional[str]] = {
|
2469
|
-
"200": "
|
5247
|
+
"200": "Verify200Response",
|
2470
5248
|
}
|
2471
5249
|
response_data = await self.api_client.call_api(
|
2472
5250
|
*_param, _request_timeout=_request_timeout
|
2473
5251
|
)
|
2474
5252
|
await response_data.read()
|
2475
5253
|
return self.api_client.response_deserialize(
|
2476
|
-
response_data=response_data,
|
2477
|
-
response_types_map=_response_types_map,
|
5254
|
+
response_data=response_data, response_types_map=_response_types_map
|
2478
5255
|
)
|
2479
5256
|
|
2480
5257
|
@validate_call
|
2481
|
-
async def
|
5258
|
+
async def _verify_async_without_preload_content(
|
2482
5259
|
self,
|
2483
|
-
x_refresh_token: Annotated[
|
2484
|
-
Optional[StrictStr],
|
2485
|
-
Field(description="The refresh token for rotating the access token."),
|
2486
|
-
] = None,
|
2487
5260
|
_request_timeout: Union[
|
2488
5261
|
None,
|
2489
5262
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2496,12 +5269,10 @@ class AuthApi:
|
|
2496
5269
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2497
5270
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2498
5271
|
) -> RESTResponseType:
|
2499
|
-
"""Token
|
5272
|
+
"""Verify Bearer Token
|
2500
5273
|
|
2501
|
-
|
5274
|
+
Verifies the bearer token is valid.
|
2502
5275
|
|
2503
|
-
:param x_refresh_token: The refresh token for rotating the access token.
|
2504
|
-
:type x_refresh_token: str
|
2505
5276
|
:param _request_timeout: timeout setting for this request. If one
|
2506
5277
|
number provided, it will be total request
|
2507
5278
|
timeout. It can also be a pair (tuple) of
|
@@ -2524,8 +5295,7 @@ class AuthApi:
|
|
2524
5295
|
:return: Returns the result object.
|
2525
5296
|
""" # noqa: E501
|
2526
5297
|
|
2527
|
-
_param = self.
|
2528
|
-
x_refresh_token=x_refresh_token,
|
5298
|
+
_param = self._verify_serialize(
|
2529
5299
|
_request_auth=_request_auth,
|
2530
5300
|
_content_type=_content_type,
|
2531
5301
|
_headers=_headers,
|
@@ -2533,16 +5303,88 @@ class AuthApi:
|
|
2533
5303
|
)
|
2534
5304
|
|
2535
5305
|
_response_types_map: Dict[str, Optional[str]] = {
|
2536
|
-
"200": "
|
5306
|
+
"200": "Verify200Response",
|
2537
5307
|
}
|
2538
5308
|
response_data = await self.api_client.call_api(
|
2539
5309
|
*_param, _request_timeout=_request_timeout
|
2540
5310
|
)
|
2541
|
-
return response_data
|
5311
|
+
return response_data
|
2542
5312
|
|
2543
|
-
|
5313
|
+
# Private sync implementation methods
|
5314
|
+
@validate_call
|
5315
|
+
def _verify_sync(
|
5316
|
+
self,
|
5317
|
+
_request_timeout: Union[
|
5318
|
+
None,
|
5319
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5320
|
+
Tuple[
|
5321
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5322
|
+
],
|
5323
|
+
] = None,
|
5324
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5325
|
+
_content_type: Optional[StrictStr] = None,
|
5326
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5327
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5328
|
+
) -> Verify200Response:
|
5329
|
+
"""Synchronous version of verify"""
|
5330
|
+
return async_to_sync(self._verify_async)(
|
5331
|
+
_request_timeout=_request_timeout,
|
5332
|
+
_request_auth=_request_auth,
|
5333
|
+
_content_type=_content_type,
|
5334
|
+
_headers=_headers,
|
5335
|
+
_host_index=_host_index,
|
5336
|
+
)
|
5337
|
+
|
5338
|
+
@validate_call
|
5339
|
+
def _verify_sync_with_http_info(
|
5340
|
+
self,
|
5341
|
+
_request_timeout: Union[
|
5342
|
+
None,
|
5343
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5344
|
+
Tuple[
|
5345
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5346
|
+
],
|
5347
|
+
] = None,
|
5348
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5349
|
+
_content_type: Optional[StrictStr] = None,
|
5350
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5351
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5352
|
+
) -> ApiResponse[Verify200Response]:
|
5353
|
+
"""Synchronous version of verify_with_http_info"""
|
5354
|
+
return async_to_sync(self._verify_async_with_http_info)(
|
5355
|
+
_request_timeout=_request_timeout,
|
5356
|
+
_request_auth=_request_auth,
|
5357
|
+
_content_type=_content_type,
|
5358
|
+
_headers=_headers,
|
5359
|
+
_host_index=_host_index,
|
5360
|
+
)
|
5361
|
+
|
5362
|
+
@validate_call
|
5363
|
+
def _verify_sync_without_preload_content(
|
5364
|
+
self,
|
5365
|
+
_request_timeout: Union[
|
5366
|
+
None,
|
5367
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5368
|
+
Tuple[
|
5369
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5370
|
+
],
|
5371
|
+
] = None,
|
5372
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5373
|
+
_content_type: Optional[StrictStr] = None,
|
5374
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5375
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5376
|
+
) -> RESTResponseType:
|
5377
|
+
"""Synchronous version of verify_without_preload_content"""
|
5378
|
+
return async_to_sync(self._verify_async_without_preload_content)(
|
5379
|
+
_request_timeout=_request_timeout,
|
5380
|
+
_request_auth=_request_auth,
|
5381
|
+
_content_type=_content_type,
|
5382
|
+
_headers=_headers,
|
5383
|
+
_host_index=_host_index,
|
5384
|
+
)
|
5385
|
+
|
5386
|
+
def _verify_serialize(
|
2544
5387
|
self,
|
2545
|
-
x_refresh_token,
|
2546
5388
|
_request_auth,
|
2547
5389
|
_content_type,
|
2548
5390
|
_headers,
|
@@ -2565,8 +5407,6 @@ class AuthApi:
|
|
2565
5407
|
# process the path parameters
|
2566
5408
|
# process the query parameters
|
2567
5409
|
# process the header parameters
|
2568
|
-
if x_refresh_token is not None:
|
2569
|
-
_header_params["X-Refresh-Token"] = x_refresh_token
|
2570
5410
|
# process the form parameters
|
2571
5411
|
# process the body parameter
|
2572
5412
|
|
@@ -2581,7 +5421,7 @@ class AuthApi:
|
|
2581
5421
|
|
2582
5422
|
return self.api_client.param_serialize(
|
2583
5423
|
method="GET",
|
2584
|
-
resource_path="/
|
5424
|
+
resource_path="/verify",
|
2585
5425
|
path_params=_path_params,
|
2586
5426
|
query_params=_query_params,
|
2587
5427
|
header_params=_header_params,
|
@@ -2595,8 +5435,9 @@ class AuthApi:
|
|
2595
5435
|
)
|
2596
5436
|
|
2597
5437
|
@validate_call
|
2598
|
-
|
5438
|
+
def verify_api_key(
|
2599
5439
|
self,
|
5440
|
+
api_key: StrictStr,
|
2600
5441
|
_request_timeout: Union[
|
2601
5442
|
None,
|
2602
5443
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2609,10 +5450,124 @@ class AuthApi:
|
|
2609
5450
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2610
5451
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2611
5452
|
) -> Verify200Response:
|
2612
|
-
"""Verify
|
5453
|
+
"""Verify API Key"""
|
5454
|
+
if self.is_sync:
|
5455
|
+
return self._verify_api_key_sync(
|
5456
|
+
api_key=api_key,
|
5457
|
+
_request_timeout=_request_timeout,
|
5458
|
+
_request_auth=_request_auth,
|
5459
|
+
_content_type=_content_type,
|
5460
|
+
_headers=_headers,
|
5461
|
+
_host_index=_host_index,
|
5462
|
+
)
|
2613
5463
|
|
2614
|
-
|
5464
|
+
else:
|
5465
|
+
return self._verify_api_key_async(
|
5466
|
+
api_key=api_key,
|
5467
|
+
_request_timeout=_request_timeout,
|
5468
|
+
_request_auth=_request_auth,
|
5469
|
+
_content_type=_content_type,
|
5470
|
+
_headers=_headers,
|
5471
|
+
_host_index=_host_index,
|
5472
|
+
)
|
2615
5473
|
|
5474
|
+
@validate_call
|
5475
|
+
def verify_api_key_with_http_info(
|
5476
|
+
self,
|
5477
|
+
api_key: StrictStr,
|
5478
|
+
_request_timeout: Union[
|
5479
|
+
None,
|
5480
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5481
|
+
Tuple[
|
5482
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5483
|
+
],
|
5484
|
+
] = None,
|
5485
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5486
|
+
_content_type: Optional[StrictStr] = None,
|
5487
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5488
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5489
|
+
) -> ApiResponse[Verify200Response]:
|
5490
|
+
"""Verify API Key with HTTP info"""
|
5491
|
+
if self.is_sync:
|
5492
|
+
return self._verify_api_key_sync_with_http_info(
|
5493
|
+
api_key=api_key,
|
5494
|
+
_request_timeout=_request_timeout,
|
5495
|
+
_request_auth=_request_auth,
|
5496
|
+
_content_type=_content_type,
|
5497
|
+
_headers=_headers,
|
5498
|
+
_host_index=_host_index,
|
5499
|
+
)
|
5500
|
+
|
5501
|
+
else:
|
5502
|
+
return self._verify_api_key_async_with_http_info(
|
5503
|
+
api_key=api_key,
|
5504
|
+
_request_timeout=_request_timeout,
|
5505
|
+
_request_auth=_request_auth,
|
5506
|
+
_content_type=_content_type,
|
5507
|
+
_headers=_headers,
|
5508
|
+
_host_index=_host_index,
|
5509
|
+
)
|
5510
|
+
|
5511
|
+
@validate_call
|
5512
|
+
def verify_api_key_without_preload_content(
|
5513
|
+
self,
|
5514
|
+
api_key: StrictStr,
|
5515
|
+
_request_timeout: Union[
|
5516
|
+
None,
|
5517
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5518
|
+
Tuple[
|
5519
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5520
|
+
],
|
5521
|
+
] = None,
|
5522
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5523
|
+
_content_type: Optional[StrictStr] = None,
|
5524
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5525
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5526
|
+
) -> RESTResponseType:
|
5527
|
+
"""Verify API Key without preloading content"""
|
5528
|
+
if self.is_sync:
|
5529
|
+
return self._verify_api_key_sync_without_preload_content(
|
5530
|
+
api_key=api_key,
|
5531
|
+
_request_timeout=_request_timeout,
|
5532
|
+
_request_auth=_request_auth,
|
5533
|
+
_content_type=_content_type,
|
5534
|
+
_headers=_headers,
|
5535
|
+
_host_index=_host_index,
|
5536
|
+
)
|
5537
|
+
|
5538
|
+
else:
|
5539
|
+
return self._verify_api_key_async_without_preload_content(
|
5540
|
+
api_key=api_key,
|
5541
|
+
_request_timeout=_request_timeout,
|
5542
|
+
_request_auth=_request_auth,
|
5543
|
+
_content_type=_content_type,
|
5544
|
+
_headers=_headers,
|
5545
|
+
_host_index=_host_index,
|
5546
|
+
)
|
5547
|
+
|
5548
|
+
# Private async implementation methods
|
5549
|
+
@validate_call
|
5550
|
+
async def _verify_api_key_async(
|
5551
|
+
self,
|
5552
|
+
api_key: StrictStr,
|
5553
|
+
_request_timeout: Union[
|
5554
|
+
None,
|
5555
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5556
|
+
Tuple[
|
5557
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5558
|
+
],
|
5559
|
+
] = None,
|
5560
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5561
|
+
_content_type: Optional[StrictStr] = None,
|
5562
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5563
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5564
|
+
) -> Verify200Response:
|
5565
|
+
"""Verify API Key
|
5566
|
+
|
5567
|
+
Verifies the API key is valid.
|
5568
|
+
|
5569
|
+
:param api_key: (required)
|
5570
|
+
:type api_key: str
|
2616
5571
|
:param _request_timeout: timeout setting for this request. If one
|
2617
5572
|
number provided, it will be total request
|
2618
5573
|
timeout. It can also be a pair (tuple) of
|
@@ -2635,7 +5590,8 @@ class AuthApi:
|
|
2635
5590
|
:return: Returns the result object.
|
2636
5591
|
""" # noqa: E501
|
2637
5592
|
|
2638
|
-
_param = self.
|
5593
|
+
_param = self._verify_api_key_serialize(
|
5594
|
+
api_key=api_key,
|
2639
5595
|
_request_auth=_request_auth,
|
2640
5596
|
_content_type=_content_type,
|
2641
5597
|
_headers=_headers,
|
@@ -2655,8 +5611,9 @@ class AuthApi:
|
|
2655
5611
|
).data
|
2656
5612
|
|
2657
5613
|
@validate_call
|
2658
|
-
async def
|
5614
|
+
async def _verify_api_key_async_with_http_info(
|
2659
5615
|
self,
|
5616
|
+
api_key: StrictStr,
|
2660
5617
|
_request_timeout: Union[
|
2661
5618
|
None,
|
2662
5619
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2669,10 +5626,12 @@ class AuthApi:
|
|
2669
5626
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2670
5627
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2671
5628
|
) -> ApiResponse[Verify200Response]:
|
2672
|
-
"""Verify
|
5629
|
+
"""Verify API Key
|
2673
5630
|
|
2674
|
-
Verifies the
|
5631
|
+
Verifies the API key is valid.
|
2675
5632
|
|
5633
|
+
:param api_key: (required)
|
5634
|
+
:type api_key: str
|
2676
5635
|
:param _request_timeout: timeout setting for this request. If one
|
2677
5636
|
number provided, it will be total request
|
2678
5637
|
timeout. It can also be a pair (tuple) of
|
@@ -2695,7 +5654,8 @@ class AuthApi:
|
|
2695
5654
|
:return: Returns the result object.
|
2696
5655
|
""" # noqa: E501
|
2697
5656
|
|
2698
|
-
_param = self.
|
5657
|
+
_param = self._verify_api_key_serialize(
|
5658
|
+
api_key=api_key,
|
2699
5659
|
_request_auth=_request_auth,
|
2700
5660
|
_content_type=_content_type,
|
2701
5661
|
_headers=_headers,
|
@@ -2710,13 +5670,13 @@ class AuthApi:
|
|
2710
5670
|
)
|
2711
5671
|
await response_data.read()
|
2712
5672
|
return self.api_client.response_deserialize(
|
2713
|
-
response_data=response_data,
|
2714
|
-
response_types_map=_response_types_map,
|
5673
|
+
response_data=response_data, response_types_map=_response_types_map
|
2715
5674
|
)
|
2716
5675
|
|
2717
5676
|
@validate_call
|
2718
|
-
async def
|
5677
|
+
async def _verify_api_key_async_without_preload_content(
|
2719
5678
|
self,
|
5679
|
+
api_key: StrictStr,
|
2720
5680
|
_request_timeout: Union[
|
2721
5681
|
None,
|
2722
5682
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2729,10 +5689,12 @@ class AuthApi:
|
|
2729
5689
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2730
5690
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2731
5691
|
) -> RESTResponseType:
|
2732
|
-
"""Verify
|
5692
|
+
"""Verify API Key
|
2733
5693
|
|
2734
|
-
Verifies the
|
5694
|
+
Verifies the API key is valid.
|
2735
5695
|
|
5696
|
+
:param api_key: (required)
|
5697
|
+
:type api_key: str
|
2736
5698
|
:param _request_timeout: timeout setting for this request. If one
|
2737
5699
|
number provided, it will be total request
|
2738
5700
|
timeout. It can also be a pair (tuple) of
|
@@ -2755,7 +5717,8 @@ class AuthApi:
|
|
2755
5717
|
:return: Returns the result object.
|
2756
5718
|
""" # noqa: E501
|
2757
5719
|
|
2758
|
-
_param = self.
|
5720
|
+
_param = self._verify_api_key_serialize(
|
5721
|
+
api_key=api_key,
|
2759
5722
|
_request_auth=_request_auth,
|
2760
5723
|
_content_type=_content_type,
|
2761
5724
|
_headers=_headers,
|
@@ -2768,10 +5731,90 @@ class AuthApi:
|
|
2768
5731
|
response_data = await self.api_client.call_api(
|
2769
5732
|
*_param, _request_timeout=_request_timeout
|
2770
5733
|
)
|
2771
|
-
return response_data
|
5734
|
+
return response_data
|
2772
5735
|
|
2773
|
-
|
5736
|
+
# Private sync implementation methods
|
5737
|
+
@validate_call
|
5738
|
+
def _verify_api_key_sync(
|
5739
|
+
self,
|
5740
|
+
api_key: StrictStr,
|
5741
|
+
_request_timeout: Union[
|
5742
|
+
None,
|
5743
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5744
|
+
Tuple[
|
5745
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5746
|
+
],
|
5747
|
+
] = None,
|
5748
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5749
|
+
_content_type: Optional[StrictStr] = None,
|
5750
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5751
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5752
|
+
) -> Verify200Response:
|
5753
|
+
"""Synchronous version of verify_api_key"""
|
5754
|
+
return async_to_sync(self._verify_api_key_async)(
|
5755
|
+
api_key=api_key,
|
5756
|
+
_request_timeout=_request_timeout,
|
5757
|
+
_request_auth=_request_auth,
|
5758
|
+
_content_type=_content_type,
|
5759
|
+
_headers=_headers,
|
5760
|
+
_host_index=_host_index,
|
5761
|
+
)
|
5762
|
+
|
5763
|
+
@validate_call
|
5764
|
+
def _verify_api_key_sync_with_http_info(
|
5765
|
+
self,
|
5766
|
+
api_key: StrictStr,
|
5767
|
+
_request_timeout: Union[
|
5768
|
+
None,
|
5769
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5770
|
+
Tuple[
|
5771
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5772
|
+
],
|
5773
|
+
] = None,
|
5774
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5775
|
+
_content_type: Optional[StrictStr] = None,
|
5776
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5777
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5778
|
+
) -> ApiResponse[Verify200Response]:
|
5779
|
+
"""Synchronous version of verify_api_key_with_http_info"""
|
5780
|
+
return async_to_sync(self._verify_api_key_async_with_http_info)(
|
5781
|
+
api_key=api_key,
|
5782
|
+
_request_timeout=_request_timeout,
|
5783
|
+
_request_auth=_request_auth,
|
5784
|
+
_content_type=_content_type,
|
5785
|
+
_headers=_headers,
|
5786
|
+
_host_index=_host_index,
|
5787
|
+
)
|
5788
|
+
|
5789
|
+
@validate_call
|
5790
|
+
def _verify_api_key_sync_without_preload_content(
|
5791
|
+
self,
|
5792
|
+
api_key: StrictStr,
|
5793
|
+
_request_timeout: Union[
|
5794
|
+
None,
|
5795
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5796
|
+
Tuple[
|
5797
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5798
|
+
],
|
5799
|
+
] = None,
|
5800
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5801
|
+
_content_type: Optional[StrictStr] = None,
|
5802
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5803
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5804
|
+
) -> RESTResponseType:
|
5805
|
+
"""Synchronous version of verify_api_key_without_preload_content"""
|
5806
|
+
return async_to_sync(self._verify_api_key_async_without_preload_content)(
|
5807
|
+
api_key=api_key,
|
5808
|
+
_request_timeout=_request_timeout,
|
5809
|
+
_request_auth=_request_auth,
|
5810
|
+
_content_type=_content_type,
|
5811
|
+
_headers=_headers,
|
5812
|
+
_host_index=_host_index,
|
5813
|
+
)
|
5814
|
+
|
5815
|
+
def _verify_api_key_serialize(
|
2774
5816
|
self,
|
5817
|
+
api_key,
|
2775
5818
|
_request_auth,
|
2776
5819
|
_content_type,
|
2777
5820
|
_headers,
|
@@ -2793,6 +5836,10 @@ class AuthApi:
|
|
2793
5836
|
|
2794
5837
|
# process the path parameters
|
2795
5838
|
# process the query parameters
|
5839
|
+
if api_key is not None:
|
5840
|
+
|
5841
|
+
_query_params.append(("apiKey", api_key))
|
5842
|
+
|
2796
5843
|
# process the header parameters
|
2797
5844
|
# process the form parameters
|
2798
5845
|
# process the body parameter
|
@@ -2804,11 +5851,11 @@ class AuthApi:
|
|
2804
5851
|
)
|
2805
5852
|
|
2806
5853
|
# authentication setting
|
2807
|
-
_auth_settings: List[str] = [
|
5854
|
+
_auth_settings: List[str] = []
|
2808
5855
|
|
2809
5856
|
return self.api_client.param_serialize(
|
2810
5857
|
method="GET",
|
2811
|
-
resource_path="/verify",
|
5858
|
+
resource_path="/verify-api-key",
|
2812
5859
|
path_params=_path_params,
|
2813
5860
|
query_params=_query_params,
|
2814
5861
|
header_params=_header_params,
|
@@ -2822,9 +5869,10 @@ class AuthApi:
|
|
2822
5869
|
)
|
2823
5870
|
|
2824
5871
|
@validate_call
|
2825
|
-
|
5872
|
+
def verify_basic_auth(
|
2826
5873
|
self,
|
2827
|
-
|
5874
|
+
username: StrictStr,
|
5875
|
+
password: StrictStr,
|
2828
5876
|
_request_timeout: Union[
|
2829
5877
|
None,
|
2830
5878
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2836,13 +5884,136 @@ class AuthApi:
|
|
2836
5884
|
_content_type: Optional[StrictStr] = None,
|
2837
5885
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2838
5886
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2839
|
-
) ->
|
2840
|
-
"""Verify
|
5887
|
+
) -> object:
|
5888
|
+
"""Verify Basic Auth"""
|
5889
|
+
if self.is_sync:
|
5890
|
+
return self._verify_basic_auth_sync(
|
5891
|
+
username=username,
|
5892
|
+
password=password,
|
5893
|
+
_request_timeout=_request_timeout,
|
5894
|
+
_request_auth=_request_auth,
|
5895
|
+
_content_type=_content_type,
|
5896
|
+
_headers=_headers,
|
5897
|
+
_host_index=_host_index,
|
5898
|
+
)
|
2841
5899
|
|
2842
|
-
|
5900
|
+
else:
|
5901
|
+
return self._verify_basic_auth_async(
|
5902
|
+
username=username,
|
5903
|
+
password=password,
|
5904
|
+
_request_timeout=_request_timeout,
|
5905
|
+
_request_auth=_request_auth,
|
5906
|
+
_content_type=_content_type,
|
5907
|
+
_headers=_headers,
|
5908
|
+
_host_index=_host_index,
|
5909
|
+
)
|
2843
5910
|
|
2844
|
-
|
2845
|
-
|
5911
|
+
@validate_call
|
5912
|
+
def verify_basic_auth_with_http_info(
|
5913
|
+
self,
|
5914
|
+
username: StrictStr,
|
5915
|
+
password: StrictStr,
|
5916
|
+
_request_timeout: Union[
|
5917
|
+
None,
|
5918
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5919
|
+
Tuple[
|
5920
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5921
|
+
],
|
5922
|
+
] = None,
|
5923
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5924
|
+
_content_type: Optional[StrictStr] = None,
|
5925
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5926
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5927
|
+
) -> ApiResponse[object]:
|
5928
|
+
"""Verify Basic Auth with HTTP info"""
|
5929
|
+
if self.is_sync:
|
5930
|
+
return self._verify_basic_auth_sync_with_http_info(
|
5931
|
+
username=username,
|
5932
|
+
password=password,
|
5933
|
+
_request_timeout=_request_timeout,
|
5934
|
+
_request_auth=_request_auth,
|
5935
|
+
_content_type=_content_type,
|
5936
|
+
_headers=_headers,
|
5937
|
+
_host_index=_host_index,
|
5938
|
+
)
|
5939
|
+
|
5940
|
+
else:
|
5941
|
+
return self._verify_basic_auth_async_with_http_info(
|
5942
|
+
username=username,
|
5943
|
+
password=password,
|
5944
|
+
_request_timeout=_request_timeout,
|
5945
|
+
_request_auth=_request_auth,
|
5946
|
+
_content_type=_content_type,
|
5947
|
+
_headers=_headers,
|
5948
|
+
_host_index=_host_index,
|
5949
|
+
)
|
5950
|
+
|
5951
|
+
@validate_call
|
5952
|
+
def verify_basic_auth_without_preload_content(
|
5953
|
+
self,
|
5954
|
+
username: StrictStr,
|
5955
|
+
password: StrictStr,
|
5956
|
+
_request_timeout: Union[
|
5957
|
+
None,
|
5958
|
+
Annotated[StrictFloat, Field(gt=0)],
|
5959
|
+
Tuple[
|
5960
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
5961
|
+
],
|
5962
|
+
] = None,
|
5963
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5964
|
+
_content_type: Optional[StrictStr] = None,
|
5965
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5966
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
5967
|
+
) -> RESTResponseType:
|
5968
|
+
"""Verify Basic Auth without preloading content"""
|
5969
|
+
if self.is_sync:
|
5970
|
+
return self._verify_basic_auth_sync_without_preload_content(
|
5971
|
+
username=username,
|
5972
|
+
password=password,
|
5973
|
+
_request_timeout=_request_timeout,
|
5974
|
+
_request_auth=_request_auth,
|
5975
|
+
_content_type=_content_type,
|
5976
|
+
_headers=_headers,
|
5977
|
+
_host_index=_host_index,
|
5978
|
+
)
|
5979
|
+
|
5980
|
+
else:
|
5981
|
+
return self._verify_basic_auth_async_without_preload_content(
|
5982
|
+
username=username,
|
5983
|
+
password=password,
|
5984
|
+
_request_timeout=_request_timeout,
|
5985
|
+
_request_auth=_request_auth,
|
5986
|
+
_content_type=_content_type,
|
5987
|
+
_headers=_headers,
|
5988
|
+
_host_index=_host_index,
|
5989
|
+
)
|
5990
|
+
|
5991
|
+
# Private async implementation methods
|
5992
|
+
@validate_call
|
5993
|
+
async def _verify_basic_auth_async(
|
5994
|
+
self,
|
5995
|
+
username: StrictStr,
|
5996
|
+
password: StrictStr,
|
5997
|
+
_request_timeout: Union[
|
5998
|
+
None,
|
5999
|
+
Annotated[StrictFloat, Field(gt=0)],
|
6000
|
+
Tuple[
|
6001
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
6002
|
+
],
|
6003
|
+
] = None,
|
6004
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
6005
|
+
_content_type: Optional[StrictStr] = None,
|
6006
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
6007
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
6008
|
+
) -> object:
|
6009
|
+
"""Verify Basic Auth
|
6010
|
+
|
6011
|
+
Verifies the basic authentication credentials.
|
6012
|
+
|
6013
|
+
:param username: (required)
|
6014
|
+
:type username: str
|
6015
|
+
:param password: (required)
|
6016
|
+
:type password: str
|
2846
6017
|
:param _request_timeout: timeout setting for this request. If one
|
2847
6018
|
number provided, it will be total request
|
2848
6019
|
timeout. It can also be a pair (tuple) of
|
@@ -2865,8 +6036,9 @@ class AuthApi:
|
|
2865
6036
|
:return: Returns the result object.
|
2866
6037
|
""" # noqa: E501
|
2867
6038
|
|
2868
|
-
_param = self.
|
2869
|
-
|
6039
|
+
_param = self._verify_basic_auth_serialize(
|
6040
|
+
username=username,
|
6041
|
+
password=password,
|
2870
6042
|
_request_auth=_request_auth,
|
2871
6043
|
_content_type=_content_type,
|
2872
6044
|
_headers=_headers,
|
@@ -2874,7 +6046,7 @@ class AuthApi:
|
|
2874
6046
|
)
|
2875
6047
|
|
2876
6048
|
_response_types_map: Dict[str, Optional[str]] = {
|
2877
|
-
"200": "
|
6049
|
+
"200": "object",
|
2878
6050
|
}
|
2879
6051
|
response_data = await self.api_client.call_api(
|
2880
6052
|
*_param, _request_timeout=_request_timeout
|
@@ -2886,9 +6058,10 @@ class AuthApi:
|
|
2886
6058
|
).data
|
2887
6059
|
|
2888
6060
|
@validate_call
|
2889
|
-
async def
|
6061
|
+
async def _verify_basic_auth_async_with_http_info(
|
2890
6062
|
self,
|
2891
|
-
|
6063
|
+
username: StrictStr,
|
6064
|
+
password: StrictStr,
|
2892
6065
|
_request_timeout: Union[
|
2893
6066
|
None,
|
2894
6067
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2900,13 +6073,15 @@ class AuthApi:
|
|
2900
6073
|
_content_type: Optional[StrictStr] = None,
|
2901
6074
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2902
6075
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2903
|
-
) -> ApiResponse[
|
2904
|
-
"""Verify
|
6076
|
+
) -> ApiResponse[object]:
|
6077
|
+
"""Verify Basic Auth
|
2905
6078
|
|
2906
|
-
Verifies the
|
6079
|
+
Verifies the basic authentication credentials.
|
2907
6080
|
|
2908
|
-
:param
|
2909
|
-
:type
|
6081
|
+
:param username: (required)
|
6082
|
+
:type username: str
|
6083
|
+
:param password: (required)
|
6084
|
+
:type password: str
|
2910
6085
|
:param _request_timeout: timeout setting for this request. If one
|
2911
6086
|
number provided, it will be total request
|
2912
6087
|
timeout. It can also be a pair (tuple) of
|
@@ -2929,8 +6104,9 @@ class AuthApi:
|
|
2929
6104
|
:return: Returns the result object.
|
2930
6105
|
""" # noqa: E501
|
2931
6106
|
|
2932
|
-
_param = self.
|
2933
|
-
|
6107
|
+
_param = self._verify_basic_auth_serialize(
|
6108
|
+
username=username,
|
6109
|
+
password=password,
|
2934
6110
|
_request_auth=_request_auth,
|
2935
6111
|
_content_type=_content_type,
|
2936
6112
|
_headers=_headers,
|
@@ -2938,21 +6114,21 @@ class AuthApi:
|
|
2938
6114
|
)
|
2939
6115
|
|
2940
6116
|
_response_types_map: Dict[str, Optional[str]] = {
|
2941
|
-
"200": "
|
6117
|
+
"200": "object",
|
2942
6118
|
}
|
2943
6119
|
response_data = await self.api_client.call_api(
|
2944
6120
|
*_param, _request_timeout=_request_timeout
|
2945
6121
|
)
|
2946
6122
|
await response_data.read()
|
2947
6123
|
return self.api_client.response_deserialize(
|
2948
|
-
response_data=response_data,
|
2949
|
-
response_types_map=_response_types_map,
|
6124
|
+
response_data=response_data, response_types_map=_response_types_map
|
2950
6125
|
)
|
2951
6126
|
|
2952
6127
|
@validate_call
|
2953
|
-
async def
|
6128
|
+
async def _verify_basic_auth_async_without_preload_content(
|
2954
6129
|
self,
|
2955
|
-
|
6130
|
+
username: StrictStr,
|
6131
|
+
password: StrictStr,
|
2956
6132
|
_request_timeout: Union[
|
2957
6133
|
None,
|
2958
6134
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2965,12 +6141,14 @@ class AuthApi:
|
|
2965
6141
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2966
6142
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2967
6143
|
) -> RESTResponseType:
|
2968
|
-
"""Verify
|
6144
|
+
"""Verify Basic Auth
|
2969
6145
|
|
2970
|
-
Verifies the
|
6146
|
+
Verifies the basic authentication credentials.
|
2971
6147
|
|
2972
|
-
:param
|
2973
|
-
:type
|
6148
|
+
:param username: (required)
|
6149
|
+
:type username: str
|
6150
|
+
:param password: (required)
|
6151
|
+
:type password: str
|
2974
6152
|
:param _request_timeout: timeout setting for this request. If one
|
2975
6153
|
number provided, it will be total request
|
2976
6154
|
timeout. It can also be a pair (tuple) of
|
@@ -2993,8 +6171,9 @@ class AuthApi:
|
|
2993
6171
|
:return: Returns the result object.
|
2994
6172
|
""" # noqa: E501
|
2995
6173
|
|
2996
|
-
_param = self.
|
2997
|
-
|
6174
|
+
_param = self._verify_basic_auth_serialize(
|
6175
|
+
username=username,
|
6176
|
+
password=password,
|
2998
6177
|
_request_auth=_request_auth,
|
2999
6178
|
_content_type=_content_type,
|
3000
6179
|
_headers=_headers,
|
@@ -3002,16 +6181,102 @@ class AuthApi:
|
|
3002
6181
|
)
|
3003
6182
|
|
3004
6183
|
_response_types_map: Dict[str, Optional[str]] = {
|
3005
|
-
"200": "
|
6184
|
+
"200": "object",
|
3006
6185
|
}
|
3007
6186
|
response_data = await self.api_client.call_api(
|
3008
6187
|
*_param, _request_timeout=_request_timeout
|
3009
6188
|
)
|
3010
|
-
return response_data
|
6189
|
+
return response_data
|
3011
6190
|
|
3012
|
-
|
6191
|
+
# Private sync implementation methods
|
6192
|
+
@validate_call
|
6193
|
+
def _verify_basic_auth_sync(
|
3013
6194
|
self,
|
3014
|
-
|
6195
|
+
username: StrictStr,
|
6196
|
+
password: StrictStr,
|
6197
|
+
_request_timeout: Union[
|
6198
|
+
None,
|
6199
|
+
Annotated[StrictFloat, Field(gt=0)],
|
6200
|
+
Tuple[
|
6201
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
6202
|
+
],
|
6203
|
+
] = None,
|
6204
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
6205
|
+
_content_type: Optional[StrictStr] = None,
|
6206
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
6207
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
6208
|
+
) -> object:
|
6209
|
+
"""Synchronous version of verify_basic_auth"""
|
6210
|
+
return async_to_sync(self._verify_basic_auth_async)(
|
6211
|
+
username=username,
|
6212
|
+
password=password,
|
6213
|
+
_request_timeout=_request_timeout,
|
6214
|
+
_request_auth=_request_auth,
|
6215
|
+
_content_type=_content_type,
|
6216
|
+
_headers=_headers,
|
6217
|
+
_host_index=_host_index,
|
6218
|
+
)
|
6219
|
+
|
6220
|
+
@validate_call
|
6221
|
+
def _verify_basic_auth_sync_with_http_info(
|
6222
|
+
self,
|
6223
|
+
username: StrictStr,
|
6224
|
+
password: StrictStr,
|
6225
|
+
_request_timeout: Union[
|
6226
|
+
None,
|
6227
|
+
Annotated[StrictFloat, Field(gt=0)],
|
6228
|
+
Tuple[
|
6229
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
6230
|
+
],
|
6231
|
+
] = None,
|
6232
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
6233
|
+
_content_type: Optional[StrictStr] = None,
|
6234
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
6235
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
6236
|
+
) -> ApiResponse[object]:
|
6237
|
+
"""Synchronous version of verify_basic_auth_with_http_info"""
|
6238
|
+
return async_to_sync(self._verify_basic_auth_async_with_http_info)(
|
6239
|
+
username=username,
|
6240
|
+
password=password,
|
6241
|
+
_request_timeout=_request_timeout,
|
6242
|
+
_request_auth=_request_auth,
|
6243
|
+
_content_type=_content_type,
|
6244
|
+
_headers=_headers,
|
6245
|
+
_host_index=_host_index,
|
6246
|
+
)
|
6247
|
+
|
6248
|
+
@validate_call
|
6249
|
+
def _verify_basic_auth_sync_without_preload_content(
|
6250
|
+
self,
|
6251
|
+
username: StrictStr,
|
6252
|
+
password: StrictStr,
|
6253
|
+
_request_timeout: Union[
|
6254
|
+
None,
|
6255
|
+
Annotated[StrictFloat, Field(gt=0)],
|
6256
|
+
Tuple[
|
6257
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
6258
|
+
],
|
6259
|
+
] = None,
|
6260
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
6261
|
+
_content_type: Optional[StrictStr] = None,
|
6262
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
6263
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
6264
|
+
) -> RESTResponseType:
|
6265
|
+
"""Synchronous version of verify_basic_auth_without_preload_content"""
|
6266
|
+
return async_to_sync(self._verify_basic_auth_async_without_preload_content)(
|
6267
|
+
username=username,
|
6268
|
+
password=password,
|
6269
|
+
_request_timeout=_request_timeout,
|
6270
|
+
_request_auth=_request_auth,
|
6271
|
+
_content_type=_content_type,
|
6272
|
+
_headers=_headers,
|
6273
|
+
_host_index=_host_index,
|
6274
|
+
)
|
6275
|
+
|
6276
|
+
def _verify_basic_auth_serialize(
|
6277
|
+
self,
|
6278
|
+
username,
|
6279
|
+
password,
|
3015
6280
|
_request_auth,
|
3016
6281
|
_content_type,
|
3017
6282
|
_headers,
|
@@ -3033,9 +6298,13 @@ class AuthApi:
|
|
3033
6298
|
|
3034
6299
|
# process the path parameters
|
3035
6300
|
# process the query parameters
|
3036
|
-
if
|
6301
|
+
if username is not None:
|
3037
6302
|
|
3038
|
-
_query_params.append(("
|
6303
|
+
_query_params.append(("username", username))
|
6304
|
+
|
6305
|
+
if password is not None:
|
6306
|
+
|
6307
|
+
_query_params.append(("password", password))
|
3039
6308
|
|
3040
6309
|
# process the header parameters
|
3041
6310
|
# process the form parameters
|
@@ -3052,7 +6321,7 @@ class AuthApi:
|
|
3052
6321
|
|
3053
6322
|
return self.api_client.param_serialize(
|
3054
6323
|
method="GET",
|
3055
|
-
resource_path="/verify-
|
6324
|
+
resource_path="/verify-basic-auth",
|
3056
6325
|
path_params=_path_params,
|
3057
6326
|
query_params=_query_params,
|
3058
6327
|
header_params=_header_params,
|