queueflow 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. queueflow/__init__.py +80 -0
  2. queueflow/api/__init__.py +11 -0
  3. queueflow/api/cron_api.py +1808 -0
  4. queueflow/api/dlq_api.py +996 -0
  5. queueflow/api/health_api.py +527 -0
  6. queueflow/api/jobs_api.py +1830 -0
  7. queueflow/api/system_api.py +523 -0
  8. queueflow/api/worker_api.py +1229 -0
  9. queueflow/api/workflows_api.py +1804 -0
  10. queueflow/api_client.py +797 -0
  11. queueflow/api_response.py +21 -0
  12. queueflow/configuration.py +579 -0
  13. queueflow/exceptions.py +199 -0
  14. queueflow/facade.py +255 -0
  15. queueflow/models/__init__.py +57 -0
  16. queueflow/models/backoff_strategy.py +38 -0
  17. queueflow/models/complete_job_request.py +89 -0
  18. queueflow/models/create_batch_jobs_request.py +95 -0
  19. queueflow/models/create_batch_jobs_response.py +90 -0
  20. queueflow/models/create_cron_request.py +111 -0
  21. queueflow/models/create_cron_response.py +87 -0
  22. queueflow/models/create_job_request.py +108 -0
  23. queueflow/models/create_job_response.py +87 -0
  24. queueflow/models/create_workflow_request.py +101 -0
  25. queueflow/models/create_workflow_response.py +87 -0
  26. queueflow/models/cron_schedule.py +134 -0
  27. queueflow/models/dead_letter.py +136 -0
  28. queueflow/models/error_body.py +90 -0
  29. queueflow/models/fail_job_request.py +91 -0
  30. queueflow/models/health_status.py +92 -0
  31. queueflow/models/heartbeat_request.py +90 -0
  32. queueflow/models/heartbeat_response.py +88 -0
  33. queueflow/models/job.py +172 -0
  34. queueflow/models/job_config.py +106 -0
  35. queueflow/models/job_config_request.py +143 -0
  36. queueflow/models/job_status.py +41 -0
  37. queueflow/models/lease_jobs_request.py +107 -0
  38. queueflow/models/lease_jobs_response.py +95 -0
  39. queueflow/models/leased_job.py +93 -0
  40. queueflow/models/list_crons_response.py +115 -0
  41. queueflow/models/list_dead_letters_response.py +115 -0
  42. queueflow/models/list_jobs_response.py +115 -0
  43. queueflow/models/list_workflows_response.py +115 -0
  44. queueflow/models/on_failure.py +38 -0
  45. queueflow/models/on_success.py +36 -0
  46. queueflow/models/ready_status.py +87 -0
  47. queueflow/models/replay_dead_letter_response.py +87 -0
  48. queueflow/models/stats_snapshot.py +102 -0
  49. queueflow/models/step_status.py +41 -0
  50. queueflow/models/tasks_response.py +87 -0
  51. queueflow/models/workflow.py +130 -0
  52. queueflow/models/workflow_diagram_response.py +89 -0
  53. queueflow/models/workflow_status.py +41 -0
  54. queueflow/models/workflow_step.py +112 -0
  55. queueflow/models/workflow_step_state.py +97 -0
  56. queueflow/models/workflow_step_states_response.py +95 -0
  57. queueflow/py.typed +0 -0
  58. queueflow/rest.py +257 -0
  59. queueflow-0.1.0.dist-info/METADATA +26 -0
  60. queueflow-0.1.0.dist-info/RECORD +62 -0
  61. queueflow-0.1.0.dist-info/WHEEL +5 -0
  62. queueflow-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1808 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ QueueFlow API
5
+
6
+ REST API for QueueFlow, a PostgreSQL-native distributed job queue and workflow engine.
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from datetime import datetime
20
+ from pydantic import Field, StrictBool, StrictInt, StrictStr
21
+ from typing import Optional
22
+ from typing_extensions import Annotated
23
+ from queueflow.models.create_cron_request import CreateCronRequest
24
+ from queueflow.models.create_cron_response import CreateCronResponse
25
+ from queueflow.models.cron_schedule import CronSchedule
26
+ from queueflow.models.list_crons_response import ListCronsResponse
27
+
28
+ from queueflow.api_client import ApiClient, RequestSerialized
29
+ from queueflow.api_response import ApiResponse
30
+ from queueflow.rest import RESTResponseType
31
+
32
+
33
+ class CronApi:
34
+ """NOTE: This class is auto generated by OpenAPI Generator
35
+ Ref: https://openapi-generator.tech
36
+
37
+ Do not edit the class manually.
38
+ """
39
+
40
+ def __init__(self, api_client=None) -> None:
41
+ if api_client is None:
42
+ api_client = ApiClient.get_default()
43
+ self.api_client = api_client
44
+
45
+
46
+ @validate_call
47
+ def create_cron(
48
+ self,
49
+ create_cron_request: CreateCronRequest,
50
+ _request_timeout: Union[
51
+ None,
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Tuple[
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Annotated[StrictFloat, Field(gt=0)]
56
+ ]
57
+ ] = None,
58
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
59
+ _content_type: Optional[StrictStr] = None,
60
+ _headers: Optional[Dict[StrictStr, Any]] = None,
61
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
62
+ ) -> CreateCronResponse:
63
+ """create_cron
64
+
65
+
66
+ :param create_cron_request: (required)
67
+ :type create_cron_request: CreateCronRequest
68
+ :param _request_timeout: timeout setting for this request. If one
69
+ number provided, it will be total request
70
+ timeout. It can also be a pair (tuple) of
71
+ (connection, read) timeouts.
72
+ :type _request_timeout: int, tuple(int, int), optional
73
+ :param _request_auth: set to override the auth_settings for an a single
74
+ request; this effectively ignores the
75
+ authentication in the spec for a single request.
76
+ :type _request_auth: dict, optional
77
+ :param _content_type: force content-type for the request.
78
+ :type _content_type: str, Optional
79
+ :param _headers: set to override the headers for a single
80
+ request; this effectively ignores the headers
81
+ in the spec for a single request.
82
+ :type _headers: dict, optional
83
+ :param _host_index: set to override the host_index for a single
84
+ request; this effectively ignores the host_index
85
+ in the spec for a single request.
86
+ :type _host_index: int, optional
87
+ :return: Returns the result object.
88
+ """ # noqa: E501
89
+
90
+ _param = self._create_cron_serialize(
91
+ create_cron_request=create_cron_request,
92
+ _request_auth=_request_auth,
93
+ _content_type=_content_type,
94
+ _headers=_headers,
95
+ _host_index=_host_index
96
+ )
97
+
98
+ _response_types_map: Dict[str, Optional[str]] = {
99
+ '201': "CreateCronResponse",
100
+ '400': "ErrorBody",
101
+ '401': "ErrorBody",
102
+ '409': "ErrorBody",
103
+ }
104
+ response_data = self.api_client.call_api(
105
+ *_param,
106
+ _request_timeout=_request_timeout
107
+ )
108
+ response_data.read()
109
+ return self.api_client.response_deserialize(
110
+ response_data=response_data,
111
+ response_types_map=_response_types_map,
112
+ ).data
113
+
114
+
115
+ @validate_call
116
+ def create_cron_with_http_info(
117
+ self,
118
+ create_cron_request: CreateCronRequest,
119
+ _request_timeout: Union[
120
+ None,
121
+ Annotated[StrictFloat, Field(gt=0)],
122
+ Tuple[
123
+ Annotated[StrictFloat, Field(gt=0)],
124
+ Annotated[StrictFloat, Field(gt=0)]
125
+ ]
126
+ ] = None,
127
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
128
+ _content_type: Optional[StrictStr] = None,
129
+ _headers: Optional[Dict[StrictStr, Any]] = None,
130
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
131
+ ) -> ApiResponse[CreateCronResponse]:
132
+ """create_cron
133
+
134
+
135
+ :param create_cron_request: (required)
136
+ :type create_cron_request: CreateCronRequest
137
+ :param _request_timeout: timeout setting for this request. If one
138
+ number provided, it will be total request
139
+ timeout. It can also be a pair (tuple) of
140
+ (connection, read) timeouts.
141
+ :type _request_timeout: int, tuple(int, int), optional
142
+ :param _request_auth: set to override the auth_settings for an a single
143
+ request; this effectively ignores the
144
+ authentication in the spec for a single request.
145
+ :type _request_auth: dict, optional
146
+ :param _content_type: force content-type for the request.
147
+ :type _content_type: str, Optional
148
+ :param _headers: set to override the headers for a single
149
+ request; this effectively ignores the headers
150
+ in the spec for a single request.
151
+ :type _headers: dict, optional
152
+ :param _host_index: set to override the host_index for a single
153
+ request; this effectively ignores the host_index
154
+ in the spec for a single request.
155
+ :type _host_index: int, optional
156
+ :return: Returns the result object.
157
+ """ # noqa: E501
158
+
159
+ _param = self._create_cron_serialize(
160
+ create_cron_request=create_cron_request,
161
+ _request_auth=_request_auth,
162
+ _content_type=_content_type,
163
+ _headers=_headers,
164
+ _host_index=_host_index
165
+ )
166
+
167
+ _response_types_map: Dict[str, Optional[str]] = {
168
+ '201': "CreateCronResponse",
169
+ '400': "ErrorBody",
170
+ '401': "ErrorBody",
171
+ '409': "ErrorBody",
172
+ }
173
+ response_data = self.api_client.call_api(
174
+ *_param,
175
+ _request_timeout=_request_timeout
176
+ )
177
+ response_data.read()
178
+ return self.api_client.response_deserialize(
179
+ response_data=response_data,
180
+ response_types_map=_response_types_map,
181
+ )
182
+
183
+
184
+ @validate_call
185
+ def create_cron_without_preload_content(
186
+ self,
187
+ create_cron_request: CreateCronRequest,
188
+ _request_timeout: Union[
189
+ None,
190
+ Annotated[StrictFloat, Field(gt=0)],
191
+ Tuple[
192
+ Annotated[StrictFloat, Field(gt=0)],
193
+ Annotated[StrictFloat, Field(gt=0)]
194
+ ]
195
+ ] = None,
196
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
197
+ _content_type: Optional[StrictStr] = None,
198
+ _headers: Optional[Dict[StrictStr, Any]] = None,
199
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
200
+ ) -> RESTResponseType:
201
+ """create_cron
202
+
203
+
204
+ :param create_cron_request: (required)
205
+ :type create_cron_request: CreateCronRequest
206
+ :param _request_timeout: timeout setting for this request. If one
207
+ number provided, it will be total request
208
+ timeout. It can also be a pair (tuple) of
209
+ (connection, read) timeouts.
210
+ :type _request_timeout: int, tuple(int, int), optional
211
+ :param _request_auth: set to override the auth_settings for an a single
212
+ request; this effectively ignores the
213
+ authentication in the spec for a single request.
214
+ :type _request_auth: dict, optional
215
+ :param _content_type: force content-type for the request.
216
+ :type _content_type: str, Optional
217
+ :param _headers: set to override the headers for a single
218
+ request; this effectively ignores the headers
219
+ in the spec for a single request.
220
+ :type _headers: dict, optional
221
+ :param _host_index: set to override the host_index for a single
222
+ request; this effectively ignores the host_index
223
+ in the spec for a single request.
224
+ :type _host_index: int, optional
225
+ :return: Returns the result object.
226
+ """ # noqa: E501
227
+
228
+ _param = self._create_cron_serialize(
229
+ create_cron_request=create_cron_request,
230
+ _request_auth=_request_auth,
231
+ _content_type=_content_type,
232
+ _headers=_headers,
233
+ _host_index=_host_index
234
+ )
235
+
236
+ _response_types_map: Dict[str, Optional[str]] = {
237
+ '201': "CreateCronResponse",
238
+ '400': "ErrorBody",
239
+ '401': "ErrorBody",
240
+ '409': "ErrorBody",
241
+ }
242
+ response_data = self.api_client.call_api(
243
+ *_param,
244
+ _request_timeout=_request_timeout
245
+ )
246
+ return response_data.response
247
+
248
+
249
+ def _create_cron_serialize(
250
+ self,
251
+ create_cron_request,
252
+ _request_auth,
253
+ _content_type,
254
+ _headers,
255
+ _host_index,
256
+ ) -> RequestSerialized:
257
+
258
+ _host = None
259
+
260
+ _collection_formats: Dict[str, str] = {
261
+ }
262
+
263
+ _path_params: Dict[str, str] = {}
264
+ _query_params: List[Tuple[str, str]] = []
265
+ _header_params: Dict[str, Optional[str]] = _headers or {}
266
+ _form_params: List[Tuple[str, str]] = []
267
+ _files: Dict[
268
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
269
+ ] = {}
270
+ _body_params: Optional[bytes] = None
271
+
272
+ # process the path parameters
273
+ # process the query parameters
274
+ # process the header parameters
275
+ # process the form parameters
276
+ # process the body parameter
277
+ if create_cron_request is not None:
278
+ _body_params = create_cron_request
279
+
280
+
281
+ # set the HTTP header `Accept`
282
+ if 'Accept' not in _header_params:
283
+ _header_params['Accept'] = self.api_client.select_header_accept(
284
+ [
285
+ 'application/json'
286
+ ]
287
+ )
288
+
289
+ # set the HTTP header `Content-Type`
290
+ if _content_type:
291
+ _header_params['Content-Type'] = _content_type
292
+ else:
293
+ _default_content_type = (
294
+ self.api_client.select_header_content_type(
295
+ [
296
+ 'application/json'
297
+ ]
298
+ )
299
+ )
300
+ if _default_content_type is not None:
301
+ _header_params['Content-Type'] = _default_content_type
302
+
303
+ # authentication setting
304
+ _auth_settings: List[str] = [
305
+ 'bearerAuth'
306
+ ]
307
+
308
+ return self.api_client.param_serialize(
309
+ method='POST',
310
+ resource_path='/api/v1/cron',
311
+ path_params=_path_params,
312
+ query_params=_query_params,
313
+ header_params=_header_params,
314
+ body=_body_params,
315
+ post_params=_form_params,
316
+ files=_files,
317
+ auth_settings=_auth_settings,
318
+ collection_formats=_collection_formats,
319
+ _host=_host,
320
+ _request_auth=_request_auth
321
+ )
322
+
323
+
324
+
325
+
326
+ @validate_call
327
+ def delete_cron(
328
+ self,
329
+ id: Annotated[StrictStr, Field(description="Cron schedule id")],
330
+ _request_timeout: Union[
331
+ None,
332
+ Annotated[StrictFloat, Field(gt=0)],
333
+ Tuple[
334
+ Annotated[StrictFloat, Field(gt=0)],
335
+ Annotated[StrictFloat, Field(gt=0)]
336
+ ]
337
+ ] = None,
338
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
339
+ _content_type: Optional[StrictStr] = None,
340
+ _headers: Optional[Dict[StrictStr, Any]] = None,
341
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
342
+ ) -> None:
343
+ """delete_cron
344
+
345
+
346
+ :param id: Cron schedule id (required)
347
+ :type id: str
348
+ :param _request_timeout: timeout setting for this request. If one
349
+ number provided, it will be total request
350
+ timeout. It can also be a pair (tuple) of
351
+ (connection, read) timeouts.
352
+ :type _request_timeout: int, tuple(int, int), optional
353
+ :param _request_auth: set to override the auth_settings for an a single
354
+ request; this effectively ignores the
355
+ authentication in the spec for a single request.
356
+ :type _request_auth: dict, optional
357
+ :param _content_type: force content-type for the request.
358
+ :type _content_type: str, Optional
359
+ :param _headers: set to override the headers for a single
360
+ request; this effectively ignores the headers
361
+ in the spec for a single request.
362
+ :type _headers: dict, optional
363
+ :param _host_index: set to override the host_index for a single
364
+ request; this effectively ignores the host_index
365
+ in the spec for a single request.
366
+ :type _host_index: int, optional
367
+ :return: Returns the result object.
368
+ """ # noqa: E501
369
+
370
+ _param = self._delete_cron_serialize(
371
+ id=id,
372
+ _request_auth=_request_auth,
373
+ _content_type=_content_type,
374
+ _headers=_headers,
375
+ _host_index=_host_index
376
+ )
377
+
378
+ _response_types_map: Dict[str, Optional[str]] = {
379
+ '204': None,
380
+ '401': "ErrorBody",
381
+ '403': "ErrorBody",
382
+ '404': "ErrorBody",
383
+ }
384
+ response_data = self.api_client.call_api(
385
+ *_param,
386
+ _request_timeout=_request_timeout
387
+ )
388
+ response_data.read()
389
+ return self.api_client.response_deserialize(
390
+ response_data=response_data,
391
+ response_types_map=_response_types_map,
392
+ ).data
393
+
394
+
395
+ @validate_call
396
+ def delete_cron_with_http_info(
397
+ self,
398
+ id: Annotated[StrictStr, Field(description="Cron schedule id")],
399
+ _request_timeout: Union[
400
+ None,
401
+ Annotated[StrictFloat, Field(gt=0)],
402
+ Tuple[
403
+ Annotated[StrictFloat, Field(gt=0)],
404
+ 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[None]:
412
+ """delete_cron
413
+
414
+
415
+ :param id: Cron schedule id (required)
416
+ :type id: str
417
+ :param _request_timeout: timeout setting for this request. If one
418
+ number provided, it will be total request
419
+ timeout. It can also be a pair (tuple) of
420
+ (connection, read) timeouts.
421
+ :type _request_timeout: int, tuple(int, int), optional
422
+ :param _request_auth: set to override the auth_settings for an a single
423
+ request; this effectively ignores the
424
+ authentication in the spec for a single request.
425
+ :type _request_auth: dict, optional
426
+ :param _content_type: force content-type for the request.
427
+ :type _content_type: str, Optional
428
+ :param _headers: set to override the headers for a single
429
+ request; this effectively ignores the headers
430
+ in the spec for a single request.
431
+ :type _headers: dict, optional
432
+ :param _host_index: set to override the host_index for a single
433
+ request; this effectively ignores the host_index
434
+ in the spec for a single request.
435
+ :type _host_index: int, optional
436
+ :return: Returns the result object.
437
+ """ # noqa: E501
438
+
439
+ _param = self._delete_cron_serialize(
440
+ id=id,
441
+ _request_auth=_request_auth,
442
+ _content_type=_content_type,
443
+ _headers=_headers,
444
+ _host_index=_host_index
445
+ )
446
+
447
+ _response_types_map: Dict[str, Optional[str]] = {
448
+ '204': None,
449
+ '401': "ErrorBody",
450
+ '403': "ErrorBody",
451
+ '404': "ErrorBody",
452
+ }
453
+ response_data = self.api_client.call_api(
454
+ *_param,
455
+ _request_timeout=_request_timeout
456
+ )
457
+ response_data.read()
458
+ return self.api_client.response_deserialize(
459
+ response_data=response_data,
460
+ response_types_map=_response_types_map,
461
+ )
462
+
463
+
464
+ @validate_call
465
+ def delete_cron_without_preload_content(
466
+ self,
467
+ id: Annotated[StrictStr, Field(description="Cron schedule id")],
468
+ _request_timeout: Union[
469
+ None,
470
+ Annotated[StrictFloat, Field(gt=0)],
471
+ Tuple[
472
+ Annotated[StrictFloat, Field(gt=0)],
473
+ Annotated[StrictFloat, Field(gt=0)]
474
+ ]
475
+ ] = None,
476
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
477
+ _content_type: Optional[StrictStr] = None,
478
+ _headers: Optional[Dict[StrictStr, Any]] = None,
479
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
480
+ ) -> RESTResponseType:
481
+ """delete_cron
482
+
483
+
484
+ :param id: Cron schedule id (required)
485
+ :type id: str
486
+ :param _request_timeout: timeout setting for this request. If one
487
+ number provided, it will be total request
488
+ timeout. It can also be a pair (tuple) of
489
+ (connection, read) timeouts.
490
+ :type _request_timeout: int, tuple(int, int), optional
491
+ :param _request_auth: set to override the auth_settings for an a single
492
+ request; this effectively ignores the
493
+ authentication in the spec for a single request.
494
+ :type _request_auth: dict, optional
495
+ :param _content_type: force content-type for the request.
496
+ :type _content_type: str, Optional
497
+ :param _headers: set to override the headers for a single
498
+ request; this effectively ignores the headers
499
+ in the spec for a single request.
500
+ :type _headers: dict, optional
501
+ :param _host_index: set to override the host_index for a single
502
+ request; this effectively ignores the host_index
503
+ in the spec for a single request.
504
+ :type _host_index: int, optional
505
+ :return: Returns the result object.
506
+ """ # noqa: E501
507
+
508
+ _param = self._delete_cron_serialize(
509
+ id=id,
510
+ _request_auth=_request_auth,
511
+ _content_type=_content_type,
512
+ _headers=_headers,
513
+ _host_index=_host_index
514
+ )
515
+
516
+ _response_types_map: Dict[str, Optional[str]] = {
517
+ '204': None,
518
+ '401': "ErrorBody",
519
+ '403': "ErrorBody",
520
+ '404': "ErrorBody",
521
+ }
522
+ response_data = self.api_client.call_api(
523
+ *_param,
524
+ _request_timeout=_request_timeout
525
+ )
526
+ return response_data.response
527
+
528
+
529
+ def _delete_cron_serialize(
530
+ self,
531
+ id,
532
+ _request_auth,
533
+ _content_type,
534
+ _headers,
535
+ _host_index,
536
+ ) -> RequestSerialized:
537
+
538
+ _host = None
539
+
540
+ _collection_formats: Dict[str, str] = {
541
+ }
542
+
543
+ _path_params: Dict[str, str] = {}
544
+ _query_params: List[Tuple[str, str]] = []
545
+ _header_params: Dict[str, Optional[str]] = _headers or {}
546
+ _form_params: List[Tuple[str, str]] = []
547
+ _files: Dict[
548
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
549
+ ] = {}
550
+ _body_params: Optional[bytes] = None
551
+
552
+ # process the path parameters
553
+ if id is not None:
554
+ _path_params['id'] = id
555
+ # process the query parameters
556
+ # process the header parameters
557
+ # process the form parameters
558
+ # process the body parameter
559
+
560
+
561
+ # set the HTTP header `Accept`
562
+ if 'Accept' not in _header_params:
563
+ _header_params['Accept'] = self.api_client.select_header_accept(
564
+ [
565
+ 'application/json'
566
+ ]
567
+ )
568
+
569
+
570
+ # authentication setting
571
+ _auth_settings: List[str] = [
572
+ 'bearerAuth'
573
+ ]
574
+
575
+ return self.api_client.param_serialize(
576
+ method='DELETE',
577
+ resource_path='/api/v1/cron/{id}',
578
+ path_params=_path_params,
579
+ query_params=_query_params,
580
+ header_params=_header_params,
581
+ body=_body_params,
582
+ post_params=_form_params,
583
+ files=_files,
584
+ auth_settings=_auth_settings,
585
+ collection_formats=_collection_formats,
586
+ _host=_host,
587
+ _request_auth=_request_auth
588
+ )
589
+
590
+
591
+
592
+
593
+ @validate_call
594
+ def get_cron(
595
+ self,
596
+ id: Annotated[StrictStr, Field(description="Cron schedule id")],
597
+ _request_timeout: Union[
598
+ None,
599
+ Annotated[StrictFloat, Field(gt=0)],
600
+ Tuple[
601
+ Annotated[StrictFloat, Field(gt=0)],
602
+ Annotated[StrictFloat, Field(gt=0)]
603
+ ]
604
+ ] = None,
605
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
606
+ _content_type: Optional[StrictStr] = None,
607
+ _headers: Optional[Dict[StrictStr, Any]] = None,
608
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
609
+ ) -> CronSchedule:
610
+ """get_cron
611
+
612
+
613
+ :param id: Cron schedule id (required)
614
+ :type id: str
615
+ :param _request_timeout: timeout setting for this request. If one
616
+ number provided, it will be total request
617
+ timeout. It can also be a pair (tuple) of
618
+ (connection, read) timeouts.
619
+ :type _request_timeout: int, tuple(int, int), optional
620
+ :param _request_auth: set to override the auth_settings for an a single
621
+ request; this effectively ignores the
622
+ authentication in the spec for a single request.
623
+ :type _request_auth: dict, optional
624
+ :param _content_type: force content-type for the request.
625
+ :type _content_type: str, Optional
626
+ :param _headers: set to override the headers for a single
627
+ request; this effectively ignores the headers
628
+ in the spec for a single request.
629
+ :type _headers: dict, optional
630
+ :param _host_index: set to override the host_index for a single
631
+ request; this effectively ignores the host_index
632
+ in the spec for a single request.
633
+ :type _host_index: int, optional
634
+ :return: Returns the result object.
635
+ """ # noqa: E501
636
+
637
+ _param = self._get_cron_serialize(
638
+ id=id,
639
+ _request_auth=_request_auth,
640
+ _content_type=_content_type,
641
+ _headers=_headers,
642
+ _host_index=_host_index
643
+ )
644
+
645
+ _response_types_map: Dict[str, Optional[str]] = {
646
+ '200': "CronSchedule",
647
+ '401': "ErrorBody",
648
+ '403': "ErrorBody",
649
+ '404': "ErrorBody",
650
+ }
651
+ response_data = self.api_client.call_api(
652
+ *_param,
653
+ _request_timeout=_request_timeout
654
+ )
655
+ response_data.read()
656
+ return self.api_client.response_deserialize(
657
+ response_data=response_data,
658
+ response_types_map=_response_types_map,
659
+ ).data
660
+
661
+
662
+ @validate_call
663
+ def get_cron_with_http_info(
664
+ self,
665
+ id: Annotated[StrictStr, Field(description="Cron schedule id")],
666
+ _request_timeout: Union[
667
+ None,
668
+ Annotated[StrictFloat, Field(gt=0)],
669
+ Tuple[
670
+ Annotated[StrictFloat, Field(gt=0)],
671
+ Annotated[StrictFloat, Field(gt=0)]
672
+ ]
673
+ ] = None,
674
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
675
+ _content_type: Optional[StrictStr] = None,
676
+ _headers: Optional[Dict[StrictStr, Any]] = None,
677
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
678
+ ) -> ApiResponse[CronSchedule]:
679
+ """get_cron
680
+
681
+
682
+ :param id: Cron schedule id (required)
683
+ :type id: str
684
+ :param _request_timeout: timeout setting for this request. If one
685
+ number provided, it will be total request
686
+ timeout. It can also be a pair (tuple) of
687
+ (connection, read) timeouts.
688
+ :type _request_timeout: int, tuple(int, int), optional
689
+ :param _request_auth: set to override the auth_settings for an a single
690
+ request; this effectively ignores the
691
+ authentication in the spec for a single request.
692
+ :type _request_auth: dict, optional
693
+ :param _content_type: force content-type for the request.
694
+ :type _content_type: str, Optional
695
+ :param _headers: set to override the headers for a single
696
+ request; this effectively ignores the headers
697
+ in the spec for a single request.
698
+ :type _headers: dict, optional
699
+ :param _host_index: set to override the host_index for a single
700
+ request; this effectively ignores the host_index
701
+ in the spec for a single request.
702
+ :type _host_index: int, optional
703
+ :return: Returns the result object.
704
+ """ # noqa: E501
705
+
706
+ _param = self._get_cron_serialize(
707
+ id=id,
708
+ _request_auth=_request_auth,
709
+ _content_type=_content_type,
710
+ _headers=_headers,
711
+ _host_index=_host_index
712
+ )
713
+
714
+ _response_types_map: Dict[str, Optional[str]] = {
715
+ '200': "CronSchedule",
716
+ '401': "ErrorBody",
717
+ '403': "ErrorBody",
718
+ '404': "ErrorBody",
719
+ }
720
+ response_data = self.api_client.call_api(
721
+ *_param,
722
+ _request_timeout=_request_timeout
723
+ )
724
+ response_data.read()
725
+ return self.api_client.response_deserialize(
726
+ response_data=response_data,
727
+ response_types_map=_response_types_map,
728
+ )
729
+
730
+
731
+ @validate_call
732
+ def get_cron_without_preload_content(
733
+ self,
734
+ id: Annotated[StrictStr, Field(description="Cron schedule id")],
735
+ _request_timeout: Union[
736
+ None,
737
+ Annotated[StrictFloat, Field(gt=0)],
738
+ Tuple[
739
+ Annotated[StrictFloat, Field(gt=0)],
740
+ Annotated[StrictFloat, Field(gt=0)]
741
+ ]
742
+ ] = None,
743
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
744
+ _content_type: Optional[StrictStr] = None,
745
+ _headers: Optional[Dict[StrictStr, Any]] = None,
746
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
747
+ ) -> RESTResponseType:
748
+ """get_cron
749
+
750
+
751
+ :param id: Cron schedule id (required)
752
+ :type id: str
753
+ :param _request_timeout: timeout setting for this request. If one
754
+ number provided, it will be total request
755
+ timeout. It can also be a pair (tuple) of
756
+ (connection, read) timeouts.
757
+ :type _request_timeout: int, tuple(int, int), optional
758
+ :param _request_auth: set to override the auth_settings for an a single
759
+ request; this effectively ignores the
760
+ authentication in the spec for a single request.
761
+ :type _request_auth: dict, optional
762
+ :param _content_type: force content-type for the request.
763
+ :type _content_type: str, Optional
764
+ :param _headers: set to override the headers for a single
765
+ request; this effectively ignores the headers
766
+ in the spec for a single request.
767
+ :type _headers: dict, optional
768
+ :param _host_index: set to override the host_index for a single
769
+ request; this effectively ignores the host_index
770
+ in the spec for a single request.
771
+ :type _host_index: int, optional
772
+ :return: Returns the result object.
773
+ """ # noqa: E501
774
+
775
+ _param = self._get_cron_serialize(
776
+ id=id,
777
+ _request_auth=_request_auth,
778
+ _content_type=_content_type,
779
+ _headers=_headers,
780
+ _host_index=_host_index
781
+ )
782
+
783
+ _response_types_map: Dict[str, Optional[str]] = {
784
+ '200': "CronSchedule",
785
+ '401': "ErrorBody",
786
+ '403': "ErrorBody",
787
+ '404': "ErrorBody",
788
+ }
789
+ response_data = self.api_client.call_api(
790
+ *_param,
791
+ _request_timeout=_request_timeout
792
+ )
793
+ return response_data.response
794
+
795
+
796
+ def _get_cron_serialize(
797
+ self,
798
+ id,
799
+ _request_auth,
800
+ _content_type,
801
+ _headers,
802
+ _host_index,
803
+ ) -> RequestSerialized:
804
+
805
+ _host = None
806
+
807
+ _collection_formats: Dict[str, str] = {
808
+ }
809
+
810
+ _path_params: Dict[str, str] = {}
811
+ _query_params: List[Tuple[str, str]] = []
812
+ _header_params: Dict[str, Optional[str]] = _headers or {}
813
+ _form_params: List[Tuple[str, str]] = []
814
+ _files: Dict[
815
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
816
+ ] = {}
817
+ _body_params: Optional[bytes] = None
818
+
819
+ # process the path parameters
820
+ if id is not None:
821
+ _path_params['id'] = id
822
+ # process the query parameters
823
+ # process the header parameters
824
+ # process the form parameters
825
+ # process the body parameter
826
+
827
+
828
+ # set the HTTP header `Accept`
829
+ if 'Accept' not in _header_params:
830
+ _header_params['Accept'] = self.api_client.select_header_accept(
831
+ [
832
+ 'application/json'
833
+ ]
834
+ )
835
+
836
+
837
+ # authentication setting
838
+ _auth_settings: List[str] = [
839
+ 'bearerAuth'
840
+ ]
841
+
842
+ return self.api_client.param_serialize(
843
+ method='GET',
844
+ resource_path='/api/v1/cron/{id}',
845
+ path_params=_path_params,
846
+ query_params=_query_params,
847
+ header_params=_header_params,
848
+ body=_body_params,
849
+ post_params=_form_params,
850
+ files=_files,
851
+ auth_settings=_auth_settings,
852
+ collection_formats=_collection_formats,
853
+ _host=_host,
854
+ _request_auth=_request_auth
855
+ )
856
+
857
+
858
+
859
+
860
+ @validate_call
861
+ def list_crons(
862
+ self,
863
+ status: Annotated[Optional[StrictStr], Field(description="Filter by status (e.g. `pending`, `completed`).")] = None,
864
+ queue: Annotated[Optional[StrictStr], Field(description="Filter by queue name (jobs only).")] = None,
865
+ limit: Annotated[Optional[StrictInt], Field(description="Page size, 1..=100 (default 50).")] = None,
866
+ offset: Annotated[Optional[StrictInt], Field(description="Number of records to skip (default 0).")] = None,
867
+ order_by: Annotated[Optional[StrictStr], Field(description="`created_at ASC` or `created_at DESC` (default DESC).")] = None,
868
+ include_total: Annotated[Optional[StrictBool], Field(description="Include the exact `total` count in the response (default false; the count is an extra full scan over the filtered set).")] = None,
869
+ cursor: Annotated[Optional[StrictStr], Field(description="Opaque keyset cursor from a previous page's `next_cursor`. When set, `offset` is ignored and listing continues where that page ended.")] = None,
870
+ created_after: Annotated[Optional[datetime], Field(description="Only rows created at or after this instant (RFC 3339, inclusive). With `created_before` this forms the half-open range `[after, before)` — the natural shape for walking history period by period.")] = None,
871
+ created_before: Annotated[Optional[datetime], Field(description="Only rows created strictly before this instant (RFC 3339, exclusive).")] = None,
872
+ _request_timeout: Union[
873
+ None,
874
+ Annotated[StrictFloat, Field(gt=0)],
875
+ Tuple[
876
+ Annotated[StrictFloat, Field(gt=0)],
877
+ Annotated[StrictFloat, Field(gt=0)]
878
+ ]
879
+ ] = None,
880
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
881
+ _content_type: Optional[StrictStr] = None,
882
+ _headers: Optional[Dict[StrictStr, Any]] = None,
883
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
884
+ ) -> ListCronsResponse:
885
+ """list_crons
886
+
887
+
888
+ :param status: Filter by status (e.g. `pending`, `completed`).
889
+ :type status: str
890
+ :param queue: Filter by queue name (jobs only).
891
+ :type queue: str
892
+ :param limit: Page size, 1..=100 (default 50).
893
+ :type limit: int
894
+ :param offset: Number of records to skip (default 0).
895
+ :type offset: int
896
+ :param order_by: `created_at ASC` or `created_at DESC` (default DESC).
897
+ :type order_by: str
898
+ :param include_total: Include the exact `total` count in the response (default false; the count is an extra full scan over the filtered set).
899
+ :type include_total: bool
900
+ :param cursor: Opaque keyset cursor from a previous page's `next_cursor`. When set, `offset` is ignored and listing continues where that page ended.
901
+ :type cursor: str
902
+ :param created_after: Only rows created at or after this instant (RFC 3339, inclusive). With `created_before` this forms the half-open range `[after, before)` — the natural shape for walking history period by period.
903
+ :type created_after: datetime
904
+ :param created_before: Only rows created strictly before this instant (RFC 3339, exclusive).
905
+ :type created_before: datetime
906
+ :param _request_timeout: timeout setting for this request. If one
907
+ number provided, it will be total request
908
+ timeout. It can also be a pair (tuple) of
909
+ (connection, read) timeouts.
910
+ :type _request_timeout: int, tuple(int, int), optional
911
+ :param _request_auth: set to override the auth_settings for an a single
912
+ request; this effectively ignores the
913
+ authentication in the spec for a single request.
914
+ :type _request_auth: dict, optional
915
+ :param _content_type: force content-type for the request.
916
+ :type _content_type: str, Optional
917
+ :param _headers: set to override the headers for a single
918
+ request; this effectively ignores the headers
919
+ in the spec for a single request.
920
+ :type _headers: dict, optional
921
+ :param _host_index: set to override the host_index for a single
922
+ request; this effectively ignores the host_index
923
+ in the spec for a single request.
924
+ :type _host_index: int, optional
925
+ :return: Returns the result object.
926
+ """ # noqa: E501
927
+
928
+ _param = self._list_crons_serialize(
929
+ status=status,
930
+ queue=queue,
931
+ limit=limit,
932
+ offset=offset,
933
+ order_by=order_by,
934
+ include_total=include_total,
935
+ cursor=cursor,
936
+ created_after=created_after,
937
+ created_before=created_before,
938
+ _request_auth=_request_auth,
939
+ _content_type=_content_type,
940
+ _headers=_headers,
941
+ _host_index=_host_index
942
+ )
943
+
944
+ _response_types_map: Dict[str, Optional[str]] = {
945
+ '200': "ListCronsResponse",
946
+ '401': "ErrorBody",
947
+ }
948
+ response_data = self.api_client.call_api(
949
+ *_param,
950
+ _request_timeout=_request_timeout
951
+ )
952
+ response_data.read()
953
+ return self.api_client.response_deserialize(
954
+ response_data=response_data,
955
+ response_types_map=_response_types_map,
956
+ ).data
957
+
958
+
959
+ @validate_call
960
+ def list_crons_with_http_info(
961
+ self,
962
+ status: Annotated[Optional[StrictStr], Field(description="Filter by status (e.g. `pending`, `completed`).")] = None,
963
+ queue: Annotated[Optional[StrictStr], Field(description="Filter by queue name (jobs only).")] = None,
964
+ limit: Annotated[Optional[StrictInt], Field(description="Page size, 1..=100 (default 50).")] = None,
965
+ offset: Annotated[Optional[StrictInt], Field(description="Number of records to skip (default 0).")] = None,
966
+ order_by: Annotated[Optional[StrictStr], Field(description="`created_at ASC` or `created_at DESC` (default DESC).")] = None,
967
+ include_total: Annotated[Optional[StrictBool], Field(description="Include the exact `total` count in the response (default false; the count is an extra full scan over the filtered set).")] = None,
968
+ cursor: Annotated[Optional[StrictStr], Field(description="Opaque keyset cursor from a previous page's `next_cursor`. When set, `offset` is ignored and listing continues where that page ended.")] = None,
969
+ created_after: Annotated[Optional[datetime], Field(description="Only rows created at or after this instant (RFC 3339, inclusive). With `created_before` this forms the half-open range `[after, before)` — the natural shape for walking history period by period.")] = None,
970
+ created_before: Annotated[Optional[datetime], Field(description="Only rows created strictly before this instant (RFC 3339, exclusive).")] = None,
971
+ _request_timeout: Union[
972
+ None,
973
+ Annotated[StrictFloat, Field(gt=0)],
974
+ Tuple[
975
+ Annotated[StrictFloat, Field(gt=0)],
976
+ Annotated[StrictFloat, Field(gt=0)]
977
+ ]
978
+ ] = None,
979
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
980
+ _content_type: Optional[StrictStr] = None,
981
+ _headers: Optional[Dict[StrictStr, Any]] = None,
982
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
983
+ ) -> ApiResponse[ListCronsResponse]:
984
+ """list_crons
985
+
986
+
987
+ :param status: Filter by status (e.g. `pending`, `completed`).
988
+ :type status: str
989
+ :param queue: Filter by queue name (jobs only).
990
+ :type queue: str
991
+ :param limit: Page size, 1..=100 (default 50).
992
+ :type limit: int
993
+ :param offset: Number of records to skip (default 0).
994
+ :type offset: int
995
+ :param order_by: `created_at ASC` or `created_at DESC` (default DESC).
996
+ :type order_by: str
997
+ :param include_total: Include the exact `total` count in the response (default false; the count is an extra full scan over the filtered set).
998
+ :type include_total: bool
999
+ :param cursor: Opaque keyset cursor from a previous page's `next_cursor`. When set, `offset` is ignored and listing continues where that page ended.
1000
+ :type cursor: str
1001
+ :param created_after: Only rows created at or after this instant (RFC 3339, inclusive). With `created_before` this forms the half-open range `[after, before)` — the natural shape for walking history period by period.
1002
+ :type created_after: datetime
1003
+ :param created_before: Only rows created strictly before this instant (RFC 3339, exclusive).
1004
+ :type created_before: datetime
1005
+ :param _request_timeout: timeout setting for this request. If one
1006
+ number provided, it will be total request
1007
+ timeout. It can also be a pair (tuple) of
1008
+ (connection, read) timeouts.
1009
+ :type _request_timeout: int, tuple(int, int), optional
1010
+ :param _request_auth: set to override the auth_settings for an a single
1011
+ request; this effectively ignores the
1012
+ authentication in the spec for a single request.
1013
+ :type _request_auth: dict, optional
1014
+ :param _content_type: force content-type for the request.
1015
+ :type _content_type: str, Optional
1016
+ :param _headers: set to override the headers for a single
1017
+ request; this effectively ignores the headers
1018
+ in the spec for a single request.
1019
+ :type _headers: dict, optional
1020
+ :param _host_index: set to override the host_index for a single
1021
+ request; this effectively ignores the host_index
1022
+ in the spec for a single request.
1023
+ :type _host_index: int, optional
1024
+ :return: Returns the result object.
1025
+ """ # noqa: E501
1026
+
1027
+ _param = self._list_crons_serialize(
1028
+ status=status,
1029
+ queue=queue,
1030
+ limit=limit,
1031
+ offset=offset,
1032
+ order_by=order_by,
1033
+ include_total=include_total,
1034
+ cursor=cursor,
1035
+ created_after=created_after,
1036
+ created_before=created_before,
1037
+ _request_auth=_request_auth,
1038
+ _content_type=_content_type,
1039
+ _headers=_headers,
1040
+ _host_index=_host_index
1041
+ )
1042
+
1043
+ _response_types_map: Dict[str, Optional[str]] = {
1044
+ '200': "ListCronsResponse",
1045
+ '401': "ErrorBody",
1046
+ }
1047
+ response_data = self.api_client.call_api(
1048
+ *_param,
1049
+ _request_timeout=_request_timeout
1050
+ )
1051
+ response_data.read()
1052
+ return self.api_client.response_deserialize(
1053
+ response_data=response_data,
1054
+ response_types_map=_response_types_map,
1055
+ )
1056
+
1057
+
1058
+ @validate_call
1059
+ def list_crons_without_preload_content(
1060
+ self,
1061
+ status: Annotated[Optional[StrictStr], Field(description="Filter by status (e.g. `pending`, `completed`).")] = None,
1062
+ queue: Annotated[Optional[StrictStr], Field(description="Filter by queue name (jobs only).")] = None,
1063
+ limit: Annotated[Optional[StrictInt], Field(description="Page size, 1..=100 (default 50).")] = None,
1064
+ offset: Annotated[Optional[StrictInt], Field(description="Number of records to skip (default 0).")] = None,
1065
+ order_by: Annotated[Optional[StrictStr], Field(description="`created_at ASC` or `created_at DESC` (default DESC).")] = None,
1066
+ include_total: Annotated[Optional[StrictBool], Field(description="Include the exact `total` count in the response (default false; the count is an extra full scan over the filtered set).")] = None,
1067
+ cursor: Annotated[Optional[StrictStr], Field(description="Opaque keyset cursor from a previous page's `next_cursor`. When set, `offset` is ignored and listing continues where that page ended.")] = None,
1068
+ created_after: Annotated[Optional[datetime], Field(description="Only rows created at or after this instant (RFC 3339, inclusive). With `created_before` this forms the half-open range `[after, before)` — the natural shape for walking history period by period.")] = None,
1069
+ created_before: Annotated[Optional[datetime], Field(description="Only rows created strictly before this instant (RFC 3339, exclusive).")] = None,
1070
+ _request_timeout: Union[
1071
+ None,
1072
+ Annotated[StrictFloat, Field(gt=0)],
1073
+ Tuple[
1074
+ Annotated[StrictFloat, Field(gt=0)],
1075
+ Annotated[StrictFloat, Field(gt=0)]
1076
+ ]
1077
+ ] = None,
1078
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1079
+ _content_type: Optional[StrictStr] = None,
1080
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1081
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1082
+ ) -> RESTResponseType:
1083
+ """list_crons
1084
+
1085
+
1086
+ :param status: Filter by status (e.g. `pending`, `completed`).
1087
+ :type status: str
1088
+ :param queue: Filter by queue name (jobs only).
1089
+ :type queue: str
1090
+ :param limit: Page size, 1..=100 (default 50).
1091
+ :type limit: int
1092
+ :param offset: Number of records to skip (default 0).
1093
+ :type offset: int
1094
+ :param order_by: `created_at ASC` or `created_at DESC` (default DESC).
1095
+ :type order_by: str
1096
+ :param include_total: Include the exact `total` count in the response (default false; the count is an extra full scan over the filtered set).
1097
+ :type include_total: bool
1098
+ :param cursor: Opaque keyset cursor from a previous page's `next_cursor`. When set, `offset` is ignored and listing continues where that page ended.
1099
+ :type cursor: str
1100
+ :param created_after: Only rows created at or after this instant (RFC 3339, inclusive). With `created_before` this forms the half-open range `[after, before)` — the natural shape for walking history period by period.
1101
+ :type created_after: datetime
1102
+ :param created_before: Only rows created strictly before this instant (RFC 3339, exclusive).
1103
+ :type created_before: datetime
1104
+ :param _request_timeout: timeout setting for this request. If one
1105
+ number provided, it will be total request
1106
+ timeout. It can also be a pair (tuple) of
1107
+ (connection, read) timeouts.
1108
+ :type _request_timeout: int, tuple(int, int), optional
1109
+ :param _request_auth: set to override the auth_settings for an a single
1110
+ request; this effectively ignores the
1111
+ authentication in the spec for a single request.
1112
+ :type _request_auth: dict, optional
1113
+ :param _content_type: force content-type for the request.
1114
+ :type _content_type: str, Optional
1115
+ :param _headers: set to override the headers for a single
1116
+ request; this effectively ignores the headers
1117
+ in the spec for a single request.
1118
+ :type _headers: dict, optional
1119
+ :param _host_index: set to override the host_index for a single
1120
+ request; this effectively ignores the host_index
1121
+ in the spec for a single request.
1122
+ :type _host_index: int, optional
1123
+ :return: Returns the result object.
1124
+ """ # noqa: E501
1125
+
1126
+ _param = self._list_crons_serialize(
1127
+ status=status,
1128
+ queue=queue,
1129
+ limit=limit,
1130
+ offset=offset,
1131
+ order_by=order_by,
1132
+ include_total=include_total,
1133
+ cursor=cursor,
1134
+ created_after=created_after,
1135
+ created_before=created_before,
1136
+ _request_auth=_request_auth,
1137
+ _content_type=_content_type,
1138
+ _headers=_headers,
1139
+ _host_index=_host_index
1140
+ )
1141
+
1142
+ _response_types_map: Dict[str, Optional[str]] = {
1143
+ '200': "ListCronsResponse",
1144
+ '401': "ErrorBody",
1145
+ }
1146
+ response_data = self.api_client.call_api(
1147
+ *_param,
1148
+ _request_timeout=_request_timeout
1149
+ )
1150
+ return response_data.response
1151
+
1152
+
1153
+ def _list_crons_serialize(
1154
+ self,
1155
+ status,
1156
+ queue,
1157
+ limit,
1158
+ offset,
1159
+ order_by,
1160
+ include_total,
1161
+ cursor,
1162
+ created_after,
1163
+ created_before,
1164
+ _request_auth,
1165
+ _content_type,
1166
+ _headers,
1167
+ _host_index,
1168
+ ) -> RequestSerialized:
1169
+
1170
+ _host = None
1171
+
1172
+ _collection_formats: Dict[str, str] = {
1173
+ }
1174
+
1175
+ _path_params: Dict[str, str] = {}
1176
+ _query_params: List[Tuple[str, str]] = []
1177
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1178
+ _form_params: List[Tuple[str, str]] = []
1179
+ _files: Dict[
1180
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1181
+ ] = {}
1182
+ _body_params: Optional[bytes] = None
1183
+
1184
+ # process the path parameters
1185
+ # process the query parameters
1186
+ if status is not None:
1187
+
1188
+ _query_params.append(('status', status))
1189
+
1190
+ if queue is not None:
1191
+
1192
+ _query_params.append(('queue', queue))
1193
+
1194
+ if limit is not None:
1195
+
1196
+ _query_params.append(('limit', limit))
1197
+
1198
+ if offset is not None:
1199
+
1200
+ _query_params.append(('offset', offset))
1201
+
1202
+ if order_by is not None:
1203
+
1204
+ _query_params.append(('order_by', order_by))
1205
+
1206
+ if include_total is not None:
1207
+
1208
+ _query_params.append(('include_total', include_total))
1209
+
1210
+ if cursor is not None:
1211
+
1212
+ _query_params.append(('cursor', cursor))
1213
+
1214
+ if created_after is not None:
1215
+ if isinstance(created_after, datetime):
1216
+ _query_params.append(
1217
+ (
1218
+ 'created_after',
1219
+ created_after.strftime(
1220
+ self.api_client.configuration.datetime_format
1221
+ )
1222
+ )
1223
+ )
1224
+ else:
1225
+ _query_params.append(('created_after', created_after))
1226
+
1227
+ if created_before is not None:
1228
+ if isinstance(created_before, datetime):
1229
+ _query_params.append(
1230
+ (
1231
+ 'created_before',
1232
+ created_before.strftime(
1233
+ self.api_client.configuration.datetime_format
1234
+ )
1235
+ )
1236
+ )
1237
+ else:
1238
+ _query_params.append(('created_before', created_before))
1239
+
1240
+ # process the header parameters
1241
+ # process the form parameters
1242
+ # process the body parameter
1243
+
1244
+
1245
+ # set the HTTP header `Accept`
1246
+ if 'Accept' not in _header_params:
1247
+ _header_params['Accept'] = self.api_client.select_header_accept(
1248
+ [
1249
+ 'application/json'
1250
+ ]
1251
+ )
1252
+
1253
+
1254
+ # authentication setting
1255
+ _auth_settings: List[str] = [
1256
+ 'bearerAuth'
1257
+ ]
1258
+
1259
+ return self.api_client.param_serialize(
1260
+ method='GET',
1261
+ resource_path='/api/v1/cron',
1262
+ path_params=_path_params,
1263
+ query_params=_query_params,
1264
+ header_params=_header_params,
1265
+ body=_body_params,
1266
+ post_params=_form_params,
1267
+ files=_files,
1268
+ auth_settings=_auth_settings,
1269
+ collection_formats=_collection_formats,
1270
+ _host=_host,
1271
+ _request_auth=_request_auth
1272
+ )
1273
+
1274
+
1275
+
1276
+
1277
+ @validate_call
1278
+ def pause_cron(
1279
+ self,
1280
+ id: Annotated[StrictStr, Field(description="Cron schedule id")],
1281
+ _request_timeout: Union[
1282
+ None,
1283
+ Annotated[StrictFloat, Field(gt=0)],
1284
+ Tuple[
1285
+ Annotated[StrictFloat, Field(gt=0)],
1286
+ Annotated[StrictFloat, Field(gt=0)]
1287
+ ]
1288
+ ] = None,
1289
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1290
+ _content_type: Optional[StrictStr] = None,
1291
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1292
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1293
+ ) -> None:
1294
+ """pause_cron
1295
+
1296
+
1297
+ :param id: Cron schedule id (required)
1298
+ :type id: str
1299
+ :param _request_timeout: timeout setting for this request. If one
1300
+ number provided, it will be total request
1301
+ timeout. It can also be a pair (tuple) of
1302
+ (connection, read) timeouts.
1303
+ :type _request_timeout: int, tuple(int, int), optional
1304
+ :param _request_auth: set to override the auth_settings for an a single
1305
+ request; this effectively ignores the
1306
+ authentication in the spec for a single request.
1307
+ :type _request_auth: dict, optional
1308
+ :param _content_type: force content-type for the request.
1309
+ :type _content_type: str, Optional
1310
+ :param _headers: set to override the headers for a single
1311
+ request; this effectively ignores the headers
1312
+ in the spec for a single request.
1313
+ :type _headers: dict, optional
1314
+ :param _host_index: set to override the host_index for a single
1315
+ request; this effectively ignores the host_index
1316
+ in the spec for a single request.
1317
+ :type _host_index: int, optional
1318
+ :return: Returns the result object.
1319
+ """ # noqa: E501
1320
+
1321
+ _param = self._pause_cron_serialize(
1322
+ id=id,
1323
+ _request_auth=_request_auth,
1324
+ _content_type=_content_type,
1325
+ _headers=_headers,
1326
+ _host_index=_host_index
1327
+ )
1328
+
1329
+ _response_types_map: Dict[str, Optional[str]] = {
1330
+ '204': None,
1331
+ '401': "ErrorBody",
1332
+ '403': "ErrorBody",
1333
+ '404': "ErrorBody",
1334
+ }
1335
+ response_data = self.api_client.call_api(
1336
+ *_param,
1337
+ _request_timeout=_request_timeout
1338
+ )
1339
+ response_data.read()
1340
+ return self.api_client.response_deserialize(
1341
+ response_data=response_data,
1342
+ response_types_map=_response_types_map,
1343
+ ).data
1344
+
1345
+
1346
+ @validate_call
1347
+ def pause_cron_with_http_info(
1348
+ self,
1349
+ id: Annotated[StrictStr, Field(description="Cron schedule id")],
1350
+ _request_timeout: Union[
1351
+ None,
1352
+ Annotated[StrictFloat, Field(gt=0)],
1353
+ Tuple[
1354
+ Annotated[StrictFloat, Field(gt=0)],
1355
+ Annotated[StrictFloat, Field(gt=0)]
1356
+ ]
1357
+ ] = None,
1358
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1359
+ _content_type: Optional[StrictStr] = None,
1360
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1361
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1362
+ ) -> ApiResponse[None]:
1363
+ """pause_cron
1364
+
1365
+
1366
+ :param id: Cron schedule id (required)
1367
+ :type id: str
1368
+ :param _request_timeout: timeout setting for this request. If one
1369
+ number provided, it will be total request
1370
+ timeout. It can also be a pair (tuple) of
1371
+ (connection, read) timeouts.
1372
+ :type _request_timeout: int, tuple(int, int), optional
1373
+ :param _request_auth: set to override the auth_settings for an a single
1374
+ request; this effectively ignores the
1375
+ authentication in the spec for a single request.
1376
+ :type _request_auth: dict, optional
1377
+ :param _content_type: force content-type for the request.
1378
+ :type _content_type: str, Optional
1379
+ :param _headers: set to override the headers for a single
1380
+ request; this effectively ignores the headers
1381
+ in the spec for a single request.
1382
+ :type _headers: dict, optional
1383
+ :param _host_index: set to override the host_index for a single
1384
+ request; this effectively ignores the host_index
1385
+ in the spec for a single request.
1386
+ :type _host_index: int, optional
1387
+ :return: Returns the result object.
1388
+ """ # noqa: E501
1389
+
1390
+ _param = self._pause_cron_serialize(
1391
+ id=id,
1392
+ _request_auth=_request_auth,
1393
+ _content_type=_content_type,
1394
+ _headers=_headers,
1395
+ _host_index=_host_index
1396
+ )
1397
+
1398
+ _response_types_map: Dict[str, Optional[str]] = {
1399
+ '204': None,
1400
+ '401': "ErrorBody",
1401
+ '403': "ErrorBody",
1402
+ '404': "ErrorBody",
1403
+ }
1404
+ response_data = self.api_client.call_api(
1405
+ *_param,
1406
+ _request_timeout=_request_timeout
1407
+ )
1408
+ response_data.read()
1409
+ return self.api_client.response_deserialize(
1410
+ response_data=response_data,
1411
+ response_types_map=_response_types_map,
1412
+ )
1413
+
1414
+
1415
+ @validate_call
1416
+ def pause_cron_without_preload_content(
1417
+ self,
1418
+ id: Annotated[StrictStr, Field(description="Cron schedule id")],
1419
+ _request_timeout: Union[
1420
+ None,
1421
+ Annotated[StrictFloat, Field(gt=0)],
1422
+ Tuple[
1423
+ Annotated[StrictFloat, Field(gt=0)],
1424
+ Annotated[StrictFloat, Field(gt=0)]
1425
+ ]
1426
+ ] = None,
1427
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1428
+ _content_type: Optional[StrictStr] = None,
1429
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1430
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1431
+ ) -> RESTResponseType:
1432
+ """pause_cron
1433
+
1434
+
1435
+ :param id: Cron schedule id (required)
1436
+ :type id: str
1437
+ :param _request_timeout: timeout setting for this request. If one
1438
+ number provided, it will be total request
1439
+ timeout. It can also be a pair (tuple) of
1440
+ (connection, read) timeouts.
1441
+ :type _request_timeout: int, tuple(int, int), optional
1442
+ :param _request_auth: set to override the auth_settings for an a single
1443
+ request; this effectively ignores the
1444
+ authentication in the spec for a single request.
1445
+ :type _request_auth: dict, optional
1446
+ :param _content_type: force content-type for the request.
1447
+ :type _content_type: str, Optional
1448
+ :param _headers: set to override the headers for a single
1449
+ request; this effectively ignores the headers
1450
+ in the spec for a single request.
1451
+ :type _headers: dict, optional
1452
+ :param _host_index: set to override the host_index for a single
1453
+ request; this effectively ignores the host_index
1454
+ in the spec for a single request.
1455
+ :type _host_index: int, optional
1456
+ :return: Returns the result object.
1457
+ """ # noqa: E501
1458
+
1459
+ _param = self._pause_cron_serialize(
1460
+ id=id,
1461
+ _request_auth=_request_auth,
1462
+ _content_type=_content_type,
1463
+ _headers=_headers,
1464
+ _host_index=_host_index
1465
+ )
1466
+
1467
+ _response_types_map: Dict[str, Optional[str]] = {
1468
+ '204': None,
1469
+ '401': "ErrorBody",
1470
+ '403': "ErrorBody",
1471
+ '404': "ErrorBody",
1472
+ }
1473
+ response_data = self.api_client.call_api(
1474
+ *_param,
1475
+ _request_timeout=_request_timeout
1476
+ )
1477
+ return response_data.response
1478
+
1479
+
1480
+ def _pause_cron_serialize(
1481
+ self,
1482
+ id,
1483
+ _request_auth,
1484
+ _content_type,
1485
+ _headers,
1486
+ _host_index,
1487
+ ) -> RequestSerialized:
1488
+
1489
+ _host = None
1490
+
1491
+ _collection_formats: Dict[str, str] = {
1492
+ }
1493
+
1494
+ _path_params: Dict[str, str] = {}
1495
+ _query_params: List[Tuple[str, str]] = []
1496
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1497
+ _form_params: List[Tuple[str, str]] = []
1498
+ _files: Dict[
1499
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1500
+ ] = {}
1501
+ _body_params: Optional[bytes] = None
1502
+
1503
+ # process the path parameters
1504
+ if id is not None:
1505
+ _path_params['id'] = id
1506
+ # process the query parameters
1507
+ # process the header parameters
1508
+ # process the form parameters
1509
+ # process the body parameter
1510
+
1511
+
1512
+ # set the HTTP header `Accept`
1513
+ if 'Accept' not in _header_params:
1514
+ _header_params['Accept'] = self.api_client.select_header_accept(
1515
+ [
1516
+ 'application/json'
1517
+ ]
1518
+ )
1519
+
1520
+
1521
+ # authentication setting
1522
+ _auth_settings: List[str] = [
1523
+ 'bearerAuth'
1524
+ ]
1525
+
1526
+ return self.api_client.param_serialize(
1527
+ method='POST',
1528
+ resource_path='/api/v1/cron/{id}/pause',
1529
+ path_params=_path_params,
1530
+ query_params=_query_params,
1531
+ header_params=_header_params,
1532
+ body=_body_params,
1533
+ post_params=_form_params,
1534
+ files=_files,
1535
+ auth_settings=_auth_settings,
1536
+ collection_formats=_collection_formats,
1537
+ _host=_host,
1538
+ _request_auth=_request_auth
1539
+ )
1540
+
1541
+
1542
+
1543
+
1544
+ @validate_call
1545
+ def resume_cron(
1546
+ self,
1547
+ id: Annotated[StrictStr, Field(description="Cron schedule id")],
1548
+ _request_timeout: Union[
1549
+ None,
1550
+ Annotated[StrictFloat, Field(gt=0)],
1551
+ Tuple[
1552
+ Annotated[StrictFloat, Field(gt=0)],
1553
+ Annotated[StrictFloat, Field(gt=0)]
1554
+ ]
1555
+ ] = None,
1556
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1557
+ _content_type: Optional[StrictStr] = None,
1558
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1559
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1560
+ ) -> None:
1561
+ """resume_cron
1562
+
1563
+
1564
+ :param id: Cron schedule id (required)
1565
+ :type id: str
1566
+ :param _request_timeout: timeout setting for this request. If one
1567
+ number provided, it will be total request
1568
+ timeout. It can also be a pair (tuple) of
1569
+ (connection, read) timeouts.
1570
+ :type _request_timeout: int, tuple(int, int), optional
1571
+ :param _request_auth: set to override the auth_settings for an a single
1572
+ request; this effectively ignores the
1573
+ authentication in the spec for a single request.
1574
+ :type _request_auth: dict, optional
1575
+ :param _content_type: force content-type for the request.
1576
+ :type _content_type: str, Optional
1577
+ :param _headers: set to override the headers for a single
1578
+ request; this effectively ignores the headers
1579
+ in the spec for a single request.
1580
+ :type _headers: dict, optional
1581
+ :param _host_index: set to override the host_index for a single
1582
+ request; this effectively ignores the host_index
1583
+ in the spec for a single request.
1584
+ :type _host_index: int, optional
1585
+ :return: Returns the result object.
1586
+ """ # noqa: E501
1587
+
1588
+ _param = self._resume_cron_serialize(
1589
+ id=id,
1590
+ _request_auth=_request_auth,
1591
+ _content_type=_content_type,
1592
+ _headers=_headers,
1593
+ _host_index=_host_index
1594
+ )
1595
+
1596
+ _response_types_map: Dict[str, Optional[str]] = {
1597
+ '204': None,
1598
+ '401': "ErrorBody",
1599
+ '403': "ErrorBody",
1600
+ '404': "ErrorBody",
1601
+ }
1602
+ response_data = self.api_client.call_api(
1603
+ *_param,
1604
+ _request_timeout=_request_timeout
1605
+ )
1606
+ response_data.read()
1607
+ return self.api_client.response_deserialize(
1608
+ response_data=response_data,
1609
+ response_types_map=_response_types_map,
1610
+ ).data
1611
+
1612
+
1613
+ @validate_call
1614
+ def resume_cron_with_http_info(
1615
+ self,
1616
+ id: Annotated[StrictStr, Field(description="Cron schedule id")],
1617
+ _request_timeout: Union[
1618
+ None,
1619
+ Annotated[StrictFloat, Field(gt=0)],
1620
+ Tuple[
1621
+ Annotated[StrictFloat, Field(gt=0)],
1622
+ Annotated[StrictFloat, Field(gt=0)]
1623
+ ]
1624
+ ] = None,
1625
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1626
+ _content_type: Optional[StrictStr] = None,
1627
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1628
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1629
+ ) -> ApiResponse[None]:
1630
+ """resume_cron
1631
+
1632
+
1633
+ :param id: Cron schedule id (required)
1634
+ :type id: str
1635
+ :param _request_timeout: timeout setting for this request. If one
1636
+ number provided, it will be total request
1637
+ timeout. It can also be a pair (tuple) of
1638
+ (connection, read) timeouts.
1639
+ :type _request_timeout: int, tuple(int, int), optional
1640
+ :param _request_auth: set to override the auth_settings for an a single
1641
+ request; this effectively ignores the
1642
+ authentication in the spec for a single request.
1643
+ :type _request_auth: dict, optional
1644
+ :param _content_type: force content-type for the request.
1645
+ :type _content_type: str, Optional
1646
+ :param _headers: set to override the headers for a single
1647
+ request; this effectively ignores the headers
1648
+ in the spec for a single request.
1649
+ :type _headers: dict, optional
1650
+ :param _host_index: set to override the host_index for a single
1651
+ request; this effectively ignores the host_index
1652
+ in the spec for a single request.
1653
+ :type _host_index: int, optional
1654
+ :return: Returns the result object.
1655
+ """ # noqa: E501
1656
+
1657
+ _param = self._resume_cron_serialize(
1658
+ id=id,
1659
+ _request_auth=_request_auth,
1660
+ _content_type=_content_type,
1661
+ _headers=_headers,
1662
+ _host_index=_host_index
1663
+ )
1664
+
1665
+ _response_types_map: Dict[str, Optional[str]] = {
1666
+ '204': None,
1667
+ '401': "ErrorBody",
1668
+ '403': "ErrorBody",
1669
+ '404': "ErrorBody",
1670
+ }
1671
+ response_data = self.api_client.call_api(
1672
+ *_param,
1673
+ _request_timeout=_request_timeout
1674
+ )
1675
+ response_data.read()
1676
+ return self.api_client.response_deserialize(
1677
+ response_data=response_data,
1678
+ response_types_map=_response_types_map,
1679
+ )
1680
+
1681
+
1682
+ @validate_call
1683
+ def resume_cron_without_preload_content(
1684
+ self,
1685
+ id: Annotated[StrictStr, Field(description="Cron schedule id")],
1686
+ _request_timeout: Union[
1687
+ None,
1688
+ Annotated[StrictFloat, Field(gt=0)],
1689
+ Tuple[
1690
+ Annotated[StrictFloat, Field(gt=0)],
1691
+ Annotated[StrictFloat, Field(gt=0)]
1692
+ ]
1693
+ ] = None,
1694
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1695
+ _content_type: Optional[StrictStr] = None,
1696
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1697
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1698
+ ) -> RESTResponseType:
1699
+ """resume_cron
1700
+
1701
+
1702
+ :param id: Cron schedule id (required)
1703
+ :type id: str
1704
+ :param _request_timeout: timeout setting for this request. If one
1705
+ number provided, it will be total request
1706
+ timeout. It can also be a pair (tuple) of
1707
+ (connection, read) timeouts.
1708
+ :type _request_timeout: int, tuple(int, int), optional
1709
+ :param _request_auth: set to override the auth_settings for an a single
1710
+ request; this effectively ignores the
1711
+ authentication in the spec for a single request.
1712
+ :type _request_auth: dict, optional
1713
+ :param _content_type: force content-type for the request.
1714
+ :type _content_type: str, Optional
1715
+ :param _headers: set to override the headers for a single
1716
+ request; this effectively ignores the headers
1717
+ in the spec for a single request.
1718
+ :type _headers: dict, optional
1719
+ :param _host_index: set to override the host_index for a single
1720
+ request; this effectively ignores the host_index
1721
+ in the spec for a single request.
1722
+ :type _host_index: int, optional
1723
+ :return: Returns the result object.
1724
+ """ # noqa: E501
1725
+
1726
+ _param = self._resume_cron_serialize(
1727
+ id=id,
1728
+ _request_auth=_request_auth,
1729
+ _content_type=_content_type,
1730
+ _headers=_headers,
1731
+ _host_index=_host_index
1732
+ )
1733
+
1734
+ _response_types_map: Dict[str, Optional[str]] = {
1735
+ '204': None,
1736
+ '401': "ErrorBody",
1737
+ '403': "ErrorBody",
1738
+ '404': "ErrorBody",
1739
+ }
1740
+ response_data = self.api_client.call_api(
1741
+ *_param,
1742
+ _request_timeout=_request_timeout
1743
+ )
1744
+ return response_data.response
1745
+
1746
+
1747
+ def _resume_cron_serialize(
1748
+ self,
1749
+ id,
1750
+ _request_auth,
1751
+ _content_type,
1752
+ _headers,
1753
+ _host_index,
1754
+ ) -> RequestSerialized:
1755
+
1756
+ _host = None
1757
+
1758
+ _collection_formats: Dict[str, str] = {
1759
+ }
1760
+
1761
+ _path_params: Dict[str, str] = {}
1762
+ _query_params: List[Tuple[str, str]] = []
1763
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1764
+ _form_params: List[Tuple[str, str]] = []
1765
+ _files: Dict[
1766
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1767
+ ] = {}
1768
+ _body_params: Optional[bytes] = None
1769
+
1770
+ # process the path parameters
1771
+ if id is not None:
1772
+ _path_params['id'] = id
1773
+ # process the query parameters
1774
+ # process the header parameters
1775
+ # process the form parameters
1776
+ # process the body parameter
1777
+
1778
+
1779
+ # set the HTTP header `Accept`
1780
+ if 'Accept' not in _header_params:
1781
+ _header_params['Accept'] = self.api_client.select_header_accept(
1782
+ [
1783
+ 'application/json'
1784
+ ]
1785
+ )
1786
+
1787
+
1788
+ # authentication setting
1789
+ _auth_settings: List[str] = [
1790
+ 'bearerAuth'
1791
+ ]
1792
+
1793
+ return self.api_client.param_serialize(
1794
+ method='POST',
1795
+ resource_path='/api/v1/cron/{id}/resume',
1796
+ path_params=_path_params,
1797
+ query_params=_query_params,
1798
+ header_params=_header_params,
1799
+ body=_body_params,
1800
+ post_params=_form_params,
1801
+ files=_files,
1802
+ auth_settings=_auth_settings,
1803
+ collection_formats=_collection_formats,
1804
+ _host=_host,
1805
+ _request_auth=_request_auth
1806
+ )
1807
+
1808
+