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.pay.client.api_client import ApiClient, RequestSerialized
|
|
25
25
|
from crypticorn.pay.client.api_response import ApiResponse
|
26
26
|
from crypticorn.pay.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[Optional[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, Optional[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[Optional[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, Optional[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[Optional[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[Optional[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[Optional[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[Optional[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[Optional[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, Optional[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[Optional[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, Optional[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[Optional[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"]
|
513
|
-
|
514
|
-
return self.api_client.param_serialize(
|
515
|
-
method="GET",
|
516
|
-
resource_path="/admin/dependencies",
|
517
|
-
path_params=_path_params,
|
518
|
-
query_params=_query_params,
|
519
|
-
header_params=_header_params,
|
520
|
-
body=_body_params,
|
521
|
-
post_params=_form_params,
|
522
|
-
files=_files,
|
523
|
-
auth_settings=_auth_settings,
|
524
|
-
collection_formats=_collection_formats,
|
525
|
-
_host=_host,
|
526
|
-
_request_auth=_request_auth,
|
527
|
-
)
|
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
|
+
)
|
1476
|
+
|
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,19 +2004,18 @@ 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
|
872
2011
|
)
|
873
2012
|
await response_data.read()
|
874
2013
|
return self.api_client.response_deserialize(
|
875
|
-
response_data=response_data,
|
876
|
-
response_types_map=_response_types_map,
|
2014
|
+
response_data=response_data, response_types_map=_response_types_map
|
877
2015
|
)
|
878
2016
|
|
879
2017
|
@validate_call
|
880
|
-
async def
|
2018
|
+
async def _get_metrics_async_without_preload_content(
|
881
2019
|
self,
|
882
2020
|
_request_timeout: Union[
|
883
2021
|
None,
|
@@ -891,9 +2029,9 @@ class AdminApi:
|
|
891
2029
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
892
2030
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
893
2031
|
) -> RESTResponseType:
|
894
|
-
"""
|
2032
|
+
"""Metrics
|
895
2033
|
|
896
|
-
|
2034
|
+
Get Prometheus metrics for the application. Returns plain text.
|
897
2035
|
|
898
2036
|
:param _request_timeout: timeout setting for this request. If one
|
899
2037
|
number provided, it will be total request
|
@@ -917,22 +2055,95 @@ class AdminApi:
|
|
917
2055
|
:return: Returns the result object.
|
918
2056
|
""" # noqa: E501
|
919
2057
|
|
920
|
-
_param = self.
|
2058
|
+
_param = self._get_metrics_serialize(
|
2059
|
+
_request_auth=_request_auth,
|
2060
|
+
_content_type=_content_type,
|
2061
|
+
_headers=_headers,
|
2062
|
+
_host_index=_host_index,
|
2063
|
+
)
|
2064
|
+
|
2065
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2066
|
+
"200": "object",
|
2067
|
+
}
|
2068
|
+
response_data = await self.api_client.call_api(
|
2069
|
+
*_param, _request_timeout=_request_timeout
|
2070
|
+
)
|
2071
|
+
return response_data
|
2072
|
+
|
2073
|
+
# Private sync implementation methods
|
2074
|
+
@validate_call
|
2075
|
+
def _get_metrics_sync(
|
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
|
+
) -> object:
|
2089
|
+
"""Synchronous version of get_metrics"""
|
2090
|
+
return async_to_sync(self._get_metrics_async)(
|
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
|
+
@validate_call
|
2099
|
+
def _get_metrics_sync_with_http_info(
|
2100
|
+
self,
|
2101
|
+
_request_timeout: Union[
|
2102
|
+
None,
|
2103
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2104
|
+
Tuple[
|
2105
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2106
|
+
],
|
2107
|
+
] = None,
|
2108
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2109
|
+
_content_type: Optional[StrictStr] = None,
|
2110
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2111
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2112
|
+
) -> ApiResponse[object]:
|
2113
|
+
"""Synchronous version of get_metrics_with_http_info"""
|
2114
|
+
return async_to_sync(self._get_metrics_async_with_http_info)(
|
2115
|
+
_request_timeout=_request_timeout,
|
2116
|
+
_request_auth=_request_auth,
|
2117
|
+
_content_type=_content_type,
|
2118
|
+
_headers=_headers,
|
2119
|
+
_host_index=_host_index,
|
2120
|
+
)
|
2121
|
+
|
2122
|
+
@validate_call
|
2123
|
+
def _get_metrics_sync_without_preload_content(
|
2124
|
+
self,
|
2125
|
+
_request_timeout: Union[
|
2126
|
+
None,
|
2127
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2128
|
+
Tuple[
|
2129
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2130
|
+
],
|
2131
|
+
] = None,
|
2132
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2133
|
+
_content_type: Optional[StrictStr] = None,
|
2134
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2135
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2136
|
+
) -> RESTResponseType:
|
2137
|
+
"""Synchronous version of get_metrics_without_preload_content"""
|
2138
|
+
return async_to_sync(self._get_metrics_async_without_preload_content)(
|
2139
|
+
_request_timeout=_request_timeout,
|
921
2140
|
_request_auth=_request_auth,
|
922
2141
|
_content_type=_content_type,
|
923
2142
|
_headers=_headers,
|
924
2143
|
_host_index=_host_index,
|
925
2144
|
)
|
926
2145
|
|
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(
|
2146
|
+
def _get_metrics_serialize(
|
936
2147
|
self,
|
937
2148
|
_request_auth,
|
938
2149
|
_content_type,
|
@@ -970,7 +2181,7 @@ class AdminApi:
|
|
970
2181
|
|
971
2182
|
return self.api_client.param_serialize(
|
972
2183
|
method="GET",
|
973
|
-
resource_path="/admin/
|
2184
|
+
resource_path="/admin/metrics",
|
974
2185
|
path_params=_path_params,
|
975
2186
|
query_params=_query_params,
|
976
2187
|
header_params=_header_params,
|
@@ -984,7 +2195,119 @@ class AdminApi:
|
|
984
2195
|
)
|
985
2196
|
|
986
2197
|
@validate_call
|
987
|
-
|
2198
|
+
def get_threads(
|
2199
|
+
self,
|
2200
|
+
_request_timeout: Union[
|
2201
|
+
None,
|
2202
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2203
|
+
Tuple[
|
2204
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2205
|
+
],
|
2206
|
+
] = None,
|
2207
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2208
|
+
_content_type: Optional[StrictStr] = None,
|
2209
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2210
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2211
|
+
) -> Dict[str, object]:
|
2212
|
+
"""Get Threads
|
2213
|
+
|
2214
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2215
|
+
"""
|
2216
|
+
if self.is_sync:
|
2217
|
+
return self._get_threads_sync(
|
2218
|
+
_request_timeout=_request_timeout,
|
2219
|
+
_request_auth=_request_auth,
|
2220
|
+
_content_type=_content_type,
|
2221
|
+
_headers=_headers,
|
2222
|
+
_host_index=_host_index,
|
2223
|
+
)
|
2224
|
+
|
2225
|
+
else:
|
2226
|
+
return self._get_threads_async(
|
2227
|
+
_request_timeout=_request_timeout,
|
2228
|
+
_request_auth=_request_auth,
|
2229
|
+
_content_type=_content_type,
|
2230
|
+
_headers=_headers,
|
2231
|
+
_host_index=_host_index,
|
2232
|
+
)
|
2233
|
+
|
2234
|
+
@validate_call
|
2235
|
+
def get_threads_with_http_info(
|
2236
|
+
self,
|
2237
|
+
_request_timeout: Union[
|
2238
|
+
None,
|
2239
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2240
|
+
Tuple[
|
2241
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2242
|
+
],
|
2243
|
+
] = None,
|
2244
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2245
|
+
_content_type: Optional[StrictStr] = None,
|
2246
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2247
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2248
|
+
) -> ApiResponse[Dict[str, object]]:
|
2249
|
+
"""Get Threads with HTTP info
|
2250
|
+
|
2251
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2252
|
+
"""
|
2253
|
+
if self.is_sync:
|
2254
|
+
return self._get_threads_sync_with_http_info(
|
2255
|
+
_request_timeout=_request_timeout,
|
2256
|
+
_request_auth=_request_auth,
|
2257
|
+
_content_type=_content_type,
|
2258
|
+
_headers=_headers,
|
2259
|
+
_host_index=_host_index,
|
2260
|
+
)
|
2261
|
+
|
2262
|
+
else:
|
2263
|
+
return self._get_threads_async_with_http_info(
|
2264
|
+
_request_timeout=_request_timeout,
|
2265
|
+
_request_auth=_request_auth,
|
2266
|
+
_content_type=_content_type,
|
2267
|
+
_headers=_headers,
|
2268
|
+
_host_index=_host_index,
|
2269
|
+
)
|
2270
|
+
|
2271
|
+
@validate_call
|
2272
|
+
def get_threads_without_preload_content(
|
2273
|
+
self,
|
2274
|
+
_request_timeout: Union[
|
2275
|
+
None,
|
2276
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2277
|
+
Tuple[
|
2278
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2279
|
+
],
|
2280
|
+
] = None,
|
2281
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2282
|
+
_content_type: Optional[StrictStr] = None,
|
2283
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2284
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2285
|
+
) -> RESTResponseType:
|
2286
|
+
"""Get Threads without preloading content
|
2287
|
+
|
2288
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2289
|
+
"""
|
2290
|
+
if self.is_sync:
|
2291
|
+
return self._get_threads_sync_without_preload_content(
|
2292
|
+
_request_timeout=_request_timeout,
|
2293
|
+
_request_auth=_request_auth,
|
2294
|
+
_content_type=_content_type,
|
2295
|
+
_headers=_headers,
|
2296
|
+
_host_index=_host_index,
|
2297
|
+
)
|
2298
|
+
|
2299
|
+
else:
|
2300
|
+
return self._get_threads_async_without_preload_content(
|
2301
|
+
_request_timeout=_request_timeout,
|
2302
|
+
_request_auth=_request_auth,
|
2303
|
+
_content_type=_content_type,
|
2304
|
+
_headers=_headers,
|
2305
|
+
_host_index=_host_index,
|
2306
|
+
)
|
2307
|
+
|
2308
|
+
# Private async implementation methods
|
2309
|
+
@validate_call
|
2310
|
+
async def _get_threads_async(
|
988
2311
|
self,
|
989
2312
|
_request_timeout: Union[
|
990
2313
|
None,
|
@@ -1044,7 +2367,7 @@ class AdminApi:
|
|
1044
2367
|
).data
|
1045
2368
|
|
1046
2369
|
@validate_call
|
1047
|
-
async def
|
2370
|
+
async def _get_threads_async_with_http_info(
|
1048
2371
|
self,
|
1049
2372
|
_request_timeout: Union[
|
1050
2373
|
None,
|
@@ -1099,12 +2422,11 @@ class AdminApi:
|
|
1099
2422
|
)
|
1100
2423
|
await response_data.read()
|
1101
2424
|
return self.api_client.response_deserialize(
|
1102
|
-
response_data=response_data,
|
1103
|
-
response_types_map=_response_types_map,
|
2425
|
+
response_data=response_data, response_types_map=_response_types_map
|
1104
2426
|
)
|
1105
2427
|
|
1106
2428
|
@validate_call
|
1107
|
-
async def
|
2429
|
+
async def _get_threads_async_without_preload_content(
|
1108
2430
|
self,
|
1109
2431
|
_request_timeout: Union[
|
1110
2432
|
None,
|
@@ -1157,7 +2479,80 @@ class AdminApi:
|
|
1157
2479
|
response_data = await self.api_client.call_api(
|
1158
2480
|
*_param, _request_timeout=_request_timeout
|
1159
2481
|
)
|
1160
|
-
return response_data
|
2482
|
+
return response_data
|
2483
|
+
|
2484
|
+
# Private sync implementation methods
|
2485
|
+
@validate_call
|
2486
|
+
def _get_threads_sync(
|
2487
|
+
self,
|
2488
|
+
_request_timeout: Union[
|
2489
|
+
None,
|
2490
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2491
|
+
Tuple[
|
2492
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2493
|
+
],
|
2494
|
+
] = None,
|
2495
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2496
|
+
_content_type: Optional[StrictStr] = None,
|
2497
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2498
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2499
|
+
) -> Dict[str, object]:
|
2500
|
+
"""Synchronous version of get_threads"""
|
2501
|
+
return async_to_sync(self._get_threads_async)(
|
2502
|
+
_request_timeout=_request_timeout,
|
2503
|
+
_request_auth=_request_auth,
|
2504
|
+
_content_type=_content_type,
|
2505
|
+
_headers=_headers,
|
2506
|
+
_host_index=_host_index,
|
2507
|
+
)
|
2508
|
+
|
2509
|
+
@validate_call
|
2510
|
+
def _get_threads_sync_with_http_info(
|
2511
|
+
self,
|
2512
|
+
_request_timeout: Union[
|
2513
|
+
None,
|
2514
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2515
|
+
Tuple[
|
2516
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2517
|
+
],
|
2518
|
+
] = None,
|
2519
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2520
|
+
_content_type: Optional[StrictStr] = None,
|
2521
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2522
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2523
|
+
) -> ApiResponse[Dict[str, object]]:
|
2524
|
+
"""Synchronous version of get_threads_with_http_info"""
|
2525
|
+
return async_to_sync(self._get_threads_async_with_http_info)(
|
2526
|
+
_request_timeout=_request_timeout,
|
2527
|
+
_request_auth=_request_auth,
|
2528
|
+
_content_type=_content_type,
|
2529
|
+
_headers=_headers,
|
2530
|
+
_host_index=_host_index,
|
2531
|
+
)
|
2532
|
+
|
2533
|
+
@validate_call
|
2534
|
+
def _get_threads_sync_without_preload_content(
|
2535
|
+
self,
|
2536
|
+
_request_timeout: Union[
|
2537
|
+
None,
|
2538
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2539
|
+
Tuple[
|
2540
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2541
|
+
],
|
2542
|
+
] = None,
|
2543
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2544
|
+
_content_type: Optional[StrictStr] = None,
|
2545
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2546
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2547
|
+
) -> RESTResponseType:
|
2548
|
+
"""Synchronous version of get_threads_without_preload_content"""
|
2549
|
+
return async_to_sync(self._get_threads_async_without_preload_content)(
|
2550
|
+
_request_timeout=_request_timeout,
|
2551
|
+
_request_auth=_request_auth,
|
2552
|
+
_content_type=_content_type,
|
2553
|
+
_headers=_headers,
|
2554
|
+
_host_index=_host_index,
|
2555
|
+
)
|
1161
2556
|
|
1162
2557
|
def _get_threads_serialize(
|
1163
2558
|
self,
|
@@ -1211,7 +2606,128 @@ class AdminApi:
|
|
1211
2606
|
)
|
1212
2607
|
|
1213
2608
|
@validate_call
|
1214
|
-
|
2609
|
+
def get_uptime(
|
2610
|
+
self,
|
2611
|
+
type: Optional[StrictStr] = None,
|
2612
|
+
_request_timeout: Union[
|
2613
|
+
None,
|
2614
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2615
|
+
Tuple[
|
2616
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2617
|
+
],
|
2618
|
+
] = None,
|
2619
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2620
|
+
_content_type: Optional[StrictStr] = None,
|
2621
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2622
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2623
|
+
) -> str:
|
2624
|
+
"""Get Uptime
|
2625
|
+
|
2626
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2627
|
+
"""
|
2628
|
+
if self.is_sync:
|
2629
|
+
return self._get_uptime_sync(
|
2630
|
+
type=type,
|
2631
|
+
_request_timeout=_request_timeout,
|
2632
|
+
_request_auth=_request_auth,
|
2633
|
+
_content_type=_content_type,
|
2634
|
+
_headers=_headers,
|
2635
|
+
_host_index=_host_index,
|
2636
|
+
)
|
2637
|
+
|
2638
|
+
else:
|
2639
|
+
return self._get_uptime_async(
|
2640
|
+
type=type,
|
2641
|
+
_request_timeout=_request_timeout,
|
2642
|
+
_request_auth=_request_auth,
|
2643
|
+
_content_type=_content_type,
|
2644
|
+
_headers=_headers,
|
2645
|
+
_host_index=_host_index,
|
2646
|
+
)
|
2647
|
+
|
2648
|
+
@validate_call
|
2649
|
+
def get_uptime_with_http_info(
|
2650
|
+
self,
|
2651
|
+
type: Optional[StrictStr] = None,
|
2652
|
+
_request_timeout: Union[
|
2653
|
+
None,
|
2654
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2655
|
+
Tuple[
|
2656
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2657
|
+
],
|
2658
|
+
] = None,
|
2659
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2660
|
+
_content_type: Optional[StrictStr] = None,
|
2661
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2662
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2663
|
+
) -> ApiResponse[str]:
|
2664
|
+
"""Get Uptime with HTTP info
|
2665
|
+
|
2666
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2667
|
+
"""
|
2668
|
+
if self.is_sync:
|
2669
|
+
return self._get_uptime_sync_with_http_info(
|
2670
|
+
type=type,
|
2671
|
+
_request_timeout=_request_timeout,
|
2672
|
+
_request_auth=_request_auth,
|
2673
|
+
_content_type=_content_type,
|
2674
|
+
_headers=_headers,
|
2675
|
+
_host_index=_host_index,
|
2676
|
+
)
|
2677
|
+
|
2678
|
+
else:
|
2679
|
+
return self._get_uptime_async_with_http_info(
|
2680
|
+
type=type,
|
2681
|
+
_request_timeout=_request_timeout,
|
2682
|
+
_request_auth=_request_auth,
|
2683
|
+
_content_type=_content_type,
|
2684
|
+
_headers=_headers,
|
2685
|
+
_host_index=_host_index,
|
2686
|
+
)
|
2687
|
+
|
2688
|
+
@validate_call
|
2689
|
+
def get_uptime_without_preload_content(
|
2690
|
+
self,
|
2691
|
+
type: Optional[StrictStr] = None,
|
2692
|
+
_request_timeout: Union[
|
2693
|
+
None,
|
2694
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2695
|
+
Tuple[
|
2696
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2697
|
+
],
|
2698
|
+
] = None,
|
2699
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2700
|
+
_content_type: Optional[StrictStr] = None,
|
2701
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2702
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2703
|
+
) -> RESTResponseType:
|
2704
|
+
"""Get Uptime without preloading content
|
2705
|
+
|
2706
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2707
|
+
"""
|
2708
|
+
if self.is_sync:
|
2709
|
+
return self._get_uptime_sync_without_preload_content(
|
2710
|
+
type=type,
|
2711
|
+
_request_timeout=_request_timeout,
|
2712
|
+
_request_auth=_request_auth,
|
2713
|
+
_content_type=_content_type,
|
2714
|
+
_headers=_headers,
|
2715
|
+
_host_index=_host_index,
|
2716
|
+
)
|
2717
|
+
|
2718
|
+
else:
|
2719
|
+
return self._get_uptime_async_without_preload_content(
|
2720
|
+
type=type,
|
2721
|
+
_request_timeout=_request_timeout,
|
2722
|
+
_request_auth=_request_auth,
|
2723
|
+
_content_type=_content_type,
|
2724
|
+
_headers=_headers,
|
2725
|
+
_host_index=_host_index,
|
2726
|
+
)
|
2727
|
+
|
2728
|
+
# Private async implementation methods
|
2729
|
+
@validate_call
|
2730
|
+
async def _get_uptime_async(
|
1215
2731
|
self,
|
1216
2732
|
type: Optional[StrictStr] = None,
|
1217
2733
|
_request_timeout: Union[
|
@@ -1275,7 +2791,7 @@ class AdminApi:
|
|
1275
2791
|
).data
|
1276
2792
|
|
1277
2793
|
@validate_call
|
1278
|
-
async def
|
2794
|
+
async def _get_uptime_async_with_http_info(
|
1279
2795
|
self,
|
1280
2796
|
type: Optional[StrictStr] = None,
|
1281
2797
|
_request_timeout: Union[
|
@@ -1334,12 +2850,11 @@ class AdminApi:
|
|
1334
2850
|
)
|
1335
2851
|
await response_data.read()
|
1336
2852
|
return self.api_client.response_deserialize(
|
1337
|
-
response_data=response_data,
|
1338
|
-
response_types_map=_response_types_map,
|
2853
|
+
response_data=response_data, response_types_map=_response_types_map
|
1339
2854
|
)
|
1340
2855
|
|
1341
2856
|
@validate_call
|
1342
|
-
async def
|
2857
|
+
async def _get_uptime_async_without_preload_content(
|
1343
2858
|
self,
|
1344
2859
|
type: Optional[StrictStr] = None,
|
1345
2860
|
_request_timeout: Union[
|
@@ -1396,7 +2911,86 @@ class AdminApi:
|
|
1396
2911
|
response_data = await self.api_client.call_api(
|
1397
2912
|
*_param, _request_timeout=_request_timeout
|
1398
2913
|
)
|
1399
|
-
return response_data
|
2914
|
+
return response_data
|
2915
|
+
|
2916
|
+
# Private sync implementation methods
|
2917
|
+
@validate_call
|
2918
|
+
def _get_uptime_sync(
|
2919
|
+
self,
|
2920
|
+
type: Optional[StrictStr] = None,
|
2921
|
+
_request_timeout: Union[
|
2922
|
+
None,
|
2923
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2924
|
+
Tuple[
|
2925
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2926
|
+
],
|
2927
|
+
] = None,
|
2928
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2929
|
+
_content_type: Optional[StrictStr] = None,
|
2930
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2931
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2932
|
+
) -> str:
|
2933
|
+
"""Synchronous version of get_uptime"""
|
2934
|
+
return async_to_sync(self._get_uptime_async)(
|
2935
|
+
type=type,
|
2936
|
+
_request_timeout=_request_timeout,
|
2937
|
+
_request_auth=_request_auth,
|
2938
|
+
_content_type=_content_type,
|
2939
|
+
_headers=_headers,
|
2940
|
+
_host_index=_host_index,
|
2941
|
+
)
|
2942
|
+
|
2943
|
+
@validate_call
|
2944
|
+
def _get_uptime_sync_with_http_info(
|
2945
|
+
self,
|
2946
|
+
type: Optional[StrictStr] = None,
|
2947
|
+
_request_timeout: Union[
|
2948
|
+
None,
|
2949
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2950
|
+
Tuple[
|
2951
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2952
|
+
],
|
2953
|
+
] = None,
|
2954
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2955
|
+
_content_type: Optional[StrictStr] = None,
|
2956
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2957
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2958
|
+
) -> ApiResponse[str]:
|
2959
|
+
"""Synchronous version of get_uptime_with_http_info"""
|
2960
|
+
return async_to_sync(self._get_uptime_async_with_http_info)(
|
2961
|
+
type=type,
|
2962
|
+
_request_timeout=_request_timeout,
|
2963
|
+
_request_auth=_request_auth,
|
2964
|
+
_content_type=_content_type,
|
2965
|
+
_headers=_headers,
|
2966
|
+
_host_index=_host_index,
|
2967
|
+
)
|
2968
|
+
|
2969
|
+
@validate_call
|
2970
|
+
def _get_uptime_sync_without_preload_content(
|
2971
|
+
self,
|
2972
|
+
type: Optional[StrictStr] = None,
|
2973
|
+
_request_timeout: Union[
|
2974
|
+
None,
|
2975
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2976
|
+
Tuple[
|
2977
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2978
|
+
],
|
2979
|
+
] = None,
|
2980
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2981
|
+
_content_type: Optional[StrictStr] = None,
|
2982
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2983
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2984
|
+
) -> RESTResponseType:
|
2985
|
+
"""Synchronous version of get_uptime_without_preload_content"""
|
2986
|
+
return async_to_sync(self._get_uptime_async_without_preload_content)(
|
2987
|
+
type=type,
|
2988
|
+
_request_timeout=_request_timeout,
|
2989
|
+
_request_auth=_request_auth,
|
2990
|
+
_content_type=_content_type,
|
2991
|
+
_headers=_headers,
|
2992
|
+
_host_index=_host_index,
|
2993
|
+
)
|
1400
2994
|
|
1401
2995
|
def _get_uptime_serialize(
|
1402
2996
|
self,
|