crypticorn 2.17.0rc1__py3-none-any.whl → 2.17.0rc3__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.
Files changed (87) hide show
  1. crypticorn/__init__.py +2 -2
  2. crypticorn/auth/client/api/admin_api.py +415 -13
  3. crypticorn/auth/client/api/auth_api.py +2622 -113
  4. crypticorn/auth/client/api/service_api.py +258 -7
  5. crypticorn/auth/client/api/user_api.py +2485 -270
  6. crypticorn/auth/client/api/wallet_api.py +1518 -77
  7. crypticorn/auth/client/models/create_api_key_request.py +2 -1
  8. crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
  9. crypticorn/auth/client/rest.py +23 -4
  10. crypticorn/auth/main.py +8 -5
  11. crypticorn/client.py +227 -59
  12. crypticorn/common/__init__.py +0 -1
  13. crypticorn/common/auth.py +2 -1
  14. crypticorn/common/metrics.py +4 -6
  15. crypticorn/common/middleware.py +10 -5
  16. crypticorn/common/pagination.py +137 -18
  17. crypticorn/common/router/admin_router.py +1 -1
  18. crypticorn/common/utils.py +2 -1
  19. crypticorn/common/warnings.py +1 -0
  20. crypticorn/hive/client/api/admin_api.py +1234 -51
  21. crypticorn/hive/client/api/data_api.py +517 -13
  22. crypticorn/hive/client/api/models_api.py +1657 -83
  23. crypticorn/hive/client/api/status_api.py +415 -13
  24. crypticorn/hive/client/models/api_error_identifier.py +1 -1
  25. crypticorn/hive/client/rest.py +23 -4
  26. crypticorn/hive/main.py +99 -25
  27. crypticorn/klines/client/api/admin_api.py +1234 -51
  28. crypticorn/klines/client/api/change_in_timeframe_api.py +278 -7
  29. crypticorn/klines/client/api/funding_rates_api.py +324 -7
  30. crypticorn/klines/client/api/ohlcv_data_api.py +399 -7
  31. crypticorn/klines/client/api/status_api.py +415 -13
  32. crypticorn/klines/client/api/symbols_api.py +225 -7
  33. crypticorn/klines/client/api/udf_api.py +1393 -120
  34. crypticorn/klines/client/models/api_error_identifier.py +3 -1
  35. crypticorn/klines/client/rest.py +23 -4
  36. crypticorn/klines/main.py +89 -12
  37. crypticorn/metrics/client/api/admin_api.py +1234 -51
  38. crypticorn/metrics/client/api/exchanges_api.py +1405 -140
  39. crypticorn/metrics/client/api/indicators_api.py +640 -13
  40. crypticorn/metrics/client/api/logs_api.py +305 -7
  41. crypticorn/metrics/client/api/marketcap_api.py +1240 -60
  42. crypticorn/metrics/client/api/markets_api.py +352 -7
  43. crypticorn/metrics/client/api/quote_currencies_api.py +237 -7
  44. crypticorn/metrics/client/api/status_api.py +415 -13
  45. crypticorn/metrics/client/api/tokens_api.py +400 -13
  46. crypticorn/metrics/client/configuration.py +4 -2
  47. crypticorn/metrics/client/rest.py +23 -4
  48. crypticorn/metrics/main.py +113 -19
  49. crypticorn/pay/client/api/admin_api.py +1720 -126
  50. crypticorn/pay/client/api/now_payments_api.py +1013 -42
  51. crypticorn/pay/client/api/payments_api.py +580 -13
  52. crypticorn/pay/client/api/products_api.py +915 -25
  53. crypticorn/pay/client/api/status_api.py +415 -13
  54. crypticorn/pay/client/configuration.py +2 -2
  55. crypticorn/pay/client/models/api_error_identifier.py +7 -7
  56. crypticorn/pay/client/models/scope.py +1 -0
  57. crypticorn/pay/client/rest.py +23 -4
  58. crypticorn/pay/main.py +10 -6
  59. crypticorn/trade/client/__init__.py +2 -1
  60. crypticorn/trade/client/api/__init__.py +0 -1
  61. crypticorn/trade/client/api/admin_api.py +1718 -123
  62. crypticorn/trade/client/api/api_keys_api.py +1596 -103
  63. crypticorn/trade/client/api/bots_api.py +1106 -47
  64. crypticorn/trade/client/api/exchanges_api.py +592 -19
  65. crypticorn/trade/client/api/notifications_api.py +1340 -112
  66. crypticorn/trade/client/api/orders_api.py +240 -7
  67. crypticorn/trade/client/api/status_api.py +415 -13
  68. crypticorn/trade/client/api/strategies_api.py +1170 -69
  69. crypticorn/trade/client/api/trading_actions_api.py +650 -19
  70. crypticorn/trade/client/models/__init__.py +2 -0
  71. crypticorn/trade/client/models/exchange.py +6 -1
  72. crypticorn/trade/client/models/exchange_key_balance.py +111 -0
  73. crypticorn/trade/client/models/futures_balance.py +27 -25
  74. crypticorn/trade/client/models/spot_balance.py +110 -0
  75. crypticorn/trade/client/models/strategy.py +5 -3
  76. crypticorn/trade/client/models/strategy_create.py +6 -4
  77. crypticorn/trade/client/models/strategy_exchange_info.py +16 -4
  78. crypticorn/trade/client/models/strategy_update.py +2 -2
  79. crypticorn/trade/client/rest.py +23 -4
  80. crypticorn/trade/main.py +15 -12
  81. {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc3.dist-info}/METADATA +64 -20
  82. {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc3.dist-info}/RECORD +86 -85
  83. crypticorn/trade/client/api/futures_trading_panel_api.py +0 -1285
  84. {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc3.dist-info}/WHEEL +0 -0
  85. {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc3.dist-info}/entry_points.txt +0 -0
  86. {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc3.dist-info}/licenses/LICENSE +0 -0
  87. {crypticorn-2.17.0rc1.dist-info → crypticorn-2.17.0rc3.dist-info}/top_level.txt +0 -0
@@ -25,6 +25,24 @@ from crypticorn.klines.client.api_client import ApiClient, RequestSerialized
25
25
  from crypticorn.klines.client.api_response import ApiResponse
26
26
  from crypticorn.klines.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
40
59
 
41
60
  @validate_call
42
- async def get_container_limits(
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
+ )
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
172
+ @validate_call
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 get_container_limits_with_http_info(
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 get_container_limits_without_preload_content(
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.response
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
- async def get_dependencies(
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 get_dependencies_with_http_info(
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 get_dependencies_without_preload_content(
745
+ async def _get_dependencies_async_without_preload_content(
408
746
  self,
409
747
  include: Annotated[
410
748
  Optional[List[StrictStr]],
@@ -460,14 +798,108 @@ class AdminApi:
460
798
  _host_index=_host_index,
461
799
  )
462
800
 
463
- _response_types_map: Dict[str, Optional[str]] = {
464
- "200": "Dict[str, str]",
465
- }
466
- response_data = await self.api_client.call_api(
467
- *_param, _request_timeout=_request_timeout
468
- )
469
- return response_data.response
470
-
801
+ _response_types_map: Dict[str, Optional[str]] = {
802
+ "200": "Dict[str, str]",
803
+ }
804
+ response_data = await self.api_client.call_api(
805
+ *_param, _request_timeout=_request_timeout
806
+ )
807
+ return response_data
808
+
809
+ # Private sync implementation methods
810
+ @validate_call
811
+ def _get_dependencies_sync(
812
+ self,
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
+ )
840
+
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
+
471
903
  def _get_dependencies_serialize(
472
904
  self,
473
905
  include,
@@ -527,7 +959,119 @@ class AdminApi:
527
959
  )
528
960
 
529
961
  @validate_call
530
- async def get_log_level(
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(
531
1075
  self,
532
1076
  _request_timeout: Union[
533
1077
  None,
@@ -588,7 +1132,7 @@ class AdminApi:
588
1132
  ).data
589
1133
 
590
1134
  @validate_call
591
- async def get_log_level_with_http_info(
1135
+ async def _get_log_level_async_with_http_info(
592
1136
  self,
593
1137
  _request_timeout: Union[
594
1138
  None,
@@ -644,12 +1188,11 @@ class AdminApi:
644
1188
  )
645
1189
  await response_data.read()
646
1190
  return self.api_client.response_deserialize(
647
- response_data=response_data,
648
- response_types_map=_response_types_map,
1191
+ response_data=response_data, response_types_map=_response_types_map
649
1192
  )
650
1193
 
651
1194
  @validate_call
652
- async def get_log_level_without_preload_content(
1195
+ async def _get_log_level_async_without_preload_content(
653
1196
  self,
654
1197
  _request_timeout: Union[
655
1198
  None,
@@ -703,7 +1246,80 @@ class AdminApi:
703
1246
  response_data = await self.api_client.call_api(
704
1247
  *_param, _request_timeout=_request_timeout
705
1248
  )
706
- return response_data.response
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
+ )
707
1323
 
708
1324
  def _get_log_level_serialize(
709
1325
  self,
@@ -757,7 +1373,119 @@ class AdminApi:
757
1373
  )
758
1374
 
759
1375
  @validate_call
760
- async def get_memory_usage(
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
+ )
1485
+
1486
+ # Private async implementation methods
1487
+ @validate_call
1488
+ async def _get_memory_usage_async(
761
1489
  self,
762
1490
  _request_timeout: Union[
763
1491
  None,
@@ -817,7 +1545,7 @@ class AdminApi:
817
1545
  ).data
818
1546
 
819
1547
  @validate_call
820
- async def get_memory_usage_with_http_info(
1548
+ async def _get_memory_usage_async_with_http_info(
821
1549
  self,
822
1550
  _request_timeout: Union[
823
1551
  None,
@@ -872,12 +1600,11 @@ class AdminApi:
872
1600
  )
873
1601
  await response_data.read()
874
1602
  return self.api_client.response_deserialize(
875
- response_data=response_data,
876
- response_types_map=_response_types_map,
1603
+ response_data=response_data, response_types_map=_response_types_map
877
1604
  )
878
1605
 
879
1606
  @validate_call
880
- async def get_memory_usage_without_preload_content(
1607
+ async def _get_memory_usage_async_without_preload_content(
881
1608
  self,
882
1609
  _request_timeout: Union[
883
1610
  None,
@@ -924,14 +1651,87 @@ class AdminApi:
924
1651
  _host_index=_host_index,
925
1652
  )
926
1653
 
927
- _response_types_map: Dict[str, Optional[str]] = {
928
- "200": "float",
929
- }
930
- response_data = await self.api_client.call_api(
931
- *_param, _request_timeout=_request_timeout
932
- )
933
- return response_data.response
934
-
1654
+ _response_types_map: Dict[str, Optional[str]] = {
1655
+ "200": "float",
1656
+ }
1657
+ response_data = await self.api_client.call_api(
1658
+ *_param, _request_timeout=_request_timeout
1659
+ )
1660
+ return response_data
1661
+
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
+
935
1735
  def _get_memory_usage_serialize(
936
1736
  self,
937
1737
  _request_auth,
@@ -984,7 +1784,119 @@ class AdminApi:
984
1784
  )
985
1785
 
986
1786
  @validate_call
987
- async def get_threads(
1787
+ def get_threads(
1788
+ self,
1789
+ _request_timeout: Union[
1790
+ None,
1791
+ Annotated[StrictFloat, Field(gt=0)],
1792
+ Tuple[
1793
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
1794
+ ],
1795
+ ] = None,
1796
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1797
+ _content_type: Optional[StrictStr] = None,
1798
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1799
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1800
+ ) -> Dict[str, object]:
1801
+ """Get Threads
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_threads_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
+ )
1813
+
1814
+ else:
1815
+ return self._get_threads_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_threads_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[Dict[str, object]]:
1838
+ """Get Threads 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_threads_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_threads_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_threads_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
+ """Get Threads 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_threads_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_threads_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_threads_async(
988
1900
  self,
989
1901
  _request_timeout: Union[
990
1902
  None,
@@ -1044,7 +1956,7 @@ class AdminApi:
1044
1956
  ).data
1045
1957
 
1046
1958
  @validate_call
1047
- async def get_threads_with_http_info(
1959
+ async def _get_threads_async_with_http_info(
1048
1960
  self,
1049
1961
  _request_timeout: Union[
1050
1962
  None,
@@ -1099,12 +2011,11 @@ class AdminApi:
1099
2011
  )
1100
2012
  await response_data.read()
1101
2013
  return self.api_client.response_deserialize(
1102
- response_data=response_data,
1103
- response_types_map=_response_types_map,
2014
+ response_data=response_data, response_types_map=_response_types_map
1104
2015
  )
1105
2016
 
1106
2017
  @validate_call
1107
- async def get_threads_without_preload_content(
2018
+ async def _get_threads_async_without_preload_content(
1108
2019
  self,
1109
2020
  _request_timeout: Union[
1110
2021
  None,
@@ -1157,7 +2068,80 @@ class AdminApi:
1157
2068
  response_data = await self.api_client.call_api(
1158
2069
  *_param, _request_timeout=_request_timeout
1159
2070
  )
1160
- return response_data.response
2071
+ return response_data
2072
+
2073
+ # Private sync implementation methods
2074
+ @validate_call
2075
+ def _get_threads_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
+ ) -> Dict[str, object]:
2089
+ """Synchronous version of get_threads"""
2090
+ return async_to_sync(self._get_threads_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_threads_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[Dict[str, object]]:
2113
+ """Synchronous version of get_threads_with_http_info"""
2114
+ return async_to_sync(self._get_threads_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_threads_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_threads_without_preload_content"""
2138
+ return async_to_sync(self._get_threads_async_without_preload_content)(
2139
+ _request_timeout=_request_timeout,
2140
+ _request_auth=_request_auth,
2141
+ _content_type=_content_type,
2142
+ _headers=_headers,
2143
+ _host_index=_host_index,
2144
+ )
1161
2145
 
1162
2146
  def _get_threads_serialize(
1163
2147
  self,
@@ -1211,7 +2195,128 @@ class AdminApi:
1211
2195
  )
1212
2196
 
1213
2197
  @validate_call
1214
- async def get_uptime(
2198
+ def get_uptime(
2199
+ self,
2200
+ type: Optional[StrictStr] = None,
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
+ ) -> str:
2213
+ """Get Uptime
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_uptime_sync(
2219
+ type=type,
2220
+ _request_timeout=_request_timeout,
2221
+ _request_auth=_request_auth,
2222
+ _content_type=_content_type,
2223
+ _headers=_headers,
2224
+ _host_index=_host_index,
2225
+ )
2226
+
2227
+ else:
2228
+ return self._get_uptime_async(
2229
+ type=type,
2230
+ _request_timeout=_request_timeout,
2231
+ _request_auth=_request_auth,
2232
+ _content_type=_content_type,
2233
+ _headers=_headers,
2234
+ _host_index=_host_index,
2235
+ )
2236
+
2237
+ @validate_call
2238
+ def get_uptime_with_http_info(
2239
+ self,
2240
+ type: Optional[StrictStr] = None,
2241
+ _request_timeout: Union[
2242
+ None,
2243
+ Annotated[StrictFloat, Field(gt=0)],
2244
+ Tuple[
2245
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2246
+ ],
2247
+ ] = None,
2248
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2249
+ _content_type: Optional[StrictStr] = None,
2250
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2251
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2252
+ ) -> ApiResponse[str]:
2253
+ """Get Uptime with HTTP info
2254
+
2255
+ This method can work in both sync and async modes based on the is_sync flag.
2256
+ """
2257
+ if self.is_sync:
2258
+ return self._get_uptime_sync_with_http_info(
2259
+ type=type,
2260
+ _request_timeout=_request_timeout,
2261
+ _request_auth=_request_auth,
2262
+ _content_type=_content_type,
2263
+ _headers=_headers,
2264
+ _host_index=_host_index,
2265
+ )
2266
+
2267
+ else:
2268
+ return self._get_uptime_async_with_http_info(
2269
+ type=type,
2270
+ _request_timeout=_request_timeout,
2271
+ _request_auth=_request_auth,
2272
+ _content_type=_content_type,
2273
+ _headers=_headers,
2274
+ _host_index=_host_index,
2275
+ )
2276
+
2277
+ @validate_call
2278
+ def get_uptime_without_preload_content(
2279
+ self,
2280
+ type: Optional[StrictStr] = None,
2281
+ _request_timeout: Union[
2282
+ None,
2283
+ Annotated[StrictFloat, Field(gt=0)],
2284
+ Tuple[
2285
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2286
+ ],
2287
+ ] = None,
2288
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2289
+ _content_type: Optional[StrictStr] = None,
2290
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2291
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2292
+ ) -> RESTResponseType:
2293
+ """Get Uptime without preloading content
2294
+
2295
+ This method can work in both sync and async modes based on the is_sync flag.
2296
+ """
2297
+ if self.is_sync:
2298
+ return self._get_uptime_sync_without_preload_content(
2299
+ type=type,
2300
+ _request_timeout=_request_timeout,
2301
+ _request_auth=_request_auth,
2302
+ _content_type=_content_type,
2303
+ _headers=_headers,
2304
+ _host_index=_host_index,
2305
+ )
2306
+
2307
+ else:
2308
+ return self._get_uptime_async_without_preload_content(
2309
+ type=type,
2310
+ _request_timeout=_request_timeout,
2311
+ _request_auth=_request_auth,
2312
+ _content_type=_content_type,
2313
+ _headers=_headers,
2314
+ _host_index=_host_index,
2315
+ )
2316
+
2317
+ # Private async implementation methods
2318
+ @validate_call
2319
+ async def _get_uptime_async(
1215
2320
  self,
1216
2321
  type: Optional[StrictStr] = None,
1217
2322
  _request_timeout: Union[
@@ -1275,7 +2380,7 @@ class AdminApi:
1275
2380
  ).data
1276
2381
 
1277
2382
  @validate_call
1278
- async def get_uptime_with_http_info(
2383
+ async def _get_uptime_async_with_http_info(
1279
2384
  self,
1280
2385
  type: Optional[StrictStr] = None,
1281
2386
  _request_timeout: Union[
@@ -1334,12 +2439,11 @@ class AdminApi:
1334
2439
  )
1335
2440
  await response_data.read()
1336
2441
  return self.api_client.response_deserialize(
1337
- response_data=response_data,
1338
- response_types_map=_response_types_map,
2442
+ response_data=response_data, response_types_map=_response_types_map
1339
2443
  )
1340
2444
 
1341
2445
  @validate_call
1342
- async def get_uptime_without_preload_content(
2446
+ async def _get_uptime_async_without_preload_content(
1343
2447
  self,
1344
2448
  type: Optional[StrictStr] = None,
1345
2449
  _request_timeout: Union[
@@ -1396,7 +2500,86 @@ class AdminApi:
1396
2500
  response_data = await self.api_client.call_api(
1397
2501
  *_param, _request_timeout=_request_timeout
1398
2502
  )
1399
- return response_data.response
2503
+ return response_data
2504
+
2505
+ # Private sync implementation methods
2506
+ @validate_call
2507
+ def _get_uptime_sync(
2508
+ self,
2509
+ type: Optional[StrictStr] = None,
2510
+ _request_timeout: Union[
2511
+ None,
2512
+ Annotated[StrictFloat, Field(gt=0)],
2513
+ Tuple[
2514
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2515
+ ],
2516
+ ] = None,
2517
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2518
+ _content_type: Optional[StrictStr] = None,
2519
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2520
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2521
+ ) -> str:
2522
+ """Synchronous version of get_uptime"""
2523
+ return async_to_sync(self._get_uptime_async)(
2524
+ type=type,
2525
+ _request_timeout=_request_timeout,
2526
+ _request_auth=_request_auth,
2527
+ _content_type=_content_type,
2528
+ _headers=_headers,
2529
+ _host_index=_host_index,
2530
+ )
2531
+
2532
+ @validate_call
2533
+ def _get_uptime_sync_with_http_info(
2534
+ self,
2535
+ type: Optional[StrictStr] = None,
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
+ ) -> ApiResponse[str]:
2548
+ """Synchronous version of get_uptime_with_http_info"""
2549
+ return async_to_sync(self._get_uptime_async_with_http_info)(
2550
+ type=type,
2551
+ _request_timeout=_request_timeout,
2552
+ _request_auth=_request_auth,
2553
+ _content_type=_content_type,
2554
+ _headers=_headers,
2555
+ _host_index=_host_index,
2556
+ )
2557
+
2558
+ @validate_call
2559
+ def _get_uptime_sync_without_preload_content(
2560
+ self,
2561
+ type: Optional[StrictStr] = None,
2562
+ _request_timeout: Union[
2563
+ None,
2564
+ Annotated[StrictFloat, Field(gt=0)],
2565
+ Tuple[
2566
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2567
+ ],
2568
+ ] = None,
2569
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2570
+ _content_type: Optional[StrictStr] = None,
2571
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2572
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2573
+ ) -> RESTResponseType:
2574
+ """Synchronous version of get_uptime_without_preload_content"""
2575
+ return async_to_sync(self._get_uptime_async_without_preload_content)(
2576
+ type=type,
2577
+ _request_timeout=_request_timeout,
2578
+ _request_auth=_request_auth,
2579
+ _content_type=_content_type,
2580
+ _headers=_headers,
2581
+ _host_index=_host_index,
2582
+ )
1400
2583
 
1401
2584
  def _get_uptime_serialize(
1402
2585
  self,