crc-pulp-service-client 20250819.1__py3-none-any.whl → 20250820.1__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.

Potentially problematic release.


This version of crc-pulp-service-client might be problematic. Click here for more details.

Files changed (48) hide show
  1. crc-pulp_service-client/api/__init__.py +1 -0
  2. services-pulp_service-client/api/api_test_tasks_api.py → crc-pulp_service-client/api/api_test_random_lock_tasks_api.py +5 -5
  3. crc-pulp_service-client/api_client.py +1 -1
  4. crc-pulp_service-client/configuration.py +3 -3
  5. {crc_pulp_service_client-20250819.1.dist-info → crc_pulp_service_client-20250820.1.dist-info}/METADATA +1 -1
  6. crc_pulp_service_client-20250820.1.dist-info/RECORD +44 -0
  7. crc_pulp_service_client-20250820.1.dist-info/top_level.txt +1 -0
  8. crc_pulp_service_client-20250819.1.dist-info/RECORD +0 -82
  9. crc_pulp_service_client-20250819.1.dist-info/top_level.txt +0 -2
  10. services-pulp_service-client/__init__.py +0 -2
  11. services-pulp_service-client/api/__init__.py +0 -11
  12. services-pulp_service-client/api/api_create_domain_api.py +0 -335
  13. services-pulp_service-client/api/api_debug_auth_header_api.py +0 -329
  14. services-pulp_service-client/api/content_rpmpackages_api.py +0 -1899
  15. services-pulp_service-client/api/contentguards_feature_api.py +0 -3401
  16. services-pulp_service-client/api/tasks_api.py +0 -1504
  17. services-pulp_service-client/api/vuln_report_api.py +0 -1301
  18. services-pulp_service-client/api_client.py +0 -798
  19. services-pulp_service-client/api_response.py +0 -21
  20. services-pulp_service-client/configuration.py +0 -628
  21. services-pulp_service-client/exceptions.py +0 -200
  22. services-pulp_service-client/models/__init__.py +0 -40
  23. services-pulp_service-client/models/async_operation_response.py +0 -88
  24. services-pulp_service-client/models/domain.py +0 -114
  25. services-pulp_service-client/models/domain_response.py +0 -131
  26. services-pulp_service-client/models/my_permissions_response.py +0 -88
  27. services-pulp_service-client/models/nested_role.py +0 -93
  28. services-pulp_service-client/models/nested_role_response.py +0 -92
  29. services-pulp_service-client/models/object_roles_response.py +0 -96
  30. services-pulp_service-client/models/paginated_task_response_list.py +0 -112
  31. services-pulp_service-client/models/paginatedrpm_package_response_list.py +0 -112
  32. services-pulp_service-client/models/paginatedservice_feature_content_guard_response_list.py +0 -112
  33. services-pulp_service-client/models/paginatedservice_vulnerability_report_response_list.py +0 -112
  34. services-pulp_service-client/models/patchedservice_feature_content_guard.py +0 -107
  35. services-pulp_service-client/models/progress_report_response.py +0 -115
  36. services-pulp_service-client/models/rpm_package_response.py +0 -325
  37. services-pulp_service-client/models/service_feature_content_guard.py +0 -107
  38. services-pulp_service-client/models/service_feature_content_guard_response.py +0 -123
  39. services-pulp_service-client/models/service_vulnerability_report_response.py +0 -110
  40. services-pulp_service-client/models/set_label.py +0 -103
  41. services-pulp_service-client/models/set_label_response.py +0 -103
  42. services-pulp_service-client/models/storage_class_enum.py +0 -40
  43. services-pulp_service-client/models/task_response.py +0 -167
  44. services-pulp_service-client/models/unset_label.py +0 -96
  45. services-pulp_service-client/models/unset_label_response.py +0 -100
  46. services-pulp_service-client/py.typed +0 -0
  47. services-pulp_service-client/rest.py +0 -258
  48. {crc_pulp_service_client-20250819.1.dist-info → crc_pulp_service_client-20250820.1.dist-info}/WHEEL +0 -0
@@ -1,1504 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- Fetch, Upload, Organize, and Distribute Software Packages
7
-
8
- The version of the OpenAPI document: v3
9
- Contact: pulp-list@redhat.com
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
11
-
12
- Do not edit the class manually.
13
- """ # noqa: E501
14
-
15
- import warnings
16
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
- from typing import Any, Dict, List, Optional, Tuple, Union
18
- from typing_extensions import Annotated
19
-
20
- from datetime import datetime
21
- from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator
22
- from typing import List, Optional
23
- from typing_extensions import Annotated
24
- from services-pulp_service-client.models.paginated_task_response_list import PaginatedTaskResponseList
25
-
26
- from services-pulp_service-client.api_client import ApiClient, RequestSerialized
27
- from services-pulp_service-client.api_response import ApiResponse
28
- from services-pulp_service-client.rest import RESTResponseType
29
-
30
-
31
- class TasksApi:
32
- """NOTE: This class is auto generated by OpenAPI Generator
33
- Ref: https://openapi-generator.tech
34
-
35
- Do not edit the class manually.
36
- """
37
-
38
- def __init__(self, api_client=None) -> None:
39
- if api_client is None:
40
- api_client = ApiClient.get_default()
41
- self.api_client = api_client
42
-
43
-
44
- @validate_call
45
- def admin_tasks(
46
- self,
47
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
48
- child_tasks: Annotated[Optional[StrictStr], Field(description="Filter results where child_tasks matches value")] = None,
49
- created_resources: Optional[StrictStr] = None,
50
- exclusive_resources: Optional[StrictStr] = None,
51
- exclusive_resources__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
52
- finished_at: Annotated[Optional[datetime], Field(description="Filter results where finished_at matches value")] = None,
53
- finished_at__gt: Annotated[Optional[datetime], Field(description="Filter results where finished_at is greater than value")] = None,
54
- finished_at__gte: Annotated[Optional[datetime], Field(description="Filter results where finished_at is greater than or equal to value")] = None,
55
- finished_at__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where finished_at has a null value")] = None,
56
- finished_at__lt: Annotated[Optional[datetime], Field(description="Filter results where finished_at is less than value")] = None,
57
- finished_at__lte: Annotated[Optional[datetime], Field(description="Filter results where finished_at is less than or equal to value")] = None,
58
- finished_at__range: Annotated[Optional[List[datetime]], Field(description="Filter results where finished_at is between two comma separated values")] = None,
59
- limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
60
- logging_cid: Annotated[Optional[StrictStr], Field(description="Filter results where logging_cid matches value")] = None,
61
- logging_cid__contains: Annotated[Optional[StrictStr], Field(description="Filter results where logging_cid contains value")] = None,
62
- name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
63
- name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
64
- name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
65
- name__ne: Annotated[Optional[StrictStr], Field(description="Filter results where name not equal to value")] = None,
66
- offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
67
- ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `unblocked_at` - Unblocked at * `-unblocked_at` - Unblocked at (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `profile_options` - Profile options * `-profile_options` - Profile options (descending) * `immediate` - Immediate * `-immediate` - Immediate (descending) * `deferred` - Deferred * `-deferred` - Deferred (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
68
- parent_task: Annotated[Optional[StrictStr], Field(description="Filter results where parent_task matches value")] = None,
69
- prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
70
- pulp_created: Annotated[Optional[datetime], Field(description="Filter results where pulp_created matches value")] = None,
71
- pulp_created__gt: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is greater than value")] = None,
72
- pulp_created__gte: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is greater than or equal to value")] = None,
73
- pulp_created__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where pulp_created has a null value")] = None,
74
- pulp_created__lt: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is less than value")] = None,
75
- pulp_created__lte: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is less than or equal to value")] = None,
76
- pulp_created__range: Annotated[Optional[List[datetime]], Field(description="Filter results where pulp_created is between two comma separated values")] = None,
77
- pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
78
- pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
79
- q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
80
- reserved_resources: Optional[StrictStr] = None,
81
- reserved_resources__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
82
- shared_resources: Optional[StrictStr] = None,
83
- shared_resources__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
84
- started_at: Annotated[Optional[datetime], Field(description="Filter results where started_at matches value")] = None,
85
- started_at__gt: Annotated[Optional[datetime], Field(description="Filter results where started_at is greater than value")] = None,
86
- started_at__gte: Annotated[Optional[datetime], Field(description="Filter results where started_at is greater than or equal to value")] = None,
87
- started_at__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where started_at has a null value")] = None,
88
- started_at__lt: Annotated[Optional[datetime], Field(description="Filter results where started_at is less than value")] = None,
89
- started_at__lte: Annotated[Optional[datetime], Field(description="Filter results where started_at is less than or equal to value")] = None,
90
- started_at__range: Annotated[Optional[List[datetime]], Field(description="Filter results where started_at is between two comma separated values")] = None,
91
- state: Annotated[Optional[StrictStr], Field(description="Filter results where state matches value * `waiting` - Waiting * `skipped` - Skipped * `running` - Running * `completed` - Completed * `failed` - Failed * `canceled` - Canceled * `canceling` - Canceling")] = None,
92
- state__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where state is in a comma-separated list of values")] = None,
93
- state__ne: Annotated[Optional[StrictStr], Field(description="Filter results where state not equal to value")] = None,
94
- task_group: Annotated[Optional[StrictStr], Field(description="Filter results where task_group matches value")] = None,
95
- unblocked_at: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at matches value")] = None,
96
- unblocked_at__gt: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is greater than value")] = None,
97
- unblocked_at__gte: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is greater than or equal to value")] = None,
98
- unblocked_at__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where unblocked_at has a null value")] = None,
99
- unblocked_at__lt: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is less than value")] = None,
100
- unblocked_at__lte: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is less than or equal to value")] = None,
101
- unblocked_at__range: Annotated[Optional[List[datetime]], Field(description="Filter results where unblocked_at is between two comma separated values")] = None,
102
- worker: Annotated[Optional[StrictStr], Field(description="Filter results where worker matches value")] = None,
103
- worker__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where worker is in a comma-separated list of values")] = None,
104
- worker__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where worker has a null value")] = None,
105
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
106
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
107
- _request_timeout: Union[
108
- None,
109
- Annotated[StrictFloat, Field(gt=0)],
110
- Tuple[
111
- Annotated[StrictFloat, Field(gt=0)],
112
- Annotated[StrictFloat, Field(gt=0)]
113
- ]
114
- ] = None,
115
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
116
- _content_type: Optional[StrictStr] = None,
117
- _headers: Optional[Dict[StrictStr, Any]] = None,
118
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
119
- ) -> PaginatedTaskResponseList:
120
- """admin_tasks
121
-
122
- A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
123
-
124
- :param x_task_diagnostics: List of profilers to use on tasks.
125
- :type x_task_diagnostics: List[str]
126
- :param child_tasks: Filter results where child_tasks matches value
127
- :type child_tasks: str
128
- :param created_resources:
129
- :type created_resources: str
130
- :param exclusive_resources:
131
- :type exclusive_resources: str
132
- :param exclusive_resources__in: Multiple values may be separated by commas.
133
- :type exclusive_resources__in: List[str]
134
- :param finished_at: Filter results where finished_at matches value
135
- :type finished_at: datetime
136
- :param finished_at__gt: Filter results where finished_at is greater than value
137
- :type finished_at__gt: datetime
138
- :param finished_at__gte: Filter results where finished_at is greater than or equal to value
139
- :type finished_at__gte: datetime
140
- :param finished_at__isnull: Filter results where finished_at has a null value
141
- :type finished_at__isnull: bool
142
- :param finished_at__lt: Filter results where finished_at is less than value
143
- :type finished_at__lt: datetime
144
- :param finished_at__lte: Filter results where finished_at is less than or equal to value
145
- :type finished_at__lte: datetime
146
- :param finished_at__range: Filter results where finished_at is between two comma separated values
147
- :type finished_at__range: List[datetime]
148
- :param limit: Number of results to return per page.
149
- :type limit: int
150
- :param logging_cid: Filter results where logging_cid matches value
151
- :type logging_cid: str
152
- :param logging_cid__contains: Filter results where logging_cid contains value
153
- :type logging_cid__contains: str
154
- :param name: Filter results where name matches value
155
- :type name: str
156
- :param name__contains: Filter results where name contains value
157
- :type name__contains: str
158
- :param name__in: Filter results where name is in a comma-separated list of values
159
- :type name__in: List[str]
160
- :param name__ne: Filter results where name not equal to value
161
- :type name__ne: str
162
- :param offset: The initial index from which to return the results.
163
- :type offset: int
164
- :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `unblocked_at` - Unblocked at * `-unblocked_at` - Unblocked at (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `profile_options` - Profile options * `-profile_options` - Profile options (descending) * `immediate` - Immediate * `-immediate` - Immediate (descending) * `deferred` - Deferred * `-deferred` - Deferred (descending) * `pk` - Pk * `-pk` - Pk (descending)
165
- :type ordering: List[str]
166
- :param parent_task: Filter results where parent_task matches value
167
- :type parent_task: str
168
- :param prn__in: Multiple values may be separated by commas.
169
- :type prn__in: List[str]
170
- :param pulp_created: Filter results where pulp_created matches value
171
- :type pulp_created: datetime
172
- :param pulp_created__gt: Filter results where pulp_created is greater than value
173
- :type pulp_created__gt: datetime
174
- :param pulp_created__gte: Filter results where pulp_created is greater than or equal to value
175
- :type pulp_created__gte: datetime
176
- :param pulp_created__isnull: Filter results where pulp_created has a null value
177
- :type pulp_created__isnull: bool
178
- :param pulp_created__lt: Filter results where pulp_created is less than value
179
- :type pulp_created__lt: datetime
180
- :param pulp_created__lte: Filter results where pulp_created is less than or equal to value
181
- :type pulp_created__lte: datetime
182
- :param pulp_created__range: Filter results where pulp_created is between two comma separated values
183
- :type pulp_created__range: List[datetime]
184
- :param pulp_href__in: Multiple values may be separated by commas.
185
- :type pulp_href__in: List[str]
186
- :param pulp_id__in: Multiple values may be separated by commas.
187
- :type pulp_id__in: List[str]
188
- :param q: Filter results by using NOT, AND and OR operations on other filters
189
- :type q: str
190
- :param reserved_resources:
191
- :type reserved_resources: str
192
- :param reserved_resources__in: Multiple values may be separated by commas.
193
- :type reserved_resources__in: List[str]
194
- :param shared_resources:
195
- :type shared_resources: str
196
- :param shared_resources__in: Multiple values may be separated by commas.
197
- :type shared_resources__in: List[str]
198
- :param started_at: Filter results where started_at matches value
199
- :type started_at: datetime
200
- :param started_at__gt: Filter results where started_at is greater than value
201
- :type started_at__gt: datetime
202
- :param started_at__gte: Filter results where started_at is greater than or equal to value
203
- :type started_at__gte: datetime
204
- :param started_at__isnull: Filter results where started_at has a null value
205
- :type started_at__isnull: bool
206
- :param started_at__lt: Filter results where started_at is less than value
207
- :type started_at__lt: datetime
208
- :param started_at__lte: Filter results where started_at is less than or equal to value
209
- :type started_at__lte: datetime
210
- :param started_at__range: Filter results where started_at is between two comma separated values
211
- :type started_at__range: List[datetime]
212
- :param state: Filter results where state matches value * `waiting` - Waiting * `skipped` - Skipped * `running` - Running * `completed` - Completed * `failed` - Failed * `canceled` - Canceled * `canceling` - Canceling
213
- :type state: str
214
- :param state__in: Filter results where state is in a comma-separated list of values
215
- :type state__in: List[str]
216
- :param state__ne: Filter results where state not equal to value
217
- :type state__ne: str
218
- :param task_group: Filter results where task_group matches value
219
- :type task_group: str
220
- :param unblocked_at: Filter results where unblocked_at matches value
221
- :type unblocked_at: datetime
222
- :param unblocked_at__gt: Filter results where unblocked_at is greater than value
223
- :type unblocked_at__gt: datetime
224
- :param unblocked_at__gte: Filter results where unblocked_at is greater than or equal to value
225
- :type unblocked_at__gte: datetime
226
- :param unblocked_at__isnull: Filter results where unblocked_at has a null value
227
- :type unblocked_at__isnull: bool
228
- :param unblocked_at__lt: Filter results where unblocked_at is less than value
229
- :type unblocked_at__lt: datetime
230
- :param unblocked_at__lte: Filter results where unblocked_at is less than or equal to value
231
- :type unblocked_at__lte: datetime
232
- :param unblocked_at__range: Filter results where unblocked_at is between two comma separated values
233
- :type unblocked_at__range: List[datetime]
234
- :param worker: Filter results where worker matches value
235
- :type worker: str
236
- :param worker__in: Filter results where worker is in a comma-separated list of values
237
- :type worker__in: List[str]
238
- :param worker__isnull: Filter results where worker has a null value
239
- :type worker__isnull: bool
240
- :param fields: A list of fields to include in the response.
241
- :type fields: List[str]
242
- :param exclude_fields: A list of fields to exclude from the response.
243
- :type exclude_fields: List[str]
244
- :param _request_timeout: timeout setting for this request. If one
245
- number provided, it will be total request
246
- timeout. It can also be a pair (tuple) of
247
- (connection, read) timeouts.
248
- :type _request_timeout: int, tuple(int, int), optional
249
- :param _request_auth: set to override the auth_settings for an a single
250
- request; this effectively ignores the
251
- authentication in the spec for a single request.
252
- :type _request_auth: dict, optional
253
- :param _content_type: force content-type for the request.
254
- :type _content_type: str, Optional
255
- :param _headers: set to override the headers for a single
256
- request; this effectively ignores the headers
257
- in the spec for a single request.
258
- :type _headers: dict, optional
259
- :param _host_index: set to override the host_index for a single
260
- request; this effectively ignores the host_index
261
- in the spec for a single request.
262
- :type _host_index: int, optional
263
- :return: Returns the result object.
264
- """ # noqa: E501
265
-
266
- _param = self._admin_tasks_serialize(
267
- x_task_diagnostics=x_task_diagnostics,
268
- child_tasks=child_tasks,
269
- created_resources=created_resources,
270
- exclusive_resources=exclusive_resources,
271
- exclusive_resources__in=exclusive_resources__in,
272
- finished_at=finished_at,
273
- finished_at__gt=finished_at__gt,
274
- finished_at__gte=finished_at__gte,
275
- finished_at__isnull=finished_at__isnull,
276
- finished_at__lt=finished_at__lt,
277
- finished_at__lte=finished_at__lte,
278
- finished_at__range=finished_at__range,
279
- limit=limit,
280
- logging_cid=logging_cid,
281
- logging_cid__contains=logging_cid__contains,
282
- name=name,
283
- name__contains=name__contains,
284
- name__in=name__in,
285
- name__ne=name__ne,
286
- offset=offset,
287
- ordering=ordering,
288
- parent_task=parent_task,
289
- prn__in=prn__in,
290
- pulp_created=pulp_created,
291
- pulp_created__gt=pulp_created__gt,
292
- pulp_created__gte=pulp_created__gte,
293
- pulp_created__isnull=pulp_created__isnull,
294
- pulp_created__lt=pulp_created__lt,
295
- pulp_created__lte=pulp_created__lte,
296
- pulp_created__range=pulp_created__range,
297
- pulp_href__in=pulp_href__in,
298
- pulp_id__in=pulp_id__in,
299
- q=q,
300
- reserved_resources=reserved_resources,
301
- reserved_resources__in=reserved_resources__in,
302
- shared_resources=shared_resources,
303
- shared_resources__in=shared_resources__in,
304
- started_at=started_at,
305
- started_at__gt=started_at__gt,
306
- started_at__gte=started_at__gte,
307
- started_at__isnull=started_at__isnull,
308
- started_at__lt=started_at__lt,
309
- started_at__lte=started_at__lte,
310
- started_at__range=started_at__range,
311
- state=state,
312
- state__in=state__in,
313
- state__ne=state__ne,
314
- task_group=task_group,
315
- unblocked_at=unblocked_at,
316
- unblocked_at__gt=unblocked_at__gt,
317
- unblocked_at__gte=unblocked_at__gte,
318
- unblocked_at__isnull=unblocked_at__isnull,
319
- unblocked_at__lt=unblocked_at__lt,
320
- unblocked_at__lte=unblocked_at__lte,
321
- unblocked_at__range=unblocked_at__range,
322
- worker=worker,
323
- worker__in=worker__in,
324
- worker__isnull=worker__isnull,
325
- fields=fields,
326
- exclude_fields=exclude_fields,
327
- _request_auth=_request_auth,
328
- _content_type=_content_type,
329
- _headers=_headers,
330
- _host_index=_host_index
331
- )
332
-
333
- _response_types_map: Dict[str, Optional[str]] = {
334
- '200': "PaginatedTaskResponseList",
335
- }
336
- response_data = self.api_client.call_api(
337
- *_param,
338
- _request_timeout=_request_timeout
339
- )
340
- response_data.read()
341
- return self.api_client.response_deserialize(
342
- response_data=response_data,
343
- response_types_map=_response_types_map,
344
- ).data
345
-
346
-
347
- @validate_call
348
- def admin_tasks_with_http_info(
349
- self,
350
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
351
- child_tasks: Annotated[Optional[StrictStr], Field(description="Filter results where child_tasks matches value")] = None,
352
- created_resources: Optional[StrictStr] = None,
353
- exclusive_resources: Optional[StrictStr] = None,
354
- exclusive_resources__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
355
- finished_at: Annotated[Optional[datetime], Field(description="Filter results where finished_at matches value")] = None,
356
- finished_at__gt: Annotated[Optional[datetime], Field(description="Filter results where finished_at is greater than value")] = None,
357
- finished_at__gte: Annotated[Optional[datetime], Field(description="Filter results where finished_at is greater than or equal to value")] = None,
358
- finished_at__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where finished_at has a null value")] = None,
359
- finished_at__lt: Annotated[Optional[datetime], Field(description="Filter results where finished_at is less than value")] = None,
360
- finished_at__lte: Annotated[Optional[datetime], Field(description="Filter results where finished_at is less than or equal to value")] = None,
361
- finished_at__range: Annotated[Optional[List[datetime]], Field(description="Filter results where finished_at is between two comma separated values")] = None,
362
- limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
363
- logging_cid: Annotated[Optional[StrictStr], Field(description="Filter results where logging_cid matches value")] = None,
364
- logging_cid__contains: Annotated[Optional[StrictStr], Field(description="Filter results where logging_cid contains value")] = None,
365
- name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
366
- name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
367
- name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
368
- name__ne: Annotated[Optional[StrictStr], Field(description="Filter results where name not equal to value")] = None,
369
- offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
370
- ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `unblocked_at` - Unblocked at * `-unblocked_at` - Unblocked at (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `profile_options` - Profile options * `-profile_options` - Profile options (descending) * `immediate` - Immediate * `-immediate` - Immediate (descending) * `deferred` - Deferred * `-deferred` - Deferred (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
371
- parent_task: Annotated[Optional[StrictStr], Field(description="Filter results where parent_task matches value")] = None,
372
- prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
373
- pulp_created: Annotated[Optional[datetime], Field(description="Filter results where pulp_created matches value")] = None,
374
- pulp_created__gt: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is greater than value")] = None,
375
- pulp_created__gte: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is greater than or equal to value")] = None,
376
- pulp_created__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where pulp_created has a null value")] = None,
377
- pulp_created__lt: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is less than value")] = None,
378
- pulp_created__lte: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is less than or equal to value")] = None,
379
- pulp_created__range: Annotated[Optional[List[datetime]], Field(description="Filter results where pulp_created is between two comma separated values")] = None,
380
- pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
381
- pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
382
- q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
383
- reserved_resources: Optional[StrictStr] = None,
384
- reserved_resources__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
385
- shared_resources: Optional[StrictStr] = None,
386
- shared_resources__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
387
- started_at: Annotated[Optional[datetime], Field(description="Filter results where started_at matches value")] = None,
388
- started_at__gt: Annotated[Optional[datetime], Field(description="Filter results where started_at is greater than value")] = None,
389
- started_at__gte: Annotated[Optional[datetime], Field(description="Filter results where started_at is greater than or equal to value")] = None,
390
- started_at__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where started_at has a null value")] = None,
391
- started_at__lt: Annotated[Optional[datetime], Field(description="Filter results where started_at is less than value")] = None,
392
- started_at__lte: Annotated[Optional[datetime], Field(description="Filter results where started_at is less than or equal to value")] = None,
393
- started_at__range: Annotated[Optional[List[datetime]], Field(description="Filter results where started_at is between two comma separated values")] = None,
394
- state: Annotated[Optional[StrictStr], Field(description="Filter results where state matches value * `waiting` - Waiting * `skipped` - Skipped * `running` - Running * `completed` - Completed * `failed` - Failed * `canceled` - Canceled * `canceling` - Canceling")] = None,
395
- state__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where state is in a comma-separated list of values")] = None,
396
- state__ne: Annotated[Optional[StrictStr], Field(description="Filter results where state not equal to value")] = None,
397
- task_group: Annotated[Optional[StrictStr], Field(description="Filter results where task_group matches value")] = None,
398
- unblocked_at: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at matches value")] = None,
399
- unblocked_at__gt: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is greater than value")] = None,
400
- unblocked_at__gte: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is greater than or equal to value")] = None,
401
- unblocked_at__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where unblocked_at has a null value")] = None,
402
- unblocked_at__lt: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is less than value")] = None,
403
- unblocked_at__lte: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is less than or equal to value")] = None,
404
- unblocked_at__range: Annotated[Optional[List[datetime]], Field(description="Filter results where unblocked_at is between two comma separated values")] = None,
405
- worker: Annotated[Optional[StrictStr], Field(description="Filter results where worker matches value")] = None,
406
- worker__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where worker is in a comma-separated list of values")] = None,
407
- worker__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where worker has a null value")] = None,
408
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
409
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
410
- _request_timeout: Union[
411
- None,
412
- Annotated[StrictFloat, Field(gt=0)],
413
- Tuple[
414
- Annotated[StrictFloat, Field(gt=0)],
415
- Annotated[StrictFloat, Field(gt=0)]
416
- ]
417
- ] = None,
418
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
419
- _content_type: Optional[StrictStr] = None,
420
- _headers: Optional[Dict[StrictStr, Any]] = None,
421
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
422
- ) -> ApiResponse[PaginatedTaskResponseList]:
423
- """admin_tasks
424
-
425
- A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
426
-
427
- :param x_task_diagnostics: List of profilers to use on tasks.
428
- :type x_task_diagnostics: List[str]
429
- :param child_tasks: Filter results where child_tasks matches value
430
- :type child_tasks: str
431
- :param created_resources:
432
- :type created_resources: str
433
- :param exclusive_resources:
434
- :type exclusive_resources: str
435
- :param exclusive_resources__in: Multiple values may be separated by commas.
436
- :type exclusive_resources__in: List[str]
437
- :param finished_at: Filter results where finished_at matches value
438
- :type finished_at: datetime
439
- :param finished_at__gt: Filter results where finished_at is greater than value
440
- :type finished_at__gt: datetime
441
- :param finished_at__gte: Filter results where finished_at is greater than or equal to value
442
- :type finished_at__gte: datetime
443
- :param finished_at__isnull: Filter results where finished_at has a null value
444
- :type finished_at__isnull: bool
445
- :param finished_at__lt: Filter results where finished_at is less than value
446
- :type finished_at__lt: datetime
447
- :param finished_at__lte: Filter results where finished_at is less than or equal to value
448
- :type finished_at__lte: datetime
449
- :param finished_at__range: Filter results where finished_at is between two comma separated values
450
- :type finished_at__range: List[datetime]
451
- :param limit: Number of results to return per page.
452
- :type limit: int
453
- :param logging_cid: Filter results where logging_cid matches value
454
- :type logging_cid: str
455
- :param logging_cid__contains: Filter results where logging_cid contains value
456
- :type logging_cid__contains: str
457
- :param name: Filter results where name matches value
458
- :type name: str
459
- :param name__contains: Filter results where name contains value
460
- :type name__contains: str
461
- :param name__in: Filter results where name is in a comma-separated list of values
462
- :type name__in: List[str]
463
- :param name__ne: Filter results where name not equal to value
464
- :type name__ne: str
465
- :param offset: The initial index from which to return the results.
466
- :type offset: int
467
- :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `unblocked_at` - Unblocked at * `-unblocked_at` - Unblocked at (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `profile_options` - Profile options * `-profile_options` - Profile options (descending) * `immediate` - Immediate * `-immediate` - Immediate (descending) * `deferred` - Deferred * `-deferred` - Deferred (descending) * `pk` - Pk * `-pk` - Pk (descending)
468
- :type ordering: List[str]
469
- :param parent_task: Filter results where parent_task matches value
470
- :type parent_task: str
471
- :param prn__in: Multiple values may be separated by commas.
472
- :type prn__in: List[str]
473
- :param pulp_created: Filter results where pulp_created matches value
474
- :type pulp_created: datetime
475
- :param pulp_created__gt: Filter results where pulp_created is greater than value
476
- :type pulp_created__gt: datetime
477
- :param pulp_created__gte: Filter results where pulp_created is greater than or equal to value
478
- :type pulp_created__gte: datetime
479
- :param pulp_created__isnull: Filter results where pulp_created has a null value
480
- :type pulp_created__isnull: bool
481
- :param pulp_created__lt: Filter results where pulp_created is less than value
482
- :type pulp_created__lt: datetime
483
- :param pulp_created__lte: Filter results where pulp_created is less than or equal to value
484
- :type pulp_created__lte: datetime
485
- :param pulp_created__range: Filter results where pulp_created is between two comma separated values
486
- :type pulp_created__range: List[datetime]
487
- :param pulp_href__in: Multiple values may be separated by commas.
488
- :type pulp_href__in: List[str]
489
- :param pulp_id__in: Multiple values may be separated by commas.
490
- :type pulp_id__in: List[str]
491
- :param q: Filter results by using NOT, AND and OR operations on other filters
492
- :type q: str
493
- :param reserved_resources:
494
- :type reserved_resources: str
495
- :param reserved_resources__in: Multiple values may be separated by commas.
496
- :type reserved_resources__in: List[str]
497
- :param shared_resources:
498
- :type shared_resources: str
499
- :param shared_resources__in: Multiple values may be separated by commas.
500
- :type shared_resources__in: List[str]
501
- :param started_at: Filter results where started_at matches value
502
- :type started_at: datetime
503
- :param started_at__gt: Filter results where started_at is greater than value
504
- :type started_at__gt: datetime
505
- :param started_at__gte: Filter results where started_at is greater than or equal to value
506
- :type started_at__gte: datetime
507
- :param started_at__isnull: Filter results where started_at has a null value
508
- :type started_at__isnull: bool
509
- :param started_at__lt: Filter results where started_at is less than value
510
- :type started_at__lt: datetime
511
- :param started_at__lte: Filter results where started_at is less than or equal to value
512
- :type started_at__lte: datetime
513
- :param started_at__range: Filter results where started_at is between two comma separated values
514
- :type started_at__range: List[datetime]
515
- :param state: Filter results where state matches value * `waiting` - Waiting * `skipped` - Skipped * `running` - Running * `completed` - Completed * `failed` - Failed * `canceled` - Canceled * `canceling` - Canceling
516
- :type state: str
517
- :param state__in: Filter results where state is in a comma-separated list of values
518
- :type state__in: List[str]
519
- :param state__ne: Filter results where state not equal to value
520
- :type state__ne: str
521
- :param task_group: Filter results where task_group matches value
522
- :type task_group: str
523
- :param unblocked_at: Filter results where unblocked_at matches value
524
- :type unblocked_at: datetime
525
- :param unblocked_at__gt: Filter results where unblocked_at is greater than value
526
- :type unblocked_at__gt: datetime
527
- :param unblocked_at__gte: Filter results where unblocked_at is greater than or equal to value
528
- :type unblocked_at__gte: datetime
529
- :param unblocked_at__isnull: Filter results where unblocked_at has a null value
530
- :type unblocked_at__isnull: bool
531
- :param unblocked_at__lt: Filter results where unblocked_at is less than value
532
- :type unblocked_at__lt: datetime
533
- :param unblocked_at__lte: Filter results where unblocked_at is less than or equal to value
534
- :type unblocked_at__lte: datetime
535
- :param unblocked_at__range: Filter results where unblocked_at is between two comma separated values
536
- :type unblocked_at__range: List[datetime]
537
- :param worker: Filter results where worker matches value
538
- :type worker: str
539
- :param worker__in: Filter results where worker is in a comma-separated list of values
540
- :type worker__in: List[str]
541
- :param worker__isnull: Filter results where worker has a null value
542
- :type worker__isnull: bool
543
- :param fields: A list of fields to include in the response.
544
- :type fields: List[str]
545
- :param exclude_fields: A list of fields to exclude from the response.
546
- :type exclude_fields: List[str]
547
- :param _request_timeout: timeout setting for this request. If one
548
- number provided, it will be total request
549
- timeout. It can also be a pair (tuple) of
550
- (connection, read) timeouts.
551
- :type _request_timeout: int, tuple(int, int), optional
552
- :param _request_auth: set to override the auth_settings for an a single
553
- request; this effectively ignores the
554
- authentication in the spec for a single request.
555
- :type _request_auth: dict, optional
556
- :param _content_type: force content-type for the request.
557
- :type _content_type: str, Optional
558
- :param _headers: set to override the headers for a single
559
- request; this effectively ignores the headers
560
- in the spec for a single request.
561
- :type _headers: dict, optional
562
- :param _host_index: set to override the host_index for a single
563
- request; this effectively ignores the host_index
564
- in the spec for a single request.
565
- :type _host_index: int, optional
566
- :return: Returns the result object.
567
- """ # noqa: E501
568
-
569
- _param = self._admin_tasks_serialize(
570
- x_task_diagnostics=x_task_diagnostics,
571
- child_tasks=child_tasks,
572
- created_resources=created_resources,
573
- exclusive_resources=exclusive_resources,
574
- exclusive_resources__in=exclusive_resources__in,
575
- finished_at=finished_at,
576
- finished_at__gt=finished_at__gt,
577
- finished_at__gte=finished_at__gte,
578
- finished_at__isnull=finished_at__isnull,
579
- finished_at__lt=finished_at__lt,
580
- finished_at__lte=finished_at__lte,
581
- finished_at__range=finished_at__range,
582
- limit=limit,
583
- logging_cid=logging_cid,
584
- logging_cid__contains=logging_cid__contains,
585
- name=name,
586
- name__contains=name__contains,
587
- name__in=name__in,
588
- name__ne=name__ne,
589
- offset=offset,
590
- ordering=ordering,
591
- parent_task=parent_task,
592
- prn__in=prn__in,
593
- pulp_created=pulp_created,
594
- pulp_created__gt=pulp_created__gt,
595
- pulp_created__gte=pulp_created__gte,
596
- pulp_created__isnull=pulp_created__isnull,
597
- pulp_created__lt=pulp_created__lt,
598
- pulp_created__lte=pulp_created__lte,
599
- pulp_created__range=pulp_created__range,
600
- pulp_href__in=pulp_href__in,
601
- pulp_id__in=pulp_id__in,
602
- q=q,
603
- reserved_resources=reserved_resources,
604
- reserved_resources__in=reserved_resources__in,
605
- shared_resources=shared_resources,
606
- shared_resources__in=shared_resources__in,
607
- started_at=started_at,
608
- started_at__gt=started_at__gt,
609
- started_at__gte=started_at__gte,
610
- started_at__isnull=started_at__isnull,
611
- started_at__lt=started_at__lt,
612
- started_at__lte=started_at__lte,
613
- started_at__range=started_at__range,
614
- state=state,
615
- state__in=state__in,
616
- state__ne=state__ne,
617
- task_group=task_group,
618
- unblocked_at=unblocked_at,
619
- unblocked_at__gt=unblocked_at__gt,
620
- unblocked_at__gte=unblocked_at__gte,
621
- unblocked_at__isnull=unblocked_at__isnull,
622
- unblocked_at__lt=unblocked_at__lt,
623
- unblocked_at__lte=unblocked_at__lte,
624
- unblocked_at__range=unblocked_at__range,
625
- worker=worker,
626
- worker__in=worker__in,
627
- worker__isnull=worker__isnull,
628
- fields=fields,
629
- exclude_fields=exclude_fields,
630
- _request_auth=_request_auth,
631
- _content_type=_content_type,
632
- _headers=_headers,
633
- _host_index=_host_index
634
- )
635
-
636
- _response_types_map: Dict[str, Optional[str]] = {
637
- '200': "PaginatedTaskResponseList",
638
- }
639
- response_data = self.api_client.call_api(
640
- *_param,
641
- _request_timeout=_request_timeout
642
- )
643
- response_data.read()
644
- return self.api_client.response_deserialize(
645
- response_data=response_data,
646
- response_types_map=_response_types_map,
647
- )
648
-
649
-
650
- @validate_call
651
- def admin_tasks_without_preload_content(
652
- self,
653
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
654
- child_tasks: Annotated[Optional[StrictStr], Field(description="Filter results where child_tasks matches value")] = None,
655
- created_resources: Optional[StrictStr] = None,
656
- exclusive_resources: Optional[StrictStr] = None,
657
- exclusive_resources__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
658
- finished_at: Annotated[Optional[datetime], Field(description="Filter results where finished_at matches value")] = None,
659
- finished_at__gt: Annotated[Optional[datetime], Field(description="Filter results where finished_at is greater than value")] = None,
660
- finished_at__gte: Annotated[Optional[datetime], Field(description="Filter results where finished_at is greater than or equal to value")] = None,
661
- finished_at__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where finished_at has a null value")] = None,
662
- finished_at__lt: Annotated[Optional[datetime], Field(description="Filter results where finished_at is less than value")] = None,
663
- finished_at__lte: Annotated[Optional[datetime], Field(description="Filter results where finished_at is less than or equal to value")] = None,
664
- finished_at__range: Annotated[Optional[List[datetime]], Field(description="Filter results where finished_at is between two comma separated values")] = None,
665
- limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
666
- logging_cid: Annotated[Optional[StrictStr], Field(description="Filter results where logging_cid matches value")] = None,
667
- logging_cid__contains: Annotated[Optional[StrictStr], Field(description="Filter results where logging_cid contains value")] = None,
668
- name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
669
- name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
670
- name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
671
- name__ne: Annotated[Optional[StrictStr], Field(description="Filter results where name not equal to value")] = None,
672
- offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
673
- ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `unblocked_at` - Unblocked at * `-unblocked_at` - Unblocked at (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `profile_options` - Profile options * `-profile_options` - Profile options (descending) * `immediate` - Immediate * `-immediate` - Immediate (descending) * `deferred` - Deferred * `-deferred` - Deferred (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
674
- parent_task: Annotated[Optional[StrictStr], Field(description="Filter results where parent_task matches value")] = None,
675
- prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
676
- pulp_created: Annotated[Optional[datetime], Field(description="Filter results where pulp_created matches value")] = None,
677
- pulp_created__gt: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is greater than value")] = None,
678
- pulp_created__gte: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is greater than or equal to value")] = None,
679
- pulp_created__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where pulp_created has a null value")] = None,
680
- pulp_created__lt: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is less than value")] = None,
681
- pulp_created__lte: Annotated[Optional[datetime], Field(description="Filter results where pulp_created is less than or equal to value")] = None,
682
- pulp_created__range: Annotated[Optional[List[datetime]], Field(description="Filter results where pulp_created is between two comma separated values")] = None,
683
- pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
684
- pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
685
- q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
686
- reserved_resources: Optional[StrictStr] = None,
687
- reserved_resources__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
688
- shared_resources: Optional[StrictStr] = None,
689
- shared_resources__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
690
- started_at: Annotated[Optional[datetime], Field(description="Filter results where started_at matches value")] = None,
691
- started_at__gt: Annotated[Optional[datetime], Field(description="Filter results where started_at is greater than value")] = None,
692
- started_at__gte: Annotated[Optional[datetime], Field(description="Filter results where started_at is greater than or equal to value")] = None,
693
- started_at__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where started_at has a null value")] = None,
694
- started_at__lt: Annotated[Optional[datetime], Field(description="Filter results where started_at is less than value")] = None,
695
- started_at__lte: Annotated[Optional[datetime], Field(description="Filter results where started_at is less than or equal to value")] = None,
696
- started_at__range: Annotated[Optional[List[datetime]], Field(description="Filter results where started_at is between two comma separated values")] = None,
697
- state: Annotated[Optional[StrictStr], Field(description="Filter results where state matches value * `waiting` - Waiting * `skipped` - Skipped * `running` - Running * `completed` - Completed * `failed` - Failed * `canceled` - Canceled * `canceling` - Canceling")] = None,
698
- state__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where state is in a comma-separated list of values")] = None,
699
- state__ne: Annotated[Optional[StrictStr], Field(description="Filter results where state not equal to value")] = None,
700
- task_group: Annotated[Optional[StrictStr], Field(description="Filter results where task_group matches value")] = None,
701
- unblocked_at: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at matches value")] = None,
702
- unblocked_at__gt: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is greater than value")] = None,
703
- unblocked_at__gte: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is greater than or equal to value")] = None,
704
- unblocked_at__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where unblocked_at has a null value")] = None,
705
- unblocked_at__lt: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is less than value")] = None,
706
- unblocked_at__lte: Annotated[Optional[datetime], Field(description="Filter results where unblocked_at is less than or equal to value")] = None,
707
- unblocked_at__range: Annotated[Optional[List[datetime]], Field(description="Filter results where unblocked_at is between two comma separated values")] = None,
708
- worker: Annotated[Optional[StrictStr], Field(description="Filter results where worker matches value")] = None,
709
- worker__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where worker is in a comma-separated list of values")] = None,
710
- worker__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where worker has a null value")] = None,
711
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
712
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
713
- _request_timeout: Union[
714
- None,
715
- Annotated[StrictFloat, Field(gt=0)],
716
- Tuple[
717
- Annotated[StrictFloat, Field(gt=0)],
718
- Annotated[StrictFloat, Field(gt=0)]
719
- ]
720
- ] = None,
721
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
722
- _content_type: Optional[StrictStr] = None,
723
- _headers: Optional[Dict[StrictStr, Any]] = None,
724
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
725
- ) -> RESTResponseType:
726
- """admin_tasks
727
-
728
- A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
729
-
730
- :param x_task_diagnostics: List of profilers to use on tasks.
731
- :type x_task_diagnostics: List[str]
732
- :param child_tasks: Filter results where child_tasks matches value
733
- :type child_tasks: str
734
- :param created_resources:
735
- :type created_resources: str
736
- :param exclusive_resources:
737
- :type exclusive_resources: str
738
- :param exclusive_resources__in: Multiple values may be separated by commas.
739
- :type exclusive_resources__in: List[str]
740
- :param finished_at: Filter results where finished_at matches value
741
- :type finished_at: datetime
742
- :param finished_at__gt: Filter results where finished_at is greater than value
743
- :type finished_at__gt: datetime
744
- :param finished_at__gte: Filter results where finished_at is greater than or equal to value
745
- :type finished_at__gte: datetime
746
- :param finished_at__isnull: Filter results where finished_at has a null value
747
- :type finished_at__isnull: bool
748
- :param finished_at__lt: Filter results where finished_at is less than value
749
- :type finished_at__lt: datetime
750
- :param finished_at__lte: Filter results where finished_at is less than or equal to value
751
- :type finished_at__lte: datetime
752
- :param finished_at__range: Filter results where finished_at is between two comma separated values
753
- :type finished_at__range: List[datetime]
754
- :param limit: Number of results to return per page.
755
- :type limit: int
756
- :param logging_cid: Filter results where logging_cid matches value
757
- :type logging_cid: str
758
- :param logging_cid__contains: Filter results where logging_cid contains value
759
- :type logging_cid__contains: str
760
- :param name: Filter results where name matches value
761
- :type name: str
762
- :param name__contains: Filter results where name contains value
763
- :type name__contains: str
764
- :param name__in: Filter results where name is in a comma-separated list of values
765
- :type name__in: List[str]
766
- :param name__ne: Filter results where name not equal to value
767
- :type name__ne: str
768
- :param offset: The initial index from which to return the results.
769
- :type offset: int
770
- :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `unblocked_at` - Unblocked at * `-unblocked_at` - Unblocked at (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `profile_options` - Profile options * `-profile_options` - Profile options (descending) * `immediate` - Immediate * `-immediate` - Immediate (descending) * `deferred` - Deferred * `-deferred` - Deferred (descending) * `pk` - Pk * `-pk` - Pk (descending)
771
- :type ordering: List[str]
772
- :param parent_task: Filter results where parent_task matches value
773
- :type parent_task: str
774
- :param prn__in: Multiple values may be separated by commas.
775
- :type prn__in: List[str]
776
- :param pulp_created: Filter results where pulp_created matches value
777
- :type pulp_created: datetime
778
- :param pulp_created__gt: Filter results where pulp_created is greater than value
779
- :type pulp_created__gt: datetime
780
- :param pulp_created__gte: Filter results where pulp_created is greater than or equal to value
781
- :type pulp_created__gte: datetime
782
- :param pulp_created__isnull: Filter results where pulp_created has a null value
783
- :type pulp_created__isnull: bool
784
- :param pulp_created__lt: Filter results where pulp_created is less than value
785
- :type pulp_created__lt: datetime
786
- :param pulp_created__lte: Filter results where pulp_created is less than or equal to value
787
- :type pulp_created__lte: datetime
788
- :param pulp_created__range: Filter results where pulp_created is between two comma separated values
789
- :type pulp_created__range: List[datetime]
790
- :param pulp_href__in: Multiple values may be separated by commas.
791
- :type pulp_href__in: List[str]
792
- :param pulp_id__in: Multiple values may be separated by commas.
793
- :type pulp_id__in: List[str]
794
- :param q: Filter results by using NOT, AND and OR operations on other filters
795
- :type q: str
796
- :param reserved_resources:
797
- :type reserved_resources: str
798
- :param reserved_resources__in: Multiple values may be separated by commas.
799
- :type reserved_resources__in: List[str]
800
- :param shared_resources:
801
- :type shared_resources: str
802
- :param shared_resources__in: Multiple values may be separated by commas.
803
- :type shared_resources__in: List[str]
804
- :param started_at: Filter results where started_at matches value
805
- :type started_at: datetime
806
- :param started_at__gt: Filter results where started_at is greater than value
807
- :type started_at__gt: datetime
808
- :param started_at__gte: Filter results where started_at is greater than or equal to value
809
- :type started_at__gte: datetime
810
- :param started_at__isnull: Filter results where started_at has a null value
811
- :type started_at__isnull: bool
812
- :param started_at__lt: Filter results where started_at is less than value
813
- :type started_at__lt: datetime
814
- :param started_at__lte: Filter results where started_at is less than or equal to value
815
- :type started_at__lte: datetime
816
- :param started_at__range: Filter results where started_at is between two comma separated values
817
- :type started_at__range: List[datetime]
818
- :param state: Filter results where state matches value * `waiting` - Waiting * `skipped` - Skipped * `running` - Running * `completed` - Completed * `failed` - Failed * `canceled` - Canceled * `canceling` - Canceling
819
- :type state: str
820
- :param state__in: Filter results where state is in a comma-separated list of values
821
- :type state__in: List[str]
822
- :param state__ne: Filter results where state not equal to value
823
- :type state__ne: str
824
- :param task_group: Filter results where task_group matches value
825
- :type task_group: str
826
- :param unblocked_at: Filter results where unblocked_at matches value
827
- :type unblocked_at: datetime
828
- :param unblocked_at__gt: Filter results where unblocked_at is greater than value
829
- :type unblocked_at__gt: datetime
830
- :param unblocked_at__gte: Filter results where unblocked_at is greater than or equal to value
831
- :type unblocked_at__gte: datetime
832
- :param unblocked_at__isnull: Filter results where unblocked_at has a null value
833
- :type unblocked_at__isnull: bool
834
- :param unblocked_at__lt: Filter results where unblocked_at is less than value
835
- :type unblocked_at__lt: datetime
836
- :param unblocked_at__lte: Filter results where unblocked_at is less than or equal to value
837
- :type unblocked_at__lte: datetime
838
- :param unblocked_at__range: Filter results where unblocked_at is between two comma separated values
839
- :type unblocked_at__range: List[datetime]
840
- :param worker: Filter results where worker matches value
841
- :type worker: str
842
- :param worker__in: Filter results where worker is in a comma-separated list of values
843
- :type worker__in: List[str]
844
- :param worker__isnull: Filter results where worker has a null value
845
- :type worker__isnull: bool
846
- :param fields: A list of fields to include in the response.
847
- :type fields: List[str]
848
- :param exclude_fields: A list of fields to exclude from the response.
849
- :type exclude_fields: List[str]
850
- :param _request_timeout: timeout setting for this request. If one
851
- number provided, it will be total request
852
- timeout. It can also be a pair (tuple) of
853
- (connection, read) timeouts.
854
- :type _request_timeout: int, tuple(int, int), optional
855
- :param _request_auth: set to override the auth_settings for an a single
856
- request; this effectively ignores the
857
- authentication in the spec for a single request.
858
- :type _request_auth: dict, optional
859
- :param _content_type: force content-type for the request.
860
- :type _content_type: str, Optional
861
- :param _headers: set to override the headers for a single
862
- request; this effectively ignores the headers
863
- in the spec for a single request.
864
- :type _headers: dict, optional
865
- :param _host_index: set to override the host_index for a single
866
- request; this effectively ignores the host_index
867
- in the spec for a single request.
868
- :type _host_index: int, optional
869
- :return: Returns the result object.
870
- """ # noqa: E501
871
-
872
- _param = self._admin_tasks_serialize(
873
- x_task_diagnostics=x_task_diagnostics,
874
- child_tasks=child_tasks,
875
- created_resources=created_resources,
876
- exclusive_resources=exclusive_resources,
877
- exclusive_resources__in=exclusive_resources__in,
878
- finished_at=finished_at,
879
- finished_at__gt=finished_at__gt,
880
- finished_at__gte=finished_at__gte,
881
- finished_at__isnull=finished_at__isnull,
882
- finished_at__lt=finished_at__lt,
883
- finished_at__lte=finished_at__lte,
884
- finished_at__range=finished_at__range,
885
- limit=limit,
886
- logging_cid=logging_cid,
887
- logging_cid__contains=logging_cid__contains,
888
- name=name,
889
- name__contains=name__contains,
890
- name__in=name__in,
891
- name__ne=name__ne,
892
- offset=offset,
893
- ordering=ordering,
894
- parent_task=parent_task,
895
- prn__in=prn__in,
896
- pulp_created=pulp_created,
897
- pulp_created__gt=pulp_created__gt,
898
- pulp_created__gte=pulp_created__gte,
899
- pulp_created__isnull=pulp_created__isnull,
900
- pulp_created__lt=pulp_created__lt,
901
- pulp_created__lte=pulp_created__lte,
902
- pulp_created__range=pulp_created__range,
903
- pulp_href__in=pulp_href__in,
904
- pulp_id__in=pulp_id__in,
905
- q=q,
906
- reserved_resources=reserved_resources,
907
- reserved_resources__in=reserved_resources__in,
908
- shared_resources=shared_resources,
909
- shared_resources__in=shared_resources__in,
910
- started_at=started_at,
911
- started_at__gt=started_at__gt,
912
- started_at__gte=started_at__gte,
913
- started_at__isnull=started_at__isnull,
914
- started_at__lt=started_at__lt,
915
- started_at__lte=started_at__lte,
916
- started_at__range=started_at__range,
917
- state=state,
918
- state__in=state__in,
919
- state__ne=state__ne,
920
- task_group=task_group,
921
- unblocked_at=unblocked_at,
922
- unblocked_at__gt=unblocked_at__gt,
923
- unblocked_at__gte=unblocked_at__gte,
924
- unblocked_at__isnull=unblocked_at__isnull,
925
- unblocked_at__lt=unblocked_at__lt,
926
- unblocked_at__lte=unblocked_at__lte,
927
- unblocked_at__range=unblocked_at__range,
928
- worker=worker,
929
- worker__in=worker__in,
930
- worker__isnull=worker__isnull,
931
- fields=fields,
932
- exclude_fields=exclude_fields,
933
- _request_auth=_request_auth,
934
- _content_type=_content_type,
935
- _headers=_headers,
936
- _host_index=_host_index
937
- )
938
-
939
- _response_types_map: Dict[str, Optional[str]] = {
940
- '200': "PaginatedTaskResponseList",
941
- }
942
- response_data = self.api_client.call_api(
943
- *_param,
944
- _request_timeout=_request_timeout
945
- )
946
- return response_data.response
947
-
948
-
949
- def _admin_tasks_serialize(
950
- self,
951
- x_task_diagnostics,
952
- child_tasks,
953
- created_resources,
954
- exclusive_resources,
955
- exclusive_resources__in,
956
- finished_at,
957
- finished_at__gt,
958
- finished_at__gte,
959
- finished_at__isnull,
960
- finished_at__lt,
961
- finished_at__lte,
962
- finished_at__range,
963
- limit,
964
- logging_cid,
965
- logging_cid__contains,
966
- name,
967
- name__contains,
968
- name__in,
969
- name__ne,
970
- offset,
971
- ordering,
972
- parent_task,
973
- prn__in,
974
- pulp_created,
975
- pulp_created__gt,
976
- pulp_created__gte,
977
- pulp_created__isnull,
978
- pulp_created__lt,
979
- pulp_created__lte,
980
- pulp_created__range,
981
- pulp_href__in,
982
- pulp_id__in,
983
- q,
984
- reserved_resources,
985
- reserved_resources__in,
986
- shared_resources,
987
- shared_resources__in,
988
- started_at,
989
- started_at__gt,
990
- started_at__gte,
991
- started_at__isnull,
992
- started_at__lt,
993
- started_at__lte,
994
- started_at__range,
995
- state,
996
- state__in,
997
- state__ne,
998
- task_group,
999
- unblocked_at,
1000
- unblocked_at__gt,
1001
- unblocked_at__gte,
1002
- unblocked_at__isnull,
1003
- unblocked_at__lt,
1004
- unblocked_at__lte,
1005
- unblocked_at__range,
1006
- worker,
1007
- worker__in,
1008
- worker__isnull,
1009
- fields,
1010
- exclude_fields,
1011
- _request_auth,
1012
- _content_type,
1013
- _headers,
1014
- _host_index,
1015
- ) -> RequestSerialized:
1016
-
1017
- _host = None
1018
-
1019
- _collection_formats: Dict[str, str] = {
1020
- 'X-Task-Diagnostics': 'csv',
1021
- 'exclusive_resources__in': 'csv',
1022
- 'finished_at__range': 'csv',
1023
- 'name__in': 'csv',
1024
- 'ordering': 'csv',
1025
- 'prn__in': 'csv',
1026
- 'pulp_created__range': 'csv',
1027
- 'pulp_href__in': 'csv',
1028
- 'pulp_id__in': 'csv',
1029
- 'reserved_resources__in': 'csv',
1030
- 'shared_resources__in': 'csv',
1031
- 'started_at__range': 'csv',
1032
- 'state__in': 'csv',
1033
- 'unblocked_at__range': 'csv',
1034
- 'worker__in': 'csv',
1035
- 'fields': 'multi',
1036
- 'exclude_fields': 'multi',
1037
- }
1038
-
1039
- _path_params: Dict[str, str] = {}
1040
- _query_params: List[Tuple[str, str]] = []
1041
- _header_params: Dict[str, Optional[str]] = _headers or {}
1042
- _form_params: List[Tuple[str, str]] = []
1043
- _files: Dict[
1044
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1045
- ] = {}
1046
- _body_params: Optional[bytes] = None
1047
-
1048
- # process the path parameters
1049
- # process the query parameters
1050
- if child_tasks is not None:
1051
-
1052
- _query_params.append(('child_tasks', child_tasks))
1053
-
1054
- if created_resources is not None:
1055
-
1056
- _query_params.append(('created_resources', created_resources))
1057
-
1058
- if exclusive_resources is not None:
1059
-
1060
- _query_params.append(('exclusive_resources', exclusive_resources))
1061
-
1062
- if exclusive_resources__in is not None:
1063
-
1064
- _query_params.append(('exclusive_resources__in', exclusive_resources__in))
1065
-
1066
- if finished_at is not None:
1067
- if isinstance(finished_at, datetime):
1068
- _query_params.append(
1069
- (
1070
- 'finished_at',
1071
- finished_at.strftime(
1072
- self.api_client.configuration.datetime_format
1073
- )
1074
- )
1075
- )
1076
- else:
1077
- _query_params.append(('finished_at', finished_at))
1078
-
1079
- if finished_at__gt is not None:
1080
- if isinstance(finished_at__gt, datetime):
1081
- _query_params.append(
1082
- (
1083
- 'finished_at__gt',
1084
- finished_at__gt.strftime(
1085
- self.api_client.configuration.datetime_format
1086
- )
1087
- )
1088
- )
1089
- else:
1090
- _query_params.append(('finished_at__gt', finished_at__gt))
1091
-
1092
- if finished_at__gte is not None:
1093
- if isinstance(finished_at__gte, datetime):
1094
- _query_params.append(
1095
- (
1096
- 'finished_at__gte',
1097
- finished_at__gte.strftime(
1098
- self.api_client.configuration.datetime_format
1099
- )
1100
- )
1101
- )
1102
- else:
1103
- _query_params.append(('finished_at__gte', finished_at__gte))
1104
-
1105
- if finished_at__isnull is not None:
1106
-
1107
- _query_params.append(('finished_at__isnull', finished_at__isnull))
1108
-
1109
- if finished_at__lt is not None:
1110
- if isinstance(finished_at__lt, datetime):
1111
- _query_params.append(
1112
- (
1113
- 'finished_at__lt',
1114
- finished_at__lt.strftime(
1115
- self.api_client.configuration.datetime_format
1116
- )
1117
- )
1118
- )
1119
- else:
1120
- _query_params.append(('finished_at__lt', finished_at__lt))
1121
-
1122
- if finished_at__lte is not None:
1123
- if isinstance(finished_at__lte, datetime):
1124
- _query_params.append(
1125
- (
1126
- 'finished_at__lte',
1127
- finished_at__lte.strftime(
1128
- self.api_client.configuration.datetime_format
1129
- )
1130
- )
1131
- )
1132
- else:
1133
- _query_params.append(('finished_at__lte', finished_at__lte))
1134
-
1135
- if finished_at__range is not None:
1136
-
1137
- _query_params.append(('finished_at__range', finished_at__range))
1138
-
1139
- if limit is not None:
1140
-
1141
- _query_params.append(('limit', limit))
1142
-
1143
- if logging_cid is not None:
1144
-
1145
- _query_params.append(('logging_cid', logging_cid))
1146
-
1147
- if logging_cid__contains is not None:
1148
-
1149
- _query_params.append(('logging_cid__contains', logging_cid__contains))
1150
-
1151
- if name is not None:
1152
-
1153
- _query_params.append(('name', name))
1154
-
1155
- if name__contains is not None:
1156
-
1157
- _query_params.append(('name__contains', name__contains))
1158
-
1159
- if name__in is not None:
1160
-
1161
- _query_params.append(('name__in', name__in))
1162
-
1163
- if name__ne is not None:
1164
-
1165
- _query_params.append(('name__ne', name__ne))
1166
-
1167
- if offset is not None:
1168
-
1169
- _query_params.append(('offset', offset))
1170
-
1171
- if ordering is not None:
1172
-
1173
- _query_params.append(('ordering', ordering))
1174
-
1175
- if parent_task is not None:
1176
-
1177
- _query_params.append(('parent_task', parent_task))
1178
-
1179
- if prn__in is not None:
1180
-
1181
- _query_params.append(('prn__in', prn__in))
1182
-
1183
- if pulp_created is not None:
1184
- if isinstance(pulp_created, datetime):
1185
- _query_params.append(
1186
- (
1187
- 'pulp_created',
1188
- pulp_created.strftime(
1189
- self.api_client.configuration.datetime_format
1190
- )
1191
- )
1192
- )
1193
- else:
1194
- _query_params.append(('pulp_created', pulp_created))
1195
-
1196
- if pulp_created__gt is not None:
1197
- if isinstance(pulp_created__gt, datetime):
1198
- _query_params.append(
1199
- (
1200
- 'pulp_created__gt',
1201
- pulp_created__gt.strftime(
1202
- self.api_client.configuration.datetime_format
1203
- )
1204
- )
1205
- )
1206
- else:
1207
- _query_params.append(('pulp_created__gt', pulp_created__gt))
1208
-
1209
- if pulp_created__gte is not None:
1210
- if isinstance(pulp_created__gte, datetime):
1211
- _query_params.append(
1212
- (
1213
- 'pulp_created__gte',
1214
- pulp_created__gte.strftime(
1215
- self.api_client.configuration.datetime_format
1216
- )
1217
- )
1218
- )
1219
- else:
1220
- _query_params.append(('pulp_created__gte', pulp_created__gte))
1221
-
1222
- if pulp_created__isnull is not None:
1223
-
1224
- _query_params.append(('pulp_created__isnull', pulp_created__isnull))
1225
-
1226
- if pulp_created__lt is not None:
1227
- if isinstance(pulp_created__lt, datetime):
1228
- _query_params.append(
1229
- (
1230
- 'pulp_created__lt',
1231
- pulp_created__lt.strftime(
1232
- self.api_client.configuration.datetime_format
1233
- )
1234
- )
1235
- )
1236
- else:
1237
- _query_params.append(('pulp_created__lt', pulp_created__lt))
1238
-
1239
- if pulp_created__lte is not None:
1240
- if isinstance(pulp_created__lte, datetime):
1241
- _query_params.append(
1242
- (
1243
- 'pulp_created__lte',
1244
- pulp_created__lte.strftime(
1245
- self.api_client.configuration.datetime_format
1246
- )
1247
- )
1248
- )
1249
- else:
1250
- _query_params.append(('pulp_created__lte', pulp_created__lte))
1251
-
1252
- if pulp_created__range is not None:
1253
-
1254
- _query_params.append(('pulp_created__range', pulp_created__range))
1255
-
1256
- if pulp_href__in is not None:
1257
-
1258
- _query_params.append(('pulp_href__in', pulp_href__in))
1259
-
1260
- if pulp_id__in is not None:
1261
-
1262
- _query_params.append(('pulp_id__in', pulp_id__in))
1263
-
1264
- if q is not None:
1265
-
1266
- _query_params.append(('q', q))
1267
-
1268
- if reserved_resources is not None:
1269
-
1270
- _query_params.append(('reserved_resources', reserved_resources))
1271
-
1272
- if reserved_resources__in is not None:
1273
-
1274
- _query_params.append(('reserved_resources__in', reserved_resources__in))
1275
-
1276
- if shared_resources is not None:
1277
-
1278
- _query_params.append(('shared_resources', shared_resources))
1279
-
1280
- if shared_resources__in is not None:
1281
-
1282
- _query_params.append(('shared_resources__in', shared_resources__in))
1283
-
1284
- if started_at is not None:
1285
- if isinstance(started_at, datetime):
1286
- _query_params.append(
1287
- (
1288
- 'started_at',
1289
- started_at.strftime(
1290
- self.api_client.configuration.datetime_format
1291
- )
1292
- )
1293
- )
1294
- else:
1295
- _query_params.append(('started_at', started_at))
1296
-
1297
- if started_at__gt is not None:
1298
- if isinstance(started_at__gt, datetime):
1299
- _query_params.append(
1300
- (
1301
- 'started_at__gt',
1302
- started_at__gt.strftime(
1303
- self.api_client.configuration.datetime_format
1304
- )
1305
- )
1306
- )
1307
- else:
1308
- _query_params.append(('started_at__gt', started_at__gt))
1309
-
1310
- if started_at__gte is not None:
1311
- if isinstance(started_at__gte, datetime):
1312
- _query_params.append(
1313
- (
1314
- 'started_at__gte',
1315
- started_at__gte.strftime(
1316
- self.api_client.configuration.datetime_format
1317
- )
1318
- )
1319
- )
1320
- else:
1321
- _query_params.append(('started_at__gte', started_at__gte))
1322
-
1323
- if started_at__isnull is not None:
1324
-
1325
- _query_params.append(('started_at__isnull', started_at__isnull))
1326
-
1327
- if started_at__lt is not None:
1328
- if isinstance(started_at__lt, datetime):
1329
- _query_params.append(
1330
- (
1331
- 'started_at__lt',
1332
- started_at__lt.strftime(
1333
- self.api_client.configuration.datetime_format
1334
- )
1335
- )
1336
- )
1337
- else:
1338
- _query_params.append(('started_at__lt', started_at__lt))
1339
-
1340
- if started_at__lte is not None:
1341
- if isinstance(started_at__lte, datetime):
1342
- _query_params.append(
1343
- (
1344
- 'started_at__lte',
1345
- started_at__lte.strftime(
1346
- self.api_client.configuration.datetime_format
1347
- )
1348
- )
1349
- )
1350
- else:
1351
- _query_params.append(('started_at__lte', started_at__lte))
1352
-
1353
- if started_at__range is not None:
1354
-
1355
- _query_params.append(('started_at__range', started_at__range))
1356
-
1357
- if state is not None:
1358
-
1359
- _query_params.append(('state', state))
1360
-
1361
- if state__in is not None:
1362
-
1363
- _query_params.append(('state__in', state__in))
1364
-
1365
- if state__ne is not None:
1366
-
1367
- _query_params.append(('state__ne', state__ne))
1368
-
1369
- if task_group is not None:
1370
-
1371
- _query_params.append(('task_group', task_group))
1372
-
1373
- if unblocked_at is not None:
1374
- if isinstance(unblocked_at, datetime):
1375
- _query_params.append(
1376
- (
1377
- 'unblocked_at',
1378
- unblocked_at.strftime(
1379
- self.api_client.configuration.datetime_format
1380
- )
1381
- )
1382
- )
1383
- else:
1384
- _query_params.append(('unblocked_at', unblocked_at))
1385
-
1386
- if unblocked_at__gt is not None:
1387
- if isinstance(unblocked_at__gt, datetime):
1388
- _query_params.append(
1389
- (
1390
- 'unblocked_at__gt',
1391
- unblocked_at__gt.strftime(
1392
- self.api_client.configuration.datetime_format
1393
- )
1394
- )
1395
- )
1396
- else:
1397
- _query_params.append(('unblocked_at__gt', unblocked_at__gt))
1398
-
1399
- if unblocked_at__gte is not None:
1400
- if isinstance(unblocked_at__gte, datetime):
1401
- _query_params.append(
1402
- (
1403
- 'unblocked_at__gte',
1404
- unblocked_at__gte.strftime(
1405
- self.api_client.configuration.datetime_format
1406
- )
1407
- )
1408
- )
1409
- else:
1410
- _query_params.append(('unblocked_at__gte', unblocked_at__gte))
1411
-
1412
- if unblocked_at__isnull is not None:
1413
-
1414
- _query_params.append(('unblocked_at__isnull', unblocked_at__isnull))
1415
-
1416
- if unblocked_at__lt is not None:
1417
- if isinstance(unblocked_at__lt, datetime):
1418
- _query_params.append(
1419
- (
1420
- 'unblocked_at__lt',
1421
- unblocked_at__lt.strftime(
1422
- self.api_client.configuration.datetime_format
1423
- )
1424
- )
1425
- )
1426
- else:
1427
- _query_params.append(('unblocked_at__lt', unblocked_at__lt))
1428
-
1429
- if unblocked_at__lte is not None:
1430
- if isinstance(unblocked_at__lte, datetime):
1431
- _query_params.append(
1432
- (
1433
- 'unblocked_at__lte',
1434
- unblocked_at__lte.strftime(
1435
- self.api_client.configuration.datetime_format
1436
- )
1437
- )
1438
- )
1439
- else:
1440
- _query_params.append(('unblocked_at__lte', unblocked_at__lte))
1441
-
1442
- if unblocked_at__range is not None:
1443
-
1444
- _query_params.append(('unblocked_at__range', unblocked_at__range))
1445
-
1446
- if worker is not None:
1447
-
1448
- _query_params.append(('worker', worker))
1449
-
1450
- if worker__in is not None:
1451
-
1452
- _query_params.append(('worker__in', worker__in))
1453
-
1454
- if worker__isnull is not None:
1455
-
1456
- _query_params.append(('worker__isnull', worker__isnull))
1457
-
1458
- if fields is not None:
1459
-
1460
- _query_params.append(('fields', fields))
1461
-
1462
- if exclude_fields is not None:
1463
-
1464
- _query_params.append(('exclude_fields', exclude_fields))
1465
-
1466
- # process the header parameters
1467
- if x_task_diagnostics is not None:
1468
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1469
- # process the form parameters
1470
- # process the body parameter
1471
-
1472
-
1473
- # set the HTTP header `Accept`
1474
- if 'Accept' not in _header_params:
1475
- _header_params['Accept'] = self.api_client.select_header_accept(
1476
- [
1477
- 'application/json'
1478
- ]
1479
- )
1480
-
1481
-
1482
- # authentication setting
1483
- _auth_settings: List[str] = [
1484
- 'json_header_remote_authentication',
1485
- 'basicAuth',
1486
- 'cookieAuth'
1487
- ]
1488
-
1489
- return self.api_client.param_serialize(
1490
- method='GET',
1491
- resource_path='/api/pulp/admin/tasks/',
1492
- path_params=_path_params,
1493
- query_params=_query_params,
1494
- header_params=_header_params,
1495
- body=_body_params,
1496
- post_params=_form_params,
1497
- files=_files,
1498
- auth_settings=_auth_settings,
1499
- collection_formats=_collection_formats,
1500
- _host=_host,
1501
- _request_auth=_request_auth
1502
- )
1503
-
1504
-