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.

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