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
@@ -26,6 +26,24 @@ from crypticorn.trade.client.api_client import ApiClient, RequestSerialized
|
|
26
26
|
from crypticorn.trade.client.api_response import ApiResponse
|
27
27
|
from crypticorn.trade.client.rest import RESTResponseType
|
28
28
|
|
29
|
+
# Import async_to_sync for sync methods
|
30
|
+
try:
|
31
|
+
from asgiref.sync import async_to_sync
|
32
|
+
|
33
|
+
_HAS_ASGIREF = True
|
34
|
+
except ImportError:
|
35
|
+
_HAS_ASGIREF = False
|
36
|
+
|
37
|
+
def async_to_sync(async_func):
|
38
|
+
"""Fallback decorator that raises an error if asgiref is not available."""
|
39
|
+
|
40
|
+
def wrapper(*args, **kwargs):
|
41
|
+
raise ImportError(
|
42
|
+
"asgiref is required for sync methods. Install with: pip install asgiref"
|
43
|
+
)
|
44
|
+
|
45
|
+
return wrapper
|
46
|
+
|
29
47
|
|
30
48
|
class NotificationsApi:
|
31
49
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
@@ -34,13 +52,135 @@ class NotificationsApi:
|
|
34
52
|
Do not edit the class manually.
|
35
53
|
"""
|
36
54
|
|
37
|
-
def __init__(self, api_client=None) -> None:
|
55
|
+
def __init__(self, api_client=None, is_sync: bool = False) -> None:
|
38
56
|
if api_client is None:
|
39
57
|
api_client = ApiClient.get_default()
|
40
58
|
self.api_client = api_client
|
59
|
+
self.is_sync = is_sync
|
60
|
+
|
61
|
+
@validate_call
|
62
|
+
def create_notification(
|
63
|
+
self,
|
64
|
+
notification_create: NotificationCreate,
|
65
|
+
_request_timeout: Union[
|
66
|
+
None,
|
67
|
+
Annotated[StrictFloat, Field(gt=0)],
|
68
|
+
Tuple[
|
69
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
70
|
+
],
|
71
|
+
] = None,
|
72
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
73
|
+
_content_type: Optional[StrictStr] = None,
|
74
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
75
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
76
|
+
) -> object:
|
77
|
+
"""Create Notification
|
78
|
+
|
79
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
80
|
+
"""
|
81
|
+
if self.is_sync:
|
82
|
+
return self._create_notification_sync(
|
83
|
+
notification_create=notification_create,
|
84
|
+
_request_timeout=_request_timeout,
|
85
|
+
_request_auth=_request_auth,
|
86
|
+
_content_type=_content_type,
|
87
|
+
_headers=_headers,
|
88
|
+
_host_index=_host_index,
|
89
|
+
)
|
90
|
+
|
91
|
+
else:
|
92
|
+
return self._create_notification_async(
|
93
|
+
notification_create=notification_create,
|
94
|
+
_request_timeout=_request_timeout,
|
95
|
+
_request_auth=_request_auth,
|
96
|
+
_content_type=_content_type,
|
97
|
+
_headers=_headers,
|
98
|
+
_host_index=_host_index,
|
99
|
+
)
|
100
|
+
|
101
|
+
@validate_call
|
102
|
+
def create_notification_with_http_info(
|
103
|
+
self,
|
104
|
+
notification_create: NotificationCreate,
|
105
|
+
_request_timeout: Union[
|
106
|
+
None,
|
107
|
+
Annotated[StrictFloat, Field(gt=0)],
|
108
|
+
Tuple[
|
109
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
110
|
+
],
|
111
|
+
] = None,
|
112
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
113
|
+
_content_type: Optional[StrictStr] = None,
|
114
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
115
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
116
|
+
) -> ApiResponse[object]:
|
117
|
+
"""Create Notification with HTTP info
|
118
|
+
|
119
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
120
|
+
"""
|
121
|
+
if self.is_sync:
|
122
|
+
return self._create_notification_sync_with_http_info(
|
123
|
+
notification_create=notification_create,
|
124
|
+
_request_timeout=_request_timeout,
|
125
|
+
_request_auth=_request_auth,
|
126
|
+
_content_type=_content_type,
|
127
|
+
_headers=_headers,
|
128
|
+
_host_index=_host_index,
|
129
|
+
)
|
130
|
+
|
131
|
+
else:
|
132
|
+
return self._create_notification_async_with_http_info(
|
133
|
+
notification_create=notification_create,
|
134
|
+
_request_timeout=_request_timeout,
|
135
|
+
_request_auth=_request_auth,
|
136
|
+
_content_type=_content_type,
|
137
|
+
_headers=_headers,
|
138
|
+
_host_index=_host_index,
|
139
|
+
)
|
140
|
+
|
141
|
+
@validate_call
|
142
|
+
def create_notification_without_preload_content(
|
143
|
+
self,
|
144
|
+
notification_create: NotificationCreate,
|
145
|
+
_request_timeout: Union[
|
146
|
+
None,
|
147
|
+
Annotated[StrictFloat, Field(gt=0)],
|
148
|
+
Tuple[
|
149
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
150
|
+
],
|
151
|
+
] = None,
|
152
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
153
|
+
_content_type: Optional[StrictStr] = None,
|
154
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
155
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
156
|
+
) -> RESTResponseType:
|
157
|
+
"""Create Notification without preloading content
|
158
|
+
|
159
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
160
|
+
"""
|
161
|
+
if self.is_sync:
|
162
|
+
return self._create_notification_sync_without_preload_content(
|
163
|
+
notification_create=notification_create,
|
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
|
+
else:
|
172
|
+
return self._create_notification_async_without_preload_content(
|
173
|
+
notification_create=notification_create,
|
174
|
+
_request_timeout=_request_timeout,
|
175
|
+
_request_auth=_request_auth,
|
176
|
+
_content_type=_content_type,
|
177
|
+
_headers=_headers,
|
178
|
+
_host_index=_host_index,
|
179
|
+
)
|
41
180
|
|
181
|
+
# Private async implementation methods
|
42
182
|
@validate_call
|
43
|
-
async def
|
183
|
+
async def _create_notification_async(
|
44
184
|
self,
|
45
185
|
notification_create: NotificationCreate,
|
46
186
|
_request_timeout: Union[
|
@@ -104,7 +244,7 @@ class NotificationsApi:
|
|
104
244
|
).data
|
105
245
|
|
106
246
|
@validate_call
|
107
|
-
async def
|
247
|
+
async def _create_notification_async_with_http_info(
|
108
248
|
self,
|
109
249
|
notification_create: NotificationCreate,
|
110
250
|
_request_timeout: Union[
|
@@ -163,12 +303,11 @@ class NotificationsApi:
|
|
163
303
|
)
|
164
304
|
await response_data.read()
|
165
305
|
return self.api_client.response_deserialize(
|
166
|
-
response_data=response_data,
|
167
|
-
response_types_map=_response_types_map,
|
306
|
+
response_data=response_data, response_types_map=_response_types_map
|
168
307
|
)
|
169
308
|
|
170
309
|
@validate_call
|
171
|
-
async def
|
310
|
+
async def _create_notification_async_without_preload_content(
|
172
311
|
self,
|
173
312
|
notification_create: NotificationCreate,
|
174
313
|
_request_timeout: Union[
|
@@ -225,7 +364,86 @@ class NotificationsApi:
|
|
225
364
|
response_data = await self.api_client.call_api(
|
226
365
|
*_param, _request_timeout=_request_timeout
|
227
366
|
)
|
228
|
-
return response_data
|
367
|
+
return response_data
|
368
|
+
|
369
|
+
# Private sync implementation methods
|
370
|
+
@validate_call
|
371
|
+
def _create_notification_sync(
|
372
|
+
self,
|
373
|
+
notification_create: NotificationCreate,
|
374
|
+
_request_timeout: Union[
|
375
|
+
None,
|
376
|
+
Annotated[StrictFloat, Field(gt=0)],
|
377
|
+
Tuple[
|
378
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
379
|
+
],
|
380
|
+
] = None,
|
381
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
382
|
+
_content_type: Optional[StrictStr] = None,
|
383
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
384
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
385
|
+
) -> object:
|
386
|
+
"""Synchronous version of create_notification"""
|
387
|
+
return async_to_sync(self._create_notification_async)(
|
388
|
+
notification_create=notification_create,
|
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 _create_notification_sync_with_http_info(
|
398
|
+
self,
|
399
|
+
notification_create: NotificationCreate,
|
400
|
+
_request_timeout: Union[
|
401
|
+
None,
|
402
|
+
Annotated[StrictFloat, Field(gt=0)],
|
403
|
+
Tuple[
|
404
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
405
|
+
],
|
406
|
+
] = None,
|
407
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
408
|
+
_content_type: Optional[StrictStr] = None,
|
409
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
410
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
411
|
+
) -> ApiResponse[object]:
|
412
|
+
"""Synchronous version of create_notification_with_http_info"""
|
413
|
+
return async_to_sync(self._create_notification_async_with_http_info)(
|
414
|
+
notification_create=notification_create,
|
415
|
+
_request_timeout=_request_timeout,
|
416
|
+
_request_auth=_request_auth,
|
417
|
+
_content_type=_content_type,
|
418
|
+
_headers=_headers,
|
419
|
+
_host_index=_host_index,
|
420
|
+
)
|
421
|
+
|
422
|
+
@validate_call
|
423
|
+
def _create_notification_sync_without_preload_content(
|
424
|
+
self,
|
425
|
+
notification_create: NotificationCreate,
|
426
|
+
_request_timeout: Union[
|
427
|
+
None,
|
428
|
+
Annotated[StrictFloat, Field(gt=0)],
|
429
|
+
Tuple[
|
430
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
431
|
+
],
|
432
|
+
] = None,
|
433
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
434
|
+
_content_type: Optional[StrictStr] = None,
|
435
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
436
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
437
|
+
) -> RESTResponseType:
|
438
|
+
"""Synchronous version of create_notification_without_preload_content"""
|
439
|
+
return async_to_sync(self._create_notification_async_without_preload_content)(
|
440
|
+
notification_create=notification_create,
|
441
|
+
_request_timeout=_request_timeout,
|
442
|
+
_request_auth=_request_auth,
|
443
|
+
_content_type=_content_type,
|
444
|
+
_headers=_headers,
|
445
|
+
_host_index=_host_index,
|
446
|
+
)
|
229
447
|
|
230
448
|
def _create_notification_serialize(
|
231
449
|
self,
|
@@ -292,7 +510,128 @@ class NotificationsApi:
|
|
292
510
|
)
|
293
511
|
|
294
512
|
@validate_call
|
295
|
-
|
513
|
+
def delete_notification(
|
514
|
+
self,
|
515
|
+
id: StrictStr,
|
516
|
+
_request_timeout: Union[
|
517
|
+
None,
|
518
|
+
Annotated[StrictFloat, Field(gt=0)],
|
519
|
+
Tuple[
|
520
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
521
|
+
],
|
522
|
+
] = None,
|
523
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
524
|
+
_content_type: Optional[StrictStr] = None,
|
525
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
526
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
527
|
+
) -> None:
|
528
|
+
"""Delete Notification
|
529
|
+
|
530
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
531
|
+
"""
|
532
|
+
if self.is_sync:
|
533
|
+
return self._delete_notification_sync(
|
534
|
+
id=id,
|
535
|
+
_request_timeout=_request_timeout,
|
536
|
+
_request_auth=_request_auth,
|
537
|
+
_content_type=_content_type,
|
538
|
+
_headers=_headers,
|
539
|
+
_host_index=_host_index,
|
540
|
+
)
|
541
|
+
|
542
|
+
else:
|
543
|
+
return self._delete_notification_async(
|
544
|
+
id=id,
|
545
|
+
_request_timeout=_request_timeout,
|
546
|
+
_request_auth=_request_auth,
|
547
|
+
_content_type=_content_type,
|
548
|
+
_headers=_headers,
|
549
|
+
_host_index=_host_index,
|
550
|
+
)
|
551
|
+
|
552
|
+
@validate_call
|
553
|
+
def delete_notification_with_http_info(
|
554
|
+
self,
|
555
|
+
id: StrictStr,
|
556
|
+
_request_timeout: Union[
|
557
|
+
None,
|
558
|
+
Annotated[StrictFloat, Field(gt=0)],
|
559
|
+
Tuple[
|
560
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
561
|
+
],
|
562
|
+
] = None,
|
563
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
564
|
+
_content_type: Optional[StrictStr] = None,
|
565
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
566
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
567
|
+
) -> ApiResponse[None]:
|
568
|
+
"""Delete Notification with HTTP info
|
569
|
+
|
570
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
571
|
+
"""
|
572
|
+
if self.is_sync:
|
573
|
+
return self._delete_notification_sync_with_http_info(
|
574
|
+
id=id,
|
575
|
+
_request_timeout=_request_timeout,
|
576
|
+
_request_auth=_request_auth,
|
577
|
+
_content_type=_content_type,
|
578
|
+
_headers=_headers,
|
579
|
+
_host_index=_host_index,
|
580
|
+
)
|
581
|
+
|
582
|
+
else:
|
583
|
+
return self._delete_notification_async_with_http_info(
|
584
|
+
id=id,
|
585
|
+
_request_timeout=_request_timeout,
|
586
|
+
_request_auth=_request_auth,
|
587
|
+
_content_type=_content_type,
|
588
|
+
_headers=_headers,
|
589
|
+
_host_index=_host_index,
|
590
|
+
)
|
591
|
+
|
592
|
+
@validate_call
|
593
|
+
def delete_notification_without_preload_content(
|
594
|
+
self,
|
595
|
+
id: StrictStr,
|
596
|
+
_request_timeout: Union[
|
597
|
+
None,
|
598
|
+
Annotated[StrictFloat, Field(gt=0)],
|
599
|
+
Tuple[
|
600
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
601
|
+
],
|
602
|
+
] = None,
|
603
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
604
|
+
_content_type: Optional[StrictStr] = None,
|
605
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
606
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
607
|
+
) -> RESTResponseType:
|
608
|
+
"""Delete Notification without preloading content
|
609
|
+
|
610
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
611
|
+
"""
|
612
|
+
if self.is_sync:
|
613
|
+
return self._delete_notification_sync_without_preload_content(
|
614
|
+
id=id,
|
615
|
+
_request_timeout=_request_timeout,
|
616
|
+
_request_auth=_request_auth,
|
617
|
+
_content_type=_content_type,
|
618
|
+
_headers=_headers,
|
619
|
+
_host_index=_host_index,
|
620
|
+
)
|
621
|
+
|
622
|
+
else:
|
623
|
+
return self._delete_notification_async_without_preload_content(
|
624
|
+
id=id,
|
625
|
+
_request_timeout=_request_timeout,
|
626
|
+
_request_auth=_request_auth,
|
627
|
+
_content_type=_content_type,
|
628
|
+
_headers=_headers,
|
629
|
+
_host_index=_host_index,
|
630
|
+
)
|
631
|
+
|
632
|
+
# Private async implementation methods
|
633
|
+
@validate_call
|
634
|
+
async def _delete_notification_async(
|
296
635
|
self,
|
297
636
|
id: StrictStr,
|
298
637
|
_request_timeout: Union[
|
@@ -355,7 +694,7 @@ class NotificationsApi:
|
|
355
694
|
).data
|
356
695
|
|
357
696
|
@validate_call
|
358
|
-
async def
|
697
|
+
async def _delete_notification_async_with_http_info(
|
359
698
|
self,
|
360
699
|
id: StrictStr,
|
361
700
|
_request_timeout: Union[
|
@@ -413,12 +752,11 @@ class NotificationsApi:
|
|
413
752
|
)
|
414
753
|
await response_data.read()
|
415
754
|
return self.api_client.response_deserialize(
|
416
|
-
response_data=response_data,
|
417
|
-
response_types_map=_response_types_map,
|
755
|
+
response_data=response_data, response_types_map=_response_types_map
|
418
756
|
)
|
419
757
|
|
420
758
|
@validate_call
|
421
|
-
async def
|
759
|
+
async def _delete_notification_async_without_preload_content(
|
422
760
|
self,
|
423
761
|
id: StrictStr,
|
424
762
|
_request_timeout: Union[
|
@@ -474,65 +812,13 @@ class NotificationsApi:
|
|
474
812
|
response_data = await self.api_client.call_api(
|
475
813
|
*_param, _request_timeout=_request_timeout
|
476
814
|
)
|
477
|
-
return response_data
|
478
|
-
|
479
|
-
def _delete_notification_serialize(
|
480
|
-
self,
|
481
|
-
id,
|
482
|
-
_request_auth,
|
483
|
-
_content_type,
|
484
|
-
_headers,
|
485
|
-
_host_index,
|
486
|
-
) -> RequestSerialized:
|
487
|
-
|
488
|
-
_host = None
|
489
|
-
|
490
|
-
_collection_formats: Dict[str, str] = {}
|
491
|
-
|
492
|
-
_path_params: Dict[str, str] = {}
|
493
|
-
_query_params: List[Tuple[str, str]] = []
|
494
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
495
|
-
_form_params: List[Tuple[str, str]] = []
|
496
|
-
_files: Dict[
|
497
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
498
|
-
] = {}
|
499
|
-
_body_params: Optional[bytes] = None
|
500
|
-
|
501
|
-
# process the path parameters
|
502
|
-
if id is not None:
|
503
|
-
_path_params["id"] = id
|
504
|
-
# process the query parameters
|
505
|
-
# process the header parameters
|
506
|
-
# process the form parameters
|
507
|
-
# process the body parameter
|
508
|
-
|
509
|
-
# set the HTTP header `Accept`
|
510
|
-
if "Accept" not in _header_params:
|
511
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
512
|
-
["application/json"]
|
513
|
-
)
|
514
|
-
|
515
|
-
# authentication setting
|
516
|
-
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
517
|
-
|
518
|
-
return self.api_client.param_serialize(
|
519
|
-
method="DELETE",
|
520
|
-
resource_path="/notifications/{id}",
|
521
|
-
path_params=_path_params,
|
522
|
-
query_params=_query_params,
|
523
|
-
header_params=_header_params,
|
524
|
-
body=_body_params,
|
525
|
-
post_params=_form_params,
|
526
|
-
files=_files,
|
527
|
-
auth_settings=_auth_settings,
|
528
|
-
collection_formats=_collection_formats,
|
529
|
-
_host=_host,
|
530
|
-
_request_auth=_request_auth,
|
531
|
-
)
|
815
|
+
return response_data
|
532
816
|
|
817
|
+
# Private sync implementation methods
|
533
818
|
@validate_call
|
534
|
-
|
819
|
+
def _delete_notification_sync(
|
535
820
|
self,
|
821
|
+
id: StrictStr,
|
536
822
|
_request_timeout: Union[
|
537
823
|
None,
|
538
824
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -545,7 +831,250 @@ class NotificationsApi:
|
|
545
831
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
546
832
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
547
833
|
) -> None:
|
548
|
-
"""
|
834
|
+
"""Synchronous version of delete_notification"""
|
835
|
+
return async_to_sync(self._delete_notification_async)(
|
836
|
+
id=id,
|
837
|
+
_request_timeout=_request_timeout,
|
838
|
+
_request_auth=_request_auth,
|
839
|
+
_content_type=_content_type,
|
840
|
+
_headers=_headers,
|
841
|
+
_host_index=_host_index,
|
842
|
+
)
|
843
|
+
|
844
|
+
@validate_call
|
845
|
+
def _delete_notification_sync_with_http_info(
|
846
|
+
self,
|
847
|
+
id: StrictStr,
|
848
|
+
_request_timeout: Union[
|
849
|
+
None,
|
850
|
+
Annotated[StrictFloat, Field(gt=0)],
|
851
|
+
Tuple[
|
852
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
853
|
+
],
|
854
|
+
] = None,
|
855
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
856
|
+
_content_type: Optional[StrictStr] = None,
|
857
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
858
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
859
|
+
) -> ApiResponse[None]:
|
860
|
+
"""Synchronous version of delete_notification_with_http_info"""
|
861
|
+
return async_to_sync(self._delete_notification_async_with_http_info)(
|
862
|
+
id=id,
|
863
|
+
_request_timeout=_request_timeout,
|
864
|
+
_request_auth=_request_auth,
|
865
|
+
_content_type=_content_type,
|
866
|
+
_headers=_headers,
|
867
|
+
_host_index=_host_index,
|
868
|
+
)
|
869
|
+
|
870
|
+
@validate_call
|
871
|
+
def _delete_notification_sync_without_preload_content(
|
872
|
+
self,
|
873
|
+
id: StrictStr,
|
874
|
+
_request_timeout: Union[
|
875
|
+
None,
|
876
|
+
Annotated[StrictFloat, Field(gt=0)],
|
877
|
+
Tuple[
|
878
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
879
|
+
],
|
880
|
+
] = None,
|
881
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
882
|
+
_content_type: Optional[StrictStr] = None,
|
883
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
884
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
885
|
+
) -> RESTResponseType:
|
886
|
+
"""Synchronous version of delete_notification_without_preload_content"""
|
887
|
+
return async_to_sync(self._delete_notification_async_without_preload_content)(
|
888
|
+
id=id,
|
889
|
+
_request_timeout=_request_timeout,
|
890
|
+
_request_auth=_request_auth,
|
891
|
+
_content_type=_content_type,
|
892
|
+
_headers=_headers,
|
893
|
+
_host_index=_host_index,
|
894
|
+
)
|
895
|
+
|
896
|
+
def _delete_notification_serialize(
|
897
|
+
self,
|
898
|
+
id,
|
899
|
+
_request_auth,
|
900
|
+
_content_type,
|
901
|
+
_headers,
|
902
|
+
_host_index,
|
903
|
+
) -> RequestSerialized:
|
904
|
+
|
905
|
+
_host = None
|
906
|
+
|
907
|
+
_collection_formats: Dict[str, str] = {}
|
908
|
+
|
909
|
+
_path_params: Dict[str, str] = {}
|
910
|
+
_query_params: List[Tuple[str, str]] = []
|
911
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
912
|
+
_form_params: List[Tuple[str, str]] = []
|
913
|
+
_files: Dict[
|
914
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
915
|
+
] = {}
|
916
|
+
_body_params: Optional[bytes] = None
|
917
|
+
|
918
|
+
# process the path parameters
|
919
|
+
if id is not None:
|
920
|
+
_path_params["id"] = id
|
921
|
+
# process the query parameters
|
922
|
+
# process the header parameters
|
923
|
+
# process the form parameters
|
924
|
+
# process the body parameter
|
925
|
+
|
926
|
+
# set the HTTP header `Accept`
|
927
|
+
if "Accept" not in _header_params:
|
928
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
929
|
+
["application/json"]
|
930
|
+
)
|
931
|
+
|
932
|
+
# authentication setting
|
933
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
934
|
+
|
935
|
+
return self.api_client.param_serialize(
|
936
|
+
method="DELETE",
|
937
|
+
resource_path="/notifications/{id}",
|
938
|
+
path_params=_path_params,
|
939
|
+
query_params=_query_params,
|
940
|
+
header_params=_header_params,
|
941
|
+
body=_body_params,
|
942
|
+
post_params=_form_params,
|
943
|
+
files=_files,
|
944
|
+
auth_settings=_auth_settings,
|
945
|
+
collection_formats=_collection_formats,
|
946
|
+
_host=_host,
|
947
|
+
_request_auth=_request_auth,
|
948
|
+
)
|
949
|
+
|
950
|
+
@validate_call
|
951
|
+
def delete_notifications(
|
952
|
+
self,
|
953
|
+
_request_timeout: Union[
|
954
|
+
None,
|
955
|
+
Annotated[StrictFloat, Field(gt=0)],
|
956
|
+
Tuple[
|
957
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
958
|
+
],
|
959
|
+
] = None,
|
960
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
961
|
+
_content_type: Optional[StrictStr] = None,
|
962
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
963
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
964
|
+
) -> None:
|
965
|
+
"""Delete Notifications
|
966
|
+
|
967
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
968
|
+
"""
|
969
|
+
if self.is_sync:
|
970
|
+
return self._delete_notifications_sync(
|
971
|
+
_request_timeout=_request_timeout,
|
972
|
+
_request_auth=_request_auth,
|
973
|
+
_content_type=_content_type,
|
974
|
+
_headers=_headers,
|
975
|
+
_host_index=_host_index,
|
976
|
+
)
|
977
|
+
|
978
|
+
else:
|
979
|
+
return self._delete_notifications_async(
|
980
|
+
_request_timeout=_request_timeout,
|
981
|
+
_request_auth=_request_auth,
|
982
|
+
_content_type=_content_type,
|
983
|
+
_headers=_headers,
|
984
|
+
_host_index=_host_index,
|
985
|
+
)
|
986
|
+
|
987
|
+
@validate_call
|
988
|
+
def delete_notifications_with_http_info(
|
989
|
+
self,
|
990
|
+
_request_timeout: Union[
|
991
|
+
None,
|
992
|
+
Annotated[StrictFloat, Field(gt=0)],
|
993
|
+
Tuple[
|
994
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
995
|
+
],
|
996
|
+
] = None,
|
997
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
998
|
+
_content_type: Optional[StrictStr] = None,
|
999
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1000
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1001
|
+
) -> ApiResponse[None]:
|
1002
|
+
"""Delete Notifications with HTTP info
|
1003
|
+
|
1004
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1005
|
+
"""
|
1006
|
+
if self.is_sync:
|
1007
|
+
return self._delete_notifications_sync_with_http_info(
|
1008
|
+
_request_timeout=_request_timeout,
|
1009
|
+
_request_auth=_request_auth,
|
1010
|
+
_content_type=_content_type,
|
1011
|
+
_headers=_headers,
|
1012
|
+
_host_index=_host_index,
|
1013
|
+
)
|
1014
|
+
|
1015
|
+
else:
|
1016
|
+
return self._delete_notifications_async_with_http_info(
|
1017
|
+
_request_timeout=_request_timeout,
|
1018
|
+
_request_auth=_request_auth,
|
1019
|
+
_content_type=_content_type,
|
1020
|
+
_headers=_headers,
|
1021
|
+
_host_index=_host_index,
|
1022
|
+
)
|
1023
|
+
|
1024
|
+
@validate_call
|
1025
|
+
def delete_notifications_without_preload_content(
|
1026
|
+
self,
|
1027
|
+
_request_timeout: Union[
|
1028
|
+
None,
|
1029
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1030
|
+
Tuple[
|
1031
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1032
|
+
],
|
1033
|
+
] = None,
|
1034
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1035
|
+
_content_type: Optional[StrictStr] = None,
|
1036
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1037
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1038
|
+
) -> RESTResponseType:
|
1039
|
+
"""Delete Notifications without preloading content
|
1040
|
+
|
1041
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1042
|
+
"""
|
1043
|
+
if self.is_sync:
|
1044
|
+
return self._delete_notifications_sync_without_preload_content(
|
1045
|
+
_request_timeout=_request_timeout,
|
1046
|
+
_request_auth=_request_auth,
|
1047
|
+
_content_type=_content_type,
|
1048
|
+
_headers=_headers,
|
1049
|
+
_host_index=_host_index,
|
1050
|
+
)
|
1051
|
+
|
1052
|
+
else:
|
1053
|
+
return self._delete_notifications_async_without_preload_content(
|
1054
|
+
_request_timeout=_request_timeout,
|
1055
|
+
_request_auth=_request_auth,
|
1056
|
+
_content_type=_content_type,
|
1057
|
+
_headers=_headers,
|
1058
|
+
_host_index=_host_index,
|
1059
|
+
)
|
1060
|
+
|
1061
|
+
# Private async implementation methods
|
1062
|
+
@validate_call
|
1063
|
+
async def _delete_notifications_async(
|
1064
|
+
self,
|
1065
|
+
_request_timeout: Union[
|
1066
|
+
None,
|
1067
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1068
|
+
Tuple[
|
1069
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1070
|
+
],
|
1071
|
+
] = None,
|
1072
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1073
|
+
_content_type: Optional[StrictStr] = None,
|
1074
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1075
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1076
|
+
) -> None:
|
1077
|
+
"""Delete Notifications
|
549
1078
|
|
550
1079
|
Delete all notifications for the authenticated user
|
551
1080
|
|
@@ -591,7 +1120,7 @@ class NotificationsApi:
|
|
591
1120
|
).data
|
592
1121
|
|
593
1122
|
@validate_call
|
594
|
-
async def
|
1123
|
+
async def _delete_notifications_async_with_http_info(
|
595
1124
|
self,
|
596
1125
|
_request_timeout: Union[
|
597
1126
|
None,
|
@@ -646,12 +1175,11 @@ class NotificationsApi:
|
|
646
1175
|
)
|
647
1176
|
await response_data.read()
|
648
1177
|
return self.api_client.response_deserialize(
|
649
|
-
response_data=response_data,
|
650
|
-
response_types_map=_response_types_map,
|
1178
|
+
response_data=response_data, response_types_map=_response_types_map
|
651
1179
|
)
|
652
1180
|
|
653
1181
|
@validate_call
|
654
|
-
async def
|
1182
|
+
async def _delete_notifications_async_without_preload_content(
|
655
1183
|
self,
|
656
1184
|
_request_timeout: Union[
|
657
1185
|
None,
|
@@ -704,7 +1232,80 @@ class NotificationsApi:
|
|
704
1232
|
response_data = await self.api_client.call_api(
|
705
1233
|
*_param, _request_timeout=_request_timeout
|
706
1234
|
)
|
707
|
-
return response_data
|
1235
|
+
return response_data
|
1236
|
+
|
1237
|
+
# Private sync implementation methods
|
1238
|
+
@validate_call
|
1239
|
+
def _delete_notifications_sync(
|
1240
|
+
self,
|
1241
|
+
_request_timeout: Union[
|
1242
|
+
None,
|
1243
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1244
|
+
Tuple[
|
1245
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1246
|
+
],
|
1247
|
+
] = None,
|
1248
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1249
|
+
_content_type: Optional[StrictStr] = None,
|
1250
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1251
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1252
|
+
) -> None:
|
1253
|
+
"""Synchronous version of delete_notifications"""
|
1254
|
+
return async_to_sync(self._delete_notifications_async)(
|
1255
|
+
_request_timeout=_request_timeout,
|
1256
|
+
_request_auth=_request_auth,
|
1257
|
+
_content_type=_content_type,
|
1258
|
+
_headers=_headers,
|
1259
|
+
_host_index=_host_index,
|
1260
|
+
)
|
1261
|
+
|
1262
|
+
@validate_call
|
1263
|
+
def _delete_notifications_sync_with_http_info(
|
1264
|
+
self,
|
1265
|
+
_request_timeout: Union[
|
1266
|
+
None,
|
1267
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1268
|
+
Tuple[
|
1269
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1270
|
+
],
|
1271
|
+
] = None,
|
1272
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1273
|
+
_content_type: Optional[StrictStr] = None,
|
1274
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1275
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1276
|
+
) -> ApiResponse[None]:
|
1277
|
+
"""Synchronous version of delete_notifications_with_http_info"""
|
1278
|
+
return async_to_sync(self._delete_notifications_async_with_http_info)(
|
1279
|
+
_request_timeout=_request_timeout,
|
1280
|
+
_request_auth=_request_auth,
|
1281
|
+
_content_type=_content_type,
|
1282
|
+
_headers=_headers,
|
1283
|
+
_host_index=_host_index,
|
1284
|
+
)
|
1285
|
+
|
1286
|
+
@validate_call
|
1287
|
+
def _delete_notifications_sync_without_preload_content(
|
1288
|
+
self,
|
1289
|
+
_request_timeout: Union[
|
1290
|
+
None,
|
1291
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1292
|
+
Tuple[
|
1293
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1294
|
+
],
|
1295
|
+
] = None,
|
1296
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1297
|
+
_content_type: Optional[StrictStr] = None,
|
1298
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1299
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1300
|
+
) -> RESTResponseType:
|
1301
|
+
"""Synchronous version of delete_notifications_without_preload_content"""
|
1302
|
+
return async_to_sync(self._delete_notifications_async_without_preload_content)(
|
1303
|
+
_request_timeout=_request_timeout,
|
1304
|
+
_request_auth=_request_auth,
|
1305
|
+
_content_type=_content_type,
|
1306
|
+
_headers=_headers,
|
1307
|
+
_host_index=_host_index,
|
1308
|
+
)
|
708
1309
|
|
709
1310
|
def _delete_notifications_serialize(
|
710
1311
|
self,
|
@@ -758,7 +1359,137 @@ class NotificationsApi:
|
|
758
1359
|
)
|
759
1360
|
|
760
1361
|
@validate_call
|
761
|
-
|
1362
|
+
def get_notifications(
|
1363
|
+
self,
|
1364
|
+
limit: Optional[StrictInt] = None,
|
1365
|
+
offset: Optional[StrictInt] = None,
|
1366
|
+
_request_timeout: Union[
|
1367
|
+
None,
|
1368
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1369
|
+
Tuple[
|
1370
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1371
|
+
],
|
1372
|
+
] = None,
|
1373
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1374
|
+
_content_type: Optional[StrictStr] = None,
|
1375
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1376
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1377
|
+
) -> List[Notification]:
|
1378
|
+
"""Get Notifications
|
1379
|
+
|
1380
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1381
|
+
"""
|
1382
|
+
if self.is_sync:
|
1383
|
+
return self._get_notifications_sync(
|
1384
|
+
limit=limit,
|
1385
|
+
offset=offset,
|
1386
|
+
_request_timeout=_request_timeout,
|
1387
|
+
_request_auth=_request_auth,
|
1388
|
+
_content_type=_content_type,
|
1389
|
+
_headers=_headers,
|
1390
|
+
_host_index=_host_index,
|
1391
|
+
)
|
1392
|
+
|
1393
|
+
else:
|
1394
|
+
return self._get_notifications_async(
|
1395
|
+
limit=limit,
|
1396
|
+
offset=offset,
|
1397
|
+
_request_timeout=_request_timeout,
|
1398
|
+
_request_auth=_request_auth,
|
1399
|
+
_content_type=_content_type,
|
1400
|
+
_headers=_headers,
|
1401
|
+
_host_index=_host_index,
|
1402
|
+
)
|
1403
|
+
|
1404
|
+
@validate_call
|
1405
|
+
def get_notifications_with_http_info(
|
1406
|
+
self,
|
1407
|
+
limit: Optional[StrictInt] = None,
|
1408
|
+
offset: Optional[StrictInt] = None,
|
1409
|
+
_request_timeout: Union[
|
1410
|
+
None,
|
1411
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1412
|
+
Tuple[
|
1413
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1414
|
+
],
|
1415
|
+
] = None,
|
1416
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1417
|
+
_content_type: Optional[StrictStr] = None,
|
1418
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1419
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1420
|
+
) -> ApiResponse[List[Notification]]:
|
1421
|
+
"""Get Notifications with HTTP info
|
1422
|
+
|
1423
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1424
|
+
"""
|
1425
|
+
if self.is_sync:
|
1426
|
+
return self._get_notifications_sync_with_http_info(
|
1427
|
+
limit=limit,
|
1428
|
+
offset=offset,
|
1429
|
+
_request_timeout=_request_timeout,
|
1430
|
+
_request_auth=_request_auth,
|
1431
|
+
_content_type=_content_type,
|
1432
|
+
_headers=_headers,
|
1433
|
+
_host_index=_host_index,
|
1434
|
+
)
|
1435
|
+
|
1436
|
+
else:
|
1437
|
+
return self._get_notifications_async_with_http_info(
|
1438
|
+
limit=limit,
|
1439
|
+
offset=offset,
|
1440
|
+
_request_timeout=_request_timeout,
|
1441
|
+
_request_auth=_request_auth,
|
1442
|
+
_content_type=_content_type,
|
1443
|
+
_headers=_headers,
|
1444
|
+
_host_index=_host_index,
|
1445
|
+
)
|
1446
|
+
|
1447
|
+
@validate_call
|
1448
|
+
def get_notifications_without_preload_content(
|
1449
|
+
self,
|
1450
|
+
limit: Optional[StrictInt] = None,
|
1451
|
+
offset: Optional[StrictInt] = None,
|
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 Notifications 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_notifications_sync_without_preload_content(
|
1470
|
+
limit=limit,
|
1471
|
+
offset=offset,
|
1472
|
+
_request_timeout=_request_timeout,
|
1473
|
+
_request_auth=_request_auth,
|
1474
|
+
_content_type=_content_type,
|
1475
|
+
_headers=_headers,
|
1476
|
+
_host_index=_host_index,
|
1477
|
+
)
|
1478
|
+
|
1479
|
+
else:
|
1480
|
+
return self._get_notifications_async_without_preload_content(
|
1481
|
+
limit=limit,
|
1482
|
+
offset=offset,
|
1483
|
+
_request_timeout=_request_timeout,
|
1484
|
+
_request_auth=_request_auth,
|
1485
|
+
_content_type=_content_type,
|
1486
|
+
_headers=_headers,
|
1487
|
+
_host_index=_host_index,
|
1488
|
+
)
|
1489
|
+
|
1490
|
+
# Private async implementation methods
|
1491
|
+
@validate_call
|
1492
|
+
async def _get_notifications_async(
|
762
1493
|
self,
|
763
1494
|
limit: Optional[StrictInt] = None,
|
764
1495
|
offset: Optional[StrictInt] = None,
|
@@ -826,7 +1557,7 @@ class NotificationsApi:
|
|
826
1557
|
).data
|
827
1558
|
|
828
1559
|
@validate_call
|
829
|
-
async def
|
1560
|
+
async def _get_notifications_async_with_http_info(
|
830
1561
|
self,
|
831
1562
|
limit: Optional[StrictInt] = None,
|
832
1563
|
offset: Optional[StrictInt] = None,
|
@@ -889,12 +1620,11 @@ class NotificationsApi:
|
|
889
1620
|
)
|
890
1621
|
await response_data.read()
|
891
1622
|
return self.api_client.response_deserialize(
|
892
|
-
response_data=response_data,
|
893
|
-
response_types_map=_response_types_map,
|
1623
|
+
response_data=response_data, response_types_map=_response_types_map
|
894
1624
|
)
|
895
1625
|
|
896
1626
|
@validate_call
|
897
|
-
async def
|
1627
|
+
async def _get_notifications_async_without_preload_content(
|
898
1628
|
self,
|
899
1629
|
limit: Optional[StrictInt] = None,
|
900
1630
|
offset: Optional[StrictInt] = None,
|
@@ -955,7 +1685,92 @@ class NotificationsApi:
|
|
955
1685
|
response_data = await self.api_client.call_api(
|
956
1686
|
*_param, _request_timeout=_request_timeout
|
957
1687
|
)
|
958
|
-
return response_data
|
1688
|
+
return response_data
|
1689
|
+
|
1690
|
+
# Private sync implementation methods
|
1691
|
+
@validate_call
|
1692
|
+
def _get_notifications_sync(
|
1693
|
+
self,
|
1694
|
+
limit: Optional[StrictInt] = None,
|
1695
|
+
offset: Optional[StrictInt] = None,
|
1696
|
+
_request_timeout: Union[
|
1697
|
+
None,
|
1698
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1699
|
+
Tuple[
|
1700
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1701
|
+
],
|
1702
|
+
] = None,
|
1703
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1704
|
+
_content_type: Optional[StrictStr] = None,
|
1705
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1706
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1707
|
+
) -> List[Notification]:
|
1708
|
+
"""Synchronous version of get_notifications"""
|
1709
|
+
return async_to_sync(self._get_notifications_async)(
|
1710
|
+
limit=limit,
|
1711
|
+
offset=offset,
|
1712
|
+
_request_timeout=_request_timeout,
|
1713
|
+
_request_auth=_request_auth,
|
1714
|
+
_content_type=_content_type,
|
1715
|
+
_headers=_headers,
|
1716
|
+
_host_index=_host_index,
|
1717
|
+
)
|
1718
|
+
|
1719
|
+
@validate_call
|
1720
|
+
def _get_notifications_sync_with_http_info(
|
1721
|
+
self,
|
1722
|
+
limit: Optional[StrictInt] = None,
|
1723
|
+
offset: Optional[StrictInt] = None,
|
1724
|
+
_request_timeout: Union[
|
1725
|
+
None,
|
1726
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1727
|
+
Tuple[
|
1728
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1729
|
+
],
|
1730
|
+
] = None,
|
1731
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1732
|
+
_content_type: Optional[StrictStr] = None,
|
1733
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1734
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1735
|
+
) -> ApiResponse[List[Notification]]:
|
1736
|
+
"""Synchronous version of get_notifications_with_http_info"""
|
1737
|
+
return async_to_sync(self._get_notifications_async_with_http_info)(
|
1738
|
+
limit=limit,
|
1739
|
+
offset=offset,
|
1740
|
+
_request_timeout=_request_timeout,
|
1741
|
+
_request_auth=_request_auth,
|
1742
|
+
_content_type=_content_type,
|
1743
|
+
_headers=_headers,
|
1744
|
+
_host_index=_host_index,
|
1745
|
+
)
|
1746
|
+
|
1747
|
+
@validate_call
|
1748
|
+
def _get_notifications_sync_without_preload_content(
|
1749
|
+
self,
|
1750
|
+
limit: Optional[StrictInt] = None,
|
1751
|
+
offset: Optional[StrictInt] = None,
|
1752
|
+
_request_timeout: Union[
|
1753
|
+
None,
|
1754
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1755
|
+
Tuple[
|
1756
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1757
|
+
],
|
1758
|
+
] = None,
|
1759
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1760
|
+
_content_type: Optional[StrictStr] = None,
|
1761
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1762
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1763
|
+
) -> RESTResponseType:
|
1764
|
+
"""Synchronous version of get_notifications_without_preload_content"""
|
1765
|
+
return async_to_sync(self._get_notifications_async_without_preload_content)(
|
1766
|
+
limit=limit,
|
1767
|
+
offset=offset,
|
1768
|
+
_request_timeout=_request_timeout,
|
1769
|
+
_request_auth=_request_auth,
|
1770
|
+
_content_type=_content_type,
|
1771
|
+
_headers=_headers,
|
1772
|
+
_host_index=_host_index,
|
1773
|
+
)
|
959
1774
|
|
960
1775
|
def _get_notifications_serialize(
|
961
1776
|
self,
|
@@ -994,32 +1809,162 @@ class NotificationsApi:
|
|
994
1809
|
# process the form parameters
|
995
1810
|
# process the body parameter
|
996
1811
|
|
997
|
-
# set the HTTP header `Accept`
|
998
|
-
if "Accept" not in _header_params:
|
999
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
1000
|
-
["application/json"]
|
1812
|
+
# set the HTTP header `Accept`
|
1813
|
+
if "Accept" not in _header_params:
|
1814
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1815
|
+
["application/json"]
|
1816
|
+
)
|
1817
|
+
|
1818
|
+
# authentication setting
|
1819
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
1820
|
+
|
1821
|
+
return self.api_client.param_serialize(
|
1822
|
+
method="GET",
|
1823
|
+
resource_path="/notifications",
|
1824
|
+
path_params=_path_params,
|
1825
|
+
query_params=_query_params,
|
1826
|
+
header_params=_header_params,
|
1827
|
+
body=_body_params,
|
1828
|
+
post_params=_form_params,
|
1829
|
+
files=_files,
|
1830
|
+
auth_settings=_auth_settings,
|
1831
|
+
collection_formats=_collection_formats,
|
1832
|
+
_host=_host,
|
1833
|
+
_request_auth=_request_auth,
|
1834
|
+
)
|
1835
|
+
|
1836
|
+
@validate_call
|
1837
|
+
def update_notification(
|
1838
|
+
self,
|
1839
|
+
id: StrictStr,
|
1840
|
+
notification_update: NotificationUpdate,
|
1841
|
+
_request_timeout: Union[
|
1842
|
+
None,
|
1843
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1844
|
+
Tuple[
|
1845
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1846
|
+
],
|
1847
|
+
] = None,
|
1848
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1849
|
+
_content_type: Optional[StrictStr] = None,
|
1850
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1851
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1852
|
+
) -> None:
|
1853
|
+
"""Update Notification
|
1854
|
+
|
1855
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1856
|
+
"""
|
1857
|
+
if self.is_sync:
|
1858
|
+
return self._update_notification_sync(
|
1859
|
+
id=id,
|
1860
|
+
notification_update=notification_update,
|
1861
|
+
_request_timeout=_request_timeout,
|
1862
|
+
_request_auth=_request_auth,
|
1863
|
+
_content_type=_content_type,
|
1864
|
+
_headers=_headers,
|
1865
|
+
_host_index=_host_index,
|
1866
|
+
)
|
1867
|
+
|
1868
|
+
else:
|
1869
|
+
return self._update_notification_async(
|
1870
|
+
id=id,
|
1871
|
+
notification_update=notification_update,
|
1872
|
+
_request_timeout=_request_timeout,
|
1873
|
+
_request_auth=_request_auth,
|
1874
|
+
_content_type=_content_type,
|
1875
|
+
_headers=_headers,
|
1876
|
+
_host_index=_host_index,
|
1877
|
+
)
|
1878
|
+
|
1879
|
+
@validate_call
|
1880
|
+
def update_notification_with_http_info(
|
1881
|
+
self,
|
1882
|
+
id: StrictStr,
|
1883
|
+
notification_update: NotificationUpdate,
|
1884
|
+
_request_timeout: Union[
|
1885
|
+
None,
|
1886
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1887
|
+
Tuple[
|
1888
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1889
|
+
],
|
1890
|
+
] = None,
|
1891
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1892
|
+
_content_type: Optional[StrictStr] = None,
|
1893
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1894
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1895
|
+
) -> ApiResponse[None]:
|
1896
|
+
"""Update Notification with HTTP info
|
1897
|
+
|
1898
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1899
|
+
"""
|
1900
|
+
if self.is_sync:
|
1901
|
+
return self._update_notification_sync_with_http_info(
|
1902
|
+
id=id,
|
1903
|
+
notification_update=notification_update,
|
1904
|
+
_request_timeout=_request_timeout,
|
1905
|
+
_request_auth=_request_auth,
|
1906
|
+
_content_type=_content_type,
|
1907
|
+
_headers=_headers,
|
1908
|
+
_host_index=_host_index,
|
1909
|
+
)
|
1910
|
+
|
1911
|
+
else:
|
1912
|
+
return self._update_notification_async_with_http_info(
|
1913
|
+
id=id,
|
1914
|
+
notification_update=notification_update,
|
1915
|
+
_request_timeout=_request_timeout,
|
1916
|
+
_request_auth=_request_auth,
|
1917
|
+
_content_type=_content_type,
|
1918
|
+
_headers=_headers,
|
1919
|
+
_host_index=_host_index,
|
1001
1920
|
)
|
1002
1921
|
|
1003
|
-
|
1004
|
-
|
1922
|
+
@validate_call
|
1923
|
+
def update_notification_without_preload_content(
|
1924
|
+
self,
|
1925
|
+
id: StrictStr,
|
1926
|
+
notification_update: NotificationUpdate,
|
1927
|
+
_request_timeout: Union[
|
1928
|
+
None,
|
1929
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1930
|
+
Tuple[
|
1931
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1932
|
+
],
|
1933
|
+
] = None,
|
1934
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1935
|
+
_content_type: Optional[StrictStr] = None,
|
1936
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1937
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1938
|
+
) -> RESTResponseType:
|
1939
|
+
"""Update Notification without preloading content
|
1940
|
+
|
1941
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1942
|
+
"""
|
1943
|
+
if self.is_sync:
|
1944
|
+
return self._update_notification_sync_without_preload_content(
|
1945
|
+
id=id,
|
1946
|
+
notification_update=notification_update,
|
1947
|
+
_request_timeout=_request_timeout,
|
1948
|
+
_request_auth=_request_auth,
|
1949
|
+
_content_type=_content_type,
|
1950
|
+
_headers=_headers,
|
1951
|
+
_host_index=_host_index,
|
1952
|
+
)
|
1005
1953
|
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
collection_formats=_collection_formats,
|
1017
|
-
_host=_host,
|
1018
|
-
_request_auth=_request_auth,
|
1019
|
-
)
|
1954
|
+
else:
|
1955
|
+
return self._update_notification_async_without_preload_content(
|
1956
|
+
id=id,
|
1957
|
+
notification_update=notification_update,
|
1958
|
+
_request_timeout=_request_timeout,
|
1959
|
+
_request_auth=_request_auth,
|
1960
|
+
_content_type=_content_type,
|
1961
|
+
_headers=_headers,
|
1962
|
+
_host_index=_host_index,
|
1963
|
+
)
|
1020
1964
|
|
1965
|
+
# Private async implementation methods
|
1021
1966
|
@validate_call
|
1022
|
-
async def
|
1967
|
+
async def _update_notification_async(
|
1023
1968
|
self,
|
1024
1969
|
id: StrictStr,
|
1025
1970
|
notification_update: NotificationUpdate,
|
@@ -1087,7 +2032,7 @@ class NotificationsApi:
|
|
1087
2032
|
).data
|
1088
2033
|
|
1089
2034
|
@validate_call
|
1090
|
-
async def
|
2035
|
+
async def _update_notification_async_with_http_info(
|
1091
2036
|
self,
|
1092
2037
|
id: StrictStr,
|
1093
2038
|
notification_update: NotificationUpdate,
|
@@ -1150,12 +2095,11 @@ class NotificationsApi:
|
|
1150
2095
|
)
|
1151
2096
|
await response_data.read()
|
1152
2097
|
return self.api_client.response_deserialize(
|
1153
|
-
response_data=response_data,
|
1154
|
-
response_types_map=_response_types_map,
|
2098
|
+
response_data=response_data, response_types_map=_response_types_map
|
1155
2099
|
)
|
1156
2100
|
|
1157
2101
|
@validate_call
|
1158
|
-
async def
|
2102
|
+
async def _update_notification_async_without_preload_content(
|
1159
2103
|
self,
|
1160
2104
|
id: StrictStr,
|
1161
2105
|
notification_update: NotificationUpdate,
|
@@ -1216,7 +2160,92 @@ class NotificationsApi:
|
|
1216
2160
|
response_data = await self.api_client.call_api(
|
1217
2161
|
*_param, _request_timeout=_request_timeout
|
1218
2162
|
)
|
1219
|
-
return response_data
|
2163
|
+
return response_data
|
2164
|
+
|
2165
|
+
# Private sync implementation methods
|
2166
|
+
@validate_call
|
2167
|
+
def _update_notification_sync(
|
2168
|
+
self,
|
2169
|
+
id: StrictStr,
|
2170
|
+
notification_update: NotificationUpdate,
|
2171
|
+
_request_timeout: Union[
|
2172
|
+
None,
|
2173
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2174
|
+
Tuple[
|
2175
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2176
|
+
],
|
2177
|
+
] = None,
|
2178
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2179
|
+
_content_type: Optional[StrictStr] = None,
|
2180
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2181
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2182
|
+
) -> None:
|
2183
|
+
"""Synchronous version of update_notification"""
|
2184
|
+
return async_to_sync(self._update_notification_async)(
|
2185
|
+
id=id,
|
2186
|
+
notification_update=notification_update,
|
2187
|
+
_request_timeout=_request_timeout,
|
2188
|
+
_request_auth=_request_auth,
|
2189
|
+
_content_type=_content_type,
|
2190
|
+
_headers=_headers,
|
2191
|
+
_host_index=_host_index,
|
2192
|
+
)
|
2193
|
+
|
2194
|
+
@validate_call
|
2195
|
+
def _update_notification_sync_with_http_info(
|
2196
|
+
self,
|
2197
|
+
id: StrictStr,
|
2198
|
+
notification_update: NotificationUpdate,
|
2199
|
+
_request_timeout: Union[
|
2200
|
+
None,
|
2201
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2202
|
+
Tuple[
|
2203
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2204
|
+
],
|
2205
|
+
] = None,
|
2206
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2207
|
+
_content_type: Optional[StrictStr] = None,
|
2208
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2209
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2210
|
+
) -> ApiResponse[None]:
|
2211
|
+
"""Synchronous version of update_notification_with_http_info"""
|
2212
|
+
return async_to_sync(self._update_notification_async_with_http_info)(
|
2213
|
+
id=id,
|
2214
|
+
notification_update=notification_update,
|
2215
|
+
_request_timeout=_request_timeout,
|
2216
|
+
_request_auth=_request_auth,
|
2217
|
+
_content_type=_content_type,
|
2218
|
+
_headers=_headers,
|
2219
|
+
_host_index=_host_index,
|
2220
|
+
)
|
2221
|
+
|
2222
|
+
@validate_call
|
2223
|
+
def _update_notification_sync_without_preload_content(
|
2224
|
+
self,
|
2225
|
+
id: StrictStr,
|
2226
|
+
notification_update: NotificationUpdate,
|
2227
|
+
_request_timeout: Union[
|
2228
|
+
None,
|
2229
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2230
|
+
Tuple[
|
2231
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2232
|
+
],
|
2233
|
+
] = None,
|
2234
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2235
|
+
_content_type: Optional[StrictStr] = None,
|
2236
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2237
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2238
|
+
) -> RESTResponseType:
|
2239
|
+
"""Synchronous version of update_notification_without_preload_content"""
|
2240
|
+
return async_to_sync(self._update_notification_async_without_preload_content)(
|
2241
|
+
id=id,
|
2242
|
+
notification_update=notification_update,
|
2243
|
+
_request_timeout=_request_timeout,
|
2244
|
+
_request_auth=_request_auth,
|
2245
|
+
_content_type=_content_type,
|
2246
|
+
_headers=_headers,
|
2247
|
+
_host_index=_host_index,
|
2248
|
+
)
|
1220
2249
|
|
1221
2250
|
def _update_notification_serialize(
|
1222
2251
|
self,
|
@@ -1286,7 +2315,128 @@ class NotificationsApi:
|
|
1286
2315
|
)
|
1287
2316
|
|
1288
2317
|
@validate_call
|
1289
|
-
|
2318
|
+
def update_notifications(
|
2319
|
+
self,
|
2320
|
+
notification_update: NotificationUpdate,
|
2321
|
+
_request_timeout: Union[
|
2322
|
+
None,
|
2323
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2324
|
+
Tuple[
|
2325
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2326
|
+
],
|
2327
|
+
] = None,
|
2328
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2329
|
+
_content_type: Optional[StrictStr] = None,
|
2330
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2331
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2332
|
+
) -> None:
|
2333
|
+
"""Update Notifications
|
2334
|
+
|
2335
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2336
|
+
"""
|
2337
|
+
if self.is_sync:
|
2338
|
+
return self._update_notifications_sync(
|
2339
|
+
notification_update=notification_update,
|
2340
|
+
_request_timeout=_request_timeout,
|
2341
|
+
_request_auth=_request_auth,
|
2342
|
+
_content_type=_content_type,
|
2343
|
+
_headers=_headers,
|
2344
|
+
_host_index=_host_index,
|
2345
|
+
)
|
2346
|
+
|
2347
|
+
else:
|
2348
|
+
return self._update_notifications_async(
|
2349
|
+
notification_update=notification_update,
|
2350
|
+
_request_timeout=_request_timeout,
|
2351
|
+
_request_auth=_request_auth,
|
2352
|
+
_content_type=_content_type,
|
2353
|
+
_headers=_headers,
|
2354
|
+
_host_index=_host_index,
|
2355
|
+
)
|
2356
|
+
|
2357
|
+
@validate_call
|
2358
|
+
def update_notifications_with_http_info(
|
2359
|
+
self,
|
2360
|
+
notification_update: NotificationUpdate,
|
2361
|
+
_request_timeout: Union[
|
2362
|
+
None,
|
2363
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2364
|
+
Tuple[
|
2365
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2366
|
+
],
|
2367
|
+
] = None,
|
2368
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2369
|
+
_content_type: Optional[StrictStr] = None,
|
2370
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2371
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2372
|
+
) -> ApiResponse[None]:
|
2373
|
+
"""Update Notifications with HTTP info
|
2374
|
+
|
2375
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2376
|
+
"""
|
2377
|
+
if self.is_sync:
|
2378
|
+
return self._update_notifications_sync_with_http_info(
|
2379
|
+
notification_update=notification_update,
|
2380
|
+
_request_timeout=_request_timeout,
|
2381
|
+
_request_auth=_request_auth,
|
2382
|
+
_content_type=_content_type,
|
2383
|
+
_headers=_headers,
|
2384
|
+
_host_index=_host_index,
|
2385
|
+
)
|
2386
|
+
|
2387
|
+
else:
|
2388
|
+
return self._update_notifications_async_with_http_info(
|
2389
|
+
notification_update=notification_update,
|
2390
|
+
_request_timeout=_request_timeout,
|
2391
|
+
_request_auth=_request_auth,
|
2392
|
+
_content_type=_content_type,
|
2393
|
+
_headers=_headers,
|
2394
|
+
_host_index=_host_index,
|
2395
|
+
)
|
2396
|
+
|
2397
|
+
@validate_call
|
2398
|
+
def update_notifications_without_preload_content(
|
2399
|
+
self,
|
2400
|
+
notification_update: NotificationUpdate,
|
2401
|
+
_request_timeout: Union[
|
2402
|
+
None,
|
2403
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2404
|
+
Tuple[
|
2405
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2406
|
+
],
|
2407
|
+
] = None,
|
2408
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2409
|
+
_content_type: Optional[StrictStr] = None,
|
2410
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2411
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2412
|
+
) -> RESTResponseType:
|
2413
|
+
"""Update Notifications without preloading content
|
2414
|
+
|
2415
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2416
|
+
"""
|
2417
|
+
if self.is_sync:
|
2418
|
+
return self._update_notifications_sync_without_preload_content(
|
2419
|
+
notification_update=notification_update,
|
2420
|
+
_request_timeout=_request_timeout,
|
2421
|
+
_request_auth=_request_auth,
|
2422
|
+
_content_type=_content_type,
|
2423
|
+
_headers=_headers,
|
2424
|
+
_host_index=_host_index,
|
2425
|
+
)
|
2426
|
+
|
2427
|
+
else:
|
2428
|
+
return self._update_notifications_async_without_preload_content(
|
2429
|
+
notification_update=notification_update,
|
2430
|
+
_request_timeout=_request_timeout,
|
2431
|
+
_request_auth=_request_auth,
|
2432
|
+
_content_type=_content_type,
|
2433
|
+
_headers=_headers,
|
2434
|
+
_host_index=_host_index,
|
2435
|
+
)
|
2436
|
+
|
2437
|
+
# Private async implementation methods
|
2438
|
+
@validate_call
|
2439
|
+
async def _update_notifications_async(
|
1290
2440
|
self,
|
1291
2441
|
notification_update: NotificationUpdate,
|
1292
2442
|
_request_timeout: Union[
|
@@ -1350,7 +2500,7 @@ class NotificationsApi:
|
|
1350
2500
|
).data
|
1351
2501
|
|
1352
2502
|
@validate_call
|
1353
|
-
async def
|
2503
|
+
async def _update_notifications_async_with_http_info(
|
1354
2504
|
self,
|
1355
2505
|
notification_update: NotificationUpdate,
|
1356
2506
|
_request_timeout: Union[
|
@@ -1409,12 +2559,11 @@ class NotificationsApi:
|
|
1409
2559
|
)
|
1410
2560
|
await response_data.read()
|
1411
2561
|
return self.api_client.response_deserialize(
|
1412
|
-
response_data=response_data,
|
1413
|
-
response_types_map=_response_types_map,
|
2562
|
+
response_data=response_data, response_types_map=_response_types_map
|
1414
2563
|
)
|
1415
2564
|
|
1416
2565
|
@validate_call
|
1417
|
-
async def
|
2566
|
+
async def _update_notifications_async_without_preload_content(
|
1418
2567
|
self,
|
1419
2568
|
notification_update: NotificationUpdate,
|
1420
2569
|
_request_timeout: Union[
|
@@ -1471,7 +2620,86 @@ class NotificationsApi:
|
|
1471
2620
|
response_data = await self.api_client.call_api(
|
1472
2621
|
*_param, _request_timeout=_request_timeout
|
1473
2622
|
)
|
1474
|
-
return response_data
|
2623
|
+
return response_data
|
2624
|
+
|
2625
|
+
# Private sync implementation methods
|
2626
|
+
@validate_call
|
2627
|
+
def _update_notifications_sync(
|
2628
|
+
self,
|
2629
|
+
notification_update: NotificationUpdate,
|
2630
|
+
_request_timeout: Union[
|
2631
|
+
None,
|
2632
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2633
|
+
Tuple[
|
2634
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2635
|
+
],
|
2636
|
+
] = None,
|
2637
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2638
|
+
_content_type: Optional[StrictStr] = None,
|
2639
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2640
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2641
|
+
) -> None:
|
2642
|
+
"""Synchronous version of update_notifications"""
|
2643
|
+
return async_to_sync(self._update_notifications_async)(
|
2644
|
+
notification_update=notification_update,
|
2645
|
+
_request_timeout=_request_timeout,
|
2646
|
+
_request_auth=_request_auth,
|
2647
|
+
_content_type=_content_type,
|
2648
|
+
_headers=_headers,
|
2649
|
+
_host_index=_host_index,
|
2650
|
+
)
|
2651
|
+
|
2652
|
+
@validate_call
|
2653
|
+
def _update_notifications_sync_with_http_info(
|
2654
|
+
self,
|
2655
|
+
notification_update: NotificationUpdate,
|
2656
|
+
_request_timeout: Union[
|
2657
|
+
None,
|
2658
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2659
|
+
Tuple[
|
2660
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2661
|
+
],
|
2662
|
+
] = None,
|
2663
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2664
|
+
_content_type: Optional[StrictStr] = None,
|
2665
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2666
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2667
|
+
) -> ApiResponse[None]:
|
2668
|
+
"""Synchronous version of update_notifications_with_http_info"""
|
2669
|
+
return async_to_sync(self._update_notifications_async_with_http_info)(
|
2670
|
+
notification_update=notification_update,
|
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
|
+
@validate_call
|
2679
|
+
def _update_notifications_sync_without_preload_content(
|
2680
|
+
self,
|
2681
|
+
notification_update: NotificationUpdate,
|
2682
|
+
_request_timeout: Union[
|
2683
|
+
None,
|
2684
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2685
|
+
Tuple[
|
2686
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2687
|
+
],
|
2688
|
+
] = None,
|
2689
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2690
|
+
_content_type: Optional[StrictStr] = None,
|
2691
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2692
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2693
|
+
) -> RESTResponseType:
|
2694
|
+
"""Synchronous version of update_notifications_without_preload_content"""
|
2695
|
+
return async_to_sync(self._update_notifications_async_without_preload_content)(
|
2696
|
+
notification_update=notification_update,
|
2697
|
+
_request_timeout=_request_timeout,
|
2698
|
+
_request_auth=_request_auth,
|
2699
|
+
_content_type=_content_type,
|
2700
|
+
_headers=_headers,
|
2701
|
+
_host_index=_host_index,
|
2702
|
+
)
|
1475
2703
|
|
1476
2704
|
def _update_notifications_serialize(
|
1477
2705
|
self,
|