crc-pulp-npm-client 20250819.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/__init__.py +2 -0
- crc-pulp_npm-client/api/__init__.py +9 -0
- crc-pulp_npm-client/api/content_packages_api.py +1964 -0
- crc-pulp_npm-client/api/distributions_npm_api.py +2934 -0
- crc-pulp_npm-client/api/remotes_npm_api.py +2962 -0
- crc-pulp_npm-client/api/repositories_npm_api.py +3604 -0
- crc-pulp_npm-client/api/repositories_npm_versions_api.py +1670 -0
- crc-pulp_npm-client/api_client.py +798 -0
- crc-pulp_npm-client/api_response.py +21 -0
- crc-pulp_npm-client/configuration.py +628 -0
- crc-pulp_npm-client/exceptions.py +200 -0
- crc-pulp_npm-client/models/__init__.py +44 -0
- crc-pulp_npm-client/models/async_operation_response.py +88 -0
- crc-pulp_npm-client/models/content_summary_response.py +92 -0
- crc-pulp_npm-client/models/npm_npm_distribution.py +116 -0
- crc-pulp_npm-client/models/npm_npm_distribution_response.py +140 -0
- crc-pulp_npm-client/models/npm_npm_remote.py +205 -0
- crc-pulp_npm-client/models/npm_npm_remote_response.py +199 -0
- crc-pulp_npm-client/models/npm_npm_remote_response_hidden_fields_inner.py +90 -0
- crc-pulp_npm-client/models/npm_npm_repository.py +112 -0
- crc-pulp_npm-client/models/npm_npm_repository_response.py +137 -0
- crc-pulp_npm-client/models/npm_package_response.py +113 -0
- crc-pulp_npm-client/models/paginated_repository_version_response_list.py +112 -0
- crc-pulp_npm-client/models/paginatednpm_npm_distribution_response_list.py +112 -0
- crc-pulp_npm-client/models/paginatednpm_npm_remote_response_list.py +112 -0
- crc-pulp_npm-client/models/paginatednpm_npm_repository_response_list.py +112 -0
- crc-pulp_npm-client/models/paginatednpm_package_response_list.py +112 -0
- crc-pulp_npm-client/models/patchednpm_npm_distribution.py +116 -0
- crc-pulp_npm-client/models/patchednpm_npm_remote.py +205 -0
- crc-pulp_npm-client/models/patchednpm_npm_repository.py +112 -0
- crc-pulp_npm-client/models/policy_enum.py +39 -0
- crc-pulp_npm-client/models/repair.py +88 -0
- crc-pulp_npm-client/models/repository_add_remove_content.py +93 -0
- crc-pulp_npm-client/models/repository_sync_url.py +90 -0
- crc-pulp_npm-client/models/repository_version_response.py +121 -0
- crc-pulp_npm-client/models/set_label.py +103 -0
- crc-pulp_npm-client/models/set_label_response.py +103 -0
- crc-pulp_npm-client/models/unset_label.py +96 -0
- crc-pulp_npm-client/models/unset_label_response.py +100 -0
- crc-pulp_npm-client/py.typed +0 -0
- crc-pulp_npm-client/rest.py +258 -0
- crc_pulp_npm_client-20250819.1.dist-info/METADATA +25 -0
- crc_pulp_npm_client-20250819.1.dist-info/RECORD +86 -0
- crc_pulp_npm_client-20250819.1.dist-info/WHEEL +5 -0
- crc_pulp_npm_client-20250819.1.dist-info/top_level.txt +2 -0
- services-pulp_npm-client/__init__.py +2 -0
- services-pulp_npm-client/api/__init__.py +9 -0
- services-pulp_npm-client/api/content_packages_api.py +1964 -0
- services-pulp_npm-client/api/distributions_npm_api.py +2934 -0
- services-pulp_npm-client/api/remotes_npm_api.py +2962 -0
- services-pulp_npm-client/api/repositories_npm_api.py +3604 -0
- services-pulp_npm-client/api/repositories_npm_versions_api.py +1670 -0
- services-pulp_npm-client/api_client.py +798 -0
- services-pulp_npm-client/api_response.py +21 -0
- services-pulp_npm-client/configuration.py +628 -0
- services-pulp_npm-client/exceptions.py +200 -0
- services-pulp_npm-client/models/__init__.py +44 -0
- services-pulp_npm-client/models/async_operation_response.py +88 -0
- services-pulp_npm-client/models/content_summary_response.py +92 -0
- services-pulp_npm-client/models/npm_npm_distribution.py +116 -0
- services-pulp_npm-client/models/npm_npm_distribution_response.py +140 -0
- services-pulp_npm-client/models/npm_npm_remote.py +205 -0
- services-pulp_npm-client/models/npm_npm_remote_response.py +199 -0
- services-pulp_npm-client/models/npm_npm_remote_response_hidden_fields_inner.py +90 -0
- services-pulp_npm-client/models/npm_npm_repository.py +112 -0
- services-pulp_npm-client/models/npm_npm_repository_response.py +137 -0
- services-pulp_npm-client/models/npm_package_response.py +113 -0
- services-pulp_npm-client/models/paginated_repository_version_response_list.py +112 -0
- services-pulp_npm-client/models/paginatednpm_npm_distribution_response_list.py +112 -0
- services-pulp_npm-client/models/paginatednpm_npm_remote_response_list.py +112 -0
- services-pulp_npm-client/models/paginatednpm_npm_repository_response_list.py +112 -0
- services-pulp_npm-client/models/paginatednpm_package_response_list.py +112 -0
- services-pulp_npm-client/models/patchednpm_npm_distribution.py +116 -0
- services-pulp_npm-client/models/patchednpm_npm_remote.py +205 -0
- services-pulp_npm-client/models/patchednpm_npm_repository.py +112 -0
- services-pulp_npm-client/models/policy_enum.py +39 -0
- services-pulp_npm-client/models/repair.py +88 -0
- services-pulp_npm-client/models/repository_add_remove_content.py +93 -0
- services-pulp_npm-client/models/repository_sync_url.py +90 -0
- services-pulp_npm-client/models/repository_version_response.py +121 -0
- services-pulp_npm-client/models/set_label.py +103 -0
- services-pulp_npm-client/models/set_label_response.py +103 -0
- services-pulp_npm-client/models/unset_label.py +96 -0
- services-pulp_npm-client/models/unset_label_response.py +100 -0
- services-pulp_npm-client/py.typed +0 -0
- services-pulp_npm-client/rest.py +258 -0
|
@@ -0,0 +1,3604 @@
|
|
|
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, StrictBool, StrictInt, StrictStr, field_validator
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from services-pulp_npm-client.models.async_operation_response import AsyncOperationResponse
|
|
24
|
+
from services-pulp_npm-client.models.npm_npm_repository import NpmNpmRepository
|
|
25
|
+
from services-pulp_npm-client.models.npm_npm_repository_response import NpmNpmRepositoryResponse
|
|
26
|
+
from services-pulp_npm-client.models.paginatednpm_npm_repository_response_list import PaginatednpmNpmRepositoryResponseList
|
|
27
|
+
from services-pulp_npm-client.models.patchednpm_npm_repository import PatchednpmNpmRepository
|
|
28
|
+
from services-pulp_npm-client.models.repository_add_remove_content import RepositoryAddRemoveContent
|
|
29
|
+
from services-pulp_npm-client.models.repository_sync_url import RepositorySyncURL
|
|
30
|
+
from services-pulp_npm-client.models.set_label import SetLabel
|
|
31
|
+
from services-pulp_npm-client.models.set_label_response import SetLabelResponse
|
|
32
|
+
from services-pulp_npm-client.models.unset_label import UnsetLabel
|
|
33
|
+
from services-pulp_npm-client.models.unset_label_response import UnsetLabelResponse
|
|
34
|
+
|
|
35
|
+
from services-pulp_npm-client.api_client import ApiClient, RequestSerialized
|
|
36
|
+
from services-pulp_npm-client.api_response import ApiResponse
|
|
37
|
+
from services-pulp_npm-client.rest import RESTResponseType
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class RepositoriesNpmApi:
|
|
41
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
42
|
+
Ref: https://openapi-generator.tech
|
|
43
|
+
|
|
44
|
+
Do not edit the class manually.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def __init__(self, api_client=None) -> None:
|
|
48
|
+
if api_client is None:
|
|
49
|
+
api_client = ApiClient.get_default()
|
|
50
|
+
self.api_client = api_client
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@validate_call
|
|
54
|
+
def create(
|
|
55
|
+
self,
|
|
56
|
+
npm_npm_repository: NpmNpmRepository,
|
|
57
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
58
|
+
pulp_domain: StrictStr = "default",
|
|
59
|
+
_request_timeout: Union[
|
|
60
|
+
None,
|
|
61
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
62
|
+
Tuple[
|
|
63
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
64
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
65
|
+
]
|
|
66
|
+
] = None,
|
|
67
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
68
|
+
_content_type: Optional[StrictStr] = None,
|
|
69
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
70
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
71
|
+
) -> NpmNpmRepositoryResponse:
|
|
72
|
+
"""Create a npm repository
|
|
73
|
+
|
|
74
|
+
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
|
75
|
+
|
|
76
|
+
:param pulp_domain: (required)
|
|
77
|
+
:type pulp_domain: str
|
|
78
|
+
:param npm_npm_repository: (required)
|
|
79
|
+
:type npm_npm_repository: NpmNpmRepository
|
|
80
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
81
|
+
:type x_task_diagnostics: List[str]
|
|
82
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
83
|
+
number provided, it will be total request
|
|
84
|
+
timeout. It can also be a pair (tuple) of
|
|
85
|
+
(connection, read) timeouts.
|
|
86
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
87
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
88
|
+
request; this effectively ignores the
|
|
89
|
+
authentication in the spec for a single request.
|
|
90
|
+
:type _request_auth: dict, optional
|
|
91
|
+
:param _content_type: force content-type for the request.
|
|
92
|
+
:type _content_type: str, Optional
|
|
93
|
+
:param _headers: set to override the headers for a single
|
|
94
|
+
request; this effectively ignores the headers
|
|
95
|
+
in the spec for a single request.
|
|
96
|
+
:type _headers: dict, optional
|
|
97
|
+
:param _host_index: set to override the host_index for a single
|
|
98
|
+
request; this effectively ignores the host_index
|
|
99
|
+
in the spec for a single request.
|
|
100
|
+
:type _host_index: int, optional
|
|
101
|
+
:return: Returns the result object.
|
|
102
|
+
""" # noqa: E501
|
|
103
|
+
|
|
104
|
+
_param = self._create_serialize(
|
|
105
|
+
pulp_domain=pulp_domain,
|
|
106
|
+
npm_npm_repository=npm_npm_repository,
|
|
107
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
108
|
+
_request_auth=_request_auth,
|
|
109
|
+
_content_type=_content_type,
|
|
110
|
+
_headers=_headers,
|
|
111
|
+
_host_index=_host_index
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
115
|
+
'201': "NpmNpmRepositoryResponse",
|
|
116
|
+
}
|
|
117
|
+
response_data = self.api_client.call_api(
|
|
118
|
+
*_param,
|
|
119
|
+
_request_timeout=_request_timeout
|
|
120
|
+
)
|
|
121
|
+
response_data.read()
|
|
122
|
+
return self.api_client.response_deserialize(
|
|
123
|
+
response_data=response_data,
|
|
124
|
+
response_types_map=_response_types_map,
|
|
125
|
+
).data
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
@validate_call
|
|
129
|
+
def create_with_http_info(
|
|
130
|
+
self,
|
|
131
|
+
npm_npm_repository: NpmNpmRepository,
|
|
132
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
133
|
+
pulp_domain: StrictStr = "default",
|
|
134
|
+
_request_timeout: Union[
|
|
135
|
+
None,
|
|
136
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
137
|
+
Tuple[
|
|
138
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
139
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
140
|
+
]
|
|
141
|
+
] = None,
|
|
142
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
143
|
+
_content_type: Optional[StrictStr] = None,
|
|
144
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
145
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
146
|
+
) -> ApiResponse[NpmNpmRepositoryResponse]:
|
|
147
|
+
"""Create a npm repository
|
|
148
|
+
|
|
149
|
+
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
|
150
|
+
|
|
151
|
+
:param pulp_domain: (required)
|
|
152
|
+
:type pulp_domain: str
|
|
153
|
+
:param npm_npm_repository: (required)
|
|
154
|
+
:type npm_npm_repository: NpmNpmRepository
|
|
155
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
156
|
+
:type x_task_diagnostics: List[str]
|
|
157
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
158
|
+
number provided, it will be total request
|
|
159
|
+
timeout. It can also be a pair (tuple) of
|
|
160
|
+
(connection, read) timeouts.
|
|
161
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
162
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
163
|
+
request; this effectively ignores the
|
|
164
|
+
authentication in the spec for a single request.
|
|
165
|
+
:type _request_auth: dict, optional
|
|
166
|
+
:param _content_type: force content-type for the request.
|
|
167
|
+
:type _content_type: str, Optional
|
|
168
|
+
:param _headers: set to override the headers for a single
|
|
169
|
+
request; this effectively ignores the headers
|
|
170
|
+
in the spec for a single request.
|
|
171
|
+
:type _headers: dict, optional
|
|
172
|
+
:param _host_index: set to override the host_index for a single
|
|
173
|
+
request; this effectively ignores the host_index
|
|
174
|
+
in the spec for a single request.
|
|
175
|
+
:type _host_index: int, optional
|
|
176
|
+
:return: Returns the result object.
|
|
177
|
+
""" # noqa: E501
|
|
178
|
+
|
|
179
|
+
_param = self._create_serialize(
|
|
180
|
+
pulp_domain=pulp_domain,
|
|
181
|
+
npm_npm_repository=npm_npm_repository,
|
|
182
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
183
|
+
_request_auth=_request_auth,
|
|
184
|
+
_content_type=_content_type,
|
|
185
|
+
_headers=_headers,
|
|
186
|
+
_host_index=_host_index
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
190
|
+
'201': "NpmNpmRepositoryResponse",
|
|
191
|
+
}
|
|
192
|
+
response_data = self.api_client.call_api(
|
|
193
|
+
*_param,
|
|
194
|
+
_request_timeout=_request_timeout
|
|
195
|
+
)
|
|
196
|
+
response_data.read()
|
|
197
|
+
return self.api_client.response_deserialize(
|
|
198
|
+
response_data=response_data,
|
|
199
|
+
response_types_map=_response_types_map,
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
@validate_call
|
|
204
|
+
def create_without_preload_content(
|
|
205
|
+
self,
|
|
206
|
+
npm_npm_repository: NpmNpmRepository,
|
|
207
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
208
|
+
pulp_domain: StrictStr = "default",
|
|
209
|
+
_request_timeout: Union[
|
|
210
|
+
None,
|
|
211
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
212
|
+
Tuple[
|
|
213
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
214
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
215
|
+
]
|
|
216
|
+
] = None,
|
|
217
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
218
|
+
_content_type: Optional[StrictStr] = None,
|
|
219
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
220
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
221
|
+
) -> RESTResponseType:
|
|
222
|
+
"""Create a npm repository
|
|
223
|
+
|
|
224
|
+
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
|
225
|
+
|
|
226
|
+
:param pulp_domain: (required)
|
|
227
|
+
:type pulp_domain: str
|
|
228
|
+
:param npm_npm_repository: (required)
|
|
229
|
+
:type npm_npm_repository: NpmNpmRepository
|
|
230
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
231
|
+
:type x_task_diagnostics: List[str]
|
|
232
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
233
|
+
number provided, it will be total request
|
|
234
|
+
timeout. It can also be a pair (tuple) of
|
|
235
|
+
(connection, read) timeouts.
|
|
236
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
237
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
238
|
+
request; this effectively ignores the
|
|
239
|
+
authentication in the spec for a single request.
|
|
240
|
+
:type _request_auth: dict, optional
|
|
241
|
+
:param _content_type: force content-type for the request.
|
|
242
|
+
:type _content_type: str, Optional
|
|
243
|
+
:param _headers: set to override the headers for a single
|
|
244
|
+
request; this effectively ignores the headers
|
|
245
|
+
in the spec for a single request.
|
|
246
|
+
:type _headers: dict, optional
|
|
247
|
+
:param _host_index: set to override the host_index for a single
|
|
248
|
+
request; this effectively ignores the host_index
|
|
249
|
+
in the spec for a single request.
|
|
250
|
+
:type _host_index: int, optional
|
|
251
|
+
:return: Returns the result object.
|
|
252
|
+
""" # noqa: E501
|
|
253
|
+
|
|
254
|
+
_param = self._create_serialize(
|
|
255
|
+
pulp_domain=pulp_domain,
|
|
256
|
+
npm_npm_repository=npm_npm_repository,
|
|
257
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
258
|
+
_request_auth=_request_auth,
|
|
259
|
+
_content_type=_content_type,
|
|
260
|
+
_headers=_headers,
|
|
261
|
+
_host_index=_host_index
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
265
|
+
'201': "NpmNpmRepositoryResponse",
|
|
266
|
+
}
|
|
267
|
+
response_data = self.api_client.call_api(
|
|
268
|
+
*_param,
|
|
269
|
+
_request_timeout=_request_timeout
|
|
270
|
+
)
|
|
271
|
+
return response_data.response
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
def _create_serialize(
|
|
275
|
+
self,
|
|
276
|
+
pulp_domain,
|
|
277
|
+
npm_npm_repository,
|
|
278
|
+
x_task_diagnostics,
|
|
279
|
+
_request_auth,
|
|
280
|
+
_content_type,
|
|
281
|
+
_headers,
|
|
282
|
+
_host_index,
|
|
283
|
+
) -> RequestSerialized:
|
|
284
|
+
|
|
285
|
+
_host = None
|
|
286
|
+
|
|
287
|
+
_collection_formats: Dict[str, str] = {
|
|
288
|
+
'X-Task-Diagnostics': 'csv',
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
_path_params: Dict[str, str] = {}
|
|
292
|
+
_query_params: List[Tuple[str, str]] = []
|
|
293
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
294
|
+
_form_params: List[Tuple[str, str]] = []
|
|
295
|
+
_files: Dict[
|
|
296
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
297
|
+
] = {}
|
|
298
|
+
_body_params: Optional[bytes] = None
|
|
299
|
+
|
|
300
|
+
# process the path parameters
|
|
301
|
+
if pulp_domain is not None:
|
|
302
|
+
_path_params['pulp_domain'] = pulp_domain
|
|
303
|
+
# process the query parameters
|
|
304
|
+
# process the header parameters
|
|
305
|
+
if x_task_diagnostics is not None:
|
|
306
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
307
|
+
# process the form parameters
|
|
308
|
+
# process the body parameter
|
|
309
|
+
if npm_npm_repository is not None:
|
|
310
|
+
_body_params = npm_npm_repository
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
# set the HTTP header `Accept`
|
|
314
|
+
if 'Accept' not in _header_params:
|
|
315
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
316
|
+
[
|
|
317
|
+
'application/json'
|
|
318
|
+
]
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
# set the HTTP header `Content-Type`
|
|
322
|
+
if _content_type:
|
|
323
|
+
_header_params['Content-Type'] = _content_type
|
|
324
|
+
else:
|
|
325
|
+
_default_content_type = (
|
|
326
|
+
self.api_client.select_header_content_type(
|
|
327
|
+
[
|
|
328
|
+
'application/json',
|
|
329
|
+
'application/x-www-form-urlencoded',
|
|
330
|
+
'multipart/form-data'
|
|
331
|
+
]
|
|
332
|
+
)
|
|
333
|
+
)
|
|
334
|
+
if _default_content_type is not None:
|
|
335
|
+
_header_params['Content-Type'] = _default_content_type
|
|
336
|
+
|
|
337
|
+
# authentication setting
|
|
338
|
+
_auth_settings: List[str] = [
|
|
339
|
+
'json_header_remote_authentication',
|
|
340
|
+
'basicAuth',
|
|
341
|
+
'cookieAuth'
|
|
342
|
+
]
|
|
343
|
+
|
|
344
|
+
return self.api_client.param_serialize(
|
|
345
|
+
method='POST',
|
|
346
|
+
resource_path='/api/pulp/{pulp_domain}/api/v3/repositories/npm/npm/',
|
|
347
|
+
path_params=_path_params,
|
|
348
|
+
query_params=_query_params,
|
|
349
|
+
header_params=_header_params,
|
|
350
|
+
body=_body_params,
|
|
351
|
+
post_params=_form_params,
|
|
352
|
+
files=_files,
|
|
353
|
+
auth_settings=_auth_settings,
|
|
354
|
+
collection_formats=_collection_formats,
|
|
355
|
+
_host=_host,
|
|
356
|
+
_request_auth=_request_auth
|
|
357
|
+
)
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
@validate_call
|
|
363
|
+
def delete(
|
|
364
|
+
self,
|
|
365
|
+
npm_npm_repository_href: StrictStr,
|
|
366
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
367
|
+
_request_timeout: Union[
|
|
368
|
+
None,
|
|
369
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
370
|
+
Tuple[
|
|
371
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
372
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
373
|
+
]
|
|
374
|
+
] = None,
|
|
375
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
376
|
+
_content_type: Optional[StrictStr] = None,
|
|
377
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
378
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
379
|
+
) -> AsyncOperationResponse:
|
|
380
|
+
"""Delete a npm repository
|
|
381
|
+
|
|
382
|
+
Trigger an asynchronous delete task
|
|
383
|
+
|
|
384
|
+
:param npm_npm_repository_href: (required)
|
|
385
|
+
:type npm_npm_repository_href: str
|
|
386
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
387
|
+
:type x_task_diagnostics: List[str]
|
|
388
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
389
|
+
number provided, it will be total request
|
|
390
|
+
timeout. It can also be a pair (tuple) of
|
|
391
|
+
(connection, read) timeouts.
|
|
392
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
393
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
394
|
+
request; this effectively ignores the
|
|
395
|
+
authentication in the spec for a single request.
|
|
396
|
+
:type _request_auth: dict, optional
|
|
397
|
+
:param _content_type: force content-type for the request.
|
|
398
|
+
:type _content_type: str, Optional
|
|
399
|
+
:param _headers: set to override the headers for a single
|
|
400
|
+
request; this effectively ignores the headers
|
|
401
|
+
in the spec for a single request.
|
|
402
|
+
:type _headers: dict, optional
|
|
403
|
+
:param _host_index: set to override the host_index for a single
|
|
404
|
+
request; this effectively ignores the host_index
|
|
405
|
+
in the spec for a single request.
|
|
406
|
+
:type _host_index: int, optional
|
|
407
|
+
:return: Returns the result object.
|
|
408
|
+
""" # noqa: E501
|
|
409
|
+
|
|
410
|
+
_param = self._delete_serialize(
|
|
411
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
412
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
413
|
+
_request_auth=_request_auth,
|
|
414
|
+
_content_type=_content_type,
|
|
415
|
+
_headers=_headers,
|
|
416
|
+
_host_index=_host_index
|
|
417
|
+
)
|
|
418
|
+
|
|
419
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
420
|
+
'202': "AsyncOperationResponse",
|
|
421
|
+
}
|
|
422
|
+
response_data = self.api_client.call_api(
|
|
423
|
+
*_param,
|
|
424
|
+
_request_timeout=_request_timeout
|
|
425
|
+
)
|
|
426
|
+
response_data.read()
|
|
427
|
+
return self.api_client.response_deserialize(
|
|
428
|
+
response_data=response_data,
|
|
429
|
+
response_types_map=_response_types_map,
|
|
430
|
+
).data
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
@validate_call
|
|
434
|
+
def delete_with_http_info(
|
|
435
|
+
self,
|
|
436
|
+
npm_npm_repository_href: StrictStr,
|
|
437
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
438
|
+
_request_timeout: Union[
|
|
439
|
+
None,
|
|
440
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
441
|
+
Tuple[
|
|
442
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
443
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
444
|
+
]
|
|
445
|
+
] = None,
|
|
446
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
447
|
+
_content_type: Optional[StrictStr] = None,
|
|
448
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
449
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
450
|
+
) -> ApiResponse[AsyncOperationResponse]:
|
|
451
|
+
"""Delete a npm repository
|
|
452
|
+
|
|
453
|
+
Trigger an asynchronous delete task
|
|
454
|
+
|
|
455
|
+
:param npm_npm_repository_href: (required)
|
|
456
|
+
:type npm_npm_repository_href: str
|
|
457
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
458
|
+
:type x_task_diagnostics: List[str]
|
|
459
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
460
|
+
number provided, it will be total request
|
|
461
|
+
timeout. It can also be a pair (tuple) of
|
|
462
|
+
(connection, read) timeouts.
|
|
463
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
464
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
465
|
+
request; this effectively ignores the
|
|
466
|
+
authentication in the spec for a single request.
|
|
467
|
+
:type _request_auth: dict, optional
|
|
468
|
+
:param _content_type: force content-type for the request.
|
|
469
|
+
:type _content_type: str, Optional
|
|
470
|
+
:param _headers: set to override the headers for a single
|
|
471
|
+
request; this effectively ignores the headers
|
|
472
|
+
in the spec for a single request.
|
|
473
|
+
:type _headers: dict, optional
|
|
474
|
+
:param _host_index: set to override the host_index for a single
|
|
475
|
+
request; this effectively ignores the host_index
|
|
476
|
+
in the spec for a single request.
|
|
477
|
+
:type _host_index: int, optional
|
|
478
|
+
:return: Returns the result object.
|
|
479
|
+
""" # noqa: E501
|
|
480
|
+
|
|
481
|
+
_param = self._delete_serialize(
|
|
482
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
483
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
484
|
+
_request_auth=_request_auth,
|
|
485
|
+
_content_type=_content_type,
|
|
486
|
+
_headers=_headers,
|
|
487
|
+
_host_index=_host_index
|
|
488
|
+
)
|
|
489
|
+
|
|
490
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
491
|
+
'202': "AsyncOperationResponse",
|
|
492
|
+
}
|
|
493
|
+
response_data = self.api_client.call_api(
|
|
494
|
+
*_param,
|
|
495
|
+
_request_timeout=_request_timeout
|
|
496
|
+
)
|
|
497
|
+
response_data.read()
|
|
498
|
+
return self.api_client.response_deserialize(
|
|
499
|
+
response_data=response_data,
|
|
500
|
+
response_types_map=_response_types_map,
|
|
501
|
+
)
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
@validate_call
|
|
505
|
+
def delete_without_preload_content(
|
|
506
|
+
self,
|
|
507
|
+
npm_npm_repository_href: StrictStr,
|
|
508
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
509
|
+
_request_timeout: Union[
|
|
510
|
+
None,
|
|
511
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
512
|
+
Tuple[
|
|
513
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
514
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
515
|
+
]
|
|
516
|
+
] = None,
|
|
517
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
518
|
+
_content_type: Optional[StrictStr] = None,
|
|
519
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
520
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
521
|
+
) -> RESTResponseType:
|
|
522
|
+
"""Delete a npm repository
|
|
523
|
+
|
|
524
|
+
Trigger an asynchronous delete task
|
|
525
|
+
|
|
526
|
+
:param npm_npm_repository_href: (required)
|
|
527
|
+
:type npm_npm_repository_href: str
|
|
528
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
529
|
+
:type x_task_diagnostics: List[str]
|
|
530
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
531
|
+
number provided, it will be total request
|
|
532
|
+
timeout. It can also be a pair (tuple) of
|
|
533
|
+
(connection, read) timeouts.
|
|
534
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
535
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
536
|
+
request; this effectively ignores the
|
|
537
|
+
authentication in the spec for a single request.
|
|
538
|
+
:type _request_auth: dict, optional
|
|
539
|
+
:param _content_type: force content-type for the request.
|
|
540
|
+
:type _content_type: str, Optional
|
|
541
|
+
:param _headers: set to override the headers for a single
|
|
542
|
+
request; this effectively ignores the headers
|
|
543
|
+
in the spec for a single request.
|
|
544
|
+
:type _headers: dict, optional
|
|
545
|
+
:param _host_index: set to override the host_index for a single
|
|
546
|
+
request; this effectively ignores the host_index
|
|
547
|
+
in the spec for a single request.
|
|
548
|
+
:type _host_index: int, optional
|
|
549
|
+
:return: Returns the result object.
|
|
550
|
+
""" # noqa: E501
|
|
551
|
+
|
|
552
|
+
_param = self._delete_serialize(
|
|
553
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
554
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
555
|
+
_request_auth=_request_auth,
|
|
556
|
+
_content_type=_content_type,
|
|
557
|
+
_headers=_headers,
|
|
558
|
+
_host_index=_host_index
|
|
559
|
+
)
|
|
560
|
+
|
|
561
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
562
|
+
'202': "AsyncOperationResponse",
|
|
563
|
+
}
|
|
564
|
+
response_data = self.api_client.call_api(
|
|
565
|
+
*_param,
|
|
566
|
+
_request_timeout=_request_timeout
|
|
567
|
+
)
|
|
568
|
+
return response_data.response
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
def _delete_serialize(
|
|
572
|
+
self,
|
|
573
|
+
npm_npm_repository_href,
|
|
574
|
+
x_task_diagnostics,
|
|
575
|
+
_request_auth,
|
|
576
|
+
_content_type,
|
|
577
|
+
_headers,
|
|
578
|
+
_host_index,
|
|
579
|
+
) -> RequestSerialized:
|
|
580
|
+
|
|
581
|
+
_host = None
|
|
582
|
+
|
|
583
|
+
_collection_formats: Dict[str, str] = {
|
|
584
|
+
'X-Task-Diagnostics': 'csv',
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
_path_params: Dict[str, str] = {}
|
|
588
|
+
_query_params: List[Tuple[str, str]] = []
|
|
589
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
590
|
+
_form_params: List[Tuple[str, str]] = []
|
|
591
|
+
_files: Dict[
|
|
592
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
593
|
+
] = {}
|
|
594
|
+
_body_params: Optional[bytes] = None
|
|
595
|
+
|
|
596
|
+
# process the path parameters
|
|
597
|
+
if npm_npm_repository_href is not None:
|
|
598
|
+
_path_params['npm_npm_repository_href'] = npm_npm_repository_href
|
|
599
|
+
# process the query parameters
|
|
600
|
+
# process the header parameters
|
|
601
|
+
if x_task_diagnostics is not None:
|
|
602
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
603
|
+
# process the form parameters
|
|
604
|
+
# process the body parameter
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
# set the HTTP header `Accept`
|
|
608
|
+
if 'Accept' not in _header_params:
|
|
609
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
610
|
+
[
|
|
611
|
+
'application/json'
|
|
612
|
+
]
|
|
613
|
+
)
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
# authentication setting
|
|
617
|
+
_auth_settings: List[str] = [
|
|
618
|
+
'json_header_remote_authentication',
|
|
619
|
+
'basicAuth',
|
|
620
|
+
'cookieAuth'
|
|
621
|
+
]
|
|
622
|
+
|
|
623
|
+
return self.api_client.param_serialize(
|
|
624
|
+
method='DELETE',
|
|
625
|
+
resource_path='{npm_npm_repository_href}',
|
|
626
|
+
path_params=_path_params,
|
|
627
|
+
query_params=_query_params,
|
|
628
|
+
header_params=_header_params,
|
|
629
|
+
body=_body_params,
|
|
630
|
+
post_params=_form_params,
|
|
631
|
+
files=_files,
|
|
632
|
+
auth_settings=_auth_settings,
|
|
633
|
+
collection_formats=_collection_formats,
|
|
634
|
+
_host=_host,
|
|
635
|
+
_request_auth=_request_auth
|
|
636
|
+
)
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
@validate_call
|
|
642
|
+
def list(
|
|
643
|
+
self,
|
|
644
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
645
|
+
latest_with_content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
|
|
646
|
+
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
647
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
648
|
+
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
649
|
+
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
650
|
+
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
651
|
+
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
652
|
+
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
653
|
+
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
654
|
+
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
655
|
+
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
656
|
+
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
657
|
+
ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
658
|
+
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
659
|
+
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
660
|
+
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
661
|
+
pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
|
|
662
|
+
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
663
|
+
remote: Annotated[Optional[StrictStr], Field(description="Foreign Key referenced by HREF")] = None,
|
|
664
|
+
retain_repo_versions: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions matches value")] = None,
|
|
665
|
+
retain_repo_versions__gt: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is greater than value")] = None,
|
|
666
|
+
retain_repo_versions__gte: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is greater than or equal to value")] = None,
|
|
667
|
+
retain_repo_versions__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where retain_repo_versions has a null value")] = None,
|
|
668
|
+
retain_repo_versions__lt: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is less than value")] = None,
|
|
669
|
+
retain_repo_versions__lte: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is less than or equal to value")] = None,
|
|
670
|
+
retain_repo_versions__ne: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions not equal to value")] = None,
|
|
671
|
+
retain_repo_versions__range: Annotated[Optional[List[StrictInt]], Field(description="Filter results where retain_repo_versions is between two comma separated values")] = None,
|
|
672
|
+
with_content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
|
|
673
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
674
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
675
|
+
pulp_domain: StrictStr = "default",
|
|
676
|
+
_request_timeout: Union[
|
|
677
|
+
None,
|
|
678
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
679
|
+
Tuple[
|
|
680
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
681
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
682
|
+
]
|
|
683
|
+
] = None,
|
|
684
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
685
|
+
_content_type: Optional[StrictStr] = None,
|
|
686
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
687
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
688
|
+
) -> PaginatednpmNpmRepositoryResponseList:
|
|
689
|
+
"""List npm repositorys
|
|
690
|
+
|
|
691
|
+
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
|
692
|
+
|
|
693
|
+
:param pulp_domain: (required)
|
|
694
|
+
:type pulp_domain: str
|
|
695
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
696
|
+
:type x_task_diagnostics: List[str]
|
|
697
|
+
:param latest_with_content: Content Unit referenced by HREF/PRN
|
|
698
|
+
:type latest_with_content: str
|
|
699
|
+
:param limit: Number of results to return per page.
|
|
700
|
+
:type limit: int
|
|
701
|
+
:param name: Filter results where name matches value
|
|
702
|
+
:type name: str
|
|
703
|
+
:param name__contains: Filter results where name contains value
|
|
704
|
+
:type name__contains: str
|
|
705
|
+
:param name__icontains: Filter results where name contains value
|
|
706
|
+
:type name__icontains: str
|
|
707
|
+
:param name__iexact: Filter results where name matches value
|
|
708
|
+
:type name__iexact: str
|
|
709
|
+
:param name__in: Filter results where name is in a comma-separated list of values
|
|
710
|
+
:type name__in: List[str]
|
|
711
|
+
:param name__iregex: Filter results where name matches regex value
|
|
712
|
+
:type name__iregex: str
|
|
713
|
+
:param name__istartswith: Filter results where name starts with value
|
|
714
|
+
:type name__istartswith: str
|
|
715
|
+
:param name__regex: Filter results where name matches regex value
|
|
716
|
+
:type name__regex: str
|
|
717
|
+
:param name__startswith: Filter results where name starts with value
|
|
718
|
+
:type name__startswith: str
|
|
719
|
+
:param offset: The initial index from which to return the results.
|
|
720
|
+
:type offset: int
|
|
721
|
+
: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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
722
|
+
:type ordering: List[str]
|
|
723
|
+
:param prn__in: Multiple values may be separated by commas.
|
|
724
|
+
:type prn__in: List[str]
|
|
725
|
+
:param pulp_href__in: Multiple values may be separated by commas.
|
|
726
|
+
:type pulp_href__in: List[str]
|
|
727
|
+
:param pulp_id__in: Multiple values may be separated by commas.
|
|
728
|
+
:type pulp_id__in: List[str]
|
|
729
|
+
:param pulp_label_select: Filter labels by search string
|
|
730
|
+
:type pulp_label_select: str
|
|
731
|
+
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
732
|
+
:type q: str
|
|
733
|
+
:param remote: Foreign Key referenced by HREF
|
|
734
|
+
:type remote: str
|
|
735
|
+
:param retain_repo_versions: Filter results where retain_repo_versions matches value
|
|
736
|
+
:type retain_repo_versions: int
|
|
737
|
+
:param retain_repo_versions__gt: Filter results where retain_repo_versions is greater than value
|
|
738
|
+
:type retain_repo_versions__gt: int
|
|
739
|
+
:param retain_repo_versions__gte: Filter results where retain_repo_versions is greater than or equal to value
|
|
740
|
+
:type retain_repo_versions__gte: int
|
|
741
|
+
:param retain_repo_versions__isnull: Filter results where retain_repo_versions has a null value
|
|
742
|
+
:type retain_repo_versions__isnull: bool
|
|
743
|
+
:param retain_repo_versions__lt: Filter results where retain_repo_versions is less than value
|
|
744
|
+
:type retain_repo_versions__lt: int
|
|
745
|
+
:param retain_repo_versions__lte: Filter results where retain_repo_versions is less than or equal to value
|
|
746
|
+
:type retain_repo_versions__lte: int
|
|
747
|
+
:param retain_repo_versions__ne: Filter results where retain_repo_versions not equal to value
|
|
748
|
+
:type retain_repo_versions__ne: int
|
|
749
|
+
:param retain_repo_versions__range: Filter results where retain_repo_versions is between two comma separated values
|
|
750
|
+
:type retain_repo_versions__range: List[int]
|
|
751
|
+
:param with_content: Content Unit referenced by HREF/PRN
|
|
752
|
+
:type with_content: str
|
|
753
|
+
:param fields: A list of fields to include in the response.
|
|
754
|
+
:type fields: List[str]
|
|
755
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
756
|
+
:type exclude_fields: List[str]
|
|
757
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
758
|
+
number provided, it will be total request
|
|
759
|
+
timeout. It can also be a pair (tuple) of
|
|
760
|
+
(connection, read) timeouts.
|
|
761
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
762
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
763
|
+
request; this effectively ignores the
|
|
764
|
+
authentication in the spec for a single request.
|
|
765
|
+
:type _request_auth: dict, optional
|
|
766
|
+
:param _content_type: force content-type for the request.
|
|
767
|
+
:type _content_type: str, Optional
|
|
768
|
+
:param _headers: set to override the headers for a single
|
|
769
|
+
request; this effectively ignores the headers
|
|
770
|
+
in the spec for a single request.
|
|
771
|
+
:type _headers: dict, optional
|
|
772
|
+
:param _host_index: set to override the host_index for a single
|
|
773
|
+
request; this effectively ignores the host_index
|
|
774
|
+
in the spec for a single request.
|
|
775
|
+
:type _host_index: int, optional
|
|
776
|
+
:return: Returns the result object.
|
|
777
|
+
""" # noqa: E501
|
|
778
|
+
|
|
779
|
+
_param = self._list_serialize(
|
|
780
|
+
pulp_domain=pulp_domain,
|
|
781
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
782
|
+
latest_with_content=latest_with_content,
|
|
783
|
+
limit=limit,
|
|
784
|
+
name=name,
|
|
785
|
+
name__contains=name__contains,
|
|
786
|
+
name__icontains=name__icontains,
|
|
787
|
+
name__iexact=name__iexact,
|
|
788
|
+
name__in=name__in,
|
|
789
|
+
name__iregex=name__iregex,
|
|
790
|
+
name__istartswith=name__istartswith,
|
|
791
|
+
name__regex=name__regex,
|
|
792
|
+
name__startswith=name__startswith,
|
|
793
|
+
offset=offset,
|
|
794
|
+
ordering=ordering,
|
|
795
|
+
prn__in=prn__in,
|
|
796
|
+
pulp_href__in=pulp_href__in,
|
|
797
|
+
pulp_id__in=pulp_id__in,
|
|
798
|
+
pulp_label_select=pulp_label_select,
|
|
799
|
+
q=q,
|
|
800
|
+
remote=remote,
|
|
801
|
+
retain_repo_versions=retain_repo_versions,
|
|
802
|
+
retain_repo_versions__gt=retain_repo_versions__gt,
|
|
803
|
+
retain_repo_versions__gte=retain_repo_versions__gte,
|
|
804
|
+
retain_repo_versions__isnull=retain_repo_versions__isnull,
|
|
805
|
+
retain_repo_versions__lt=retain_repo_versions__lt,
|
|
806
|
+
retain_repo_versions__lte=retain_repo_versions__lte,
|
|
807
|
+
retain_repo_versions__ne=retain_repo_versions__ne,
|
|
808
|
+
retain_repo_versions__range=retain_repo_versions__range,
|
|
809
|
+
with_content=with_content,
|
|
810
|
+
fields=fields,
|
|
811
|
+
exclude_fields=exclude_fields,
|
|
812
|
+
_request_auth=_request_auth,
|
|
813
|
+
_content_type=_content_type,
|
|
814
|
+
_headers=_headers,
|
|
815
|
+
_host_index=_host_index
|
|
816
|
+
)
|
|
817
|
+
|
|
818
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
819
|
+
'200': "PaginatednpmNpmRepositoryResponseList",
|
|
820
|
+
}
|
|
821
|
+
response_data = self.api_client.call_api(
|
|
822
|
+
*_param,
|
|
823
|
+
_request_timeout=_request_timeout
|
|
824
|
+
)
|
|
825
|
+
response_data.read()
|
|
826
|
+
return self.api_client.response_deserialize(
|
|
827
|
+
response_data=response_data,
|
|
828
|
+
response_types_map=_response_types_map,
|
|
829
|
+
).data
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
@validate_call
|
|
833
|
+
def list_with_http_info(
|
|
834
|
+
self,
|
|
835
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
836
|
+
latest_with_content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
|
|
837
|
+
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
838
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
839
|
+
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
840
|
+
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
841
|
+
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
842
|
+
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
843
|
+
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
844
|
+
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
845
|
+
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
846
|
+
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
847
|
+
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
848
|
+
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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
849
|
+
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
850
|
+
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
851
|
+
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
852
|
+
pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
|
|
853
|
+
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
854
|
+
remote: Annotated[Optional[StrictStr], Field(description="Foreign Key referenced by HREF")] = None,
|
|
855
|
+
retain_repo_versions: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions matches value")] = None,
|
|
856
|
+
retain_repo_versions__gt: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is greater than value")] = None,
|
|
857
|
+
retain_repo_versions__gte: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is greater than or equal to value")] = None,
|
|
858
|
+
retain_repo_versions__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where retain_repo_versions has a null value")] = None,
|
|
859
|
+
retain_repo_versions__lt: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is less than value")] = None,
|
|
860
|
+
retain_repo_versions__lte: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is less than or equal to value")] = None,
|
|
861
|
+
retain_repo_versions__ne: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions not equal to value")] = None,
|
|
862
|
+
retain_repo_versions__range: Annotated[Optional[List[StrictInt]], Field(description="Filter results where retain_repo_versions is between two comma separated values")] = None,
|
|
863
|
+
with_content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
|
|
864
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
865
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
866
|
+
pulp_domain: StrictStr = "default",
|
|
867
|
+
_request_timeout: Union[
|
|
868
|
+
None,
|
|
869
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
870
|
+
Tuple[
|
|
871
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
872
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
873
|
+
]
|
|
874
|
+
] = None,
|
|
875
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
876
|
+
_content_type: Optional[StrictStr] = None,
|
|
877
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
878
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
879
|
+
) -> ApiResponse[PaginatednpmNpmRepositoryResponseList]:
|
|
880
|
+
"""List npm repositorys
|
|
881
|
+
|
|
882
|
+
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
|
883
|
+
|
|
884
|
+
:param pulp_domain: (required)
|
|
885
|
+
:type pulp_domain: str
|
|
886
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
887
|
+
:type x_task_diagnostics: List[str]
|
|
888
|
+
:param latest_with_content: Content Unit referenced by HREF/PRN
|
|
889
|
+
:type latest_with_content: str
|
|
890
|
+
:param limit: Number of results to return per page.
|
|
891
|
+
:type limit: int
|
|
892
|
+
:param name: Filter results where name matches value
|
|
893
|
+
:type name: str
|
|
894
|
+
:param name__contains: Filter results where name contains value
|
|
895
|
+
:type name__contains: str
|
|
896
|
+
:param name__icontains: Filter results where name contains value
|
|
897
|
+
:type name__icontains: str
|
|
898
|
+
:param name__iexact: Filter results where name matches value
|
|
899
|
+
:type name__iexact: str
|
|
900
|
+
:param name__in: Filter results where name is in a comma-separated list of values
|
|
901
|
+
:type name__in: List[str]
|
|
902
|
+
:param name__iregex: Filter results where name matches regex value
|
|
903
|
+
:type name__iregex: str
|
|
904
|
+
:param name__istartswith: Filter results where name starts with value
|
|
905
|
+
:type name__istartswith: str
|
|
906
|
+
:param name__regex: Filter results where name matches regex value
|
|
907
|
+
:type name__regex: str
|
|
908
|
+
:param name__startswith: Filter results where name starts with value
|
|
909
|
+
:type name__startswith: str
|
|
910
|
+
:param offset: The initial index from which to return the results.
|
|
911
|
+
:type offset: int
|
|
912
|
+
: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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
913
|
+
:type ordering: List[str]
|
|
914
|
+
:param prn__in: Multiple values may be separated by commas.
|
|
915
|
+
:type prn__in: List[str]
|
|
916
|
+
:param pulp_href__in: Multiple values may be separated by commas.
|
|
917
|
+
:type pulp_href__in: List[str]
|
|
918
|
+
:param pulp_id__in: Multiple values may be separated by commas.
|
|
919
|
+
:type pulp_id__in: List[str]
|
|
920
|
+
:param pulp_label_select: Filter labels by search string
|
|
921
|
+
:type pulp_label_select: str
|
|
922
|
+
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
923
|
+
:type q: str
|
|
924
|
+
:param remote: Foreign Key referenced by HREF
|
|
925
|
+
:type remote: str
|
|
926
|
+
:param retain_repo_versions: Filter results where retain_repo_versions matches value
|
|
927
|
+
:type retain_repo_versions: int
|
|
928
|
+
:param retain_repo_versions__gt: Filter results where retain_repo_versions is greater than value
|
|
929
|
+
:type retain_repo_versions__gt: int
|
|
930
|
+
:param retain_repo_versions__gte: Filter results where retain_repo_versions is greater than or equal to value
|
|
931
|
+
:type retain_repo_versions__gte: int
|
|
932
|
+
:param retain_repo_versions__isnull: Filter results where retain_repo_versions has a null value
|
|
933
|
+
:type retain_repo_versions__isnull: bool
|
|
934
|
+
:param retain_repo_versions__lt: Filter results where retain_repo_versions is less than value
|
|
935
|
+
:type retain_repo_versions__lt: int
|
|
936
|
+
:param retain_repo_versions__lte: Filter results where retain_repo_versions is less than or equal to value
|
|
937
|
+
:type retain_repo_versions__lte: int
|
|
938
|
+
:param retain_repo_versions__ne: Filter results where retain_repo_versions not equal to value
|
|
939
|
+
:type retain_repo_versions__ne: int
|
|
940
|
+
:param retain_repo_versions__range: Filter results where retain_repo_versions is between two comma separated values
|
|
941
|
+
:type retain_repo_versions__range: List[int]
|
|
942
|
+
:param with_content: Content Unit referenced by HREF/PRN
|
|
943
|
+
:type with_content: str
|
|
944
|
+
:param fields: A list of fields to include in the response.
|
|
945
|
+
:type fields: List[str]
|
|
946
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
947
|
+
:type exclude_fields: List[str]
|
|
948
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
949
|
+
number provided, it will be total request
|
|
950
|
+
timeout. It can also be a pair (tuple) of
|
|
951
|
+
(connection, read) timeouts.
|
|
952
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
953
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
954
|
+
request; this effectively ignores the
|
|
955
|
+
authentication in the spec for a single request.
|
|
956
|
+
:type _request_auth: dict, optional
|
|
957
|
+
:param _content_type: force content-type for the request.
|
|
958
|
+
:type _content_type: str, Optional
|
|
959
|
+
:param _headers: set to override the headers for a single
|
|
960
|
+
request; this effectively ignores the headers
|
|
961
|
+
in the spec for a single request.
|
|
962
|
+
:type _headers: dict, optional
|
|
963
|
+
:param _host_index: set to override the host_index for a single
|
|
964
|
+
request; this effectively ignores the host_index
|
|
965
|
+
in the spec for a single request.
|
|
966
|
+
:type _host_index: int, optional
|
|
967
|
+
:return: Returns the result object.
|
|
968
|
+
""" # noqa: E501
|
|
969
|
+
|
|
970
|
+
_param = self._list_serialize(
|
|
971
|
+
pulp_domain=pulp_domain,
|
|
972
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
973
|
+
latest_with_content=latest_with_content,
|
|
974
|
+
limit=limit,
|
|
975
|
+
name=name,
|
|
976
|
+
name__contains=name__contains,
|
|
977
|
+
name__icontains=name__icontains,
|
|
978
|
+
name__iexact=name__iexact,
|
|
979
|
+
name__in=name__in,
|
|
980
|
+
name__iregex=name__iregex,
|
|
981
|
+
name__istartswith=name__istartswith,
|
|
982
|
+
name__regex=name__regex,
|
|
983
|
+
name__startswith=name__startswith,
|
|
984
|
+
offset=offset,
|
|
985
|
+
ordering=ordering,
|
|
986
|
+
prn__in=prn__in,
|
|
987
|
+
pulp_href__in=pulp_href__in,
|
|
988
|
+
pulp_id__in=pulp_id__in,
|
|
989
|
+
pulp_label_select=pulp_label_select,
|
|
990
|
+
q=q,
|
|
991
|
+
remote=remote,
|
|
992
|
+
retain_repo_versions=retain_repo_versions,
|
|
993
|
+
retain_repo_versions__gt=retain_repo_versions__gt,
|
|
994
|
+
retain_repo_versions__gte=retain_repo_versions__gte,
|
|
995
|
+
retain_repo_versions__isnull=retain_repo_versions__isnull,
|
|
996
|
+
retain_repo_versions__lt=retain_repo_versions__lt,
|
|
997
|
+
retain_repo_versions__lte=retain_repo_versions__lte,
|
|
998
|
+
retain_repo_versions__ne=retain_repo_versions__ne,
|
|
999
|
+
retain_repo_versions__range=retain_repo_versions__range,
|
|
1000
|
+
with_content=with_content,
|
|
1001
|
+
fields=fields,
|
|
1002
|
+
exclude_fields=exclude_fields,
|
|
1003
|
+
_request_auth=_request_auth,
|
|
1004
|
+
_content_type=_content_type,
|
|
1005
|
+
_headers=_headers,
|
|
1006
|
+
_host_index=_host_index
|
|
1007
|
+
)
|
|
1008
|
+
|
|
1009
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1010
|
+
'200': "PaginatednpmNpmRepositoryResponseList",
|
|
1011
|
+
}
|
|
1012
|
+
response_data = self.api_client.call_api(
|
|
1013
|
+
*_param,
|
|
1014
|
+
_request_timeout=_request_timeout
|
|
1015
|
+
)
|
|
1016
|
+
response_data.read()
|
|
1017
|
+
return self.api_client.response_deserialize(
|
|
1018
|
+
response_data=response_data,
|
|
1019
|
+
response_types_map=_response_types_map,
|
|
1020
|
+
)
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
@validate_call
|
|
1024
|
+
def list_without_preload_content(
|
|
1025
|
+
self,
|
|
1026
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1027
|
+
latest_with_content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
|
|
1028
|
+
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
1029
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1030
|
+
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1031
|
+
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1032
|
+
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1033
|
+
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
1034
|
+
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1035
|
+
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1036
|
+
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1037
|
+
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1038
|
+
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
1039
|
+
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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
1040
|
+
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1041
|
+
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1042
|
+
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1043
|
+
pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
|
|
1044
|
+
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
1045
|
+
remote: Annotated[Optional[StrictStr], Field(description="Foreign Key referenced by HREF")] = None,
|
|
1046
|
+
retain_repo_versions: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions matches value")] = None,
|
|
1047
|
+
retain_repo_versions__gt: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is greater than value")] = None,
|
|
1048
|
+
retain_repo_versions__gte: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is greater than or equal to value")] = None,
|
|
1049
|
+
retain_repo_versions__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where retain_repo_versions has a null value")] = None,
|
|
1050
|
+
retain_repo_versions__lt: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is less than value")] = None,
|
|
1051
|
+
retain_repo_versions__lte: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is less than or equal to value")] = None,
|
|
1052
|
+
retain_repo_versions__ne: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions not equal to value")] = None,
|
|
1053
|
+
retain_repo_versions__range: Annotated[Optional[List[StrictInt]], Field(description="Filter results where retain_repo_versions is between two comma separated values")] = None,
|
|
1054
|
+
with_content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
|
|
1055
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1056
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1057
|
+
pulp_domain: StrictStr = "default",
|
|
1058
|
+
_request_timeout: Union[
|
|
1059
|
+
None,
|
|
1060
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1061
|
+
Tuple[
|
|
1062
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1063
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1064
|
+
]
|
|
1065
|
+
] = None,
|
|
1066
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1067
|
+
_content_type: Optional[StrictStr] = None,
|
|
1068
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1069
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1070
|
+
) -> RESTResponseType:
|
|
1071
|
+
"""List npm repositorys
|
|
1072
|
+
|
|
1073
|
+
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
|
1074
|
+
|
|
1075
|
+
:param pulp_domain: (required)
|
|
1076
|
+
:type pulp_domain: str
|
|
1077
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1078
|
+
:type x_task_diagnostics: List[str]
|
|
1079
|
+
:param latest_with_content: Content Unit referenced by HREF/PRN
|
|
1080
|
+
:type latest_with_content: str
|
|
1081
|
+
:param limit: Number of results to return per page.
|
|
1082
|
+
:type limit: int
|
|
1083
|
+
:param name: Filter results where name matches value
|
|
1084
|
+
:type name: str
|
|
1085
|
+
:param name__contains: Filter results where name contains value
|
|
1086
|
+
:type name__contains: str
|
|
1087
|
+
:param name__icontains: Filter results where name contains value
|
|
1088
|
+
:type name__icontains: str
|
|
1089
|
+
:param name__iexact: Filter results where name matches value
|
|
1090
|
+
:type name__iexact: str
|
|
1091
|
+
:param name__in: Filter results where name is in a comma-separated list of values
|
|
1092
|
+
:type name__in: List[str]
|
|
1093
|
+
:param name__iregex: Filter results where name matches regex value
|
|
1094
|
+
:type name__iregex: str
|
|
1095
|
+
:param name__istartswith: Filter results where name starts with value
|
|
1096
|
+
:type name__istartswith: str
|
|
1097
|
+
:param name__regex: Filter results where name matches regex value
|
|
1098
|
+
:type name__regex: str
|
|
1099
|
+
:param name__startswith: Filter results where name starts with value
|
|
1100
|
+
:type name__startswith: str
|
|
1101
|
+
:param offset: The initial index from which to return the results.
|
|
1102
|
+
:type offset: int
|
|
1103
|
+
: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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
1104
|
+
:type ordering: List[str]
|
|
1105
|
+
:param prn__in: Multiple values may be separated by commas.
|
|
1106
|
+
:type prn__in: List[str]
|
|
1107
|
+
:param pulp_href__in: Multiple values may be separated by commas.
|
|
1108
|
+
:type pulp_href__in: List[str]
|
|
1109
|
+
:param pulp_id__in: Multiple values may be separated by commas.
|
|
1110
|
+
:type pulp_id__in: List[str]
|
|
1111
|
+
:param pulp_label_select: Filter labels by search string
|
|
1112
|
+
:type pulp_label_select: str
|
|
1113
|
+
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
1114
|
+
:type q: str
|
|
1115
|
+
:param remote: Foreign Key referenced by HREF
|
|
1116
|
+
:type remote: str
|
|
1117
|
+
:param retain_repo_versions: Filter results where retain_repo_versions matches value
|
|
1118
|
+
:type retain_repo_versions: int
|
|
1119
|
+
:param retain_repo_versions__gt: Filter results where retain_repo_versions is greater than value
|
|
1120
|
+
:type retain_repo_versions__gt: int
|
|
1121
|
+
:param retain_repo_versions__gte: Filter results where retain_repo_versions is greater than or equal to value
|
|
1122
|
+
:type retain_repo_versions__gte: int
|
|
1123
|
+
:param retain_repo_versions__isnull: Filter results where retain_repo_versions has a null value
|
|
1124
|
+
:type retain_repo_versions__isnull: bool
|
|
1125
|
+
:param retain_repo_versions__lt: Filter results where retain_repo_versions is less than value
|
|
1126
|
+
:type retain_repo_versions__lt: int
|
|
1127
|
+
:param retain_repo_versions__lte: Filter results where retain_repo_versions is less than or equal to value
|
|
1128
|
+
:type retain_repo_versions__lte: int
|
|
1129
|
+
:param retain_repo_versions__ne: Filter results where retain_repo_versions not equal to value
|
|
1130
|
+
:type retain_repo_versions__ne: int
|
|
1131
|
+
:param retain_repo_versions__range: Filter results where retain_repo_versions is between two comma separated values
|
|
1132
|
+
:type retain_repo_versions__range: List[int]
|
|
1133
|
+
:param with_content: Content Unit referenced by HREF/PRN
|
|
1134
|
+
:type with_content: str
|
|
1135
|
+
:param fields: A list of fields to include in the response.
|
|
1136
|
+
:type fields: List[str]
|
|
1137
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1138
|
+
:type exclude_fields: List[str]
|
|
1139
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1140
|
+
number provided, it will be total request
|
|
1141
|
+
timeout. It can also be a pair (tuple) of
|
|
1142
|
+
(connection, read) timeouts.
|
|
1143
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1144
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1145
|
+
request; this effectively ignores the
|
|
1146
|
+
authentication in the spec for a single request.
|
|
1147
|
+
:type _request_auth: dict, optional
|
|
1148
|
+
:param _content_type: force content-type for the request.
|
|
1149
|
+
:type _content_type: str, Optional
|
|
1150
|
+
:param _headers: set to override the headers for a single
|
|
1151
|
+
request; this effectively ignores the headers
|
|
1152
|
+
in the spec for a single request.
|
|
1153
|
+
:type _headers: dict, optional
|
|
1154
|
+
:param _host_index: set to override the host_index for a single
|
|
1155
|
+
request; this effectively ignores the host_index
|
|
1156
|
+
in the spec for a single request.
|
|
1157
|
+
:type _host_index: int, optional
|
|
1158
|
+
:return: Returns the result object.
|
|
1159
|
+
""" # noqa: E501
|
|
1160
|
+
|
|
1161
|
+
_param = self._list_serialize(
|
|
1162
|
+
pulp_domain=pulp_domain,
|
|
1163
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1164
|
+
latest_with_content=latest_with_content,
|
|
1165
|
+
limit=limit,
|
|
1166
|
+
name=name,
|
|
1167
|
+
name__contains=name__contains,
|
|
1168
|
+
name__icontains=name__icontains,
|
|
1169
|
+
name__iexact=name__iexact,
|
|
1170
|
+
name__in=name__in,
|
|
1171
|
+
name__iregex=name__iregex,
|
|
1172
|
+
name__istartswith=name__istartswith,
|
|
1173
|
+
name__regex=name__regex,
|
|
1174
|
+
name__startswith=name__startswith,
|
|
1175
|
+
offset=offset,
|
|
1176
|
+
ordering=ordering,
|
|
1177
|
+
prn__in=prn__in,
|
|
1178
|
+
pulp_href__in=pulp_href__in,
|
|
1179
|
+
pulp_id__in=pulp_id__in,
|
|
1180
|
+
pulp_label_select=pulp_label_select,
|
|
1181
|
+
q=q,
|
|
1182
|
+
remote=remote,
|
|
1183
|
+
retain_repo_versions=retain_repo_versions,
|
|
1184
|
+
retain_repo_versions__gt=retain_repo_versions__gt,
|
|
1185
|
+
retain_repo_versions__gte=retain_repo_versions__gte,
|
|
1186
|
+
retain_repo_versions__isnull=retain_repo_versions__isnull,
|
|
1187
|
+
retain_repo_versions__lt=retain_repo_versions__lt,
|
|
1188
|
+
retain_repo_versions__lte=retain_repo_versions__lte,
|
|
1189
|
+
retain_repo_versions__ne=retain_repo_versions__ne,
|
|
1190
|
+
retain_repo_versions__range=retain_repo_versions__range,
|
|
1191
|
+
with_content=with_content,
|
|
1192
|
+
fields=fields,
|
|
1193
|
+
exclude_fields=exclude_fields,
|
|
1194
|
+
_request_auth=_request_auth,
|
|
1195
|
+
_content_type=_content_type,
|
|
1196
|
+
_headers=_headers,
|
|
1197
|
+
_host_index=_host_index
|
|
1198
|
+
)
|
|
1199
|
+
|
|
1200
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1201
|
+
'200': "PaginatednpmNpmRepositoryResponseList",
|
|
1202
|
+
}
|
|
1203
|
+
response_data = self.api_client.call_api(
|
|
1204
|
+
*_param,
|
|
1205
|
+
_request_timeout=_request_timeout
|
|
1206
|
+
)
|
|
1207
|
+
return response_data.response
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
def _list_serialize(
|
|
1211
|
+
self,
|
|
1212
|
+
pulp_domain,
|
|
1213
|
+
x_task_diagnostics,
|
|
1214
|
+
latest_with_content,
|
|
1215
|
+
limit,
|
|
1216
|
+
name,
|
|
1217
|
+
name__contains,
|
|
1218
|
+
name__icontains,
|
|
1219
|
+
name__iexact,
|
|
1220
|
+
name__in,
|
|
1221
|
+
name__iregex,
|
|
1222
|
+
name__istartswith,
|
|
1223
|
+
name__regex,
|
|
1224
|
+
name__startswith,
|
|
1225
|
+
offset,
|
|
1226
|
+
ordering,
|
|
1227
|
+
prn__in,
|
|
1228
|
+
pulp_href__in,
|
|
1229
|
+
pulp_id__in,
|
|
1230
|
+
pulp_label_select,
|
|
1231
|
+
q,
|
|
1232
|
+
remote,
|
|
1233
|
+
retain_repo_versions,
|
|
1234
|
+
retain_repo_versions__gt,
|
|
1235
|
+
retain_repo_versions__gte,
|
|
1236
|
+
retain_repo_versions__isnull,
|
|
1237
|
+
retain_repo_versions__lt,
|
|
1238
|
+
retain_repo_versions__lte,
|
|
1239
|
+
retain_repo_versions__ne,
|
|
1240
|
+
retain_repo_versions__range,
|
|
1241
|
+
with_content,
|
|
1242
|
+
fields,
|
|
1243
|
+
exclude_fields,
|
|
1244
|
+
_request_auth,
|
|
1245
|
+
_content_type,
|
|
1246
|
+
_headers,
|
|
1247
|
+
_host_index,
|
|
1248
|
+
) -> RequestSerialized:
|
|
1249
|
+
|
|
1250
|
+
_host = None
|
|
1251
|
+
|
|
1252
|
+
_collection_formats: Dict[str, str] = {
|
|
1253
|
+
'X-Task-Diagnostics': 'csv',
|
|
1254
|
+
'name__in': 'csv',
|
|
1255
|
+
'ordering': 'csv',
|
|
1256
|
+
'prn__in': 'csv',
|
|
1257
|
+
'pulp_href__in': 'csv',
|
|
1258
|
+
'pulp_id__in': 'csv',
|
|
1259
|
+
'retain_repo_versions__range': 'csv',
|
|
1260
|
+
'fields': 'multi',
|
|
1261
|
+
'exclude_fields': 'multi',
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
_path_params: Dict[str, str] = {}
|
|
1265
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1266
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1267
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1268
|
+
_files: Dict[
|
|
1269
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1270
|
+
] = {}
|
|
1271
|
+
_body_params: Optional[bytes] = None
|
|
1272
|
+
|
|
1273
|
+
# process the path parameters
|
|
1274
|
+
if pulp_domain is not None:
|
|
1275
|
+
_path_params['pulp_domain'] = pulp_domain
|
|
1276
|
+
# process the query parameters
|
|
1277
|
+
if latest_with_content is not None:
|
|
1278
|
+
|
|
1279
|
+
_query_params.append(('latest_with_content', latest_with_content))
|
|
1280
|
+
|
|
1281
|
+
if limit is not None:
|
|
1282
|
+
|
|
1283
|
+
_query_params.append(('limit', limit))
|
|
1284
|
+
|
|
1285
|
+
if name is not None:
|
|
1286
|
+
|
|
1287
|
+
_query_params.append(('name', name))
|
|
1288
|
+
|
|
1289
|
+
if name__contains is not None:
|
|
1290
|
+
|
|
1291
|
+
_query_params.append(('name__contains', name__contains))
|
|
1292
|
+
|
|
1293
|
+
if name__icontains is not None:
|
|
1294
|
+
|
|
1295
|
+
_query_params.append(('name__icontains', name__icontains))
|
|
1296
|
+
|
|
1297
|
+
if name__iexact is not None:
|
|
1298
|
+
|
|
1299
|
+
_query_params.append(('name__iexact', name__iexact))
|
|
1300
|
+
|
|
1301
|
+
if name__in is not None:
|
|
1302
|
+
|
|
1303
|
+
_query_params.append(('name__in', name__in))
|
|
1304
|
+
|
|
1305
|
+
if name__iregex is not None:
|
|
1306
|
+
|
|
1307
|
+
_query_params.append(('name__iregex', name__iregex))
|
|
1308
|
+
|
|
1309
|
+
if name__istartswith is not None:
|
|
1310
|
+
|
|
1311
|
+
_query_params.append(('name__istartswith', name__istartswith))
|
|
1312
|
+
|
|
1313
|
+
if name__regex is not None:
|
|
1314
|
+
|
|
1315
|
+
_query_params.append(('name__regex', name__regex))
|
|
1316
|
+
|
|
1317
|
+
if name__startswith is not None:
|
|
1318
|
+
|
|
1319
|
+
_query_params.append(('name__startswith', name__startswith))
|
|
1320
|
+
|
|
1321
|
+
if offset is not None:
|
|
1322
|
+
|
|
1323
|
+
_query_params.append(('offset', offset))
|
|
1324
|
+
|
|
1325
|
+
if ordering is not None:
|
|
1326
|
+
|
|
1327
|
+
_query_params.append(('ordering', ordering))
|
|
1328
|
+
|
|
1329
|
+
if prn__in is not None:
|
|
1330
|
+
|
|
1331
|
+
_query_params.append(('prn__in', prn__in))
|
|
1332
|
+
|
|
1333
|
+
if pulp_href__in is not None:
|
|
1334
|
+
|
|
1335
|
+
_query_params.append(('pulp_href__in', pulp_href__in))
|
|
1336
|
+
|
|
1337
|
+
if pulp_id__in is not None:
|
|
1338
|
+
|
|
1339
|
+
_query_params.append(('pulp_id__in', pulp_id__in))
|
|
1340
|
+
|
|
1341
|
+
if pulp_label_select is not None:
|
|
1342
|
+
|
|
1343
|
+
_query_params.append(('pulp_label_select', pulp_label_select))
|
|
1344
|
+
|
|
1345
|
+
if q is not None:
|
|
1346
|
+
|
|
1347
|
+
_query_params.append(('q', q))
|
|
1348
|
+
|
|
1349
|
+
if remote is not None:
|
|
1350
|
+
|
|
1351
|
+
_query_params.append(('remote', remote))
|
|
1352
|
+
|
|
1353
|
+
if retain_repo_versions is not None:
|
|
1354
|
+
|
|
1355
|
+
_query_params.append(('retain_repo_versions', retain_repo_versions))
|
|
1356
|
+
|
|
1357
|
+
if retain_repo_versions__gt is not None:
|
|
1358
|
+
|
|
1359
|
+
_query_params.append(('retain_repo_versions__gt', retain_repo_versions__gt))
|
|
1360
|
+
|
|
1361
|
+
if retain_repo_versions__gte is not None:
|
|
1362
|
+
|
|
1363
|
+
_query_params.append(('retain_repo_versions__gte', retain_repo_versions__gte))
|
|
1364
|
+
|
|
1365
|
+
if retain_repo_versions__isnull is not None:
|
|
1366
|
+
|
|
1367
|
+
_query_params.append(('retain_repo_versions__isnull', retain_repo_versions__isnull))
|
|
1368
|
+
|
|
1369
|
+
if retain_repo_versions__lt is not None:
|
|
1370
|
+
|
|
1371
|
+
_query_params.append(('retain_repo_versions__lt', retain_repo_versions__lt))
|
|
1372
|
+
|
|
1373
|
+
if retain_repo_versions__lte is not None:
|
|
1374
|
+
|
|
1375
|
+
_query_params.append(('retain_repo_versions__lte', retain_repo_versions__lte))
|
|
1376
|
+
|
|
1377
|
+
if retain_repo_versions__ne is not None:
|
|
1378
|
+
|
|
1379
|
+
_query_params.append(('retain_repo_versions__ne', retain_repo_versions__ne))
|
|
1380
|
+
|
|
1381
|
+
if retain_repo_versions__range is not None:
|
|
1382
|
+
|
|
1383
|
+
_query_params.append(('retain_repo_versions__range', retain_repo_versions__range))
|
|
1384
|
+
|
|
1385
|
+
if with_content is not None:
|
|
1386
|
+
|
|
1387
|
+
_query_params.append(('with_content', with_content))
|
|
1388
|
+
|
|
1389
|
+
if fields is not None:
|
|
1390
|
+
|
|
1391
|
+
_query_params.append(('fields', fields))
|
|
1392
|
+
|
|
1393
|
+
if exclude_fields is not None:
|
|
1394
|
+
|
|
1395
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
1396
|
+
|
|
1397
|
+
# process the header parameters
|
|
1398
|
+
if x_task_diagnostics is not None:
|
|
1399
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
1400
|
+
# process the form parameters
|
|
1401
|
+
# process the body parameter
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
# set the HTTP header `Accept`
|
|
1405
|
+
if 'Accept' not in _header_params:
|
|
1406
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1407
|
+
[
|
|
1408
|
+
'application/json'
|
|
1409
|
+
]
|
|
1410
|
+
)
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
# authentication setting
|
|
1414
|
+
_auth_settings: List[str] = [
|
|
1415
|
+
'json_header_remote_authentication',
|
|
1416
|
+
'basicAuth',
|
|
1417
|
+
'cookieAuth'
|
|
1418
|
+
]
|
|
1419
|
+
|
|
1420
|
+
return self.api_client.param_serialize(
|
|
1421
|
+
method='GET',
|
|
1422
|
+
resource_path='/api/pulp/{pulp_domain}/api/v3/repositories/npm/npm/',
|
|
1423
|
+
path_params=_path_params,
|
|
1424
|
+
query_params=_query_params,
|
|
1425
|
+
header_params=_header_params,
|
|
1426
|
+
body=_body_params,
|
|
1427
|
+
post_params=_form_params,
|
|
1428
|
+
files=_files,
|
|
1429
|
+
auth_settings=_auth_settings,
|
|
1430
|
+
collection_formats=_collection_formats,
|
|
1431
|
+
_host=_host,
|
|
1432
|
+
_request_auth=_request_auth
|
|
1433
|
+
)
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
@validate_call
|
|
1439
|
+
def modify(
|
|
1440
|
+
self,
|
|
1441
|
+
npm_npm_repository_href: StrictStr,
|
|
1442
|
+
repository_add_remove_content: RepositoryAddRemoveContent,
|
|
1443
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1444
|
+
_request_timeout: Union[
|
|
1445
|
+
None,
|
|
1446
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1447
|
+
Tuple[
|
|
1448
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1449
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1450
|
+
]
|
|
1451
|
+
] = None,
|
|
1452
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1453
|
+
_content_type: Optional[StrictStr] = None,
|
|
1454
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1455
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1456
|
+
) -> AsyncOperationResponse:
|
|
1457
|
+
"""Modify Repository Content
|
|
1458
|
+
|
|
1459
|
+
Trigger an asynchronous task to create a new repository version.
|
|
1460
|
+
|
|
1461
|
+
:param npm_npm_repository_href: (required)
|
|
1462
|
+
:type npm_npm_repository_href: str
|
|
1463
|
+
:param repository_add_remove_content: (required)
|
|
1464
|
+
:type repository_add_remove_content: RepositoryAddRemoveContent
|
|
1465
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1466
|
+
:type x_task_diagnostics: List[str]
|
|
1467
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1468
|
+
number provided, it will be total request
|
|
1469
|
+
timeout. It can also be a pair (tuple) of
|
|
1470
|
+
(connection, read) timeouts.
|
|
1471
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1472
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1473
|
+
request; this effectively ignores the
|
|
1474
|
+
authentication in the spec for a single request.
|
|
1475
|
+
:type _request_auth: dict, optional
|
|
1476
|
+
:param _content_type: force content-type for the request.
|
|
1477
|
+
:type _content_type: str, Optional
|
|
1478
|
+
:param _headers: set to override the headers for a single
|
|
1479
|
+
request; this effectively ignores the headers
|
|
1480
|
+
in the spec for a single request.
|
|
1481
|
+
:type _headers: dict, optional
|
|
1482
|
+
:param _host_index: set to override the host_index for a single
|
|
1483
|
+
request; this effectively ignores the host_index
|
|
1484
|
+
in the spec for a single request.
|
|
1485
|
+
:type _host_index: int, optional
|
|
1486
|
+
:return: Returns the result object.
|
|
1487
|
+
""" # noqa: E501
|
|
1488
|
+
|
|
1489
|
+
_param = self._modify_serialize(
|
|
1490
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
1491
|
+
repository_add_remove_content=repository_add_remove_content,
|
|
1492
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1493
|
+
_request_auth=_request_auth,
|
|
1494
|
+
_content_type=_content_type,
|
|
1495
|
+
_headers=_headers,
|
|
1496
|
+
_host_index=_host_index
|
|
1497
|
+
)
|
|
1498
|
+
|
|
1499
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1500
|
+
'202': "AsyncOperationResponse",
|
|
1501
|
+
}
|
|
1502
|
+
response_data = self.api_client.call_api(
|
|
1503
|
+
*_param,
|
|
1504
|
+
_request_timeout=_request_timeout
|
|
1505
|
+
)
|
|
1506
|
+
response_data.read()
|
|
1507
|
+
return self.api_client.response_deserialize(
|
|
1508
|
+
response_data=response_data,
|
|
1509
|
+
response_types_map=_response_types_map,
|
|
1510
|
+
).data
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
@validate_call
|
|
1514
|
+
def modify_with_http_info(
|
|
1515
|
+
self,
|
|
1516
|
+
npm_npm_repository_href: StrictStr,
|
|
1517
|
+
repository_add_remove_content: RepositoryAddRemoveContent,
|
|
1518
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1519
|
+
_request_timeout: Union[
|
|
1520
|
+
None,
|
|
1521
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1522
|
+
Tuple[
|
|
1523
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1524
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1525
|
+
]
|
|
1526
|
+
] = None,
|
|
1527
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1528
|
+
_content_type: Optional[StrictStr] = None,
|
|
1529
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1530
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1531
|
+
) -> ApiResponse[AsyncOperationResponse]:
|
|
1532
|
+
"""Modify Repository Content
|
|
1533
|
+
|
|
1534
|
+
Trigger an asynchronous task to create a new repository version.
|
|
1535
|
+
|
|
1536
|
+
:param npm_npm_repository_href: (required)
|
|
1537
|
+
:type npm_npm_repository_href: str
|
|
1538
|
+
:param repository_add_remove_content: (required)
|
|
1539
|
+
:type repository_add_remove_content: RepositoryAddRemoveContent
|
|
1540
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1541
|
+
:type x_task_diagnostics: List[str]
|
|
1542
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1543
|
+
number provided, it will be total request
|
|
1544
|
+
timeout. It can also be a pair (tuple) of
|
|
1545
|
+
(connection, read) timeouts.
|
|
1546
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1547
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1548
|
+
request; this effectively ignores the
|
|
1549
|
+
authentication in the spec for a single request.
|
|
1550
|
+
:type _request_auth: dict, optional
|
|
1551
|
+
:param _content_type: force content-type for the request.
|
|
1552
|
+
:type _content_type: str, Optional
|
|
1553
|
+
:param _headers: set to override the headers for a single
|
|
1554
|
+
request; this effectively ignores the headers
|
|
1555
|
+
in the spec for a single request.
|
|
1556
|
+
:type _headers: dict, optional
|
|
1557
|
+
:param _host_index: set to override the host_index for a single
|
|
1558
|
+
request; this effectively ignores the host_index
|
|
1559
|
+
in the spec for a single request.
|
|
1560
|
+
:type _host_index: int, optional
|
|
1561
|
+
:return: Returns the result object.
|
|
1562
|
+
""" # noqa: E501
|
|
1563
|
+
|
|
1564
|
+
_param = self._modify_serialize(
|
|
1565
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
1566
|
+
repository_add_remove_content=repository_add_remove_content,
|
|
1567
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1568
|
+
_request_auth=_request_auth,
|
|
1569
|
+
_content_type=_content_type,
|
|
1570
|
+
_headers=_headers,
|
|
1571
|
+
_host_index=_host_index
|
|
1572
|
+
)
|
|
1573
|
+
|
|
1574
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1575
|
+
'202': "AsyncOperationResponse",
|
|
1576
|
+
}
|
|
1577
|
+
response_data = self.api_client.call_api(
|
|
1578
|
+
*_param,
|
|
1579
|
+
_request_timeout=_request_timeout
|
|
1580
|
+
)
|
|
1581
|
+
response_data.read()
|
|
1582
|
+
return self.api_client.response_deserialize(
|
|
1583
|
+
response_data=response_data,
|
|
1584
|
+
response_types_map=_response_types_map,
|
|
1585
|
+
)
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
@validate_call
|
|
1589
|
+
def modify_without_preload_content(
|
|
1590
|
+
self,
|
|
1591
|
+
npm_npm_repository_href: StrictStr,
|
|
1592
|
+
repository_add_remove_content: RepositoryAddRemoveContent,
|
|
1593
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1594
|
+
_request_timeout: Union[
|
|
1595
|
+
None,
|
|
1596
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1597
|
+
Tuple[
|
|
1598
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1599
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1600
|
+
]
|
|
1601
|
+
] = None,
|
|
1602
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1603
|
+
_content_type: Optional[StrictStr] = None,
|
|
1604
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1605
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1606
|
+
) -> RESTResponseType:
|
|
1607
|
+
"""Modify Repository Content
|
|
1608
|
+
|
|
1609
|
+
Trigger an asynchronous task to create a new repository version.
|
|
1610
|
+
|
|
1611
|
+
:param npm_npm_repository_href: (required)
|
|
1612
|
+
:type npm_npm_repository_href: str
|
|
1613
|
+
:param repository_add_remove_content: (required)
|
|
1614
|
+
:type repository_add_remove_content: RepositoryAddRemoveContent
|
|
1615
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1616
|
+
:type x_task_diagnostics: List[str]
|
|
1617
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1618
|
+
number provided, it will be total request
|
|
1619
|
+
timeout. It can also be a pair (tuple) of
|
|
1620
|
+
(connection, read) timeouts.
|
|
1621
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1622
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1623
|
+
request; this effectively ignores the
|
|
1624
|
+
authentication in the spec for a single request.
|
|
1625
|
+
:type _request_auth: dict, optional
|
|
1626
|
+
:param _content_type: force content-type for the request.
|
|
1627
|
+
:type _content_type: str, Optional
|
|
1628
|
+
:param _headers: set to override the headers for a single
|
|
1629
|
+
request; this effectively ignores the headers
|
|
1630
|
+
in the spec for a single request.
|
|
1631
|
+
:type _headers: dict, optional
|
|
1632
|
+
:param _host_index: set to override the host_index for a single
|
|
1633
|
+
request; this effectively ignores the host_index
|
|
1634
|
+
in the spec for a single request.
|
|
1635
|
+
:type _host_index: int, optional
|
|
1636
|
+
:return: Returns the result object.
|
|
1637
|
+
""" # noqa: E501
|
|
1638
|
+
|
|
1639
|
+
_param = self._modify_serialize(
|
|
1640
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
1641
|
+
repository_add_remove_content=repository_add_remove_content,
|
|
1642
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1643
|
+
_request_auth=_request_auth,
|
|
1644
|
+
_content_type=_content_type,
|
|
1645
|
+
_headers=_headers,
|
|
1646
|
+
_host_index=_host_index
|
|
1647
|
+
)
|
|
1648
|
+
|
|
1649
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1650
|
+
'202': "AsyncOperationResponse",
|
|
1651
|
+
}
|
|
1652
|
+
response_data = self.api_client.call_api(
|
|
1653
|
+
*_param,
|
|
1654
|
+
_request_timeout=_request_timeout
|
|
1655
|
+
)
|
|
1656
|
+
return response_data.response
|
|
1657
|
+
|
|
1658
|
+
|
|
1659
|
+
def _modify_serialize(
|
|
1660
|
+
self,
|
|
1661
|
+
npm_npm_repository_href,
|
|
1662
|
+
repository_add_remove_content,
|
|
1663
|
+
x_task_diagnostics,
|
|
1664
|
+
_request_auth,
|
|
1665
|
+
_content_type,
|
|
1666
|
+
_headers,
|
|
1667
|
+
_host_index,
|
|
1668
|
+
) -> RequestSerialized:
|
|
1669
|
+
|
|
1670
|
+
_host = None
|
|
1671
|
+
|
|
1672
|
+
_collection_formats: Dict[str, str] = {
|
|
1673
|
+
'X-Task-Diagnostics': 'csv',
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
_path_params: Dict[str, str] = {}
|
|
1677
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1678
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1679
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1680
|
+
_files: Dict[
|
|
1681
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1682
|
+
] = {}
|
|
1683
|
+
_body_params: Optional[bytes] = None
|
|
1684
|
+
|
|
1685
|
+
# process the path parameters
|
|
1686
|
+
if npm_npm_repository_href is not None:
|
|
1687
|
+
_path_params['npm_npm_repository_href'] = npm_npm_repository_href
|
|
1688
|
+
# process the query parameters
|
|
1689
|
+
# process the header parameters
|
|
1690
|
+
if x_task_diagnostics is not None:
|
|
1691
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
1692
|
+
# process the form parameters
|
|
1693
|
+
# process the body parameter
|
|
1694
|
+
if repository_add_remove_content is not None:
|
|
1695
|
+
_body_params = repository_add_remove_content
|
|
1696
|
+
|
|
1697
|
+
|
|
1698
|
+
# set the HTTP header `Accept`
|
|
1699
|
+
if 'Accept' not in _header_params:
|
|
1700
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1701
|
+
[
|
|
1702
|
+
'application/json'
|
|
1703
|
+
]
|
|
1704
|
+
)
|
|
1705
|
+
|
|
1706
|
+
# set the HTTP header `Content-Type`
|
|
1707
|
+
if _content_type:
|
|
1708
|
+
_header_params['Content-Type'] = _content_type
|
|
1709
|
+
else:
|
|
1710
|
+
_default_content_type = (
|
|
1711
|
+
self.api_client.select_header_content_type(
|
|
1712
|
+
[
|
|
1713
|
+
'application/json',
|
|
1714
|
+
'application/x-www-form-urlencoded',
|
|
1715
|
+
'multipart/form-data'
|
|
1716
|
+
]
|
|
1717
|
+
)
|
|
1718
|
+
)
|
|
1719
|
+
if _default_content_type is not None:
|
|
1720
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1721
|
+
|
|
1722
|
+
# authentication setting
|
|
1723
|
+
_auth_settings: List[str] = [
|
|
1724
|
+
'json_header_remote_authentication',
|
|
1725
|
+
'basicAuth',
|
|
1726
|
+
'cookieAuth'
|
|
1727
|
+
]
|
|
1728
|
+
|
|
1729
|
+
return self.api_client.param_serialize(
|
|
1730
|
+
method='POST',
|
|
1731
|
+
resource_path='{npm_npm_repository_href}modify/',
|
|
1732
|
+
path_params=_path_params,
|
|
1733
|
+
query_params=_query_params,
|
|
1734
|
+
header_params=_header_params,
|
|
1735
|
+
body=_body_params,
|
|
1736
|
+
post_params=_form_params,
|
|
1737
|
+
files=_files,
|
|
1738
|
+
auth_settings=_auth_settings,
|
|
1739
|
+
collection_formats=_collection_formats,
|
|
1740
|
+
_host=_host,
|
|
1741
|
+
_request_auth=_request_auth
|
|
1742
|
+
)
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
@validate_call
|
|
1748
|
+
def partial_update(
|
|
1749
|
+
self,
|
|
1750
|
+
npm_npm_repository_href: StrictStr,
|
|
1751
|
+
patchednpm_npm_repository: PatchednpmNpmRepository,
|
|
1752
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1753
|
+
_request_timeout: Union[
|
|
1754
|
+
None,
|
|
1755
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1756
|
+
Tuple[
|
|
1757
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1758
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1759
|
+
]
|
|
1760
|
+
] = None,
|
|
1761
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1762
|
+
_content_type: Optional[StrictStr] = None,
|
|
1763
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1764
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1765
|
+
) -> AsyncOperationResponse:
|
|
1766
|
+
"""Update a npm repository
|
|
1767
|
+
|
|
1768
|
+
Trigger an asynchronous partial update task
|
|
1769
|
+
|
|
1770
|
+
:param npm_npm_repository_href: (required)
|
|
1771
|
+
:type npm_npm_repository_href: str
|
|
1772
|
+
:param patchednpm_npm_repository: (required)
|
|
1773
|
+
:type patchednpm_npm_repository: PatchednpmNpmRepository
|
|
1774
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1775
|
+
:type x_task_diagnostics: List[str]
|
|
1776
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1777
|
+
number provided, it will be total request
|
|
1778
|
+
timeout. It can also be a pair (tuple) of
|
|
1779
|
+
(connection, read) timeouts.
|
|
1780
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1781
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1782
|
+
request; this effectively ignores the
|
|
1783
|
+
authentication in the spec for a single request.
|
|
1784
|
+
:type _request_auth: dict, optional
|
|
1785
|
+
:param _content_type: force content-type for the request.
|
|
1786
|
+
:type _content_type: str, Optional
|
|
1787
|
+
:param _headers: set to override the headers for a single
|
|
1788
|
+
request; this effectively ignores the headers
|
|
1789
|
+
in the spec for a single request.
|
|
1790
|
+
:type _headers: dict, optional
|
|
1791
|
+
:param _host_index: set to override the host_index for a single
|
|
1792
|
+
request; this effectively ignores the host_index
|
|
1793
|
+
in the spec for a single request.
|
|
1794
|
+
:type _host_index: int, optional
|
|
1795
|
+
:return: Returns the result object.
|
|
1796
|
+
""" # noqa: E501
|
|
1797
|
+
|
|
1798
|
+
_param = self._partial_update_serialize(
|
|
1799
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
1800
|
+
patchednpm_npm_repository=patchednpm_npm_repository,
|
|
1801
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1802
|
+
_request_auth=_request_auth,
|
|
1803
|
+
_content_type=_content_type,
|
|
1804
|
+
_headers=_headers,
|
|
1805
|
+
_host_index=_host_index
|
|
1806
|
+
)
|
|
1807
|
+
|
|
1808
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1809
|
+
'202': "AsyncOperationResponse",
|
|
1810
|
+
}
|
|
1811
|
+
response_data = self.api_client.call_api(
|
|
1812
|
+
*_param,
|
|
1813
|
+
_request_timeout=_request_timeout
|
|
1814
|
+
)
|
|
1815
|
+
response_data.read()
|
|
1816
|
+
return self.api_client.response_deserialize(
|
|
1817
|
+
response_data=response_data,
|
|
1818
|
+
response_types_map=_response_types_map,
|
|
1819
|
+
).data
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
@validate_call
|
|
1823
|
+
def partial_update_with_http_info(
|
|
1824
|
+
self,
|
|
1825
|
+
npm_npm_repository_href: StrictStr,
|
|
1826
|
+
patchednpm_npm_repository: PatchednpmNpmRepository,
|
|
1827
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1828
|
+
_request_timeout: Union[
|
|
1829
|
+
None,
|
|
1830
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1831
|
+
Tuple[
|
|
1832
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1833
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1834
|
+
]
|
|
1835
|
+
] = None,
|
|
1836
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1837
|
+
_content_type: Optional[StrictStr] = None,
|
|
1838
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1839
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1840
|
+
) -> ApiResponse[AsyncOperationResponse]:
|
|
1841
|
+
"""Update a npm repository
|
|
1842
|
+
|
|
1843
|
+
Trigger an asynchronous partial update task
|
|
1844
|
+
|
|
1845
|
+
:param npm_npm_repository_href: (required)
|
|
1846
|
+
:type npm_npm_repository_href: str
|
|
1847
|
+
:param patchednpm_npm_repository: (required)
|
|
1848
|
+
:type patchednpm_npm_repository: PatchednpmNpmRepository
|
|
1849
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1850
|
+
:type x_task_diagnostics: List[str]
|
|
1851
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1852
|
+
number provided, it will be total request
|
|
1853
|
+
timeout. It can also be a pair (tuple) of
|
|
1854
|
+
(connection, read) timeouts.
|
|
1855
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1856
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1857
|
+
request; this effectively ignores the
|
|
1858
|
+
authentication in the spec for a single request.
|
|
1859
|
+
:type _request_auth: dict, optional
|
|
1860
|
+
:param _content_type: force content-type for the request.
|
|
1861
|
+
:type _content_type: str, Optional
|
|
1862
|
+
:param _headers: set to override the headers for a single
|
|
1863
|
+
request; this effectively ignores the headers
|
|
1864
|
+
in the spec for a single request.
|
|
1865
|
+
:type _headers: dict, optional
|
|
1866
|
+
:param _host_index: set to override the host_index for a single
|
|
1867
|
+
request; this effectively ignores the host_index
|
|
1868
|
+
in the spec for a single request.
|
|
1869
|
+
:type _host_index: int, optional
|
|
1870
|
+
:return: Returns the result object.
|
|
1871
|
+
""" # noqa: E501
|
|
1872
|
+
|
|
1873
|
+
_param = self._partial_update_serialize(
|
|
1874
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
1875
|
+
patchednpm_npm_repository=patchednpm_npm_repository,
|
|
1876
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1877
|
+
_request_auth=_request_auth,
|
|
1878
|
+
_content_type=_content_type,
|
|
1879
|
+
_headers=_headers,
|
|
1880
|
+
_host_index=_host_index
|
|
1881
|
+
)
|
|
1882
|
+
|
|
1883
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1884
|
+
'202': "AsyncOperationResponse",
|
|
1885
|
+
}
|
|
1886
|
+
response_data = self.api_client.call_api(
|
|
1887
|
+
*_param,
|
|
1888
|
+
_request_timeout=_request_timeout
|
|
1889
|
+
)
|
|
1890
|
+
response_data.read()
|
|
1891
|
+
return self.api_client.response_deserialize(
|
|
1892
|
+
response_data=response_data,
|
|
1893
|
+
response_types_map=_response_types_map,
|
|
1894
|
+
)
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
@validate_call
|
|
1898
|
+
def partial_update_without_preload_content(
|
|
1899
|
+
self,
|
|
1900
|
+
npm_npm_repository_href: StrictStr,
|
|
1901
|
+
patchednpm_npm_repository: PatchednpmNpmRepository,
|
|
1902
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1903
|
+
_request_timeout: Union[
|
|
1904
|
+
None,
|
|
1905
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1906
|
+
Tuple[
|
|
1907
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1908
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1909
|
+
]
|
|
1910
|
+
] = None,
|
|
1911
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1912
|
+
_content_type: Optional[StrictStr] = None,
|
|
1913
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1914
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1915
|
+
) -> RESTResponseType:
|
|
1916
|
+
"""Update a npm repository
|
|
1917
|
+
|
|
1918
|
+
Trigger an asynchronous partial update task
|
|
1919
|
+
|
|
1920
|
+
:param npm_npm_repository_href: (required)
|
|
1921
|
+
:type npm_npm_repository_href: str
|
|
1922
|
+
:param patchednpm_npm_repository: (required)
|
|
1923
|
+
:type patchednpm_npm_repository: PatchednpmNpmRepository
|
|
1924
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1925
|
+
:type x_task_diagnostics: List[str]
|
|
1926
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1927
|
+
number provided, it will be total request
|
|
1928
|
+
timeout. It can also be a pair (tuple) of
|
|
1929
|
+
(connection, read) timeouts.
|
|
1930
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1931
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1932
|
+
request; this effectively ignores the
|
|
1933
|
+
authentication in the spec for a single request.
|
|
1934
|
+
:type _request_auth: dict, optional
|
|
1935
|
+
:param _content_type: force content-type for the request.
|
|
1936
|
+
:type _content_type: str, Optional
|
|
1937
|
+
:param _headers: set to override the headers for a single
|
|
1938
|
+
request; this effectively ignores the headers
|
|
1939
|
+
in the spec for a single request.
|
|
1940
|
+
:type _headers: dict, optional
|
|
1941
|
+
:param _host_index: set to override the host_index for a single
|
|
1942
|
+
request; this effectively ignores the host_index
|
|
1943
|
+
in the spec for a single request.
|
|
1944
|
+
:type _host_index: int, optional
|
|
1945
|
+
:return: Returns the result object.
|
|
1946
|
+
""" # noqa: E501
|
|
1947
|
+
|
|
1948
|
+
_param = self._partial_update_serialize(
|
|
1949
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
1950
|
+
patchednpm_npm_repository=patchednpm_npm_repository,
|
|
1951
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1952
|
+
_request_auth=_request_auth,
|
|
1953
|
+
_content_type=_content_type,
|
|
1954
|
+
_headers=_headers,
|
|
1955
|
+
_host_index=_host_index
|
|
1956
|
+
)
|
|
1957
|
+
|
|
1958
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1959
|
+
'202': "AsyncOperationResponse",
|
|
1960
|
+
}
|
|
1961
|
+
response_data = self.api_client.call_api(
|
|
1962
|
+
*_param,
|
|
1963
|
+
_request_timeout=_request_timeout
|
|
1964
|
+
)
|
|
1965
|
+
return response_data.response
|
|
1966
|
+
|
|
1967
|
+
|
|
1968
|
+
def _partial_update_serialize(
|
|
1969
|
+
self,
|
|
1970
|
+
npm_npm_repository_href,
|
|
1971
|
+
patchednpm_npm_repository,
|
|
1972
|
+
x_task_diagnostics,
|
|
1973
|
+
_request_auth,
|
|
1974
|
+
_content_type,
|
|
1975
|
+
_headers,
|
|
1976
|
+
_host_index,
|
|
1977
|
+
) -> RequestSerialized:
|
|
1978
|
+
|
|
1979
|
+
_host = None
|
|
1980
|
+
|
|
1981
|
+
_collection_formats: Dict[str, str] = {
|
|
1982
|
+
'X-Task-Diagnostics': 'csv',
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
_path_params: Dict[str, str] = {}
|
|
1986
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1987
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1988
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1989
|
+
_files: Dict[
|
|
1990
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1991
|
+
] = {}
|
|
1992
|
+
_body_params: Optional[bytes] = None
|
|
1993
|
+
|
|
1994
|
+
# process the path parameters
|
|
1995
|
+
if npm_npm_repository_href is not None:
|
|
1996
|
+
_path_params['npm_npm_repository_href'] = npm_npm_repository_href
|
|
1997
|
+
# process the query parameters
|
|
1998
|
+
# process the header parameters
|
|
1999
|
+
if x_task_diagnostics is not None:
|
|
2000
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2001
|
+
# process the form parameters
|
|
2002
|
+
# process the body parameter
|
|
2003
|
+
if patchednpm_npm_repository is not None:
|
|
2004
|
+
_body_params = patchednpm_npm_repository
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
# set the HTTP header `Accept`
|
|
2008
|
+
if 'Accept' not in _header_params:
|
|
2009
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2010
|
+
[
|
|
2011
|
+
'application/json'
|
|
2012
|
+
]
|
|
2013
|
+
)
|
|
2014
|
+
|
|
2015
|
+
# set the HTTP header `Content-Type`
|
|
2016
|
+
if _content_type:
|
|
2017
|
+
_header_params['Content-Type'] = _content_type
|
|
2018
|
+
else:
|
|
2019
|
+
_default_content_type = (
|
|
2020
|
+
self.api_client.select_header_content_type(
|
|
2021
|
+
[
|
|
2022
|
+
'application/json',
|
|
2023
|
+
'application/x-www-form-urlencoded',
|
|
2024
|
+
'multipart/form-data'
|
|
2025
|
+
]
|
|
2026
|
+
)
|
|
2027
|
+
)
|
|
2028
|
+
if _default_content_type is not None:
|
|
2029
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2030
|
+
|
|
2031
|
+
# authentication setting
|
|
2032
|
+
_auth_settings: List[str] = [
|
|
2033
|
+
'json_header_remote_authentication',
|
|
2034
|
+
'basicAuth',
|
|
2035
|
+
'cookieAuth'
|
|
2036
|
+
]
|
|
2037
|
+
|
|
2038
|
+
return self.api_client.param_serialize(
|
|
2039
|
+
method='PATCH',
|
|
2040
|
+
resource_path='{npm_npm_repository_href}',
|
|
2041
|
+
path_params=_path_params,
|
|
2042
|
+
query_params=_query_params,
|
|
2043
|
+
header_params=_header_params,
|
|
2044
|
+
body=_body_params,
|
|
2045
|
+
post_params=_form_params,
|
|
2046
|
+
files=_files,
|
|
2047
|
+
auth_settings=_auth_settings,
|
|
2048
|
+
collection_formats=_collection_formats,
|
|
2049
|
+
_host=_host,
|
|
2050
|
+
_request_auth=_request_auth
|
|
2051
|
+
)
|
|
2052
|
+
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
@validate_call
|
|
2057
|
+
def read(
|
|
2058
|
+
self,
|
|
2059
|
+
npm_npm_repository_href: StrictStr,
|
|
2060
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2061
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2062
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2063
|
+
_request_timeout: Union[
|
|
2064
|
+
None,
|
|
2065
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2066
|
+
Tuple[
|
|
2067
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2068
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2069
|
+
]
|
|
2070
|
+
] = None,
|
|
2071
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2072
|
+
_content_type: Optional[StrictStr] = None,
|
|
2073
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2074
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2075
|
+
) -> NpmNpmRepositoryResponse:
|
|
2076
|
+
"""Inspect a npm repository
|
|
2077
|
+
|
|
2078
|
+
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
|
2079
|
+
|
|
2080
|
+
:param npm_npm_repository_href: (required)
|
|
2081
|
+
:type npm_npm_repository_href: str
|
|
2082
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2083
|
+
:type x_task_diagnostics: List[str]
|
|
2084
|
+
:param fields: A list of fields to include in the response.
|
|
2085
|
+
:type fields: List[str]
|
|
2086
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
2087
|
+
:type exclude_fields: List[str]
|
|
2088
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2089
|
+
number provided, it will be total request
|
|
2090
|
+
timeout. It can also be a pair (tuple) of
|
|
2091
|
+
(connection, read) timeouts.
|
|
2092
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2093
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2094
|
+
request; this effectively ignores the
|
|
2095
|
+
authentication in the spec for a single request.
|
|
2096
|
+
:type _request_auth: dict, optional
|
|
2097
|
+
:param _content_type: force content-type for the request.
|
|
2098
|
+
:type _content_type: str, Optional
|
|
2099
|
+
:param _headers: set to override the headers for a single
|
|
2100
|
+
request; this effectively ignores the headers
|
|
2101
|
+
in the spec for a single request.
|
|
2102
|
+
:type _headers: dict, optional
|
|
2103
|
+
:param _host_index: set to override the host_index for a single
|
|
2104
|
+
request; this effectively ignores the host_index
|
|
2105
|
+
in the spec for a single request.
|
|
2106
|
+
:type _host_index: int, optional
|
|
2107
|
+
:return: Returns the result object.
|
|
2108
|
+
""" # noqa: E501
|
|
2109
|
+
|
|
2110
|
+
_param = self._read_serialize(
|
|
2111
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
2112
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2113
|
+
fields=fields,
|
|
2114
|
+
exclude_fields=exclude_fields,
|
|
2115
|
+
_request_auth=_request_auth,
|
|
2116
|
+
_content_type=_content_type,
|
|
2117
|
+
_headers=_headers,
|
|
2118
|
+
_host_index=_host_index
|
|
2119
|
+
)
|
|
2120
|
+
|
|
2121
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2122
|
+
'200': "NpmNpmRepositoryResponse",
|
|
2123
|
+
}
|
|
2124
|
+
response_data = self.api_client.call_api(
|
|
2125
|
+
*_param,
|
|
2126
|
+
_request_timeout=_request_timeout
|
|
2127
|
+
)
|
|
2128
|
+
response_data.read()
|
|
2129
|
+
return self.api_client.response_deserialize(
|
|
2130
|
+
response_data=response_data,
|
|
2131
|
+
response_types_map=_response_types_map,
|
|
2132
|
+
).data
|
|
2133
|
+
|
|
2134
|
+
|
|
2135
|
+
@validate_call
|
|
2136
|
+
def read_with_http_info(
|
|
2137
|
+
self,
|
|
2138
|
+
npm_npm_repository_href: StrictStr,
|
|
2139
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2140
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2141
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2142
|
+
_request_timeout: Union[
|
|
2143
|
+
None,
|
|
2144
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2145
|
+
Tuple[
|
|
2146
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2147
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2148
|
+
]
|
|
2149
|
+
] = None,
|
|
2150
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2151
|
+
_content_type: Optional[StrictStr] = None,
|
|
2152
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2153
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2154
|
+
) -> ApiResponse[NpmNpmRepositoryResponse]:
|
|
2155
|
+
"""Inspect a npm repository
|
|
2156
|
+
|
|
2157
|
+
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
|
2158
|
+
|
|
2159
|
+
:param npm_npm_repository_href: (required)
|
|
2160
|
+
:type npm_npm_repository_href: str
|
|
2161
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2162
|
+
:type x_task_diagnostics: List[str]
|
|
2163
|
+
:param fields: A list of fields to include in the response.
|
|
2164
|
+
:type fields: List[str]
|
|
2165
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
2166
|
+
:type exclude_fields: List[str]
|
|
2167
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2168
|
+
number provided, it will be total request
|
|
2169
|
+
timeout. It can also be a pair (tuple) of
|
|
2170
|
+
(connection, read) timeouts.
|
|
2171
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2172
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2173
|
+
request; this effectively ignores the
|
|
2174
|
+
authentication in the spec for a single request.
|
|
2175
|
+
:type _request_auth: dict, optional
|
|
2176
|
+
:param _content_type: force content-type for the request.
|
|
2177
|
+
:type _content_type: str, Optional
|
|
2178
|
+
:param _headers: set to override the headers for a single
|
|
2179
|
+
request; this effectively ignores the headers
|
|
2180
|
+
in the spec for a single request.
|
|
2181
|
+
:type _headers: dict, optional
|
|
2182
|
+
:param _host_index: set to override the host_index for a single
|
|
2183
|
+
request; this effectively ignores the host_index
|
|
2184
|
+
in the spec for a single request.
|
|
2185
|
+
:type _host_index: int, optional
|
|
2186
|
+
:return: Returns the result object.
|
|
2187
|
+
""" # noqa: E501
|
|
2188
|
+
|
|
2189
|
+
_param = self._read_serialize(
|
|
2190
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
2191
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2192
|
+
fields=fields,
|
|
2193
|
+
exclude_fields=exclude_fields,
|
|
2194
|
+
_request_auth=_request_auth,
|
|
2195
|
+
_content_type=_content_type,
|
|
2196
|
+
_headers=_headers,
|
|
2197
|
+
_host_index=_host_index
|
|
2198
|
+
)
|
|
2199
|
+
|
|
2200
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2201
|
+
'200': "NpmNpmRepositoryResponse",
|
|
2202
|
+
}
|
|
2203
|
+
response_data = self.api_client.call_api(
|
|
2204
|
+
*_param,
|
|
2205
|
+
_request_timeout=_request_timeout
|
|
2206
|
+
)
|
|
2207
|
+
response_data.read()
|
|
2208
|
+
return self.api_client.response_deserialize(
|
|
2209
|
+
response_data=response_data,
|
|
2210
|
+
response_types_map=_response_types_map,
|
|
2211
|
+
)
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
@validate_call
|
|
2215
|
+
def read_without_preload_content(
|
|
2216
|
+
self,
|
|
2217
|
+
npm_npm_repository_href: StrictStr,
|
|
2218
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2219
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2220
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2221
|
+
_request_timeout: Union[
|
|
2222
|
+
None,
|
|
2223
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2224
|
+
Tuple[
|
|
2225
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2226
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2227
|
+
]
|
|
2228
|
+
] = None,
|
|
2229
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2230
|
+
_content_type: Optional[StrictStr] = None,
|
|
2231
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2232
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2233
|
+
) -> RESTResponseType:
|
|
2234
|
+
"""Inspect a npm repository
|
|
2235
|
+
|
|
2236
|
+
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
|
2237
|
+
|
|
2238
|
+
:param npm_npm_repository_href: (required)
|
|
2239
|
+
:type npm_npm_repository_href: str
|
|
2240
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2241
|
+
:type x_task_diagnostics: List[str]
|
|
2242
|
+
:param fields: A list of fields to include in the response.
|
|
2243
|
+
:type fields: List[str]
|
|
2244
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
2245
|
+
:type exclude_fields: List[str]
|
|
2246
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2247
|
+
number provided, it will be total request
|
|
2248
|
+
timeout. It can also be a pair (tuple) of
|
|
2249
|
+
(connection, read) timeouts.
|
|
2250
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2251
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2252
|
+
request; this effectively ignores the
|
|
2253
|
+
authentication in the spec for a single request.
|
|
2254
|
+
:type _request_auth: dict, optional
|
|
2255
|
+
:param _content_type: force content-type for the request.
|
|
2256
|
+
:type _content_type: str, Optional
|
|
2257
|
+
:param _headers: set to override the headers for a single
|
|
2258
|
+
request; this effectively ignores the headers
|
|
2259
|
+
in the spec for a single request.
|
|
2260
|
+
:type _headers: dict, optional
|
|
2261
|
+
:param _host_index: set to override the host_index for a single
|
|
2262
|
+
request; this effectively ignores the host_index
|
|
2263
|
+
in the spec for a single request.
|
|
2264
|
+
:type _host_index: int, optional
|
|
2265
|
+
:return: Returns the result object.
|
|
2266
|
+
""" # noqa: E501
|
|
2267
|
+
|
|
2268
|
+
_param = self._read_serialize(
|
|
2269
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
2270
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2271
|
+
fields=fields,
|
|
2272
|
+
exclude_fields=exclude_fields,
|
|
2273
|
+
_request_auth=_request_auth,
|
|
2274
|
+
_content_type=_content_type,
|
|
2275
|
+
_headers=_headers,
|
|
2276
|
+
_host_index=_host_index
|
|
2277
|
+
)
|
|
2278
|
+
|
|
2279
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2280
|
+
'200': "NpmNpmRepositoryResponse",
|
|
2281
|
+
}
|
|
2282
|
+
response_data = self.api_client.call_api(
|
|
2283
|
+
*_param,
|
|
2284
|
+
_request_timeout=_request_timeout
|
|
2285
|
+
)
|
|
2286
|
+
return response_data.response
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
def _read_serialize(
|
|
2290
|
+
self,
|
|
2291
|
+
npm_npm_repository_href,
|
|
2292
|
+
x_task_diagnostics,
|
|
2293
|
+
fields,
|
|
2294
|
+
exclude_fields,
|
|
2295
|
+
_request_auth,
|
|
2296
|
+
_content_type,
|
|
2297
|
+
_headers,
|
|
2298
|
+
_host_index,
|
|
2299
|
+
) -> RequestSerialized:
|
|
2300
|
+
|
|
2301
|
+
_host = None
|
|
2302
|
+
|
|
2303
|
+
_collection_formats: Dict[str, str] = {
|
|
2304
|
+
'X-Task-Diagnostics': 'csv',
|
|
2305
|
+
'fields': 'multi',
|
|
2306
|
+
'exclude_fields': 'multi',
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
_path_params: Dict[str, str] = {}
|
|
2310
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2311
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2312
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2313
|
+
_files: Dict[
|
|
2314
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2315
|
+
] = {}
|
|
2316
|
+
_body_params: Optional[bytes] = None
|
|
2317
|
+
|
|
2318
|
+
# process the path parameters
|
|
2319
|
+
if npm_npm_repository_href is not None:
|
|
2320
|
+
_path_params['npm_npm_repository_href'] = npm_npm_repository_href
|
|
2321
|
+
# process the query parameters
|
|
2322
|
+
if fields is not None:
|
|
2323
|
+
|
|
2324
|
+
_query_params.append(('fields', fields))
|
|
2325
|
+
|
|
2326
|
+
if exclude_fields is not None:
|
|
2327
|
+
|
|
2328
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
2329
|
+
|
|
2330
|
+
# process the header parameters
|
|
2331
|
+
if x_task_diagnostics is not None:
|
|
2332
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2333
|
+
# process the form parameters
|
|
2334
|
+
# process the body parameter
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
# set the HTTP header `Accept`
|
|
2338
|
+
if 'Accept' not in _header_params:
|
|
2339
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2340
|
+
[
|
|
2341
|
+
'application/json'
|
|
2342
|
+
]
|
|
2343
|
+
)
|
|
2344
|
+
|
|
2345
|
+
|
|
2346
|
+
# authentication setting
|
|
2347
|
+
_auth_settings: List[str] = [
|
|
2348
|
+
'json_header_remote_authentication',
|
|
2349
|
+
'basicAuth',
|
|
2350
|
+
'cookieAuth'
|
|
2351
|
+
]
|
|
2352
|
+
|
|
2353
|
+
return self.api_client.param_serialize(
|
|
2354
|
+
method='GET',
|
|
2355
|
+
resource_path='{npm_npm_repository_href}',
|
|
2356
|
+
path_params=_path_params,
|
|
2357
|
+
query_params=_query_params,
|
|
2358
|
+
header_params=_header_params,
|
|
2359
|
+
body=_body_params,
|
|
2360
|
+
post_params=_form_params,
|
|
2361
|
+
files=_files,
|
|
2362
|
+
auth_settings=_auth_settings,
|
|
2363
|
+
collection_formats=_collection_formats,
|
|
2364
|
+
_host=_host,
|
|
2365
|
+
_request_auth=_request_auth
|
|
2366
|
+
)
|
|
2367
|
+
|
|
2368
|
+
|
|
2369
|
+
|
|
2370
|
+
|
|
2371
|
+
@validate_call
|
|
2372
|
+
def set_label(
|
|
2373
|
+
self,
|
|
2374
|
+
npm_npm_repository_href: StrictStr,
|
|
2375
|
+
set_label: SetLabel,
|
|
2376
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2377
|
+
_request_timeout: Union[
|
|
2378
|
+
None,
|
|
2379
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2380
|
+
Tuple[
|
|
2381
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2382
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2383
|
+
]
|
|
2384
|
+
] = None,
|
|
2385
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2386
|
+
_content_type: Optional[StrictStr] = None,
|
|
2387
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2388
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2389
|
+
) -> SetLabelResponse:
|
|
2390
|
+
"""Set a label
|
|
2391
|
+
|
|
2392
|
+
Set a single pulp_label on the object to a specific value or null.
|
|
2393
|
+
|
|
2394
|
+
:param npm_npm_repository_href: (required)
|
|
2395
|
+
:type npm_npm_repository_href: str
|
|
2396
|
+
:param set_label: (required)
|
|
2397
|
+
:type set_label: SetLabel
|
|
2398
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2399
|
+
:type x_task_diagnostics: List[str]
|
|
2400
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2401
|
+
number provided, it will be total request
|
|
2402
|
+
timeout. It can also be a pair (tuple) of
|
|
2403
|
+
(connection, read) timeouts.
|
|
2404
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2405
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2406
|
+
request; this effectively ignores the
|
|
2407
|
+
authentication in the spec for a single request.
|
|
2408
|
+
:type _request_auth: dict, optional
|
|
2409
|
+
:param _content_type: force content-type for the request.
|
|
2410
|
+
:type _content_type: str, Optional
|
|
2411
|
+
:param _headers: set to override the headers for a single
|
|
2412
|
+
request; this effectively ignores the headers
|
|
2413
|
+
in the spec for a single request.
|
|
2414
|
+
:type _headers: dict, optional
|
|
2415
|
+
:param _host_index: set to override the host_index for a single
|
|
2416
|
+
request; this effectively ignores the host_index
|
|
2417
|
+
in the spec for a single request.
|
|
2418
|
+
:type _host_index: int, optional
|
|
2419
|
+
:return: Returns the result object.
|
|
2420
|
+
""" # noqa: E501
|
|
2421
|
+
|
|
2422
|
+
_param = self._set_label_serialize(
|
|
2423
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
2424
|
+
set_label=set_label,
|
|
2425
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2426
|
+
_request_auth=_request_auth,
|
|
2427
|
+
_content_type=_content_type,
|
|
2428
|
+
_headers=_headers,
|
|
2429
|
+
_host_index=_host_index
|
|
2430
|
+
)
|
|
2431
|
+
|
|
2432
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2433
|
+
'201': "SetLabelResponse",
|
|
2434
|
+
}
|
|
2435
|
+
response_data = self.api_client.call_api(
|
|
2436
|
+
*_param,
|
|
2437
|
+
_request_timeout=_request_timeout
|
|
2438
|
+
)
|
|
2439
|
+
response_data.read()
|
|
2440
|
+
return self.api_client.response_deserialize(
|
|
2441
|
+
response_data=response_data,
|
|
2442
|
+
response_types_map=_response_types_map,
|
|
2443
|
+
).data
|
|
2444
|
+
|
|
2445
|
+
|
|
2446
|
+
@validate_call
|
|
2447
|
+
def set_label_with_http_info(
|
|
2448
|
+
self,
|
|
2449
|
+
npm_npm_repository_href: StrictStr,
|
|
2450
|
+
set_label: SetLabel,
|
|
2451
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2452
|
+
_request_timeout: Union[
|
|
2453
|
+
None,
|
|
2454
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2455
|
+
Tuple[
|
|
2456
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2457
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2458
|
+
]
|
|
2459
|
+
] = None,
|
|
2460
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2461
|
+
_content_type: Optional[StrictStr] = None,
|
|
2462
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2463
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2464
|
+
) -> ApiResponse[SetLabelResponse]:
|
|
2465
|
+
"""Set a label
|
|
2466
|
+
|
|
2467
|
+
Set a single pulp_label on the object to a specific value or null.
|
|
2468
|
+
|
|
2469
|
+
:param npm_npm_repository_href: (required)
|
|
2470
|
+
:type npm_npm_repository_href: str
|
|
2471
|
+
:param set_label: (required)
|
|
2472
|
+
:type set_label: SetLabel
|
|
2473
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2474
|
+
:type x_task_diagnostics: List[str]
|
|
2475
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2476
|
+
number provided, it will be total request
|
|
2477
|
+
timeout. It can also be a pair (tuple) of
|
|
2478
|
+
(connection, read) timeouts.
|
|
2479
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2480
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2481
|
+
request; this effectively ignores the
|
|
2482
|
+
authentication in the spec for a single request.
|
|
2483
|
+
:type _request_auth: dict, optional
|
|
2484
|
+
:param _content_type: force content-type for the request.
|
|
2485
|
+
:type _content_type: str, Optional
|
|
2486
|
+
:param _headers: set to override the headers for a single
|
|
2487
|
+
request; this effectively ignores the headers
|
|
2488
|
+
in the spec for a single request.
|
|
2489
|
+
:type _headers: dict, optional
|
|
2490
|
+
:param _host_index: set to override the host_index for a single
|
|
2491
|
+
request; this effectively ignores the host_index
|
|
2492
|
+
in the spec for a single request.
|
|
2493
|
+
:type _host_index: int, optional
|
|
2494
|
+
:return: Returns the result object.
|
|
2495
|
+
""" # noqa: E501
|
|
2496
|
+
|
|
2497
|
+
_param = self._set_label_serialize(
|
|
2498
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
2499
|
+
set_label=set_label,
|
|
2500
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2501
|
+
_request_auth=_request_auth,
|
|
2502
|
+
_content_type=_content_type,
|
|
2503
|
+
_headers=_headers,
|
|
2504
|
+
_host_index=_host_index
|
|
2505
|
+
)
|
|
2506
|
+
|
|
2507
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2508
|
+
'201': "SetLabelResponse",
|
|
2509
|
+
}
|
|
2510
|
+
response_data = self.api_client.call_api(
|
|
2511
|
+
*_param,
|
|
2512
|
+
_request_timeout=_request_timeout
|
|
2513
|
+
)
|
|
2514
|
+
response_data.read()
|
|
2515
|
+
return self.api_client.response_deserialize(
|
|
2516
|
+
response_data=response_data,
|
|
2517
|
+
response_types_map=_response_types_map,
|
|
2518
|
+
)
|
|
2519
|
+
|
|
2520
|
+
|
|
2521
|
+
@validate_call
|
|
2522
|
+
def set_label_without_preload_content(
|
|
2523
|
+
self,
|
|
2524
|
+
npm_npm_repository_href: StrictStr,
|
|
2525
|
+
set_label: SetLabel,
|
|
2526
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2527
|
+
_request_timeout: Union[
|
|
2528
|
+
None,
|
|
2529
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2530
|
+
Tuple[
|
|
2531
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2532
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2533
|
+
]
|
|
2534
|
+
] = None,
|
|
2535
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2536
|
+
_content_type: Optional[StrictStr] = None,
|
|
2537
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2538
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2539
|
+
) -> RESTResponseType:
|
|
2540
|
+
"""Set a label
|
|
2541
|
+
|
|
2542
|
+
Set a single pulp_label on the object to a specific value or null.
|
|
2543
|
+
|
|
2544
|
+
:param npm_npm_repository_href: (required)
|
|
2545
|
+
:type npm_npm_repository_href: str
|
|
2546
|
+
:param set_label: (required)
|
|
2547
|
+
:type set_label: SetLabel
|
|
2548
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2549
|
+
:type x_task_diagnostics: List[str]
|
|
2550
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2551
|
+
number provided, it will be total request
|
|
2552
|
+
timeout. It can also be a pair (tuple) of
|
|
2553
|
+
(connection, read) timeouts.
|
|
2554
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2555
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2556
|
+
request; this effectively ignores the
|
|
2557
|
+
authentication in the spec for a single request.
|
|
2558
|
+
:type _request_auth: dict, optional
|
|
2559
|
+
:param _content_type: force content-type for the request.
|
|
2560
|
+
:type _content_type: str, Optional
|
|
2561
|
+
:param _headers: set to override the headers for a single
|
|
2562
|
+
request; this effectively ignores the headers
|
|
2563
|
+
in the spec for a single request.
|
|
2564
|
+
:type _headers: dict, optional
|
|
2565
|
+
:param _host_index: set to override the host_index for a single
|
|
2566
|
+
request; this effectively ignores the host_index
|
|
2567
|
+
in the spec for a single request.
|
|
2568
|
+
:type _host_index: int, optional
|
|
2569
|
+
:return: Returns the result object.
|
|
2570
|
+
""" # noqa: E501
|
|
2571
|
+
|
|
2572
|
+
_param = self._set_label_serialize(
|
|
2573
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
2574
|
+
set_label=set_label,
|
|
2575
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2576
|
+
_request_auth=_request_auth,
|
|
2577
|
+
_content_type=_content_type,
|
|
2578
|
+
_headers=_headers,
|
|
2579
|
+
_host_index=_host_index
|
|
2580
|
+
)
|
|
2581
|
+
|
|
2582
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2583
|
+
'201': "SetLabelResponse",
|
|
2584
|
+
}
|
|
2585
|
+
response_data = self.api_client.call_api(
|
|
2586
|
+
*_param,
|
|
2587
|
+
_request_timeout=_request_timeout
|
|
2588
|
+
)
|
|
2589
|
+
return response_data.response
|
|
2590
|
+
|
|
2591
|
+
|
|
2592
|
+
def _set_label_serialize(
|
|
2593
|
+
self,
|
|
2594
|
+
npm_npm_repository_href,
|
|
2595
|
+
set_label,
|
|
2596
|
+
x_task_diagnostics,
|
|
2597
|
+
_request_auth,
|
|
2598
|
+
_content_type,
|
|
2599
|
+
_headers,
|
|
2600
|
+
_host_index,
|
|
2601
|
+
) -> RequestSerialized:
|
|
2602
|
+
|
|
2603
|
+
_host = None
|
|
2604
|
+
|
|
2605
|
+
_collection_formats: Dict[str, str] = {
|
|
2606
|
+
'X-Task-Diagnostics': 'csv',
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
_path_params: Dict[str, str] = {}
|
|
2610
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2611
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2612
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2613
|
+
_files: Dict[
|
|
2614
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2615
|
+
] = {}
|
|
2616
|
+
_body_params: Optional[bytes] = None
|
|
2617
|
+
|
|
2618
|
+
# process the path parameters
|
|
2619
|
+
if npm_npm_repository_href is not None:
|
|
2620
|
+
_path_params['npm_npm_repository_href'] = npm_npm_repository_href
|
|
2621
|
+
# process the query parameters
|
|
2622
|
+
# process the header parameters
|
|
2623
|
+
if x_task_diagnostics is not None:
|
|
2624
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2625
|
+
# process the form parameters
|
|
2626
|
+
# process the body parameter
|
|
2627
|
+
if set_label is not None:
|
|
2628
|
+
_body_params = set_label
|
|
2629
|
+
|
|
2630
|
+
|
|
2631
|
+
# set the HTTP header `Accept`
|
|
2632
|
+
if 'Accept' not in _header_params:
|
|
2633
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2634
|
+
[
|
|
2635
|
+
'application/json'
|
|
2636
|
+
]
|
|
2637
|
+
)
|
|
2638
|
+
|
|
2639
|
+
# set the HTTP header `Content-Type`
|
|
2640
|
+
if _content_type:
|
|
2641
|
+
_header_params['Content-Type'] = _content_type
|
|
2642
|
+
else:
|
|
2643
|
+
_default_content_type = (
|
|
2644
|
+
self.api_client.select_header_content_type(
|
|
2645
|
+
[
|
|
2646
|
+
'application/json',
|
|
2647
|
+
'application/x-www-form-urlencoded',
|
|
2648
|
+
'multipart/form-data'
|
|
2649
|
+
]
|
|
2650
|
+
)
|
|
2651
|
+
)
|
|
2652
|
+
if _default_content_type is not None:
|
|
2653
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2654
|
+
|
|
2655
|
+
# authentication setting
|
|
2656
|
+
_auth_settings: List[str] = [
|
|
2657
|
+
'json_header_remote_authentication',
|
|
2658
|
+
'basicAuth',
|
|
2659
|
+
'cookieAuth'
|
|
2660
|
+
]
|
|
2661
|
+
|
|
2662
|
+
return self.api_client.param_serialize(
|
|
2663
|
+
method='POST',
|
|
2664
|
+
resource_path='{npm_npm_repository_href}set_label/',
|
|
2665
|
+
path_params=_path_params,
|
|
2666
|
+
query_params=_query_params,
|
|
2667
|
+
header_params=_header_params,
|
|
2668
|
+
body=_body_params,
|
|
2669
|
+
post_params=_form_params,
|
|
2670
|
+
files=_files,
|
|
2671
|
+
auth_settings=_auth_settings,
|
|
2672
|
+
collection_formats=_collection_formats,
|
|
2673
|
+
_host=_host,
|
|
2674
|
+
_request_auth=_request_auth
|
|
2675
|
+
)
|
|
2676
|
+
|
|
2677
|
+
|
|
2678
|
+
|
|
2679
|
+
|
|
2680
|
+
@validate_call
|
|
2681
|
+
def sync(
|
|
2682
|
+
self,
|
|
2683
|
+
npm_npm_repository_href: StrictStr,
|
|
2684
|
+
repository_sync_url: RepositorySyncURL,
|
|
2685
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2686
|
+
_request_timeout: Union[
|
|
2687
|
+
None,
|
|
2688
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2689
|
+
Tuple[
|
|
2690
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2691
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2692
|
+
]
|
|
2693
|
+
] = None,
|
|
2694
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2695
|
+
_content_type: Optional[StrictStr] = None,
|
|
2696
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2697
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2698
|
+
) -> AsyncOperationResponse:
|
|
2699
|
+
"""Sync from remote
|
|
2700
|
+
|
|
2701
|
+
Trigger an asynchronous task to sync content.
|
|
2702
|
+
|
|
2703
|
+
:param npm_npm_repository_href: (required)
|
|
2704
|
+
:type npm_npm_repository_href: str
|
|
2705
|
+
:param repository_sync_url: (required)
|
|
2706
|
+
:type repository_sync_url: RepositorySyncURL
|
|
2707
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2708
|
+
:type x_task_diagnostics: List[str]
|
|
2709
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2710
|
+
number provided, it will be total request
|
|
2711
|
+
timeout. It can also be a pair (tuple) of
|
|
2712
|
+
(connection, read) timeouts.
|
|
2713
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2714
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2715
|
+
request; this effectively ignores the
|
|
2716
|
+
authentication in the spec for a single request.
|
|
2717
|
+
:type _request_auth: dict, optional
|
|
2718
|
+
:param _content_type: force content-type for the request.
|
|
2719
|
+
:type _content_type: str, Optional
|
|
2720
|
+
:param _headers: set to override the headers for a single
|
|
2721
|
+
request; this effectively ignores the headers
|
|
2722
|
+
in the spec for a single request.
|
|
2723
|
+
:type _headers: dict, optional
|
|
2724
|
+
:param _host_index: set to override the host_index for a single
|
|
2725
|
+
request; this effectively ignores the host_index
|
|
2726
|
+
in the spec for a single request.
|
|
2727
|
+
:type _host_index: int, optional
|
|
2728
|
+
:return: Returns the result object.
|
|
2729
|
+
""" # noqa: E501
|
|
2730
|
+
|
|
2731
|
+
_param = self._sync_serialize(
|
|
2732
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
2733
|
+
repository_sync_url=repository_sync_url,
|
|
2734
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2735
|
+
_request_auth=_request_auth,
|
|
2736
|
+
_content_type=_content_type,
|
|
2737
|
+
_headers=_headers,
|
|
2738
|
+
_host_index=_host_index
|
|
2739
|
+
)
|
|
2740
|
+
|
|
2741
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2742
|
+
'202': "AsyncOperationResponse",
|
|
2743
|
+
}
|
|
2744
|
+
response_data = self.api_client.call_api(
|
|
2745
|
+
*_param,
|
|
2746
|
+
_request_timeout=_request_timeout
|
|
2747
|
+
)
|
|
2748
|
+
response_data.read()
|
|
2749
|
+
return self.api_client.response_deserialize(
|
|
2750
|
+
response_data=response_data,
|
|
2751
|
+
response_types_map=_response_types_map,
|
|
2752
|
+
).data
|
|
2753
|
+
|
|
2754
|
+
|
|
2755
|
+
@validate_call
|
|
2756
|
+
def sync_with_http_info(
|
|
2757
|
+
self,
|
|
2758
|
+
npm_npm_repository_href: StrictStr,
|
|
2759
|
+
repository_sync_url: RepositorySyncURL,
|
|
2760
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2761
|
+
_request_timeout: Union[
|
|
2762
|
+
None,
|
|
2763
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2764
|
+
Tuple[
|
|
2765
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2766
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2767
|
+
]
|
|
2768
|
+
] = None,
|
|
2769
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2770
|
+
_content_type: Optional[StrictStr] = None,
|
|
2771
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2772
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2773
|
+
) -> ApiResponse[AsyncOperationResponse]:
|
|
2774
|
+
"""Sync from remote
|
|
2775
|
+
|
|
2776
|
+
Trigger an asynchronous task to sync content.
|
|
2777
|
+
|
|
2778
|
+
:param npm_npm_repository_href: (required)
|
|
2779
|
+
:type npm_npm_repository_href: str
|
|
2780
|
+
:param repository_sync_url: (required)
|
|
2781
|
+
:type repository_sync_url: RepositorySyncURL
|
|
2782
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2783
|
+
:type x_task_diagnostics: List[str]
|
|
2784
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2785
|
+
number provided, it will be total request
|
|
2786
|
+
timeout. It can also be a pair (tuple) of
|
|
2787
|
+
(connection, read) timeouts.
|
|
2788
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2789
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2790
|
+
request; this effectively ignores the
|
|
2791
|
+
authentication in the spec for a single request.
|
|
2792
|
+
:type _request_auth: dict, optional
|
|
2793
|
+
:param _content_type: force content-type for the request.
|
|
2794
|
+
:type _content_type: str, Optional
|
|
2795
|
+
:param _headers: set to override the headers for a single
|
|
2796
|
+
request; this effectively ignores the headers
|
|
2797
|
+
in the spec for a single request.
|
|
2798
|
+
:type _headers: dict, optional
|
|
2799
|
+
:param _host_index: set to override the host_index for a single
|
|
2800
|
+
request; this effectively ignores the host_index
|
|
2801
|
+
in the spec for a single request.
|
|
2802
|
+
:type _host_index: int, optional
|
|
2803
|
+
:return: Returns the result object.
|
|
2804
|
+
""" # noqa: E501
|
|
2805
|
+
|
|
2806
|
+
_param = self._sync_serialize(
|
|
2807
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
2808
|
+
repository_sync_url=repository_sync_url,
|
|
2809
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2810
|
+
_request_auth=_request_auth,
|
|
2811
|
+
_content_type=_content_type,
|
|
2812
|
+
_headers=_headers,
|
|
2813
|
+
_host_index=_host_index
|
|
2814
|
+
)
|
|
2815
|
+
|
|
2816
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2817
|
+
'202': "AsyncOperationResponse",
|
|
2818
|
+
}
|
|
2819
|
+
response_data = self.api_client.call_api(
|
|
2820
|
+
*_param,
|
|
2821
|
+
_request_timeout=_request_timeout
|
|
2822
|
+
)
|
|
2823
|
+
response_data.read()
|
|
2824
|
+
return self.api_client.response_deserialize(
|
|
2825
|
+
response_data=response_data,
|
|
2826
|
+
response_types_map=_response_types_map,
|
|
2827
|
+
)
|
|
2828
|
+
|
|
2829
|
+
|
|
2830
|
+
@validate_call
|
|
2831
|
+
def sync_without_preload_content(
|
|
2832
|
+
self,
|
|
2833
|
+
npm_npm_repository_href: StrictStr,
|
|
2834
|
+
repository_sync_url: RepositorySyncURL,
|
|
2835
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2836
|
+
_request_timeout: Union[
|
|
2837
|
+
None,
|
|
2838
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2839
|
+
Tuple[
|
|
2840
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2841
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2842
|
+
]
|
|
2843
|
+
] = None,
|
|
2844
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2845
|
+
_content_type: Optional[StrictStr] = None,
|
|
2846
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2847
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2848
|
+
) -> RESTResponseType:
|
|
2849
|
+
"""Sync from remote
|
|
2850
|
+
|
|
2851
|
+
Trigger an asynchronous task to sync content.
|
|
2852
|
+
|
|
2853
|
+
:param npm_npm_repository_href: (required)
|
|
2854
|
+
:type npm_npm_repository_href: str
|
|
2855
|
+
:param repository_sync_url: (required)
|
|
2856
|
+
:type repository_sync_url: RepositorySyncURL
|
|
2857
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2858
|
+
:type x_task_diagnostics: List[str]
|
|
2859
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2860
|
+
number provided, it will be total request
|
|
2861
|
+
timeout. It can also be a pair (tuple) of
|
|
2862
|
+
(connection, read) timeouts.
|
|
2863
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2864
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2865
|
+
request; this effectively ignores the
|
|
2866
|
+
authentication in the spec for a single request.
|
|
2867
|
+
:type _request_auth: dict, optional
|
|
2868
|
+
:param _content_type: force content-type for the request.
|
|
2869
|
+
:type _content_type: str, Optional
|
|
2870
|
+
:param _headers: set to override the headers for a single
|
|
2871
|
+
request; this effectively ignores the headers
|
|
2872
|
+
in the spec for a single request.
|
|
2873
|
+
:type _headers: dict, optional
|
|
2874
|
+
:param _host_index: set to override the host_index for a single
|
|
2875
|
+
request; this effectively ignores the host_index
|
|
2876
|
+
in the spec for a single request.
|
|
2877
|
+
:type _host_index: int, optional
|
|
2878
|
+
:return: Returns the result object.
|
|
2879
|
+
""" # noqa: E501
|
|
2880
|
+
|
|
2881
|
+
_param = self._sync_serialize(
|
|
2882
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
2883
|
+
repository_sync_url=repository_sync_url,
|
|
2884
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2885
|
+
_request_auth=_request_auth,
|
|
2886
|
+
_content_type=_content_type,
|
|
2887
|
+
_headers=_headers,
|
|
2888
|
+
_host_index=_host_index
|
|
2889
|
+
)
|
|
2890
|
+
|
|
2891
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2892
|
+
'202': "AsyncOperationResponse",
|
|
2893
|
+
}
|
|
2894
|
+
response_data = self.api_client.call_api(
|
|
2895
|
+
*_param,
|
|
2896
|
+
_request_timeout=_request_timeout
|
|
2897
|
+
)
|
|
2898
|
+
return response_data.response
|
|
2899
|
+
|
|
2900
|
+
|
|
2901
|
+
def _sync_serialize(
|
|
2902
|
+
self,
|
|
2903
|
+
npm_npm_repository_href,
|
|
2904
|
+
repository_sync_url,
|
|
2905
|
+
x_task_diagnostics,
|
|
2906
|
+
_request_auth,
|
|
2907
|
+
_content_type,
|
|
2908
|
+
_headers,
|
|
2909
|
+
_host_index,
|
|
2910
|
+
) -> RequestSerialized:
|
|
2911
|
+
|
|
2912
|
+
_host = None
|
|
2913
|
+
|
|
2914
|
+
_collection_formats: Dict[str, str] = {
|
|
2915
|
+
'X-Task-Diagnostics': 'csv',
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
_path_params: Dict[str, str] = {}
|
|
2919
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2920
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2921
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2922
|
+
_files: Dict[
|
|
2923
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2924
|
+
] = {}
|
|
2925
|
+
_body_params: Optional[bytes] = None
|
|
2926
|
+
|
|
2927
|
+
# process the path parameters
|
|
2928
|
+
if npm_npm_repository_href is not None:
|
|
2929
|
+
_path_params['npm_npm_repository_href'] = npm_npm_repository_href
|
|
2930
|
+
# process the query parameters
|
|
2931
|
+
# process the header parameters
|
|
2932
|
+
if x_task_diagnostics is not None:
|
|
2933
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2934
|
+
# process the form parameters
|
|
2935
|
+
# process the body parameter
|
|
2936
|
+
if repository_sync_url is not None:
|
|
2937
|
+
_body_params = repository_sync_url
|
|
2938
|
+
|
|
2939
|
+
|
|
2940
|
+
# set the HTTP header `Accept`
|
|
2941
|
+
if 'Accept' not in _header_params:
|
|
2942
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2943
|
+
[
|
|
2944
|
+
'application/json'
|
|
2945
|
+
]
|
|
2946
|
+
)
|
|
2947
|
+
|
|
2948
|
+
# set the HTTP header `Content-Type`
|
|
2949
|
+
if _content_type:
|
|
2950
|
+
_header_params['Content-Type'] = _content_type
|
|
2951
|
+
else:
|
|
2952
|
+
_default_content_type = (
|
|
2953
|
+
self.api_client.select_header_content_type(
|
|
2954
|
+
[
|
|
2955
|
+
'application/json',
|
|
2956
|
+
'application/x-www-form-urlencoded',
|
|
2957
|
+
'multipart/form-data'
|
|
2958
|
+
]
|
|
2959
|
+
)
|
|
2960
|
+
)
|
|
2961
|
+
if _default_content_type is not None:
|
|
2962
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2963
|
+
|
|
2964
|
+
# authentication setting
|
|
2965
|
+
_auth_settings: List[str] = [
|
|
2966
|
+
'json_header_remote_authentication',
|
|
2967
|
+
'basicAuth',
|
|
2968
|
+
'cookieAuth'
|
|
2969
|
+
]
|
|
2970
|
+
|
|
2971
|
+
return self.api_client.param_serialize(
|
|
2972
|
+
method='POST',
|
|
2973
|
+
resource_path='{npm_npm_repository_href}sync/',
|
|
2974
|
+
path_params=_path_params,
|
|
2975
|
+
query_params=_query_params,
|
|
2976
|
+
header_params=_header_params,
|
|
2977
|
+
body=_body_params,
|
|
2978
|
+
post_params=_form_params,
|
|
2979
|
+
files=_files,
|
|
2980
|
+
auth_settings=_auth_settings,
|
|
2981
|
+
collection_formats=_collection_formats,
|
|
2982
|
+
_host=_host,
|
|
2983
|
+
_request_auth=_request_auth
|
|
2984
|
+
)
|
|
2985
|
+
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
@validate_call
|
|
2990
|
+
def unset_label(
|
|
2991
|
+
self,
|
|
2992
|
+
npm_npm_repository_href: StrictStr,
|
|
2993
|
+
unset_label: UnsetLabel,
|
|
2994
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2995
|
+
_request_timeout: Union[
|
|
2996
|
+
None,
|
|
2997
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2998
|
+
Tuple[
|
|
2999
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3000
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3001
|
+
]
|
|
3002
|
+
] = None,
|
|
3003
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3004
|
+
_content_type: Optional[StrictStr] = None,
|
|
3005
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3006
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3007
|
+
) -> UnsetLabelResponse:
|
|
3008
|
+
"""Unset a label
|
|
3009
|
+
|
|
3010
|
+
Unset a single pulp_label on the object.
|
|
3011
|
+
|
|
3012
|
+
:param npm_npm_repository_href: (required)
|
|
3013
|
+
:type npm_npm_repository_href: str
|
|
3014
|
+
:param unset_label: (required)
|
|
3015
|
+
:type unset_label: UnsetLabel
|
|
3016
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3017
|
+
:type x_task_diagnostics: List[str]
|
|
3018
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3019
|
+
number provided, it will be total request
|
|
3020
|
+
timeout. It can also be a pair (tuple) of
|
|
3021
|
+
(connection, read) timeouts.
|
|
3022
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3023
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3024
|
+
request; this effectively ignores the
|
|
3025
|
+
authentication in the spec for a single request.
|
|
3026
|
+
:type _request_auth: dict, optional
|
|
3027
|
+
:param _content_type: force content-type for the request.
|
|
3028
|
+
:type _content_type: str, Optional
|
|
3029
|
+
:param _headers: set to override the headers for a single
|
|
3030
|
+
request; this effectively ignores the headers
|
|
3031
|
+
in the spec for a single request.
|
|
3032
|
+
:type _headers: dict, optional
|
|
3033
|
+
:param _host_index: set to override the host_index for a single
|
|
3034
|
+
request; this effectively ignores the host_index
|
|
3035
|
+
in the spec for a single request.
|
|
3036
|
+
:type _host_index: int, optional
|
|
3037
|
+
:return: Returns the result object.
|
|
3038
|
+
""" # noqa: E501
|
|
3039
|
+
|
|
3040
|
+
_param = self._unset_label_serialize(
|
|
3041
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
3042
|
+
unset_label=unset_label,
|
|
3043
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3044
|
+
_request_auth=_request_auth,
|
|
3045
|
+
_content_type=_content_type,
|
|
3046
|
+
_headers=_headers,
|
|
3047
|
+
_host_index=_host_index
|
|
3048
|
+
)
|
|
3049
|
+
|
|
3050
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3051
|
+
'201': "UnsetLabelResponse",
|
|
3052
|
+
}
|
|
3053
|
+
response_data = self.api_client.call_api(
|
|
3054
|
+
*_param,
|
|
3055
|
+
_request_timeout=_request_timeout
|
|
3056
|
+
)
|
|
3057
|
+
response_data.read()
|
|
3058
|
+
return self.api_client.response_deserialize(
|
|
3059
|
+
response_data=response_data,
|
|
3060
|
+
response_types_map=_response_types_map,
|
|
3061
|
+
).data
|
|
3062
|
+
|
|
3063
|
+
|
|
3064
|
+
@validate_call
|
|
3065
|
+
def unset_label_with_http_info(
|
|
3066
|
+
self,
|
|
3067
|
+
npm_npm_repository_href: StrictStr,
|
|
3068
|
+
unset_label: UnsetLabel,
|
|
3069
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3070
|
+
_request_timeout: Union[
|
|
3071
|
+
None,
|
|
3072
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3073
|
+
Tuple[
|
|
3074
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3075
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3076
|
+
]
|
|
3077
|
+
] = None,
|
|
3078
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3079
|
+
_content_type: Optional[StrictStr] = None,
|
|
3080
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3081
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3082
|
+
) -> ApiResponse[UnsetLabelResponse]:
|
|
3083
|
+
"""Unset a label
|
|
3084
|
+
|
|
3085
|
+
Unset a single pulp_label on the object.
|
|
3086
|
+
|
|
3087
|
+
:param npm_npm_repository_href: (required)
|
|
3088
|
+
:type npm_npm_repository_href: str
|
|
3089
|
+
:param unset_label: (required)
|
|
3090
|
+
:type unset_label: UnsetLabel
|
|
3091
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3092
|
+
:type x_task_diagnostics: List[str]
|
|
3093
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3094
|
+
number provided, it will be total request
|
|
3095
|
+
timeout. It can also be a pair (tuple) of
|
|
3096
|
+
(connection, read) timeouts.
|
|
3097
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3098
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3099
|
+
request; this effectively ignores the
|
|
3100
|
+
authentication in the spec for a single request.
|
|
3101
|
+
:type _request_auth: dict, optional
|
|
3102
|
+
:param _content_type: force content-type for the request.
|
|
3103
|
+
:type _content_type: str, Optional
|
|
3104
|
+
:param _headers: set to override the headers for a single
|
|
3105
|
+
request; this effectively ignores the headers
|
|
3106
|
+
in the spec for a single request.
|
|
3107
|
+
:type _headers: dict, optional
|
|
3108
|
+
:param _host_index: set to override the host_index for a single
|
|
3109
|
+
request; this effectively ignores the host_index
|
|
3110
|
+
in the spec for a single request.
|
|
3111
|
+
:type _host_index: int, optional
|
|
3112
|
+
:return: Returns the result object.
|
|
3113
|
+
""" # noqa: E501
|
|
3114
|
+
|
|
3115
|
+
_param = self._unset_label_serialize(
|
|
3116
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
3117
|
+
unset_label=unset_label,
|
|
3118
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3119
|
+
_request_auth=_request_auth,
|
|
3120
|
+
_content_type=_content_type,
|
|
3121
|
+
_headers=_headers,
|
|
3122
|
+
_host_index=_host_index
|
|
3123
|
+
)
|
|
3124
|
+
|
|
3125
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3126
|
+
'201': "UnsetLabelResponse",
|
|
3127
|
+
}
|
|
3128
|
+
response_data = self.api_client.call_api(
|
|
3129
|
+
*_param,
|
|
3130
|
+
_request_timeout=_request_timeout
|
|
3131
|
+
)
|
|
3132
|
+
response_data.read()
|
|
3133
|
+
return self.api_client.response_deserialize(
|
|
3134
|
+
response_data=response_data,
|
|
3135
|
+
response_types_map=_response_types_map,
|
|
3136
|
+
)
|
|
3137
|
+
|
|
3138
|
+
|
|
3139
|
+
@validate_call
|
|
3140
|
+
def unset_label_without_preload_content(
|
|
3141
|
+
self,
|
|
3142
|
+
npm_npm_repository_href: StrictStr,
|
|
3143
|
+
unset_label: UnsetLabel,
|
|
3144
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3145
|
+
_request_timeout: Union[
|
|
3146
|
+
None,
|
|
3147
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3148
|
+
Tuple[
|
|
3149
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3150
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3151
|
+
]
|
|
3152
|
+
] = None,
|
|
3153
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3154
|
+
_content_type: Optional[StrictStr] = None,
|
|
3155
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3156
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3157
|
+
) -> RESTResponseType:
|
|
3158
|
+
"""Unset a label
|
|
3159
|
+
|
|
3160
|
+
Unset a single pulp_label on the object.
|
|
3161
|
+
|
|
3162
|
+
:param npm_npm_repository_href: (required)
|
|
3163
|
+
:type npm_npm_repository_href: str
|
|
3164
|
+
:param unset_label: (required)
|
|
3165
|
+
:type unset_label: UnsetLabel
|
|
3166
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3167
|
+
:type x_task_diagnostics: List[str]
|
|
3168
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3169
|
+
number provided, it will be total request
|
|
3170
|
+
timeout. It can also be a pair (tuple) of
|
|
3171
|
+
(connection, read) timeouts.
|
|
3172
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3173
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3174
|
+
request; this effectively ignores the
|
|
3175
|
+
authentication in the spec for a single request.
|
|
3176
|
+
:type _request_auth: dict, optional
|
|
3177
|
+
:param _content_type: force content-type for the request.
|
|
3178
|
+
:type _content_type: str, Optional
|
|
3179
|
+
:param _headers: set to override the headers for a single
|
|
3180
|
+
request; this effectively ignores the headers
|
|
3181
|
+
in the spec for a single request.
|
|
3182
|
+
:type _headers: dict, optional
|
|
3183
|
+
:param _host_index: set to override the host_index for a single
|
|
3184
|
+
request; this effectively ignores the host_index
|
|
3185
|
+
in the spec for a single request.
|
|
3186
|
+
:type _host_index: int, optional
|
|
3187
|
+
:return: Returns the result object.
|
|
3188
|
+
""" # noqa: E501
|
|
3189
|
+
|
|
3190
|
+
_param = self._unset_label_serialize(
|
|
3191
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
3192
|
+
unset_label=unset_label,
|
|
3193
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3194
|
+
_request_auth=_request_auth,
|
|
3195
|
+
_content_type=_content_type,
|
|
3196
|
+
_headers=_headers,
|
|
3197
|
+
_host_index=_host_index
|
|
3198
|
+
)
|
|
3199
|
+
|
|
3200
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3201
|
+
'201': "UnsetLabelResponse",
|
|
3202
|
+
}
|
|
3203
|
+
response_data = self.api_client.call_api(
|
|
3204
|
+
*_param,
|
|
3205
|
+
_request_timeout=_request_timeout
|
|
3206
|
+
)
|
|
3207
|
+
return response_data.response
|
|
3208
|
+
|
|
3209
|
+
|
|
3210
|
+
def _unset_label_serialize(
|
|
3211
|
+
self,
|
|
3212
|
+
npm_npm_repository_href,
|
|
3213
|
+
unset_label,
|
|
3214
|
+
x_task_diagnostics,
|
|
3215
|
+
_request_auth,
|
|
3216
|
+
_content_type,
|
|
3217
|
+
_headers,
|
|
3218
|
+
_host_index,
|
|
3219
|
+
) -> RequestSerialized:
|
|
3220
|
+
|
|
3221
|
+
_host = None
|
|
3222
|
+
|
|
3223
|
+
_collection_formats: Dict[str, str] = {
|
|
3224
|
+
'X-Task-Diagnostics': 'csv',
|
|
3225
|
+
}
|
|
3226
|
+
|
|
3227
|
+
_path_params: Dict[str, str] = {}
|
|
3228
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3229
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3230
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3231
|
+
_files: Dict[
|
|
3232
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3233
|
+
] = {}
|
|
3234
|
+
_body_params: Optional[bytes] = None
|
|
3235
|
+
|
|
3236
|
+
# process the path parameters
|
|
3237
|
+
if npm_npm_repository_href is not None:
|
|
3238
|
+
_path_params['npm_npm_repository_href'] = npm_npm_repository_href
|
|
3239
|
+
# process the query parameters
|
|
3240
|
+
# process the header parameters
|
|
3241
|
+
if x_task_diagnostics is not None:
|
|
3242
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3243
|
+
# process the form parameters
|
|
3244
|
+
# process the body parameter
|
|
3245
|
+
if unset_label is not None:
|
|
3246
|
+
_body_params = unset_label
|
|
3247
|
+
|
|
3248
|
+
|
|
3249
|
+
# set the HTTP header `Accept`
|
|
3250
|
+
if 'Accept' not in _header_params:
|
|
3251
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3252
|
+
[
|
|
3253
|
+
'application/json'
|
|
3254
|
+
]
|
|
3255
|
+
)
|
|
3256
|
+
|
|
3257
|
+
# set the HTTP header `Content-Type`
|
|
3258
|
+
if _content_type:
|
|
3259
|
+
_header_params['Content-Type'] = _content_type
|
|
3260
|
+
else:
|
|
3261
|
+
_default_content_type = (
|
|
3262
|
+
self.api_client.select_header_content_type(
|
|
3263
|
+
[
|
|
3264
|
+
'application/json',
|
|
3265
|
+
'application/x-www-form-urlencoded',
|
|
3266
|
+
'multipart/form-data'
|
|
3267
|
+
]
|
|
3268
|
+
)
|
|
3269
|
+
)
|
|
3270
|
+
if _default_content_type is not None:
|
|
3271
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3272
|
+
|
|
3273
|
+
# authentication setting
|
|
3274
|
+
_auth_settings: List[str] = [
|
|
3275
|
+
'json_header_remote_authentication',
|
|
3276
|
+
'basicAuth',
|
|
3277
|
+
'cookieAuth'
|
|
3278
|
+
]
|
|
3279
|
+
|
|
3280
|
+
return self.api_client.param_serialize(
|
|
3281
|
+
method='POST',
|
|
3282
|
+
resource_path='{npm_npm_repository_href}unset_label/',
|
|
3283
|
+
path_params=_path_params,
|
|
3284
|
+
query_params=_query_params,
|
|
3285
|
+
header_params=_header_params,
|
|
3286
|
+
body=_body_params,
|
|
3287
|
+
post_params=_form_params,
|
|
3288
|
+
files=_files,
|
|
3289
|
+
auth_settings=_auth_settings,
|
|
3290
|
+
collection_formats=_collection_formats,
|
|
3291
|
+
_host=_host,
|
|
3292
|
+
_request_auth=_request_auth
|
|
3293
|
+
)
|
|
3294
|
+
|
|
3295
|
+
|
|
3296
|
+
|
|
3297
|
+
|
|
3298
|
+
@validate_call
|
|
3299
|
+
def update(
|
|
3300
|
+
self,
|
|
3301
|
+
npm_npm_repository_href: StrictStr,
|
|
3302
|
+
npm_npm_repository: NpmNpmRepository,
|
|
3303
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3304
|
+
_request_timeout: Union[
|
|
3305
|
+
None,
|
|
3306
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3307
|
+
Tuple[
|
|
3308
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3309
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3310
|
+
]
|
|
3311
|
+
] = None,
|
|
3312
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3313
|
+
_content_type: Optional[StrictStr] = None,
|
|
3314
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3315
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3316
|
+
) -> AsyncOperationResponse:
|
|
3317
|
+
"""Update a npm repository
|
|
3318
|
+
|
|
3319
|
+
Trigger an asynchronous update task
|
|
3320
|
+
|
|
3321
|
+
:param npm_npm_repository_href: (required)
|
|
3322
|
+
:type npm_npm_repository_href: str
|
|
3323
|
+
:param npm_npm_repository: (required)
|
|
3324
|
+
:type npm_npm_repository: NpmNpmRepository
|
|
3325
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3326
|
+
:type x_task_diagnostics: List[str]
|
|
3327
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3328
|
+
number provided, it will be total request
|
|
3329
|
+
timeout. It can also be a pair (tuple) of
|
|
3330
|
+
(connection, read) timeouts.
|
|
3331
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3332
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3333
|
+
request; this effectively ignores the
|
|
3334
|
+
authentication in the spec for a single request.
|
|
3335
|
+
:type _request_auth: dict, optional
|
|
3336
|
+
:param _content_type: force content-type for the request.
|
|
3337
|
+
:type _content_type: str, Optional
|
|
3338
|
+
:param _headers: set to override the headers for a single
|
|
3339
|
+
request; this effectively ignores the headers
|
|
3340
|
+
in the spec for a single request.
|
|
3341
|
+
:type _headers: dict, optional
|
|
3342
|
+
:param _host_index: set to override the host_index for a single
|
|
3343
|
+
request; this effectively ignores the host_index
|
|
3344
|
+
in the spec for a single request.
|
|
3345
|
+
:type _host_index: int, optional
|
|
3346
|
+
:return: Returns the result object.
|
|
3347
|
+
""" # noqa: E501
|
|
3348
|
+
|
|
3349
|
+
_param = self._update_serialize(
|
|
3350
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
3351
|
+
npm_npm_repository=npm_npm_repository,
|
|
3352
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3353
|
+
_request_auth=_request_auth,
|
|
3354
|
+
_content_type=_content_type,
|
|
3355
|
+
_headers=_headers,
|
|
3356
|
+
_host_index=_host_index
|
|
3357
|
+
)
|
|
3358
|
+
|
|
3359
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3360
|
+
'202': "AsyncOperationResponse",
|
|
3361
|
+
}
|
|
3362
|
+
response_data = self.api_client.call_api(
|
|
3363
|
+
*_param,
|
|
3364
|
+
_request_timeout=_request_timeout
|
|
3365
|
+
)
|
|
3366
|
+
response_data.read()
|
|
3367
|
+
return self.api_client.response_deserialize(
|
|
3368
|
+
response_data=response_data,
|
|
3369
|
+
response_types_map=_response_types_map,
|
|
3370
|
+
).data
|
|
3371
|
+
|
|
3372
|
+
|
|
3373
|
+
@validate_call
|
|
3374
|
+
def update_with_http_info(
|
|
3375
|
+
self,
|
|
3376
|
+
npm_npm_repository_href: StrictStr,
|
|
3377
|
+
npm_npm_repository: NpmNpmRepository,
|
|
3378
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3379
|
+
_request_timeout: Union[
|
|
3380
|
+
None,
|
|
3381
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3382
|
+
Tuple[
|
|
3383
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3384
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3385
|
+
]
|
|
3386
|
+
] = None,
|
|
3387
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3388
|
+
_content_type: Optional[StrictStr] = None,
|
|
3389
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3390
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3391
|
+
) -> ApiResponse[AsyncOperationResponse]:
|
|
3392
|
+
"""Update a npm repository
|
|
3393
|
+
|
|
3394
|
+
Trigger an asynchronous update task
|
|
3395
|
+
|
|
3396
|
+
:param npm_npm_repository_href: (required)
|
|
3397
|
+
:type npm_npm_repository_href: str
|
|
3398
|
+
:param npm_npm_repository: (required)
|
|
3399
|
+
:type npm_npm_repository: NpmNpmRepository
|
|
3400
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3401
|
+
:type x_task_diagnostics: List[str]
|
|
3402
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3403
|
+
number provided, it will be total request
|
|
3404
|
+
timeout. It can also be a pair (tuple) of
|
|
3405
|
+
(connection, read) timeouts.
|
|
3406
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3407
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3408
|
+
request; this effectively ignores the
|
|
3409
|
+
authentication in the spec for a single request.
|
|
3410
|
+
:type _request_auth: dict, optional
|
|
3411
|
+
:param _content_type: force content-type for the request.
|
|
3412
|
+
:type _content_type: str, Optional
|
|
3413
|
+
:param _headers: set to override the headers for a single
|
|
3414
|
+
request; this effectively ignores the headers
|
|
3415
|
+
in the spec for a single request.
|
|
3416
|
+
:type _headers: dict, optional
|
|
3417
|
+
:param _host_index: set to override the host_index for a single
|
|
3418
|
+
request; this effectively ignores the host_index
|
|
3419
|
+
in the spec for a single request.
|
|
3420
|
+
:type _host_index: int, optional
|
|
3421
|
+
:return: Returns the result object.
|
|
3422
|
+
""" # noqa: E501
|
|
3423
|
+
|
|
3424
|
+
_param = self._update_serialize(
|
|
3425
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
3426
|
+
npm_npm_repository=npm_npm_repository,
|
|
3427
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3428
|
+
_request_auth=_request_auth,
|
|
3429
|
+
_content_type=_content_type,
|
|
3430
|
+
_headers=_headers,
|
|
3431
|
+
_host_index=_host_index
|
|
3432
|
+
)
|
|
3433
|
+
|
|
3434
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3435
|
+
'202': "AsyncOperationResponse",
|
|
3436
|
+
}
|
|
3437
|
+
response_data = self.api_client.call_api(
|
|
3438
|
+
*_param,
|
|
3439
|
+
_request_timeout=_request_timeout
|
|
3440
|
+
)
|
|
3441
|
+
response_data.read()
|
|
3442
|
+
return self.api_client.response_deserialize(
|
|
3443
|
+
response_data=response_data,
|
|
3444
|
+
response_types_map=_response_types_map,
|
|
3445
|
+
)
|
|
3446
|
+
|
|
3447
|
+
|
|
3448
|
+
@validate_call
|
|
3449
|
+
def update_without_preload_content(
|
|
3450
|
+
self,
|
|
3451
|
+
npm_npm_repository_href: StrictStr,
|
|
3452
|
+
npm_npm_repository: NpmNpmRepository,
|
|
3453
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3454
|
+
_request_timeout: Union[
|
|
3455
|
+
None,
|
|
3456
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3457
|
+
Tuple[
|
|
3458
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3459
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3460
|
+
]
|
|
3461
|
+
] = None,
|
|
3462
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3463
|
+
_content_type: Optional[StrictStr] = None,
|
|
3464
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3465
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3466
|
+
) -> RESTResponseType:
|
|
3467
|
+
"""Update a npm repository
|
|
3468
|
+
|
|
3469
|
+
Trigger an asynchronous update task
|
|
3470
|
+
|
|
3471
|
+
:param npm_npm_repository_href: (required)
|
|
3472
|
+
:type npm_npm_repository_href: str
|
|
3473
|
+
:param npm_npm_repository: (required)
|
|
3474
|
+
:type npm_npm_repository: NpmNpmRepository
|
|
3475
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3476
|
+
:type x_task_diagnostics: List[str]
|
|
3477
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3478
|
+
number provided, it will be total request
|
|
3479
|
+
timeout. It can also be a pair (tuple) of
|
|
3480
|
+
(connection, read) timeouts.
|
|
3481
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3482
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3483
|
+
request; this effectively ignores the
|
|
3484
|
+
authentication in the spec for a single request.
|
|
3485
|
+
:type _request_auth: dict, optional
|
|
3486
|
+
:param _content_type: force content-type for the request.
|
|
3487
|
+
:type _content_type: str, Optional
|
|
3488
|
+
:param _headers: set to override the headers for a single
|
|
3489
|
+
request; this effectively ignores the headers
|
|
3490
|
+
in the spec for a single request.
|
|
3491
|
+
:type _headers: dict, optional
|
|
3492
|
+
:param _host_index: set to override the host_index for a single
|
|
3493
|
+
request; this effectively ignores the host_index
|
|
3494
|
+
in the spec for a single request.
|
|
3495
|
+
:type _host_index: int, optional
|
|
3496
|
+
:return: Returns the result object.
|
|
3497
|
+
""" # noqa: E501
|
|
3498
|
+
|
|
3499
|
+
_param = self._update_serialize(
|
|
3500
|
+
npm_npm_repository_href=npm_npm_repository_href,
|
|
3501
|
+
npm_npm_repository=npm_npm_repository,
|
|
3502
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3503
|
+
_request_auth=_request_auth,
|
|
3504
|
+
_content_type=_content_type,
|
|
3505
|
+
_headers=_headers,
|
|
3506
|
+
_host_index=_host_index
|
|
3507
|
+
)
|
|
3508
|
+
|
|
3509
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3510
|
+
'202': "AsyncOperationResponse",
|
|
3511
|
+
}
|
|
3512
|
+
response_data = self.api_client.call_api(
|
|
3513
|
+
*_param,
|
|
3514
|
+
_request_timeout=_request_timeout
|
|
3515
|
+
)
|
|
3516
|
+
return response_data.response
|
|
3517
|
+
|
|
3518
|
+
|
|
3519
|
+
def _update_serialize(
|
|
3520
|
+
self,
|
|
3521
|
+
npm_npm_repository_href,
|
|
3522
|
+
npm_npm_repository,
|
|
3523
|
+
x_task_diagnostics,
|
|
3524
|
+
_request_auth,
|
|
3525
|
+
_content_type,
|
|
3526
|
+
_headers,
|
|
3527
|
+
_host_index,
|
|
3528
|
+
) -> RequestSerialized:
|
|
3529
|
+
|
|
3530
|
+
_host = None
|
|
3531
|
+
|
|
3532
|
+
_collection_formats: Dict[str, str] = {
|
|
3533
|
+
'X-Task-Diagnostics': 'csv',
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3536
|
+
_path_params: Dict[str, str] = {}
|
|
3537
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3538
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3539
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3540
|
+
_files: Dict[
|
|
3541
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3542
|
+
] = {}
|
|
3543
|
+
_body_params: Optional[bytes] = None
|
|
3544
|
+
|
|
3545
|
+
# process the path parameters
|
|
3546
|
+
if npm_npm_repository_href is not None:
|
|
3547
|
+
_path_params['npm_npm_repository_href'] = npm_npm_repository_href
|
|
3548
|
+
# process the query parameters
|
|
3549
|
+
# process the header parameters
|
|
3550
|
+
if x_task_diagnostics is not None:
|
|
3551
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3552
|
+
# process the form parameters
|
|
3553
|
+
# process the body parameter
|
|
3554
|
+
if npm_npm_repository is not None:
|
|
3555
|
+
_body_params = npm_npm_repository
|
|
3556
|
+
|
|
3557
|
+
|
|
3558
|
+
# set the HTTP header `Accept`
|
|
3559
|
+
if 'Accept' not in _header_params:
|
|
3560
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3561
|
+
[
|
|
3562
|
+
'application/json'
|
|
3563
|
+
]
|
|
3564
|
+
)
|
|
3565
|
+
|
|
3566
|
+
# set the HTTP header `Content-Type`
|
|
3567
|
+
if _content_type:
|
|
3568
|
+
_header_params['Content-Type'] = _content_type
|
|
3569
|
+
else:
|
|
3570
|
+
_default_content_type = (
|
|
3571
|
+
self.api_client.select_header_content_type(
|
|
3572
|
+
[
|
|
3573
|
+
'application/json',
|
|
3574
|
+
'application/x-www-form-urlencoded',
|
|
3575
|
+
'multipart/form-data'
|
|
3576
|
+
]
|
|
3577
|
+
)
|
|
3578
|
+
)
|
|
3579
|
+
if _default_content_type is not None:
|
|
3580
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3581
|
+
|
|
3582
|
+
# authentication setting
|
|
3583
|
+
_auth_settings: List[str] = [
|
|
3584
|
+
'json_header_remote_authentication',
|
|
3585
|
+
'basicAuth',
|
|
3586
|
+
'cookieAuth'
|
|
3587
|
+
]
|
|
3588
|
+
|
|
3589
|
+
return self.api_client.param_serialize(
|
|
3590
|
+
method='PUT',
|
|
3591
|
+
resource_path='{npm_npm_repository_href}',
|
|
3592
|
+
path_params=_path_params,
|
|
3593
|
+
query_params=_query_params,
|
|
3594
|
+
header_params=_header_params,
|
|
3595
|
+
body=_body_params,
|
|
3596
|
+
post_params=_form_params,
|
|
3597
|
+
files=_files,
|
|
3598
|
+
auth_settings=_auth_settings,
|
|
3599
|
+
collection_formats=_collection_formats,
|
|
3600
|
+
_host=_host,
|
|
3601
|
+
_request_auth=_request_auth
|
|
3602
|
+
)
|
|
3603
|
+
|
|
3604
|
+
|