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