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.pay.client.models.log_level import LogLevel
|
23
20
|
|
24
21
|
from crypticorn.pay.client.api_client import ApiClient, RequestSerialized
|
25
22
|
from crypticorn.pay.client.api_response import ApiResponse
|
26
23
|
from crypticorn.pay.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[Optional[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, Optional[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[Optional[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, Optional[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[Optional[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[Optional[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[Optional[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[Optional[StrictStr]]],
|
@@ -466,18 +783,112 @@ 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
|
470
787
|
|
471
|
-
|
788
|
+
# Private sync implementation methods
|
789
|
+
@validate_call
|
790
|
+
def _get_dependencies_sync(
|
472
791
|
self,
|
473
|
-
include
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
792
|
+
include: Annotated[
|
793
|
+
Optional[List[Optional[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, Optional[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
|
+
)
|
479
819
|
|
480
|
-
|
820
|
+
@validate_call
|
821
|
+
def _get_dependencies_sync_with_http_info(
|
822
|
+
self,
|
823
|
+
include: Annotated[
|
824
|
+
Optional[List[Optional[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, Optional[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[Optional[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
|
+
)
|
881
|
+
|
882
|
+
def _get_dependencies_serialize(
|
883
|
+
self,
|
884
|
+
include,
|
885
|
+
_request_auth,
|
886
|
+
_content_type,
|
887
|
+
_headers,
|
888
|
+
_host_index,
|
889
|
+
) -> RequestSerialized:
|
890
|
+
|
891
|
+
_host = None
|
481
892
|
|
482
893
|
_collection_formats: Dict[str, str] = {
|
483
894
|
"include": "multi",
|
@@ -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,15 +1612,490 @@ 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
|
-
|
935
|
-
|
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
|
+
|
1696
|
+
def _get_memory_usage_serialize(
|
1697
|
+
self,
|
1698
|
+
_request_auth,
|
1699
|
+
_content_type,
|
1700
|
+
_headers,
|
1701
|
+
_host_index,
|
1702
|
+
) -> RequestSerialized:
|
1703
|
+
|
1704
|
+
_host = None
|
1705
|
+
|
1706
|
+
_collection_formats: Dict[str, str] = {}
|
1707
|
+
|
1708
|
+
_path_params: Dict[str, str] = {}
|
1709
|
+
_query_params: List[Tuple[str, str]] = []
|
1710
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1711
|
+
_form_params: List[Tuple[str, str]] = []
|
1712
|
+
_files: Dict[
|
1713
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1714
|
+
] = {}
|
1715
|
+
_body_params: Optional[bytes] = None
|
1716
|
+
|
1717
|
+
# process the path parameters
|
1718
|
+
# process the query parameters
|
1719
|
+
# process the header parameters
|
1720
|
+
# process the form parameters
|
1721
|
+
# process the body parameter
|
1722
|
+
|
1723
|
+
# set the HTTP header `Accept`
|
1724
|
+
if "Accept" not in _header_params:
|
1725
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1726
|
+
["application/json"]
|
1727
|
+
)
|
1728
|
+
|
1729
|
+
# authentication setting
|
1730
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
1731
|
+
|
1732
|
+
return self.api_client.param_serialize(
|
1733
|
+
method="GET",
|
1734
|
+
resource_path="/admin/memory",
|
1735
|
+
path_params=_path_params,
|
1736
|
+
query_params=_query_params,
|
1737
|
+
header_params=_header_params,
|
1738
|
+
body=_body_params,
|
1739
|
+
post_params=_form_params,
|
1740
|
+
files=_files,
|
1741
|
+
auth_settings=_auth_settings,
|
1742
|
+
collection_formats=_collection_formats,
|
1743
|
+
_host=_host,
|
1744
|
+
_request_auth=_request_auth,
|
1745
|
+
)
|
1746
|
+
|
1747
|
+
@validate_call
|
1748
|
+
def get_metrics(
|
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
|
+
) -> object:
|
1762
|
+
"""Metrics"""
|
1763
|
+
if self.is_sync:
|
1764
|
+
return self._get_metrics_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_metrics_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_metrics_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[object]:
|
1796
|
+
"""Metrics with HTTP info"""
|
1797
|
+
if self.is_sync:
|
1798
|
+
return self._get_metrics_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_metrics_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_metrics_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
|
+
"""Metrics without preloading content"""
|
1831
|
+
if self.is_sync:
|
1832
|
+
return self._get_metrics_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_metrics_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_metrics_async(
|
1852
|
+
self,
|
1853
|
+
_request_timeout: Union[
|
1854
|
+
None,
|
1855
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1856
|
+
Tuple[
|
1857
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1858
|
+
],
|
1859
|
+
] = None,
|
1860
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1861
|
+
_content_type: Optional[StrictStr] = None,
|
1862
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1863
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1864
|
+
) -> object:
|
1865
|
+
"""Metrics
|
1866
|
+
|
1867
|
+
Get Prometheus metrics for the application. Returns plain text.
|
1868
|
+
|
1869
|
+
:param _request_timeout: timeout setting for this request. If one
|
1870
|
+
number provided, it will be total request
|
1871
|
+
timeout. It can also be a pair (tuple) of
|
1872
|
+
(connection, read) timeouts.
|
1873
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1874
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1875
|
+
request; this effectively ignores the
|
1876
|
+
authentication in the spec for a single request.
|
1877
|
+
:type _request_auth: dict, optional
|
1878
|
+
:param _content_type: force content-type for the request.
|
1879
|
+
:type _content_type: str, Optional
|
1880
|
+
:param _headers: set to override the headers for a single
|
1881
|
+
request; this effectively ignores the headers
|
1882
|
+
in the spec for a single request.
|
1883
|
+
:type _headers: dict, optional
|
1884
|
+
:param _host_index: set to override the host_index for a single
|
1885
|
+
request; this effectively ignores the host_index
|
1886
|
+
in the spec for a single request.
|
1887
|
+
:type _host_index: int, optional
|
1888
|
+
:return: Returns the result object.
|
1889
|
+
""" # noqa: E501
|
1890
|
+
|
1891
|
+
_param = self._get_metrics_serialize(
|
1892
|
+
_request_auth=_request_auth,
|
1893
|
+
_content_type=_content_type,
|
1894
|
+
_headers=_headers,
|
1895
|
+
_host_index=_host_index,
|
1896
|
+
)
|
1897
|
+
|
1898
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1899
|
+
"200": "object",
|
1900
|
+
}
|
1901
|
+
response_data = await self.api_client.call_api(
|
1902
|
+
*_param, _request_timeout=_request_timeout
|
1903
|
+
)
|
1904
|
+
await response_data.read()
|
1905
|
+
return self.api_client.response_deserialize(
|
1906
|
+
response_data=response_data,
|
1907
|
+
response_types_map=_response_types_map,
|
1908
|
+
).data
|
1909
|
+
|
1910
|
+
@validate_call
|
1911
|
+
async def _get_metrics_async_with_http_info(
|
1912
|
+
self,
|
1913
|
+
_request_timeout: Union[
|
1914
|
+
None,
|
1915
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1916
|
+
Tuple[
|
1917
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1918
|
+
],
|
1919
|
+
] = None,
|
1920
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1921
|
+
_content_type: Optional[StrictStr] = None,
|
1922
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1923
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1924
|
+
) -> ApiResponse[object]:
|
1925
|
+
"""Metrics
|
1926
|
+
|
1927
|
+
Get Prometheus metrics for the application. Returns plain text.
|
1928
|
+
|
1929
|
+
:param _request_timeout: timeout setting for this request. If one
|
1930
|
+
number provided, it will be total request
|
1931
|
+
timeout. It can also be a pair (tuple) of
|
1932
|
+
(connection, read) timeouts.
|
1933
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1934
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1935
|
+
request; this effectively ignores the
|
1936
|
+
authentication in the spec for a single request.
|
1937
|
+
:type _request_auth: dict, optional
|
1938
|
+
:param _content_type: force content-type for the request.
|
1939
|
+
:type _content_type: str, Optional
|
1940
|
+
:param _headers: set to override the headers for a single
|
1941
|
+
request; this effectively ignores the headers
|
1942
|
+
in the spec for a single request.
|
1943
|
+
:type _headers: dict, optional
|
1944
|
+
:param _host_index: set to override the host_index for a single
|
1945
|
+
request; this effectively ignores the host_index
|
1946
|
+
in the spec for a single request.
|
1947
|
+
:type _host_index: int, optional
|
1948
|
+
:return: Returns the result object.
|
1949
|
+
""" # noqa: E501
|
1950
|
+
|
1951
|
+
_param = self._get_metrics_serialize(
|
1952
|
+
_request_auth=_request_auth,
|
1953
|
+
_content_type=_content_type,
|
1954
|
+
_headers=_headers,
|
1955
|
+
_host_index=_host_index,
|
1956
|
+
)
|
1957
|
+
|
1958
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1959
|
+
"200": "object",
|
1960
|
+
}
|
1961
|
+
response_data = await self.api_client.call_api(
|
1962
|
+
*_param, _request_timeout=_request_timeout
|
1963
|
+
)
|
1964
|
+
await response_data.read()
|
1965
|
+
return self.api_client.response_deserialize(
|
1966
|
+
response_data=response_data, response_types_map=_response_types_map
|
1967
|
+
)
|
1968
|
+
|
1969
|
+
@validate_call
|
1970
|
+
async def _get_metrics_async_without_preload_content(
|
1971
|
+
self,
|
1972
|
+
_request_timeout: Union[
|
1973
|
+
None,
|
1974
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1975
|
+
Tuple[
|
1976
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1977
|
+
],
|
1978
|
+
] = None,
|
1979
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1980
|
+
_content_type: Optional[StrictStr] = None,
|
1981
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1982
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1983
|
+
) -> RESTResponseType:
|
1984
|
+
"""Metrics
|
1985
|
+
|
1986
|
+
Get Prometheus metrics for the application. Returns plain text.
|
1987
|
+
|
1988
|
+
:param _request_timeout: timeout setting for this request. If one
|
1989
|
+
number provided, it will be total request
|
1990
|
+
timeout. It can also be a pair (tuple) of
|
1991
|
+
(connection, read) timeouts.
|
1992
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1993
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1994
|
+
request; this effectively ignores the
|
1995
|
+
authentication in the spec for a single request.
|
1996
|
+
:type _request_auth: dict, optional
|
1997
|
+
:param _content_type: force content-type for the request.
|
1998
|
+
:type _content_type: str, Optional
|
1999
|
+
:param _headers: set to override the headers for a single
|
2000
|
+
request; this effectively ignores the headers
|
2001
|
+
in the spec for a single request.
|
2002
|
+
:type _headers: dict, optional
|
2003
|
+
:param _host_index: set to override the host_index for a single
|
2004
|
+
request; this effectively ignores the host_index
|
2005
|
+
in the spec for a single request.
|
2006
|
+
:type _host_index: int, optional
|
2007
|
+
:return: Returns the result object.
|
2008
|
+
""" # noqa: E501
|
2009
|
+
|
2010
|
+
_param = self._get_metrics_serialize(
|
2011
|
+
_request_auth=_request_auth,
|
2012
|
+
_content_type=_content_type,
|
2013
|
+
_headers=_headers,
|
2014
|
+
_host_index=_host_index,
|
2015
|
+
)
|
2016
|
+
|
2017
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2018
|
+
"200": "object",
|
2019
|
+
}
|
2020
|
+
response_data = await self.api_client.call_api(
|
2021
|
+
*_param, _request_timeout=_request_timeout
|
2022
|
+
)
|
2023
|
+
return response_data
|
2024
|
+
|
2025
|
+
# Private sync implementation methods
|
2026
|
+
@validate_call
|
2027
|
+
def _get_metrics_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
|
+
) -> object:
|
2041
|
+
"""Synchronous version of get_metrics"""
|
2042
|
+
return async_to_sync(self._get_metrics_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_metrics_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[object]:
|
2065
|
+
"""Synchronous version of get_metrics_with_http_info"""
|
2066
|
+
return async_to_sync(self._get_metrics_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_metrics_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_metrics_without_preload_content"""
|
2090
|
+
return async_to_sync(self._get_metrics_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
|
+
)
|
2097
|
+
|
2098
|
+
def _get_metrics_serialize(
|
936
2099
|
self,
|
937
2100
|
_request_auth,
|
938
2101
|
_content_type,
|
@@ -970,7 +2133,7 @@ class AdminApi:
|
|
970
2133
|
|
971
2134
|
return self.api_client.param_serialize(
|
972
2135
|
method="GET",
|
973
|
-
resource_path="/admin/
|
2136
|
+
resource_path="/admin/metrics",
|
974
2137
|
path_params=_path_params,
|
975
2138
|
query_params=_query_params,
|
976
2139
|
header_params=_header_params,
|
@@ -984,7 +2147,110 @@ class AdminApi:
|
|
984
2147
|
)
|
985
2148
|
|
986
2149
|
@validate_call
|
987
|
-
|
2150
|
+
def get_threads(
|
2151
|
+
self,
|
2152
|
+
_request_timeout: Union[
|
2153
|
+
None,
|
2154
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2155
|
+
Tuple[
|
2156
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2157
|
+
],
|
2158
|
+
] = None,
|
2159
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2160
|
+
_content_type: Optional[StrictStr] = None,
|
2161
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2162
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2163
|
+
) -> Dict[str, object]:
|
2164
|
+
"""Get Threads"""
|
2165
|
+
if self.is_sync:
|
2166
|
+
return self._get_threads_sync(
|
2167
|
+
_request_timeout=_request_timeout,
|
2168
|
+
_request_auth=_request_auth,
|
2169
|
+
_content_type=_content_type,
|
2170
|
+
_headers=_headers,
|
2171
|
+
_host_index=_host_index,
|
2172
|
+
)
|
2173
|
+
|
2174
|
+
else:
|
2175
|
+
return self._get_threads_async(
|
2176
|
+
_request_timeout=_request_timeout,
|
2177
|
+
_request_auth=_request_auth,
|
2178
|
+
_content_type=_content_type,
|
2179
|
+
_headers=_headers,
|
2180
|
+
_host_index=_host_index,
|
2181
|
+
)
|
2182
|
+
|
2183
|
+
@validate_call
|
2184
|
+
def get_threads_with_http_info(
|
2185
|
+
self,
|
2186
|
+
_request_timeout: Union[
|
2187
|
+
None,
|
2188
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2189
|
+
Tuple[
|
2190
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2191
|
+
],
|
2192
|
+
] = None,
|
2193
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2194
|
+
_content_type: Optional[StrictStr] = None,
|
2195
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2196
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2197
|
+
) -> ApiResponse[Dict[str, object]]:
|
2198
|
+
"""Get Threads with HTTP info"""
|
2199
|
+
if self.is_sync:
|
2200
|
+
return self._get_threads_sync_with_http_info(
|
2201
|
+
_request_timeout=_request_timeout,
|
2202
|
+
_request_auth=_request_auth,
|
2203
|
+
_content_type=_content_type,
|
2204
|
+
_headers=_headers,
|
2205
|
+
_host_index=_host_index,
|
2206
|
+
)
|
2207
|
+
|
2208
|
+
else:
|
2209
|
+
return self._get_threads_async_with_http_info(
|
2210
|
+
_request_timeout=_request_timeout,
|
2211
|
+
_request_auth=_request_auth,
|
2212
|
+
_content_type=_content_type,
|
2213
|
+
_headers=_headers,
|
2214
|
+
_host_index=_host_index,
|
2215
|
+
)
|
2216
|
+
|
2217
|
+
@validate_call
|
2218
|
+
def get_threads_without_preload_content(
|
2219
|
+
self,
|
2220
|
+
_request_timeout: Union[
|
2221
|
+
None,
|
2222
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2223
|
+
Tuple[
|
2224
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2225
|
+
],
|
2226
|
+
] = None,
|
2227
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2228
|
+
_content_type: Optional[StrictStr] = None,
|
2229
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2230
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2231
|
+
) -> RESTResponseType:
|
2232
|
+
"""Get Threads without preloading content"""
|
2233
|
+
if self.is_sync:
|
2234
|
+
return self._get_threads_sync_without_preload_content(
|
2235
|
+
_request_timeout=_request_timeout,
|
2236
|
+
_request_auth=_request_auth,
|
2237
|
+
_content_type=_content_type,
|
2238
|
+
_headers=_headers,
|
2239
|
+
_host_index=_host_index,
|
2240
|
+
)
|
2241
|
+
|
2242
|
+
else:
|
2243
|
+
return self._get_threads_async_without_preload_content(
|
2244
|
+
_request_timeout=_request_timeout,
|
2245
|
+
_request_auth=_request_auth,
|
2246
|
+
_content_type=_content_type,
|
2247
|
+
_headers=_headers,
|
2248
|
+
_host_index=_host_index,
|
2249
|
+
)
|
2250
|
+
|
2251
|
+
# Private async implementation methods
|
2252
|
+
@validate_call
|
2253
|
+
async def _get_threads_async(
|
988
2254
|
self,
|
989
2255
|
_request_timeout: Union[
|
990
2256
|
None,
|
@@ -1044,7 +2310,7 @@ class AdminApi:
|
|
1044
2310
|
).data
|
1045
2311
|
|
1046
2312
|
@validate_call
|
1047
|
-
async def
|
2313
|
+
async def _get_threads_async_with_http_info(
|
1048
2314
|
self,
|
1049
2315
|
_request_timeout: Union[
|
1050
2316
|
None,
|
@@ -1099,12 +2365,11 @@ class AdminApi:
|
|
1099
2365
|
)
|
1100
2366
|
await response_data.read()
|
1101
2367
|
return self.api_client.response_deserialize(
|
1102
|
-
response_data=response_data,
|
1103
|
-
response_types_map=_response_types_map,
|
2368
|
+
response_data=response_data, response_types_map=_response_types_map
|
1104
2369
|
)
|
1105
2370
|
|
1106
2371
|
@validate_call
|
1107
|
-
async def
|
2372
|
+
async def _get_threads_async_without_preload_content(
|
1108
2373
|
self,
|
1109
2374
|
_request_timeout: Union[
|
1110
2375
|
None,
|
@@ -1157,7 +2422,80 @@ class AdminApi:
|
|
1157
2422
|
response_data = await self.api_client.call_api(
|
1158
2423
|
*_param, _request_timeout=_request_timeout
|
1159
2424
|
)
|
1160
|
-
return response_data
|
2425
|
+
return response_data
|
2426
|
+
|
2427
|
+
# Private sync implementation methods
|
2428
|
+
@validate_call
|
2429
|
+
def _get_threads_sync(
|
2430
|
+
self,
|
2431
|
+
_request_timeout: Union[
|
2432
|
+
None,
|
2433
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2434
|
+
Tuple[
|
2435
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2436
|
+
],
|
2437
|
+
] = None,
|
2438
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2439
|
+
_content_type: Optional[StrictStr] = None,
|
2440
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2441
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2442
|
+
) -> Dict[str, object]:
|
2443
|
+
"""Synchronous version of get_threads"""
|
2444
|
+
return async_to_sync(self._get_threads_async)(
|
2445
|
+
_request_timeout=_request_timeout,
|
2446
|
+
_request_auth=_request_auth,
|
2447
|
+
_content_type=_content_type,
|
2448
|
+
_headers=_headers,
|
2449
|
+
_host_index=_host_index,
|
2450
|
+
)
|
2451
|
+
|
2452
|
+
@validate_call
|
2453
|
+
def _get_threads_sync_with_http_info(
|
2454
|
+
self,
|
2455
|
+
_request_timeout: Union[
|
2456
|
+
None,
|
2457
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2458
|
+
Tuple[
|
2459
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2460
|
+
],
|
2461
|
+
] = None,
|
2462
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2463
|
+
_content_type: Optional[StrictStr] = None,
|
2464
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2465
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2466
|
+
) -> ApiResponse[Dict[str, object]]:
|
2467
|
+
"""Synchronous version of get_threads_with_http_info"""
|
2468
|
+
return async_to_sync(self._get_threads_async_with_http_info)(
|
2469
|
+
_request_timeout=_request_timeout,
|
2470
|
+
_request_auth=_request_auth,
|
2471
|
+
_content_type=_content_type,
|
2472
|
+
_headers=_headers,
|
2473
|
+
_host_index=_host_index,
|
2474
|
+
)
|
2475
|
+
|
2476
|
+
@validate_call
|
2477
|
+
def _get_threads_sync_without_preload_content(
|
2478
|
+
self,
|
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
|
+
) -> RESTResponseType:
|
2491
|
+
"""Synchronous version of get_threads_without_preload_content"""
|
2492
|
+
return async_to_sync(self._get_threads_async_without_preload_content)(
|
2493
|
+
_request_timeout=_request_timeout,
|
2494
|
+
_request_auth=_request_auth,
|
2495
|
+
_content_type=_content_type,
|
2496
|
+
_headers=_headers,
|
2497
|
+
_host_index=_host_index,
|
2498
|
+
)
|
1161
2499
|
|
1162
2500
|
def _get_threads_serialize(
|
1163
2501
|
self,
|
@@ -1211,7 +2549,119 @@ class AdminApi:
|
|
1211
2549
|
)
|
1212
2550
|
|
1213
2551
|
@validate_call
|
1214
|
-
|
2552
|
+
def get_uptime(
|
2553
|
+
self,
|
2554
|
+
type: Optional[StrictStr] = None,
|
2555
|
+
_request_timeout: Union[
|
2556
|
+
None,
|
2557
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2558
|
+
Tuple[
|
2559
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2560
|
+
],
|
2561
|
+
] = None,
|
2562
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2563
|
+
_content_type: Optional[StrictStr] = None,
|
2564
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2565
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2566
|
+
) -> str:
|
2567
|
+
"""Get Uptime"""
|
2568
|
+
if self.is_sync:
|
2569
|
+
return self._get_uptime_sync(
|
2570
|
+
type=type,
|
2571
|
+
_request_timeout=_request_timeout,
|
2572
|
+
_request_auth=_request_auth,
|
2573
|
+
_content_type=_content_type,
|
2574
|
+
_headers=_headers,
|
2575
|
+
_host_index=_host_index,
|
2576
|
+
)
|
2577
|
+
|
2578
|
+
else:
|
2579
|
+
return self._get_uptime_async(
|
2580
|
+
type=type,
|
2581
|
+
_request_timeout=_request_timeout,
|
2582
|
+
_request_auth=_request_auth,
|
2583
|
+
_content_type=_content_type,
|
2584
|
+
_headers=_headers,
|
2585
|
+
_host_index=_host_index,
|
2586
|
+
)
|
2587
|
+
|
2588
|
+
@validate_call
|
2589
|
+
def get_uptime_with_http_info(
|
2590
|
+
self,
|
2591
|
+
type: Optional[StrictStr] = None,
|
2592
|
+
_request_timeout: Union[
|
2593
|
+
None,
|
2594
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2595
|
+
Tuple[
|
2596
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2597
|
+
],
|
2598
|
+
] = None,
|
2599
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2600
|
+
_content_type: Optional[StrictStr] = None,
|
2601
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2602
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2603
|
+
) -> ApiResponse[str]:
|
2604
|
+
"""Get Uptime with HTTP info"""
|
2605
|
+
if self.is_sync:
|
2606
|
+
return self._get_uptime_sync_with_http_info(
|
2607
|
+
type=type,
|
2608
|
+
_request_timeout=_request_timeout,
|
2609
|
+
_request_auth=_request_auth,
|
2610
|
+
_content_type=_content_type,
|
2611
|
+
_headers=_headers,
|
2612
|
+
_host_index=_host_index,
|
2613
|
+
)
|
2614
|
+
|
2615
|
+
else:
|
2616
|
+
return self._get_uptime_async_with_http_info(
|
2617
|
+
type=type,
|
2618
|
+
_request_timeout=_request_timeout,
|
2619
|
+
_request_auth=_request_auth,
|
2620
|
+
_content_type=_content_type,
|
2621
|
+
_headers=_headers,
|
2622
|
+
_host_index=_host_index,
|
2623
|
+
)
|
2624
|
+
|
2625
|
+
@validate_call
|
2626
|
+
def get_uptime_without_preload_content(
|
2627
|
+
self,
|
2628
|
+
type: Optional[StrictStr] = None,
|
2629
|
+
_request_timeout: Union[
|
2630
|
+
None,
|
2631
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2632
|
+
Tuple[
|
2633
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2634
|
+
],
|
2635
|
+
] = None,
|
2636
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2637
|
+
_content_type: Optional[StrictStr] = None,
|
2638
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2639
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2640
|
+
) -> RESTResponseType:
|
2641
|
+
"""Get Uptime without preloading content"""
|
2642
|
+
if self.is_sync:
|
2643
|
+
return self._get_uptime_sync_without_preload_content(
|
2644
|
+
type=type,
|
2645
|
+
_request_timeout=_request_timeout,
|
2646
|
+
_request_auth=_request_auth,
|
2647
|
+
_content_type=_content_type,
|
2648
|
+
_headers=_headers,
|
2649
|
+
_host_index=_host_index,
|
2650
|
+
)
|
2651
|
+
|
2652
|
+
else:
|
2653
|
+
return self._get_uptime_async_without_preload_content(
|
2654
|
+
type=type,
|
2655
|
+
_request_timeout=_request_timeout,
|
2656
|
+
_request_auth=_request_auth,
|
2657
|
+
_content_type=_content_type,
|
2658
|
+
_headers=_headers,
|
2659
|
+
_host_index=_host_index,
|
2660
|
+
)
|
2661
|
+
|
2662
|
+
# Private async implementation methods
|
2663
|
+
@validate_call
|
2664
|
+
async def _get_uptime_async(
|
1215
2665
|
self,
|
1216
2666
|
type: Optional[StrictStr] = None,
|
1217
2667
|
_request_timeout: Union[
|
@@ -1275,7 +2725,7 @@ class AdminApi:
|
|
1275
2725
|
).data
|
1276
2726
|
|
1277
2727
|
@validate_call
|
1278
|
-
async def
|
2728
|
+
async def _get_uptime_async_with_http_info(
|
1279
2729
|
self,
|
1280
2730
|
type: Optional[StrictStr] = None,
|
1281
2731
|
_request_timeout: Union[
|
@@ -1334,12 +2784,11 @@ class AdminApi:
|
|
1334
2784
|
)
|
1335
2785
|
await response_data.read()
|
1336
2786
|
return self.api_client.response_deserialize(
|
1337
|
-
response_data=response_data,
|
1338
|
-
response_types_map=_response_types_map,
|
2787
|
+
response_data=response_data, response_types_map=_response_types_map
|
1339
2788
|
)
|
1340
2789
|
|
1341
2790
|
@validate_call
|
1342
|
-
async def
|
2791
|
+
async def _get_uptime_async_without_preload_content(
|
1343
2792
|
self,
|
1344
2793
|
type: Optional[StrictStr] = None,
|
1345
2794
|
_request_timeout: Union[
|
@@ -1396,7 +2845,86 @@ class AdminApi:
|
|
1396
2845
|
response_data = await self.api_client.call_api(
|
1397
2846
|
*_param, _request_timeout=_request_timeout
|
1398
2847
|
)
|
1399
|
-
return response_data
|
2848
|
+
return response_data
|
2849
|
+
|
2850
|
+
# Private sync implementation methods
|
2851
|
+
@validate_call
|
2852
|
+
def _get_uptime_sync(
|
2853
|
+
self,
|
2854
|
+
type: Optional[StrictStr] = None,
|
2855
|
+
_request_timeout: Union[
|
2856
|
+
None,
|
2857
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2858
|
+
Tuple[
|
2859
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2860
|
+
],
|
2861
|
+
] = None,
|
2862
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2863
|
+
_content_type: Optional[StrictStr] = None,
|
2864
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2865
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2866
|
+
) -> str:
|
2867
|
+
"""Synchronous version of get_uptime"""
|
2868
|
+
return async_to_sync(self._get_uptime_async)(
|
2869
|
+
type=type,
|
2870
|
+
_request_timeout=_request_timeout,
|
2871
|
+
_request_auth=_request_auth,
|
2872
|
+
_content_type=_content_type,
|
2873
|
+
_headers=_headers,
|
2874
|
+
_host_index=_host_index,
|
2875
|
+
)
|
2876
|
+
|
2877
|
+
@validate_call
|
2878
|
+
def _get_uptime_sync_with_http_info(
|
2879
|
+
self,
|
2880
|
+
type: Optional[StrictStr] = None,
|
2881
|
+
_request_timeout: Union[
|
2882
|
+
None,
|
2883
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2884
|
+
Tuple[
|
2885
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2886
|
+
],
|
2887
|
+
] = None,
|
2888
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2889
|
+
_content_type: Optional[StrictStr] = None,
|
2890
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2891
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2892
|
+
) -> ApiResponse[str]:
|
2893
|
+
"""Synchronous version of get_uptime_with_http_info"""
|
2894
|
+
return async_to_sync(self._get_uptime_async_with_http_info)(
|
2895
|
+
type=type,
|
2896
|
+
_request_timeout=_request_timeout,
|
2897
|
+
_request_auth=_request_auth,
|
2898
|
+
_content_type=_content_type,
|
2899
|
+
_headers=_headers,
|
2900
|
+
_host_index=_host_index,
|
2901
|
+
)
|
2902
|
+
|
2903
|
+
@validate_call
|
2904
|
+
def _get_uptime_sync_without_preload_content(
|
2905
|
+
self,
|
2906
|
+
type: Optional[StrictStr] = None,
|
2907
|
+
_request_timeout: Union[
|
2908
|
+
None,
|
2909
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2910
|
+
Tuple[
|
2911
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2912
|
+
],
|
2913
|
+
] = None,
|
2914
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2915
|
+
_content_type: Optional[StrictStr] = None,
|
2916
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2917
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2918
|
+
) -> RESTResponseType:
|
2919
|
+
"""Synchronous version of get_uptime_without_preload_content"""
|
2920
|
+
return async_to_sync(self._get_uptime_async_without_preload_content)(
|
2921
|
+
type=type,
|
2922
|
+
_request_timeout=_request_timeout,
|
2923
|
+
_request_auth=_request_auth,
|
2924
|
+
_content_type=_content_type,
|
2925
|
+
_headers=_headers,
|
2926
|
+
_host_index=_host_index,
|
2927
|
+
)
|
1400
2928
|
|
1401
2929
|
def _get_uptime_serialize(
|
1402
2930
|
self,
|