crypticorn 2.17.0rc4__py3-none-any.whl → 2.17.0rc6__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/auth/client/api/admin_api.py +6 -26
- crypticorn/auth/client/api/auth_api.py +36 -148
- crypticorn/auth/client/api/service_api.py +3 -16
- crypticorn/auth/client/api/user_api.py +33 -136
- crypticorn/auth/client/api/wallet_api.py +18 -76
- crypticorn/auth/client/api_client.py +0 -5
- crypticorn/auth/client/models/add_wallet_request.py +1 -1
- crypticorn/auth/client/models/authorize_user_request.py +1 -1
- crypticorn/auth/client/models/create_api_key_request.py +1 -1
- crypticorn/auth/client/models/create_user_request.py +1 -1
- crypticorn/auth/client/models/get_api_keys200_response_inner.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_data_inner.py +1 -1
- crypticorn/auth/client/models/logout_default_response.py +1 -1
- crypticorn/auth/client/models/oauth_callback200_response_user.py +1 -1
- crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +1 -1
- crypticorn/auth/client/models/rotate_tokens200_response.py +1 -1
- crypticorn/auth/client/models/token_info200_response.py +1 -1
- crypticorn/auth/client/models/update_user_request.py +1 -1
- crypticorn/auth/client/models/user_by_username200_response.py +1 -1
- crypticorn/auth/client/models/verify200_response.py +1 -1
- crypticorn/auth/client/models/verify_email200_response_auth.py +1 -1
- crypticorn/auth/client/models/verify_email200_response_auth_auth.py +1 -1
- crypticorn/auth/client/models/whoami200_response.py +1 -1
- 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 +0 -1
- crypticorn/common/auth.py +31 -4
- crypticorn/common/decorators.py +1 -2
- crypticorn/common/enums.py +0 -2
- crypticorn/common/errors.py +10 -0
- crypticorn/common/metrics.py +1 -1
- crypticorn/common/middleware.py +0 -1
- crypticorn/common/pagination.py +116 -24
- crypticorn/common/router/admin_router.py +1 -11
- crypticorn/common/router/status_router.py +33 -2
- crypticorn/common/scopes.py +2 -2
- crypticorn/common/utils.py +1 -2
- 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 +2983 -0
- crypticorn/dex/client/api/signals_api.py +1794 -0
- crypticorn/dex/client/api/status_api.py +889 -0
- crypticorn/dex/client/api_client.py +753 -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 +156 -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 +18 -75
- crypticorn/hive/client/api/data_api.py +6 -28
- crypticorn/hive/client/api/models_api.py +22 -88
- crypticorn/hive/client/api/status_api.py +6 -27
- crypticorn/hive/client/api_client.py +0 -5
- 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/utils.py +2 -2
- crypticorn/klines/client/api/admin_api.py +18 -75
- crypticorn/klines/client/api/change_in_timeframe_api.py +3 -16
- crypticorn/klines/client/api/funding_rates_api.py +3 -16
- crypticorn/klines/client/api/ohlcv_data_api.py +3 -16
- crypticorn/klines/client/api/status_api.py +6 -27
- crypticorn/klines/client/api/symbols_api.py +3 -16
- crypticorn/klines/client/api/udf_api.py +18 -74
- crypticorn/klines/client/api_client.py +0 -5
- 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/metrics/client/api/admin_api.py +18 -75
- crypticorn/metrics/client/api/exchanges_api.py +12 -52
- crypticorn/metrics/client/api/indicators_api.py +6 -28
- crypticorn/metrics/client/api/logs_api.py +3 -16
- crypticorn/metrics/client/api/marketcap_api.py +12 -52
- crypticorn/metrics/client/api/markets_api.py +3 -16
- crypticorn/metrics/client/api/quote_currencies_api.py +3 -16
- crypticorn/metrics/client/api/status_api.py +6 -27
- crypticorn/metrics/client/api/tokens_api.py +6 -26
- crypticorn/metrics/client/api_client.py +0 -5
- 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/pay/client/api/admin_api.py +21 -87
- crypticorn/pay/client/api/now_payments_api.py +15 -64
- crypticorn/pay/client/api/payments_api.py +6 -28
- crypticorn/pay/client/api/products_api.py +12 -52
- crypticorn/pay/client/api/status_api.py +6 -27
- crypticorn/pay/client/api_client.py +0 -5
- 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/trade/client/__init__.py +15 -0
- crypticorn/trade/client/api/admin_api.py +43 -107
- crypticorn/trade/client/api/api_keys_api.py +207 -184
- crypticorn/trade/client/api/bots_api.py +6557 -240
- crypticorn/trade/client/api/exchanges_api.py +9 -36
- crypticorn/trade/client/api/notifications_api.py +18 -72
- crypticorn/trade/client/api/orders_api.py +220 -115
- crypticorn/trade/client/api/status_api.py +6 -24
- crypticorn/trade/client/api/strategies_api.py +15 -60
- crypticorn/trade/client/api/trading_actions_api.py +431 -112
- crypticorn/trade/client/models/__init__.py +15 -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_key_create.py +17 -1
- crypticorn/trade/client/models/exchange_key_update.py +17 -1
- crypticorn/trade/client/models/notification.py +17 -1
- crypticorn/trade/client/models/notification_create.py +17 -1
- 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/paginated_response_union_futures_trading_action_spot_trading_action.py +141 -0
- crypticorn/trade/client/models/paginated_response_union_futures_trading_action_spot_trading_action_data_inner.py +165 -0
- crypticorn/trade/client/models/pn_l.py +95 -0
- crypticorn/trade/client/models/spot_trading_action.py +207 -0
- crypticorn/trade/client/models/strategy.py +17 -1
- crypticorn/trade/client/models/strategy_create.py +17 -1
- crypticorn/trade/client/models/strategy_update.py +17 -1
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/METADATA +3 -3
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/RECORD +151 -116
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/WHEEL +0 -0
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,889 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
DEX AI API
|
5
|
+
|
6
|
+
API for DEX AI
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
15
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
16
|
+
from typing_extensions import Annotated
|
17
|
+
|
18
|
+
|
19
|
+
from crypticorn.dex.client.api_client import ApiClient, RequestSerialized
|
20
|
+
from crypticorn.dex.client.api_response import ApiResponse
|
21
|
+
from crypticorn.dex.client.rest import RESTResponseType
|
22
|
+
|
23
|
+
# Import async_to_sync for sync methods
|
24
|
+
try:
|
25
|
+
from asgiref.sync import async_to_sync
|
26
|
+
|
27
|
+
_HAS_ASGIREF = True
|
28
|
+
except ImportError:
|
29
|
+
_HAS_ASGIREF = False
|
30
|
+
|
31
|
+
def async_to_sync(async_func):
|
32
|
+
"""Fallback decorator that raises an error if asgiref is not available."""
|
33
|
+
|
34
|
+
def wrapper(*args, **kwargs):
|
35
|
+
raise ImportError(
|
36
|
+
"asgiref is required for sync methods. Install with: pip install asgiref"
|
37
|
+
)
|
38
|
+
|
39
|
+
return wrapper
|
40
|
+
|
41
|
+
|
42
|
+
class StatusApi:
|
43
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
44
|
+
Ref: https://openapi-generator.tech
|
45
|
+
|
46
|
+
Do not edit the class manually.
|
47
|
+
"""
|
48
|
+
|
49
|
+
def __init__(self, api_client=None, is_sync: bool = False) -> None:
|
50
|
+
if api_client is None:
|
51
|
+
api_client = ApiClient.get_default()
|
52
|
+
self.api_client = api_client
|
53
|
+
self.is_sync = is_sync
|
54
|
+
|
55
|
+
@validate_call
|
56
|
+
def get_time(
|
57
|
+
self,
|
58
|
+
type: Optional[StrictStr] = None,
|
59
|
+
_request_timeout: Union[
|
60
|
+
None,
|
61
|
+
Annotated[StrictFloat, Field(gt=0)],
|
62
|
+
Tuple[
|
63
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
64
|
+
],
|
65
|
+
] = None,
|
66
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
67
|
+
_content_type: Optional[StrictStr] = None,
|
68
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
69
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
70
|
+
) -> str:
|
71
|
+
"""Time"""
|
72
|
+
if self.is_sync:
|
73
|
+
return self._get_time_sync(
|
74
|
+
type=type,
|
75
|
+
_request_timeout=_request_timeout,
|
76
|
+
_request_auth=_request_auth,
|
77
|
+
_content_type=_content_type,
|
78
|
+
_headers=_headers,
|
79
|
+
_host_index=_host_index,
|
80
|
+
)
|
81
|
+
|
82
|
+
else:
|
83
|
+
return self._get_time_async(
|
84
|
+
type=type,
|
85
|
+
_request_timeout=_request_timeout,
|
86
|
+
_request_auth=_request_auth,
|
87
|
+
_content_type=_content_type,
|
88
|
+
_headers=_headers,
|
89
|
+
_host_index=_host_index,
|
90
|
+
)
|
91
|
+
|
92
|
+
@validate_call
|
93
|
+
def get_time_with_http_info(
|
94
|
+
self,
|
95
|
+
type: Optional[StrictStr] = None,
|
96
|
+
_request_timeout: Union[
|
97
|
+
None,
|
98
|
+
Annotated[StrictFloat, Field(gt=0)],
|
99
|
+
Tuple[
|
100
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
101
|
+
],
|
102
|
+
] = None,
|
103
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
104
|
+
_content_type: Optional[StrictStr] = None,
|
105
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
106
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
107
|
+
) -> ApiResponse[str]:
|
108
|
+
"""Time with HTTP info"""
|
109
|
+
if self.is_sync:
|
110
|
+
return self._get_time_sync_with_http_info(
|
111
|
+
type=type,
|
112
|
+
_request_timeout=_request_timeout,
|
113
|
+
_request_auth=_request_auth,
|
114
|
+
_content_type=_content_type,
|
115
|
+
_headers=_headers,
|
116
|
+
_host_index=_host_index,
|
117
|
+
)
|
118
|
+
|
119
|
+
else:
|
120
|
+
return self._get_time_async_with_http_info(
|
121
|
+
type=type,
|
122
|
+
_request_timeout=_request_timeout,
|
123
|
+
_request_auth=_request_auth,
|
124
|
+
_content_type=_content_type,
|
125
|
+
_headers=_headers,
|
126
|
+
_host_index=_host_index,
|
127
|
+
)
|
128
|
+
|
129
|
+
@validate_call
|
130
|
+
def get_time_without_preload_content(
|
131
|
+
self,
|
132
|
+
type: Optional[StrictStr] = None,
|
133
|
+
_request_timeout: Union[
|
134
|
+
None,
|
135
|
+
Annotated[StrictFloat, Field(gt=0)],
|
136
|
+
Tuple[
|
137
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
138
|
+
],
|
139
|
+
] = None,
|
140
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
141
|
+
_content_type: Optional[StrictStr] = None,
|
142
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
143
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
144
|
+
) -> RESTResponseType:
|
145
|
+
"""Time without preloading content"""
|
146
|
+
if self.is_sync:
|
147
|
+
return self._get_time_sync_without_preload_content(
|
148
|
+
type=type,
|
149
|
+
_request_timeout=_request_timeout,
|
150
|
+
_request_auth=_request_auth,
|
151
|
+
_content_type=_content_type,
|
152
|
+
_headers=_headers,
|
153
|
+
_host_index=_host_index,
|
154
|
+
)
|
155
|
+
|
156
|
+
else:
|
157
|
+
return self._get_time_async_without_preload_content(
|
158
|
+
type=type,
|
159
|
+
_request_timeout=_request_timeout,
|
160
|
+
_request_auth=_request_auth,
|
161
|
+
_content_type=_content_type,
|
162
|
+
_headers=_headers,
|
163
|
+
_host_index=_host_index,
|
164
|
+
)
|
165
|
+
|
166
|
+
# Private async implementation methods
|
167
|
+
@validate_call
|
168
|
+
async def _get_time_async(
|
169
|
+
self,
|
170
|
+
type: Optional[StrictStr] = None,
|
171
|
+
_request_timeout: Union[
|
172
|
+
None,
|
173
|
+
Annotated[StrictFloat, Field(gt=0)],
|
174
|
+
Tuple[
|
175
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
176
|
+
],
|
177
|
+
] = None,
|
178
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
179
|
+
_content_type: Optional[StrictStr] = None,
|
180
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
181
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
182
|
+
) -> str:
|
183
|
+
"""Time
|
184
|
+
|
185
|
+
Returns the current time in either ISO or Unix timestamp (seconds) format.
|
186
|
+
|
187
|
+
:param type:
|
188
|
+
:type type: str
|
189
|
+
:param _request_timeout: timeout setting for this request. If one
|
190
|
+
number provided, it will be total request
|
191
|
+
timeout. It can also be a pair (tuple) of
|
192
|
+
(connection, read) timeouts.
|
193
|
+
:type _request_timeout: int, tuple(int, int), optional
|
194
|
+
:param _request_auth: set to override the auth_settings for an a single
|
195
|
+
request; this effectively ignores the
|
196
|
+
authentication in the spec for a single request.
|
197
|
+
:type _request_auth: dict, optional
|
198
|
+
:param _content_type: force content-type for the request.
|
199
|
+
:type _content_type: str, Optional
|
200
|
+
:param _headers: set to override the headers for a single
|
201
|
+
request; this effectively ignores the headers
|
202
|
+
in the spec for a single request.
|
203
|
+
:type _headers: dict, optional
|
204
|
+
:param _host_index: set to override the host_index for a single
|
205
|
+
request; this effectively ignores the host_index
|
206
|
+
in the spec for a single request.
|
207
|
+
:type _host_index: int, optional
|
208
|
+
:return: Returns the result object.
|
209
|
+
""" # noqa: E501
|
210
|
+
|
211
|
+
_param = self._get_time_serialize(
|
212
|
+
type=type,
|
213
|
+
_request_auth=_request_auth,
|
214
|
+
_content_type=_content_type,
|
215
|
+
_headers=_headers,
|
216
|
+
_host_index=_host_index,
|
217
|
+
)
|
218
|
+
|
219
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
220
|
+
"200": "str",
|
221
|
+
}
|
222
|
+
response_data = await self.api_client.call_api(
|
223
|
+
*_param, _request_timeout=_request_timeout
|
224
|
+
)
|
225
|
+
await response_data.read()
|
226
|
+
return self.api_client.response_deserialize(
|
227
|
+
response_data=response_data,
|
228
|
+
response_types_map=_response_types_map,
|
229
|
+
).data
|
230
|
+
|
231
|
+
@validate_call
|
232
|
+
async def _get_time_async_with_http_info(
|
233
|
+
self,
|
234
|
+
type: Optional[StrictStr] = None,
|
235
|
+
_request_timeout: Union[
|
236
|
+
None,
|
237
|
+
Annotated[StrictFloat, Field(gt=0)],
|
238
|
+
Tuple[
|
239
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
240
|
+
],
|
241
|
+
] = None,
|
242
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
243
|
+
_content_type: Optional[StrictStr] = None,
|
244
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
245
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
246
|
+
) -> ApiResponse[str]:
|
247
|
+
"""Time
|
248
|
+
|
249
|
+
Returns the current time in either ISO or Unix timestamp (seconds) format.
|
250
|
+
|
251
|
+
:param type:
|
252
|
+
:type type: str
|
253
|
+
:param _request_timeout: timeout setting for this request. If one
|
254
|
+
number provided, it will be total request
|
255
|
+
timeout. It can also be a pair (tuple) of
|
256
|
+
(connection, read) timeouts.
|
257
|
+
:type _request_timeout: int, tuple(int, int), optional
|
258
|
+
:param _request_auth: set to override the auth_settings for an a single
|
259
|
+
request; this effectively ignores the
|
260
|
+
authentication in the spec for a single request.
|
261
|
+
:type _request_auth: dict, optional
|
262
|
+
:param _content_type: force content-type for the request.
|
263
|
+
:type _content_type: str, Optional
|
264
|
+
:param _headers: set to override the headers for a single
|
265
|
+
request; this effectively ignores the headers
|
266
|
+
in the spec for a single request.
|
267
|
+
:type _headers: dict, optional
|
268
|
+
:param _host_index: set to override the host_index for a single
|
269
|
+
request; this effectively ignores the host_index
|
270
|
+
in the spec for a single request.
|
271
|
+
:type _host_index: int, optional
|
272
|
+
:return: Returns the result object.
|
273
|
+
""" # noqa: E501
|
274
|
+
|
275
|
+
_param = self._get_time_serialize(
|
276
|
+
type=type,
|
277
|
+
_request_auth=_request_auth,
|
278
|
+
_content_type=_content_type,
|
279
|
+
_headers=_headers,
|
280
|
+
_host_index=_host_index,
|
281
|
+
)
|
282
|
+
|
283
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
284
|
+
"200": "str",
|
285
|
+
}
|
286
|
+
response_data = await self.api_client.call_api(
|
287
|
+
*_param, _request_timeout=_request_timeout
|
288
|
+
)
|
289
|
+
await response_data.read()
|
290
|
+
return self.api_client.response_deserialize(
|
291
|
+
response_data=response_data, response_types_map=_response_types_map
|
292
|
+
)
|
293
|
+
|
294
|
+
@validate_call
|
295
|
+
async def _get_time_async_without_preload_content(
|
296
|
+
self,
|
297
|
+
type: Optional[StrictStr] = None,
|
298
|
+
_request_timeout: Union[
|
299
|
+
None,
|
300
|
+
Annotated[StrictFloat, Field(gt=0)],
|
301
|
+
Tuple[
|
302
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
303
|
+
],
|
304
|
+
] = None,
|
305
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
306
|
+
_content_type: Optional[StrictStr] = None,
|
307
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
308
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
309
|
+
) -> RESTResponseType:
|
310
|
+
"""Time
|
311
|
+
|
312
|
+
Returns the current time in either ISO or Unix timestamp (seconds) format.
|
313
|
+
|
314
|
+
:param type:
|
315
|
+
:type type: str
|
316
|
+
:param _request_timeout: timeout setting for this request. If one
|
317
|
+
number provided, it will be total request
|
318
|
+
timeout. It can also be a pair (tuple) of
|
319
|
+
(connection, read) timeouts.
|
320
|
+
:type _request_timeout: int, tuple(int, int), optional
|
321
|
+
:param _request_auth: set to override the auth_settings for an a single
|
322
|
+
request; this effectively ignores the
|
323
|
+
authentication in the spec for a single request.
|
324
|
+
:type _request_auth: dict, optional
|
325
|
+
:param _content_type: force content-type for the request.
|
326
|
+
:type _content_type: str, Optional
|
327
|
+
:param _headers: set to override the headers for a single
|
328
|
+
request; this effectively ignores the headers
|
329
|
+
in the spec for a single request.
|
330
|
+
:type _headers: dict, optional
|
331
|
+
:param _host_index: set to override the host_index for a single
|
332
|
+
request; this effectively ignores the host_index
|
333
|
+
in the spec for a single request.
|
334
|
+
:type _host_index: int, optional
|
335
|
+
:return: Returns the result object.
|
336
|
+
""" # noqa: E501
|
337
|
+
|
338
|
+
_param = self._get_time_serialize(
|
339
|
+
type=type,
|
340
|
+
_request_auth=_request_auth,
|
341
|
+
_content_type=_content_type,
|
342
|
+
_headers=_headers,
|
343
|
+
_host_index=_host_index,
|
344
|
+
)
|
345
|
+
|
346
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
347
|
+
"200": "str",
|
348
|
+
}
|
349
|
+
response_data = await self.api_client.call_api(
|
350
|
+
*_param, _request_timeout=_request_timeout
|
351
|
+
)
|
352
|
+
return response_data
|
353
|
+
|
354
|
+
# Private sync implementation methods
|
355
|
+
@validate_call
|
356
|
+
def _get_time_sync(
|
357
|
+
self,
|
358
|
+
type: Optional[StrictStr] = None,
|
359
|
+
_request_timeout: Union[
|
360
|
+
None,
|
361
|
+
Annotated[StrictFloat, Field(gt=0)],
|
362
|
+
Tuple[
|
363
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
364
|
+
],
|
365
|
+
] = None,
|
366
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
367
|
+
_content_type: Optional[StrictStr] = None,
|
368
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
369
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
370
|
+
) -> str:
|
371
|
+
"""Synchronous version of get_time"""
|
372
|
+
return async_to_sync(self._get_time_async)(
|
373
|
+
type=type,
|
374
|
+
_request_timeout=_request_timeout,
|
375
|
+
_request_auth=_request_auth,
|
376
|
+
_content_type=_content_type,
|
377
|
+
_headers=_headers,
|
378
|
+
_host_index=_host_index,
|
379
|
+
)
|
380
|
+
|
381
|
+
@validate_call
|
382
|
+
def _get_time_sync_with_http_info(
|
383
|
+
self,
|
384
|
+
type: Optional[StrictStr] = None,
|
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
|
+
) -> ApiResponse[str]:
|
397
|
+
"""Synchronous version of get_time_with_http_info"""
|
398
|
+
return async_to_sync(self._get_time_async_with_http_info)(
|
399
|
+
type=type,
|
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 _get_time_sync_without_preload_content(
|
409
|
+
self,
|
410
|
+
type: Optional[StrictStr] = None,
|
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
|
+
) -> RESTResponseType:
|
423
|
+
"""Synchronous version of get_time_without_preload_content"""
|
424
|
+
return async_to_sync(self._get_time_async_without_preload_content)(
|
425
|
+
type=type,
|
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
|
+
def _get_time_serialize(
|
434
|
+
self,
|
435
|
+
type,
|
436
|
+
_request_auth,
|
437
|
+
_content_type,
|
438
|
+
_headers,
|
439
|
+
_host_index,
|
440
|
+
) -> RequestSerialized:
|
441
|
+
|
442
|
+
_host = None
|
443
|
+
|
444
|
+
_collection_formats: Dict[str, str] = {}
|
445
|
+
|
446
|
+
_path_params: Dict[str, str] = {}
|
447
|
+
_query_params: List[Tuple[str, str]] = []
|
448
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
449
|
+
_form_params: List[Tuple[str, str]] = []
|
450
|
+
_files: Dict[
|
451
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
452
|
+
] = {}
|
453
|
+
_body_params: Optional[bytes] = None
|
454
|
+
|
455
|
+
# process the path parameters
|
456
|
+
# process the query parameters
|
457
|
+
if type is not None:
|
458
|
+
|
459
|
+
_query_params.append(("type", type))
|
460
|
+
|
461
|
+
# process the header parameters
|
462
|
+
# process the form parameters
|
463
|
+
# process the body parameter
|
464
|
+
|
465
|
+
# set the HTTP header `Accept`
|
466
|
+
if "Accept" not in _header_params:
|
467
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
468
|
+
["application/json"]
|
469
|
+
)
|
470
|
+
|
471
|
+
# authentication setting
|
472
|
+
_auth_settings: List[str] = []
|
473
|
+
|
474
|
+
return self.api_client.param_serialize(
|
475
|
+
method="GET",
|
476
|
+
resource_path="/time",
|
477
|
+
path_params=_path_params,
|
478
|
+
query_params=_query_params,
|
479
|
+
header_params=_header_params,
|
480
|
+
body=_body_params,
|
481
|
+
post_params=_form_params,
|
482
|
+
files=_files,
|
483
|
+
auth_settings=_auth_settings,
|
484
|
+
collection_formats=_collection_formats,
|
485
|
+
_host=_host,
|
486
|
+
_request_auth=_request_auth,
|
487
|
+
)
|
488
|
+
|
489
|
+
@validate_call
|
490
|
+
def ping(
|
491
|
+
self,
|
492
|
+
_request_timeout: Union[
|
493
|
+
None,
|
494
|
+
Annotated[StrictFloat, Field(gt=0)],
|
495
|
+
Tuple[
|
496
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
497
|
+
],
|
498
|
+
] = None,
|
499
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
500
|
+
_content_type: Optional[StrictStr] = None,
|
501
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
502
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
503
|
+
) -> str:
|
504
|
+
"""Ping"""
|
505
|
+
if self.is_sync:
|
506
|
+
return self._ping_sync(
|
507
|
+
_request_timeout=_request_timeout,
|
508
|
+
_request_auth=_request_auth,
|
509
|
+
_content_type=_content_type,
|
510
|
+
_headers=_headers,
|
511
|
+
_host_index=_host_index,
|
512
|
+
)
|
513
|
+
|
514
|
+
else:
|
515
|
+
return self._ping_async(
|
516
|
+
_request_timeout=_request_timeout,
|
517
|
+
_request_auth=_request_auth,
|
518
|
+
_content_type=_content_type,
|
519
|
+
_headers=_headers,
|
520
|
+
_host_index=_host_index,
|
521
|
+
)
|
522
|
+
|
523
|
+
@validate_call
|
524
|
+
def ping_with_http_info(
|
525
|
+
self,
|
526
|
+
_request_timeout: Union[
|
527
|
+
None,
|
528
|
+
Annotated[StrictFloat, Field(gt=0)],
|
529
|
+
Tuple[
|
530
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
531
|
+
],
|
532
|
+
] = None,
|
533
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
534
|
+
_content_type: Optional[StrictStr] = None,
|
535
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
536
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
537
|
+
) -> ApiResponse[str]:
|
538
|
+
"""Ping with HTTP info"""
|
539
|
+
if self.is_sync:
|
540
|
+
return self._ping_sync_with_http_info(
|
541
|
+
_request_timeout=_request_timeout,
|
542
|
+
_request_auth=_request_auth,
|
543
|
+
_content_type=_content_type,
|
544
|
+
_headers=_headers,
|
545
|
+
_host_index=_host_index,
|
546
|
+
)
|
547
|
+
|
548
|
+
else:
|
549
|
+
return self._ping_async_with_http_info(
|
550
|
+
_request_timeout=_request_timeout,
|
551
|
+
_request_auth=_request_auth,
|
552
|
+
_content_type=_content_type,
|
553
|
+
_headers=_headers,
|
554
|
+
_host_index=_host_index,
|
555
|
+
)
|
556
|
+
|
557
|
+
@validate_call
|
558
|
+
def ping_without_preload_content(
|
559
|
+
self,
|
560
|
+
_request_timeout: Union[
|
561
|
+
None,
|
562
|
+
Annotated[StrictFloat, Field(gt=0)],
|
563
|
+
Tuple[
|
564
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
565
|
+
],
|
566
|
+
] = None,
|
567
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
568
|
+
_content_type: Optional[StrictStr] = None,
|
569
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
570
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
571
|
+
) -> RESTResponseType:
|
572
|
+
"""Ping without preloading content"""
|
573
|
+
if self.is_sync:
|
574
|
+
return self._ping_sync_without_preload_content(
|
575
|
+
_request_timeout=_request_timeout,
|
576
|
+
_request_auth=_request_auth,
|
577
|
+
_content_type=_content_type,
|
578
|
+
_headers=_headers,
|
579
|
+
_host_index=_host_index,
|
580
|
+
)
|
581
|
+
|
582
|
+
else:
|
583
|
+
return self._ping_async_without_preload_content(
|
584
|
+
_request_timeout=_request_timeout,
|
585
|
+
_request_auth=_request_auth,
|
586
|
+
_content_type=_content_type,
|
587
|
+
_headers=_headers,
|
588
|
+
_host_index=_host_index,
|
589
|
+
)
|
590
|
+
|
591
|
+
# Private async implementation methods
|
592
|
+
@validate_call
|
593
|
+
async def _ping_async(
|
594
|
+
self,
|
595
|
+
_request_timeout: Union[
|
596
|
+
None,
|
597
|
+
Annotated[StrictFloat, Field(gt=0)],
|
598
|
+
Tuple[
|
599
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
600
|
+
],
|
601
|
+
] = None,
|
602
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
603
|
+
_content_type: Optional[StrictStr] = None,
|
604
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
605
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
606
|
+
) -> str:
|
607
|
+
"""Ping
|
608
|
+
|
609
|
+
Returns 'OK' if the API is running.
|
610
|
+
|
611
|
+
:param _request_timeout: timeout setting for this request. If one
|
612
|
+
number provided, it will be total request
|
613
|
+
timeout. It can also be a pair (tuple) of
|
614
|
+
(connection, read) timeouts.
|
615
|
+
:type _request_timeout: int, tuple(int, int), optional
|
616
|
+
:param _request_auth: set to override the auth_settings for an a single
|
617
|
+
request; this effectively ignores the
|
618
|
+
authentication in the spec for a single request.
|
619
|
+
:type _request_auth: dict, optional
|
620
|
+
:param _content_type: force content-type for the request.
|
621
|
+
:type _content_type: str, Optional
|
622
|
+
:param _headers: set to override the headers for a single
|
623
|
+
request; this effectively ignores the headers
|
624
|
+
in the spec for a single request.
|
625
|
+
:type _headers: dict, optional
|
626
|
+
:param _host_index: set to override the host_index for a single
|
627
|
+
request; this effectively ignores the host_index
|
628
|
+
in the spec for a single request.
|
629
|
+
:type _host_index: int, optional
|
630
|
+
:return: Returns the result object.
|
631
|
+
""" # noqa: E501
|
632
|
+
|
633
|
+
_param = self._ping_serialize(
|
634
|
+
_request_auth=_request_auth,
|
635
|
+
_content_type=_content_type,
|
636
|
+
_headers=_headers,
|
637
|
+
_host_index=_host_index,
|
638
|
+
)
|
639
|
+
|
640
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
641
|
+
"200": "str",
|
642
|
+
}
|
643
|
+
response_data = await self.api_client.call_api(
|
644
|
+
*_param, _request_timeout=_request_timeout
|
645
|
+
)
|
646
|
+
await response_data.read()
|
647
|
+
return self.api_client.response_deserialize(
|
648
|
+
response_data=response_data,
|
649
|
+
response_types_map=_response_types_map,
|
650
|
+
).data
|
651
|
+
|
652
|
+
@validate_call
|
653
|
+
async def _ping_async_with_http_info(
|
654
|
+
self,
|
655
|
+
_request_timeout: Union[
|
656
|
+
None,
|
657
|
+
Annotated[StrictFloat, Field(gt=0)],
|
658
|
+
Tuple[
|
659
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
660
|
+
],
|
661
|
+
] = None,
|
662
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
663
|
+
_content_type: Optional[StrictStr] = None,
|
664
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
665
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
666
|
+
) -> ApiResponse[str]:
|
667
|
+
"""Ping
|
668
|
+
|
669
|
+
Returns 'OK' if the API is running.
|
670
|
+
|
671
|
+
:param _request_timeout: timeout setting for this request. If one
|
672
|
+
number provided, it will be total request
|
673
|
+
timeout. It can also be a pair (tuple) of
|
674
|
+
(connection, read) timeouts.
|
675
|
+
:type _request_timeout: int, tuple(int, int), optional
|
676
|
+
:param _request_auth: set to override the auth_settings for an a single
|
677
|
+
request; this effectively ignores the
|
678
|
+
authentication in the spec for a single request.
|
679
|
+
:type _request_auth: dict, optional
|
680
|
+
:param _content_type: force content-type for the request.
|
681
|
+
:type _content_type: str, Optional
|
682
|
+
:param _headers: set to override the headers for a single
|
683
|
+
request; this effectively ignores the headers
|
684
|
+
in the spec for a single request.
|
685
|
+
:type _headers: dict, optional
|
686
|
+
:param _host_index: set to override the host_index for a single
|
687
|
+
request; this effectively ignores the host_index
|
688
|
+
in the spec for a single request.
|
689
|
+
:type _host_index: int, optional
|
690
|
+
:return: Returns the result object.
|
691
|
+
""" # noqa: E501
|
692
|
+
|
693
|
+
_param = self._ping_serialize(
|
694
|
+
_request_auth=_request_auth,
|
695
|
+
_content_type=_content_type,
|
696
|
+
_headers=_headers,
|
697
|
+
_host_index=_host_index,
|
698
|
+
)
|
699
|
+
|
700
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
701
|
+
"200": "str",
|
702
|
+
}
|
703
|
+
response_data = await self.api_client.call_api(
|
704
|
+
*_param, _request_timeout=_request_timeout
|
705
|
+
)
|
706
|
+
await response_data.read()
|
707
|
+
return self.api_client.response_deserialize(
|
708
|
+
response_data=response_data, response_types_map=_response_types_map
|
709
|
+
)
|
710
|
+
|
711
|
+
@validate_call
|
712
|
+
async def _ping_async_without_preload_content(
|
713
|
+
self,
|
714
|
+
_request_timeout: Union[
|
715
|
+
None,
|
716
|
+
Annotated[StrictFloat, Field(gt=0)],
|
717
|
+
Tuple[
|
718
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
719
|
+
],
|
720
|
+
] = None,
|
721
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
722
|
+
_content_type: Optional[StrictStr] = None,
|
723
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
724
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
725
|
+
) -> RESTResponseType:
|
726
|
+
"""Ping
|
727
|
+
|
728
|
+
Returns 'OK' if the API is running.
|
729
|
+
|
730
|
+
:param _request_timeout: timeout setting for this request. If one
|
731
|
+
number provided, it will be total request
|
732
|
+
timeout. It can also be a pair (tuple) of
|
733
|
+
(connection, read) timeouts.
|
734
|
+
:type _request_timeout: int, tuple(int, int), optional
|
735
|
+
:param _request_auth: set to override the auth_settings for an a single
|
736
|
+
request; this effectively ignores the
|
737
|
+
authentication in the spec for a single request.
|
738
|
+
:type _request_auth: dict, optional
|
739
|
+
:param _content_type: force content-type for the request.
|
740
|
+
:type _content_type: str, Optional
|
741
|
+
:param _headers: set to override the headers for a single
|
742
|
+
request; this effectively ignores the headers
|
743
|
+
in the spec for a single request.
|
744
|
+
:type _headers: dict, optional
|
745
|
+
:param _host_index: set to override the host_index for a single
|
746
|
+
request; this effectively ignores the host_index
|
747
|
+
in the spec for a single request.
|
748
|
+
:type _host_index: int, optional
|
749
|
+
:return: Returns the result object.
|
750
|
+
""" # noqa: E501
|
751
|
+
|
752
|
+
_param = self._ping_serialize(
|
753
|
+
_request_auth=_request_auth,
|
754
|
+
_content_type=_content_type,
|
755
|
+
_headers=_headers,
|
756
|
+
_host_index=_host_index,
|
757
|
+
)
|
758
|
+
|
759
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
760
|
+
"200": "str",
|
761
|
+
}
|
762
|
+
response_data = await self.api_client.call_api(
|
763
|
+
*_param, _request_timeout=_request_timeout
|
764
|
+
)
|
765
|
+
return response_data
|
766
|
+
|
767
|
+
# Private sync implementation methods
|
768
|
+
@validate_call
|
769
|
+
def _ping_sync(
|
770
|
+
self,
|
771
|
+
_request_timeout: Union[
|
772
|
+
None,
|
773
|
+
Annotated[StrictFloat, Field(gt=0)],
|
774
|
+
Tuple[
|
775
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
776
|
+
],
|
777
|
+
] = None,
|
778
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
779
|
+
_content_type: Optional[StrictStr] = None,
|
780
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
781
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
782
|
+
) -> str:
|
783
|
+
"""Synchronous version of ping"""
|
784
|
+
return async_to_sync(self._ping_async)(
|
785
|
+
_request_timeout=_request_timeout,
|
786
|
+
_request_auth=_request_auth,
|
787
|
+
_content_type=_content_type,
|
788
|
+
_headers=_headers,
|
789
|
+
_host_index=_host_index,
|
790
|
+
)
|
791
|
+
|
792
|
+
@validate_call
|
793
|
+
def _ping_sync_with_http_info(
|
794
|
+
self,
|
795
|
+
_request_timeout: Union[
|
796
|
+
None,
|
797
|
+
Annotated[StrictFloat, Field(gt=0)],
|
798
|
+
Tuple[
|
799
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
800
|
+
],
|
801
|
+
] = None,
|
802
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
803
|
+
_content_type: Optional[StrictStr] = None,
|
804
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
805
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
806
|
+
) -> ApiResponse[str]:
|
807
|
+
"""Synchronous version of ping_with_http_info"""
|
808
|
+
return async_to_sync(self._ping_async_with_http_info)(
|
809
|
+
_request_timeout=_request_timeout,
|
810
|
+
_request_auth=_request_auth,
|
811
|
+
_content_type=_content_type,
|
812
|
+
_headers=_headers,
|
813
|
+
_host_index=_host_index,
|
814
|
+
)
|
815
|
+
|
816
|
+
@validate_call
|
817
|
+
def _ping_sync_without_preload_content(
|
818
|
+
self,
|
819
|
+
_request_timeout: Union[
|
820
|
+
None,
|
821
|
+
Annotated[StrictFloat, Field(gt=0)],
|
822
|
+
Tuple[
|
823
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
824
|
+
],
|
825
|
+
] = None,
|
826
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
827
|
+
_content_type: Optional[StrictStr] = None,
|
828
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
829
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
830
|
+
) -> RESTResponseType:
|
831
|
+
"""Synchronous version of ping_without_preload_content"""
|
832
|
+
return async_to_sync(self._ping_async_without_preload_content)(
|
833
|
+
_request_timeout=_request_timeout,
|
834
|
+
_request_auth=_request_auth,
|
835
|
+
_content_type=_content_type,
|
836
|
+
_headers=_headers,
|
837
|
+
_host_index=_host_index,
|
838
|
+
)
|
839
|
+
|
840
|
+
def _ping_serialize(
|
841
|
+
self,
|
842
|
+
_request_auth,
|
843
|
+
_content_type,
|
844
|
+
_headers,
|
845
|
+
_host_index,
|
846
|
+
) -> RequestSerialized:
|
847
|
+
|
848
|
+
_host = None
|
849
|
+
|
850
|
+
_collection_formats: Dict[str, str] = {}
|
851
|
+
|
852
|
+
_path_params: Dict[str, str] = {}
|
853
|
+
_query_params: List[Tuple[str, str]] = []
|
854
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
855
|
+
_form_params: List[Tuple[str, str]] = []
|
856
|
+
_files: Dict[
|
857
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
858
|
+
] = {}
|
859
|
+
_body_params: Optional[bytes] = None
|
860
|
+
|
861
|
+
# process the path parameters
|
862
|
+
# process the query parameters
|
863
|
+
# process the header parameters
|
864
|
+
# process the form parameters
|
865
|
+
# process the body parameter
|
866
|
+
|
867
|
+
# set the HTTP header `Accept`
|
868
|
+
if "Accept" not in _header_params:
|
869
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
870
|
+
["application/json"]
|
871
|
+
)
|
872
|
+
|
873
|
+
# authentication setting
|
874
|
+
_auth_settings: List[str] = []
|
875
|
+
|
876
|
+
return self.api_client.param_serialize(
|
877
|
+
method="GET",
|
878
|
+
resource_path="/",
|
879
|
+
path_params=_path_params,
|
880
|
+
query_params=_query_params,
|
881
|
+
header_params=_header_params,
|
882
|
+
body=_body_params,
|
883
|
+
post_params=_form_params,
|
884
|
+
files=_files,
|
885
|
+
auth_settings=_auth_settings,
|
886
|
+
collection_formats=_collection_formats,
|
887
|
+
_host=_host,
|
888
|
+
_request_auth=_request_auth,
|
889
|
+
)
|