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