crypticorn 2.15.0__py3-none-any.whl → 2.17.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- crypticorn/__init__.py +2 -2
- crypticorn/auth/client/api/admin_api.py +397 -13
- crypticorn/auth/client/api/auth_api.py +3610 -341
- crypticorn/auth/client/api/service_api.py +249 -7
- crypticorn/auth/client/api/user_api.py +2295 -179
- crypticorn/auth/client/api/wallet_api.py +1468 -81
- crypticorn/auth/client/configuration.py +2 -2
- crypticorn/auth/client/models/create_api_key_request.py +2 -1
- crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
- crypticorn/auth/client/rest.py +23 -4
- crypticorn/auth/main.py +8 -5
- crypticorn/cli/init.py +1 -1
- crypticorn/cli/templates/.env.docker.temp +3 -0
- crypticorn/cli/templates/.env.example.temp +4 -0
- crypticorn/cli/templates/Dockerfile +5 -2
- crypticorn/client.py +226 -59
- crypticorn/common/__init__.py +1 -0
- crypticorn/common/auth.py +45 -14
- crypticorn/common/decorators.py +1 -2
- crypticorn/common/enums.py +0 -2
- crypticorn/common/errors.py +10 -0
- crypticorn/common/metrics.py +30 -0
- crypticorn/common/middleware.py +94 -1
- crypticorn/common/pagination.py +252 -18
- crypticorn/common/router/admin_router.py +2 -2
- crypticorn/common/router/status_router.py +40 -2
- crypticorn/common/scopes.py +2 -0
- crypticorn/common/warnings.py +8 -0
- crypticorn/dex/__init__.py +6 -0
- crypticorn/dex/client/__init__.py +49 -0
- crypticorn/dex/client/api/__init__.py +6 -0
- crypticorn/dex/client/api/admin_api.py +2986 -0
- crypticorn/dex/client/api/signals_api.py +1798 -0
- crypticorn/dex/client/api/status_api.py +892 -0
- crypticorn/dex/client/api_client.py +758 -0
- crypticorn/dex/client/api_response.py +20 -0
- crypticorn/dex/client/configuration.py +620 -0
- crypticorn/dex/client/exceptions.py +220 -0
- crypticorn/dex/client/models/__init__.py +30 -0
- crypticorn/dex/client/models/api_error_identifier.py +121 -0
- crypticorn/dex/client/models/api_error_level.py +37 -0
- crypticorn/dex/client/models/api_error_type.py +37 -0
- crypticorn/dex/client/models/exception_detail.py +117 -0
- crypticorn/dex/client/models/log_level.py +38 -0
- crypticorn/dex/client/models/paginated_response_signal_with_token.py +134 -0
- crypticorn/dex/client/models/risk.py +86 -0
- crypticorn/dex/client/models/signal_overview_stats.py +158 -0
- crypticorn/dex/client/models/signal_volume.py +84 -0
- crypticorn/dex/client/models/signal_with_token.py +163 -0
- crypticorn/dex/client/models/token_data.py +127 -0
- crypticorn/dex/client/models/token_detail.py +116 -0
- crypticorn/dex/client/py.typed +0 -0
- crypticorn/dex/client/rest.py +217 -0
- crypticorn/dex/main.py +1 -0
- crypticorn/hive/client/api/admin_api.py +1173 -47
- crypticorn/hive/client/api/data_api.py +499 -17
- crypticorn/hive/client/api/models_api.py +1595 -87
- crypticorn/hive/client/api/status_api.py +397 -16
- crypticorn/hive/client/api_client.py +0 -5
- crypticorn/hive/client/models/api_error_identifier.py +1 -1
- crypticorn/hive/client/models/coin_info.py +1 -1
- crypticorn/hive/client/models/exception_detail.py +1 -1
- crypticorn/hive/client/models/target_info.py +1 -1
- crypticorn/hive/client/rest.py +23 -4
- crypticorn/hive/main.py +99 -25
- crypticorn/hive/utils.py +2 -2
- crypticorn/klines/client/api/admin_api.py +1173 -47
- crypticorn/klines/client/api/change_in_timeframe_api.py +269 -11
- crypticorn/klines/client/api/funding_rates_api.py +315 -11
- crypticorn/klines/client/api/ohlcv_data_api.py +390 -11
- crypticorn/klines/client/api/status_api.py +397 -16
- crypticorn/klines/client/api/symbols_api.py +216 -11
- crypticorn/klines/client/api/udf_api.py +1268 -51
- crypticorn/klines/client/api_client.py +0 -5
- crypticorn/klines/client/models/api_error_identifier.py +3 -1
- crypticorn/klines/client/models/exception_detail.py +1 -1
- crypticorn/klines/client/models/ohlcv.py +1 -1
- crypticorn/klines/client/models/symbol_group.py +1 -1
- crypticorn/klines/client/models/udf_config.py +1 -1
- crypticorn/klines/client/rest.py +23 -4
- crypticorn/klines/main.py +89 -12
- crypticorn/metrics/client/api/admin_api.py +1173 -47
- crypticorn/metrics/client/api/exchanges_api.py +1370 -145
- crypticorn/metrics/client/api/indicators_api.py +622 -17
- crypticorn/metrics/client/api/logs_api.py +296 -11
- crypticorn/metrics/client/api/marketcap_api.py +1207 -67
- crypticorn/metrics/client/api/markets_api.py +343 -11
- crypticorn/metrics/client/api/quote_currencies_api.py +228 -11
- crypticorn/metrics/client/api/status_api.py +397 -16
- crypticorn/metrics/client/api/tokens_api.py +382 -15
- crypticorn/metrics/client/api_client.py +0 -5
- crypticorn/metrics/client/configuration.py +4 -2
- crypticorn/metrics/client/models/exception_detail.py +1 -1
- crypticorn/metrics/client/models/exchange_mapping.py +1 -1
- crypticorn/metrics/client/models/marketcap_ranking.py +1 -1
- crypticorn/metrics/client/models/marketcap_symbol_ranking.py +1 -1
- crypticorn/metrics/client/models/ohlcv.py +1 -1
- crypticorn/metrics/client/rest.py +23 -4
- crypticorn/metrics/main.py +113 -19
- crypticorn/pay/client/api/admin_api.py +1585 -57
- crypticorn/pay/client/api/now_payments_api.py +961 -39
- crypticorn/pay/client/api/payments_api.py +562 -17
- crypticorn/pay/client/api/products_api.py +880 -30
- crypticorn/pay/client/api/status_api.py +397 -16
- crypticorn/pay/client/api_client.py +0 -5
- crypticorn/pay/client/configuration.py +2 -2
- crypticorn/pay/client/models/api_error_identifier.py +7 -7
- crypticorn/pay/client/models/exception_detail.py +1 -1
- crypticorn/pay/client/models/now_create_invoice_req.py +1 -1
- crypticorn/pay/client/models/now_create_invoice_res.py +1 -1
- crypticorn/pay/client/models/product.py +1 -1
- crypticorn/pay/client/models/product_create.py +1 -1
- crypticorn/pay/client/models/product_update.py +1 -1
- crypticorn/pay/client/models/scope.py +1 -0
- crypticorn/pay/client/rest.py +23 -4
- crypticorn/pay/main.py +10 -6
- crypticorn/trade/client/__init__.py +11 -1
- crypticorn/trade/client/api/__init__.py +0 -1
- crypticorn/trade/client/api/admin_api.py +1184 -55
- crypticorn/trade/client/api/api_keys_api.py +1678 -162
- crypticorn/trade/client/api/bots_api.py +7563 -187
- crypticorn/trade/client/api/exchanges_api.py +565 -19
- crypticorn/trade/client/api/notifications_api.py +1290 -116
- crypticorn/trade/client/api/orders_api.py +393 -55
- crypticorn/trade/client/api/status_api.py +397 -13
- crypticorn/trade/client/api/strategies_api.py +1133 -77
- crypticorn/trade/client/api/trading_actions_api.py +786 -65
- crypticorn/trade/client/models/__init__.py +11 -0
- crypticorn/trade/client/models/actions_count.py +88 -0
- crypticorn/trade/client/models/api_error_identifier.py +8 -7
- crypticorn/trade/client/models/bot.py +7 -18
- crypticorn/trade/client/models/bot_create.py +17 -1
- crypticorn/trade/client/models/bot_update.py +17 -1
- crypticorn/trade/client/models/exchange.py +6 -1
- crypticorn/trade/client/models/exchange_key.py +1 -1
- crypticorn/trade/client/models/exchange_key_balance.py +111 -0
- crypticorn/trade/client/models/exchange_key_create.py +17 -1
- crypticorn/trade/client/models/exchange_key_update.py +17 -1
- crypticorn/trade/client/models/execution_ids.py +1 -1
- crypticorn/trade/client/models/futures_balance.py +27 -25
- crypticorn/trade/client/models/futures_trading_action.py +6 -28
- crypticorn/trade/client/models/futures_trading_action_create.py +10 -13
- crypticorn/trade/client/models/notification.py +17 -1
- crypticorn/trade/client/models/notification_create.py +18 -2
- crypticorn/trade/client/models/notification_update.py +17 -1
- crypticorn/trade/client/models/order.py +2 -14
- crypticorn/trade/client/models/orders_count.py +88 -0
- crypticorn/trade/client/models/paginated_response_futures_trading_action.py +134 -0
- crypticorn/trade/client/models/paginated_response_order.py +134 -0
- crypticorn/trade/client/models/pn_l.py +95 -0
- crypticorn/trade/client/models/post_futures_action.py +1 -1
- crypticorn/trade/client/models/spot_balance.py +109 -0
- crypticorn/trade/client/models/spot_trading_action_create.py +4 -1
- crypticorn/trade/client/models/strategy.py +22 -4
- crypticorn/trade/client/models/strategy_create.py +23 -5
- crypticorn/trade/client/models/strategy_exchange_info.py +16 -4
- crypticorn/trade/client/models/strategy_update.py +19 -3
- crypticorn/trade/client/models/tpsl.py +4 -27
- crypticorn/trade/client/models/tpsl_create.py +6 -19
- crypticorn/trade/client/rest.py +23 -4
- crypticorn/trade/main.py +15 -12
- {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/METADATA +65 -20
- {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/RECORD +167 -132
- crypticorn/trade/client/api/futures_trading_panel_api.py +0 -1285
- {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/WHEEL +0 -0
- {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.15.0.dist-info → crypticorn-2.17.0.dist-info}/top_level.txt +0 -0
@@ -16,15 +16,30 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
17
|
from typing_extensions import Annotated
|
18
18
|
|
19
|
-
from pydantic import Field, StrictFloat, StrictInt, StrictStr, field_validator
|
20
|
-
from typing import Any, Dict, List, Optional, Union
|
21
|
-
from typing_extensions import Annotated
|
22
19
|
from crypticorn.metrics.client.models.log_level import LogLevel
|
23
20
|
|
24
21
|
from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
|
25
22
|
from crypticorn.metrics.client.api_response import ApiResponse
|
26
23
|
from crypticorn.metrics.client.rest import RESTResponseType
|
27
24
|
|
25
|
+
# Import async_to_sync for sync methods
|
26
|
+
try:
|
27
|
+
from asgiref.sync import async_to_sync
|
28
|
+
|
29
|
+
_HAS_ASGIREF = True
|
30
|
+
except ImportError:
|
31
|
+
_HAS_ASGIREF = False
|
32
|
+
|
33
|
+
def async_to_sync(async_func):
|
34
|
+
"""Fallback decorator that raises an error if asgiref is not available."""
|
35
|
+
|
36
|
+
def wrapper(*args, **kwargs):
|
37
|
+
raise ImportError(
|
38
|
+
"asgiref is required for sync methods. Install with: pip install asgiref"
|
39
|
+
)
|
40
|
+
|
41
|
+
return wrapper
|
42
|
+
|
28
43
|
|
29
44
|
class AdminApi:
|
30
45
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
@@ -33,13 +48,117 @@ class AdminApi:
|
|
33
48
|
Do not edit the class manually.
|
34
49
|
"""
|
35
50
|
|
36
|
-
def __init__(self, api_client=None) -> None:
|
51
|
+
def __init__(self, api_client=None, is_sync: bool = False) -> None:
|
37
52
|
if api_client is None:
|
38
53
|
api_client = ApiClient.get_default()
|
39
54
|
self.api_client = api_client
|
55
|
+
self.is_sync = is_sync
|
56
|
+
|
57
|
+
@validate_call
|
58
|
+
def get_container_limits(
|
59
|
+
self,
|
60
|
+
_request_timeout: Union[
|
61
|
+
None,
|
62
|
+
Annotated[StrictFloat, Field(gt=0)],
|
63
|
+
Tuple[
|
64
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
65
|
+
],
|
66
|
+
] = None,
|
67
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
68
|
+
_content_type: Optional[StrictStr] = None,
|
69
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
70
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
71
|
+
) -> Dict[str, object]:
|
72
|
+
"""Get Container Limits"""
|
73
|
+
if self.is_sync:
|
74
|
+
return self._get_container_limits_sync(
|
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_container_limits_async(
|
84
|
+
_request_timeout=_request_timeout,
|
85
|
+
_request_auth=_request_auth,
|
86
|
+
_content_type=_content_type,
|
87
|
+
_headers=_headers,
|
88
|
+
_host_index=_host_index,
|
89
|
+
)
|
90
|
+
|
91
|
+
@validate_call
|
92
|
+
def get_container_limits_with_http_info(
|
93
|
+
self,
|
94
|
+
_request_timeout: Union[
|
95
|
+
None,
|
96
|
+
Annotated[StrictFloat, Field(gt=0)],
|
97
|
+
Tuple[
|
98
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
99
|
+
],
|
100
|
+
] = None,
|
101
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
102
|
+
_content_type: Optional[StrictStr] = None,
|
103
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
104
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
105
|
+
) -> ApiResponse[Dict[str, object]]:
|
106
|
+
"""Get Container Limits with HTTP info"""
|
107
|
+
if self.is_sync:
|
108
|
+
return self._get_container_limits_sync_with_http_info(
|
109
|
+
_request_timeout=_request_timeout,
|
110
|
+
_request_auth=_request_auth,
|
111
|
+
_content_type=_content_type,
|
112
|
+
_headers=_headers,
|
113
|
+
_host_index=_host_index,
|
114
|
+
)
|
115
|
+
|
116
|
+
else:
|
117
|
+
return self._get_container_limits_async_with_http_info(
|
118
|
+
_request_timeout=_request_timeout,
|
119
|
+
_request_auth=_request_auth,
|
120
|
+
_content_type=_content_type,
|
121
|
+
_headers=_headers,
|
122
|
+
_host_index=_host_index,
|
123
|
+
)
|
124
|
+
|
125
|
+
@validate_call
|
126
|
+
def get_container_limits_without_preload_content(
|
127
|
+
self,
|
128
|
+
_request_timeout: Union[
|
129
|
+
None,
|
130
|
+
Annotated[StrictFloat, Field(gt=0)],
|
131
|
+
Tuple[
|
132
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
133
|
+
],
|
134
|
+
] = None,
|
135
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
136
|
+
_content_type: Optional[StrictStr] = None,
|
137
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
138
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
139
|
+
) -> RESTResponseType:
|
140
|
+
"""Get Container Limits without preloading content"""
|
141
|
+
if self.is_sync:
|
142
|
+
return self._get_container_limits_sync_without_preload_content(
|
143
|
+
_request_timeout=_request_timeout,
|
144
|
+
_request_auth=_request_auth,
|
145
|
+
_content_type=_content_type,
|
146
|
+
_headers=_headers,
|
147
|
+
_host_index=_host_index,
|
148
|
+
)
|
149
|
+
|
150
|
+
else:
|
151
|
+
return self._get_container_limits_async_without_preload_content(
|
152
|
+
_request_timeout=_request_timeout,
|
153
|
+
_request_auth=_request_auth,
|
154
|
+
_content_type=_content_type,
|
155
|
+
_headers=_headers,
|
156
|
+
_host_index=_host_index,
|
157
|
+
)
|
40
158
|
|
159
|
+
# Private async implementation methods
|
41
160
|
@validate_call
|
42
|
-
async def
|
161
|
+
async def _get_container_limits_async(
|
43
162
|
self,
|
44
163
|
_request_timeout: Union[
|
45
164
|
None,
|
@@ -99,7 +218,7 @@ class AdminApi:
|
|
99
218
|
).data
|
100
219
|
|
101
220
|
@validate_call
|
102
|
-
async def
|
221
|
+
async def _get_container_limits_async_with_http_info(
|
103
222
|
self,
|
104
223
|
_request_timeout: Union[
|
105
224
|
None,
|
@@ -154,12 +273,11 @@ class AdminApi:
|
|
154
273
|
)
|
155
274
|
await response_data.read()
|
156
275
|
return self.api_client.response_deserialize(
|
157
|
-
response_data=response_data,
|
158
|
-
response_types_map=_response_types_map,
|
276
|
+
response_data=response_data, response_types_map=_response_types_map
|
159
277
|
)
|
160
278
|
|
161
279
|
@validate_call
|
162
|
-
async def
|
280
|
+
async def _get_container_limits_async_without_preload_content(
|
163
281
|
self,
|
164
282
|
_request_timeout: Union[
|
165
283
|
None,
|
@@ -212,7 +330,80 @@ class AdminApi:
|
|
212
330
|
response_data = await self.api_client.call_api(
|
213
331
|
*_param, _request_timeout=_request_timeout
|
214
332
|
)
|
215
|
-
return response_data
|
333
|
+
return response_data
|
334
|
+
|
335
|
+
# Private sync implementation methods
|
336
|
+
@validate_call
|
337
|
+
def _get_container_limits_sync(
|
338
|
+
self,
|
339
|
+
_request_timeout: Union[
|
340
|
+
None,
|
341
|
+
Annotated[StrictFloat, Field(gt=0)],
|
342
|
+
Tuple[
|
343
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
344
|
+
],
|
345
|
+
] = None,
|
346
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
347
|
+
_content_type: Optional[StrictStr] = None,
|
348
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
349
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
350
|
+
) -> Dict[str, object]:
|
351
|
+
"""Synchronous version of get_container_limits"""
|
352
|
+
return async_to_sync(self._get_container_limits_async)(
|
353
|
+
_request_timeout=_request_timeout,
|
354
|
+
_request_auth=_request_auth,
|
355
|
+
_content_type=_content_type,
|
356
|
+
_headers=_headers,
|
357
|
+
_host_index=_host_index,
|
358
|
+
)
|
359
|
+
|
360
|
+
@validate_call
|
361
|
+
def _get_container_limits_sync_with_http_info(
|
362
|
+
self,
|
363
|
+
_request_timeout: Union[
|
364
|
+
None,
|
365
|
+
Annotated[StrictFloat, Field(gt=0)],
|
366
|
+
Tuple[
|
367
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
368
|
+
],
|
369
|
+
] = None,
|
370
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
371
|
+
_content_type: Optional[StrictStr] = None,
|
372
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
373
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
374
|
+
) -> ApiResponse[Dict[str, object]]:
|
375
|
+
"""Synchronous version of get_container_limits_with_http_info"""
|
376
|
+
return async_to_sync(self._get_container_limits_async_with_http_info)(
|
377
|
+
_request_timeout=_request_timeout,
|
378
|
+
_request_auth=_request_auth,
|
379
|
+
_content_type=_content_type,
|
380
|
+
_headers=_headers,
|
381
|
+
_host_index=_host_index,
|
382
|
+
)
|
383
|
+
|
384
|
+
@validate_call
|
385
|
+
def _get_container_limits_sync_without_preload_content(
|
386
|
+
self,
|
387
|
+
_request_timeout: Union[
|
388
|
+
None,
|
389
|
+
Annotated[StrictFloat, Field(gt=0)],
|
390
|
+
Tuple[
|
391
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
392
|
+
],
|
393
|
+
] = None,
|
394
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
395
|
+
_content_type: Optional[StrictStr] = None,
|
396
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
397
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
398
|
+
) -> RESTResponseType:
|
399
|
+
"""Synchronous version of get_container_limits_without_preload_content"""
|
400
|
+
return async_to_sync(self._get_container_limits_async_without_preload_content)(
|
401
|
+
_request_timeout=_request_timeout,
|
402
|
+
_request_auth=_request_auth,
|
403
|
+
_content_type=_content_type,
|
404
|
+
_headers=_headers,
|
405
|
+
_host_index=_host_index,
|
406
|
+
)
|
216
407
|
|
217
408
|
def _get_container_limits_serialize(
|
218
409
|
self,
|
@@ -266,7 +457,134 @@ class AdminApi:
|
|
266
457
|
)
|
267
458
|
|
268
459
|
@validate_call
|
269
|
-
|
460
|
+
def get_dependencies(
|
461
|
+
self,
|
462
|
+
include: Annotated[
|
463
|
+
Optional[List[StrictStr]],
|
464
|
+
Field(
|
465
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
466
|
+
),
|
467
|
+
] = None,
|
468
|
+
_request_timeout: Union[
|
469
|
+
None,
|
470
|
+
Annotated[StrictFloat, Field(gt=0)],
|
471
|
+
Tuple[
|
472
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
473
|
+
],
|
474
|
+
] = None,
|
475
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
476
|
+
_content_type: Optional[StrictStr] = None,
|
477
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
478
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
479
|
+
) -> Dict[str, str]:
|
480
|
+
"""List Installed Packages"""
|
481
|
+
if self.is_sync:
|
482
|
+
return self._get_dependencies_sync(
|
483
|
+
include=include,
|
484
|
+
_request_timeout=_request_timeout,
|
485
|
+
_request_auth=_request_auth,
|
486
|
+
_content_type=_content_type,
|
487
|
+
_headers=_headers,
|
488
|
+
_host_index=_host_index,
|
489
|
+
)
|
490
|
+
|
491
|
+
else:
|
492
|
+
return self._get_dependencies_async(
|
493
|
+
include=include,
|
494
|
+
_request_timeout=_request_timeout,
|
495
|
+
_request_auth=_request_auth,
|
496
|
+
_content_type=_content_type,
|
497
|
+
_headers=_headers,
|
498
|
+
_host_index=_host_index,
|
499
|
+
)
|
500
|
+
|
501
|
+
@validate_call
|
502
|
+
def get_dependencies_with_http_info(
|
503
|
+
self,
|
504
|
+
include: Annotated[
|
505
|
+
Optional[List[StrictStr]],
|
506
|
+
Field(
|
507
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
508
|
+
),
|
509
|
+
] = None,
|
510
|
+
_request_timeout: Union[
|
511
|
+
None,
|
512
|
+
Annotated[StrictFloat, Field(gt=0)],
|
513
|
+
Tuple[
|
514
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
515
|
+
],
|
516
|
+
] = None,
|
517
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
518
|
+
_content_type: Optional[StrictStr] = None,
|
519
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
520
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
521
|
+
) -> ApiResponse[Dict[str, str]]:
|
522
|
+
"""List Installed Packages with HTTP info"""
|
523
|
+
if self.is_sync:
|
524
|
+
return self._get_dependencies_sync_with_http_info(
|
525
|
+
include=include,
|
526
|
+
_request_timeout=_request_timeout,
|
527
|
+
_request_auth=_request_auth,
|
528
|
+
_content_type=_content_type,
|
529
|
+
_headers=_headers,
|
530
|
+
_host_index=_host_index,
|
531
|
+
)
|
532
|
+
|
533
|
+
else:
|
534
|
+
return self._get_dependencies_async_with_http_info(
|
535
|
+
include=include,
|
536
|
+
_request_timeout=_request_timeout,
|
537
|
+
_request_auth=_request_auth,
|
538
|
+
_content_type=_content_type,
|
539
|
+
_headers=_headers,
|
540
|
+
_host_index=_host_index,
|
541
|
+
)
|
542
|
+
|
543
|
+
@validate_call
|
544
|
+
def get_dependencies_without_preload_content(
|
545
|
+
self,
|
546
|
+
include: Annotated[
|
547
|
+
Optional[List[StrictStr]],
|
548
|
+
Field(
|
549
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
550
|
+
),
|
551
|
+
] = None,
|
552
|
+
_request_timeout: Union[
|
553
|
+
None,
|
554
|
+
Annotated[StrictFloat, Field(gt=0)],
|
555
|
+
Tuple[
|
556
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
557
|
+
],
|
558
|
+
] = None,
|
559
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
560
|
+
_content_type: Optional[StrictStr] = None,
|
561
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
562
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
563
|
+
) -> RESTResponseType:
|
564
|
+
"""List Installed Packages without preloading content"""
|
565
|
+
if self.is_sync:
|
566
|
+
return self._get_dependencies_sync_without_preload_content(
|
567
|
+
include=include,
|
568
|
+
_request_timeout=_request_timeout,
|
569
|
+
_request_auth=_request_auth,
|
570
|
+
_content_type=_content_type,
|
571
|
+
_headers=_headers,
|
572
|
+
_host_index=_host_index,
|
573
|
+
)
|
574
|
+
|
575
|
+
else:
|
576
|
+
return self._get_dependencies_async_without_preload_content(
|
577
|
+
include=include,
|
578
|
+
_request_timeout=_request_timeout,
|
579
|
+
_request_auth=_request_auth,
|
580
|
+
_content_type=_content_type,
|
581
|
+
_headers=_headers,
|
582
|
+
_host_index=_host_index,
|
583
|
+
)
|
584
|
+
|
585
|
+
# Private async implementation methods
|
586
|
+
@validate_call
|
587
|
+
async def _get_dependencies_async(
|
270
588
|
self,
|
271
589
|
include: Annotated[
|
272
590
|
Optional[List[StrictStr]],
|
@@ -335,7 +653,7 @@ class AdminApi:
|
|
335
653
|
).data
|
336
654
|
|
337
655
|
@validate_call
|
338
|
-
async def
|
656
|
+
async def _get_dependencies_async_with_http_info(
|
339
657
|
self,
|
340
658
|
include: Annotated[
|
341
659
|
Optional[List[StrictStr]],
|
@@ -399,12 +717,11 @@ class AdminApi:
|
|
399
717
|
)
|
400
718
|
await response_data.read()
|
401
719
|
return self.api_client.response_deserialize(
|
402
|
-
response_data=response_data,
|
403
|
-
response_types_map=_response_types_map,
|
720
|
+
response_data=response_data, response_types_map=_response_types_map
|
404
721
|
)
|
405
722
|
|
406
723
|
@validate_call
|
407
|
-
async def
|
724
|
+
async def _get_dependencies_async_without_preload_content(
|
408
725
|
self,
|
409
726
|
include: Annotated[
|
410
727
|
Optional[List[StrictStr]],
|
@@ -466,7 +783,101 @@ class AdminApi:
|
|
466
783
|
response_data = await self.api_client.call_api(
|
467
784
|
*_param, _request_timeout=_request_timeout
|
468
785
|
)
|
469
|
-
return response_data
|
786
|
+
return response_data
|
787
|
+
|
788
|
+
# Private sync implementation methods
|
789
|
+
@validate_call
|
790
|
+
def _get_dependencies_sync(
|
791
|
+
self,
|
792
|
+
include: Annotated[
|
793
|
+
Optional[List[StrictStr]],
|
794
|
+
Field(
|
795
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
796
|
+
),
|
797
|
+
] = None,
|
798
|
+
_request_timeout: Union[
|
799
|
+
None,
|
800
|
+
Annotated[StrictFloat, Field(gt=0)],
|
801
|
+
Tuple[
|
802
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
803
|
+
],
|
804
|
+
] = None,
|
805
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
806
|
+
_content_type: Optional[StrictStr] = None,
|
807
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
808
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
809
|
+
) -> Dict[str, str]:
|
810
|
+
"""Synchronous version of get_dependencies"""
|
811
|
+
return async_to_sync(self._get_dependencies_async)(
|
812
|
+
include=include,
|
813
|
+
_request_timeout=_request_timeout,
|
814
|
+
_request_auth=_request_auth,
|
815
|
+
_content_type=_content_type,
|
816
|
+
_headers=_headers,
|
817
|
+
_host_index=_host_index,
|
818
|
+
)
|
819
|
+
|
820
|
+
@validate_call
|
821
|
+
def _get_dependencies_sync_with_http_info(
|
822
|
+
self,
|
823
|
+
include: Annotated[
|
824
|
+
Optional[List[StrictStr]],
|
825
|
+
Field(
|
826
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
827
|
+
),
|
828
|
+
] = None,
|
829
|
+
_request_timeout: Union[
|
830
|
+
None,
|
831
|
+
Annotated[StrictFloat, Field(gt=0)],
|
832
|
+
Tuple[
|
833
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
834
|
+
],
|
835
|
+
] = None,
|
836
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
837
|
+
_content_type: Optional[StrictStr] = None,
|
838
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
839
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
840
|
+
) -> ApiResponse[Dict[str, str]]:
|
841
|
+
"""Synchronous version of get_dependencies_with_http_info"""
|
842
|
+
return async_to_sync(self._get_dependencies_async_with_http_info)(
|
843
|
+
include=include,
|
844
|
+
_request_timeout=_request_timeout,
|
845
|
+
_request_auth=_request_auth,
|
846
|
+
_content_type=_content_type,
|
847
|
+
_headers=_headers,
|
848
|
+
_host_index=_host_index,
|
849
|
+
)
|
850
|
+
|
851
|
+
@validate_call
|
852
|
+
def _get_dependencies_sync_without_preload_content(
|
853
|
+
self,
|
854
|
+
include: Annotated[
|
855
|
+
Optional[List[StrictStr]],
|
856
|
+
Field(
|
857
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
858
|
+
),
|
859
|
+
] = None,
|
860
|
+
_request_timeout: Union[
|
861
|
+
None,
|
862
|
+
Annotated[StrictFloat, Field(gt=0)],
|
863
|
+
Tuple[
|
864
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
865
|
+
],
|
866
|
+
] = None,
|
867
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
868
|
+
_content_type: Optional[StrictStr] = None,
|
869
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
870
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
871
|
+
) -> RESTResponseType:
|
872
|
+
"""Synchronous version of get_dependencies_without_preload_content"""
|
873
|
+
return async_to_sync(self._get_dependencies_async_without_preload_content)(
|
874
|
+
include=include,
|
875
|
+
_request_timeout=_request_timeout,
|
876
|
+
_request_auth=_request_auth,
|
877
|
+
_content_type=_content_type,
|
878
|
+
_headers=_headers,
|
879
|
+
_host_index=_host_index,
|
880
|
+
)
|
470
881
|
|
471
882
|
def _get_dependencies_serialize(
|
472
883
|
self,
|
@@ -527,7 +938,110 @@ class AdminApi:
|
|
527
938
|
)
|
528
939
|
|
529
940
|
@validate_call
|
530
|
-
|
941
|
+
def get_log_level(
|
942
|
+
self,
|
943
|
+
_request_timeout: Union[
|
944
|
+
None,
|
945
|
+
Annotated[StrictFloat, Field(gt=0)],
|
946
|
+
Tuple[
|
947
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
948
|
+
],
|
949
|
+
] = None,
|
950
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
951
|
+
_content_type: Optional[StrictStr] = None,
|
952
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
953
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
954
|
+
) -> LogLevel:
|
955
|
+
"""Get Logging Level"""
|
956
|
+
if self.is_sync:
|
957
|
+
return self._get_log_level_sync(
|
958
|
+
_request_timeout=_request_timeout,
|
959
|
+
_request_auth=_request_auth,
|
960
|
+
_content_type=_content_type,
|
961
|
+
_headers=_headers,
|
962
|
+
_host_index=_host_index,
|
963
|
+
)
|
964
|
+
|
965
|
+
else:
|
966
|
+
return self._get_log_level_async(
|
967
|
+
_request_timeout=_request_timeout,
|
968
|
+
_request_auth=_request_auth,
|
969
|
+
_content_type=_content_type,
|
970
|
+
_headers=_headers,
|
971
|
+
_host_index=_host_index,
|
972
|
+
)
|
973
|
+
|
974
|
+
@validate_call
|
975
|
+
def get_log_level_with_http_info(
|
976
|
+
self,
|
977
|
+
_request_timeout: Union[
|
978
|
+
None,
|
979
|
+
Annotated[StrictFloat, Field(gt=0)],
|
980
|
+
Tuple[
|
981
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
982
|
+
],
|
983
|
+
] = None,
|
984
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
985
|
+
_content_type: Optional[StrictStr] = None,
|
986
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
987
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
988
|
+
) -> ApiResponse[LogLevel]:
|
989
|
+
"""Get Logging Level with HTTP info"""
|
990
|
+
if self.is_sync:
|
991
|
+
return self._get_log_level_sync_with_http_info(
|
992
|
+
_request_timeout=_request_timeout,
|
993
|
+
_request_auth=_request_auth,
|
994
|
+
_content_type=_content_type,
|
995
|
+
_headers=_headers,
|
996
|
+
_host_index=_host_index,
|
997
|
+
)
|
998
|
+
|
999
|
+
else:
|
1000
|
+
return self._get_log_level_async_with_http_info(
|
1001
|
+
_request_timeout=_request_timeout,
|
1002
|
+
_request_auth=_request_auth,
|
1003
|
+
_content_type=_content_type,
|
1004
|
+
_headers=_headers,
|
1005
|
+
_host_index=_host_index,
|
1006
|
+
)
|
1007
|
+
|
1008
|
+
@validate_call
|
1009
|
+
def get_log_level_without_preload_content(
|
1010
|
+
self,
|
1011
|
+
_request_timeout: Union[
|
1012
|
+
None,
|
1013
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1014
|
+
Tuple[
|
1015
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1016
|
+
],
|
1017
|
+
] = None,
|
1018
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1019
|
+
_content_type: Optional[StrictStr] = None,
|
1020
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1021
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1022
|
+
) -> RESTResponseType:
|
1023
|
+
"""Get Logging Level without preloading content"""
|
1024
|
+
if self.is_sync:
|
1025
|
+
return self._get_log_level_sync_without_preload_content(
|
1026
|
+
_request_timeout=_request_timeout,
|
1027
|
+
_request_auth=_request_auth,
|
1028
|
+
_content_type=_content_type,
|
1029
|
+
_headers=_headers,
|
1030
|
+
_host_index=_host_index,
|
1031
|
+
)
|
1032
|
+
|
1033
|
+
else:
|
1034
|
+
return self._get_log_level_async_without_preload_content(
|
1035
|
+
_request_timeout=_request_timeout,
|
1036
|
+
_request_auth=_request_auth,
|
1037
|
+
_content_type=_content_type,
|
1038
|
+
_headers=_headers,
|
1039
|
+
_host_index=_host_index,
|
1040
|
+
)
|
1041
|
+
|
1042
|
+
# Private async implementation methods
|
1043
|
+
@validate_call
|
1044
|
+
async def _get_log_level_async(
|
531
1045
|
self,
|
532
1046
|
_request_timeout: Union[
|
533
1047
|
None,
|
@@ -588,7 +1102,7 @@ class AdminApi:
|
|
588
1102
|
).data
|
589
1103
|
|
590
1104
|
@validate_call
|
591
|
-
async def
|
1105
|
+
async def _get_log_level_async_with_http_info(
|
592
1106
|
self,
|
593
1107
|
_request_timeout: Union[
|
594
1108
|
None,
|
@@ -644,12 +1158,11 @@ class AdminApi:
|
|
644
1158
|
)
|
645
1159
|
await response_data.read()
|
646
1160
|
return self.api_client.response_deserialize(
|
647
|
-
response_data=response_data,
|
648
|
-
response_types_map=_response_types_map,
|
1161
|
+
response_data=response_data, response_types_map=_response_types_map
|
649
1162
|
)
|
650
1163
|
|
651
1164
|
@validate_call
|
652
|
-
async def
|
1165
|
+
async def _get_log_level_async_without_preload_content(
|
653
1166
|
self,
|
654
1167
|
_request_timeout: Union[
|
655
1168
|
None,
|
@@ -703,7 +1216,80 @@ class AdminApi:
|
|
703
1216
|
response_data = await self.api_client.call_api(
|
704
1217
|
*_param, _request_timeout=_request_timeout
|
705
1218
|
)
|
706
|
-
return response_data
|
1219
|
+
return response_data
|
1220
|
+
|
1221
|
+
# Private sync implementation methods
|
1222
|
+
@validate_call
|
1223
|
+
def _get_log_level_sync(
|
1224
|
+
self,
|
1225
|
+
_request_timeout: Union[
|
1226
|
+
None,
|
1227
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1228
|
+
Tuple[
|
1229
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1230
|
+
],
|
1231
|
+
] = None,
|
1232
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1233
|
+
_content_type: Optional[StrictStr] = None,
|
1234
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1235
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1236
|
+
) -> LogLevel:
|
1237
|
+
"""Synchronous version of get_log_level"""
|
1238
|
+
return async_to_sync(self._get_log_level_async)(
|
1239
|
+
_request_timeout=_request_timeout,
|
1240
|
+
_request_auth=_request_auth,
|
1241
|
+
_content_type=_content_type,
|
1242
|
+
_headers=_headers,
|
1243
|
+
_host_index=_host_index,
|
1244
|
+
)
|
1245
|
+
|
1246
|
+
@validate_call
|
1247
|
+
def _get_log_level_sync_with_http_info(
|
1248
|
+
self,
|
1249
|
+
_request_timeout: Union[
|
1250
|
+
None,
|
1251
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1252
|
+
Tuple[
|
1253
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1254
|
+
],
|
1255
|
+
] = None,
|
1256
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1257
|
+
_content_type: Optional[StrictStr] = None,
|
1258
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1259
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1260
|
+
) -> ApiResponse[LogLevel]:
|
1261
|
+
"""Synchronous version of get_log_level_with_http_info"""
|
1262
|
+
return async_to_sync(self._get_log_level_async_with_http_info)(
|
1263
|
+
_request_timeout=_request_timeout,
|
1264
|
+
_request_auth=_request_auth,
|
1265
|
+
_content_type=_content_type,
|
1266
|
+
_headers=_headers,
|
1267
|
+
_host_index=_host_index,
|
1268
|
+
)
|
1269
|
+
|
1270
|
+
@validate_call
|
1271
|
+
def _get_log_level_sync_without_preload_content(
|
1272
|
+
self,
|
1273
|
+
_request_timeout: Union[
|
1274
|
+
None,
|
1275
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1276
|
+
Tuple[
|
1277
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1278
|
+
],
|
1279
|
+
] = None,
|
1280
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1281
|
+
_content_type: Optional[StrictStr] = None,
|
1282
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1283
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1284
|
+
) -> RESTResponseType:
|
1285
|
+
"""Synchronous version of get_log_level_without_preload_content"""
|
1286
|
+
return async_to_sync(self._get_log_level_async_without_preload_content)(
|
1287
|
+
_request_timeout=_request_timeout,
|
1288
|
+
_request_auth=_request_auth,
|
1289
|
+
_content_type=_content_type,
|
1290
|
+
_headers=_headers,
|
1291
|
+
_host_index=_host_index,
|
1292
|
+
)
|
707
1293
|
|
708
1294
|
def _get_log_level_serialize(
|
709
1295
|
self,
|
@@ -757,7 +1343,110 @@ class AdminApi:
|
|
757
1343
|
)
|
758
1344
|
|
759
1345
|
@validate_call
|
760
|
-
|
1346
|
+
def get_memory_usage(
|
1347
|
+
self,
|
1348
|
+
_request_timeout: Union[
|
1349
|
+
None,
|
1350
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1351
|
+
Tuple[
|
1352
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1353
|
+
],
|
1354
|
+
] = None,
|
1355
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1356
|
+
_content_type: Optional[StrictStr] = None,
|
1357
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1358
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1359
|
+
) -> float:
|
1360
|
+
"""Get Memory Usage"""
|
1361
|
+
if self.is_sync:
|
1362
|
+
return self._get_memory_usage_sync(
|
1363
|
+
_request_timeout=_request_timeout,
|
1364
|
+
_request_auth=_request_auth,
|
1365
|
+
_content_type=_content_type,
|
1366
|
+
_headers=_headers,
|
1367
|
+
_host_index=_host_index,
|
1368
|
+
)
|
1369
|
+
|
1370
|
+
else:
|
1371
|
+
return self._get_memory_usage_async(
|
1372
|
+
_request_timeout=_request_timeout,
|
1373
|
+
_request_auth=_request_auth,
|
1374
|
+
_content_type=_content_type,
|
1375
|
+
_headers=_headers,
|
1376
|
+
_host_index=_host_index,
|
1377
|
+
)
|
1378
|
+
|
1379
|
+
@validate_call
|
1380
|
+
def get_memory_usage_with_http_info(
|
1381
|
+
self,
|
1382
|
+
_request_timeout: Union[
|
1383
|
+
None,
|
1384
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1385
|
+
Tuple[
|
1386
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1387
|
+
],
|
1388
|
+
] = None,
|
1389
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1390
|
+
_content_type: Optional[StrictStr] = None,
|
1391
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1392
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1393
|
+
) -> ApiResponse[float]:
|
1394
|
+
"""Get Memory Usage with HTTP info"""
|
1395
|
+
if self.is_sync:
|
1396
|
+
return self._get_memory_usage_sync_with_http_info(
|
1397
|
+
_request_timeout=_request_timeout,
|
1398
|
+
_request_auth=_request_auth,
|
1399
|
+
_content_type=_content_type,
|
1400
|
+
_headers=_headers,
|
1401
|
+
_host_index=_host_index,
|
1402
|
+
)
|
1403
|
+
|
1404
|
+
else:
|
1405
|
+
return self._get_memory_usage_async_with_http_info(
|
1406
|
+
_request_timeout=_request_timeout,
|
1407
|
+
_request_auth=_request_auth,
|
1408
|
+
_content_type=_content_type,
|
1409
|
+
_headers=_headers,
|
1410
|
+
_host_index=_host_index,
|
1411
|
+
)
|
1412
|
+
|
1413
|
+
@validate_call
|
1414
|
+
def get_memory_usage_without_preload_content(
|
1415
|
+
self,
|
1416
|
+
_request_timeout: Union[
|
1417
|
+
None,
|
1418
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1419
|
+
Tuple[
|
1420
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1421
|
+
],
|
1422
|
+
] = None,
|
1423
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1424
|
+
_content_type: Optional[StrictStr] = None,
|
1425
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1426
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1427
|
+
) -> RESTResponseType:
|
1428
|
+
"""Get Memory Usage without preloading content"""
|
1429
|
+
if self.is_sync:
|
1430
|
+
return self._get_memory_usage_sync_without_preload_content(
|
1431
|
+
_request_timeout=_request_timeout,
|
1432
|
+
_request_auth=_request_auth,
|
1433
|
+
_content_type=_content_type,
|
1434
|
+
_headers=_headers,
|
1435
|
+
_host_index=_host_index,
|
1436
|
+
)
|
1437
|
+
|
1438
|
+
else:
|
1439
|
+
return self._get_memory_usage_async_without_preload_content(
|
1440
|
+
_request_timeout=_request_timeout,
|
1441
|
+
_request_auth=_request_auth,
|
1442
|
+
_content_type=_content_type,
|
1443
|
+
_headers=_headers,
|
1444
|
+
_host_index=_host_index,
|
1445
|
+
)
|
1446
|
+
|
1447
|
+
# Private async implementation methods
|
1448
|
+
@validate_call
|
1449
|
+
async def _get_memory_usage_async(
|
761
1450
|
self,
|
762
1451
|
_request_timeout: Union[
|
763
1452
|
None,
|
@@ -817,7 +1506,7 @@ class AdminApi:
|
|
817
1506
|
).data
|
818
1507
|
|
819
1508
|
@validate_call
|
820
|
-
async def
|
1509
|
+
async def _get_memory_usage_async_with_http_info(
|
821
1510
|
self,
|
822
1511
|
_request_timeout: Union[
|
823
1512
|
None,
|
@@ -872,12 +1561,11 @@ class AdminApi:
|
|
872
1561
|
)
|
873
1562
|
await response_data.read()
|
874
1563
|
return self.api_client.response_deserialize(
|
875
|
-
response_data=response_data,
|
876
|
-
response_types_map=_response_types_map,
|
1564
|
+
response_data=response_data, response_types_map=_response_types_map
|
877
1565
|
)
|
878
1566
|
|
879
1567
|
@validate_call
|
880
|
-
async def
|
1568
|
+
async def _get_memory_usage_async_without_preload_content(
|
881
1569
|
self,
|
882
1570
|
_request_timeout: Union[
|
883
1571
|
None,
|
@@ -924,14 +1612,87 @@ class AdminApi:
|
|
924
1612
|
_host_index=_host_index,
|
925
1613
|
)
|
926
1614
|
|
927
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
928
|
-
"200": "float",
|
929
|
-
}
|
930
|
-
response_data = await self.api_client.call_api(
|
931
|
-
*_param, _request_timeout=_request_timeout
|
932
|
-
)
|
933
|
-
return response_data
|
934
|
-
|
1615
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1616
|
+
"200": "float",
|
1617
|
+
}
|
1618
|
+
response_data = await self.api_client.call_api(
|
1619
|
+
*_param, _request_timeout=_request_timeout
|
1620
|
+
)
|
1621
|
+
return response_data
|
1622
|
+
|
1623
|
+
# Private sync implementation methods
|
1624
|
+
@validate_call
|
1625
|
+
def _get_memory_usage_sync(
|
1626
|
+
self,
|
1627
|
+
_request_timeout: Union[
|
1628
|
+
None,
|
1629
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1630
|
+
Tuple[
|
1631
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1632
|
+
],
|
1633
|
+
] = None,
|
1634
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1635
|
+
_content_type: Optional[StrictStr] = None,
|
1636
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1637
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1638
|
+
) -> float:
|
1639
|
+
"""Synchronous version of get_memory_usage"""
|
1640
|
+
return async_to_sync(self._get_memory_usage_async)(
|
1641
|
+
_request_timeout=_request_timeout,
|
1642
|
+
_request_auth=_request_auth,
|
1643
|
+
_content_type=_content_type,
|
1644
|
+
_headers=_headers,
|
1645
|
+
_host_index=_host_index,
|
1646
|
+
)
|
1647
|
+
|
1648
|
+
@validate_call
|
1649
|
+
def _get_memory_usage_sync_with_http_info(
|
1650
|
+
self,
|
1651
|
+
_request_timeout: Union[
|
1652
|
+
None,
|
1653
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1654
|
+
Tuple[
|
1655
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1656
|
+
],
|
1657
|
+
] = None,
|
1658
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1659
|
+
_content_type: Optional[StrictStr] = None,
|
1660
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1661
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1662
|
+
) -> ApiResponse[float]:
|
1663
|
+
"""Synchronous version of get_memory_usage_with_http_info"""
|
1664
|
+
return async_to_sync(self._get_memory_usage_async_with_http_info)(
|
1665
|
+
_request_timeout=_request_timeout,
|
1666
|
+
_request_auth=_request_auth,
|
1667
|
+
_content_type=_content_type,
|
1668
|
+
_headers=_headers,
|
1669
|
+
_host_index=_host_index,
|
1670
|
+
)
|
1671
|
+
|
1672
|
+
@validate_call
|
1673
|
+
def _get_memory_usage_sync_without_preload_content(
|
1674
|
+
self,
|
1675
|
+
_request_timeout: Union[
|
1676
|
+
None,
|
1677
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1678
|
+
Tuple[
|
1679
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1680
|
+
],
|
1681
|
+
] = None,
|
1682
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1683
|
+
_content_type: Optional[StrictStr] = None,
|
1684
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1685
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1686
|
+
) -> RESTResponseType:
|
1687
|
+
"""Synchronous version of get_memory_usage_without_preload_content"""
|
1688
|
+
return async_to_sync(self._get_memory_usage_async_without_preload_content)(
|
1689
|
+
_request_timeout=_request_timeout,
|
1690
|
+
_request_auth=_request_auth,
|
1691
|
+
_content_type=_content_type,
|
1692
|
+
_headers=_headers,
|
1693
|
+
_host_index=_host_index,
|
1694
|
+
)
|
1695
|
+
|
935
1696
|
def _get_memory_usage_serialize(
|
936
1697
|
self,
|
937
1698
|
_request_auth,
|
@@ -984,7 +1745,110 @@ class AdminApi:
|
|
984
1745
|
)
|
985
1746
|
|
986
1747
|
@validate_call
|
987
|
-
|
1748
|
+
def get_threads(
|
1749
|
+
self,
|
1750
|
+
_request_timeout: Union[
|
1751
|
+
None,
|
1752
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1753
|
+
Tuple[
|
1754
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1755
|
+
],
|
1756
|
+
] = None,
|
1757
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1758
|
+
_content_type: Optional[StrictStr] = None,
|
1759
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1760
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1761
|
+
) -> Dict[str, object]:
|
1762
|
+
"""Get Threads"""
|
1763
|
+
if self.is_sync:
|
1764
|
+
return self._get_threads_sync(
|
1765
|
+
_request_timeout=_request_timeout,
|
1766
|
+
_request_auth=_request_auth,
|
1767
|
+
_content_type=_content_type,
|
1768
|
+
_headers=_headers,
|
1769
|
+
_host_index=_host_index,
|
1770
|
+
)
|
1771
|
+
|
1772
|
+
else:
|
1773
|
+
return self._get_threads_async(
|
1774
|
+
_request_timeout=_request_timeout,
|
1775
|
+
_request_auth=_request_auth,
|
1776
|
+
_content_type=_content_type,
|
1777
|
+
_headers=_headers,
|
1778
|
+
_host_index=_host_index,
|
1779
|
+
)
|
1780
|
+
|
1781
|
+
@validate_call
|
1782
|
+
def get_threads_with_http_info(
|
1783
|
+
self,
|
1784
|
+
_request_timeout: Union[
|
1785
|
+
None,
|
1786
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1787
|
+
Tuple[
|
1788
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1789
|
+
],
|
1790
|
+
] = None,
|
1791
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1792
|
+
_content_type: Optional[StrictStr] = None,
|
1793
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1794
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1795
|
+
) -> ApiResponse[Dict[str, object]]:
|
1796
|
+
"""Get Threads with HTTP info"""
|
1797
|
+
if self.is_sync:
|
1798
|
+
return self._get_threads_sync_with_http_info(
|
1799
|
+
_request_timeout=_request_timeout,
|
1800
|
+
_request_auth=_request_auth,
|
1801
|
+
_content_type=_content_type,
|
1802
|
+
_headers=_headers,
|
1803
|
+
_host_index=_host_index,
|
1804
|
+
)
|
1805
|
+
|
1806
|
+
else:
|
1807
|
+
return self._get_threads_async_with_http_info(
|
1808
|
+
_request_timeout=_request_timeout,
|
1809
|
+
_request_auth=_request_auth,
|
1810
|
+
_content_type=_content_type,
|
1811
|
+
_headers=_headers,
|
1812
|
+
_host_index=_host_index,
|
1813
|
+
)
|
1814
|
+
|
1815
|
+
@validate_call
|
1816
|
+
def get_threads_without_preload_content(
|
1817
|
+
self,
|
1818
|
+
_request_timeout: Union[
|
1819
|
+
None,
|
1820
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1821
|
+
Tuple[
|
1822
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1823
|
+
],
|
1824
|
+
] = None,
|
1825
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1826
|
+
_content_type: Optional[StrictStr] = None,
|
1827
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1828
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1829
|
+
) -> RESTResponseType:
|
1830
|
+
"""Get Threads without preloading content"""
|
1831
|
+
if self.is_sync:
|
1832
|
+
return self._get_threads_sync_without_preload_content(
|
1833
|
+
_request_timeout=_request_timeout,
|
1834
|
+
_request_auth=_request_auth,
|
1835
|
+
_content_type=_content_type,
|
1836
|
+
_headers=_headers,
|
1837
|
+
_host_index=_host_index,
|
1838
|
+
)
|
1839
|
+
|
1840
|
+
else:
|
1841
|
+
return self._get_threads_async_without_preload_content(
|
1842
|
+
_request_timeout=_request_timeout,
|
1843
|
+
_request_auth=_request_auth,
|
1844
|
+
_content_type=_content_type,
|
1845
|
+
_headers=_headers,
|
1846
|
+
_host_index=_host_index,
|
1847
|
+
)
|
1848
|
+
|
1849
|
+
# Private async implementation methods
|
1850
|
+
@validate_call
|
1851
|
+
async def _get_threads_async(
|
988
1852
|
self,
|
989
1853
|
_request_timeout: Union[
|
990
1854
|
None,
|
@@ -1044,7 +1908,7 @@ class AdminApi:
|
|
1044
1908
|
).data
|
1045
1909
|
|
1046
1910
|
@validate_call
|
1047
|
-
async def
|
1911
|
+
async def _get_threads_async_with_http_info(
|
1048
1912
|
self,
|
1049
1913
|
_request_timeout: Union[
|
1050
1914
|
None,
|
@@ -1099,12 +1963,11 @@ class AdminApi:
|
|
1099
1963
|
)
|
1100
1964
|
await response_data.read()
|
1101
1965
|
return self.api_client.response_deserialize(
|
1102
|
-
response_data=response_data,
|
1103
|
-
response_types_map=_response_types_map,
|
1966
|
+
response_data=response_data, response_types_map=_response_types_map
|
1104
1967
|
)
|
1105
1968
|
|
1106
1969
|
@validate_call
|
1107
|
-
async def
|
1970
|
+
async def _get_threads_async_without_preload_content(
|
1108
1971
|
self,
|
1109
1972
|
_request_timeout: Union[
|
1110
1973
|
None,
|
@@ -1157,7 +2020,80 @@ class AdminApi:
|
|
1157
2020
|
response_data = await self.api_client.call_api(
|
1158
2021
|
*_param, _request_timeout=_request_timeout
|
1159
2022
|
)
|
1160
|
-
return response_data
|
2023
|
+
return response_data
|
2024
|
+
|
2025
|
+
# Private sync implementation methods
|
2026
|
+
@validate_call
|
2027
|
+
def _get_threads_sync(
|
2028
|
+
self,
|
2029
|
+
_request_timeout: Union[
|
2030
|
+
None,
|
2031
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2032
|
+
Tuple[
|
2033
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2034
|
+
],
|
2035
|
+
] = None,
|
2036
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2037
|
+
_content_type: Optional[StrictStr] = None,
|
2038
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2039
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2040
|
+
) -> Dict[str, object]:
|
2041
|
+
"""Synchronous version of get_threads"""
|
2042
|
+
return async_to_sync(self._get_threads_async)(
|
2043
|
+
_request_timeout=_request_timeout,
|
2044
|
+
_request_auth=_request_auth,
|
2045
|
+
_content_type=_content_type,
|
2046
|
+
_headers=_headers,
|
2047
|
+
_host_index=_host_index,
|
2048
|
+
)
|
2049
|
+
|
2050
|
+
@validate_call
|
2051
|
+
def _get_threads_sync_with_http_info(
|
2052
|
+
self,
|
2053
|
+
_request_timeout: Union[
|
2054
|
+
None,
|
2055
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2056
|
+
Tuple[
|
2057
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2058
|
+
],
|
2059
|
+
] = None,
|
2060
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2061
|
+
_content_type: Optional[StrictStr] = None,
|
2062
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2063
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2064
|
+
) -> ApiResponse[Dict[str, object]]:
|
2065
|
+
"""Synchronous version of get_threads_with_http_info"""
|
2066
|
+
return async_to_sync(self._get_threads_async_with_http_info)(
|
2067
|
+
_request_timeout=_request_timeout,
|
2068
|
+
_request_auth=_request_auth,
|
2069
|
+
_content_type=_content_type,
|
2070
|
+
_headers=_headers,
|
2071
|
+
_host_index=_host_index,
|
2072
|
+
)
|
2073
|
+
|
2074
|
+
@validate_call
|
2075
|
+
def _get_threads_sync_without_preload_content(
|
2076
|
+
self,
|
2077
|
+
_request_timeout: Union[
|
2078
|
+
None,
|
2079
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2080
|
+
Tuple[
|
2081
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2082
|
+
],
|
2083
|
+
] = None,
|
2084
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2085
|
+
_content_type: Optional[StrictStr] = None,
|
2086
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2087
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2088
|
+
) -> RESTResponseType:
|
2089
|
+
"""Synchronous version of get_threads_without_preload_content"""
|
2090
|
+
return async_to_sync(self._get_threads_async_without_preload_content)(
|
2091
|
+
_request_timeout=_request_timeout,
|
2092
|
+
_request_auth=_request_auth,
|
2093
|
+
_content_type=_content_type,
|
2094
|
+
_headers=_headers,
|
2095
|
+
_host_index=_host_index,
|
2096
|
+
)
|
1161
2097
|
|
1162
2098
|
def _get_threads_serialize(
|
1163
2099
|
self,
|
@@ -1211,7 +2147,119 @@ class AdminApi:
|
|
1211
2147
|
)
|
1212
2148
|
|
1213
2149
|
@validate_call
|
1214
|
-
|
2150
|
+
def get_uptime(
|
2151
|
+
self,
|
2152
|
+
type: Optional[StrictStr] = None,
|
2153
|
+
_request_timeout: Union[
|
2154
|
+
None,
|
2155
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2156
|
+
Tuple[
|
2157
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2158
|
+
],
|
2159
|
+
] = None,
|
2160
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2161
|
+
_content_type: Optional[StrictStr] = None,
|
2162
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2163
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2164
|
+
) -> str:
|
2165
|
+
"""Get Uptime"""
|
2166
|
+
if self.is_sync:
|
2167
|
+
return self._get_uptime_sync(
|
2168
|
+
type=type,
|
2169
|
+
_request_timeout=_request_timeout,
|
2170
|
+
_request_auth=_request_auth,
|
2171
|
+
_content_type=_content_type,
|
2172
|
+
_headers=_headers,
|
2173
|
+
_host_index=_host_index,
|
2174
|
+
)
|
2175
|
+
|
2176
|
+
else:
|
2177
|
+
return self._get_uptime_async(
|
2178
|
+
type=type,
|
2179
|
+
_request_timeout=_request_timeout,
|
2180
|
+
_request_auth=_request_auth,
|
2181
|
+
_content_type=_content_type,
|
2182
|
+
_headers=_headers,
|
2183
|
+
_host_index=_host_index,
|
2184
|
+
)
|
2185
|
+
|
2186
|
+
@validate_call
|
2187
|
+
def get_uptime_with_http_info(
|
2188
|
+
self,
|
2189
|
+
type: Optional[StrictStr] = None,
|
2190
|
+
_request_timeout: Union[
|
2191
|
+
None,
|
2192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2193
|
+
Tuple[
|
2194
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2195
|
+
],
|
2196
|
+
] = None,
|
2197
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2198
|
+
_content_type: Optional[StrictStr] = None,
|
2199
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2200
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2201
|
+
) -> ApiResponse[str]:
|
2202
|
+
"""Get Uptime with HTTP info"""
|
2203
|
+
if self.is_sync:
|
2204
|
+
return self._get_uptime_sync_with_http_info(
|
2205
|
+
type=type,
|
2206
|
+
_request_timeout=_request_timeout,
|
2207
|
+
_request_auth=_request_auth,
|
2208
|
+
_content_type=_content_type,
|
2209
|
+
_headers=_headers,
|
2210
|
+
_host_index=_host_index,
|
2211
|
+
)
|
2212
|
+
|
2213
|
+
else:
|
2214
|
+
return self._get_uptime_async_with_http_info(
|
2215
|
+
type=type,
|
2216
|
+
_request_timeout=_request_timeout,
|
2217
|
+
_request_auth=_request_auth,
|
2218
|
+
_content_type=_content_type,
|
2219
|
+
_headers=_headers,
|
2220
|
+
_host_index=_host_index,
|
2221
|
+
)
|
2222
|
+
|
2223
|
+
@validate_call
|
2224
|
+
def get_uptime_without_preload_content(
|
2225
|
+
self,
|
2226
|
+
type: Optional[StrictStr] = None,
|
2227
|
+
_request_timeout: Union[
|
2228
|
+
None,
|
2229
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2230
|
+
Tuple[
|
2231
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2232
|
+
],
|
2233
|
+
] = None,
|
2234
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2235
|
+
_content_type: Optional[StrictStr] = None,
|
2236
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2237
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2238
|
+
) -> RESTResponseType:
|
2239
|
+
"""Get Uptime without preloading content"""
|
2240
|
+
if self.is_sync:
|
2241
|
+
return self._get_uptime_sync_without_preload_content(
|
2242
|
+
type=type,
|
2243
|
+
_request_timeout=_request_timeout,
|
2244
|
+
_request_auth=_request_auth,
|
2245
|
+
_content_type=_content_type,
|
2246
|
+
_headers=_headers,
|
2247
|
+
_host_index=_host_index,
|
2248
|
+
)
|
2249
|
+
|
2250
|
+
else:
|
2251
|
+
return self._get_uptime_async_without_preload_content(
|
2252
|
+
type=type,
|
2253
|
+
_request_timeout=_request_timeout,
|
2254
|
+
_request_auth=_request_auth,
|
2255
|
+
_content_type=_content_type,
|
2256
|
+
_headers=_headers,
|
2257
|
+
_host_index=_host_index,
|
2258
|
+
)
|
2259
|
+
|
2260
|
+
# Private async implementation methods
|
2261
|
+
@validate_call
|
2262
|
+
async def _get_uptime_async(
|
1215
2263
|
self,
|
1216
2264
|
type: Optional[StrictStr] = None,
|
1217
2265
|
_request_timeout: Union[
|
@@ -1275,7 +2323,7 @@ class AdminApi:
|
|
1275
2323
|
).data
|
1276
2324
|
|
1277
2325
|
@validate_call
|
1278
|
-
async def
|
2326
|
+
async def _get_uptime_async_with_http_info(
|
1279
2327
|
self,
|
1280
2328
|
type: Optional[StrictStr] = None,
|
1281
2329
|
_request_timeout: Union[
|
@@ -1334,12 +2382,11 @@ class AdminApi:
|
|
1334
2382
|
)
|
1335
2383
|
await response_data.read()
|
1336
2384
|
return self.api_client.response_deserialize(
|
1337
|
-
response_data=response_data,
|
1338
|
-
response_types_map=_response_types_map,
|
2385
|
+
response_data=response_data, response_types_map=_response_types_map
|
1339
2386
|
)
|
1340
2387
|
|
1341
2388
|
@validate_call
|
1342
|
-
async def
|
2389
|
+
async def _get_uptime_async_without_preload_content(
|
1343
2390
|
self,
|
1344
2391
|
type: Optional[StrictStr] = None,
|
1345
2392
|
_request_timeout: Union[
|
@@ -1396,7 +2443,86 @@ class AdminApi:
|
|
1396
2443
|
response_data = await self.api_client.call_api(
|
1397
2444
|
*_param, _request_timeout=_request_timeout
|
1398
2445
|
)
|
1399
|
-
return response_data
|
2446
|
+
return response_data
|
2447
|
+
|
2448
|
+
# Private sync implementation methods
|
2449
|
+
@validate_call
|
2450
|
+
def _get_uptime_sync(
|
2451
|
+
self,
|
2452
|
+
type: Optional[StrictStr] = None,
|
2453
|
+
_request_timeout: Union[
|
2454
|
+
None,
|
2455
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2456
|
+
Tuple[
|
2457
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2458
|
+
],
|
2459
|
+
] = None,
|
2460
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2461
|
+
_content_type: Optional[StrictStr] = None,
|
2462
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2463
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2464
|
+
) -> str:
|
2465
|
+
"""Synchronous version of get_uptime"""
|
2466
|
+
return async_to_sync(self._get_uptime_async)(
|
2467
|
+
type=type,
|
2468
|
+
_request_timeout=_request_timeout,
|
2469
|
+
_request_auth=_request_auth,
|
2470
|
+
_content_type=_content_type,
|
2471
|
+
_headers=_headers,
|
2472
|
+
_host_index=_host_index,
|
2473
|
+
)
|
2474
|
+
|
2475
|
+
@validate_call
|
2476
|
+
def _get_uptime_sync_with_http_info(
|
2477
|
+
self,
|
2478
|
+
type: Optional[StrictStr] = None,
|
2479
|
+
_request_timeout: Union[
|
2480
|
+
None,
|
2481
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2482
|
+
Tuple[
|
2483
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2484
|
+
],
|
2485
|
+
] = None,
|
2486
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2487
|
+
_content_type: Optional[StrictStr] = None,
|
2488
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2489
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2490
|
+
) -> ApiResponse[str]:
|
2491
|
+
"""Synchronous version of get_uptime_with_http_info"""
|
2492
|
+
return async_to_sync(self._get_uptime_async_with_http_info)(
|
2493
|
+
type=type,
|
2494
|
+
_request_timeout=_request_timeout,
|
2495
|
+
_request_auth=_request_auth,
|
2496
|
+
_content_type=_content_type,
|
2497
|
+
_headers=_headers,
|
2498
|
+
_host_index=_host_index,
|
2499
|
+
)
|
2500
|
+
|
2501
|
+
@validate_call
|
2502
|
+
def _get_uptime_sync_without_preload_content(
|
2503
|
+
self,
|
2504
|
+
type: Optional[StrictStr] = None,
|
2505
|
+
_request_timeout: Union[
|
2506
|
+
None,
|
2507
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2508
|
+
Tuple[
|
2509
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2510
|
+
],
|
2511
|
+
] = None,
|
2512
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2513
|
+
_content_type: Optional[StrictStr] = None,
|
2514
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2515
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2516
|
+
) -> RESTResponseType:
|
2517
|
+
"""Synchronous version of get_uptime_without_preload_content"""
|
2518
|
+
return async_to_sync(self._get_uptime_async_without_preload_content)(
|
2519
|
+
type=type,
|
2520
|
+
_request_timeout=_request_timeout,
|
2521
|
+
_request_auth=_request_auth,
|
2522
|
+
_content_type=_content_type,
|
2523
|
+
_headers=_headers,
|
2524
|
+
_host_index=_host_index,
|
2525
|
+
)
|
1400
2526
|
|
1401
2527
|
def _get_uptime_serialize(
|
1402
2528
|
self,
|