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