crc-pulp-python-client 20250819.1__py3-none-any.whl → 20250820.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of crc-pulp-python-client might be problematic. Click here for more details.

Files changed (74) hide show
  1. crc-pulp_python-client/api/__init__.py +3 -3
  2. crc-pulp_python-client/api/content_packages_api.py +261 -201
  3. crc-pulp_python-client/api/{api_pypi_api.py → pypi_api.py} +2 -2
  4. crc-pulp_python-client/api/{api_pypi_legacy_api.py → pypi_legacy_api.py} +2 -2
  5. crc-pulp_python-client/api/pypi_metadata_api.py +1 -1
  6. crc-pulp_python-client/api/{api_pypi_simple_api.py → pypi_simple_api.py} +4 -4
  7. crc-pulp_python-client/api/repositories_python_api.py +279 -0
  8. crc-pulp_python-client/api_client.py +1 -1
  9. crc-pulp_python-client/configuration.py +3 -3
  10. crc-pulp_python-client/models/python_python_package_content_response.py +80 -53
  11. {crc_pulp_python_client-20250819.1.dist-info → crc_pulp_python_client-20250820.1.dist-info}/METADATA +1 -1
  12. crc_pulp_python_client-20250820.1.dist-info/RECORD +62 -0
  13. crc_pulp_python_client-20250820.1.dist-info/top_level.txt +1 -0
  14. crc_pulp_python_client-20250819.1.dist-info/RECORD +0 -120
  15. crc_pulp_python_client-20250819.1.dist-info/top_level.txt +0 -2
  16. services-pulp_python-client/__init__.py +0 -2
  17. services-pulp_python-client/api/__init__.py +0 -14
  18. services-pulp_python-client/api/api_pypi_api.py +0 -370
  19. services-pulp_python-client/api/api_pypi_legacy_api.py +0 -393
  20. services-pulp_python-client/api/api_pypi_simple_api.py +0 -1045
  21. services-pulp_python-client/api/content_packages_api.py +0 -2594
  22. services-pulp_python-client/api/distributions_pypi_api.py +0 -4186
  23. services-pulp_python-client/api/publications_pypi_api.py +0 -2881
  24. services-pulp_python-client/api/pypi_metadata_api.py +0 -385
  25. services-pulp_python-client/api/remotes_python_api.py +0 -4552
  26. services-pulp_python-client/api/repositories_python_api.py +0 -4856
  27. services-pulp_python-client/api/repositories_python_versions_api.py +0 -1670
  28. services-pulp_python-client/api_client.py +0 -798
  29. services-pulp_python-client/api_response.py +0 -21
  30. services-pulp_python-client/configuration.py +0 -628
  31. services-pulp_python-client/exceptions.py +0 -200
  32. services-pulp_python-client/models/__init__.py +0 -56
  33. services-pulp_python-client/models/async_operation_response.py +0 -88
  34. services-pulp_python-client/models/content_summary_response.py +0 -92
  35. services-pulp_python-client/models/exclude_platforms_enum.py +0 -40
  36. services-pulp_python-client/models/my_permissions_response.py +0 -88
  37. services-pulp_python-client/models/nested_role.py +0 -93
  38. services-pulp_python-client/models/nested_role_response.py +0 -92
  39. services-pulp_python-client/models/object_roles_response.py +0 -96
  40. services-pulp_python-client/models/package_metadata_response.py +0 -109
  41. services-pulp_python-client/models/package_types_enum.py +0 -44
  42. services-pulp_python-client/models/package_upload_task_response.py +0 -103
  43. services-pulp_python-client/models/paginated_repository_version_response_list.py +0 -112
  44. services-pulp_python-client/models/paginatedpython_python_distribution_response_list.py +0 -112
  45. services-pulp_python-client/models/paginatedpython_python_package_content_response_list.py +0 -112
  46. services-pulp_python-client/models/paginatedpython_python_publication_response_list.py +0 -112
  47. services-pulp_python-client/models/paginatedpython_python_remote_response_list.py +0 -112
  48. services-pulp_python-client/models/paginatedpython_python_repository_response_list.py +0 -112
  49. services-pulp_python-client/models/patchedpython_python_distribution.py +0 -125
  50. services-pulp_python-client/models/patchedpython_python_remote.py +0 -219
  51. services-pulp_python-client/models/patchedpython_python_repository.py +0 -114
  52. services-pulp_python-client/models/policy_enum.py +0 -39
  53. services-pulp_python-client/models/python_python_distribution.py +0 -125
  54. services-pulp_python-client/models/python_python_distribution_response.py +0 -149
  55. services-pulp_python-client/models/python_python_package_content_response.py +0 -201
  56. services-pulp_python-client/models/python_python_publication.py +0 -90
  57. services-pulp_python-client/models/python_python_publication_response.py +0 -111
  58. services-pulp_python-client/models/python_python_remote.py +0 -219
  59. services-pulp_python-client/models/python_python_remote_response.py +0 -213
  60. services-pulp_python-client/models/python_python_remote_response_hidden_fields_inner.py +0 -90
  61. services-pulp_python-client/models/python_python_repository.py +0 -114
  62. services-pulp_python-client/models/python_python_repository_response.py +0 -139
  63. services-pulp_python-client/models/repair.py +0 -88
  64. services-pulp_python-client/models/repository_add_remove_content.py +0 -93
  65. services-pulp_python-client/models/repository_sync_url.py +0 -90
  66. services-pulp_python-client/models/repository_version_response.py +0 -121
  67. services-pulp_python-client/models/set_label.py +0 -103
  68. services-pulp_python-client/models/set_label_response.py +0 -103
  69. services-pulp_python-client/models/summary_response.py +0 -92
  70. services-pulp_python-client/models/unset_label.py +0 -96
  71. services-pulp_python-client/models/unset_label_response.py +0 -100
  72. services-pulp_python-client/py.typed +0 -0
  73. services-pulp_python-client/rest.py +0 -258
  74. {crc_pulp_python_client-20250819.1.dist-info → crc_pulp_python_client-20250820.1.dist-info}/WHEEL +0 -0
@@ -1,1045 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- Fetch, Upload, Organize, and Distribute Software Packages
7
-
8
- The version of the OpenAPI document: v3
9
- Contact: pulp-list@redhat.com
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
11
-
12
- Do not edit the class manually.
13
- """ # noqa: E501
14
-
15
- import warnings
16
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
- from typing import Any, Dict, List, Optional, Tuple, Union
18
- from typing_extensions import Annotated
19
-
20
- from pydantic import Field, StrictBytes, StrictStr
21
- from typing import List, Optional, Tuple, Union
22
- from typing_extensions import Annotated
23
- from services-pulp_python-client.models.package_upload_task_response import PackageUploadTaskResponse
24
-
25
- from services-pulp_python-client.api_client import ApiClient, RequestSerialized
26
- from services-pulp_python-client.api_response import ApiResponse
27
- from services-pulp_python-client.rest import RESTResponseType
28
-
29
-
30
- class ApiPypiSimpleApi:
31
- """NOTE: This class is auto generated by OpenAPI Generator
32
- Ref: https://openapi-generator.tech
33
-
34
- Do not edit the class manually.
35
- """
36
-
37
- def __init__(self, api_client=None) -> None:
38
- if api_client is None:
39
- api_client = ApiClient.get_default()
40
- self.api_client = api_client
41
-
42
-
43
- @validate_call
44
- def create(
45
- self,
46
- path: StrictStr,
47
- content: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="A Python package release file to upload to the index.")],
48
- sha256_digest: Annotated[str, Field(min_length=64, strict=True, max_length=64, description="SHA256 of package to validate upload integrity.")],
49
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
50
- action: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="Defaults to `file_upload`, don't change it or request will fail!")] = None,
51
- pulp_domain: StrictStr = "default",
52
- _request_timeout: Union[
53
- None,
54
- Annotated[StrictFloat, Field(gt=0)],
55
- Tuple[
56
- Annotated[StrictFloat, Field(gt=0)],
57
- Annotated[StrictFloat, Field(gt=0)]
58
- ]
59
- ] = None,
60
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
61
- _content_type: Optional[StrictStr] = None,
62
- _headers: Optional[Dict[StrictStr, Any]] = None,
63
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
64
- ) -> PackageUploadTaskResponse:
65
- """Upload a package
66
-
67
- Upload package to the index. This endpoint has the same functionality as the upload endpoint at the `/legacy` url of the index. This is provided for convenience for users who want a single index url for all their Python tools. (pip, twine, poetry, pipenv, ...)
68
-
69
- :param path: (required)
70
- :type path: str
71
- :param pulp_domain: (required)
72
- :type pulp_domain: str
73
- :param content: A Python package release file to upload to the index. (required)
74
- :type content: bytearray
75
- :param sha256_digest: SHA256 of package to validate upload integrity. (required)
76
- :type sha256_digest: str
77
- :param x_task_diagnostics: List of profilers to use on tasks.
78
- :type x_task_diagnostics: List[str]
79
- :param action: Defaults to `file_upload`, don't change it or request will fail!
80
- :type action: 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
- path=path,
105
- pulp_domain=pulp_domain,
106
- content=content,
107
- sha256_digest=sha256_digest,
108
- x_task_diagnostics=x_task_diagnostics,
109
- action=action,
110
- _request_auth=_request_auth,
111
- _content_type=_content_type,
112
- _headers=_headers,
113
- _host_index=_host_index
114
- )
115
-
116
- _response_types_map: Dict[str, Optional[str]] = {
117
- '200': "PackageUploadTaskResponse",
118
- }
119
- response_data = self.api_client.call_api(
120
- *_param,
121
- _request_timeout=_request_timeout
122
- )
123
- response_data.read()
124
- return self.api_client.response_deserialize(
125
- response_data=response_data,
126
- response_types_map=_response_types_map,
127
- ).data
128
-
129
-
130
- @validate_call
131
- def create_with_http_info(
132
- self,
133
- path: StrictStr,
134
- content: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="A Python package release file to upload to the index.")],
135
- sha256_digest: Annotated[str, Field(min_length=64, strict=True, max_length=64, description="SHA256 of package to validate upload integrity.")],
136
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
137
- action: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="Defaults to `file_upload`, don't change it or request will fail!")] = None,
138
- pulp_domain: StrictStr = "default",
139
- _request_timeout: Union[
140
- None,
141
- Annotated[StrictFloat, Field(gt=0)],
142
- Tuple[
143
- Annotated[StrictFloat, Field(gt=0)],
144
- Annotated[StrictFloat, Field(gt=0)]
145
- ]
146
- ] = None,
147
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
148
- _content_type: Optional[StrictStr] = None,
149
- _headers: Optional[Dict[StrictStr, Any]] = None,
150
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
151
- ) -> ApiResponse[PackageUploadTaskResponse]:
152
- """Upload a package
153
-
154
- Upload package to the index. This endpoint has the same functionality as the upload endpoint at the `/legacy` url of the index. This is provided for convenience for users who want a single index url for all their Python tools. (pip, twine, poetry, pipenv, ...)
155
-
156
- :param path: (required)
157
- :type path: str
158
- :param pulp_domain: (required)
159
- :type pulp_domain: str
160
- :param content: A Python package release file to upload to the index. (required)
161
- :type content: bytearray
162
- :param sha256_digest: SHA256 of package to validate upload integrity. (required)
163
- :type sha256_digest: str
164
- :param x_task_diagnostics: List of profilers to use on tasks.
165
- :type x_task_diagnostics: List[str]
166
- :param action: Defaults to `file_upload`, don't change it or request will fail!
167
- :type action: str
168
- :param _request_timeout: timeout setting for this request. If one
169
- number provided, it will be total request
170
- timeout. It can also be a pair (tuple) of
171
- (connection, read) timeouts.
172
- :type _request_timeout: int, tuple(int, int), optional
173
- :param _request_auth: set to override the auth_settings for an a single
174
- request; this effectively ignores the
175
- authentication in the spec for a single request.
176
- :type _request_auth: dict, optional
177
- :param _content_type: force content-type for the request.
178
- :type _content_type: str, Optional
179
- :param _headers: set to override the headers for a single
180
- request; this effectively ignores the headers
181
- in the spec for a single request.
182
- :type _headers: dict, optional
183
- :param _host_index: set to override the host_index for a single
184
- request; this effectively ignores the host_index
185
- in the spec for a single request.
186
- :type _host_index: int, optional
187
- :return: Returns the result object.
188
- """ # noqa: E501
189
-
190
- _param = self._create_serialize(
191
- path=path,
192
- pulp_domain=pulp_domain,
193
- content=content,
194
- sha256_digest=sha256_digest,
195
- x_task_diagnostics=x_task_diagnostics,
196
- action=action,
197
- _request_auth=_request_auth,
198
- _content_type=_content_type,
199
- _headers=_headers,
200
- _host_index=_host_index
201
- )
202
-
203
- _response_types_map: Dict[str, Optional[str]] = {
204
- '200': "PackageUploadTaskResponse",
205
- }
206
- response_data = self.api_client.call_api(
207
- *_param,
208
- _request_timeout=_request_timeout
209
- )
210
- response_data.read()
211
- return self.api_client.response_deserialize(
212
- response_data=response_data,
213
- response_types_map=_response_types_map,
214
- )
215
-
216
-
217
- @validate_call
218
- def create_without_preload_content(
219
- self,
220
- path: StrictStr,
221
- content: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="A Python package release file to upload to the index.")],
222
- sha256_digest: Annotated[str, Field(min_length=64, strict=True, max_length=64, description="SHA256 of package to validate upload integrity.")],
223
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
224
- action: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="Defaults to `file_upload`, don't change it or request will fail!")] = None,
225
- pulp_domain: StrictStr = "default",
226
- _request_timeout: Union[
227
- None,
228
- Annotated[StrictFloat, Field(gt=0)],
229
- Tuple[
230
- Annotated[StrictFloat, Field(gt=0)],
231
- Annotated[StrictFloat, Field(gt=0)]
232
- ]
233
- ] = None,
234
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
235
- _content_type: Optional[StrictStr] = None,
236
- _headers: Optional[Dict[StrictStr, Any]] = None,
237
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
238
- ) -> RESTResponseType:
239
- """Upload a package
240
-
241
- Upload package to the index. This endpoint has the same functionality as the upload endpoint at the `/legacy` url of the index. This is provided for convenience for users who want a single index url for all their Python tools. (pip, twine, poetry, pipenv, ...)
242
-
243
- :param path: (required)
244
- :type path: str
245
- :param pulp_domain: (required)
246
- :type pulp_domain: str
247
- :param content: A Python package release file to upload to the index. (required)
248
- :type content: bytearray
249
- :param sha256_digest: SHA256 of package to validate upload integrity. (required)
250
- :type sha256_digest: str
251
- :param x_task_diagnostics: List of profilers to use on tasks.
252
- :type x_task_diagnostics: List[str]
253
- :param action: Defaults to `file_upload`, don't change it or request will fail!
254
- :type action: str
255
- :param _request_timeout: timeout setting for this request. If one
256
- number provided, it will be total request
257
- timeout. It can also be a pair (tuple) of
258
- (connection, read) timeouts.
259
- :type _request_timeout: int, tuple(int, int), optional
260
- :param _request_auth: set to override the auth_settings for an a single
261
- request; this effectively ignores the
262
- authentication in the spec for a single request.
263
- :type _request_auth: dict, optional
264
- :param _content_type: force content-type for the request.
265
- :type _content_type: str, Optional
266
- :param _headers: set to override the headers for a single
267
- request; this effectively ignores the headers
268
- in the spec for a single request.
269
- :type _headers: dict, optional
270
- :param _host_index: set to override the host_index for a single
271
- request; this effectively ignores the host_index
272
- in the spec for a single request.
273
- :type _host_index: int, optional
274
- :return: Returns the result object.
275
- """ # noqa: E501
276
-
277
- _param = self._create_serialize(
278
- path=path,
279
- pulp_domain=pulp_domain,
280
- content=content,
281
- sha256_digest=sha256_digest,
282
- x_task_diagnostics=x_task_diagnostics,
283
- action=action,
284
- _request_auth=_request_auth,
285
- _content_type=_content_type,
286
- _headers=_headers,
287
- _host_index=_host_index
288
- )
289
-
290
- _response_types_map: Dict[str, Optional[str]] = {
291
- '200': "PackageUploadTaskResponse",
292
- }
293
- response_data = self.api_client.call_api(
294
- *_param,
295
- _request_timeout=_request_timeout
296
- )
297
- return response_data.response
298
-
299
-
300
- def _create_serialize(
301
- self,
302
- path,
303
- pulp_domain,
304
- content,
305
- sha256_digest,
306
- x_task_diagnostics,
307
- action,
308
- _request_auth,
309
- _content_type,
310
- _headers,
311
- _host_index,
312
- ) -> RequestSerialized:
313
-
314
- _host = None
315
-
316
- _collection_formats: Dict[str, str] = {
317
- 'X-Task-Diagnostics': 'csv',
318
- }
319
-
320
- _path_params: Dict[str, str] = {}
321
- _query_params: List[Tuple[str, str]] = []
322
- _header_params: Dict[str, Optional[str]] = _headers or {}
323
- _form_params: List[Tuple[str, str]] = []
324
- _files: Dict[
325
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
326
- ] = {}
327
- _body_params: Optional[bytes] = None
328
-
329
- # process the path parameters
330
- if path is not None:
331
- _path_params['path'] = path
332
- if pulp_domain is not None:
333
- _path_params['pulp_domain'] = pulp_domain
334
- # process the query parameters
335
- # process the header parameters
336
- if x_task_diagnostics is not None:
337
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
338
- # process the form parameters
339
- if content is not None:
340
- _files['content'] = content
341
- if action is not None:
342
- _form_params.append(('action', action))
343
- if sha256_digest is not None:
344
- _form_params.append(('sha256_digest', sha256_digest))
345
- # process the body parameter
346
-
347
-
348
- # set the HTTP header `Accept`
349
- if 'Accept' not in _header_params:
350
- _header_params['Accept'] = self.api_client.select_header_accept(
351
- [
352
- 'application/json'
353
- ]
354
- )
355
-
356
- # set the HTTP header `Content-Type`
357
- if _content_type:
358
- _header_params['Content-Type'] = _content_type
359
- else:
360
- _default_content_type = (
361
- self.api_client.select_header_content_type(
362
- [
363
- 'multipart/form-data',
364
- 'application/x-www-form-urlencoded'
365
- ]
366
- )
367
- )
368
- if _default_content_type is not None:
369
- _header_params['Content-Type'] = _default_content_type
370
-
371
- # authentication setting
372
- _auth_settings: List[str] = [
373
- ]
374
-
375
- return self.api_client.param_serialize(
376
- method='POST',
377
- resource_path='/api/pulp/pypi/{pulp_domain}/{path}/simple/',
378
- path_params=_path_params,
379
- query_params=_query_params,
380
- header_params=_header_params,
381
- body=_body_params,
382
- post_params=_form_params,
383
- files=_files,
384
- auth_settings=_auth_settings,
385
- collection_formats=_collection_formats,
386
- _host=_host,
387
- _request_auth=_request_auth
388
- )
389
-
390
-
391
-
392
-
393
- @validate_call
394
- def pypi_simple_package_read(
395
- self,
396
- package: StrictStr,
397
- path: StrictStr,
398
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
399
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
400
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
401
- pulp_domain: StrictStr = "default",
402
- _request_timeout: Union[
403
- None,
404
- Annotated[StrictFloat, Field(gt=0)],
405
- Tuple[
406
- Annotated[StrictFloat, Field(gt=0)],
407
- Annotated[StrictFloat, Field(gt=0)]
408
- ]
409
- ] = None,
410
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
411
- _content_type: Optional[StrictStr] = None,
412
- _headers: Optional[Dict[StrictStr, Any]] = None,
413
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
414
- ) -> None:
415
- """Get package simple page
416
-
417
- Retrieves the simple api html page for a package.
418
-
419
- :param package: (required)
420
- :type package: str
421
- :param path: (required)
422
- :type path: str
423
- :param pulp_domain: (required)
424
- :type pulp_domain: str
425
- :param x_task_diagnostics: List of profilers to use on tasks.
426
- :type x_task_diagnostics: List[str]
427
- :param fields: A list of fields to include in the response.
428
- :type fields: List[str]
429
- :param exclude_fields: A list of fields to exclude from the response.
430
- :type exclude_fields: List[str]
431
- :param _request_timeout: timeout setting for this request. If one
432
- number provided, it will be total request
433
- timeout. It can also be a pair (tuple) of
434
- (connection, read) timeouts.
435
- :type _request_timeout: int, tuple(int, int), optional
436
- :param _request_auth: set to override the auth_settings for an a single
437
- request; this effectively ignores the
438
- authentication in the spec for a single request.
439
- :type _request_auth: dict, optional
440
- :param _content_type: force content-type for the request.
441
- :type _content_type: str, Optional
442
- :param _headers: set to override the headers for a single
443
- request; this effectively ignores the headers
444
- in the spec for a single request.
445
- :type _headers: dict, optional
446
- :param _host_index: set to override the host_index for a single
447
- request; this effectively ignores the host_index
448
- in the spec for a single request.
449
- :type _host_index: int, optional
450
- :return: Returns the result object.
451
- """ # noqa: E501
452
-
453
- _param = self._pypi_simple_package_read_serialize(
454
- package=package,
455
- path=path,
456
- pulp_domain=pulp_domain,
457
- x_task_diagnostics=x_task_diagnostics,
458
- fields=fields,
459
- exclude_fields=exclude_fields,
460
- _request_auth=_request_auth,
461
- _content_type=_content_type,
462
- _headers=_headers,
463
- _host_index=_host_index
464
- )
465
-
466
- _response_types_map: Dict[str, Optional[str]] = {
467
- '200': None,
468
- }
469
- response_data = self.api_client.call_api(
470
- *_param,
471
- _request_timeout=_request_timeout
472
- )
473
- response_data.read()
474
- return self.api_client.response_deserialize(
475
- response_data=response_data,
476
- response_types_map=_response_types_map,
477
- ).data
478
-
479
-
480
- @validate_call
481
- def pypi_simple_package_read_with_http_info(
482
- self,
483
- package: StrictStr,
484
- path: StrictStr,
485
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
486
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
487
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
488
- pulp_domain: StrictStr = "default",
489
- _request_timeout: Union[
490
- None,
491
- Annotated[StrictFloat, Field(gt=0)],
492
- Tuple[
493
- Annotated[StrictFloat, Field(gt=0)],
494
- Annotated[StrictFloat, Field(gt=0)]
495
- ]
496
- ] = None,
497
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
498
- _content_type: Optional[StrictStr] = None,
499
- _headers: Optional[Dict[StrictStr, Any]] = None,
500
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
501
- ) -> ApiResponse[None]:
502
- """Get package simple page
503
-
504
- Retrieves the simple api html page for a package.
505
-
506
- :param package: (required)
507
- :type package: str
508
- :param path: (required)
509
- :type path: str
510
- :param pulp_domain: (required)
511
- :type pulp_domain: str
512
- :param x_task_diagnostics: List of profilers to use on tasks.
513
- :type x_task_diagnostics: List[str]
514
- :param fields: A list of fields to include in the response.
515
- :type fields: List[str]
516
- :param exclude_fields: A list of fields to exclude from the response.
517
- :type exclude_fields: List[str]
518
- :param _request_timeout: timeout setting for this request. If one
519
- number provided, it will be total request
520
- timeout. It can also be a pair (tuple) of
521
- (connection, read) timeouts.
522
- :type _request_timeout: int, tuple(int, int), optional
523
- :param _request_auth: set to override the auth_settings for an a single
524
- request; this effectively ignores the
525
- authentication in the spec for a single request.
526
- :type _request_auth: dict, optional
527
- :param _content_type: force content-type for the request.
528
- :type _content_type: str, Optional
529
- :param _headers: set to override the headers for a single
530
- request; this effectively ignores the headers
531
- in the spec for a single request.
532
- :type _headers: dict, optional
533
- :param _host_index: set to override the host_index for a single
534
- request; this effectively ignores the host_index
535
- in the spec for a single request.
536
- :type _host_index: int, optional
537
- :return: Returns the result object.
538
- """ # noqa: E501
539
-
540
- _param = self._pypi_simple_package_read_serialize(
541
- package=package,
542
- path=path,
543
- pulp_domain=pulp_domain,
544
- x_task_diagnostics=x_task_diagnostics,
545
- fields=fields,
546
- exclude_fields=exclude_fields,
547
- _request_auth=_request_auth,
548
- _content_type=_content_type,
549
- _headers=_headers,
550
- _host_index=_host_index
551
- )
552
-
553
- _response_types_map: Dict[str, Optional[str]] = {
554
- '200': None,
555
- }
556
- response_data = self.api_client.call_api(
557
- *_param,
558
- _request_timeout=_request_timeout
559
- )
560
- response_data.read()
561
- return self.api_client.response_deserialize(
562
- response_data=response_data,
563
- response_types_map=_response_types_map,
564
- )
565
-
566
-
567
- @validate_call
568
- def pypi_simple_package_read_without_preload_content(
569
- self,
570
- package: StrictStr,
571
- path: StrictStr,
572
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
573
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
574
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
575
- pulp_domain: StrictStr = "default",
576
- _request_timeout: Union[
577
- None,
578
- Annotated[StrictFloat, Field(gt=0)],
579
- Tuple[
580
- Annotated[StrictFloat, Field(gt=0)],
581
- Annotated[StrictFloat, Field(gt=0)]
582
- ]
583
- ] = None,
584
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
585
- _content_type: Optional[StrictStr] = None,
586
- _headers: Optional[Dict[StrictStr, Any]] = None,
587
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
588
- ) -> RESTResponseType:
589
- """Get package simple page
590
-
591
- Retrieves the simple api html page for a package.
592
-
593
- :param package: (required)
594
- :type package: str
595
- :param path: (required)
596
- :type path: str
597
- :param pulp_domain: (required)
598
- :type pulp_domain: str
599
- :param x_task_diagnostics: List of profilers to use on tasks.
600
- :type x_task_diagnostics: List[str]
601
- :param fields: A list of fields to include in the response.
602
- :type fields: List[str]
603
- :param exclude_fields: A list of fields to exclude from the response.
604
- :type exclude_fields: List[str]
605
- :param _request_timeout: timeout setting for this request. If one
606
- number provided, it will be total request
607
- timeout. It can also be a pair (tuple) of
608
- (connection, read) timeouts.
609
- :type _request_timeout: int, tuple(int, int), optional
610
- :param _request_auth: set to override the auth_settings for an a single
611
- request; this effectively ignores the
612
- authentication in the spec for a single request.
613
- :type _request_auth: dict, optional
614
- :param _content_type: force content-type for the request.
615
- :type _content_type: str, Optional
616
- :param _headers: set to override the headers for a single
617
- request; this effectively ignores the headers
618
- in the spec for a single request.
619
- :type _headers: dict, optional
620
- :param _host_index: set to override the host_index for a single
621
- request; this effectively ignores the host_index
622
- in the spec for a single request.
623
- :type _host_index: int, optional
624
- :return: Returns the result object.
625
- """ # noqa: E501
626
-
627
- _param = self._pypi_simple_package_read_serialize(
628
- package=package,
629
- path=path,
630
- pulp_domain=pulp_domain,
631
- x_task_diagnostics=x_task_diagnostics,
632
- fields=fields,
633
- exclude_fields=exclude_fields,
634
- _request_auth=_request_auth,
635
- _content_type=_content_type,
636
- _headers=_headers,
637
- _host_index=_host_index
638
- )
639
-
640
- _response_types_map: Dict[str, Optional[str]] = {
641
- '200': None,
642
- }
643
- response_data = self.api_client.call_api(
644
- *_param,
645
- _request_timeout=_request_timeout
646
- )
647
- return response_data.response
648
-
649
-
650
- def _pypi_simple_package_read_serialize(
651
- self,
652
- package,
653
- path,
654
- pulp_domain,
655
- x_task_diagnostics,
656
- fields,
657
- exclude_fields,
658
- _request_auth,
659
- _content_type,
660
- _headers,
661
- _host_index,
662
- ) -> RequestSerialized:
663
-
664
- _host = None
665
-
666
- _collection_formats: Dict[str, str] = {
667
- 'X-Task-Diagnostics': 'csv',
668
- 'fields': 'multi',
669
- 'exclude_fields': 'multi',
670
- }
671
-
672
- _path_params: Dict[str, str] = {}
673
- _query_params: List[Tuple[str, str]] = []
674
- _header_params: Dict[str, Optional[str]] = _headers or {}
675
- _form_params: List[Tuple[str, str]] = []
676
- _files: Dict[
677
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
678
- ] = {}
679
- _body_params: Optional[bytes] = None
680
-
681
- # process the path parameters
682
- if package is not None:
683
- _path_params['package'] = package
684
- if path is not None:
685
- _path_params['path'] = path
686
- if pulp_domain is not None:
687
- _path_params['pulp_domain'] = pulp_domain
688
- # process the query parameters
689
- if fields is not None:
690
-
691
- _query_params.append(('fields', fields))
692
-
693
- if exclude_fields is not None:
694
-
695
- _query_params.append(('exclude_fields', exclude_fields))
696
-
697
- # process the header parameters
698
- if x_task_diagnostics is not None:
699
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
700
- # process the form parameters
701
- # process the body parameter
702
-
703
-
704
-
705
-
706
- # authentication setting
707
- _auth_settings: List[str] = [
708
- ]
709
-
710
- return self.api_client.param_serialize(
711
- method='GET',
712
- resource_path='/api/pulp/pypi/{pulp_domain}/{path}/simple/{package}/',
713
- path_params=_path_params,
714
- query_params=_query_params,
715
- header_params=_header_params,
716
- body=_body_params,
717
- post_params=_form_params,
718
- files=_files,
719
- auth_settings=_auth_settings,
720
- collection_formats=_collection_formats,
721
- _host=_host,
722
- _request_auth=_request_auth
723
- )
724
-
725
-
726
-
727
-
728
- @validate_call
729
- def read(
730
- self,
731
- path: StrictStr,
732
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
733
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
734
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
735
- pulp_domain: StrictStr = "default",
736
- _request_timeout: Union[
737
- None,
738
- Annotated[StrictFloat, Field(gt=0)],
739
- Tuple[
740
- Annotated[StrictFloat, Field(gt=0)],
741
- Annotated[StrictFloat, Field(gt=0)]
742
- ]
743
- ] = None,
744
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
745
- _content_type: Optional[StrictStr] = None,
746
- _headers: Optional[Dict[StrictStr, Any]] = None,
747
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
748
- ) -> None:
749
- """Get index simple page
750
-
751
- Gets the simple api html page for the index.
752
-
753
- :param path: (required)
754
- :type path: str
755
- :param pulp_domain: (required)
756
- :type pulp_domain: str
757
- :param x_task_diagnostics: List of profilers to use on tasks.
758
- :type x_task_diagnostics: List[str]
759
- :param fields: A list of fields to include in the response.
760
- :type fields: List[str]
761
- :param exclude_fields: A list of fields to exclude from the response.
762
- :type exclude_fields: List[str]
763
- :param _request_timeout: timeout setting for this request. If one
764
- number provided, it will be total request
765
- timeout. It can also be a pair (tuple) of
766
- (connection, read) timeouts.
767
- :type _request_timeout: int, tuple(int, int), optional
768
- :param _request_auth: set to override the auth_settings for an a single
769
- request; this effectively ignores the
770
- authentication in the spec for a single request.
771
- :type _request_auth: dict, optional
772
- :param _content_type: force content-type for the request.
773
- :type _content_type: str, Optional
774
- :param _headers: set to override the headers for a single
775
- request; this effectively ignores the headers
776
- in the spec for a single request.
777
- :type _headers: dict, optional
778
- :param _host_index: set to override the host_index for a single
779
- request; this effectively ignores the host_index
780
- in the spec for a single request.
781
- :type _host_index: int, optional
782
- :return: Returns the result object.
783
- """ # noqa: E501
784
-
785
- _param = self._read_serialize(
786
- path=path,
787
- pulp_domain=pulp_domain,
788
- x_task_diagnostics=x_task_diagnostics,
789
- fields=fields,
790
- exclude_fields=exclude_fields,
791
- _request_auth=_request_auth,
792
- _content_type=_content_type,
793
- _headers=_headers,
794
- _host_index=_host_index
795
- )
796
-
797
- _response_types_map: Dict[str, Optional[str]] = {
798
- '200': None,
799
- }
800
- response_data = self.api_client.call_api(
801
- *_param,
802
- _request_timeout=_request_timeout
803
- )
804
- response_data.read()
805
- return self.api_client.response_deserialize(
806
- response_data=response_data,
807
- response_types_map=_response_types_map,
808
- ).data
809
-
810
-
811
- @validate_call
812
- def read_with_http_info(
813
- self,
814
- path: StrictStr,
815
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
816
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
817
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
818
- pulp_domain: StrictStr = "default",
819
- _request_timeout: Union[
820
- None,
821
- Annotated[StrictFloat, Field(gt=0)],
822
- Tuple[
823
- Annotated[StrictFloat, Field(gt=0)],
824
- Annotated[StrictFloat, Field(gt=0)]
825
- ]
826
- ] = None,
827
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
828
- _content_type: Optional[StrictStr] = None,
829
- _headers: Optional[Dict[StrictStr, Any]] = None,
830
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
831
- ) -> ApiResponse[None]:
832
- """Get index simple page
833
-
834
- Gets the simple api html page for the index.
835
-
836
- :param path: (required)
837
- :type path: str
838
- :param pulp_domain: (required)
839
- :type pulp_domain: str
840
- :param x_task_diagnostics: List of profilers to use on tasks.
841
- :type x_task_diagnostics: List[str]
842
- :param fields: A list of fields to include in the response.
843
- :type fields: List[str]
844
- :param exclude_fields: A list of fields to exclude from the response.
845
- :type exclude_fields: List[str]
846
- :param _request_timeout: timeout setting for this request. If one
847
- number provided, it will be total request
848
- timeout. It can also be a pair (tuple) of
849
- (connection, read) timeouts.
850
- :type _request_timeout: int, tuple(int, int), optional
851
- :param _request_auth: set to override the auth_settings for an a single
852
- request; this effectively ignores the
853
- authentication in the spec for a single request.
854
- :type _request_auth: dict, optional
855
- :param _content_type: force content-type for the request.
856
- :type _content_type: str, Optional
857
- :param _headers: set to override the headers for a single
858
- request; this effectively ignores the headers
859
- in the spec for a single request.
860
- :type _headers: dict, optional
861
- :param _host_index: set to override the host_index for a single
862
- request; this effectively ignores the host_index
863
- in the spec for a single request.
864
- :type _host_index: int, optional
865
- :return: Returns the result object.
866
- """ # noqa: E501
867
-
868
- _param = self._read_serialize(
869
- path=path,
870
- pulp_domain=pulp_domain,
871
- x_task_diagnostics=x_task_diagnostics,
872
- fields=fields,
873
- exclude_fields=exclude_fields,
874
- _request_auth=_request_auth,
875
- _content_type=_content_type,
876
- _headers=_headers,
877
- _host_index=_host_index
878
- )
879
-
880
- _response_types_map: Dict[str, Optional[str]] = {
881
- '200': None,
882
- }
883
- response_data = self.api_client.call_api(
884
- *_param,
885
- _request_timeout=_request_timeout
886
- )
887
- response_data.read()
888
- return self.api_client.response_deserialize(
889
- response_data=response_data,
890
- response_types_map=_response_types_map,
891
- )
892
-
893
-
894
- @validate_call
895
- def read_without_preload_content(
896
- self,
897
- path: StrictStr,
898
- x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
899
- fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
900
- exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
901
- pulp_domain: StrictStr = "default",
902
- _request_timeout: Union[
903
- None,
904
- Annotated[StrictFloat, Field(gt=0)],
905
- Tuple[
906
- Annotated[StrictFloat, Field(gt=0)],
907
- Annotated[StrictFloat, Field(gt=0)]
908
- ]
909
- ] = None,
910
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
911
- _content_type: Optional[StrictStr] = None,
912
- _headers: Optional[Dict[StrictStr, Any]] = None,
913
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
914
- ) -> RESTResponseType:
915
- """Get index simple page
916
-
917
- Gets the simple api html page for the index.
918
-
919
- :param path: (required)
920
- :type path: str
921
- :param pulp_domain: (required)
922
- :type pulp_domain: str
923
- :param x_task_diagnostics: List of profilers to use on tasks.
924
- :type x_task_diagnostics: List[str]
925
- :param fields: A list of fields to include in the response.
926
- :type fields: List[str]
927
- :param exclude_fields: A list of fields to exclude from the response.
928
- :type exclude_fields: List[str]
929
- :param _request_timeout: timeout setting for this request. If one
930
- number provided, it will be total request
931
- timeout. It can also be a pair (tuple) of
932
- (connection, read) timeouts.
933
- :type _request_timeout: int, tuple(int, int), optional
934
- :param _request_auth: set to override the auth_settings for an a single
935
- request; this effectively ignores the
936
- authentication in the spec for a single request.
937
- :type _request_auth: dict, optional
938
- :param _content_type: force content-type for the request.
939
- :type _content_type: str, Optional
940
- :param _headers: set to override the headers for a single
941
- request; this effectively ignores the headers
942
- in the spec for a single request.
943
- :type _headers: dict, optional
944
- :param _host_index: set to override the host_index for a single
945
- request; this effectively ignores the host_index
946
- in the spec for a single request.
947
- :type _host_index: int, optional
948
- :return: Returns the result object.
949
- """ # noqa: E501
950
-
951
- _param = self._read_serialize(
952
- path=path,
953
- pulp_domain=pulp_domain,
954
- x_task_diagnostics=x_task_diagnostics,
955
- fields=fields,
956
- exclude_fields=exclude_fields,
957
- _request_auth=_request_auth,
958
- _content_type=_content_type,
959
- _headers=_headers,
960
- _host_index=_host_index
961
- )
962
-
963
- _response_types_map: Dict[str, Optional[str]] = {
964
- '200': None,
965
- }
966
- response_data = self.api_client.call_api(
967
- *_param,
968
- _request_timeout=_request_timeout
969
- )
970
- return response_data.response
971
-
972
-
973
- def _read_serialize(
974
- self,
975
- path,
976
- pulp_domain,
977
- x_task_diagnostics,
978
- fields,
979
- exclude_fields,
980
- _request_auth,
981
- _content_type,
982
- _headers,
983
- _host_index,
984
- ) -> RequestSerialized:
985
-
986
- _host = None
987
-
988
- _collection_formats: Dict[str, str] = {
989
- 'X-Task-Diagnostics': 'csv',
990
- 'fields': 'multi',
991
- 'exclude_fields': 'multi',
992
- }
993
-
994
- _path_params: Dict[str, str] = {}
995
- _query_params: List[Tuple[str, str]] = []
996
- _header_params: Dict[str, Optional[str]] = _headers or {}
997
- _form_params: List[Tuple[str, str]] = []
998
- _files: Dict[
999
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1000
- ] = {}
1001
- _body_params: Optional[bytes] = None
1002
-
1003
- # process the path parameters
1004
- if path is not None:
1005
- _path_params['path'] = path
1006
- if pulp_domain is not None:
1007
- _path_params['pulp_domain'] = pulp_domain
1008
- # process the query parameters
1009
- if fields is not None:
1010
-
1011
- _query_params.append(('fields', fields))
1012
-
1013
- if exclude_fields is not None:
1014
-
1015
- _query_params.append(('exclude_fields', exclude_fields))
1016
-
1017
- # process the header parameters
1018
- if x_task_diagnostics is not None:
1019
- _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1020
- # process the form parameters
1021
- # process the body parameter
1022
-
1023
-
1024
-
1025
-
1026
- # authentication setting
1027
- _auth_settings: List[str] = [
1028
- ]
1029
-
1030
- return self.api_client.param_serialize(
1031
- method='GET',
1032
- resource_path='/api/pulp/pypi/{pulp_domain}/{path}/simple/',
1033
- path_params=_path_params,
1034
- query_params=_query_params,
1035
- header_params=_header_params,
1036
- body=_body_params,
1037
- post_params=_form_params,
1038
- files=_files,
1039
- auth_settings=_auth_settings,
1040
- collection_formats=_collection_formats,
1041
- _host=_host,
1042
- _request_auth=_request_auth
1043
- )
1044
-
1045
-