crypticorn 1.0.2rc3__py3-none-any.whl → 2.0.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 +3 -3
- crypticorn/auth/__init__.py +2 -0
- crypticorn/auth/client/__init__.py +112 -0
- crypticorn/auth/client/api/__init__.py +8 -0
- crypticorn/auth/client/api/admin_api.py +522 -0
- crypticorn/auth/client/api/auth_api.py +2089 -0
- crypticorn/auth/client/api/service_api.py +309 -0
- crypticorn/auth/client/api/user_api.py +2540 -0
- crypticorn/auth/client/api/wallet_api.py +1698 -0
- crypticorn/auth/client/api_client.py +758 -0
- crypticorn/auth/client/api_response.py +20 -0
- crypticorn/auth/client/configuration.py +584 -0
- crypticorn/auth/client/exceptions.py +220 -0
- crypticorn/auth/client/models/__init__.py +91 -0
- crypticorn/auth/client/models/add_wallet200_response.py +86 -0
- crypticorn/auth/client/models/add_wallet_request.py +107 -0
- crypticorn/auth/client/models/authorize_user200_response.py +107 -0
- crypticorn/auth/client/models/authorize_user200_response_auth.py +101 -0
- crypticorn/auth/client/models/authorize_user_request.py +96 -0
- crypticorn/auth/client/models/create_user_request.py +114 -0
- crypticorn/auth/client/models/list_wallets200_response.py +137 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner.py +115 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +115 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +168 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +191 -0
- crypticorn/auth/client/models/list_wallets200_response_data_inner.py +102 -0
- crypticorn/auth/client/models/list_wallets200_response_user_value.py +118 -0
- crypticorn/auth/client/models/logout_default_response.py +108 -0
- crypticorn/auth/client/models/logout_default_response_issues_inner.py +83 -0
- crypticorn/auth/client/models/refresh_token_info200_response.py +97 -0
- crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +105 -0
- crypticorn/auth/client/models/resend_verification_email_request.py +84 -0
- crypticorn/auth/client/models/revoke_user_tokens_request.py +83 -0
- crypticorn/auth/client/models/rotate_tokens200_response.py +110 -0
- crypticorn/auth/client/models/token_info200_response.py +97 -0
- crypticorn/auth/client/models/unlink_wallet_request.py +83 -0
- crypticorn/auth/client/models/update_user_request.py +93 -0
- crypticorn/auth/client/models/user_reset_password_request.py +87 -0
- crypticorn/auth/client/models/user_set_password_request.py +89 -0
- crypticorn/auth/client/models/verify200_response.py +110 -0
- crypticorn/auth/client/models/verify_email200_response.py +107 -0
- crypticorn/auth/client/models/verify_email200_response_auth.py +101 -0
- crypticorn/auth/client/models/verify_email200_response_auth_auth.py +110 -0
- crypticorn/auth/client/models/verify_email_request.py +83 -0
- crypticorn/auth/client/models/verify_wallet_request.py +91 -0
- crypticorn/auth/client/models/wallet_verified200_response.py +83 -0
- crypticorn/auth/client/models/whoami200_response.py +104 -0
- crypticorn/auth/client/rest.py +195 -0
- crypticorn/auth/main.py +45 -0
- crypticorn/client.py +46 -8
- crypticorn/common/__init__.py +5 -0
- crypticorn/common/auth.py +43 -0
- crypticorn/common/auth_client.py +163 -0
- crypticorn/common/errors.py +432 -0
- crypticorn/common/scopes.py +29 -0
- crypticorn/common/urls.py +25 -0
- crypticorn/hive/__init__.py +2 -1
- crypticorn/hive/client/__init__.py +57 -0
- crypticorn/hive/client/api/__init__.py +6 -0
- crypticorn/hive/client/api/data_api.py +594 -0
- crypticorn/hive/client/api/models_api.py +1680 -0
- crypticorn/hive/client/api/status_api.py +263 -0
- crypticorn/hive/client/api_client.py +758 -0
- crypticorn/hive/client/api_response.py +20 -0
- crypticorn/hive/client/configuration.py +612 -0
- crypticorn/hive/client/exceptions.py +220 -0
- crypticorn/hive/client/models/__init__.py +38 -0
- crypticorn/hive/client/models/coins.py +44 -0
- crypticorn/hive/client/models/data_download_response.py +113 -0
- crypticorn/hive/client/models/data_info.py +115 -0
- crypticorn/hive/client/models/data_value_value_value_inner.py +154 -0
- crypticorn/hive/client/models/data_version.py +35 -0
- crypticorn/hive/client/models/download_links.py +91 -0
- crypticorn/hive/client/models/evaluation.py +86 -0
- crypticorn/hive/client/models/evaluation_response.py +85 -0
- crypticorn/hive/client/models/feature_size.py +36 -0
- crypticorn/hive/client/models/http_validation_error.py +99 -0
- crypticorn/hive/client/models/model.py +133 -0
- crypticorn/hive/client/models/model_create.py +93 -0
- crypticorn/hive/client/models/model_status.py +35 -0
- crypticorn/hive/client/models/model_update.py +83 -0
- crypticorn/hive/client/models/target.py +36 -0
- crypticorn/hive/client/models/target_type.py +35 -0
- crypticorn/hive/client/models/validation_error.py +105 -0
- crypticorn/hive/client/models/validation_error_loc_inner.py +159 -0
- crypticorn/hive/client/py.typed +0 -0
- crypticorn/hive/client/rest.py +195 -0
- crypticorn/hive/main.py +27 -100
- crypticorn/klines/client/__init__.py +21 -7
- crypticorn/klines/client/api/__init__.py +0 -1
- crypticorn/klines/client/api/funding_rates_api.py +90 -79
- crypticorn/klines/client/api/health_check_api.py +29 -45
- crypticorn/klines/client/api/ohlcv_data_api.py +104 -87
- crypticorn/klines/client/api/symbols_api.py +36 -54
- crypticorn/klines/client/api/udf_api.py +228 -352
- crypticorn/klines/client/api_client.py +106 -148
- crypticorn/klines/client/api_response.py +2 -3
- crypticorn/klines/client/configuration.py +64 -50
- crypticorn/klines/client/exceptions.py +20 -16
- crypticorn/klines/client/models/__init__.py +21 -7
- crypticorn/klines/client/models/base_response_health_check_response.py +21 -15
- crypticorn/klines/client/models/base_response_list_funding_rate_response.py +21 -15
- crypticorn/klines/client/models/base_response_list_str.py +16 -14
- crypticorn/klines/client/models/base_response_ohlcv_response.py +21 -15
- crypticorn/klines/client/models/error_response.py +23 -15
- crypticorn/klines/client/models/exchange.py +11 -11
- crypticorn/klines/client/models/funding_rate_response.py +11 -11
- crypticorn/klines/client/models/health_check_response.py +14 -12
- crypticorn/klines/client/models/history_error_response.py +11 -11
- crypticorn/klines/client/models/history_no_data_response.py +16 -16
- crypticorn/klines/client/models/history_success_response.py +16 -16
- crypticorn/klines/client/models/http_validation_error.py +14 -10
- crypticorn/klines/client/models/market.py +2 -4
- crypticorn/klines/client/models/ohlcv_response.py +22 -15
- crypticorn/klines/client/models/resolution.py +5 -7
- crypticorn/klines/client/models/response_get_history_udf_history_get.py +71 -22
- crypticorn/klines/client/models/search_symbol_response.py +22 -15
- crypticorn/klines/client/models/sort_direction.py +2 -4
- crypticorn/klines/client/models/symbol_group_response.py +5 -9
- crypticorn/klines/client/models/symbol_info_response.py +40 -24
- crypticorn/klines/client/models/symbol_type.py +5 -10
- crypticorn/klines/client/models/timeframe.py +5 -7
- crypticorn/klines/client/models/udf_config_response.py +60 -21
- crypticorn/klines/client/models/validation_error.py +19 -13
- crypticorn/klines/client/models/validation_error_loc_inner.py +32 -11
- crypticorn/klines/client/rest.py +30 -41
- crypticorn/klines/main.py +52 -15
- crypticorn/pay/__init__.py +2 -0
- crypticorn/pay/client/__init__.py +52 -0
- crypticorn/pay/client/api/__init__.py +7 -0
- crypticorn/pay/client/api/now_payments_api.py +813 -0
- crypticorn/pay/client/api/payments_api.py +799 -0
- crypticorn/pay/client/api/products_api.py +891 -0
- crypticorn/pay/client/api/status_api.py +260 -0
- crypticorn/pay/client/api_client.py +758 -0
- crypticorn/pay/client/api_response.py +20 -0
- crypticorn/pay/client/configuration.py +612 -0
- crypticorn/pay/client/exceptions.py +220 -0
- crypticorn/pay/client/models/__init__.py +32 -0
- crypticorn/pay/client/models/api_status_res.py +83 -0
- crypticorn/pay/client/models/combined_payment_history.py +101 -0
- crypticorn/pay/client/models/create_invoice_req.py +188 -0
- crypticorn/pay/client/models/create_invoice_res.py +188 -0
- crypticorn/pay/client/models/currency.py +165 -0
- crypticorn/pay/client/models/estimate_price_req.py +91 -0
- crypticorn/pay/client/models/estimate_price_res.py +102 -0
- crypticorn/pay/client/models/get_currencies_res.py +99 -0
- crypticorn/pay/client/models/get_payment_status_res.py +222 -0
- crypticorn/pay/client/models/get_payments_list_res.py +109 -0
- crypticorn/pay/client/models/http_validation_error.py +99 -0
- crypticorn/pay/client/models/min_amount_req.py +124 -0
- crypticorn/pay/client/models/min_amount_res.py +105 -0
- crypticorn/pay/client/models/now_api_status_res.py +83 -0
- crypticorn/pay/client/models/now_create_invoice_req.py +188 -0
- crypticorn/pay/client/models/now_create_invoice_res.py +188 -0
- crypticorn/pay/client/models/now_fee_structure.py +104 -0
- crypticorn/pay/client/models/now_payment_model.py +124 -0
- crypticorn/pay/client/models/now_payment_status.py +42 -0
- crypticorn/pay/client/models/now_webhook_payload.py +181 -0
- crypticorn/pay/client/models/payment.py +231 -0
- crypticorn/pay/client/models/payment_status.py +40 -0
- crypticorn/pay/client/models/product.py +87 -0
- crypticorn/pay/client/models/product_model.py +119 -0
- crypticorn/pay/client/models/product_subs_model.py +108 -0
- crypticorn/pay/client/models/services.py +34 -0
- crypticorn/pay/client/models/unified_payment_model.py +112 -0
- crypticorn/pay/client/models/validation_error.py +105 -0
- crypticorn/pay/client/models/validation_error_loc_inner.py +159 -0
- crypticorn/pay/client/py.typed +0 -0
- crypticorn/pay/client/rest.py +195 -0
- crypticorn/pay/main.py +35 -0
- crypticorn/trade/client/__init__.py +9 -4
- crypticorn/trade/client/api/__init__.py +0 -1
- crypticorn/trade/client/api/api_keys_api.py +203 -304
- crypticorn/trade/client/api/bots_api.py +177 -250
- crypticorn/trade/client/api/exchanges_api.py +38 -57
- crypticorn/trade/client/api/futures_trading_panel_api.py +223 -321
- crypticorn/trade/client/api/notifications_api.py +247 -364
- crypticorn/trade/client/api/orders_api.py +44 -63
- crypticorn/trade/client/api/status_api.py +35 -53
- crypticorn/trade/client/api/strategies_api.py +852 -64
- crypticorn/trade/client/api/trading_actions_api.py +126 -203
- crypticorn/trade/client/api_client.py +115 -154
- crypticorn/trade/client/api_response.py +2 -3
- crypticorn/trade/client/configuration.py +128 -90
- crypticorn/trade/client/exceptions.py +21 -17
- crypticorn/trade/client/models/__init__.py +9 -4
- crypticorn/trade/client/models/action_model.py +114 -50
- crypticorn/trade/client/models/api_error_identifier.py +60 -51
- crypticorn/trade/client/models/api_error_level.py +37 -0
- crypticorn/trade/client/models/api_error_type.py +37 -0
- crypticorn/trade/client/models/api_key_model.py +49 -28
- crypticorn/trade/client/models/bot_model.py +76 -31
- crypticorn/trade/client/models/bot_status.py +37 -0
- crypticorn/trade/client/models/exchange.py +3 -5
- crypticorn/trade/client/models/execution_ids.py +14 -14
- crypticorn/trade/client/models/futures_balance.py +39 -23
- crypticorn/trade/client/models/futures_trading_action.py +98 -46
- crypticorn/trade/client/models/http_validation_error.py +15 -11
- crypticorn/trade/client/models/margin_mode.py +3 -5
- crypticorn/trade/client/models/market_type.py +3 -5
- crypticorn/trade/client/models/notification_model.py +60 -27
- crypticorn/trade/client/models/notification_type.py +4 -6
- crypticorn/trade/client/models/order_model.py +125 -65
- crypticorn/trade/client/models/order_status.py +6 -8
- crypticorn/trade/client/models/post_futures_action.py +16 -12
- crypticorn/trade/client/models/strategy_exchange_info.py +11 -12
- crypticorn/trade/client/models/strategy_model.py +66 -27
- crypticorn/trade/client/models/strategy_model_input.py +160 -0
- crypticorn/trade/client/models/strategy_model_output.py +160 -0
- crypticorn/trade/client/models/tpsl.py +35 -21
- crypticorn/trade/client/models/trading_action_type.py +5 -7
- crypticorn/trade/client/models/update_notification.py +17 -13
- crypticorn/trade/client/models/validation_error.py +20 -14
- crypticorn/trade/client/models/validation_error_loc_inner.py +33 -12
- crypticorn/trade/client/rest.py +108 -170
- crypticorn/trade/main.py +26 -19
- crypticorn-2.0.0.dist-info/METADATA +74 -0
- crypticorn-2.0.0.dist-info/RECORD +226 -0
- {crypticorn-1.0.2rc3.dist-info → crypticorn-2.0.0.dist-info}/WHEEL +1 -1
- crypticorn/hive/requirements.txt +0 -4
- crypticorn/hive/utils.py +0 -109
- crypticorn/klines/requirements.txt +0 -4
- crypticorn/klines/test/test_base_response_health_check_response.py +0 -56
- crypticorn/klines/test/test_base_response_list_funding_rate_response.py +0 -59
- crypticorn/klines/test/test_base_response_list_str.py +0 -56
- crypticorn/klines/test/test_base_response_ohlcv_response.py +0 -72
- crypticorn/klines/test/test_error_response.py +0 -57
- crypticorn/klines/test/test_exchange.py +0 -56
- crypticorn/klines/test/test_funding_rate_response.py +0 -56
- crypticorn/klines/test/test_funding_rates_api.py +0 -38
- crypticorn/klines/test/test_health_check_api.py +0 -38
- crypticorn/klines/test/test_health_check_response.py +0 -52
- crypticorn/klines/test/test_history_error_response.py +0 -53
- crypticorn/klines/test/test_history_no_data_response.py +0 -69
- crypticorn/klines/test/test_history_success_response.py +0 -87
- crypticorn/klines/test/test_http_validation_error.py +0 -58
- crypticorn/klines/test/test_market.py +0 -33
- crypticorn/klines/test/test_ohlcv_data_api.py +0 -38
- crypticorn/klines/test/test_ohlcv_response.py +0 -86
- crypticorn/klines/test/test_resolution.py +0 -33
- crypticorn/klines/test/test_response_get_history_udf_history_get.py +0 -89
- crypticorn/klines/test/test_search_symbol_response.py +0 -62
- crypticorn/klines/test/test_sort_direction.py +0 -33
- crypticorn/klines/test/test_symbol_group_response.py +0 -53
- crypticorn/klines/test/test_symbol_info_response.py +0 -84
- crypticorn/klines/test/test_symbol_type.py +0 -54
- crypticorn/klines/test/test_symbols_api.py +0 -38
- crypticorn/klines/test/test_timeframe.py +0 -33
- crypticorn/klines/test/test_udf_api.py +0 -80
- crypticorn/klines/test/test_udf_config_response.py +0 -95
- crypticorn/klines/test/test_validation_error.py +0 -60
- crypticorn/klines/test/test_validation_error_loc_inner.py +0 -50
- crypticorn/trade/requirements.txt +0 -4
- crypticorn-1.0.2rc3.dist-info/LICENSE.md +0 -19
- crypticorn-1.0.2rc3.dist-info/METADATA +0 -47
- crypticorn-1.0.2rc3.dist-info/RECORD +0 -128
- /crypticorn/{klines/test/__init__.py → auth/client/py.typed} +0 -0
- {crypticorn-1.0.2rc3.dist-info → crypticorn-2.0.0.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
3
|
"""
|
4
|
-
|
4
|
+
Trading API
|
5
5
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
7
|
|
@@ -37,9 +37,8 @@ class APIKeysApi:
|
|
37
37
|
api_client = ApiClient.get_default()
|
38
38
|
self.api_client = api_client
|
39
39
|
|
40
|
-
|
41
40
|
@validate_call
|
42
|
-
def create_api_key(
|
41
|
+
async def create_api_key(
|
43
42
|
self,
|
44
43
|
api_key_model: APIKeyModel,
|
45
44
|
access_token: Optional[StrictStr] = None,
|
@@ -47,9 +46,8 @@ class APIKeysApi:
|
|
47
46
|
None,
|
48
47
|
Annotated[StrictFloat, Field(gt=0)],
|
49
48
|
Tuple[
|
50
|
-
Annotated[StrictFloat, Field(gt=0)],
|
51
|
-
|
52
|
-
]
|
49
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
50
|
+
],
|
53
51
|
] = None,
|
54
52
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
55
53
|
_content_type: Optional[StrictStr] = None,
|
@@ -83,7 +81,7 @@ class APIKeysApi:
|
|
83
81
|
in the spec for a single request.
|
84
82
|
:type _host_index: int, optional
|
85
83
|
:return: Returns the result object.
|
86
|
-
"""
|
84
|
+
""" # noqa: E501
|
87
85
|
|
88
86
|
_param = self._create_api_key_serialize(
|
89
87
|
api_key_model=api_key_model,
|
@@ -91,26 +89,24 @@ class APIKeysApi:
|
|
91
89
|
_request_auth=_request_auth,
|
92
90
|
_content_type=_content_type,
|
93
91
|
_headers=_headers,
|
94
|
-
_host_index=_host_index
|
92
|
+
_host_index=_host_index,
|
95
93
|
)
|
96
94
|
|
97
95
|
_response_types_map: Dict[str, Optional[str]] = {
|
98
|
-
|
99
|
-
|
96
|
+
"200": "object",
|
97
|
+
"422": "HTTPValidationError",
|
100
98
|
}
|
101
|
-
response_data = self.api_client.call_api(
|
102
|
-
*_param,
|
103
|
-
_request_timeout=_request_timeout
|
99
|
+
response_data = await self.api_client.call_api(
|
100
|
+
*_param, _request_timeout=_request_timeout
|
104
101
|
)
|
105
|
-
response_data.read()
|
102
|
+
await response_data.read()
|
106
103
|
return self.api_client.response_deserialize(
|
107
104
|
response_data=response_data,
|
108
105
|
response_types_map=_response_types_map,
|
109
106
|
).data
|
110
107
|
|
111
|
-
|
112
108
|
@validate_call
|
113
|
-
def create_api_key_with_http_info(
|
109
|
+
async def create_api_key_with_http_info(
|
114
110
|
self,
|
115
111
|
api_key_model: APIKeyModel,
|
116
112
|
access_token: Optional[StrictStr] = None,
|
@@ -118,9 +114,8 @@ class APIKeysApi:
|
|
118
114
|
None,
|
119
115
|
Annotated[StrictFloat, Field(gt=0)],
|
120
116
|
Tuple[
|
121
|
-
Annotated[StrictFloat, Field(gt=0)],
|
122
|
-
|
123
|
-
]
|
117
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
118
|
+
],
|
124
119
|
] = None,
|
125
120
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
126
121
|
_content_type: Optional[StrictStr] = None,
|
@@ -154,7 +149,7 @@ class APIKeysApi:
|
|
154
149
|
in the spec for a single request.
|
155
150
|
:type _host_index: int, optional
|
156
151
|
:return: Returns the result object.
|
157
|
-
"""
|
152
|
+
""" # noqa: E501
|
158
153
|
|
159
154
|
_param = self._create_api_key_serialize(
|
160
155
|
api_key_model=api_key_model,
|
@@ -162,26 +157,24 @@ class APIKeysApi:
|
|
162
157
|
_request_auth=_request_auth,
|
163
158
|
_content_type=_content_type,
|
164
159
|
_headers=_headers,
|
165
|
-
_host_index=_host_index
|
160
|
+
_host_index=_host_index,
|
166
161
|
)
|
167
162
|
|
168
163
|
_response_types_map: Dict[str, Optional[str]] = {
|
169
|
-
|
170
|
-
|
164
|
+
"200": "object",
|
165
|
+
"422": "HTTPValidationError",
|
171
166
|
}
|
172
|
-
response_data = self.api_client.call_api(
|
173
|
-
*_param,
|
174
|
-
_request_timeout=_request_timeout
|
167
|
+
response_data = await self.api_client.call_api(
|
168
|
+
*_param, _request_timeout=_request_timeout
|
175
169
|
)
|
176
|
-
response_data.read()
|
170
|
+
await response_data.read()
|
177
171
|
return self.api_client.response_deserialize(
|
178
172
|
response_data=response_data,
|
179
173
|
response_types_map=_response_types_map,
|
180
174
|
)
|
181
175
|
|
182
|
-
|
183
176
|
@validate_call
|
184
|
-
def create_api_key_without_preload_content(
|
177
|
+
async def create_api_key_without_preload_content(
|
185
178
|
self,
|
186
179
|
api_key_model: APIKeyModel,
|
187
180
|
access_token: Optional[StrictStr] = None,
|
@@ -189,9 +182,8 @@ class APIKeysApi:
|
|
189
182
|
None,
|
190
183
|
Annotated[StrictFloat, Field(gt=0)],
|
191
184
|
Tuple[
|
192
|
-
Annotated[StrictFloat, Field(gt=0)],
|
193
|
-
|
194
|
-
]
|
185
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
186
|
+
],
|
195
187
|
] = None,
|
196
188
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
197
189
|
_content_type: Optional[StrictStr] = None,
|
@@ -225,7 +217,7 @@ class APIKeysApi:
|
|
225
217
|
in the spec for a single request.
|
226
218
|
:type _host_index: int, optional
|
227
219
|
:return: Returns the result object.
|
228
|
-
"""
|
220
|
+
""" # noqa: E501
|
229
221
|
|
230
222
|
_param = self._create_api_key_serialize(
|
231
223
|
api_key_model=api_key_model,
|
@@ -233,20 +225,18 @@ class APIKeysApi:
|
|
233
225
|
_request_auth=_request_auth,
|
234
226
|
_content_type=_content_type,
|
235
227
|
_headers=_headers,
|
236
|
-
_host_index=_host_index
|
228
|
+
_host_index=_host_index,
|
237
229
|
)
|
238
230
|
|
239
231
|
_response_types_map: Dict[str, Optional[str]] = {
|
240
|
-
|
241
|
-
|
232
|
+
"200": "object",
|
233
|
+
"422": "HTTPValidationError",
|
242
234
|
}
|
243
|
-
response_data = self.api_client.call_api(
|
244
|
-
*_param,
|
245
|
-
_request_timeout=_request_timeout
|
235
|
+
response_data = await self.api_client.call_api(
|
236
|
+
*_param, _request_timeout=_request_timeout
|
246
237
|
)
|
247
238
|
return response_data.response
|
248
239
|
|
249
|
-
|
250
240
|
def _create_api_key_serialize(
|
251
241
|
self,
|
252
242
|
api_key_model,
|
@@ -259,8 +249,7 @@ class APIKeysApi:
|
|
259
249
|
|
260
250
|
_host = None
|
261
251
|
|
262
|
-
_collection_formats: Dict[str, str] = {
|
263
|
-
}
|
252
|
+
_collection_formats: Dict[str, str] = {}
|
264
253
|
|
265
254
|
_path_params: Dict[str, str] = {}
|
266
255
|
_query_params: List[Tuple[str, str]] = []
|
@@ -279,37 +268,28 @@ class APIKeysApi:
|
|
279
268
|
if api_key_model is not None:
|
280
269
|
_body_params = api_key_model
|
281
270
|
|
282
|
-
|
283
271
|
# set the HTTP header `Accept`
|
284
|
-
if
|
285
|
-
_header_params[
|
286
|
-
[
|
287
|
-
'application/json'
|
288
|
-
]
|
272
|
+
if "Accept" not in _header_params:
|
273
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
274
|
+
["application/json"]
|
289
275
|
)
|
290
276
|
|
291
277
|
# set the HTTP header `Content-Type`
|
292
278
|
if _content_type:
|
293
|
-
_header_params[
|
279
|
+
_header_params["Content-Type"] = _content_type
|
294
280
|
else:
|
295
|
-
_default_content_type = (
|
296
|
-
|
297
|
-
[
|
298
|
-
'application/json'
|
299
|
-
]
|
300
|
-
)
|
281
|
+
_default_content_type = self.api_client.select_header_content_type(
|
282
|
+
["application/json"]
|
301
283
|
)
|
302
284
|
if _default_content_type is not None:
|
303
|
-
_header_params[
|
285
|
+
_header_params["Content-Type"] = _default_content_type
|
304
286
|
|
305
287
|
# authentication setting
|
306
|
-
_auth_settings: List[str] = [
|
307
|
-
'OAuth2PasswordBearer'
|
308
|
-
]
|
288
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
309
289
|
|
310
290
|
return self.api_client.param_serialize(
|
311
|
-
method=
|
312
|
-
resource_path=
|
291
|
+
method="POST",
|
292
|
+
resource_path="/api-keys",
|
313
293
|
path_params=_path_params,
|
314
294
|
query_params=_query_params,
|
315
295
|
header_params=_header_params,
|
@@ -319,14 +299,11 @@ class APIKeysApi:
|
|
319
299
|
auth_settings=_auth_settings,
|
320
300
|
collection_formats=_collection_formats,
|
321
301
|
_host=_host,
|
322
|
-
_request_auth=_request_auth
|
302
|
+
_request_auth=_request_auth,
|
323
303
|
)
|
324
304
|
|
325
|
-
|
326
|
-
|
327
|
-
|
328
305
|
@validate_call
|
329
|
-
def delete_api_key(
|
306
|
+
async def delete_api_key(
|
330
307
|
self,
|
331
308
|
id: StrictStr,
|
332
309
|
access_token: Optional[StrictStr] = None,
|
@@ -334,9 +311,8 @@ class APIKeysApi:
|
|
334
311
|
None,
|
335
312
|
Annotated[StrictFloat, Field(gt=0)],
|
336
313
|
Tuple[
|
337
|
-
Annotated[StrictFloat, Field(gt=0)],
|
338
|
-
|
339
|
-
]
|
314
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
315
|
+
],
|
340
316
|
] = None,
|
341
317
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
342
318
|
_content_type: Optional[StrictStr] = None,
|
@@ -370,7 +346,7 @@ class APIKeysApi:
|
|
370
346
|
in the spec for a single request.
|
371
347
|
:type _host_index: int, optional
|
372
348
|
:return: Returns the result object.
|
373
|
-
"""
|
349
|
+
""" # noqa: E501
|
374
350
|
|
375
351
|
_param = self._delete_api_key_serialize(
|
376
352
|
id=id,
|
@@ -378,26 +354,24 @@ class APIKeysApi:
|
|
378
354
|
_request_auth=_request_auth,
|
379
355
|
_content_type=_content_type,
|
380
356
|
_headers=_headers,
|
381
|
-
_host_index=_host_index
|
357
|
+
_host_index=_host_index,
|
382
358
|
)
|
383
359
|
|
384
360
|
_response_types_map: Dict[str, Optional[str]] = {
|
385
|
-
|
386
|
-
|
361
|
+
"200": "object",
|
362
|
+
"422": "HTTPValidationError",
|
387
363
|
}
|
388
|
-
response_data = self.api_client.call_api(
|
389
|
-
*_param,
|
390
|
-
_request_timeout=_request_timeout
|
364
|
+
response_data = await self.api_client.call_api(
|
365
|
+
*_param, _request_timeout=_request_timeout
|
391
366
|
)
|
392
|
-
response_data.read()
|
367
|
+
await response_data.read()
|
393
368
|
return self.api_client.response_deserialize(
|
394
369
|
response_data=response_data,
|
395
370
|
response_types_map=_response_types_map,
|
396
371
|
).data
|
397
372
|
|
398
|
-
|
399
373
|
@validate_call
|
400
|
-
def delete_api_key_with_http_info(
|
374
|
+
async def delete_api_key_with_http_info(
|
401
375
|
self,
|
402
376
|
id: StrictStr,
|
403
377
|
access_token: Optional[StrictStr] = None,
|
@@ -405,9 +379,8 @@ class APIKeysApi:
|
|
405
379
|
None,
|
406
380
|
Annotated[StrictFloat, Field(gt=0)],
|
407
381
|
Tuple[
|
408
|
-
Annotated[StrictFloat, Field(gt=0)],
|
409
|
-
|
410
|
-
]
|
382
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
383
|
+
],
|
411
384
|
] = None,
|
412
385
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
413
386
|
_content_type: Optional[StrictStr] = None,
|
@@ -441,7 +414,7 @@ class APIKeysApi:
|
|
441
414
|
in the spec for a single request.
|
442
415
|
:type _host_index: int, optional
|
443
416
|
:return: Returns the result object.
|
444
|
-
"""
|
417
|
+
""" # noqa: E501
|
445
418
|
|
446
419
|
_param = self._delete_api_key_serialize(
|
447
420
|
id=id,
|
@@ -449,26 +422,24 @@ class APIKeysApi:
|
|
449
422
|
_request_auth=_request_auth,
|
450
423
|
_content_type=_content_type,
|
451
424
|
_headers=_headers,
|
452
|
-
_host_index=_host_index
|
425
|
+
_host_index=_host_index,
|
453
426
|
)
|
454
427
|
|
455
428
|
_response_types_map: Dict[str, Optional[str]] = {
|
456
|
-
|
457
|
-
|
429
|
+
"200": "object",
|
430
|
+
"422": "HTTPValidationError",
|
458
431
|
}
|
459
|
-
response_data = self.api_client.call_api(
|
460
|
-
*_param,
|
461
|
-
_request_timeout=_request_timeout
|
432
|
+
response_data = await self.api_client.call_api(
|
433
|
+
*_param, _request_timeout=_request_timeout
|
462
434
|
)
|
463
|
-
response_data.read()
|
435
|
+
await response_data.read()
|
464
436
|
return self.api_client.response_deserialize(
|
465
437
|
response_data=response_data,
|
466
438
|
response_types_map=_response_types_map,
|
467
439
|
)
|
468
440
|
|
469
|
-
|
470
441
|
@validate_call
|
471
|
-
def delete_api_key_without_preload_content(
|
442
|
+
async def delete_api_key_without_preload_content(
|
472
443
|
self,
|
473
444
|
id: StrictStr,
|
474
445
|
access_token: Optional[StrictStr] = None,
|
@@ -476,9 +447,8 @@ class APIKeysApi:
|
|
476
447
|
None,
|
477
448
|
Annotated[StrictFloat, Field(gt=0)],
|
478
449
|
Tuple[
|
479
|
-
Annotated[StrictFloat, Field(gt=0)],
|
480
|
-
|
481
|
-
]
|
450
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
451
|
+
],
|
482
452
|
] = None,
|
483
453
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
484
454
|
_content_type: Optional[StrictStr] = None,
|
@@ -512,7 +482,7 @@ class APIKeysApi:
|
|
512
482
|
in the spec for a single request.
|
513
483
|
:type _host_index: int, optional
|
514
484
|
:return: Returns the result object.
|
515
|
-
"""
|
485
|
+
""" # noqa: E501
|
516
486
|
|
517
487
|
_param = self._delete_api_key_serialize(
|
518
488
|
id=id,
|
@@ -520,20 +490,18 @@ class APIKeysApi:
|
|
520
490
|
_request_auth=_request_auth,
|
521
491
|
_content_type=_content_type,
|
522
492
|
_headers=_headers,
|
523
|
-
_host_index=_host_index
|
493
|
+
_host_index=_host_index,
|
524
494
|
)
|
525
495
|
|
526
496
|
_response_types_map: Dict[str, Optional[str]] = {
|
527
|
-
|
528
|
-
|
497
|
+
"200": "object",
|
498
|
+
"422": "HTTPValidationError",
|
529
499
|
}
|
530
|
-
response_data = self.api_client.call_api(
|
531
|
-
*_param,
|
532
|
-
_request_timeout=_request_timeout
|
500
|
+
response_data = await self.api_client.call_api(
|
501
|
+
*_param, _request_timeout=_request_timeout
|
533
502
|
)
|
534
503
|
return response_data.response
|
535
504
|
|
536
|
-
|
537
505
|
def _delete_api_key_serialize(
|
538
506
|
self,
|
539
507
|
id,
|
@@ -546,8 +514,7 @@ class APIKeysApi:
|
|
546
514
|
|
547
515
|
_host = None
|
548
516
|
|
549
|
-
_collection_formats: Dict[str, str] = {
|
550
|
-
}
|
517
|
+
_collection_formats: Dict[str, str] = {}
|
551
518
|
|
552
519
|
_path_params: Dict[str, str] = {}
|
553
520
|
_query_params: List[Tuple[str, str]] = []
|
@@ -560,30 +527,24 @@ class APIKeysApi:
|
|
560
527
|
|
561
528
|
# process the path parameters
|
562
529
|
if id is not None:
|
563
|
-
_path_params[
|
530
|
+
_path_params["id"] = id
|
564
531
|
# process the query parameters
|
565
532
|
# process the header parameters
|
566
533
|
# process the form parameters
|
567
534
|
# process the body parameter
|
568
535
|
|
569
|
-
|
570
536
|
# set the HTTP header `Accept`
|
571
|
-
if
|
572
|
-
_header_params[
|
573
|
-
[
|
574
|
-
'application/json'
|
575
|
-
]
|
537
|
+
if "Accept" not in _header_params:
|
538
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
539
|
+
["application/json"]
|
576
540
|
)
|
577
541
|
|
578
|
-
|
579
542
|
# authentication setting
|
580
|
-
_auth_settings: List[str] = [
|
581
|
-
'OAuth2PasswordBearer'
|
582
|
-
]
|
543
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
583
544
|
|
584
545
|
return self.api_client.param_serialize(
|
585
|
-
method=
|
586
|
-
resource_path=
|
546
|
+
method="DELETE",
|
547
|
+
resource_path="/api-keys/{id}",
|
587
548
|
path_params=_path_params,
|
588
549
|
query_params=_query_params,
|
589
550
|
header_params=_header_params,
|
@@ -593,14 +554,11 @@ class APIKeysApi:
|
|
593
554
|
auth_settings=_auth_settings,
|
594
555
|
collection_formats=_collection_formats,
|
595
556
|
_host=_host,
|
596
|
-
_request_auth=_request_auth
|
557
|
+
_request_auth=_request_auth,
|
597
558
|
)
|
598
559
|
|
599
|
-
|
600
|
-
|
601
|
-
|
602
560
|
@validate_call
|
603
|
-
def get_api_key_by_id(
|
561
|
+
async def get_api_key_by_id(
|
604
562
|
self,
|
605
563
|
id: StrictStr,
|
606
564
|
access_token: Optional[StrictStr] = None,
|
@@ -608,9 +566,8 @@ class APIKeysApi:
|
|
608
566
|
None,
|
609
567
|
Annotated[StrictFloat, Field(gt=0)],
|
610
568
|
Tuple[
|
611
|
-
Annotated[StrictFloat, Field(gt=0)],
|
612
|
-
|
613
|
-
]
|
569
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
570
|
+
],
|
614
571
|
] = None,
|
615
572
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
616
573
|
_content_type: Optional[StrictStr] = None,
|
@@ -644,7 +601,7 @@ class APIKeysApi:
|
|
644
601
|
in the spec for a single request.
|
645
602
|
:type _host_index: int, optional
|
646
603
|
:return: Returns the result object.
|
647
|
-
"""
|
604
|
+
""" # noqa: E501
|
648
605
|
|
649
606
|
_param = self._get_api_key_by_id_serialize(
|
650
607
|
id=id,
|
@@ -652,26 +609,24 @@ class APIKeysApi:
|
|
652
609
|
_request_auth=_request_auth,
|
653
610
|
_content_type=_content_type,
|
654
611
|
_headers=_headers,
|
655
|
-
_host_index=_host_index
|
612
|
+
_host_index=_host_index,
|
656
613
|
)
|
657
614
|
|
658
615
|
_response_types_map: Dict[str, Optional[str]] = {
|
659
|
-
|
660
|
-
|
616
|
+
"200": "APIKeyModel",
|
617
|
+
"422": "HTTPValidationError",
|
661
618
|
}
|
662
|
-
response_data = self.api_client.call_api(
|
663
|
-
*_param,
|
664
|
-
_request_timeout=_request_timeout
|
619
|
+
response_data = await self.api_client.call_api(
|
620
|
+
*_param, _request_timeout=_request_timeout
|
665
621
|
)
|
666
|
-
response_data.read()
|
622
|
+
await response_data.read()
|
667
623
|
return self.api_client.response_deserialize(
|
668
624
|
response_data=response_data,
|
669
625
|
response_types_map=_response_types_map,
|
670
626
|
).data
|
671
627
|
|
672
|
-
|
673
628
|
@validate_call
|
674
|
-
def get_api_key_by_id_with_http_info(
|
629
|
+
async def get_api_key_by_id_with_http_info(
|
675
630
|
self,
|
676
631
|
id: StrictStr,
|
677
632
|
access_token: Optional[StrictStr] = None,
|
@@ -679,9 +634,8 @@ class APIKeysApi:
|
|
679
634
|
None,
|
680
635
|
Annotated[StrictFloat, Field(gt=0)],
|
681
636
|
Tuple[
|
682
|
-
Annotated[StrictFloat, Field(gt=0)],
|
683
|
-
|
684
|
-
]
|
637
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
638
|
+
],
|
685
639
|
] = None,
|
686
640
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
687
641
|
_content_type: Optional[StrictStr] = None,
|
@@ -715,7 +669,7 @@ class APIKeysApi:
|
|
715
669
|
in the spec for a single request.
|
716
670
|
:type _host_index: int, optional
|
717
671
|
:return: Returns the result object.
|
718
|
-
"""
|
672
|
+
""" # noqa: E501
|
719
673
|
|
720
674
|
_param = self._get_api_key_by_id_serialize(
|
721
675
|
id=id,
|
@@ -723,26 +677,24 @@ class APIKeysApi:
|
|
723
677
|
_request_auth=_request_auth,
|
724
678
|
_content_type=_content_type,
|
725
679
|
_headers=_headers,
|
726
|
-
_host_index=_host_index
|
680
|
+
_host_index=_host_index,
|
727
681
|
)
|
728
682
|
|
729
683
|
_response_types_map: Dict[str, Optional[str]] = {
|
730
|
-
|
731
|
-
|
684
|
+
"200": "APIKeyModel",
|
685
|
+
"422": "HTTPValidationError",
|
732
686
|
}
|
733
|
-
response_data = self.api_client.call_api(
|
734
|
-
*_param,
|
735
|
-
_request_timeout=_request_timeout
|
687
|
+
response_data = await self.api_client.call_api(
|
688
|
+
*_param, _request_timeout=_request_timeout
|
736
689
|
)
|
737
|
-
response_data.read()
|
690
|
+
await response_data.read()
|
738
691
|
return self.api_client.response_deserialize(
|
739
692
|
response_data=response_data,
|
740
693
|
response_types_map=_response_types_map,
|
741
694
|
)
|
742
695
|
|
743
|
-
|
744
696
|
@validate_call
|
745
|
-
def get_api_key_by_id_without_preload_content(
|
697
|
+
async def get_api_key_by_id_without_preload_content(
|
746
698
|
self,
|
747
699
|
id: StrictStr,
|
748
700
|
access_token: Optional[StrictStr] = None,
|
@@ -750,9 +702,8 @@ class APIKeysApi:
|
|
750
702
|
None,
|
751
703
|
Annotated[StrictFloat, Field(gt=0)],
|
752
704
|
Tuple[
|
753
|
-
Annotated[StrictFloat, Field(gt=0)],
|
754
|
-
|
755
|
-
]
|
705
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
706
|
+
],
|
756
707
|
] = None,
|
757
708
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
758
709
|
_content_type: Optional[StrictStr] = None,
|
@@ -786,7 +737,7 @@ class APIKeysApi:
|
|
786
737
|
in the spec for a single request.
|
787
738
|
:type _host_index: int, optional
|
788
739
|
:return: Returns the result object.
|
789
|
-
"""
|
740
|
+
""" # noqa: E501
|
790
741
|
|
791
742
|
_param = self._get_api_key_by_id_serialize(
|
792
743
|
id=id,
|
@@ -794,20 +745,18 @@ class APIKeysApi:
|
|
794
745
|
_request_auth=_request_auth,
|
795
746
|
_content_type=_content_type,
|
796
747
|
_headers=_headers,
|
797
|
-
_host_index=_host_index
|
748
|
+
_host_index=_host_index,
|
798
749
|
)
|
799
750
|
|
800
751
|
_response_types_map: Dict[str, Optional[str]] = {
|
801
|
-
|
802
|
-
|
752
|
+
"200": "APIKeyModel",
|
753
|
+
"422": "HTTPValidationError",
|
803
754
|
}
|
804
|
-
response_data = self.api_client.call_api(
|
805
|
-
*_param,
|
806
|
-
_request_timeout=_request_timeout
|
755
|
+
response_data = await self.api_client.call_api(
|
756
|
+
*_param, _request_timeout=_request_timeout
|
807
757
|
)
|
808
758
|
return response_data.response
|
809
759
|
|
810
|
-
|
811
760
|
def _get_api_key_by_id_serialize(
|
812
761
|
self,
|
813
762
|
id,
|
@@ -820,8 +769,7 @@ class APIKeysApi:
|
|
820
769
|
|
821
770
|
_host = None
|
822
771
|
|
823
|
-
_collection_formats: Dict[str, str] = {
|
824
|
-
}
|
772
|
+
_collection_formats: Dict[str, str] = {}
|
825
773
|
|
826
774
|
_path_params: Dict[str, str] = {}
|
827
775
|
_query_params: List[Tuple[str, str]] = []
|
@@ -834,30 +782,24 @@ class APIKeysApi:
|
|
834
782
|
|
835
783
|
# process the path parameters
|
836
784
|
if id is not None:
|
837
|
-
_path_params[
|
785
|
+
_path_params["id"] = id
|
838
786
|
# process the query parameters
|
839
787
|
# process the header parameters
|
840
788
|
# process the form parameters
|
841
789
|
# process the body parameter
|
842
790
|
|
843
|
-
|
844
791
|
# set the HTTP header `Accept`
|
845
|
-
if
|
846
|
-
_header_params[
|
847
|
-
[
|
848
|
-
'application/json'
|
849
|
-
]
|
792
|
+
if "Accept" not in _header_params:
|
793
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
794
|
+
["application/json"]
|
850
795
|
)
|
851
796
|
|
852
|
-
|
853
797
|
# authentication setting
|
854
|
-
_auth_settings: List[str] = [
|
855
|
-
'OAuth2PasswordBearer'
|
856
|
-
]
|
798
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
857
799
|
|
858
800
|
return self.api_client.param_serialize(
|
859
|
-
method=
|
860
|
-
resource_path=
|
801
|
+
method="GET",
|
802
|
+
resource_path="/api-keys/{id}",
|
861
803
|
path_params=_path_params,
|
862
804
|
query_params=_query_params,
|
863
805
|
header_params=_header_params,
|
@@ -867,14 +809,11 @@ class APIKeysApi:
|
|
867
809
|
auth_settings=_auth_settings,
|
868
810
|
collection_formats=_collection_formats,
|
869
811
|
_host=_host,
|
870
|
-
_request_auth=_request_auth
|
812
|
+
_request_auth=_request_auth,
|
871
813
|
)
|
872
814
|
|
873
|
-
|
874
|
-
|
875
|
-
|
876
815
|
@validate_call
|
877
|
-
def get_api_keys(
|
816
|
+
async def get_api_keys(
|
878
817
|
self,
|
879
818
|
limit: Optional[StrictInt] = None,
|
880
819
|
offset: Optional[StrictInt] = None,
|
@@ -883,9 +822,8 @@ class APIKeysApi:
|
|
883
822
|
None,
|
884
823
|
Annotated[StrictFloat, Field(gt=0)],
|
885
824
|
Tuple[
|
886
|
-
Annotated[StrictFloat, Field(gt=0)],
|
887
|
-
|
888
|
-
]
|
825
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
826
|
+
],
|
889
827
|
] = None,
|
890
828
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
891
829
|
_content_type: Optional[StrictStr] = None,
|
@@ -921,7 +859,7 @@ class APIKeysApi:
|
|
921
859
|
in the spec for a single request.
|
922
860
|
:type _host_index: int, optional
|
923
861
|
:return: Returns the result object.
|
924
|
-
"""
|
862
|
+
""" # noqa: E501
|
925
863
|
|
926
864
|
_param = self._get_api_keys_serialize(
|
927
865
|
limit=limit,
|
@@ -930,26 +868,24 @@ class APIKeysApi:
|
|
930
868
|
_request_auth=_request_auth,
|
931
869
|
_content_type=_content_type,
|
932
870
|
_headers=_headers,
|
933
|
-
_host_index=_host_index
|
871
|
+
_host_index=_host_index,
|
934
872
|
)
|
935
873
|
|
936
874
|
_response_types_map: Dict[str, Optional[str]] = {
|
937
|
-
|
938
|
-
|
875
|
+
"200": "List[APIKeyModel]",
|
876
|
+
"422": "HTTPValidationError",
|
939
877
|
}
|
940
|
-
response_data = self.api_client.call_api(
|
941
|
-
*_param,
|
942
|
-
_request_timeout=_request_timeout
|
878
|
+
response_data = await self.api_client.call_api(
|
879
|
+
*_param, _request_timeout=_request_timeout
|
943
880
|
)
|
944
|
-
response_data.read()
|
881
|
+
await response_data.read()
|
945
882
|
return self.api_client.response_deserialize(
|
946
883
|
response_data=response_data,
|
947
884
|
response_types_map=_response_types_map,
|
948
885
|
).data
|
949
886
|
|
950
|
-
|
951
887
|
@validate_call
|
952
|
-
def get_api_keys_with_http_info(
|
888
|
+
async def get_api_keys_with_http_info(
|
953
889
|
self,
|
954
890
|
limit: Optional[StrictInt] = None,
|
955
891
|
offset: Optional[StrictInt] = None,
|
@@ -958,9 +894,8 @@ class APIKeysApi:
|
|
958
894
|
None,
|
959
895
|
Annotated[StrictFloat, Field(gt=0)],
|
960
896
|
Tuple[
|
961
|
-
Annotated[StrictFloat, Field(gt=0)],
|
962
|
-
|
963
|
-
]
|
897
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
898
|
+
],
|
964
899
|
] = None,
|
965
900
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
966
901
|
_content_type: Optional[StrictStr] = None,
|
@@ -996,7 +931,7 @@ class APIKeysApi:
|
|
996
931
|
in the spec for a single request.
|
997
932
|
:type _host_index: int, optional
|
998
933
|
:return: Returns the result object.
|
999
|
-
"""
|
934
|
+
""" # noqa: E501
|
1000
935
|
|
1001
936
|
_param = self._get_api_keys_serialize(
|
1002
937
|
limit=limit,
|
@@ -1005,26 +940,24 @@ class APIKeysApi:
|
|
1005
940
|
_request_auth=_request_auth,
|
1006
941
|
_content_type=_content_type,
|
1007
942
|
_headers=_headers,
|
1008
|
-
_host_index=_host_index
|
943
|
+
_host_index=_host_index,
|
1009
944
|
)
|
1010
945
|
|
1011
946
|
_response_types_map: Dict[str, Optional[str]] = {
|
1012
|
-
|
1013
|
-
|
947
|
+
"200": "List[APIKeyModel]",
|
948
|
+
"422": "HTTPValidationError",
|
1014
949
|
}
|
1015
|
-
response_data = self.api_client.call_api(
|
1016
|
-
*_param,
|
1017
|
-
_request_timeout=_request_timeout
|
950
|
+
response_data = await self.api_client.call_api(
|
951
|
+
*_param, _request_timeout=_request_timeout
|
1018
952
|
)
|
1019
|
-
response_data.read()
|
953
|
+
await response_data.read()
|
1020
954
|
return self.api_client.response_deserialize(
|
1021
955
|
response_data=response_data,
|
1022
956
|
response_types_map=_response_types_map,
|
1023
957
|
)
|
1024
958
|
|
1025
|
-
|
1026
959
|
@validate_call
|
1027
|
-
def get_api_keys_without_preload_content(
|
960
|
+
async def get_api_keys_without_preload_content(
|
1028
961
|
self,
|
1029
962
|
limit: Optional[StrictInt] = None,
|
1030
963
|
offset: Optional[StrictInt] = None,
|
@@ -1033,9 +966,8 @@ class APIKeysApi:
|
|
1033
966
|
None,
|
1034
967
|
Annotated[StrictFloat, Field(gt=0)],
|
1035
968
|
Tuple[
|
1036
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1037
|
-
|
1038
|
-
]
|
969
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
970
|
+
],
|
1039
971
|
] = None,
|
1040
972
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1041
973
|
_content_type: Optional[StrictStr] = None,
|
@@ -1071,7 +1003,7 @@ class APIKeysApi:
|
|
1071
1003
|
in the spec for a single request.
|
1072
1004
|
:type _host_index: int, optional
|
1073
1005
|
:return: Returns the result object.
|
1074
|
-
"""
|
1006
|
+
""" # noqa: E501
|
1075
1007
|
|
1076
1008
|
_param = self._get_api_keys_serialize(
|
1077
1009
|
limit=limit,
|
@@ -1080,20 +1012,18 @@ class APIKeysApi:
|
|
1080
1012
|
_request_auth=_request_auth,
|
1081
1013
|
_content_type=_content_type,
|
1082
1014
|
_headers=_headers,
|
1083
|
-
_host_index=_host_index
|
1015
|
+
_host_index=_host_index,
|
1084
1016
|
)
|
1085
1017
|
|
1086
1018
|
_response_types_map: Dict[str, Optional[str]] = {
|
1087
|
-
|
1088
|
-
|
1019
|
+
"200": "List[APIKeyModel]",
|
1020
|
+
"422": "HTTPValidationError",
|
1089
1021
|
}
|
1090
|
-
response_data = self.api_client.call_api(
|
1091
|
-
*_param,
|
1092
|
-
_request_timeout=_request_timeout
|
1022
|
+
response_data = await self.api_client.call_api(
|
1023
|
+
*_param, _request_timeout=_request_timeout
|
1093
1024
|
)
|
1094
1025
|
return response_data.response
|
1095
1026
|
|
1096
|
-
|
1097
1027
|
def _get_api_keys_serialize(
|
1098
1028
|
self,
|
1099
1029
|
limit,
|
@@ -1107,8 +1037,7 @@ class APIKeysApi:
|
|
1107
1037
|
|
1108
1038
|
_host = None
|
1109
1039
|
|
1110
|
-
_collection_formats: Dict[str, str] = {
|
1111
|
-
}
|
1040
|
+
_collection_formats: Dict[str, str] = {}
|
1112
1041
|
|
1113
1042
|
_path_params: Dict[str, str] = {}
|
1114
1043
|
_query_params: List[Tuple[str, str]] = []
|
@@ -1122,35 +1051,29 @@ class APIKeysApi:
|
|
1122
1051
|
# process the path parameters
|
1123
1052
|
# process the query parameters
|
1124
1053
|
if limit is not None:
|
1125
|
-
|
1126
|
-
_query_params.append((
|
1127
|
-
|
1054
|
+
|
1055
|
+
_query_params.append(("limit", limit))
|
1056
|
+
|
1128
1057
|
if offset is not None:
|
1129
|
-
|
1130
|
-
_query_params.append((
|
1131
|
-
|
1058
|
+
|
1059
|
+
_query_params.append(("offset", offset))
|
1060
|
+
|
1132
1061
|
# process the header parameters
|
1133
1062
|
# process the form parameters
|
1134
1063
|
# process the body parameter
|
1135
1064
|
|
1136
|
-
|
1137
1065
|
# set the HTTP header `Accept`
|
1138
|
-
if
|
1139
|
-
_header_params[
|
1140
|
-
[
|
1141
|
-
'application/json'
|
1142
|
-
]
|
1066
|
+
if "Accept" not in _header_params:
|
1067
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1068
|
+
["application/json"]
|
1143
1069
|
)
|
1144
1070
|
|
1145
|
-
|
1146
1071
|
# authentication setting
|
1147
|
-
_auth_settings: List[str] = [
|
1148
|
-
'OAuth2PasswordBearer'
|
1149
|
-
]
|
1072
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
1150
1073
|
|
1151
1074
|
return self.api_client.param_serialize(
|
1152
|
-
method=
|
1153
|
-
resource_path=
|
1075
|
+
method="GET",
|
1076
|
+
resource_path="/api-keys",
|
1154
1077
|
path_params=_path_params,
|
1155
1078
|
query_params=_query_params,
|
1156
1079
|
header_params=_header_params,
|
@@ -1160,14 +1083,11 @@ class APIKeysApi:
|
|
1160
1083
|
auth_settings=_auth_settings,
|
1161
1084
|
collection_formats=_collection_formats,
|
1162
1085
|
_host=_host,
|
1163
|
-
_request_auth=_request_auth
|
1086
|
+
_request_auth=_request_auth,
|
1164
1087
|
)
|
1165
1088
|
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
1089
|
@validate_call
|
1170
|
-
def update_api_key(
|
1090
|
+
async def update_api_key(
|
1171
1091
|
self,
|
1172
1092
|
id: StrictStr,
|
1173
1093
|
api_key_model: APIKeyModel,
|
@@ -1176,9 +1096,8 @@ class APIKeysApi:
|
|
1176
1096
|
None,
|
1177
1097
|
Annotated[StrictFloat, Field(gt=0)],
|
1178
1098
|
Tuple[
|
1179
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1180
|
-
|
1181
|
-
]
|
1099
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1100
|
+
],
|
1182
1101
|
] = None,
|
1183
1102
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1184
1103
|
_content_type: Optional[StrictStr] = None,
|
@@ -1214,7 +1133,7 @@ class APIKeysApi:
|
|
1214
1133
|
in the spec for a single request.
|
1215
1134
|
:type _host_index: int, optional
|
1216
1135
|
:return: Returns the result object.
|
1217
|
-
"""
|
1136
|
+
""" # noqa: E501
|
1218
1137
|
|
1219
1138
|
_param = self._update_api_key_serialize(
|
1220
1139
|
id=id,
|
@@ -1223,26 +1142,24 @@ class APIKeysApi:
|
|
1223
1142
|
_request_auth=_request_auth,
|
1224
1143
|
_content_type=_content_type,
|
1225
1144
|
_headers=_headers,
|
1226
|
-
_host_index=_host_index
|
1145
|
+
_host_index=_host_index,
|
1227
1146
|
)
|
1228
1147
|
|
1229
1148
|
_response_types_map: Dict[str, Optional[str]] = {
|
1230
|
-
|
1231
|
-
|
1149
|
+
"200": "object",
|
1150
|
+
"422": "HTTPValidationError",
|
1232
1151
|
}
|
1233
|
-
response_data = self.api_client.call_api(
|
1234
|
-
*_param,
|
1235
|
-
_request_timeout=_request_timeout
|
1152
|
+
response_data = await self.api_client.call_api(
|
1153
|
+
*_param, _request_timeout=_request_timeout
|
1236
1154
|
)
|
1237
|
-
response_data.read()
|
1155
|
+
await response_data.read()
|
1238
1156
|
return self.api_client.response_deserialize(
|
1239
1157
|
response_data=response_data,
|
1240
1158
|
response_types_map=_response_types_map,
|
1241
1159
|
).data
|
1242
1160
|
|
1243
|
-
|
1244
1161
|
@validate_call
|
1245
|
-
def update_api_key_with_http_info(
|
1162
|
+
async def update_api_key_with_http_info(
|
1246
1163
|
self,
|
1247
1164
|
id: StrictStr,
|
1248
1165
|
api_key_model: APIKeyModel,
|
@@ -1251,9 +1168,8 @@ class APIKeysApi:
|
|
1251
1168
|
None,
|
1252
1169
|
Annotated[StrictFloat, Field(gt=0)],
|
1253
1170
|
Tuple[
|
1254
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1255
|
-
|
1256
|
-
]
|
1171
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1172
|
+
],
|
1257
1173
|
] = None,
|
1258
1174
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1259
1175
|
_content_type: Optional[StrictStr] = None,
|
@@ -1289,7 +1205,7 @@ class APIKeysApi:
|
|
1289
1205
|
in the spec for a single request.
|
1290
1206
|
:type _host_index: int, optional
|
1291
1207
|
:return: Returns the result object.
|
1292
|
-
"""
|
1208
|
+
""" # noqa: E501
|
1293
1209
|
|
1294
1210
|
_param = self._update_api_key_serialize(
|
1295
1211
|
id=id,
|
@@ -1298,26 +1214,24 @@ class APIKeysApi:
|
|
1298
1214
|
_request_auth=_request_auth,
|
1299
1215
|
_content_type=_content_type,
|
1300
1216
|
_headers=_headers,
|
1301
|
-
_host_index=_host_index
|
1217
|
+
_host_index=_host_index,
|
1302
1218
|
)
|
1303
1219
|
|
1304
1220
|
_response_types_map: Dict[str, Optional[str]] = {
|
1305
|
-
|
1306
|
-
|
1221
|
+
"200": "object",
|
1222
|
+
"422": "HTTPValidationError",
|
1307
1223
|
}
|
1308
|
-
response_data = self.api_client.call_api(
|
1309
|
-
*_param,
|
1310
|
-
_request_timeout=_request_timeout
|
1224
|
+
response_data = await self.api_client.call_api(
|
1225
|
+
*_param, _request_timeout=_request_timeout
|
1311
1226
|
)
|
1312
|
-
response_data.read()
|
1227
|
+
await response_data.read()
|
1313
1228
|
return self.api_client.response_deserialize(
|
1314
1229
|
response_data=response_data,
|
1315
1230
|
response_types_map=_response_types_map,
|
1316
1231
|
)
|
1317
1232
|
|
1318
|
-
|
1319
1233
|
@validate_call
|
1320
|
-
def update_api_key_without_preload_content(
|
1234
|
+
async def update_api_key_without_preload_content(
|
1321
1235
|
self,
|
1322
1236
|
id: StrictStr,
|
1323
1237
|
api_key_model: APIKeyModel,
|
@@ -1326,9 +1240,8 @@ class APIKeysApi:
|
|
1326
1240
|
None,
|
1327
1241
|
Annotated[StrictFloat, Field(gt=0)],
|
1328
1242
|
Tuple[
|
1329
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1330
|
-
|
1331
|
-
]
|
1243
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1244
|
+
],
|
1332
1245
|
] = None,
|
1333
1246
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1334
1247
|
_content_type: Optional[StrictStr] = None,
|
@@ -1364,7 +1277,7 @@ class APIKeysApi:
|
|
1364
1277
|
in the spec for a single request.
|
1365
1278
|
:type _host_index: int, optional
|
1366
1279
|
:return: Returns the result object.
|
1367
|
-
"""
|
1280
|
+
""" # noqa: E501
|
1368
1281
|
|
1369
1282
|
_param = self._update_api_key_serialize(
|
1370
1283
|
id=id,
|
@@ -1373,20 +1286,18 @@ class APIKeysApi:
|
|
1373
1286
|
_request_auth=_request_auth,
|
1374
1287
|
_content_type=_content_type,
|
1375
1288
|
_headers=_headers,
|
1376
|
-
_host_index=_host_index
|
1289
|
+
_host_index=_host_index,
|
1377
1290
|
)
|
1378
1291
|
|
1379
1292
|
_response_types_map: Dict[str, Optional[str]] = {
|
1380
|
-
|
1381
|
-
|
1293
|
+
"200": "object",
|
1294
|
+
"422": "HTTPValidationError",
|
1382
1295
|
}
|
1383
|
-
response_data = self.api_client.call_api(
|
1384
|
-
*_param,
|
1385
|
-
_request_timeout=_request_timeout
|
1296
|
+
response_data = await self.api_client.call_api(
|
1297
|
+
*_param, _request_timeout=_request_timeout
|
1386
1298
|
)
|
1387
1299
|
return response_data.response
|
1388
1300
|
|
1389
|
-
|
1390
1301
|
def _update_api_key_serialize(
|
1391
1302
|
self,
|
1392
1303
|
id,
|
@@ -1400,8 +1311,7 @@ class APIKeysApi:
|
|
1400
1311
|
|
1401
1312
|
_host = None
|
1402
1313
|
|
1403
|
-
_collection_formats: Dict[str, str] = {
|
1404
|
-
}
|
1314
|
+
_collection_formats: Dict[str, str] = {}
|
1405
1315
|
|
1406
1316
|
_path_params: Dict[str, str] = {}
|
1407
1317
|
_query_params: List[Tuple[str, str]] = []
|
@@ -1414,7 +1324,7 @@ class APIKeysApi:
|
|
1414
1324
|
|
1415
1325
|
# process the path parameters
|
1416
1326
|
if id is not None:
|
1417
|
-
_path_params[
|
1327
|
+
_path_params["id"] = id
|
1418
1328
|
# process the query parameters
|
1419
1329
|
# process the header parameters
|
1420
1330
|
# process the form parameters
|
@@ -1422,37 +1332,28 @@ class APIKeysApi:
|
|
1422
1332
|
if api_key_model is not None:
|
1423
1333
|
_body_params = api_key_model
|
1424
1334
|
|
1425
|
-
|
1426
1335
|
# set the HTTP header `Accept`
|
1427
|
-
if
|
1428
|
-
_header_params[
|
1429
|
-
[
|
1430
|
-
'application/json'
|
1431
|
-
]
|
1336
|
+
if "Accept" not in _header_params:
|
1337
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1338
|
+
["application/json"]
|
1432
1339
|
)
|
1433
1340
|
|
1434
1341
|
# set the HTTP header `Content-Type`
|
1435
1342
|
if _content_type:
|
1436
|
-
_header_params[
|
1343
|
+
_header_params["Content-Type"] = _content_type
|
1437
1344
|
else:
|
1438
|
-
_default_content_type = (
|
1439
|
-
|
1440
|
-
[
|
1441
|
-
'application/json'
|
1442
|
-
]
|
1443
|
-
)
|
1345
|
+
_default_content_type = self.api_client.select_header_content_type(
|
1346
|
+
["application/json"]
|
1444
1347
|
)
|
1445
1348
|
if _default_content_type is not None:
|
1446
|
-
_header_params[
|
1349
|
+
_header_params["Content-Type"] = _default_content_type
|
1447
1350
|
|
1448
1351
|
# authentication setting
|
1449
|
-
_auth_settings: List[str] = [
|
1450
|
-
'OAuth2PasswordBearer'
|
1451
|
-
]
|
1352
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
1452
1353
|
|
1453
1354
|
return self.api_client.param_serialize(
|
1454
|
-
method=
|
1455
|
-
resource_path=
|
1355
|
+
method="PUT",
|
1356
|
+
resource_path="/api-keys/{id}",
|
1456
1357
|
path_params=_path_params,
|
1457
1358
|
query_params=_query_params,
|
1458
1359
|
header_params=_header_params,
|
@@ -1462,7 +1363,5 @@ class APIKeysApi:
|
|
1462
1363
|
auth_settings=_auth_settings,
|
1463
1364
|
collection_formats=_collection_formats,
|
1464
1365
|
_host=_host,
|
1465
|
-
_request_auth=_request_auth
|
1366
|
+
_request_auth=_request_auth,
|
1466
1367
|
)
|
1467
|
-
|
1468
|
-
|