crypticorn 2.17.0rc1__py3-none-any.whl → 2.17.0rc2__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 +415 -13
- crypticorn/auth/client/api/auth_api.py +2622 -113
- crypticorn/auth/client/api/service_api.py +258 -7
- crypticorn/auth/client/api/user_api.py +2485 -270
- crypticorn/auth/client/api/wallet_api.py +1518 -77
- 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/client.py +227 -59
- crypticorn/common/__init__.py +0 -1
- crypticorn/common/metrics.py +4 -6
- crypticorn/common/middleware.py +10 -5
- crypticorn/common/pagination.py +137 -18
- crypticorn/common/router/admin_router.py +1 -1
- crypticorn/common/utils.py +2 -1
- crypticorn/common/warnings.py +1 -0
- crypticorn/hive/client/api/admin_api.py +1234 -51
- crypticorn/hive/client/api/data_api.py +517 -13
- crypticorn/hive/client/api/models_api.py +1657 -83
- crypticorn/hive/client/api/status_api.py +415 -13
- crypticorn/hive/client/models/api_error_identifier.py +1 -1
- crypticorn/hive/client/rest.py +23 -4
- crypticorn/hive/main.py +99 -25
- crypticorn/klines/client/api/admin_api.py +1234 -51
- crypticorn/klines/client/api/change_in_timeframe_api.py +278 -7
- crypticorn/klines/client/api/funding_rates_api.py +324 -7
- crypticorn/klines/client/api/ohlcv_data_api.py +399 -7
- crypticorn/klines/client/api/status_api.py +415 -13
- crypticorn/klines/client/api/symbols_api.py +225 -7
- crypticorn/klines/client/api/udf_api.py +1393 -120
- crypticorn/klines/client/models/api_error_identifier.py +3 -1
- crypticorn/klines/client/rest.py +23 -4
- crypticorn/klines/main.py +89 -12
- crypticorn/metrics/client/api/admin_api.py +1234 -51
- crypticorn/metrics/client/api/exchanges_api.py +1405 -140
- crypticorn/metrics/client/api/indicators_api.py +640 -13
- crypticorn/metrics/client/api/logs_api.py +305 -7
- crypticorn/metrics/client/api/marketcap_api.py +1240 -60
- crypticorn/metrics/client/api/markets_api.py +352 -7
- crypticorn/metrics/client/api/quote_currencies_api.py +237 -7
- crypticorn/metrics/client/api/status_api.py +415 -13
- crypticorn/metrics/client/api/tokens_api.py +400 -13
- crypticorn/metrics/client/configuration.py +4 -2
- crypticorn/metrics/client/rest.py +23 -4
- crypticorn/metrics/main.py +113 -19
- crypticorn/pay/client/api/admin_api.py +1720 -126
- crypticorn/pay/client/api/now_payments_api.py +1013 -42
- crypticorn/pay/client/api/payments_api.py +580 -13
- crypticorn/pay/client/api/products_api.py +915 -25
- crypticorn/pay/client/api/status_api.py +415 -13
- crypticorn/pay/client/configuration.py +2 -2
- crypticorn/pay/client/models/api_error_identifier.py +7 -7
- 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 +2 -1
- crypticorn/trade/client/api/__init__.py +0 -1
- crypticorn/trade/client/api/admin_api.py +1718 -123
- crypticorn/trade/client/api/api_keys_api.py +1596 -103
- crypticorn/trade/client/api/bots_api.py +1106 -47
- crypticorn/trade/client/api/exchanges_api.py +592 -19
- crypticorn/trade/client/api/notifications_api.py +1340 -112
- crypticorn/trade/client/api/orders_api.py +240 -7
- crypticorn/trade/client/api/status_api.py +415 -13
- crypticorn/trade/client/api/strategies_api.py +1170 -69
- crypticorn/trade/client/api/trading_actions_api.py +650 -19
- crypticorn/trade/client/models/__init__.py +2 -0
- crypticorn/trade/client/models/exchange.py +6 -1
- crypticorn/trade/client/models/exchange_key_balance.py +111 -0
- crypticorn/trade/client/models/futures_balance.py +27 -25
- crypticorn/trade/client/models/spot_balance.py +110 -0
- crypticorn/trade/client/models/strategy.py +5 -3
- crypticorn/trade/client/models/strategy_create.py +6 -4
- crypticorn/trade/client/models/strategy_exchange_info.py +16 -4
- crypticorn/trade/client/models/strategy_update.py +2 -2
- crypticorn/trade/client/rest.py +23 -4
- crypticorn/trade/main.py +15 -12
- {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc2.dist-info}/METADATA +64 -20
- {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc2.dist-info}/RECORD +85 -84
- crypticorn/trade/client/api/futures_trading_panel_api.py +0 -1285
- {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc2.dist-info}/WHEEL +0 -0
- {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc2.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc2.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc2.dist-info}/top_level.txt +0 -0
@@ -25,6 +25,24 @@ from crypticorn.trade.client.api_client import ApiClient, RequestSerialized
|
|
25
25
|
from crypticorn.trade.client.api_response import ApiResponse
|
26
26
|
from crypticorn.trade.client.rest import RESTResponseType
|
27
27
|
|
28
|
+
# Import async_to_sync for sync methods
|
29
|
+
try:
|
30
|
+
from asgiref.sync import async_to_sync
|
31
|
+
|
32
|
+
_HAS_ASGIREF = True
|
33
|
+
except ImportError:
|
34
|
+
_HAS_ASGIREF = False
|
35
|
+
|
36
|
+
def async_to_sync(async_func):
|
37
|
+
"""Fallback decorator that raises an error if asgiref is not available."""
|
38
|
+
|
39
|
+
def wrapper(*args, **kwargs):
|
40
|
+
raise ImportError(
|
41
|
+
"asgiref is required for sync methods. Install with: pip install asgiref"
|
42
|
+
)
|
43
|
+
|
44
|
+
return wrapper
|
45
|
+
|
28
46
|
|
29
47
|
class AdminApi:
|
30
48
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
@@ -33,13 +51,126 @@ class AdminApi:
|
|
33
51
|
Do not edit the class manually.
|
34
52
|
"""
|
35
53
|
|
36
|
-
def __init__(self, api_client=None) -> None:
|
54
|
+
def __init__(self, api_client=None, is_sync: bool = False) -> None:
|
37
55
|
if api_client is None:
|
38
56
|
api_client = ApiClient.get_default()
|
39
57
|
self.api_client = api_client
|
58
|
+
self.is_sync = is_sync
|
59
|
+
|
60
|
+
@validate_call
|
61
|
+
def get_container_limits(
|
62
|
+
self,
|
63
|
+
_request_timeout: Union[
|
64
|
+
None,
|
65
|
+
Annotated[StrictFloat, Field(gt=0)],
|
66
|
+
Tuple[
|
67
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
68
|
+
],
|
69
|
+
] = None,
|
70
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
71
|
+
_content_type: Optional[StrictStr] = None,
|
72
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
73
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
74
|
+
) -> Dict[str, object]:
|
75
|
+
"""Get Container Limits
|
76
|
+
|
77
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
78
|
+
"""
|
79
|
+
if self.is_sync:
|
80
|
+
return self._get_container_limits_sync(
|
81
|
+
_request_timeout=_request_timeout,
|
82
|
+
_request_auth=_request_auth,
|
83
|
+
_content_type=_content_type,
|
84
|
+
_headers=_headers,
|
85
|
+
_host_index=_host_index,
|
86
|
+
)
|
87
|
+
|
88
|
+
else:
|
89
|
+
return self._get_container_limits_async(
|
90
|
+
_request_timeout=_request_timeout,
|
91
|
+
_request_auth=_request_auth,
|
92
|
+
_content_type=_content_type,
|
93
|
+
_headers=_headers,
|
94
|
+
_host_index=_host_index,
|
95
|
+
)
|
96
|
+
|
97
|
+
@validate_call
|
98
|
+
def get_container_limits_with_http_info(
|
99
|
+
self,
|
100
|
+
_request_timeout: Union[
|
101
|
+
None,
|
102
|
+
Annotated[StrictFloat, Field(gt=0)],
|
103
|
+
Tuple[
|
104
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
105
|
+
],
|
106
|
+
] = None,
|
107
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
108
|
+
_content_type: Optional[StrictStr] = None,
|
109
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
110
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
111
|
+
) -> ApiResponse[Dict[str, object]]:
|
112
|
+
"""Get Container Limits with HTTP info
|
113
|
+
|
114
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
115
|
+
"""
|
116
|
+
if self.is_sync:
|
117
|
+
return self._get_container_limits_sync_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
|
+
else:
|
126
|
+
return self._get_container_limits_async_with_http_info(
|
127
|
+
_request_timeout=_request_timeout,
|
128
|
+
_request_auth=_request_auth,
|
129
|
+
_content_type=_content_type,
|
130
|
+
_headers=_headers,
|
131
|
+
_host_index=_host_index,
|
132
|
+
)
|
133
|
+
|
134
|
+
@validate_call
|
135
|
+
def get_container_limits_without_preload_content(
|
136
|
+
self,
|
137
|
+
_request_timeout: Union[
|
138
|
+
None,
|
139
|
+
Annotated[StrictFloat, Field(gt=0)],
|
140
|
+
Tuple[
|
141
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
142
|
+
],
|
143
|
+
] = None,
|
144
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
145
|
+
_content_type: Optional[StrictStr] = None,
|
146
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
147
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
148
|
+
) -> RESTResponseType:
|
149
|
+
"""Get Container Limits without preloading content
|
150
|
+
|
151
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
152
|
+
"""
|
153
|
+
if self.is_sync:
|
154
|
+
return self._get_container_limits_sync_without_preload_content(
|
155
|
+
_request_timeout=_request_timeout,
|
156
|
+
_request_auth=_request_auth,
|
157
|
+
_content_type=_content_type,
|
158
|
+
_headers=_headers,
|
159
|
+
_host_index=_host_index,
|
160
|
+
)
|
40
161
|
|
162
|
+
else:
|
163
|
+
return self._get_container_limits_async_without_preload_content(
|
164
|
+
_request_timeout=_request_timeout,
|
165
|
+
_request_auth=_request_auth,
|
166
|
+
_content_type=_content_type,
|
167
|
+
_headers=_headers,
|
168
|
+
_host_index=_host_index,
|
169
|
+
)
|
170
|
+
|
171
|
+
# Private async implementation methods
|
41
172
|
@validate_call
|
42
|
-
async def
|
173
|
+
async def _get_container_limits_async(
|
43
174
|
self,
|
44
175
|
_request_timeout: Union[
|
45
176
|
None,
|
@@ -99,7 +230,7 @@ class AdminApi:
|
|
99
230
|
).data
|
100
231
|
|
101
232
|
@validate_call
|
102
|
-
async def
|
233
|
+
async def _get_container_limits_async_with_http_info(
|
103
234
|
self,
|
104
235
|
_request_timeout: Union[
|
105
236
|
None,
|
@@ -154,12 +285,11 @@ class AdminApi:
|
|
154
285
|
)
|
155
286
|
await response_data.read()
|
156
287
|
return self.api_client.response_deserialize(
|
157
|
-
response_data=response_data,
|
158
|
-
response_types_map=_response_types_map,
|
288
|
+
response_data=response_data, response_types_map=_response_types_map
|
159
289
|
)
|
160
290
|
|
161
291
|
@validate_call
|
162
|
-
async def
|
292
|
+
async def _get_container_limits_async_without_preload_content(
|
163
293
|
self,
|
164
294
|
_request_timeout: Union[
|
165
295
|
None,
|
@@ -212,7 +342,80 @@ class AdminApi:
|
|
212
342
|
response_data = await self.api_client.call_api(
|
213
343
|
*_param, _request_timeout=_request_timeout
|
214
344
|
)
|
215
|
-
return response_data
|
345
|
+
return response_data
|
346
|
+
|
347
|
+
# Private sync implementation methods
|
348
|
+
@validate_call
|
349
|
+
def _get_container_limits_sync(
|
350
|
+
self,
|
351
|
+
_request_timeout: Union[
|
352
|
+
None,
|
353
|
+
Annotated[StrictFloat, Field(gt=0)],
|
354
|
+
Tuple[
|
355
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
356
|
+
],
|
357
|
+
] = None,
|
358
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
359
|
+
_content_type: Optional[StrictStr] = None,
|
360
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
361
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
362
|
+
) -> Dict[str, object]:
|
363
|
+
"""Synchronous version of get_container_limits"""
|
364
|
+
return async_to_sync(self._get_container_limits_async)(
|
365
|
+
_request_timeout=_request_timeout,
|
366
|
+
_request_auth=_request_auth,
|
367
|
+
_content_type=_content_type,
|
368
|
+
_headers=_headers,
|
369
|
+
_host_index=_host_index,
|
370
|
+
)
|
371
|
+
|
372
|
+
@validate_call
|
373
|
+
def _get_container_limits_sync_with_http_info(
|
374
|
+
self,
|
375
|
+
_request_timeout: Union[
|
376
|
+
None,
|
377
|
+
Annotated[StrictFloat, Field(gt=0)],
|
378
|
+
Tuple[
|
379
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
380
|
+
],
|
381
|
+
] = None,
|
382
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
383
|
+
_content_type: Optional[StrictStr] = None,
|
384
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
385
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
386
|
+
) -> ApiResponse[Dict[str, object]]:
|
387
|
+
"""Synchronous version of get_container_limits_with_http_info"""
|
388
|
+
return async_to_sync(self._get_container_limits_async_with_http_info)(
|
389
|
+
_request_timeout=_request_timeout,
|
390
|
+
_request_auth=_request_auth,
|
391
|
+
_content_type=_content_type,
|
392
|
+
_headers=_headers,
|
393
|
+
_host_index=_host_index,
|
394
|
+
)
|
395
|
+
|
396
|
+
@validate_call
|
397
|
+
def _get_container_limits_sync_without_preload_content(
|
398
|
+
self,
|
399
|
+
_request_timeout: Union[
|
400
|
+
None,
|
401
|
+
Annotated[StrictFloat, Field(gt=0)],
|
402
|
+
Tuple[
|
403
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
404
|
+
],
|
405
|
+
] = None,
|
406
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
407
|
+
_content_type: Optional[StrictStr] = None,
|
408
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
409
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
410
|
+
) -> RESTResponseType:
|
411
|
+
"""Synchronous version of get_container_limits_without_preload_content"""
|
412
|
+
return async_to_sync(self._get_container_limits_async_without_preload_content)(
|
413
|
+
_request_timeout=_request_timeout,
|
414
|
+
_request_auth=_request_auth,
|
415
|
+
_content_type=_content_type,
|
416
|
+
_headers=_headers,
|
417
|
+
_host_index=_host_index,
|
418
|
+
)
|
216
419
|
|
217
420
|
def _get_container_limits_serialize(
|
218
421
|
self,
|
@@ -266,7 +469,143 @@ class AdminApi:
|
|
266
469
|
)
|
267
470
|
|
268
471
|
@validate_call
|
269
|
-
|
472
|
+
def get_dependencies(
|
473
|
+
self,
|
474
|
+
include: Annotated[
|
475
|
+
Optional[List[StrictStr]],
|
476
|
+
Field(
|
477
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
478
|
+
),
|
479
|
+
] = None,
|
480
|
+
_request_timeout: Union[
|
481
|
+
None,
|
482
|
+
Annotated[StrictFloat, Field(gt=0)],
|
483
|
+
Tuple[
|
484
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
485
|
+
],
|
486
|
+
] = None,
|
487
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
488
|
+
_content_type: Optional[StrictStr] = None,
|
489
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
490
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
491
|
+
) -> Dict[str, str]:
|
492
|
+
"""List Installed Packages
|
493
|
+
|
494
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
495
|
+
"""
|
496
|
+
if self.is_sync:
|
497
|
+
return self._get_dependencies_sync(
|
498
|
+
include=include,
|
499
|
+
_request_timeout=_request_timeout,
|
500
|
+
_request_auth=_request_auth,
|
501
|
+
_content_type=_content_type,
|
502
|
+
_headers=_headers,
|
503
|
+
_host_index=_host_index,
|
504
|
+
)
|
505
|
+
|
506
|
+
else:
|
507
|
+
return self._get_dependencies_async(
|
508
|
+
include=include,
|
509
|
+
_request_timeout=_request_timeout,
|
510
|
+
_request_auth=_request_auth,
|
511
|
+
_content_type=_content_type,
|
512
|
+
_headers=_headers,
|
513
|
+
_host_index=_host_index,
|
514
|
+
)
|
515
|
+
|
516
|
+
@validate_call
|
517
|
+
def get_dependencies_with_http_info(
|
518
|
+
self,
|
519
|
+
include: Annotated[
|
520
|
+
Optional[List[StrictStr]],
|
521
|
+
Field(
|
522
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
523
|
+
),
|
524
|
+
] = None,
|
525
|
+
_request_timeout: Union[
|
526
|
+
None,
|
527
|
+
Annotated[StrictFloat, Field(gt=0)],
|
528
|
+
Tuple[
|
529
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
530
|
+
],
|
531
|
+
] = None,
|
532
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
533
|
+
_content_type: Optional[StrictStr] = None,
|
534
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
535
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
536
|
+
) -> ApiResponse[Dict[str, str]]:
|
537
|
+
"""List Installed Packages with HTTP info
|
538
|
+
|
539
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
540
|
+
"""
|
541
|
+
if self.is_sync:
|
542
|
+
return self._get_dependencies_sync_with_http_info(
|
543
|
+
include=include,
|
544
|
+
_request_timeout=_request_timeout,
|
545
|
+
_request_auth=_request_auth,
|
546
|
+
_content_type=_content_type,
|
547
|
+
_headers=_headers,
|
548
|
+
_host_index=_host_index,
|
549
|
+
)
|
550
|
+
|
551
|
+
else:
|
552
|
+
return self._get_dependencies_async_with_http_info(
|
553
|
+
include=include,
|
554
|
+
_request_timeout=_request_timeout,
|
555
|
+
_request_auth=_request_auth,
|
556
|
+
_content_type=_content_type,
|
557
|
+
_headers=_headers,
|
558
|
+
_host_index=_host_index,
|
559
|
+
)
|
560
|
+
|
561
|
+
@validate_call
|
562
|
+
def get_dependencies_without_preload_content(
|
563
|
+
self,
|
564
|
+
include: Annotated[
|
565
|
+
Optional[List[StrictStr]],
|
566
|
+
Field(
|
567
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
568
|
+
),
|
569
|
+
] = None,
|
570
|
+
_request_timeout: Union[
|
571
|
+
None,
|
572
|
+
Annotated[StrictFloat, Field(gt=0)],
|
573
|
+
Tuple[
|
574
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
575
|
+
],
|
576
|
+
] = None,
|
577
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
578
|
+
_content_type: Optional[StrictStr] = None,
|
579
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
580
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
581
|
+
) -> RESTResponseType:
|
582
|
+
"""List Installed Packages without preloading content
|
583
|
+
|
584
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
585
|
+
"""
|
586
|
+
if self.is_sync:
|
587
|
+
return self._get_dependencies_sync_without_preload_content(
|
588
|
+
include=include,
|
589
|
+
_request_timeout=_request_timeout,
|
590
|
+
_request_auth=_request_auth,
|
591
|
+
_content_type=_content_type,
|
592
|
+
_headers=_headers,
|
593
|
+
_host_index=_host_index,
|
594
|
+
)
|
595
|
+
|
596
|
+
else:
|
597
|
+
return self._get_dependencies_async_without_preload_content(
|
598
|
+
include=include,
|
599
|
+
_request_timeout=_request_timeout,
|
600
|
+
_request_auth=_request_auth,
|
601
|
+
_content_type=_content_type,
|
602
|
+
_headers=_headers,
|
603
|
+
_host_index=_host_index,
|
604
|
+
)
|
605
|
+
|
606
|
+
# Private async implementation methods
|
607
|
+
@validate_call
|
608
|
+
async def _get_dependencies_async(
|
270
609
|
self,
|
271
610
|
include: Annotated[
|
272
611
|
Optional[List[StrictStr]],
|
@@ -335,7 +674,7 @@ class AdminApi:
|
|
335
674
|
).data
|
336
675
|
|
337
676
|
@validate_call
|
338
|
-
async def
|
677
|
+
async def _get_dependencies_async_with_http_info(
|
339
678
|
self,
|
340
679
|
include: Annotated[
|
341
680
|
Optional[List[StrictStr]],
|
@@ -399,12 +738,11 @@ class AdminApi:
|
|
399
738
|
)
|
400
739
|
await response_data.read()
|
401
740
|
return self.api_client.response_deserialize(
|
402
|
-
response_data=response_data,
|
403
|
-
response_types_map=_response_types_map,
|
741
|
+
response_data=response_data, response_types_map=_response_types_map
|
404
742
|
)
|
405
743
|
|
406
744
|
@validate_call
|
407
|
-
async def
|
745
|
+
async def _get_dependencies_async_without_preload_content(
|
408
746
|
self,
|
409
747
|
include: Annotated[
|
410
748
|
Optional[List[StrictStr]],
|
@@ -466,41 +804,135 @@ class AdminApi:
|
|
466
804
|
response_data = await self.api_client.call_api(
|
467
805
|
*_param, _request_timeout=_request_timeout
|
468
806
|
)
|
469
|
-
return response_data
|
807
|
+
return response_data
|
470
808
|
|
471
|
-
|
809
|
+
# Private sync implementation methods
|
810
|
+
@validate_call
|
811
|
+
def _get_dependencies_sync(
|
472
812
|
self,
|
473
|
-
include
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
813
|
+
include: Annotated[
|
814
|
+
Optional[List[StrictStr]],
|
815
|
+
Field(
|
816
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
817
|
+
),
|
818
|
+
] = None,
|
819
|
+
_request_timeout: Union[
|
820
|
+
None,
|
821
|
+
Annotated[StrictFloat, Field(gt=0)],
|
822
|
+
Tuple[
|
823
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
824
|
+
],
|
825
|
+
] = None,
|
826
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
827
|
+
_content_type: Optional[StrictStr] = None,
|
828
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
829
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
830
|
+
) -> Dict[str, str]:
|
831
|
+
"""Synchronous version of get_dependencies"""
|
832
|
+
return async_to_sync(self._get_dependencies_async)(
|
833
|
+
include=include,
|
834
|
+
_request_timeout=_request_timeout,
|
835
|
+
_request_auth=_request_auth,
|
836
|
+
_content_type=_content_type,
|
837
|
+
_headers=_headers,
|
838
|
+
_host_index=_host_index,
|
839
|
+
)
|
500
840
|
|
501
|
-
|
502
|
-
|
503
|
-
|
841
|
+
@validate_call
|
842
|
+
def _get_dependencies_sync_with_http_info(
|
843
|
+
self,
|
844
|
+
include: Annotated[
|
845
|
+
Optional[List[StrictStr]],
|
846
|
+
Field(
|
847
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
848
|
+
),
|
849
|
+
] = None,
|
850
|
+
_request_timeout: Union[
|
851
|
+
None,
|
852
|
+
Annotated[StrictFloat, Field(gt=0)],
|
853
|
+
Tuple[
|
854
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
855
|
+
],
|
856
|
+
] = None,
|
857
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
858
|
+
_content_type: Optional[StrictStr] = None,
|
859
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
860
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
861
|
+
) -> ApiResponse[Dict[str, str]]:
|
862
|
+
"""Synchronous version of get_dependencies_with_http_info"""
|
863
|
+
return async_to_sync(self._get_dependencies_async_with_http_info)(
|
864
|
+
include=include,
|
865
|
+
_request_timeout=_request_timeout,
|
866
|
+
_request_auth=_request_auth,
|
867
|
+
_content_type=_content_type,
|
868
|
+
_headers=_headers,
|
869
|
+
_host_index=_host_index,
|
870
|
+
)
|
871
|
+
|
872
|
+
@validate_call
|
873
|
+
def _get_dependencies_sync_without_preload_content(
|
874
|
+
self,
|
875
|
+
include: Annotated[
|
876
|
+
Optional[List[StrictStr]],
|
877
|
+
Field(
|
878
|
+
description="List of regex patterns to match against package names. If not provided, all installed packages will be returned."
|
879
|
+
),
|
880
|
+
] = None,
|
881
|
+
_request_timeout: Union[
|
882
|
+
None,
|
883
|
+
Annotated[StrictFloat, Field(gt=0)],
|
884
|
+
Tuple[
|
885
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
886
|
+
],
|
887
|
+
] = None,
|
888
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
889
|
+
_content_type: Optional[StrictStr] = None,
|
890
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
891
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
892
|
+
) -> RESTResponseType:
|
893
|
+
"""Synchronous version of get_dependencies_without_preload_content"""
|
894
|
+
return async_to_sync(self._get_dependencies_async_without_preload_content)(
|
895
|
+
include=include,
|
896
|
+
_request_timeout=_request_timeout,
|
897
|
+
_request_auth=_request_auth,
|
898
|
+
_content_type=_content_type,
|
899
|
+
_headers=_headers,
|
900
|
+
_host_index=_host_index,
|
901
|
+
)
|
902
|
+
|
903
|
+
def _get_dependencies_serialize(
|
904
|
+
self,
|
905
|
+
include,
|
906
|
+
_request_auth,
|
907
|
+
_content_type,
|
908
|
+
_headers,
|
909
|
+
_host_index,
|
910
|
+
) -> RequestSerialized:
|
911
|
+
|
912
|
+
_host = None
|
913
|
+
|
914
|
+
_collection_formats: Dict[str, str] = {
|
915
|
+
"include": "multi",
|
916
|
+
}
|
917
|
+
|
918
|
+
_path_params: Dict[str, str] = {}
|
919
|
+
_query_params: List[Tuple[str, str]] = []
|
920
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
921
|
+
_form_params: List[Tuple[str, str]] = []
|
922
|
+
_files: Dict[
|
923
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
924
|
+
] = {}
|
925
|
+
_body_params: Optional[bytes] = None
|
926
|
+
|
927
|
+
# process the path parameters
|
928
|
+
# process the query parameters
|
929
|
+
if include is not None:
|
930
|
+
|
931
|
+
_query_params.append(("include", include))
|
932
|
+
|
933
|
+
# process the header parameters
|
934
|
+
# process the form parameters
|
935
|
+
# process the body parameter
|
504
936
|
|
505
937
|
# set the HTTP header `Accept`
|
506
938
|
if "Accept" not in _header_params:
|
@@ -508,26 +940,552 @@ class AdminApi:
|
|
508
940
|
["application/json"]
|
509
941
|
)
|
510
942
|
|
511
|
-
# authentication setting
|
512
|
-
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
943
|
+
# authentication setting
|
944
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
945
|
+
|
946
|
+
return self.api_client.param_serialize(
|
947
|
+
method="GET",
|
948
|
+
resource_path="/admin/dependencies",
|
949
|
+
path_params=_path_params,
|
950
|
+
query_params=_query_params,
|
951
|
+
header_params=_header_params,
|
952
|
+
body=_body_params,
|
953
|
+
post_params=_form_params,
|
954
|
+
files=_files,
|
955
|
+
auth_settings=_auth_settings,
|
956
|
+
collection_formats=_collection_formats,
|
957
|
+
_host=_host,
|
958
|
+
_request_auth=_request_auth,
|
959
|
+
)
|
960
|
+
|
961
|
+
@validate_call
|
962
|
+
def get_log_level(
|
963
|
+
self,
|
964
|
+
_request_timeout: Union[
|
965
|
+
None,
|
966
|
+
Annotated[StrictFloat, Field(gt=0)],
|
967
|
+
Tuple[
|
968
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
969
|
+
],
|
970
|
+
] = None,
|
971
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
972
|
+
_content_type: Optional[StrictStr] = None,
|
973
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
974
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
975
|
+
) -> LogLevel:
|
976
|
+
"""Get Logging Level
|
977
|
+
|
978
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
979
|
+
"""
|
980
|
+
if self.is_sync:
|
981
|
+
return self._get_log_level_sync(
|
982
|
+
_request_timeout=_request_timeout,
|
983
|
+
_request_auth=_request_auth,
|
984
|
+
_content_type=_content_type,
|
985
|
+
_headers=_headers,
|
986
|
+
_host_index=_host_index,
|
987
|
+
)
|
988
|
+
|
989
|
+
else:
|
990
|
+
return self._get_log_level_async(
|
991
|
+
_request_timeout=_request_timeout,
|
992
|
+
_request_auth=_request_auth,
|
993
|
+
_content_type=_content_type,
|
994
|
+
_headers=_headers,
|
995
|
+
_host_index=_host_index,
|
996
|
+
)
|
997
|
+
|
998
|
+
@validate_call
|
999
|
+
def get_log_level_with_http_info(
|
1000
|
+
self,
|
1001
|
+
_request_timeout: Union[
|
1002
|
+
None,
|
1003
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1004
|
+
Tuple[
|
1005
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1006
|
+
],
|
1007
|
+
] = None,
|
1008
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1009
|
+
_content_type: Optional[StrictStr] = None,
|
1010
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1011
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1012
|
+
) -> ApiResponse[LogLevel]:
|
1013
|
+
"""Get Logging Level with HTTP info
|
1014
|
+
|
1015
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1016
|
+
"""
|
1017
|
+
if self.is_sync:
|
1018
|
+
return self._get_log_level_sync_with_http_info(
|
1019
|
+
_request_timeout=_request_timeout,
|
1020
|
+
_request_auth=_request_auth,
|
1021
|
+
_content_type=_content_type,
|
1022
|
+
_headers=_headers,
|
1023
|
+
_host_index=_host_index,
|
1024
|
+
)
|
1025
|
+
|
1026
|
+
else:
|
1027
|
+
return self._get_log_level_async_with_http_info(
|
1028
|
+
_request_timeout=_request_timeout,
|
1029
|
+
_request_auth=_request_auth,
|
1030
|
+
_content_type=_content_type,
|
1031
|
+
_headers=_headers,
|
1032
|
+
_host_index=_host_index,
|
1033
|
+
)
|
1034
|
+
|
1035
|
+
@validate_call
|
1036
|
+
def get_log_level_without_preload_content(
|
1037
|
+
self,
|
1038
|
+
_request_timeout: Union[
|
1039
|
+
None,
|
1040
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1041
|
+
Tuple[
|
1042
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1043
|
+
],
|
1044
|
+
] = None,
|
1045
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1046
|
+
_content_type: Optional[StrictStr] = None,
|
1047
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1048
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1049
|
+
) -> RESTResponseType:
|
1050
|
+
"""Get Logging Level without preloading content
|
1051
|
+
|
1052
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1053
|
+
"""
|
1054
|
+
if self.is_sync:
|
1055
|
+
return self._get_log_level_sync_without_preload_content(
|
1056
|
+
_request_timeout=_request_timeout,
|
1057
|
+
_request_auth=_request_auth,
|
1058
|
+
_content_type=_content_type,
|
1059
|
+
_headers=_headers,
|
1060
|
+
_host_index=_host_index,
|
1061
|
+
)
|
1062
|
+
|
1063
|
+
else:
|
1064
|
+
return self._get_log_level_async_without_preload_content(
|
1065
|
+
_request_timeout=_request_timeout,
|
1066
|
+
_request_auth=_request_auth,
|
1067
|
+
_content_type=_content_type,
|
1068
|
+
_headers=_headers,
|
1069
|
+
_host_index=_host_index,
|
1070
|
+
)
|
1071
|
+
|
1072
|
+
# Private async implementation methods
|
1073
|
+
@validate_call
|
1074
|
+
async def _get_log_level_async(
|
1075
|
+
self,
|
1076
|
+
_request_timeout: Union[
|
1077
|
+
None,
|
1078
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1079
|
+
Tuple[
|
1080
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1081
|
+
],
|
1082
|
+
] = None,
|
1083
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1084
|
+
_content_type: Optional[StrictStr] = None,
|
1085
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1086
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1087
|
+
) -> LogLevel:
|
1088
|
+
"""(Deprecated) Get Logging Level
|
1089
|
+
|
1090
|
+
Get the log level of the server logger. Will be removed in a future release.
|
1091
|
+
|
1092
|
+
:param _request_timeout: timeout setting for this request. If one
|
1093
|
+
number provided, it will be total request
|
1094
|
+
timeout. It can also be a pair (tuple) of
|
1095
|
+
(connection, read) timeouts.
|
1096
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1097
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1098
|
+
request; this effectively ignores the
|
1099
|
+
authentication in the spec for a single request.
|
1100
|
+
:type _request_auth: dict, optional
|
1101
|
+
:param _content_type: force content-type for the request.
|
1102
|
+
:type _content_type: str, Optional
|
1103
|
+
:param _headers: set to override the headers for a single
|
1104
|
+
request; this effectively ignores the headers
|
1105
|
+
in the spec for a single request.
|
1106
|
+
:type _headers: dict, optional
|
1107
|
+
:param _host_index: set to override the host_index for a single
|
1108
|
+
request; this effectively ignores the host_index
|
1109
|
+
in the spec for a single request.
|
1110
|
+
:type _host_index: int, optional
|
1111
|
+
:return: Returns the result object.
|
1112
|
+
""" # noqa: E501
|
1113
|
+
warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
|
1114
|
+
|
1115
|
+
_param = self._get_log_level_serialize(
|
1116
|
+
_request_auth=_request_auth,
|
1117
|
+
_content_type=_content_type,
|
1118
|
+
_headers=_headers,
|
1119
|
+
_host_index=_host_index,
|
1120
|
+
)
|
1121
|
+
|
1122
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1123
|
+
"200": "LogLevel",
|
1124
|
+
}
|
1125
|
+
response_data = await self.api_client.call_api(
|
1126
|
+
*_param, _request_timeout=_request_timeout
|
1127
|
+
)
|
1128
|
+
await response_data.read()
|
1129
|
+
return self.api_client.response_deserialize(
|
1130
|
+
response_data=response_data,
|
1131
|
+
response_types_map=_response_types_map,
|
1132
|
+
).data
|
1133
|
+
|
1134
|
+
@validate_call
|
1135
|
+
async def _get_log_level_async_with_http_info(
|
1136
|
+
self,
|
1137
|
+
_request_timeout: Union[
|
1138
|
+
None,
|
1139
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1140
|
+
Tuple[
|
1141
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1142
|
+
],
|
1143
|
+
] = None,
|
1144
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1145
|
+
_content_type: Optional[StrictStr] = None,
|
1146
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1147
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1148
|
+
) -> ApiResponse[LogLevel]:
|
1149
|
+
"""(Deprecated) Get Logging Level
|
1150
|
+
|
1151
|
+
Get the log level of the server logger. Will be removed in a future release.
|
1152
|
+
|
1153
|
+
:param _request_timeout: timeout setting for this request. If one
|
1154
|
+
number provided, it will be total request
|
1155
|
+
timeout. It can also be a pair (tuple) of
|
1156
|
+
(connection, read) timeouts.
|
1157
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1158
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1159
|
+
request; this effectively ignores the
|
1160
|
+
authentication in the spec for a single request.
|
1161
|
+
:type _request_auth: dict, optional
|
1162
|
+
:param _content_type: force content-type for the request.
|
1163
|
+
:type _content_type: str, Optional
|
1164
|
+
:param _headers: set to override the headers for a single
|
1165
|
+
request; this effectively ignores the headers
|
1166
|
+
in the spec for a single request.
|
1167
|
+
:type _headers: dict, optional
|
1168
|
+
:param _host_index: set to override the host_index for a single
|
1169
|
+
request; this effectively ignores the host_index
|
1170
|
+
in the spec for a single request.
|
1171
|
+
:type _host_index: int, optional
|
1172
|
+
:return: Returns the result object.
|
1173
|
+
""" # noqa: E501
|
1174
|
+
warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
|
1175
|
+
|
1176
|
+
_param = self._get_log_level_serialize(
|
1177
|
+
_request_auth=_request_auth,
|
1178
|
+
_content_type=_content_type,
|
1179
|
+
_headers=_headers,
|
1180
|
+
_host_index=_host_index,
|
1181
|
+
)
|
1182
|
+
|
1183
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1184
|
+
"200": "LogLevel",
|
1185
|
+
}
|
1186
|
+
response_data = await self.api_client.call_api(
|
1187
|
+
*_param, _request_timeout=_request_timeout
|
1188
|
+
)
|
1189
|
+
await response_data.read()
|
1190
|
+
return self.api_client.response_deserialize(
|
1191
|
+
response_data=response_data, response_types_map=_response_types_map
|
1192
|
+
)
|
1193
|
+
|
1194
|
+
@validate_call
|
1195
|
+
async def _get_log_level_async_without_preload_content(
|
1196
|
+
self,
|
1197
|
+
_request_timeout: Union[
|
1198
|
+
None,
|
1199
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1200
|
+
Tuple[
|
1201
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1202
|
+
],
|
1203
|
+
] = None,
|
1204
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1205
|
+
_content_type: Optional[StrictStr] = None,
|
1206
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1207
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1208
|
+
) -> RESTResponseType:
|
1209
|
+
"""(Deprecated) Get Logging Level
|
1210
|
+
|
1211
|
+
Get the log level of the server logger. Will be removed in a future release.
|
1212
|
+
|
1213
|
+
:param _request_timeout: timeout setting for this request. If one
|
1214
|
+
number provided, it will be total request
|
1215
|
+
timeout. It can also be a pair (tuple) of
|
1216
|
+
(connection, read) timeouts.
|
1217
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1218
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1219
|
+
request; this effectively ignores the
|
1220
|
+
authentication in the spec for a single request.
|
1221
|
+
:type _request_auth: dict, optional
|
1222
|
+
:param _content_type: force content-type for the request.
|
1223
|
+
:type _content_type: str, Optional
|
1224
|
+
:param _headers: set to override the headers for a single
|
1225
|
+
request; this effectively ignores the headers
|
1226
|
+
in the spec for a single request.
|
1227
|
+
:type _headers: dict, optional
|
1228
|
+
:param _host_index: set to override the host_index for a single
|
1229
|
+
request; this effectively ignores the host_index
|
1230
|
+
in the spec for a single request.
|
1231
|
+
:type _host_index: int, optional
|
1232
|
+
:return: Returns the result object.
|
1233
|
+
""" # noqa: E501
|
1234
|
+
warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
|
1235
|
+
|
1236
|
+
_param = self._get_log_level_serialize(
|
1237
|
+
_request_auth=_request_auth,
|
1238
|
+
_content_type=_content_type,
|
1239
|
+
_headers=_headers,
|
1240
|
+
_host_index=_host_index,
|
1241
|
+
)
|
1242
|
+
|
1243
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1244
|
+
"200": "LogLevel",
|
1245
|
+
}
|
1246
|
+
response_data = await self.api_client.call_api(
|
1247
|
+
*_param, _request_timeout=_request_timeout
|
1248
|
+
)
|
1249
|
+
return response_data
|
1250
|
+
|
1251
|
+
# Private sync implementation methods
|
1252
|
+
@validate_call
|
1253
|
+
def _get_log_level_sync(
|
1254
|
+
self,
|
1255
|
+
_request_timeout: Union[
|
1256
|
+
None,
|
1257
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1258
|
+
Tuple[
|
1259
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1260
|
+
],
|
1261
|
+
] = None,
|
1262
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1263
|
+
_content_type: Optional[StrictStr] = None,
|
1264
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1265
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1266
|
+
) -> LogLevel:
|
1267
|
+
"""Synchronous version of get_log_level"""
|
1268
|
+
return async_to_sync(self._get_log_level_async)(
|
1269
|
+
_request_timeout=_request_timeout,
|
1270
|
+
_request_auth=_request_auth,
|
1271
|
+
_content_type=_content_type,
|
1272
|
+
_headers=_headers,
|
1273
|
+
_host_index=_host_index,
|
1274
|
+
)
|
1275
|
+
|
1276
|
+
@validate_call
|
1277
|
+
def _get_log_level_sync_with_http_info(
|
1278
|
+
self,
|
1279
|
+
_request_timeout: Union[
|
1280
|
+
None,
|
1281
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1282
|
+
Tuple[
|
1283
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1284
|
+
],
|
1285
|
+
] = None,
|
1286
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1287
|
+
_content_type: Optional[StrictStr] = None,
|
1288
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1289
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1290
|
+
) -> ApiResponse[LogLevel]:
|
1291
|
+
"""Synchronous version of get_log_level_with_http_info"""
|
1292
|
+
return async_to_sync(self._get_log_level_async_with_http_info)(
|
1293
|
+
_request_timeout=_request_timeout,
|
1294
|
+
_request_auth=_request_auth,
|
1295
|
+
_content_type=_content_type,
|
1296
|
+
_headers=_headers,
|
1297
|
+
_host_index=_host_index,
|
1298
|
+
)
|
1299
|
+
|
1300
|
+
@validate_call
|
1301
|
+
def _get_log_level_sync_without_preload_content(
|
1302
|
+
self,
|
1303
|
+
_request_timeout: Union[
|
1304
|
+
None,
|
1305
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1306
|
+
Tuple[
|
1307
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1308
|
+
],
|
1309
|
+
] = None,
|
1310
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1311
|
+
_content_type: Optional[StrictStr] = None,
|
1312
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1313
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1314
|
+
) -> RESTResponseType:
|
1315
|
+
"""Synchronous version of get_log_level_without_preload_content"""
|
1316
|
+
return async_to_sync(self._get_log_level_async_without_preload_content)(
|
1317
|
+
_request_timeout=_request_timeout,
|
1318
|
+
_request_auth=_request_auth,
|
1319
|
+
_content_type=_content_type,
|
1320
|
+
_headers=_headers,
|
1321
|
+
_host_index=_host_index,
|
1322
|
+
)
|
1323
|
+
|
1324
|
+
def _get_log_level_serialize(
|
1325
|
+
self,
|
1326
|
+
_request_auth,
|
1327
|
+
_content_type,
|
1328
|
+
_headers,
|
1329
|
+
_host_index,
|
1330
|
+
) -> RequestSerialized:
|
1331
|
+
|
1332
|
+
_host = None
|
1333
|
+
|
1334
|
+
_collection_formats: Dict[str, str] = {}
|
1335
|
+
|
1336
|
+
_path_params: Dict[str, str] = {}
|
1337
|
+
_query_params: List[Tuple[str, str]] = []
|
1338
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1339
|
+
_form_params: List[Tuple[str, str]] = []
|
1340
|
+
_files: Dict[
|
1341
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1342
|
+
] = {}
|
1343
|
+
_body_params: Optional[bytes] = None
|
1344
|
+
|
1345
|
+
# process the path parameters
|
1346
|
+
# process the query parameters
|
1347
|
+
# process the header parameters
|
1348
|
+
# process the form parameters
|
1349
|
+
# process the body parameter
|
1350
|
+
|
1351
|
+
# set the HTTP header `Accept`
|
1352
|
+
if "Accept" not in _header_params:
|
1353
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1354
|
+
["application/json"]
|
1355
|
+
)
|
1356
|
+
|
1357
|
+
# authentication setting
|
1358
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
1359
|
+
|
1360
|
+
return self.api_client.param_serialize(
|
1361
|
+
method="GET",
|
1362
|
+
resource_path="/admin/log-level",
|
1363
|
+
path_params=_path_params,
|
1364
|
+
query_params=_query_params,
|
1365
|
+
header_params=_header_params,
|
1366
|
+
body=_body_params,
|
1367
|
+
post_params=_form_params,
|
1368
|
+
files=_files,
|
1369
|
+
auth_settings=_auth_settings,
|
1370
|
+
collection_formats=_collection_formats,
|
1371
|
+
_host=_host,
|
1372
|
+
_request_auth=_request_auth,
|
1373
|
+
)
|
1374
|
+
|
1375
|
+
@validate_call
|
1376
|
+
def get_memory_usage(
|
1377
|
+
self,
|
1378
|
+
_request_timeout: Union[
|
1379
|
+
None,
|
1380
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1381
|
+
Tuple[
|
1382
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1383
|
+
],
|
1384
|
+
] = None,
|
1385
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1386
|
+
_content_type: Optional[StrictStr] = None,
|
1387
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1388
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1389
|
+
) -> float:
|
1390
|
+
"""Get Memory Usage
|
1391
|
+
|
1392
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1393
|
+
"""
|
1394
|
+
if self.is_sync:
|
1395
|
+
return self._get_memory_usage_sync(
|
1396
|
+
_request_timeout=_request_timeout,
|
1397
|
+
_request_auth=_request_auth,
|
1398
|
+
_content_type=_content_type,
|
1399
|
+
_headers=_headers,
|
1400
|
+
_host_index=_host_index,
|
1401
|
+
)
|
1402
|
+
|
1403
|
+
else:
|
1404
|
+
return self._get_memory_usage_async(
|
1405
|
+
_request_timeout=_request_timeout,
|
1406
|
+
_request_auth=_request_auth,
|
1407
|
+
_content_type=_content_type,
|
1408
|
+
_headers=_headers,
|
1409
|
+
_host_index=_host_index,
|
1410
|
+
)
|
1411
|
+
|
1412
|
+
@validate_call
|
1413
|
+
def get_memory_usage_with_http_info(
|
1414
|
+
self,
|
1415
|
+
_request_timeout: Union[
|
1416
|
+
None,
|
1417
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1418
|
+
Tuple[
|
1419
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1420
|
+
],
|
1421
|
+
] = None,
|
1422
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1423
|
+
_content_type: Optional[StrictStr] = None,
|
1424
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1425
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1426
|
+
) -> ApiResponse[float]:
|
1427
|
+
"""Get Memory Usage with HTTP info
|
1428
|
+
|
1429
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1430
|
+
"""
|
1431
|
+
if self.is_sync:
|
1432
|
+
return self._get_memory_usage_sync_with_http_info(
|
1433
|
+
_request_timeout=_request_timeout,
|
1434
|
+
_request_auth=_request_auth,
|
1435
|
+
_content_type=_content_type,
|
1436
|
+
_headers=_headers,
|
1437
|
+
_host_index=_host_index,
|
1438
|
+
)
|
1439
|
+
|
1440
|
+
else:
|
1441
|
+
return self._get_memory_usage_async_with_http_info(
|
1442
|
+
_request_timeout=_request_timeout,
|
1443
|
+
_request_auth=_request_auth,
|
1444
|
+
_content_type=_content_type,
|
1445
|
+
_headers=_headers,
|
1446
|
+
_host_index=_host_index,
|
1447
|
+
)
|
1448
|
+
|
1449
|
+
@validate_call
|
1450
|
+
def get_memory_usage_without_preload_content(
|
1451
|
+
self,
|
1452
|
+
_request_timeout: Union[
|
1453
|
+
None,
|
1454
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1455
|
+
Tuple[
|
1456
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1457
|
+
],
|
1458
|
+
] = None,
|
1459
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1460
|
+
_content_type: Optional[StrictStr] = None,
|
1461
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1462
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1463
|
+
) -> RESTResponseType:
|
1464
|
+
"""Get Memory Usage without preloading content
|
1465
|
+
|
1466
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1467
|
+
"""
|
1468
|
+
if self.is_sync:
|
1469
|
+
return self._get_memory_usage_sync_without_preload_content(
|
1470
|
+
_request_timeout=_request_timeout,
|
1471
|
+
_request_auth=_request_auth,
|
1472
|
+
_content_type=_content_type,
|
1473
|
+
_headers=_headers,
|
1474
|
+
_host_index=_host_index,
|
1475
|
+
)
|
513
1476
|
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
files=_files,
|
523
|
-
auth_settings=_auth_settings,
|
524
|
-
collection_formats=_collection_formats,
|
525
|
-
_host=_host,
|
526
|
-
_request_auth=_request_auth,
|
527
|
-
)
|
1477
|
+
else:
|
1478
|
+
return self._get_memory_usage_async_without_preload_content(
|
1479
|
+
_request_timeout=_request_timeout,
|
1480
|
+
_request_auth=_request_auth,
|
1481
|
+
_content_type=_content_type,
|
1482
|
+
_headers=_headers,
|
1483
|
+
_host_index=_host_index,
|
1484
|
+
)
|
528
1485
|
|
1486
|
+
# Private async implementation methods
|
529
1487
|
@validate_call
|
530
|
-
async def
|
1488
|
+
async def _get_memory_usage_async(
|
531
1489
|
self,
|
532
1490
|
_request_timeout: Union[
|
533
1491
|
None,
|
@@ -540,10 +1498,10 @@ class AdminApi:
|
|
540
1498
|
_content_type: Optional[StrictStr] = None,
|
541
1499
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
542
1500
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
543
|
-
) ->
|
544
|
-
"""
|
1501
|
+
) -> float:
|
1502
|
+
"""Get Memory Usage
|
545
1503
|
|
546
|
-
|
1504
|
+
Resident Set Size (RSS) in MB — the actual memory used by the process in RAM. Represents the physical memory footprint. Important for monitoring real usage.
|
547
1505
|
|
548
1506
|
:param _request_timeout: timeout setting for this request. If one
|
549
1507
|
number provided, it will be total request
|
@@ -566,9 +1524,8 @@ class AdminApi:
|
|
566
1524
|
:type _host_index: int, optional
|
567
1525
|
:return: Returns the result object.
|
568
1526
|
""" # noqa: E501
|
569
|
-
warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
|
570
1527
|
|
571
|
-
_param = self.
|
1528
|
+
_param = self._get_memory_usage_serialize(
|
572
1529
|
_request_auth=_request_auth,
|
573
1530
|
_content_type=_content_type,
|
574
1531
|
_headers=_headers,
|
@@ -576,7 +1533,7 @@ class AdminApi:
|
|
576
1533
|
)
|
577
1534
|
|
578
1535
|
_response_types_map: Dict[str, Optional[str]] = {
|
579
|
-
"200": "
|
1536
|
+
"200": "float",
|
580
1537
|
}
|
581
1538
|
response_data = await self.api_client.call_api(
|
582
1539
|
*_param, _request_timeout=_request_timeout
|
@@ -588,7 +1545,7 @@ class AdminApi:
|
|
588
1545
|
).data
|
589
1546
|
|
590
1547
|
@validate_call
|
591
|
-
async def
|
1548
|
+
async def _get_memory_usage_async_with_http_info(
|
592
1549
|
self,
|
593
1550
|
_request_timeout: Union[
|
594
1551
|
None,
|
@@ -601,10 +1558,10 @@ class AdminApi:
|
|
601
1558
|
_content_type: Optional[StrictStr] = None,
|
602
1559
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
603
1560
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
604
|
-
) -> ApiResponse[
|
605
|
-
"""
|
1561
|
+
) -> ApiResponse[float]:
|
1562
|
+
"""Get Memory Usage
|
606
1563
|
|
607
|
-
|
1564
|
+
Resident Set Size (RSS) in MB — the actual memory used by the process in RAM. Represents the physical memory footprint. Important for monitoring real usage.
|
608
1565
|
|
609
1566
|
:param _request_timeout: timeout setting for this request. If one
|
610
1567
|
number provided, it will be total request
|
@@ -627,9 +1584,8 @@ class AdminApi:
|
|
627
1584
|
:type _host_index: int, optional
|
628
1585
|
:return: Returns the result object.
|
629
1586
|
""" # noqa: E501
|
630
|
-
warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
|
631
1587
|
|
632
|
-
_param = self.
|
1588
|
+
_param = self._get_memory_usage_serialize(
|
633
1589
|
_request_auth=_request_auth,
|
634
1590
|
_content_type=_content_type,
|
635
1591
|
_headers=_headers,
|
@@ -637,19 +1593,18 @@ class AdminApi:
|
|
637
1593
|
)
|
638
1594
|
|
639
1595
|
_response_types_map: Dict[str, Optional[str]] = {
|
640
|
-
"200": "
|
1596
|
+
"200": "float",
|
641
1597
|
}
|
642
1598
|
response_data = await self.api_client.call_api(
|
643
1599
|
*_param, _request_timeout=_request_timeout
|
644
1600
|
)
|
645
1601
|
await response_data.read()
|
646
1602
|
return self.api_client.response_deserialize(
|
647
|
-
response_data=response_data,
|
648
|
-
response_types_map=_response_types_map,
|
1603
|
+
response_data=response_data, response_types_map=_response_types_map
|
649
1604
|
)
|
650
1605
|
|
651
1606
|
@validate_call
|
652
|
-
async def
|
1607
|
+
async def _get_memory_usage_async_without_preload_content(
|
653
1608
|
self,
|
654
1609
|
_request_timeout: Union[
|
655
1610
|
None,
|
@@ -663,9 +1618,9 @@ class AdminApi:
|
|
663
1618
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
664
1619
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
665
1620
|
) -> RESTResponseType:
|
666
|
-
"""
|
1621
|
+
"""Get Memory Usage
|
667
1622
|
|
668
|
-
|
1623
|
+
Resident Set Size (RSS) in MB — the actual memory used by the process in RAM. Represents the physical memory footprint. Important for monitoring real usage.
|
669
1624
|
|
670
1625
|
:param _request_timeout: timeout setting for this request. If one
|
671
1626
|
number provided, it will be total request
|
@@ -688,9 +1643,8 @@ class AdminApi:
|
|
688
1643
|
:type _host_index: int, optional
|
689
1644
|
:return: Returns the result object.
|
690
1645
|
""" # noqa: E501
|
691
|
-
warnings.warn("GET /admin/log-level is deprecated.", DeprecationWarning)
|
692
1646
|
|
693
|
-
_param = self.
|
1647
|
+
_param = self._get_memory_usage_serialize(
|
694
1648
|
_request_auth=_request_auth,
|
695
1649
|
_content_type=_content_type,
|
696
1650
|
_headers=_headers,
|
@@ -698,14 +1652,87 @@ class AdminApi:
|
|
698
1652
|
)
|
699
1653
|
|
700
1654
|
_response_types_map: Dict[str, Optional[str]] = {
|
701
|
-
"200": "
|
1655
|
+
"200": "float",
|
702
1656
|
}
|
703
1657
|
response_data = await self.api_client.call_api(
|
704
1658
|
*_param, _request_timeout=_request_timeout
|
705
1659
|
)
|
706
|
-
return response_data
|
1660
|
+
return response_data
|
707
1661
|
|
708
|
-
|
1662
|
+
# Private sync implementation methods
|
1663
|
+
@validate_call
|
1664
|
+
def _get_memory_usage_sync(
|
1665
|
+
self,
|
1666
|
+
_request_timeout: Union[
|
1667
|
+
None,
|
1668
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1669
|
+
Tuple[
|
1670
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1671
|
+
],
|
1672
|
+
] = None,
|
1673
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1674
|
+
_content_type: Optional[StrictStr] = None,
|
1675
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1676
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1677
|
+
) -> float:
|
1678
|
+
"""Synchronous version of get_memory_usage"""
|
1679
|
+
return async_to_sync(self._get_memory_usage_async)(
|
1680
|
+
_request_timeout=_request_timeout,
|
1681
|
+
_request_auth=_request_auth,
|
1682
|
+
_content_type=_content_type,
|
1683
|
+
_headers=_headers,
|
1684
|
+
_host_index=_host_index,
|
1685
|
+
)
|
1686
|
+
|
1687
|
+
@validate_call
|
1688
|
+
def _get_memory_usage_sync_with_http_info(
|
1689
|
+
self,
|
1690
|
+
_request_timeout: Union[
|
1691
|
+
None,
|
1692
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1693
|
+
Tuple[
|
1694
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1695
|
+
],
|
1696
|
+
] = None,
|
1697
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1698
|
+
_content_type: Optional[StrictStr] = None,
|
1699
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1700
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1701
|
+
) -> ApiResponse[float]:
|
1702
|
+
"""Synchronous version of get_memory_usage_with_http_info"""
|
1703
|
+
return async_to_sync(self._get_memory_usage_async_with_http_info)(
|
1704
|
+
_request_timeout=_request_timeout,
|
1705
|
+
_request_auth=_request_auth,
|
1706
|
+
_content_type=_content_type,
|
1707
|
+
_headers=_headers,
|
1708
|
+
_host_index=_host_index,
|
1709
|
+
)
|
1710
|
+
|
1711
|
+
@validate_call
|
1712
|
+
def _get_memory_usage_sync_without_preload_content(
|
1713
|
+
self,
|
1714
|
+
_request_timeout: Union[
|
1715
|
+
None,
|
1716
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1717
|
+
Tuple[
|
1718
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1719
|
+
],
|
1720
|
+
] = None,
|
1721
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1722
|
+
_content_type: Optional[StrictStr] = None,
|
1723
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1724
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1725
|
+
) -> RESTResponseType:
|
1726
|
+
"""Synchronous version of get_memory_usage_without_preload_content"""
|
1727
|
+
return async_to_sync(self._get_memory_usage_async_without_preload_content)(
|
1728
|
+
_request_timeout=_request_timeout,
|
1729
|
+
_request_auth=_request_auth,
|
1730
|
+
_content_type=_content_type,
|
1731
|
+
_headers=_headers,
|
1732
|
+
_host_index=_host_index,
|
1733
|
+
)
|
1734
|
+
|
1735
|
+
def _get_memory_usage_serialize(
|
709
1736
|
self,
|
710
1737
|
_request_auth,
|
711
1738
|
_content_type,
|
@@ -743,7 +1770,7 @@ class AdminApi:
|
|
743
1770
|
|
744
1771
|
return self.api_client.param_serialize(
|
745
1772
|
method="GET",
|
746
|
-
resource_path="/admin/
|
1773
|
+
resource_path="/admin/memory",
|
747
1774
|
path_params=_path_params,
|
748
1775
|
query_params=_query_params,
|
749
1776
|
header_params=_header_params,
|
@@ -757,7 +1784,7 @@ class AdminApi:
|
|
757
1784
|
)
|
758
1785
|
|
759
1786
|
@validate_call
|
760
|
-
|
1787
|
+
def get_metrics(
|
761
1788
|
self,
|
762
1789
|
_request_timeout: Union[
|
763
1790
|
None,
|
@@ -770,10 +1797,122 @@ class AdminApi:
|
|
770
1797
|
_content_type: Optional[StrictStr] = None,
|
771
1798
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
772
1799
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
773
|
-
) ->
|
774
|
-
"""
|
1800
|
+
) -> object:
|
1801
|
+
"""Metrics
|
1802
|
+
|
1803
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1804
|
+
"""
|
1805
|
+
if self.is_sync:
|
1806
|
+
return self._get_metrics_sync(
|
1807
|
+
_request_timeout=_request_timeout,
|
1808
|
+
_request_auth=_request_auth,
|
1809
|
+
_content_type=_content_type,
|
1810
|
+
_headers=_headers,
|
1811
|
+
_host_index=_host_index,
|
1812
|
+
)
|
775
1813
|
|
776
|
-
|
1814
|
+
else:
|
1815
|
+
return self._get_metrics_async(
|
1816
|
+
_request_timeout=_request_timeout,
|
1817
|
+
_request_auth=_request_auth,
|
1818
|
+
_content_type=_content_type,
|
1819
|
+
_headers=_headers,
|
1820
|
+
_host_index=_host_index,
|
1821
|
+
)
|
1822
|
+
|
1823
|
+
@validate_call
|
1824
|
+
def get_metrics_with_http_info(
|
1825
|
+
self,
|
1826
|
+
_request_timeout: Union[
|
1827
|
+
None,
|
1828
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1829
|
+
Tuple[
|
1830
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1831
|
+
],
|
1832
|
+
] = None,
|
1833
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1834
|
+
_content_type: Optional[StrictStr] = None,
|
1835
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1836
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1837
|
+
) -> ApiResponse[object]:
|
1838
|
+
"""Metrics with HTTP info
|
1839
|
+
|
1840
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1841
|
+
"""
|
1842
|
+
if self.is_sync:
|
1843
|
+
return self._get_metrics_sync_with_http_info(
|
1844
|
+
_request_timeout=_request_timeout,
|
1845
|
+
_request_auth=_request_auth,
|
1846
|
+
_content_type=_content_type,
|
1847
|
+
_headers=_headers,
|
1848
|
+
_host_index=_host_index,
|
1849
|
+
)
|
1850
|
+
|
1851
|
+
else:
|
1852
|
+
return self._get_metrics_async_with_http_info(
|
1853
|
+
_request_timeout=_request_timeout,
|
1854
|
+
_request_auth=_request_auth,
|
1855
|
+
_content_type=_content_type,
|
1856
|
+
_headers=_headers,
|
1857
|
+
_host_index=_host_index,
|
1858
|
+
)
|
1859
|
+
|
1860
|
+
@validate_call
|
1861
|
+
def get_metrics_without_preload_content(
|
1862
|
+
self,
|
1863
|
+
_request_timeout: Union[
|
1864
|
+
None,
|
1865
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1866
|
+
Tuple[
|
1867
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1868
|
+
],
|
1869
|
+
] = None,
|
1870
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1871
|
+
_content_type: Optional[StrictStr] = None,
|
1872
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1873
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1874
|
+
) -> RESTResponseType:
|
1875
|
+
"""Metrics without preloading content
|
1876
|
+
|
1877
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1878
|
+
"""
|
1879
|
+
if self.is_sync:
|
1880
|
+
return self._get_metrics_sync_without_preload_content(
|
1881
|
+
_request_timeout=_request_timeout,
|
1882
|
+
_request_auth=_request_auth,
|
1883
|
+
_content_type=_content_type,
|
1884
|
+
_headers=_headers,
|
1885
|
+
_host_index=_host_index,
|
1886
|
+
)
|
1887
|
+
|
1888
|
+
else:
|
1889
|
+
return self._get_metrics_async_without_preload_content(
|
1890
|
+
_request_timeout=_request_timeout,
|
1891
|
+
_request_auth=_request_auth,
|
1892
|
+
_content_type=_content_type,
|
1893
|
+
_headers=_headers,
|
1894
|
+
_host_index=_host_index,
|
1895
|
+
)
|
1896
|
+
|
1897
|
+
# Private async implementation methods
|
1898
|
+
@validate_call
|
1899
|
+
async def _get_metrics_async(
|
1900
|
+
self,
|
1901
|
+
_request_timeout: Union[
|
1902
|
+
None,
|
1903
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1904
|
+
Tuple[
|
1905
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1906
|
+
],
|
1907
|
+
] = None,
|
1908
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1909
|
+
_content_type: Optional[StrictStr] = None,
|
1910
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1911
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1912
|
+
) -> object:
|
1913
|
+
"""Metrics
|
1914
|
+
|
1915
|
+
Get Prometheus metrics for the application. Returns plain text.
|
777
1916
|
|
778
1917
|
:param _request_timeout: timeout setting for this request. If one
|
779
1918
|
number provided, it will be total request
|
@@ -797,7 +1936,7 @@ class AdminApi:
|
|
797
1936
|
:return: Returns the result object.
|
798
1937
|
""" # noqa: E501
|
799
1938
|
|
800
|
-
_param = self.
|
1939
|
+
_param = self._get_metrics_serialize(
|
801
1940
|
_request_auth=_request_auth,
|
802
1941
|
_content_type=_content_type,
|
803
1942
|
_headers=_headers,
|
@@ -805,7 +1944,7 @@ class AdminApi:
|
|
805
1944
|
)
|
806
1945
|
|
807
1946
|
_response_types_map: Dict[str, Optional[str]] = {
|
808
|
-
"200": "
|
1947
|
+
"200": "object",
|
809
1948
|
}
|
810
1949
|
response_data = await self.api_client.call_api(
|
811
1950
|
*_param, _request_timeout=_request_timeout
|
@@ -817,7 +1956,7 @@ class AdminApi:
|
|
817
1956
|
).data
|
818
1957
|
|
819
1958
|
@validate_call
|
820
|
-
async def
|
1959
|
+
async def _get_metrics_async_with_http_info(
|
821
1960
|
self,
|
822
1961
|
_request_timeout: Union[
|
823
1962
|
None,
|
@@ -830,10 +1969,10 @@ class AdminApi:
|
|
830
1969
|
_content_type: Optional[StrictStr] = None,
|
831
1970
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
832
1971
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
833
|
-
) -> ApiResponse[
|
834
|
-
"""
|
1972
|
+
) -> ApiResponse[object]:
|
1973
|
+
"""Metrics
|
835
1974
|
|
836
|
-
|
1975
|
+
Get Prometheus metrics for the application. Returns plain text.
|
837
1976
|
|
838
1977
|
:param _request_timeout: timeout setting for this request. If one
|
839
1978
|
number provided, it will be total request
|
@@ -857,7 +1996,7 @@ class AdminApi:
|
|
857
1996
|
:return: Returns the result object.
|
858
1997
|
""" # noqa: E501
|
859
1998
|
|
860
|
-
_param = self.
|
1999
|
+
_param = self._get_metrics_serialize(
|
861
2000
|
_request_auth=_request_auth,
|
862
2001
|
_content_type=_content_type,
|
863
2002
|
_headers=_headers,
|
@@ -865,7 +2004,7 @@ class AdminApi:
|
|
865
2004
|
)
|
866
2005
|
|
867
2006
|
_response_types_map: Dict[str, Optional[str]] = {
|
868
|
-
"200": "
|
2007
|
+
"200": "object",
|
869
2008
|
}
|
870
2009
|
response_data = await self.api_client.call_api(
|
871
2010
|
*_param, _request_timeout=_request_timeout
|
@@ -877,7 +2016,7 @@ class AdminApi:
|
|
877
2016
|
)
|
878
2017
|
|
879
2018
|
@validate_call
|
880
|
-
async def
|
2019
|
+
async def _get_metrics_async_without_preload_content(
|
881
2020
|
self,
|
882
2021
|
_request_timeout: Union[
|
883
2022
|
None,
|
@@ -891,9 +2030,9 @@ class AdminApi:
|
|
891
2030
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
892
2031
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
893
2032
|
) -> RESTResponseType:
|
894
|
-
"""
|
2033
|
+
"""Metrics
|
895
2034
|
|
896
|
-
|
2035
|
+
Get Prometheus metrics for the application. Returns plain text.
|
897
2036
|
|
898
2037
|
:param _request_timeout: timeout setting for this request. If one
|
899
2038
|
number provided, it will be total request
|
@@ -917,22 +2056,95 @@ class AdminApi:
|
|
917
2056
|
:return: Returns the result object.
|
918
2057
|
""" # noqa: E501
|
919
2058
|
|
920
|
-
_param = self.
|
2059
|
+
_param = self._get_metrics_serialize(
|
2060
|
+
_request_auth=_request_auth,
|
2061
|
+
_content_type=_content_type,
|
2062
|
+
_headers=_headers,
|
2063
|
+
_host_index=_host_index,
|
2064
|
+
)
|
2065
|
+
|
2066
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2067
|
+
"200": "object",
|
2068
|
+
}
|
2069
|
+
response_data = await self.api_client.call_api(
|
2070
|
+
*_param, _request_timeout=_request_timeout
|
2071
|
+
)
|
2072
|
+
return response_data
|
2073
|
+
|
2074
|
+
# Private sync implementation methods
|
2075
|
+
@validate_call
|
2076
|
+
def _get_metrics_sync(
|
2077
|
+
self,
|
2078
|
+
_request_timeout: Union[
|
2079
|
+
None,
|
2080
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2081
|
+
Tuple[
|
2082
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2083
|
+
],
|
2084
|
+
] = None,
|
2085
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2086
|
+
_content_type: Optional[StrictStr] = None,
|
2087
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2088
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2089
|
+
) -> object:
|
2090
|
+
"""Synchronous version of get_metrics"""
|
2091
|
+
return async_to_sync(self._get_metrics_async)(
|
2092
|
+
_request_timeout=_request_timeout,
|
2093
|
+
_request_auth=_request_auth,
|
2094
|
+
_content_type=_content_type,
|
2095
|
+
_headers=_headers,
|
2096
|
+
_host_index=_host_index,
|
2097
|
+
)
|
2098
|
+
|
2099
|
+
@validate_call
|
2100
|
+
def _get_metrics_sync_with_http_info(
|
2101
|
+
self,
|
2102
|
+
_request_timeout: Union[
|
2103
|
+
None,
|
2104
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2105
|
+
Tuple[
|
2106
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2107
|
+
],
|
2108
|
+
] = None,
|
2109
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2110
|
+
_content_type: Optional[StrictStr] = None,
|
2111
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2112
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2113
|
+
) -> ApiResponse[object]:
|
2114
|
+
"""Synchronous version of get_metrics_with_http_info"""
|
2115
|
+
return async_to_sync(self._get_metrics_async_with_http_info)(
|
2116
|
+
_request_timeout=_request_timeout,
|
2117
|
+
_request_auth=_request_auth,
|
2118
|
+
_content_type=_content_type,
|
2119
|
+
_headers=_headers,
|
2120
|
+
_host_index=_host_index,
|
2121
|
+
)
|
2122
|
+
|
2123
|
+
@validate_call
|
2124
|
+
def _get_metrics_sync_without_preload_content(
|
2125
|
+
self,
|
2126
|
+
_request_timeout: Union[
|
2127
|
+
None,
|
2128
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2129
|
+
Tuple[
|
2130
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2131
|
+
],
|
2132
|
+
] = None,
|
2133
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2134
|
+
_content_type: Optional[StrictStr] = None,
|
2135
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2136
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2137
|
+
) -> RESTResponseType:
|
2138
|
+
"""Synchronous version of get_metrics_without_preload_content"""
|
2139
|
+
return async_to_sync(self._get_metrics_async_without_preload_content)(
|
2140
|
+
_request_timeout=_request_timeout,
|
921
2141
|
_request_auth=_request_auth,
|
922
2142
|
_content_type=_content_type,
|
923
2143
|
_headers=_headers,
|
924
2144
|
_host_index=_host_index,
|
925
2145
|
)
|
926
2146
|
|
927
|
-
|
928
|
-
"200": "float",
|
929
|
-
}
|
930
|
-
response_data = await self.api_client.call_api(
|
931
|
-
*_param, _request_timeout=_request_timeout
|
932
|
-
)
|
933
|
-
return response_data.response
|
934
|
-
|
935
|
-
def _get_memory_usage_serialize(
|
2147
|
+
def _get_metrics_serialize(
|
936
2148
|
self,
|
937
2149
|
_request_auth,
|
938
2150
|
_content_type,
|
@@ -970,7 +2182,7 @@ class AdminApi:
|
|
970
2182
|
|
971
2183
|
return self.api_client.param_serialize(
|
972
2184
|
method="GET",
|
973
|
-
resource_path="/admin/
|
2185
|
+
resource_path="/admin/metrics",
|
974
2186
|
path_params=_path_params,
|
975
2187
|
query_params=_query_params,
|
976
2188
|
header_params=_header_params,
|
@@ -984,7 +2196,119 @@ class AdminApi:
|
|
984
2196
|
)
|
985
2197
|
|
986
2198
|
@validate_call
|
987
|
-
|
2199
|
+
def get_threads(
|
2200
|
+
self,
|
2201
|
+
_request_timeout: Union[
|
2202
|
+
None,
|
2203
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2204
|
+
Tuple[
|
2205
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2206
|
+
],
|
2207
|
+
] = None,
|
2208
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2209
|
+
_content_type: Optional[StrictStr] = None,
|
2210
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2211
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2212
|
+
) -> Dict[str, object]:
|
2213
|
+
"""Get Threads
|
2214
|
+
|
2215
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2216
|
+
"""
|
2217
|
+
if self.is_sync:
|
2218
|
+
return self._get_threads_sync(
|
2219
|
+
_request_timeout=_request_timeout,
|
2220
|
+
_request_auth=_request_auth,
|
2221
|
+
_content_type=_content_type,
|
2222
|
+
_headers=_headers,
|
2223
|
+
_host_index=_host_index,
|
2224
|
+
)
|
2225
|
+
|
2226
|
+
else:
|
2227
|
+
return self._get_threads_async(
|
2228
|
+
_request_timeout=_request_timeout,
|
2229
|
+
_request_auth=_request_auth,
|
2230
|
+
_content_type=_content_type,
|
2231
|
+
_headers=_headers,
|
2232
|
+
_host_index=_host_index,
|
2233
|
+
)
|
2234
|
+
|
2235
|
+
@validate_call
|
2236
|
+
def get_threads_with_http_info(
|
2237
|
+
self,
|
2238
|
+
_request_timeout: Union[
|
2239
|
+
None,
|
2240
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2241
|
+
Tuple[
|
2242
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2243
|
+
],
|
2244
|
+
] = None,
|
2245
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2246
|
+
_content_type: Optional[StrictStr] = None,
|
2247
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2248
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2249
|
+
) -> ApiResponse[Dict[str, object]]:
|
2250
|
+
"""Get Threads with HTTP info
|
2251
|
+
|
2252
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2253
|
+
"""
|
2254
|
+
if self.is_sync:
|
2255
|
+
return self._get_threads_sync_with_http_info(
|
2256
|
+
_request_timeout=_request_timeout,
|
2257
|
+
_request_auth=_request_auth,
|
2258
|
+
_content_type=_content_type,
|
2259
|
+
_headers=_headers,
|
2260
|
+
_host_index=_host_index,
|
2261
|
+
)
|
2262
|
+
|
2263
|
+
else:
|
2264
|
+
return self._get_threads_async_with_http_info(
|
2265
|
+
_request_timeout=_request_timeout,
|
2266
|
+
_request_auth=_request_auth,
|
2267
|
+
_content_type=_content_type,
|
2268
|
+
_headers=_headers,
|
2269
|
+
_host_index=_host_index,
|
2270
|
+
)
|
2271
|
+
|
2272
|
+
@validate_call
|
2273
|
+
def get_threads_without_preload_content(
|
2274
|
+
self,
|
2275
|
+
_request_timeout: Union[
|
2276
|
+
None,
|
2277
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2278
|
+
Tuple[
|
2279
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2280
|
+
],
|
2281
|
+
] = None,
|
2282
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2283
|
+
_content_type: Optional[StrictStr] = None,
|
2284
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2285
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2286
|
+
) -> RESTResponseType:
|
2287
|
+
"""Get Threads without preloading content
|
2288
|
+
|
2289
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2290
|
+
"""
|
2291
|
+
if self.is_sync:
|
2292
|
+
return self._get_threads_sync_without_preload_content(
|
2293
|
+
_request_timeout=_request_timeout,
|
2294
|
+
_request_auth=_request_auth,
|
2295
|
+
_content_type=_content_type,
|
2296
|
+
_headers=_headers,
|
2297
|
+
_host_index=_host_index,
|
2298
|
+
)
|
2299
|
+
|
2300
|
+
else:
|
2301
|
+
return self._get_threads_async_without_preload_content(
|
2302
|
+
_request_timeout=_request_timeout,
|
2303
|
+
_request_auth=_request_auth,
|
2304
|
+
_content_type=_content_type,
|
2305
|
+
_headers=_headers,
|
2306
|
+
_host_index=_host_index,
|
2307
|
+
)
|
2308
|
+
|
2309
|
+
# Private async implementation methods
|
2310
|
+
@validate_call
|
2311
|
+
async def _get_threads_async(
|
988
2312
|
self,
|
989
2313
|
_request_timeout: Union[
|
990
2314
|
None,
|
@@ -1044,7 +2368,7 @@ class AdminApi:
|
|
1044
2368
|
).data
|
1045
2369
|
|
1046
2370
|
@validate_call
|
1047
|
-
async def
|
2371
|
+
async def _get_threads_async_with_http_info(
|
1048
2372
|
self,
|
1049
2373
|
_request_timeout: Union[
|
1050
2374
|
None,
|
@@ -1099,12 +2423,11 @@ class AdminApi:
|
|
1099
2423
|
)
|
1100
2424
|
await response_data.read()
|
1101
2425
|
return self.api_client.response_deserialize(
|
1102
|
-
response_data=response_data,
|
1103
|
-
response_types_map=_response_types_map,
|
2426
|
+
response_data=response_data, response_types_map=_response_types_map
|
1104
2427
|
)
|
1105
2428
|
|
1106
2429
|
@validate_call
|
1107
|
-
async def
|
2430
|
+
async def _get_threads_async_without_preload_content(
|
1108
2431
|
self,
|
1109
2432
|
_request_timeout: Union[
|
1110
2433
|
None,
|
@@ -1157,7 +2480,80 @@ class AdminApi:
|
|
1157
2480
|
response_data = await self.api_client.call_api(
|
1158
2481
|
*_param, _request_timeout=_request_timeout
|
1159
2482
|
)
|
1160
|
-
return response_data
|
2483
|
+
return response_data
|
2484
|
+
|
2485
|
+
# Private sync implementation methods
|
2486
|
+
@validate_call
|
2487
|
+
def _get_threads_sync(
|
2488
|
+
self,
|
2489
|
+
_request_timeout: Union[
|
2490
|
+
None,
|
2491
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2492
|
+
Tuple[
|
2493
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2494
|
+
],
|
2495
|
+
] = None,
|
2496
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2497
|
+
_content_type: Optional[StrictStr] = None,
|
2498
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2499
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2500
|
+
) -> Dict[str, object]:
|
2501
|
+
"""Synchronous version of get_threads"""
|
2502
|
+
return async_to_sync(self._get_threads_async)(
|
2503
|
+
_request_timeout=_request_timeout,
|
2504
|
+
_request_auth=_request_auth,
|
2505
|
+
_content_type=_content_type,
|
2506
|
+
_headers=_headers,
|
2507
|
+
_host_index=_host_index,
|
2508
|
+
)
|
2509
|
+
|
2510
|
+
@validate_call
|
2511
|
+
def _get_threads_sync_with_http_info(
|
2512
|
+
self,
|
2513
|
+
_request_timeout: Union[
|
2514
|
+
None,
|
2515
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2516
|
+
Tuple[
|
2517
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2518
|
+
],
|
2519
|
+
] = None,
|
2520
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2521
|
+
_content_type: Optional[StrictStr] = None,
|
2522
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2523
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2524
|
+
) -> ApiResponse[Dict[str, object]]:
|
2525
|
+
"""Synchronous version of get_threads_with_http_info"""
|
2526
|
+
return async_to_sync(self._get_threads_async_with_http_info)(
|
2527
|
+
_request_timeout=_request_timeout,
|
2528
|
+
_request_auth=_request_auth,
|
2529
|
+
_content_type=_content_type,
|
2530
|
+
_headers=_headers,
|
2531
|
+
_host_index=_host_index,
|
2532
|
+
)
|
2533
|
+
|
2534
|
+
@validate_call
|
2535
|
+
def _get_threads_sync_without_preload_content(
|
2536
|
+
self,
|
2537
|
+
_request_timeout: Union[
|
2538
|
+
None,
|
2539
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2540
|
+
Tuple[
|
2541
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2542
|
+
],
|
2543
|
+
] = None,
|
2544
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2545
|
+
_content_type: Optional[StrictStr] = None,
|
2546
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2547
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2548
|
+
) -> RESTResponseType:
|
2549
|
+
"""Synchronous version of get_threads_without_preload_content"""
|
2550
|
+
return async_to_sync(self._get_threads_async_without_preload_content)(
|
2551
|
+
_request_timeout=_request_timeout,
|
2552
|
+
_request_auth=_request_auth,
|
2553
|
+
_content_type=_content_type,
|
2554
|
+
_headers=_headers,
|
2555
|
+
_host_index=_host_index,
|
2556
|
+
)
|
1161
2557
|
|
1162
2558
|
def _get_threads_serialize(
|
1163
2559
|
self,
|
@@ -1211,7 +2607,128 @@ class AdminApi:
|
|
1211
2607
|
)
|
1212
2608
|
|
1213
2609
|
@validate_call
|
1214
|
-
|
2610
|
+
def get_uptime(
|
2611
|
+
self,
|
2612
|
+
type: Optional[StrictStr] = None,
|
2613
|
+
_request_timeout: Union[
|
2614
|
+
None,
|
2615
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2616
|
+
Tuple[
|
2617
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2618
|
+
],
|
2619
|
+
] = None,
|
2620
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2621
|
+
_content_type: Optional[StrictStr] = None,
|
2622
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2623
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2624
|
+
) -> str:
|
2625
|
+
"""Get Uptime
|
2626
|
+
|
2627
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2628
|
+
"""
|
2629
|
+
if self.is_sync:
|
2630
|
+
return self._get_uptime_sync(
|
2631
|
+
type=type,
|
2632
|
+
_request_timeout=_request_timeout,
|
2633
|
+
_request_auth=_request_auth,
|
2634
|
+
_content_type=_content_type,
|
2635
|
+
_headers=_headers,
|
2636
|
+
_host_index=_host_index,
|
2637
|
+
)
|
2638
|
+
|
2639
|
+
else:
|
2640
|
+
return self._get_uptime_async(
|
2641
|
+
type=type,
|
2642
|
+
_request_timeout=_request_timeout,
|
2643
|
+
_request_auth=_request_auth,
|
2644
|
+
_content_type=_content_type,
|
2645
|
+
_headers=_headers,
|
2646
|
+
_host_index=_host_index,
|
2647
|
+
)
|
2648
|
+
|
2649
|
+
@validate_call
|
2650
|
+
def get_uptime_with_http_info(
|
2651
|
+
self,
|
2652
|
+
type: Optional[StrictStr] = None,
|
2653
|
+
_request_timeout: Union[
|
2654
|
+
None,
|
2655
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2656
|
+
Tuple[
|
2657
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2658
|
+
],
|
2659
|
+
] = None,
|
2660
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2661
|
+
_content_type: Optional[StrictStr] = None,
|
2662
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2663
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2664
|
+
) -> ApiResponse[str]:
|
2665
|
+
"""Get Uptime with HTTP info
|
2666
|
+
|
2667
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2668
|
+
"""
|
2669
|
+
if self.is_sync:
|
2670
|
+
return self._get_uptime_sync_with_http_info(
|
2671
|
+
type=type,
|
2672
|
+
_request_timeout=_request_timeout,
|
2673
|
+
_request_auth=_request_auth,
|
2674
|
+
_content_type=_content_type,
|
2675
|
+
_headers=_headers,
|
2676
|
+
_host_index=_host_index,
|
2677
|
+
)
|
2678
|
+
|
2679
|
+
else:
|
2680
|
+
return self._get_uptime_async_with_http_info(
|
2681
|
+
type=type,
|
2682
|
+
_request_timeout=_request_timeout,
|
2683
|
+
_request_auth=_request_auth,
|
2684
|
+
_content_type=_content_type,
|
2685
|
+
_headers=_headers,
|
2686
|
+
_host_index=_host_index,
|
2687
|
+
)
|
2688
|
+
|
2689
|
+
@validate_call
|
2690
|
+
def get_uptime_without_preload_content(
|
2691
|
+
self,
|
2692
|
+
type: Optional[StrictStr] = None,
|
2693
|
+
_request_timeout: Union[
|
2694
|
+
None,
|
2695
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2696
|
+
Tuple[
|
2697
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2698
|
+
],
|
2699
|
+
] = None,
|
2700
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2701
|
+
_content_type: Optional[StrictStr] = None,
|
2702
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2703
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2704
|
+
) -> RESTResponseType:
|
2705
|
+
"""Get Uptime without preloading content
|
2706
|
+
|
2707
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2708
|
+
"""
|
2709
|
+
if self.is_sync:
|
2710
|
+
return self._get_uptime_sync_without_preload_content(
|
2711
|
+
type=type,
|
2712
|
+
_request_timeout=_request_timeout,
|
2713
|
+
_request_auth=_request_auth,
|
2714
|
+
_content_type=_content_type,
|
2715
|
+
_headers=_headers,
|
2716
|
+
_host_index=_host_index,
|
2717
|
+
)
|
2718
|
+
|
2719
|
+
else:
|
2720
|
+
return self._get_uptime_async_without_preload_content(
|
2721
|
+
type=type,
|
2722
|
+
_request_timeout=_request_timeout,
|
2723
|
+
_request_auth=_request_auth,
|
2724
|
+
_content_type=_content_type,
|
2725
|
+
_headers=_headers,
|
2726
|
+
_host_index=_host_index,
|
2727
|
+
)
|
2728
|
+
|
2729
|
+
# Private async implementation methods
|
2730
|
+
@validate_call
|
2731
|
+
async def _get_uptime_async(
|
1215
2732
|
self,
|
1216
2733
|
type: Optional[StrictStr] = None,
|
1217
2734
|
_request_timeout: Union[
|
@@ -1275,7 +2792,7 @@ class AdminApi:
|
|
1275
2792
|
).data
|
1276
2793
|
|
1277
2794
|
@validate_call
|
1278
|
-
async def
|
2795
|
+
async def _get_uptime_async_with_http_info(
|
1279
2796
|
self,
|
1280
2797
|
type: Optional[StrictStr] = None,
|
1281
2798
|
_request_timeout: Union[
|
@@ -1334,12 +2851,11 @@ class AdminApi:
|
|
1334
2851
|
)
|
1335
2852
|
await response_data.read()
|
1336
2853
|
return self.api_client.response_deserialize(
|
1337
|
-
response_data=response_data,
|
1338
|
-
response_types_map=_response_types_map,
|
2854
|
+
response_data=response_data, response_types_map=_response_types_map
|
1339
2855
|
)
|
1340
2856
|
|
1341
2857
|
@validate_call
|
1342
|
-
async def
|
2858
|
+
async def _get_uptime_async_without_preload_content(
|
1343
2859
|
self,
|
1344
2860
|
type: Optional[StrictStr] = None,
|
1345
2861
|
_request_timeout: Union[
|
@@ -1396,7 +2912,86 @@ class AdminApi:
|
|
1396
2912
|
response_data = await self.api_client.call_api(
|
1397
2913
|
*_param, _request_timeout=_request_timeout
|
1398
2914
|
)
|
1399
|
-
return response_data
|
2915
|
+
return response_data
|
2916
|
+
|
2917
|
+
# Private sync implementation methods
|
2918
|
+
@validate_call
|
2919
|
+
def _get_uptime_sync(
|
2920
|
+
self,
|
2921
|
+
type: Optional[StrictStr] = None,
|
2922
|
+
_request_timeout: Union[
|
2923
|
+
None,
|
2924
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2925
|
+
Tuple[
|
2926
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2927
|
+
],
|
2928
|
+
] = None,
|
2929
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2930
|
+
_content_type: Optional[StrictStr] = None,
|
2931
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2932
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2933
|
+
) -> str:
|
2934
|
+
"""Synchronous version of get_uptime"""
|
2935
|
+
return async_to_sync(self._get_uptime_async)(
|
2936
|
+
type=type,
|
2937
|
+
_request_timeout=_request_timeout,
|
2938
|
+
_request_auth=_request_auth,
|
2939
|
+
_content_type=_content_type,
|
2940
|
+
_headers=_headers,
|
2941
|
+
_host_index=_host_index,
|
2942
|
+
)
|
2943
|
+
|
2944
|
+
@validate_call
|
2945
|
+
def _get_uptime_sync_with_http_info(
|
2946
|
+
self,
|
2947
|
+
type: Optional[StrictStr] = None,
|
2948
|
+
_request_timeout: Union[
|
2949
|
+
None,
|
2950
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2951
|
+
Tuple[
|
2952
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2953
|
+
],
|
2954
|
+
] = None,
|
2955
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2956
|
+
_content_type: Optional[StrictStr] = None,
|
2957
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2958
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2959
|
+
) -> ApiResponse[str]:
|
2960
|
+
"""Synchronous version of get_uptime_with_http_info"""
|
2961
|
+
return async_to_sync(self._get_uptime_async_with_http_info)(
|
2962
|
+
type=type,
|
2963
|
+
_request_timeout=_request_timeout,
|
2964
|
+
_request_auth=_request_auth,
|
2965
|
+
_content_type=_content_type,
|
2966
|
+
_headers=_headers,
|
2967
|
+
_host_index=_host_index,
|
2968
|
+
)
|
2969
|
+
|
2970
|
+
@validate_call
|
2971
|
+
def _get_uptime_sync_without_preload_content(
|
2972
|
+
self,
|
2973
|
+
type: Optional[StrictStr] = None,
|
2974
|
+
_request_timeout: Union[
|
2975
|
+
None,
|
2976
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2977
|
+
Tuple[
|
2978
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2979
|
+
],
|
2980
|
+
] = None,
|
2981
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2982
|
+
_content_type: Optional[StrictStr] = None,
|
2983
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2984
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2985
|
+
) -> RESTResponseType:
|
2986
|
+
"""Synchronous version of get_uptime_without_preload_content"""
|
2987
|
+
return async_to_sync(self._get_uptime_async_without_preload_content)(
|
2988
|
+
type=type,
|
2989
|
+
_request_timeout=_request_timeout,
|
2990
|
+
_request_auth=_request_auth,
|
2991
|
+
_content_type=_content_type,
|
2992
|
+
_headers=_headers,
|
2993
|
+
_host_index=_host_index,
|
2994
|
+
)
|
1400
2995
|
|
1401
2996
|
def _get_uptime_serialize(
|
1402
2997
|
self,
|