crc-pulp-python-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-python-client might be problematic. Click here for more details.

Files changed (120) hide show
  1. crc-pulp_python-client/__init__.py +2 -0
  2. crc-pulp_python-client/api/__init__.py +14 -0
  3. crc-pulp_python-client/api/api_pypi_api.py +370 -0
  4. crc-pulp_python-client/api/api_pypi_legacy_api.py +393 -0
  5. crc-pulp_python-client/api/api_pypi_simple_api.py +1045 -0
  6. crc-pulp_python-client/api/content_packages_api.py +2594 -0
  7. crc-pulp_python-client/api/distributions_pypi_api.py +4186 -0
  8. crc-pulp_python-client/api/publications_pypi_api.py +2881 -0
  9. crc-pulp_python-client/api/pypi_metadata_api.py +385 -0
  10. crc-pulp_python-client/api/remotes_python_api.py +4552 -0
  11. crc-pulp_python-client/api/repositories_python_api.py +4856 -0
  12. crc-pulp_python-client/api/repositories_python_versions_api.py +1670 -0
  13. crc-pulp_python-client/api_client.py +798 -0
  14. crc-pulp_python-client/api_response.py +21 -0
  15. crc-pulp_python-client/configuration.py +628 -0
  16. crc-pulp_python-client/exceptions.py +200 -0
  17. crc-pulp_python-client/models/__init__.py +56 -0
  18. crc-pulp_python-client/models/async_operation_response.py +88 -0
  19. crc-pulp_python-client/models/content_summary_response.py +92 -0
  20. crc-pulp_python-client/models/exclude_platforms_enum.py +40 -0
  21. crc-pulp_python-client/models/my_permissions_response.py +88 -0
  22. crc-pulp_python-client/models/nested_role.py +93 -0
  23. crc-pulp_python-client/models/nested_role_response.py +92 -0
  24. crc-pulp_python-client/models/object_roles_response.py +96 -0
  25. crc-pulp_python-client/models/package_metadata_response.py +109 -0
  26. crc-pulp_python-client/models/package_types_enum.py +44 -0
  27. crc-pulp_python-client/models/package_upload_task_response.py +103 -0
  28. crc-pulp_python-client/models/paginated_repository_version_response_list.py +112 -0
  29. crc-pulp_python-client/models/paginatedpython_python_distribution_response_list.py +112 -0
  30. crc-pulp_python-client/models/paginatedpython_python_package_content_response_list.py +112 -0
  31. crc-pulp_python-client/models/paginatedpython_python_publication_response_list.py +112 -0
  32. crc-pulp_python-client/models/paginatedpython_python_remote_response_list.py +112 -0
  33. crc-pulp_python-client/models/paginatedpython_python_repository_response_list.py +112 -0
  34. crc-pulp_python-client/models/patchedpython_python_distribution.py +125 -0
  35. crc-pulp_python-client/models/patchedpython_python_remote.py +219 -0
  36. crc-pulp_python-client/models/patchedpython_python_repository.py +114 -0
  37. crc-pulp_python-client/models/policy_enum.py +39 -0
  38. crc-pulp_python-client/models/python_python_distribution.py +125 -0
  39. crc-pulp_python-client/models/python_python_distribution_response.py +149 -0
  40. crc-pulp_python-client/models/python_python_package_content_response.py +201 -0
  41. crc-pulp_python-client/models/python_python_publication.py +90 -0
  42. crc-pulp_python-client/models/python_python_publication_response.py +111 -0
  43. crc-pulp_python-client/models/python_python_remote.py +219 -0
  44. crc-pulp_python-client/models/python_python_remote_response.py +213 -0
  45. crc-pulp_python-client/models/python_python_remote_response_hidden_fields_inner.py +90 -0
  46. crc-pulp_python-client/models/python_python_repository.py +114 -0
  47. crc-pulp_python-client/models/python_python_repository_response.py +139 -0
  48. crc-pulp_python-client/models/repair.py +88 -0
  49. crc-pulp_python-client/models/repository_add_remove_content.py +93 -0
  50. crc-pulp_python-client/models/repository_sync_url.py +90 -0
  51. crc-pulp_python-client/models/repository_version_response.py +121 -0
  52. crc-pulp_python-client/models/set_label.py +103 -0
  53. crc-pulp_python-client/models/set_label_response.py +103 -0
  54. crc-pulp_python-client/models/summary_response.py +92 -0
  55. crc-pulp_python-client/models/unset_label.py +96 -0
  56. crc-pulp_python-client/models/unset_label_response.py +100 -0
  57. crc-pulp_python-client/py.typed +0 -0
  58. crc-pulp_python-client/rest.py +258 -0
  59. crc_pulp_python_client-20250819.1.dist-info/METADATA +25 -0
  60. crc_pulp_python_client-20250819.1.dist-info/RECORD +120 -0
  61. crc_pulp_python_client-20250819.1.dist-info/WHEEL +5 -0
  62. crc_pulp_python_client-20250819.1.dist-info/top_level.txt +2 -0
  63. services-pulp_python-client/__init__.py +2 -0
  64. services-pulp_python-client/api/__init__.py +14 -0
  65. services-pulp_python-client/api/api_pypi_api.py +370 -0
  66. services-pulp_python-client/api/api_pypi_legacy_api.py +393 -0
  67. services-pulp_python-client/api/api_pypi_simple_api.py +1045 -0
  68. services-pulp_python-client/api/content_packages_api.py +2594 -0
  69. services-pulp_python-client/api/distributions_pypi_api.py +4186 -0
  70. services-pulp_python-client/api/publications_pypi_api.py +2881 -0
  71. services-pulp_python-client/api/pypi_metadata_api.py +385 -0
  72. services-pulp_python-client/api/remotes_python_api.py +4552 -0
  73. services-pulp_python-client/api/repositories_python_api.py +4856 -0
  74. services-pulp_python-client/api/repositories_python_versions_api.py +1670 -0
  75. services-pulp_python-client/api_client.py +798 -0
  76. services-pulp_python-client/api_response.py +21 -0
  77. services-pulp_python-client/configuration.py +628 -0
  78. services-pulp_python-client/exceptions.py +200 -0
  79. services-pulp_python-client/models/__init__.py +56 -0
  80. services-pulp_python-client/models/async_operation_response.py +88 -0
  81. services-pulp_python-client/models/content_summary_response.py +92 -0
  82. services-pulp_python-client/models/exclude_platforms_enum.py +40 -0
  83. services-pulp_python-client/models/my_permissions_response.py +88 -0
  84. services-pulp_python-client/models/nested_role.py +93 -0
  85. services-pulp_python-client/models/nested_role_response.py +92 -0
  86. services-pulp_python-client/models/object_roles_response.py +96 -0
  87. services-pulp_python-client/models/package_metadata_response.py +109 -0
  88. services-pulp_python-client/models/package_types_enum.py +44 -0
  89. services-pulp_python-client/models/package_upload_task_response.py +103 -0
  90. services-pulp_python-client/models/paginated_repository_version_response_list.py +112 -0
  91. services-pulp_python-client/models/paginatedpython_python_distribution_response_list.py +112 -0
  92. services-pulp_python-client/models/paginatedpython_python_package_content_response_list.py +112 -0
  93. services-pulp_python-client/models/paginatedpython_python_publication_response_list.py +112 -0
  94. services-pulp_python-client/models/paginatedpython_python_remote_response_list.py +112 -0
  95. services-pulp_python-client/models/paginatedpython_python_repository_response_list.py +112 -0
  96. services-pulp_python-client/models/patchedpython_python_distribution.py +125 -0
  97. services-pulp_python-client/models/patchedpython_python_remote.py +219 -0
  98. services-pulp_python-client/models/patchedpython_python_repository.py +114 -0
  99. services-pulp_python-client/models/policy_enum.py +39 -0
  100. services-pulp_python-client/models/python_python_distribution.py +125 -0
  101. services-pulp_python-client/models/python_python_distribution_response.py +149 -0
  102. services-pulp_python-client/models/python_python_package_content_response.py +201 -0
  103. services-pulp_python-client/models/python_python_publication.py +90 -0
  104. services-pulp_python-client/models/python_python_publication_response.py +111 -0
  105. services-pulp_python-client/models/python_python_remote.py +219 -0
  106. services-pulp_python-client/models/python_python_remote_response.py +213 -0
  107. services-pulp_python-client/models/python_python_remote_response_hidden_fields_inner.py +90 -0
  108. services-pulp_python-client/models/python_python_repository.py +114 -0
  109. services-pulp_python-client/models/python_python_repository_response.py +139 -0
  110. services-pulp_python-client/models/repair.py +88 -0
  111. services-pulp_python-client/models/repository_add_remove_content.py +93 -0
  112. services-pulp_python-client/models/repository_sync_url.py +90 -0
  113. services-pulp_python-client/models/repository_version_response.py +121 -0
  114. services-pulp_python-client/models/set_label.py +103 -0
  115. services-pulp_python-client/models/set_label_response.py +103 -0
  116. services-pulp_python-client/models/summary_response.py +92 -0
  117. services-pulp_python-client/models/unset_label.py +96 -0
  118. services-pulp_python-client/models/unset_label_response.py +100 -0
  119. services-pulp_python-client/py.typed +0 -0
  120. services-pulp_python-client/rest.py +258 -0
@@ -0,0 +1,2594 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from pydantic import Field, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator
21
+ from typing import Any, Dict, List, Optional, Tuple, Union
22
+ from typing_extensions import Annotated
23
+ from services-pulp_python-client.models.async_operation_response import AsyncOperationResponse
24
+ from services-pulp_python-client.models.paginatedpython_python_package_content_response_list import PaginatedpythonPythonPackageContentResponseList
25
+ from services-pulp_python-client.models.python_python_package_content_response import PythonPythonPackageContentResponse
26
+ from services-pulp_python-client.models.set_label import SetLabel
27
+ from services-pulp_python-client.models.set_label_response import SetLabelResponse
28
+ from services-pulp_python-client.models.unset_label import UnsetLabel
29
+ from services-pulp_python-client.models.unset_label_response import UnsetLabelResponse
30
+
31
+ from services-pulp_python-client.api_client import ApiClient, RequestSerialized
32
+ from services-pulp_python-client.api_response import ApiResponse
33
+ from services-pulp_python-client.rest import RESTResponseType
34
+
35
+
36
+ class ContentPackagesApi:
37
+ """NOTE: This class is auto generated by OpenAPI Generator
38
+ Ref: https://openapi-generator.tech
39
+
40
+ Do not edit the class manually.
41
+ """
42
+
43
+ def __init__(self, api_client=None) -> None:
44
+ if api_client is None:
45
+ api_client = ApiClient.get_default()
46
+ self.api_client = api_client
47
+
48
+
49
+ @validate_call
50
+ def create(
51
+ self,
52
+ relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
53
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
54
+ repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
55
+ pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
56
+ artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
57
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
58
+ upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
59
+ file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
60
+ sha256: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="The SHA256 digest of this package.")] = None,
61
+ summary: Annotated[Optional[StrictStr], Field(description="A one-line summary of what the package does.")] = None,
62
+ description: Annotated[Optional[StrictStr], Field(description="A longer description of the package that can run to several paragraphs.")] = None,
63
+ description_content_type: Annotated[Optional[StrictStr], Field(description="A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.")] = None,
64
+ keywords: Annotated[Optional[StrictStr], Field(description="Additional keywords to be used to assist searching for the package in a larger catalog.")] = None,
65
+ home_page: Annotated[Optional[StrictStr], Field(description="The URL for the package's home page.")] = None,
66
+ download_url: Annotated[Optional[StrictStr], Field(description="Legacy field denoting the URL from which this package can be downloaded.")] = None,
67
+ author: Annotated[Optional[StrictStr], Field(description="Text containing the author's name. Contact information can also be added, separated with newlines.")] = None,
68
+ author_email: Annotated[Optional[StrictStr], Field(description="The author's e-mail address. ")] = None,
69
+ maintainer: Annotated[Optional[StrictStr], Field(description="The maintainer's name at a minimum; additional contact information may be provided.")] = None,
70
+ maintainer_email: Annotated[Optional[StrictStr], Field(description="The maintainer's e-mail address.")] = None,
71
+ license: Annotated[Optional[StrictStr], Field(description="Text indicating the license covering the distribution")] = None,
72
+ requires_python: Annotated[Optional[StrictStr], Field(description="The Python version(s) that the distribution is guaranteed to be compatible with.")] = None,
73
+ project_url: Annotated[Optional[StrictStr], Field(description="A browsable URL for the project and a label for it, separated by a comma.")] = None,
74
+ project_urls: Annotated[Optional[Any], Field(description="A dictionary of labels and URLs for the project.")] = None,
75
+ platform: Annotated[Optional[StrictStr], Field(description="A comma-separated list of platform specifications, summarizing the operating systems supported by the package.")] = None,
76
+ supported_platform: Annotated[Optional[StrictStr], Field(description="Field to specify the OS and CPU for which the binary package was compiled. ")] = None,
77
+ requires_dist: Annotated[Optional[Any], Field(description="A JSON list containing names of some other distutils project required by this distribution.")] = None,
78
+ provides_dist: Annotated[Optional[Any], Field(description="A JSON list containing names of a Distutils project which is contained within this distribution.")] = None,
79
+ obsoletes_dist: Annotated[Optional[Any], Field(description="A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.")] = None,
80
+ requires_external: Annotated[Optional[Any], Field(description="A JSON list containing some dependency in the system that the distribution is to be used.")] = None,
81
+ classifiers: Annotated[Optional[Any], Field(description="A JSON list containing classification values for a Python package.")] = None,
82
+ pulp_domain: StrictStr = "default",
83
+ _request_timeout: Union[
84
+ None,
85
+ Annotated[StrictFloat, Field(gt=0)],
86
+ Tuple[
87
+ Annotated[StrictFloat, Field(gt=0)],
88
+ Annotated[StrictFloat, Field(gt=0)]
89
+ ]
90
+ ] = None,
91
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
92
+ _content_type: Optional[StrictStr] = None,
93
+ _headers: Optional[Dict[StrictStr, Any]] = None,
94
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
95
+ ) -> AsyncOperationResponse:
96
+ """Create a python package content
97
+
98
+ Trigger an asynchronous task to create content,optionally create new repository version.
99
+
100
+ :param pulp_domain: (required)
101
+ :type pulp_domain: str
102
+ :param relative_path: Path where the artifact is located relative to distributions base_path (required)
103
+ :type relative_path: str
104
+ :param x_task_diagnostics: List of profilers to use on tasks.
105
+ :type x_task_diagnostics: List[str]
106
+ :param repository: A URI of a repository the new content unit should be associated with.
107
+ :type repository: str
108
+ :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
109
+ :type pulp_labels: Dict[str, Optional[str]]
110
+ :param artifact: Artifact file representing the physical content
111
+ :type artifact: str
112
+ :param file: An uploaded file that may be turned into the content unit.
113
+ :type file: bytearray
114
+ :param upload: An uncommitted upload that may be turned into the content unit.
115
+ :type upload: str
116
+ :param file_url: A url that Pulp can download and turn into the content unit.
117
+ :type file_url: str
118
+ :param sha256: The SHA256 digest of this package.
119
+ :type sha256: str
120
+ :param summary: A one-line summary of what the package does.
121
+ :type summary: str
122
+ :param description: A longer description of the package that can run to several paragraphs.
123
+ :type description: str
124
+ :param description_content_type: A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.
125
+ :type description_content_type: str
126
+ :param keywords: Additional keywords to be used to assist searching for the package in a larger catalog.
127
+ :type keywords: str
128
+ :param home_page: The URL for the package's home page.
129
+ :type home_page: str
130
+ :param download_url: Legacy field denoting the URL from which this package can be downloaded.
131
+ :type download_url: str
132
+ :param author: Text containing the author's name. Contact information can also be added, separated with newlines.
133
+ :type author: str
134
+ :param author_email: The author's e-mail address.
135
+ :type author_email: str
136
+ :param maintainer: The maintainer's name at a minimum; additional contact information may be provided.
137
+ :type maintainer: str
138
+ :param maintainer_email: The maintainer's e-mail address.
139
+ :type maintainer_email: str
140
+ :param license: Text indicating the license covering the distribution
141
+ :type license: str
142
+ :param requires_python: The Python version(s) that the distribution is guaranteed to be compatible with.
143
+ :type requires_python: str
144
+ :param project_url: A browsable URL for the project and a label for it, separated by a comma.
145
+ :type project_url: str
146
+ :param project_urls: A dictionary of labels and URLs for the project.
147
+ :type project_urls: object
148
+ :param platform: A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
149
+ :type platform: str
150
+ :param supported_platform: Field to specify the OS and CPU for which the binary package was compiled.
151
+ :type supported_platform: str
152
+ :param requires_dist: A JSON list containing names of some other distutils project required by this distribution.
153
+ :type requires_dist: object
154
+ :param provides_dist: A JSON list containing names of a Distutils project which is contained within this distribution.
155
+ :type provides_dist: object
156
+ :param obsoletes_dist: A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
157
+ :type obsoletes_dist: object
158
+ :param requires_external: A JSON list containing some dependency in the system that the distribution is to be used.
159
+ :type requires_external: object
160
+ :param classifiers: A JSON list containing classification values for a Python package.
161
+ :type classifiers: object
162
+ :param _request_timeout: timeout setting for this request. If one
163
+ number provided, it will be total request
164
+ timeout. It can also be a pair (tuple) of
165
+ (connection, read) timeouts.
166
+ :type _request_timeout: int, tuple(int, int), optional
167
+ :param _request_auth: set to override the auth_settings for an a single
168
+ request; this effectively ignores the
169
+ authentication in the spec for a single request.
170
+ :type _request_auth: dict, optional
171
+ :param _content_type: force content-type for the request.
172
+ :type _content_type: str, Optional
173
+ :param _headers: set to override the headers for a single
174
+ request; this effectively ignores the headers
175
+ in the spec for a single request.
176
+ :type _headers: dict, optional
177
+ :param _host_index: set to override the host_index for a single
178
+ request; this effectively ignores the host_index
179
+ in the spec for a single request.
180
+ :type _host_index: int, optional
181
+ :return: Returns the result object.
182
+ """ # noqa: E501
183
+
184
+ _param = self._create_serialize(
185
+ pulp_domain=pulp_domain,
186
+ relative_path=relative_path,
187
+ x_task_diagnostics=x_task_diagnostics,
188
+ repository=repository,
189
+ pulp_labels=pulp_labels,
190
+ artifact=artifact,
191
+ file=file,
192
+ upload=upload,
193
+ file_url=file_url,
194
+ sha256=sha256,
195
+ summary=summary,
196
+ description=description,
197
+ description_content_type=description_content_type,
198
+ keywords=keywords,
199
+ home_page=home_page,
200
+ download_url=download_url,
201
+ author=author,
202
+ author_email=author_email,
203
+ maintainer=maintainer,
204
+ maintainer_email=maintainer_email,
205
+ license=license,
206
+ requires_python=requires_python,
207
+ project_url=project_url,
208
+ project_urls=project_urls,
209
+ platform=platform,
210
+ supported_platform=supported_platform,
211
+ requires_dist=requires_dist,
212
+ provides_dist=provides_dist,
213
+ obsoletes_dist=obsoletes_dist,
214
+ requires_external=requires_external,
215
+ classifiers=classifiers,
216
+ _request_auth=_request_auth,
217
+ _content_type=_content_type,
218
+ _headers=_headers,
219
+ _host_index=_host_index
220
+ )
221
+
222
+ _response_types_map: Dict[str, Optional[str]] = {
223
+ '202': "AsyncOperationResponse",
224
+ }
225
+ response_data = self.api_client.call_api(
226
+ *_param,
227
+ _request_timeout=_request_timeout
228
+ )
229
+ response_data.read()
230
+ return self.api_client.response_deserialize(
231
+ response_data=response_data,
232
+ response_types_map=_response_types_map,
233
+ ).data
234
+
235
+
236
+ @validate_call
237
+ def create_with_http_info(
238
+ self,
239
+ relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
240
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
241
+ repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
242
+ pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
243
+ artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
244
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
245
+ upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
246
+ file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
247
+ sha256: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="The SHA256 digest of this package.")] = None,
248
+ summary: Annotated[Optional[StrictStr], Field(description="A one-line summary of what the package does.")] = None,
249
+ description: Annotated[Optional[StrictStr], Field(description="A longer description of the package that can run to several paragraphs.")] = None,
250
+ description_content_type: Annotated[Optional[StrictStr], Field(description="A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.")] = None,
251
+ keywords: Annotated[Optional[StrictStr], Field(description="Additional keywords to be used to assist searching for the package in a larger catalog.")] = None,
252
+ home_page: Annotated[Optional[StrictStr], Field(description="The URL for the package's home page.")] = None,
253
+ download_url: Annotated[Optional[StrictStr], Field(description="Legacy field denoting the URL from which this package can be downloaded.")] = None,
254
+ author: Annotated[Optional[StrictStr], Field(description="Text containing the author's name. Contact information can also be added, separated with newlines.")] = None,
255
+ author_email: Annotated[Optional[StrictStr], Field(description="The author's e-mail address. ")] = None,
256
+ maintainer: Annotated[Optional[StrictStr], Field(description="The maintainer's name at a minimum; additional contact information may be provided.")] = None,
257
+ maintainer_email: Annotated[Optional[StrictStr], Field(description="The maintainer's e-mail address.")] = None,
258
+ license: Annotated[Optional[StrictStr], Field(description="Text indicating the license covering the distribution")] = None,
259
+ requires_python: Annotated[Optional[StrictStr], Field(description="The Python version(s) that the distribution is guaranteed to be compatible with.")] = None,
260
+ project_url: Annotated[Optional[StrictStr], Field(description="A browsable URL for the project and a label for it, separated by a comma.")] = None,
261
+ project_urls: Annotated[Optional[Any], Field(description="A dictionary of labels and URLs for the project.")] = None,
262
+ platform: Annotated[Optional[StrictStr], Field(description="A comma-separated list of platform specifications, summarizing the operating systems supported by the package.")] = None,
263
+ supported_platform: Annotated[Optional[StrictStr], Field(description="Field to specify the OS and CPU for which the binary package was compiled. ")] = None,
264
+ requires_dist: Annotated[Optional[Any], Field(description="A JSON list containing names of some other distutils project required by this distribution.")] = None,
265
+ provides_dist: Annotated[Optional[Any], Field(description="A JSON list containing names of a Distutils project which is contained within this distribution.")] = None,
266
+ obsoletes_dist: Annotated[Optional[Any], Field(description="A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.")] = None,
267
+ requires_external: Annotated[Optional[Any], Field(description="A JSON list containing some dependency in the system that the distribution is to be used.")] = None,
268
+ classifiers: Annotated[Optional[Any], Field(description="A JSON list containing classification values for a Python package.")] = None,
269
+ pulp_domain: StrictStr = "default",
270
+ _request_timeout: Union[
271
+ None,
272
+ Annotated[StrictFloat, Field(gt=0)],
273
+ Tuple[
274
+ Annotated[StrictFloat, Field(gt=0)],
275
+ Annotated[StrictFloat, Field(gt=0)]
276
+ ]
277
+ ] = None,
278
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
279
+ _content_type: Optional[StrictStr] = None,
280
+ _headers: Optional[Dict[StrictStr, Any]] = None,
281
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
282
+ ) -> ApiResponse[AsyncOperationResponse]:
283
+ """Create a python package content
284
+
285
+ Trigger an asynchronous task to create content,optionally create new repository version.
286
+
287
+ :param pulp_domain: (required)
288
+ :type pulp_domain: str
289
+ :param relative_path: Path where the artifact is located relative to distributions base_path (required)
290
+ :type relative_path: str
291
+ :param x_task_diagnostics: List of profilers to use on tasks.
292
+ :type x_task_diagnostics: List[str]
293
+ :param repository: A URI of a repository the new content unit should be associated with.
294
+ :type repository: str
295
+ :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
296
+ :type pulp_labels: Dict[str, Optional[str]]
297
+ :param artifact: Artifact file representing the physical content
298
+ :type artifact: str
299
+ :param file: An uploaded file that may be turned into the content unit.
300
+ :type file: bytearray
301
+ :param upload: An uncommitted upload that may be turned into the content unit.
302
+ :type upload: str
303
+ :param file_url: A url that Pulp can download and turn into the content unit.
304
+ :type file_url: str
305
+ :param sha256: The SHA256 digest of this package.
306
+ :type sha256: str
307
+ :param summary: A one-line summary of what the package does.
308
+ :type summary: str
309
+ :param description: A longer description of the package that can run to several paragraphs.
310
+ :type description: str
311
+ :param description_content_type: A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.
312
+ :type description_content_type: str
313
+ :param keywords: Additional keywords to be used to assist searching for the package in a larger catalog.
314
+ :type keywords: str
315
+ :param home_page: The URL for the package's home page.
316
+ :type home_page: str
317
+ :param download_url: Legacy field denoting the URL from which this package can be downloaded.
318
+ :type download_url: str
319
+ :param author: Text containing the author's name. Contact information can also be added, separated with newlines.
320
+ :type author: str
321
+ :param author_email: The author's e-mail address.
322
+ :type author_email: str
323
+ :param maintainer: The maintainer's name at a minimum; additional contact information may be provided.
324
+ :type maintainer: str
325
+ :param maintainer_email: The maintainer's e-mail address.
326
+ :type maintainer_email: str
327
+ :param license: Text indicating the license covering the distribution
328
+ :type license: str
329
+ :param requires_python: The Python version(s) that the distribution is guaranteed to be compatible with.
330
+ :type requires_python: str
331
+ :param project_url: A browsable URL for the project and a label for it, separated by a comma.
332
+ :type project_url: str
333
+ :param project_urls: A dictionary of labels and URLs for the project.
334
+ :type project_urls: object
335
+ :param platform: A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
336
+ :type platform: str
337
+ :param supported_platform: Field to specify the OS and CPU for which the binary package was compiled.
338
+ :type supported_platform: str
339
+ :param requires_dist: A JSON list containing names of some other distutils project required by this distribution.
340
+ :type requires_dist: object
341
+ :param provides_dist: A JSON list containing names of a Distutils project which is contained within this distribution.
342
+ :type provides_dist: object
343
+ :param obsoletes_dist: A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
344
+ :type obsoletes_dist: object
345
+ :param requires_external: A JSON list containing some dependency in the system that the distribution is to be used.
346
+ :type requires_external: object
347
+ :param classifiers: A JSON list containing classification values for a Python package.
348
+ :type classifiers: object
349
+ :param _request_timeout: timeout setting for this request. If one
350
+ number provided, it will be total request
351
+ timeout. It can also be a pair (tuple) of
352
+ (connection, read) timeouts.
353
+ :type _request_timeout: int, tuple(int, int), optional
354
+ :param _request_auth: set to override the auth_settings for an a single
355
+ request; this effectively ignores the
356
+ authentication in the spec for a single request.
357
+ :type _request_auth: dict, optional
358
+ :param _content_type: force content-type for the request.
359
+ :type _content_type: str, Optional
360
+ :param _headers: set to override the headers for a single
361
+ request; this effectively ignores the headers
362
+ in the spec for a single request.
363
+ :type _headers: dict, optional
364
+ :param _host_index: set to override the host_index for a single
365
+ request; this effectively ignores the host_index
366
+ in the spec for a single request.
367
+ :type _host_index: int, optional
368
+ :return: Returns the result object.
369
+ """ # noqa: E501
370
+
371
+ _param = self._create_serialize(
372
+ pulp_domain=pulp_domain,
373
+ relative_path=relative_path,
374
+ x_task_diagnostics=x_task_diagnostics,
375
+ repository=repository,
376
+ pulp_labels=pulp_labels,
377
+ artifact=artifact,
378
+ file=file,
379
+ upload=upload,
380
+ file_url=file_url,
381
+ sha256=sha256,
382
+ summary=summary,
383
+ description=description,
384
+ description_content_type=description_content_type,
385
+ keywords=keywords,
386
+ home_page=home_page,
387
+ download_url=download_url,
388
+ author=author,
389
+ author_email=author_email,
390
+ maintainer=maintainer,
391
+ maintainer_email=maintainer_email,
392
+ license=license,
393
+ requires_python=requires_python,
394
+ project_url=project_url,
395
+ project_urls=project_urls,
396
+ platform=platform,
397
+ supported_platform=supported_platform,
398
+ requires_dist=requires_dist,
399
+ provides_dist=provides_dist,
400
+ obsoletes_dist=obsoletes_dist,
401
+ requires_external=requires_external,
402
+ classifiers=classifiers,
403
+ _request_auth=_request_auth,
404
+ _content_type=_content_type,
405
+ _headers=_headers,
406
+ _host_index=_host_index
407
+ )
408
+
409
+ _response_types_map: Dict[str, Optional[str]] = {
410
+ '202': "AsyncOperationResponse",
411
+ }
412
+ response_data = self.api_client.call_api(
413
+ *_param,
414
+ _request_timeout=_request_timeout
415
+ )
416
+ response_data.read()
417
+ return self.api_client.response_deserialize(
418
+ response_data=response_data,
419
+ response_types_map=_response_types_map,
420
+ )
421
+
422
+
423
+ @validate_call
424
+ def create_without_preload_content(
425
+ self,
426
+ relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
427
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
428
+ repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
429
+ pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
430
+ artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
431
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
432
+ upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
433
+ file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
434
+ sha256: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="The SHA256 digest of this package.")] = None,
435
+ summary: Annotated[Optional[StrictStr], Field(description="A one-line summary of what the package does.")] = None,
436
+ description: Annotated[Optional[StrictStr], Field(description="A longer description of the package that can run to several paragraphs.")] = None,
437
+ description_content_type: Annotated[Optional[StrictStr], Field(description="A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.")] = None,
438
+ keywords: Annotated[Optional[StrictStr], Field(description="Additional keywords to be used to assist searching for the package in a larger catalog.")] = None,
439
+ home_page: Annotated[Optional[StrictStr], Field(description="The URL for the package's home page.")] = None,
440
+ download_url: Annotated[Optional[StrictStr], Field(description="Legacy field denoting the URL from which this package can be downloaded.")] = None,
441
+ author: Annotated[Optional[StrictStr], Field(description="Text containing the author's name. Contact information can also be added, separated with newlines.")] = None,
442
+ author_email: Annotated[Optional[StrictStr], Field(description="The author's e-mail address. ")] = None,
443
+ maintainer: Annotated[Optional[StrictStr], Field(description="The maintainer's name at a minimum; additional contact information may be provided.")] = None,
444
+ maintainer_email: Annotated[Optional[StrictStr], Field(description="The maintainer's e-mail address.")] = None,
445
+ license: Annotated[Optional[StrictStr], Field(description="Text indicating the license covering the distribution")] = None,
446
+ requires_python: Annotated[Optional[StrictStr], Field(description="The Python version(s) that the distribution is guaranteed to be compatible with.")] = None,
447
+ project_url: Annotated[Optional[StrictStr], Field(description="A browsable URL for the project and a label for it, separated by a comma.")] = None,
448
+ project_urls: Annotated[Optional[Any], Field(description="A dictionary of labels and URLs for the project.")] = None,
449
+ platform: Annotated[Optional[StrictStr], Field(description="A comma-separated list of platform specifications, summarizing the operating systems supported by the package.")] = None,
450
+ supported_platform: Annotated[Optional[StrictStr], Field(description="Field to specify the OS and CPU for which the binary package was compiled. ")] = None,
451
+ requires_dist: Annotated[Optional[Any], Field(description="A JSON list containing names of some other distutils project required by this distribution.")] = None,
452
+ provides_dist: Annotated[Optional[Any], Field(description="A JSON list containing names of a Distutils project which is contained within this distribution.")] = None,
453
+ obsoletes_dist: Annotated[Optional[Any], Field(description="A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.")] = None,
454
+ requires_external: Annotated[Optional[Any], Field(description="A JSON list containing some dependency in the system that the distribution is to be used.")] = None,
455
+ classifiers: Annotated[Optional[Any], Field(description="A JSON list containing classification values for a Python package.")] = None,
456
+ pulp_domain: StrictStr = "default",
457
+ _request_timeout: Union[
458
+ None,
459
+ Annotated[StrictFloat, Field(gt=0)],
460
+ Tuple[
461
+ Annotated[StrictFloat, Field(gt=0)],
462
+ Annotated[StrictFloat, Field(gt=0)]
463
+ ]
464
+ ] = None,
465
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
466
+ _content_type: Optional[StrictStr] = None,
467
+ _headers: Optional[Dict[StrictStr, Any]] = None,
468
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
469
+ ) -> RESTResponseType:
470
+ """Create a python package content
471
+
472
+ Trigger an asynchronous task to create content,optionally create new repository version.
473
+
474
+ :param pulp_domain: (required)
475
+ :type pulp_domain: str
476
+ :param relative_path: Path where the artifact is located relative to distributions base_path (required)
477
+ :type relative_path: str
478
+ :param x_task_diagnostics: List of profilers to use on tasks.
479
+ :type x_task_diagnostics: List[str]
480
+ :param repository: A URI of a repository the new content unit should be associated with.
481
+ :type repository: str
482
+ :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
483
+ :type pulp_labels: Dict[str, Optional[str]]
484
+ :param artifact: Artifact file representing the physical content
485
+ :type artifact: str
486
+ :param file: An uploaded file that may be turned into the content unit.
487
+ :type file: bytearray
488
+ :param upload: An uncommitted upload that may be turned into the content unit.
489
+ :type upload: str
490
+ :param file_url: A url that Pulp can download and turn into the content unit.
491
+ :type file_url: str
492
+ :param sha256: The SHA256 digest of this package.
493
+ :type sha256: str
494
+ :param summary: A one-line summary of what the package does.
495
+ :type summary: str
496
+ :param description: A longer description of the package that can run to several paragraphs.
497
+ :type description: str
498
+ :param description_content_type: A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.
499
+ :type description_content_type: str
500
+ :param keywords: Additional keywords to be used to assist searching for the package in a larger catalog.
501
+ :type keywords: str
502
+ :param home_page: The URL for the package's home page.
503
+ :type home_page: str
504
+ :param download_url: Legacy field denoting the URL from which this package can be downloaded.
505
+ :type download_url: str
506
+ :param author: Text containing the author's name. Contact information can also be added, separated with newlines.
507
+ :type author: str
508
+ :param author_email: The author's e-mail address.
509
+ :type author_email: str
510
+ :param maintainer: The maintainer's name at a minimum; additional contact information may be provided.
511
+ :type maintainer: str
512
+ :param maintainer_email: The maintainer's e-mail address.
513
+ :type maintainer_email: str
514
+ :param license: Text indicating the license covering the distribution
515
+ :type license: str
516
+ :param requires_python: The Python version(s) that the distribution is guaranteed to be compatible with.
517
+ :type requires_python: str
518
+ :param project_url: A browsable URL for the project and a label for it, separated by a comma.
519
+ :type project_url: str
520
+ :param project_urls: A dictionary of labels and URLs for the project.
521
+ :type project_urls: object
522
+ :param platform: A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
523
+ :type platform: str
524
+ :param supported_platform: Field to specify the OS and CPU for which the binary package was compiled.
525
+ :type supported_platform: str
526
+ :param requires_dist: A JSON list containing names of some other distutils project required by this distribution.
527
+ :type requires_dist: object
528
+ :param provides_dist: A JSON list containing names of a Distutils project which is contained within this distribution.
529
+ :type provides_dist: object
530
+ :param obsoletes_dist: A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
531
+ :type obsoletes_dist: object
532
+ :param requires_external: A JSON list containing some dependency in the system that the distribution is to be used.
533
+ :type requires_external: object
534
+ :param classifiers: A JSON list containing classification values for a Python package.
535
+ :type classifiers: object
536
+ :param _request_timeout: timeout setting for this request. If one
537
+ number provided, it will be total request
538
+ timeout. It can also be a pair (tuple) of
539
+ (connection, read) timeouts.
540
+ :type _request_timeout: int, tuple(int, int), optional
541
+ :param _request_auth: set to override the auth_settings for an a single
542
+ request; this effectively ignores the
543
+ authentication in the spec for a single request.
544
+ :type _request_auth: dict, optional
545
+ :param _content_type: force content-type for the request.
546
+ :type _content_type: str, Optional
547
+ :param _headers: set to override the headers for a single
548
+ request; this effectively ignores the headers
549
+ in the spec for a single request.
550
+ :type _headers: dict, optional
551
+ :param _host_index: set to override the host_index for a single
552
+ request; this effectively ignores the host_index
553
+ in the spec for a single request.
554
+ :type _host_index: int, optional
555
+ :return: Returns the result object.
556
+ """ # noqa: E501
557
+
558
+ _param = self._create_serialize(
559
+ pulp_domain=pulp_domain,
560
+ relative_path=relative_path,
561
+ x_task_diagnostics=x_task_diagnostics,
562
+ repository=repository,
563
+ pulp_labels=pulp_labels,
564
+ artifact=artifact,
565
+ file=file,
566
+ upload=upload,
567
+ file_url=file_url,
568
+ sha256=sha256,
569
+ summary=summary,
570
+ description=description,
571
+ description_content_type=description_content_type,
572
+ keywords=keywords,
573
+ home_page=home_page,
574
+ download_url=download_url,
575
+ author=author,
576
+ author_email=author_email,
577
+ maintainer=maintainer,
578
+ maintainer_email=maintainer_email,
579
+ license=license,
580
+ requires_python=requires_python,
581
+ project_url=project_url,
582
+ project_urls=project_urls,
583
+ platform=platform,
584
+ supported_platform=supported_platform,
585
+ requires_dist=requires_dist,
586
+ provides_dist=provides_dist,
587
+ obsoletes_dist=obsoletes_dist,
588
+ requires_external=requires_external,
589
+ classifiers=classifiers,
590
+ _request_auth=_request_auth,
591
+ _content_type=_content_type,
592
+ _headers=_headers,
593
+ _host_index=_host_index
594
+ )
595
+
596
+ _response_types_map: Dict[str, Optional[str]] = {
597
+ '202': "AsyncOperationResponse",
598
+ }
599
+ response_data = self.api_client.call_api(
600
+ *_param,
601
+ _request_timeout=_request_timeout
602
+ )
603
+ return response_data.response
604
+
605
+
606
+ def _create_serialize(
607
+ self,
608
+ pulp_domain,
609
+ relative_path,
610
+ x_task_diagnostics,
611
+ repository,
612
+ pulp_labels,
613
+ artifact,
614
+ file,
615
+ upload,
616
+ file_url,
617
+ sha256,
618
+ summary,
619
+ description,
620
+ description_content_type,
621
+ keywords,
622
+ home_page,
623
+ download_url,
624
+ author,
625
+ author_email,
626
+ maintainer,
627
+ maintainer_email,
628
+ license,
629
+ requires_python,
630
+ project_url,
631
+ project_urls,
632
+ platform,
633
+ supported_platform,
634
+ requires_dist,
635
+ provides_dist,
636
+ obsoletes_dist,
637
+ requires_external,
638
+ classifiers,
639
+ _request_auth,
640
+ _content_type,
641
+ _headers,
642
+ _host_index,
643
+ ) -> RequestSerialized:
644
+
645
+ _host = None
646
+
647
+ _collection_formats: Dict[str, str] = {
648
+ 'X-Task-Diagnostics': 'csv',
649
+ }
650
+
651
+ _path_params: Dict[str, str] = {}
652
+ _query_params: List[Tuple[str, str]] = []
653
+ _header_params: Dict[str, Optional[str]] = _headers or {}
654
+ _form_params: List[Tuple[str, str]] = []
655
+ _files: Dict[
656
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
657
+ ] = {}
658
+ _body_params: Optional[bytes] = None
659
+
660
+ # process the path parameters
661
+ if pulp_domain is not None:
662
+ _path_params['pulp_domain'] = pulp_domain
663
+ # process the query parameters
664
+ # process the header parameters
665
+ if x_task_diagnostics is not None:
666
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
667
+ # process the form parameters
668
+ if repository is not None:
669
+ _form_params.append(('repository', repository))
670
+ if pulp_labels is not None:
671
+ _form_params.append(('pulp_labels', pulp_labels))
672
+ if artifact is not None:
673
+ _form_params.append(('artifact', artifact))
674
+ if relative_path is not None:
675
+ _form_params.append(('relative_path', relative_path))
676
+ if file is not None:
677
+ _files['file'] = file
678
+ if upload is not None:
679
+ _form_params.append(('upload', upload))
680
+ if file_url is not None:
681
+ _form_params.append(('file_url', file_url))
682
+ if sha256 is not None:
683
+ _form_params.append(('sha256', sha256))
684
+ if summary is not None:
685
+ _form_params.append(('summary', summary))
686
+ if description is not None:
687
+ _form_params.append(('description', description))
688
+ if description_content_type is not None:
689
+ _form_params.append(('description_content_type', description_content_type))
690
+ if keywords is not None:
691
+ _form_params.append(('keywords', keywords))
692
+ if home_page is not None:
693
+ _form_params.append(('home_page', home_page))
694
+ if download_url is not None:
695
+ _form_params.append(('download_url', download_url))
696
+ if author is not None:
697
+ _form_params.append(('author', author))
698
+ if author_email is not None:
699
+ _form_params.append(('author_email', author_email))
700
+ if maintainer is not None:
701
+ _form_params.append(('maintainer', maintainer))
702
+ if maintainer_email is not None:
703
+ _form_params.append(('maintainer_email', maintainer_email))
704
+ if license is not None:
705
+ _form_params.append(('license', license))
706
+ if requires_python is not None:
707
+ _form_params.append(('requires_python', requires_python))
708
+ if project_url is not None:
709
+ _form_params.append(('project_url', project_url))
710
+ if project_urls is not None:
711
+ _form_params.append(('project_urls', project_urls))
712
+ if platform is not None:
713
+ _form_params.append(('platform', platform))
714
+ if supported_platform is not None:
715
+ _form_params.append(('supported_platform', supported_platform))
716
+ if requires_dist is not None:
717
+ _form_params.append(('requires_dist', requires_dist))
718
+ if provides_dist is not None:
719
+ _form_params.append(('provides_dist', provides_dist))
720
+ if obsoletes_dist is not None:
721
+ _form_params.append(('obsoletes_dist', obsoletes_dist))
722
+ if requires_external is not None:
723
+ _form_params.append(('requires_external', requires_external))
724
+ if classifiers is not None:
725
+ _form_params.append(('classifiers', classifiers))
726
+ # process the body parameter
727
+
728
+
729
+ # set the HTTP header `Accept`
730
+ if 'Accept' not in _header_params:
731
+ _header_params['Accept'] = self.api_client.select_header_accept(
732
+ [
733
+ 'application/json'
734
+ ]
735
+ )
736
+
737
+ # set the HTTP header `Content-Type`
738
+ if _content_type:
739
+ _header_params['Content-Type'] = _content_type
740
+ else:
741
+ _default_content_type = (
742
+ self.api_client.select_header_content_type(
743
+ [
744
+ 'multipart/form-data',
745
+ 'application/x-www-form-urlencoded'
746
+ ]
747
+ )
748
+ )
749
+ if _default_content_type is not None:
750
+ _header_params['Content-Type'] = _default_content_type
751
+
752
+ # authentication setting
753
+ _auth_settings: List[str] = [
754
+ 'json_header_remote_authentication',
755
+ 'basicAuth',
756
+ 'cookieAuth'
757
+ ]
758
+
759
+ return self.api_client.param_serialize(
760
+ method='POST',
761
+ resource_path='/api/pulp/{pulp_domain}/api/v3/content/python/packages/',
762
+ path_params=_path_params,
763
+ query_params=_query_params,
764
+ header_params=_header_params,
765
+ body=_body_params,
766
+ post_params=_form_params,
767
+ files=_files,
768
+ auth_settings=_auth_settings,
769
+ collection_formats=_collection_formats,
770
+ _host=_host,
771
+ _request_auth=_request_auth
772
+ )
773
+
774
+
775
+
776
+
777
+ @validate_call
778
+ def list(
779
+ self,
780
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
781
+ author: Annotated[Optional[StrictStr], Field(description="Filter results where author matches value")] = None,
782
+ author__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where author is in a comma-separated list of values")] = None,
783
+ filename: Annotated[Optional[StrictStr], Field(description="Filter results where filename matches value")] = None,
784
+ filename__contains: Annotated[Optional[StrictStr], Field(description="Filter results where filename contains value")] = None,
785
+ filename__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where filename is in a comma-separated list of values")] = None,
786
+ keywords__contains: Annotated[Optional[StrictStr], Field(description="Filter results where keywords contains value")] = None,
787
+ keywords__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where keywords is in a comma-separated list of values")] = None,
788
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
789
+ name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
790
+ name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
791
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
792
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
793
+ orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
794
+ packagetype: Annotated[Optional[StrictStr], Field(description="Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist")] = None,
795
+ packagetype__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where packagetype is in a comma-separated list of values")] = None,
796
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
797
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
798
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
799
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
800
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
801
+ repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
802
+ repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
803
+ repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
804
+ requires_python: Annotated[Optional[StrictStr], Field(description="Filter results where requires_python matches value")] = None,
805
+ requires_python__contains: Annotated[Optional[StrictStr], Field(description="Filter results where requires_python contains value")] = None,
806
+ requires_python__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where requires_python is in a comma-separated list of values")] = None,
807
+ sha256: Annotated[Optional[StrictStr], Field(description="Filter results where sha256 matches value")] = None,
808
+ sha256__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where sha256 is in a comma-separated list of values")] = None,
809
+ version: Annotated[Optional[StrictStr], Field(description="Filter results where version matches value")] = None,
810
+ version__gt: Annotated[Optional[StrictStr], Field(description="Filter results where version is greater than value")] = None,
811
+ version__gte: Annotated[Optional[StrictStr], Field(description="Filter results where version is greater than or equal to value")] = None,
812
+ version__lt: Annotated[Optional[StrictStr], Field(description="Filter results where version is less than value")] = None,
813
+ version__lte: Annotated[Optional[StrictStr], Field(description="Filter results where version is less than or equal to value")] = None,
814
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
815
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
816
+ pulp_domain: StrictStr = "default",
817
+ _request_timeout: Union[
818
+ None,
819
+ Annotated[StrictFloat, Field(gt=0)],
820
+ Tuple[
821
+ Annotated[StrictFloat, Field(gt=0)],
822
+ Annotated[StrictFloat, Field(gt=0)]
823
+ ]
824
+ ] = None,
825
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
826
+ _content_type: Optional[StrictStr] = None,
827
+ _headers: Optional[Dict[StrictStr, Any]] = None,
828
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
829
+ ) -> PaginatedpythonPythonPackageContentResponseList:
830
+ """List python package contents
831
+
832
+ PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
833
+
834
+ :param pulp_domain: (required)
835
+ :type pulp_domain: str
836
+ :param x_task_diagnostics: List of profilers to use on tasks.
837
+ :type x_task_diagnostics: List[str]
838
+ :param author: Filter results where author matches value
839
+ :type author: str
840
+ :param author__in: Filter results where author is in a comma-separated list of values
841
+ :type author__in: List[str]
842
+ :param filename: Filter results where filename matches value
843
+ :type filename: str
844
+ :param filename__contains: Filter results where filename contains value
845
+ :type filename__contains: str
846
+ :param filename__in: Filter results where filename is in a comma-separated list of values
847
+ :type filename__in: List[str]
848
+ :param keywords__contains: Filter results where keywords contains value
849
+ :type keywords__contains: str
850
+ :param keywords__in: Filter results where keywords is in a comma-separated list of values
851
+ :type keywords__in: List[str]
852
+ :param limit: Number of results to return per page.
853
+ :type limit: int
854
+ :param name: Filter results where name matches value
855
+ :type name: str
856
+ :param name__in: Filter results where name is in a comma-separated list of values
857
+ :type name__in: List[str]
858
+ :param offset: The initial index from which to return the results.
859
+ :type offset: int
860
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)
861
+ :type ordering: List[str]
862
+ :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
863
+ :type orphaned_for: float
864
+ :param packagetype: Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist
865
+ :type packagetype: str
866
+ :param packagetype__in: Filter results where packagetype is in a comma-separated list of values
867
+ :type packagetype__in: List[str]
868
+ :param prn__in: Multiple values may be separated by commas.
869
+ :type prn__in: List[str]
870
+ :param pulp_href__in: Multiple values may be separated by commas.
871
+ :type pulp_href__in: List[str]
872
+ :param pulp_id__in: Multiple values may be separated by commas.
873
+ :type pulp_id__in: List[str]
874
+ :param pulp_label_select: Filter labels by search string
875
+ :type pulp_label_select: str
876
+ :param q: Filter results by using NOT, AND and OR operations on other filters
877
+ :type q: str
878
+ :param repository_version: Repository Version referenced by HREF/PRN
879
+ :type repository_version: str
880
+ :param repository_version_added: Repository Version referenced by HREF/PRN
881
+ :type repository_version_added: str
882
+ :param repository_version_removed: Repository Version referenced by HREF/PRN
883
+ :type repository_version_removed: str
884
+ :param requires_python: Filter results where requires_python matches value
885
+ :type requires_python: str
886
+ :param requires_python__contains: Filter results where requires_python contains value
887
+ :type requires_python__contains: str
888
+ :param requires_python__in: Filter results where requires_python is in a comma-separated list of values
889
+ :type requires_python__in: List[str]
890
+ :param sha256: Filter results where sha256 matches value
891
+ :type sha256: str
892
+ :param sha256__in: Filter results where sha256 is in a comma-separated list of values
893
+ :type sha256__in: List[str]
894
+ :param version: Filter results where version matches value
895
+ :type version: str
896
+ :param version__gt: Filter results where version is greater than value
897
+ :type version__gt: str
898
+ :param version__gte: Filter results where version is greater than or equal to value
899
+ :type version__gte: str
900
+ :param version__lt: Filter results where version is less than value
901
+ :type version__lt: str
902
+ :param version__lte: Filter results where version is less than or equal to value
903
+ :type version__lte: str
904
+ :param fields: A list of fields to include in the response.
905
+ :type fields: List[str]
906
+ :param exclude_fields: A list of fields to exclude from the response.
907
+ :type exclude_fields: List[str]
908
+ :param _request_timeout: timeout setting for this request. If one
909
+ number provided, it will be total request
910
+ timeout. It can also be a pair (tuple) of
911
+ (connection, read) timeouts.
912
+ :type _request_timeout: int, tuple(int, int), optional
913
+ :param _request_auth: set to override the auth_settings for an a single
914
+ request; this effectively ignores the
915
+ authentication in the spec for a single request.
916
+ :type _request_auth: dict, optional
917
+ :param _content_type: force content-type for the request.
918
+ :type _content_type: str, Optional
919
+ :param _headers: set to override the headers for a single
920
+ request; this effectively ignores the headers
921
+ in the spec for a single request.
922
+ :type _headers: dict, optional
923
+ :param _host_index: set to override the host_index for a single
924
+ request; this effectively ignores the host_index
925
+ in the spec for a single request.
926
+ :type _host_index: int, optional
927
+ :return: Returns the result object.
928
+ """ # noqa: E501
929
+
930
+ _param = self._list_serialize(
931
+ pulp_domain=pulp_domain,
932
+ x_task_diagnostics=x_task_diagnostics,
933
+ author=author,
934
+ author__in=author__in,
935
+ filename=filename,
936
+ filename__contains=filename__contains,
937
+ filename__in=filename__in,
938
+ keywords__contains=keywords__contains,
939
+ keywords__in=keywords__in,
940
+ limit=limit,
941
+ name=name,
942
+ name__in=name__in,
943
+ offset=offset,
944
+ ordering=ordering,
945
+ orphaned_for=orphaned_for,
946
+ packagetype=packagetype,
947
+ packagetype__in=packagetype__in,
948
+ prn__in=prn__in,
949
+ pulp_href__in=pulp_href__in,
950
+ pulp_id__in=pulp_id__in,
951
+ pulp_label_select=pulp_label_select,
952
+ q=q,
953
+ repository_version=repository_version,
954
+ repository_version_added=repository_version_added,
955
+ repository_version_removed=repository_version_removed,
956
+ requires_python=requires_python,
957
+ requires_python__contains=requires_python__contains,
958
+ requires_python__in=requires_python__in,
959
+ sha256=sha256,
960
+ sha256__in=sha256__in,
961
+ version=version,
962
+ version__gt=version__gt,
963
+ version__gte=version__gte,
964
+ version__lt=version__lt,
965
+ version__lte=version__lte,
966
+ fields=fields,
967
+ exclude_fields=exclude_fields,
968
+ _request_auth=_request_auth,
969
+ _content_type=_content_type,
970
+ _headers=_headers,
971
+ _host_index=_host_index
972
+ )
973
+
974
+ _response_types_map: Dict[str, Optional[str]] = {
975
+ '200': "PaginatedpythonPythonPackageContentResponseList",
976
+ }
977
+ response_data = self.api_client.call_api(
978
+ *_param,
979
+ _request_timeout=_request_timeout
980
+ )
981
+ response_data.read()
982
+ return self.api_client.response_deserialize(
983
+ response_data=response_data,
984
+ response_types_map=_response_types_map,
985
+ ).data
986
+
987
+
988
+ @validate_call
989
+ def list_with_http_info(
990
+ self,
991
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
992
+ author: Annotated[Optional[StrictStr], Field(description="Filter results where author matches value")] = None,
993
+ author__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where author is in a comma-separated list of values")] = None,
994
+ filename: Annotated[Optional[StrictStr], Field(description="Filter results where filename matches value")] = None,
995
+ filename__contains: Annotated[Optional[StrictStr], Field(description="Filter results where filename contains value")] = None,
996
+ filename__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where filename is in a comma-separated list of values")] = None,
997
+ keywords__contains: Annotated[Optional[StrictStr], Field(description="Filter results where keywords contains value")] = None,
998
+ keywords__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where keywords is in a comma-separated list of values")] = None,
999
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
1000
+ name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
1001
+ name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
1002
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
1003
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
1004
+ orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
1005
+ packagetype: Annotated[Optional[StrictStr], Field(description="Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist")] = None,
1006
+ packagetype__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where packagetype is in a comma-separated list of values")] = None,
1007
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1008
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1009
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1010
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
1011
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
1012
+ repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
1013
+ repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
1014
+ repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
1015
+ requires_python: Annotated[Optional[StrictStr], Field(description="Filter results where requires_python matches value")] = None,
1016
+ requires_python__contains: Annotated[Optional[StrictStr], Field(description="Filter results where requires_python contains value")] = None,
1017
+ requires_python__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where requires_python is in a comma-separated list of values")] = None,
1018
+ sha256: Annotated[Optional[StrictStr], Field(description="Filter results where sha256 matches value")] = None,
1019
+ sha256__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where sha256 is in a comma-separated list of values")] = None,
1020
+ version: Annotated[Optional[StrictStr], Field(description="Filter results where version matches value")] = None,
1021
+ version__gt: Annotated[Optional[StrictStr], Field(description="Filter results where version is greater than value")] = None,
1022
+ version__gte: Annotated[Optional[StrictStr], Field(description="Filter results where version is greater than or equal to value")] = None,
1023
+ version__lt: Annotated[Optional[StrictStr], Field(description="Filter results where version is less than value")] = None,
1024
+ version__lte: Annotated[Optional[StrictStr], Field(description="Filter results where version is less than or equal to value")] = None,
1025
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1026
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1027
+ pulp_domain: StrictStr = "default",
1028
+ _request_timeout: Union[
1029
+ None,
1030
+ Annotated[StrictFloat, Field(gt=0)],
1031
+ Tuple[
1032
+ Annotated[StrictFloat, Field(gt=0)],
1033
+ Annotated[StrictFloat, Field(gt=0)]
1034
+ ]
1035
+ ] = None,
1036
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1037
+ _content_type: Optional[StrictStr] = None,
1038
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1039
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1040
+ ) -> ApiResponse[PaginatedpythonPythonPackageContentResponseList]:
1041
+ """List python package contents
1042
+
1043
+ PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
1044
+
1045
+ :param pulp_domain: (required)
1046
+ :type pulp_domain: str
1047
+ :param x_task_diagnostics: List of profilers to use on tasks.
1048
+ :type x_task_diagnostics: List[str]
1049
+ :param author: Filter results where author matches value
1050
+ :type author: str
1051
+ :param author__in: Filter results where author is in a comma-separated list of values
1052
+ :type author__in: List[str]
1053
+ :param filename: Filter results where filename matches value
1054
+ :type filename: str
1055
+ :param filename__contains: Filter results where filename contains value
1056
+ :type filename__contains: str
1057
+ :param filename__in: Filter results where filename is in a comma-separated list of values
1058
+ :type filename__in: List[str]
1059
+ :param keywords__contains: Filter results where keywords contains value
1060
+ :type keywords__contains: str
1061
+ :param keywords__in: Filter results where keywords is in a comma-separated list of values
1062
+ :type keywords__in: List[str]
1063
+ :param limit: Number of results to return per page.
1064
+ :type limit: int
1065
+ :param name: Filter results where name matches value
1066
+ :type name: str
1067
+ :param name__in: Filter results where name is in a comma-separated list of values
1068
+ :type name__in: List[str]
1069
+ :param offset: The initial index from which to return the results.
1070
+ :type offset: int
1071
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)
1072
+ :type ordering: List[str]
1073
+ :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
1074
+ :type orphaned_for: float
1075
+ :param packagetype: Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist
1076
+ :type packagetype: str
1077
+ :param packagetype__in: Filter results where packagetype is in a comma-separated list of values
1078
+ :type packagetype__in: List[str]
1079
+ :param prn__in: Multiple values may be separated by commas.
1080
+ :type prn__in: List[str]
1081
+ :param pulp_href__in: Multiple values may be separated by commas.
1082
+ :type pulp_href__in: List[str]
1083
+ :param pulp_id__in: Multiple values may be separated by commas.
1084
+ :type pulp_id__in: List[str]
1085
+ :param pulp_label_select: Filter labels by search string
1086
+ :type pulp_label_select: str
1087
+ :param q: Filter results by using NOT, AND and OR operations on other filters
1088
+ :type q: str
1089
+ :param repository_version: Repository Version referenced by HREF/PRN
1090
+ :type repository_version: str
1091
+ :param repository_version_added: Repository Version referenced by HREF/PRN
1092
+ :type repository_version_added: str
1093
+ :param repository_version_removed: Repository Version referenced by HREF/PRN
1094
+ :type repository_version_removed: str
1095
+ :param requires_python: Filter results where requires_python matches value
1096
+ :type requires_python: str
1097
+ :param requires_python__contains: Filter results where requires_python contains value
1098
+ :type requires_python__contains: str
1099
+ :param requires_python__in: Filter results where requires_python is in a comma-separated list of values
1100
+ :type requires_python__in: List[str]
1101
+ :param sha256: Filter results where sha256 matches value
1102
+ :type sha256: str
1103
+ :param sha256__in: Filter results where sha256 is in a comma-separated list of values
1104
+ :type sha256__in: List[str]
1105
+ :param version: Filter results where version matches value
1106
+ :type version: str
1107
+ :param version__gt: Filter results where version is greater than value
1108
+ :type version__gt: str
1109
+ :param version__gte: Filter results where version is greater than or equal to value
1110
+ :type version__gte: str
1111
+ :param version__lt: Filter results where version is less than value
1112
+ :type version__lt: str
1113
+ :param version__lte: Filter results where version is less than or equal to value
1114
+ :type version__lte: str
1115
+ :param fields: A list of fields to include in the response.
1116
+ :type fields: List[str]
1117
+ :param exclude_fields: A list of fields to exclude from the response.
1118
+ :type exclude_fields: List[str]
1119
+ :param _request_timeout: timeout setting for this request. If one
1120
+ number provided, it will be total request
1121
+ timeout. It can also be a pair (tuple) of
1122
+ (connection, read) timeouts.
1123
+ :type _request_timeout: int, tuple(int, int), optional
1124
+ :param _request_auth: set to override the auth_settings for an a single
1125
+ request; this effectively ignores the
1126
+ authentication in the spec for a single request.
1127
+ :type _request_auth: dict, optional
1128
+ :param _content_type: force content-type for the request.
1129
+ :type _content_type: str, Optional
1130
+ :param _headers: set to override the headers for a single
1131
+ request; this effectively ignores the headers
1132
+ in the spec for a single request.
1133
+ :type _headers: dict, optional
1134
+ :param _host_index: set to override the host_index for a single
1135
+ request; this effectively ignores the host_index
1136
+ in the spec for a single request.
1137
+ :type _host_index: int, optional
1138
+ :return: Returns the result object.
1139
+ """ # noqa: E501
1140
+
1141
+ _param = self._list_serialize(
1142
+ pulp_domain=pulp_domain,
1143
+ x_task_diagnostics=x_task_diagnostics,
1144
+ author=author,
1145
+ author__in=author__in,
1146
+ filename=filename,
1147
+ filename__contains=filename__contains,
1148
+ filename__in=filename__in,
1149
+ keywords__contains=keywords__contains,
1150
+ keywords__in=keywords__in,
1151
+ limit=limit,
1152
+ name=name,
1153
+ name__in=name__in,
1154
+ offset=offset,
1155
+ ordering=ordering,
1156
+ orphaned_for=orphaned_for,
1157
+ packagetype=packagetype,
1158
+ packagetype__in=packagetype__in,
1159
+ prn__in=prn__in,
1160
+ pulp_href__in=pulp_href__in,
1161
+ pulp_id__in=pulp_id__in,
1162
+ pulp_label_select=pulp_label_select,
1163
+ q=q,
1164
+ repository_version=repository_version,
1165
+ repository_version_added=repository_version_added,
1166
+ repository_version_removed=repository_version_removed,
1167
+ requires_python=requires_python,
1168
+ requires_python__contains=requires_python__contains,
1169
+ requires_python__in=requires_python__in,
1170
+ sha256=sha256,
1171
+ sha256__in=sha256__in,
1172
+ version=version,
1173
+ version__gt=version__gt,
1174
+ version__gte=version__gte,
1175
+ version__lt=version__lt,
1176
+ version__lte=version__lte,
1177
+ fields=fields,
1178
+ exclude_fields=exclude_fields,
1179
+ _request_auth=_request_auth,
1180
+ _content_type=_content_type,
1181
+ _headers=_headers,
1182
+ _host_index=_host_index
1183
+ )
1184
+
1185
+ _response_types_map: Dict[str, Optional[str]] = {
1186
+ '200': "PaginatedpythonPythonPackageContentResponseList",
1187
+ }
1188
+ response_data = self.api_client.call_api(
1189
+ *_param,
1190
+ _request_timeout=_request_timeout
1191
+ )
1192
+ response_data.read()
1193
+ return self.api_client.response_deserialize(
1194
+ response_data=response_data,
1195
+ response_types_map=_response_types_map,
1196
+ )
1197
+
1198
+
1199
+ @validate_call
1200
+ def list_without_preload_content(
1201
+ self,
1202
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1203
+ author: Annotated[Optional[StrictStr], Field(description="Filter results where author matches value")] = None,
1204
+ author__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where author is in a comma-separated list of values")] = None,
1205
+ filename: Annotated[Optional[StrictStr], Field(description="Filter results where filename matches value")] = None,
1206
+ filename__contains: Annotated[Optional[StrictStr], Field(description="Filter results where filename contains value")] = None,
1207
+ filename__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where filename is in a comma-separated list of values")] = None,
1208
+ keywords__contains: Annotated[Optional[StrictStr], Field(description="Filter results where keywords contains value")] = None,
1209
+ keywords__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where keywords is in a comma-separated list of values")] = None,
1210
+ limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
1211
+ name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
1212
+ name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
1213
+ offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
1214
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
1215
+ orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
1216
+ packagetype: Annotated[Optional[StrictStr], Field(description="Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist")] = None,
1217
+ packagetype__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where packagetype is in a comma-separated list of values")] = None,
1218
+ prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1219
+ pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1220
+ pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1221
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
1222
+ q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
1223
+ repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
1224
+ repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
1225
+ repository_version_removed: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
1226
+ requires_python: Annotated[Optional[StrictStr], Field(description="Filter results where requires_python matches value")] = None,
1227
+ requires_python__contains: Annotated[Optional[StrictStr], Field(description="Filter results where requires_python contains value")] = None,
1228
+ requires_python__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where requires_python is in a comma-separated list of values")] = None,
1229
+ sha256: Annotated[Optional[StrictStr], Field(description="Filter results where sha256 matches value")] = None,
1230
+ sha256__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where sha256 is in a comma-separated list of values")] = None,
1231
+ version: Annotated[Optional[StrictStr], Field(description="Filter results where version matches value")] = None,
1232
+ version__gt: Annotated[Optional[StrictStr], Field(description="Filter results where version is greater than value")] = None,
1233
+ version__gte: Annotated[Optional[StrictStr], Field(description="Filter results where version is greater than or equal to value")] = None,
1234
+ version__lt: Annotated[Optional[StrictStr], Field(description="Filter results where version is less than value")] = None,
1235
+ version__lte: Annotated[Optional[StrictStr], Field(description="Filter results where version is less than or equal to value")] = None,
1236
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1237
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1238
+ pulp_domain: StrictStr = "default",
1239
+ _request_timeout: Union[
1240
+ None,
1241
+ Annotated[StrictFloat, Field(gt=0)],
1242
+ Tuple[
1243
+ Annotated[StrictFloat, Field(gt=0)],
1244
+ Annotated[StrictFloat, Field(gt=0)]
1245
+ ]
1246
+ ] = None,
1247
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1248
+ _content_type: Optional[StrictStr] = None,
1249
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1250
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1251
+ ) -> RESTResponseType:
1252
+ """List python package contents
1253
+
1254
+ PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
1255
+
1256
+ :param pulp_domain: (required)
1257
+ :type pulp_domain: str
1258
+ :param x_task_diagnostics: List of profilers to use on tasks.
1259
+ :type x_task_diagnostics: List[str]
1260
+ :param author: Filter results where author matches value
1261
+ :type author: str
1262
+ :param author__in: Filter results where author is in a comma-separated list of values
1263
+ :type author__in: List[str]
1264
+ :param filename: Filter results where filename matches value
1265
+ :type filename: str
1266
+ :param filename__contains: Filter results where filename contains value
1267
+ :type filename__contains: str
1268
+ :param filename__in: Filter results where filename is in a comma-separated list of values
1269
+ :type filename__in: List[str]
1270
+ :param keywords__contains: Filter results where keywords contains value
1271
+ :type keywords__contains: str
1272
+ :param keywords__in: Filter results where keywords is in a comma-separated list of values
1273
+ :type keywords__in: List[str]
1274
+ :param limit: Number of results to return per page.
1275
+ :type limit: int
1276
+ :param name: Filter results where name matches value
1277
+ :type name: str
1278
+ :param name__in: Filter results where name is in a comma-separated list of values
1279
+ :type name__in: List[str]
1280
+ :param offset: The initial index from which to return the results.
1281
+ :type offset: int
1282
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)
1283
+ :type ordering: List[str]
1284
+ :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
1285
+ :type orphaned_for: float
1286
+ :param packagetype: Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist
1287
+ :type packagetype: str
1288
+ :param packagetype__in: Filter results where packagetype is in a comma-separated list of values
1289
+ :type packagetype__in: List[str]
1290
+ :param prn__in: Multiple values may be separated by commas.
1291
+ :type prn__in: List[str]
1292
+ :param pulp_href__in: Multiple values may be separated by commas.
1293
+ :type pulp_href__in: List[str]
1294
+ :param pulp_id__in: Multiple values may be separated by commas.
1295
+ :type pulp_id__in: List[str]
1296
+ :param pulp_label_select: Filter labels by search string
1297
+ :type pulp_label_select: str
1298
+ :param q: Filter results by using NOT, AND and OR operations on other filters
1299
+ :type q: str
1300
+ :param repository_version: Repository Version referenced by HREF/PRN
1301
+ :type repository_version: str
1302
+ :param repository_version_added: Repository Version referenced by HREF/PRN
1303
+ :type repository_version_added: str
1304
+ :param repository_version_removed: Repository Version referenced by HREF/PRN
1305
+ :type repository_version_removed: str
1306
+ :param requires_python: Filter results where requires_python matches value
1307
+ :type requires_python: str
1308
+ :param requires_python__contains: Filter results where requires_python contains value
1309
+ :type requires_python__contains: str
1310
+ :param requires_python__in: Filter results where requires_python is in a comma-separated list of values
1311
+ :type requires_python__in: List[str]
1312
+ :param sha256: Filter results where sha256 matches value
1313
+ :type sha256: str
1314
+ :param sha256__in: Filter results where sha256 is in a comma-separated list of values
1315
+ :type sha256__in: List[str]
1316
+ :param version: Filter results where version matches value
1317
+ :type version: str
1318
+ :param version__gt: Filter results where version is greater than value
1319
+ :type version__gt: str
1320
+ :param version__gte: Filter results where version is greater than or equal to value
1321
+ :type version__gte: str
1322
+ :param version__lt: Filter results where version is less than value
1323
+ :type version__lt: str
1324
+ :param version__lte: Filter results where version is less than or equal to value
1325
+ :type version__lte: str
1326
+ :param fields: A list of fields to include in the response.
1327
+ :type fields: List[str]
1328
+ :param exclude_fields: A list of fields to exclude from the response.
1329
+ :type exclude_fields: List[str]
1330
+ :param _request_timeout: timeout setting for this request. If one
1331
+ number provided, it will be total request
1332
+ timeout. It can also be a pair (tuple) of
1333
+ (connection, read) timeouts.
1334
+ :type _request_timeout: int, tuple(int, int), optional
1335
+ :param _request_auth: set to override the auth_settings for an a single
1336
+ request; this effectively ignores the
1337
+ authentication in the spec for a single request.
1338
+ :type _request_auth: dict, optional
1339
+ :param _content_type: force content-type for the request.
1340
+ :type _content_type: str, Optional
1341
+ :param _headers: set to override the headers for a single
1342
+ request; this effectively ignores the headers
1343
+ in the spec for a single request.
1344
+ :type _headers: dict, optional
1345
+ :param _host_index: set to override the host_index for a single
1346
+ request; this effectively ignores the host_index
1347
+ in the spec for a single request.
1348
+ :type _host_index: int, optional
1349
+ :return: Returns the result object.
1350
+ """ # noqa: E501
1351
+
1352
+ _param = self._list_serialize(
1353
+ pulp_domain=pulp_domain,
1354
+ x_task_diagnostics=x_task_diagnostics,
1355
+ author=author,
1356
+ author__in=author__in,
1357
+ filename=filename,
1358
+ filename__contains=filename__contains,
1359
+ filename__in=filename__in,
1360
+ keywords__contains=keywords__contains,
1361
+ keywords__in=keywords__in,
1362
+ limit=limit,
1363
+ name=name,
1364
+ name__in=name__in,
1365
+ offset=offset,
1366
+ ordering=ordering,
1367
+ orphaned_for=orphaned_for,
1368
+ packagetype=packagetype,
1369
+ packagetype__in=packagetype__in,
1370
+ prn__in=prn__in,
1371
+ pulp_href__in=pulp_href__in,
1372
+ pulp_id__in=pulp_id__in,
1373
+ pulp_label_select=pulp_label_select,
1374
+ q=q,
1375
+ repository_version=repository_version,
1376
+ repository_version_added=repository_version_added,
1377
+ repository_version_removed=repository_version_removed,
1378
+ requires_python=requires_python,
1379
+ requires_python__contains=requires_python__contains,
1380
+ requires_python__in=requires_python__in,
1381
+ sha256=sha256,
1382
+ sha256__in=sha256__in,
1383
+ version=version,
1384
+ version__gt=version__gt,
1385
+ version__gte=version__gte,
1386
+ version__lt=version__lt,
1387
+ version__lte=version__lte,
1388
+ fields=fields,
1389
+ exclude_fields=exclude_fields,
1390
+ _request_auth=_request_auth,
1391
+ _content_type=_content_type,
1392
+ _headers=_headers,
1393
+ _host_index=_host_index
1394
+ )
1395
+
1396
+ _response_types_map: Dict[str, Optional[str]] = {
1397
+ '200': "PaginatedpythonPythonPackageContentResponseList",
1398
+ }
1399
+ response_data = self.api_client.call_api(
1400
+ *_param,
1401
+ _request_timeout=_request_timeout
1402
+ )
1403
+ return response_data.response
1404
+
1405
+
1406
+ def _list_serialize(
1407
+ self,
1408
+ pulp_domain,
1409
+ x_task_diagnostics,
1410
+ author,
1411
+ author__in,
1412
+ filename,
1413
+ filename__contains,
1414
+ filename__in,
1415
+ keywords__contains,
1416
+ keywords__in,
1417
+ limit,
1418
+ name,
1419
+ name__in,
1420
+ offset,
1421
+ ordering,
1422
+ orphaned_for,
1423
+ packagetype,
1424
+ packagetype__in,
1425
+ prn__in,
1426
+ pulp_href__in,
1427
+ pulp_id__in,
1428
+ pulp_label_select,
1429
+ q,
1430
+ repository_version,
1431
+ repository_version_added,
1432
+ repository_version_removed,
1433
+ requires_python,
1434
+ requires_python__contains,
1435
+ requires_python__in,
1436
+ sha256,
1437
+ sha256__in,
1438
+ version,
1439
+ version__gt,
1440
+ version__gte,
1441
+ version__lt,
1442
+ version__lte,
1443
+ fields,
1444
+ exclude_fields,
1445
+ _request_auth,
1446
+ _content_type,
1447
+ _headers,
1448
+ _host_index,
1449
+ ) -> RequestSerialized:
1450
+
1451
+ _host = None
1452
+
1453
+ _collection_formats: Dict[str, str] = {
1454
+ 'X-Task-Diagnostics': 'csv',
1455
+ 'author__in': 'csv',
1456
+ 'filename__in': 'csv',
1457
+ 'keywords__in': 'csv',
1458
+ 'name__in': 'csv',
1459
+ 'ordering': 'csv',
1460
+ 'packagetype__in': 'csv',
1461
+ 'prn__in': 'csv',
1462
+ 'pulp_href__in': 'csv',
1463
+ 'pulp_id__in': 'csv',
1464
+ 'requires_python__in': 'csv',
1465
+ 'sha256__in': 'csv',
1466
+ 'fields': 'multi',
1467
+ 'exclude_fields': 'multi',
1468
+ }
1469
+
1470
+ _path_params: Dict[str, str] = {}
1471
+ _query_params: List[Tuple[str, str]] = []
1472
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1473
+ _form_params: List[Tuple[str, str]] = []
1474
+ _files: Dict[
1475
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1476
+ ] = {}
1477
+ _body_params: Optional[bytes] = None
1478
+
1479
+ # process the path parameters
1480
+ if pulp_domain is not None:
1481
+ _path_params['pulp_domain'] = pulp_domain
1482
+ # process the query parameters
1483
+ if author is not None:
1484
+
1485
+ _query_params.append(('author', author))
1486
+
1487
+ if author__in is not None:
1488
+
1489
+ _query_params.append(('author__in', author__in))
1490
+
1491
+ if filename is not None:
1492
+
1493
+ _query_params.append(('filename', filename))
1494
+
1495
+ if filename__contains is not None:
1496
+
1497
+ _query_params.append(('filename__contains', filename__contains))
1498
+
1499
+ if filename__in is not None:
1500
+
1501
+ _query_params.append(('filename__in', filename__in))
1502
+
1503
+ if keywords__contains is not None:
1504
+
1505
+ _query_params.append(('keywords__contains', keywords__contains))
1506
+
1507
+ if keywords__in is not None:
1508
+
1509
+ _query_params.append(('keywords__in', keywords__in))
1510
+
1511
+ if limit is not None:
1512
+
1513
+ _query_params.append(('limit', limit))
1514
+
1515
+ if name is not None:
1516
+
1517
+ _query_params.append(('name', name))
1518
+
1519
+ if name__in is not None:
1520
+
1521
+ _query_params.append(('name__in', name__in))
1522
+
1523
+ if offset is not None:
1524
+
1525
+ _query_params.append(('offset', offset))
1526
+
1527
+ if ordering is not None:
1528
+
1529
+ _query_params.append(('ordering', ordering))
1530
+
1531
+ if orphaned_for is not None:
1532
+
1533
+ _query_params.append(('orphaned_for', orphaned_for))
1534
+
1535
+ if packagetype is not None:
1536
+
1537
+ _query_params.append(('packagetype', packagetype))
1538
+
1539
+ if packagetype__in is not None:
1540
+
1541
+ _query_params.append(('packagetype__in', packagetype__in))
1542
+
1543
+ if prn__in is not None:
1544
+
1545
+ _query_params.append(('prn__in', prn__in))
1546
+
1547
+ if pulp_href__in is not None:
1548
+
1549
+ _query_params.append(('pulp_href__in', pulp_href__in))
1550
+
1551
+ if pulp_id__in is not None:
1552
+
1553
+ _query_params.append(('pulp_id__in', pulp_id__in))
1554
+
1555
+ if pulp_label_select is not None:
1556
+
1557
+ _query_params.append(('pulp_label_select', pulp_label_select))
1558
+
1559
+ if q is not None:
1560
+
1561
+ _query_params.append(('q', q))
1562
+
1563
+ if repository_version is not None:
1564
+
1565
+ _query_params.append(('repository_version', repository_version))
1566
+
1567
+ if repository_version_added is not None:
1568
+
1569
+ _query_params.append(('repository_version_added', repository_version_added))
1570
+
1571
+ if repository_version_removed is not None:
1572
+
1573
+ _query_params.append(('repository_version_removed', repository_version_removed))
1574
+
1575
+ if requires_python is not None:
1576
+
1577
+ _query_params.append(('requires_python', requires_python))
1578
+
1579
+ if requires_python__contains is not None:
1580
+
1581
+ _query_params.append(('requires_python__contains', requires_python__contains))
1582
+
1583
+ if requires_python__in is not None:
1584
+
1585
+ _query_params.append(('requires_python__in', requires_python__in))
1586
+
1587
+ if sha256 is not None:
1588
+
1589
+ _query_params.append(('sha256', sha256))
1590
+
1591
+ if sha256__in is not None:
1592
+
1593
+ _query_params.append(('sha256__in', sha256__in))
1594
+
1595
+ if version is not None:
1596
+
1597
+ _query_params.append(('version', version))
1598
+
1599
+ if version__gt is not None:
1600
+
1601
+ _query_params.append(('version__gt', version__gt))
1602
+
1603
+ if version__gte is not None:
1604
+
1605
+ _query_params.append(('version__gte', version__gte))
1606
+
1607
+ if version__lt is not None:
1608
+
1609
+ _query_params.append(('version__lt', version__lt))
1610
+
1611
+ if version__lte is not None:
1612
+
1613
+ _query_params.append(('version__lte', version__lte))
1614
+
1615
+ if fields is not None:
1616
+
1617
+ _query_params.append(('fields', fields))
1618
+
1619
+ if exclude_fields is not None:
1620
+
1621
+ _query_params.append(('exclude_fields', exclude_fields))
1622
+
1623
+ # process the header parameters
1624
+ if x_task_diagnostics is not None:
1625
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1626
+ # process the form parameters
1627
+ # process the body parameter
1628
+
1629
+
1630
+ # set the HTTP header `Accept`
1631
+ if 'Accept' not in _header_params:
1632
+ _header_params['Accept'] = self.api_client.select_header_accept(
1633
+ [
1634
+ 'application/json'
1635
+ ]
1636
+ )
1637
+
1638
+
1639
+ # authentication setting
1640
+ _auth_settings: List[str] = [
1641
+ 'json_header_remote_authentication',
1642
+ 'basicAuth',
1643
+ 'cookieAuth'
1644
+ ]
1645
+
1646
+ return self.api_client.param_serialize(
1647
+ method='GET',
1648
+ resource_path='/api/pulp/{pulp_domain}/api/v3/content/python/packages/',
1649
+ path_params=_path_params,
1650
+ query_params=_query_params,
1651
+ header_params=_header_params,
1652
+ body=_body_params,
1653
+ post_params=_form_params,
1654
+ files=_files,
1655
+ auth_settings=_auth_settings,
1656
+ collection_formats=_collection_formats,
1657
+ _host=_host,
1658
+ _request_auth=_request_auth
1659
+ )
1660
+
1661
+
1662
+
1663
+
1664
+ @validate_call
1665
+ def read(
1666
+ self,
1667
+ python_python_package_content_href: StrictStr,
1668
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1669
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1670
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1671
+ _request_timeout: Union[
1672
+ None,
1673
+ Annotated[StrictFloat, Field(gt=0)],
1674
+ Tuple[
1675
+ Annotated[StrictFloat, Field(gt=0)],
1676
+ Annotated[StrictFloat, Field(gt=0)]
1677
+ ]
1678
+ ] = None,
1679
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1680
+ _content_type: Optional[StrictStr] = None,
1681
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1682
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1683
+ ) -> PythonPythonPackageContentResponse:
1684
+ """Inspect a python package content
1685
+
1686
+ PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
1687
+
1688
+ :param python_python_package_content_href: (required)
1689
+ :type python_python_package_content_href: str
1690
+ :param x_task_diagnostics: List of profilers to use on tasks.
1691
+ :type x_task_diagnostics: List[str]
1692
+ :param fields: A list of fields to include in the response.
1693
+ :type fields: List[str]
1694
+ :param exclude_fields: A list of fields to exclude from the response.
1695
+ :type exclude_fields: List[str]
1696
+ :param _request_timeout: timeout setting for this request. If one
1697
+ number provided, it will be total request
1698
+ timeout. It can also be a pair (tuple) of
1699
+ (connection, read) timeouts.
1700
+ :type _request_timeout: int, tuple(int, int), optional
1701
+ :param _request_auth: set to override the auth_settings for an a single
1702
+ request; this effectively ignores the
1703
+ authentication in the spec for a single request.
1704
+ :type _request_auth: dict, optional
1705
+ :param _content_type: force content-type for the request.
1706
+ :type _content_type: str, Optional
1707
+ :param _headers: set to override the headers for a single
1708
+ request; this effectively ignores the headers
1709
+ in the spec for a single request.
1710
+ :type _headers: dict, optional
1711
+ :param _host_index: set to override the host_index for a single
1712
+ request; this effectively ignores the host_index
1713
+ in the spec for a single request.
1714
+ :type _host_index: int, optional
1715
+ :return: Returns the result object.
1716
+ """ # noqa: E501
1717
+
1718
+ _param = self._read_serialize(
1719
+ python_python_package_content_href=python_python_package_content_href,
1720
+ x_task_diagnostics=x_task_diagnostics,
1721
+ fields=fields,
1722
+ exclude_fields=exclude_fields,
1723
+ _request_auth=_request_auth,
1724
+ _content_type=_content_type,
1725
+ _headers=_headers,
1726
+ _host_index=_host_index
1727
+ )
1728
+
1729
+ _response_types_map: Dict[str, Optional[str]] = {
1730
+ '200': "PythonPythonPackageContentResponse",
1731
+ }
1732
+ response_data = self.api_client.call_api(
1733
+ *_param,
1734
+ _request_timeout=_request_timeout
1735
+ )
1736
+ response_data.read()
1737
+ return self.api_client.response_deserialize(
1738
+ response_data=response_data,
1739
+ response_types_map=_response_types_map,
1740
+ ).data
1741
+
1742
+
1743
+ @validate_call
1744
+ def read_with_http_info(
1745
+ self,
1746
+ python_python_package_content_href: StrictStr,
1747
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1748
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1749
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1750
+ _request_timeout: Union[
1751
+ None,
1752
+ Annotated[StrictFloat, Field(gt=0)],
1753
+ Tuple[
1754
+ Annotated[StrictFloat, Field(gt=0)],
1755
+ Annotated[StrictFloat, Field(gt=0)]
1756
+ ]
1757
+ ] = None,
1758
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1759
+ _content_type: Optional[StrictStr] = None,
1760
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1761
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1762
+ ) -> ApiResponse[PythonPythonPackageContentResponse]:
1763
+ """Inspect a python package content
1764
+
1765
+ PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
1766
+
1767
+ :param python_python_package_content_href: (required)
1768
+ :type python_python_package_content_href: str
1769
+ :param x_task_diagnostics: List of profilers to use on tasks.
1770
+ :type x_task_diagnostics: List[str]
1771
+ :param fields: A list of fields to include in the response.
1772
+ :type fields: List[str]
1773
+ :param exclude_fields: A list of fields to exclude from the response.
1774
+ :type exclude_fields: List[str]
1775
+ :param _request_timeout: timeout setting for this request. If one
1776
+ number provided, it will be total request
1777
+ timeout. It can also be a pair (tuple) of
1778
+ (connection, read) timeouts.
1779
+ :type _request_timeout: int, tuple(int, int), optional
1780
+ :param _request_auth: set to override the auth_settings for an a single
1781
+ request; this effectively ignores the
1782
+ authentication in the spec for a single request.
1783
+ :type _request_auth: dict, optional
1784
+ :param _content_type: force content-type for the request.
1785
+ :type _content_type: str, Optional
1786
+ :param _headers: set to override the headers for a single
1787
+ request; this effectively ignores the headers
1788
+ in the spec for a single request.
1789
+ :type _headers: dict, optional
1790
+ :param _host_index: set to override the host_index for a single
1791
+ request; this effectively ignores the host_index
1792
+ in the spec for a single request.
1793
+ :type _host_index: int, optional
1794
+ :return: Returns the result object.
1795
+ """ # noqa: E501
1796
+
1797
+ _param = self._read_serialize(
1798
+ python_python_package_content_href=python_python_package_content_href,
1799
+ x_task_diagnostics=x_task_diagnostics,
1800
+ fields=fields,
1801
+ exclude_fields=exclude_fields,
1802
+ _request_auth=_request_auth,
1803
+ _content_type=_content_type,
1804
+ _headers=_headers,
1805
+ _host_index=_host_index
1806
+ )
1807
+
1808
+ _response_types_map: Dict[str, Optional[str]] = {
1809
+ '200': "PythonPythonPackageContentResponse",
1810
+ }
1811
+ response_data = self.api_client.call_api(
1812
+ *_param,
1813
+ _request_timeout=_request_timeout
1814
+ )
1815
+ response_data.read()
1816
+ return self.api_client.response_deserialize(
1817
+ response_data=response_data,
1818
+ response_types_map=_response_types_map,
1819
+ )
1820
+
1821
+
1822
+ @validate_call
1823
+ def read_without_preload_content(
1824
+ self,
1825
+ python_python_package_content_href: StrictStr,
1826
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1827
+ fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
1828
+ exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
1829
+ _request_timeout: Union[
1830
+ None,
1831
+ Annotated[StrictFloat, Field(gt=0)],
1832
+ Tuple[
1833
+ Annotated[StrictFloat, Field(gt=0)],
1834
+ Annotated[StrictFloat, Field(gt=0)]
1835
+ ]
1836
+ ] = None,
1837
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1838
+ _content_type: Optional[StrictStr] = None,
1839
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1840
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1841
+ ) -> RESTResponseType:
1842
+ """Inspect a python package content
1843
+
1844
+ PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
1845
+
1846
+ :param python_python_package_content_href: (required)
1847
+ :type python_python_package_content_href: str
1848
+ :param x_task_diagnostics: List of profilers to use on tasks.
1849
+ :type x_task_diagnostics: List[str]
1850
+ :param fields: A list of fields to include in the response.
1851
+ :type fields: List[str]
1852
+ :param exclude_fields: A list of fields to exclude from the response.
1853
+ :type exclude_fields: List[str]
1854
+ :param _request_timeout: timeout setting for this request. If one
1855
+ number provided, it will be total request
1856
+ timeout. It can also be a pair (tuple) of
1857
+ (connection, read) timeouts.
1858
+ :type _request_timeout: int, tuple(int, int), optional
1859
+ :param _request_auth: set to override the auth_settings for an a single
1860
+ request; this effectively ignores the
1861
+ authentication in the spec for a single request.
1862
+ :type _request_auth: dict, optional
1863
+ :param _content_type: force content-type for the request.
1864
+ :type _content_type: str, Optional
1865
+ :param _headers: set to override the headers for a single
1866
+ request; this effectively ignores the headers
1867
+ in the spec for a single request.
1868
+ :type _headers: dict, optional
1869
+ :param _host_index: set to override the host_index for a single
1870
+ request; this effectively ignores the host_index
1871
+ in the spec for a single request.
1872
+ :type _host_index: int, optional
1873
+ :return: Returns the result object.
1874
+ """ # noqa: E501
1875
+
1876
+ _param = self._read_serialize(
1877
+ python_python_package_content_href=python_python_package_content_href,
1878
+ x_task_diagnostics=x_task_diagnostics,
1879
+ fields=fields,
1880
+ exclude_fields=exclude_fields,
1881
+ _request_auth=_request_auth,
1882
+ _content_type=_content_type,
1883
+ _headers=_headers,
1884
+ _host_index=_host_index
1885
+ )
1886
+
1887
+ _response_types_map: Dict[str, Optional[str]] = {
1888
+ '200': "PythonPythonPackageContentResponse",
1889
+ }
1890
+ response_data = self.api_client.call_api(
1891
+ *_param,
1892
+ _request_timeout=_request_timeout
1893
+ )
1894
+ return response_data.response
1895
+
1896
+
1897
+ def _read_serialize(
1898
+ self,
1899
+ python_python_package_content_href,
1900
+ x_task_diagnostics,
1901
+ fields,
1902
+ exclude_fields,
1903
+ _request_auth,
1904
+ _content_type,
1905
+ _headers,
1906
+ _host_index,
1907
+ ) -> RequestSerialized:
1908
+
1909
+ _host = None
1910
+
1911
+ _collection_formats: Dict[str, str] = {
1912
+ 'X-Task-Diagnostics': 'csv',
1913
+ 'fields': 'multi',
1914
+ 'exclude_fields': 'multi',
1915
+ }
1916
+
1917
+ _path_params: Dict[str, str] = {}
1918
+ _query_params: List[Tuple[str, str]] = []
1919
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1920
+ _form_params: List[Tuple[str, str]] = []
1921
+ _files: Dict[
1922
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1923
+ ] = {}
1924
+ _body_params: Optional[bytes] = None
1925
+
1926
+ # process the path parameters
1927
+ if python_python_package_content_href is not None:
1928
+ _path_params['python_python_package_content_href'] = python_python_package_content_href
1929
+ # process the query parameters
1930
+ if fields is not None:
1931
+
1932
+ _query_params.append(('fields', fields))
1933
+
1934
+ if exclude_fields is not None:
1935
+
1936
+ _query_params.append(('exclude_fields', exclude_fields))
1937
+
1938
+ # process the header parameters
1939
+ if x_task_diagnostics is not None:
1940
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
1941
+ # process the form parameters
1942
+ # process the body parameter
1943
+
1944
+
1945
+ # set the HTTP header `Accept`
1946
+ if 'Accept' not in _header_params:
1947
+ _header_params['Accept'] = self.api_client.select_header_accept(
1948
+ [
1949
+ 'application/json'
1950
+ ]
1951
+ )
1952
+
1953
+
1954
+ # authentication setting
1955
+ _auth_settings: List[str] = [
1956
+ 'json_header_remote_authentication',
1957
+ 'basicAuth',
1958
+ 'cookieAuth'
1959
+ ]
1960
+
1961
+ return self.api_client.param_serialize(
1962
+ method='GET',
1963
+ resource_path='{python_python_package_content_href}',
1964
+ path_params=_path_params,
1965
+ query_params=_query_params,
1966
+ header_params=_header_params,
1967
+ body=_body_params,
1968
+ post_params=_form_params,
1969
+ files=_files,
1970
+ auth_settings=_auth_settings,
1971
+ collection_formats=_collection_formats,
1972
+ _host=_host,
1973
+ _request_auth=_request_auth
1974
+ )
1975
+
1976
+
1977
+
1978
+
1979
+ @validate_call
1980
+ def set_label(
1981
+ self,
1982
+ python_python_package_content_href: StrictStr,
1983
+ set_label: SetLabel,
1984
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
1985
+ _request_timeout: Union[
1986
+ None,
1987
+ Annotated[StrictFloat, Field(gt=0)],
1988
+ Tuple[
1989
+ Annotated[StrictFloat, Field(gt=0)],
1990
+ Annotated[StrictFloat, Field(gt=0)]
1991
+ ]
1992
+ ] = None,
1993
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1994
+ _content_type: Optional[StrictStr] = None,
1995
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1996
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1997
+ ) -> SetLabelResponse:
1998
+ """Set a label
1999
+
2000
+ Set a single pulp_label on the object to a specific value or null.
2001
+
2002
+ :param python_python_package_content_href: (required)
2003
+ :type python_python_package_content_href: str
2004
+ :param set_label: (required)
2005
+ :type set_label: SetLabel
2006
+ :param x_task_diagnostics: List of profilers to use on tasks.
2007
+ :type x_task_diagnostics: List[str]
2008
+ :param _request_timeout: timeout setting for this request. If one
2009
+ number provided, it will be total request
2010
+ timeout. It can also be a pair (tuple) of
2011
+ (connection, read) timeouts.
2012
+ :type _request_timeout: int, tuple(int, int), optional
2013
+ :param _request_auth: set to override the auth_settings for an a single
2014
+ request; this effectively ignores the
2015
+ authentication in the spec for a single request.
2016
+ :type _request_auth: dict, optional
2017
+ :param _content_type: force content-type for the request.
2018
+ :type _content_type: str, Optional
2019
+ :param _headers: set to override the headers for a single
2020
+ request; this effectively ignores the headers
2021
+ in the spec for a single request.
2022
+ :type _headers: dict, optional
2023
+ :param _host_index: set to override the host_index for a single
2024
+ request; this effectively ignores the host_index
2025
+ in the spec for a single request.
2026
+ :type _host_index: int, optional
2027
+ :return: Returns the result object.
2028
+ """ # noqa: E501
2029
+
2030
+ _param = self._set_label_serialize(
2031
+ python_python_package_content_href=python_python_package_content_href,
2032
+ set_label=set_label,
2033
+ x_task_diagnostics=x_task_diagnostics,
2034
+ _request_auth=_request_auth,
2035
+ _content_type=_content_type,
2036
+ _headers=_headers,
2037
+ _host_index=_host_index
2038
+ )
2039
+
2040
+ _response_types_map: Dict[str, Optional[str]] = {
2041
+ '201': "SetLabelResponse",
2042
+ }
2043
+ response_data = self.api_client.call_api(
2044
+ *_param,
2045
+ _request_timeout=_request_timeout
2046
+ )
2047
+ response_data.read()
2048
+ return self.api_client.response_deserialize(
2049
+ response_data=response_data,
2050
+ response_types_map=_response_types_map,
2051
+ ).data
2052
+
2053
+
2054
+ @validate_call
2055
+ def set_label_with_http_info(
2056
+ self,
2057
+ python_python_package_content_href: StrictStr,
2058
+ set_label: SetLabel,
2059
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2060
+ _request_timeout: Union[
2061
+ None,
2062
+ Annotated[StrictFloat, Field(gt=0)],
2063
+ Tuple[
2064
+ Annotated[StrictFloat, Field(gt=0)],
2065
+ Annotated[StrictFloat, Field(gt=0)]
2066
+ ]
2067
+ ] = None,
2068
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2069
+ _content_type: Optional[StrictStr] = None,
2070
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2071
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2072
+ ) -> ApiResponse[SetLabelResponse]:
2073
+ """Set a label
2074
+
2075
+ Set a single pulp_label on the object to a specific value or null.
2076
+
2077
+ :param python_python_package_content_href: (required)
2078
+ :type python_python_package_content_href: str
2079
+ :param set_label: (required)
2080
+ :type set_label: SetLabel
2081
+ :param x_task_diagnostics: List of profilers to use on tasks.
2082
+ :type x_task_diagnostics: List[str]
2083
+ :param _request_timeout: timeout setting for this request. If one
2084
+ number provided, it will be total request
2085
+ timeout. It can also be a pair (tuple) of
2086
+ (connection, read) timeouts.
2087
+ :type _request_timeout: int, tuple(int, int), optional
2088
+ :param _request_auth: set to override the auth_settings for an a single
2089
+ request; this effectively ignores the
2090
+ authentication in the spec for a single request.
2091
+ :type _request_auth: dict, optional
2092
+ :param _content_type: force content-type for the request.
2093
+ :type _content_type: str, Optional
2094
+ :param _headers: set to override the headers for a single
2095
+ request; this effectively ignores the headers
2096
+ in the spec for a single request.
2097
+ :type _headers: dict, optional
2098
+ :param _host_index: set to override the host_index for a single
2099
+ request; this effectively ignores the host_index
2100
+ in the spec for a single request.
2101
+ :type _host_index: int, optional
2102
+ :return: Returns the result object.
2103
+ """ # noqa: E501
2104
+
2105
+ _param = self._set_label_serialize(
2106
+ python_python_package_content_href=python_python_package_content_href,
2107
+ set_label=set_label,
2108
+ x_task_diagnostics=x_task_diagnostics,
2109
+ _request_auth=_request_auth,
2110
+ _content_type=_content_type,
2111
+ _headers=_headers,
2112
+ _host_index=_host_index
2113
+ )
2114
+
2115
+ _response_types_map: Dict[str, Optional[str]] = {
2116
+ '201': "SetLabelResponse",
2117
+ }
2118
+ response_data = self.api_client.call_api(
2119
+ *_param,
2120
+ _request_timeout=_request_timeout
2121
+ )
2122
+ response_data.read()
2123
+ return self.api_client.response_deserialize(
2124
+ response_data=response_data,
2125
+ response_types_map=_response_types_map,
2126
+ )
2127
+
2128
+
2129
+ @validate_call
2130
+ def set_label_without_preload_content(
2131
+ self,
2132
+ python_python_package_content_href: StrictStr,
2133
+ set_label: SetLabel,
2134
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2135
+ _request_timeout: Union[
2136
+ None,
2137
+ Annotated[StrictFloat, Field(gt=0)],
2138
+ Tuple[
2139
+ Annotated[StrictFloat, Field(gt=0)],
2140
+ Annotated[StrictFloat, Field(gt=0)]
2141
+ ]
2142
+ ] = None,
2143
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2144
+ _content_type: Optional[StrictStr] = None,
2145
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2146
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2147
+ ) -> RESTResponseType:
2148
+ """Set a label
2149
+
2150
+ Set a single pulp_label on the object to a specific value or null.
2151
+
2152
+ :param python_python_package_content_href: (required)
2153
+ :type python_python_package_content_href: str
2154
+ :param set_label: (required)
2155
+ :type set_label: SetLabel
2156
+ :param x_task_diagnostics: List of profilers to use on tasks.
2157
+ :type x_task_diagnostics: List[str]
2158
+ :param _request_timeout: timeout setting for this request. If one
2159
+ number provided, it will be total request
2160
+ timeout. It can also be a pair (tuple) of
2161
+ (connection, read) timeouts.
2162
+ :type _request_timeout: int, tuple(int, int), optional
2163
+ :param _request_auth: set to override the auth_settings for an a single
2164
+ request; this effectively ignores the
2165
+ authentication in the spec for a single request.
2166
+ :type _request_auth: dict, optional
2167
+ :param _content_type: force content-type for the request.
2168
+ :type _content_type: str, Optional
2169
+ :param _headers: set to override the headers for a single
2170
+ request; this effectively ignores the headers
2171
+ in the spec for a single request.
2172
+ :type _headers: dict, optional
2173
+ :param _host_index: set to override the host_index for a single
2174
+ request; this effectively ignores the host_index
2175
+ in the spec for a single request.
2176
+ :type _host_index: int, optional
2177
+ :return: Returns the result object.
2178
+ """ # noqa: E501
2179
+
2180
+ _param = self._set_label_serialize(
2181
+ python_python_package_content_href=python_python_package_content_href,
2182
+ set_label=set_label,
2183
+ x_task_diagnostics=x_task_diagnostics,
2184
+ _request_auth=_request_auth,
2185
+ _content_type=_content_type,
2186
+ _headers=_headers,
2187
+ _host_index=_host_index
2188
+ )
2189
+
2190
+ _response_types_map: Dict[str, Optional[str]] = {
2191
+ '201': "SetLabelResponse",
2192
+ }
2193
+ response_data = self.api_client.call_api(
2194
+ *_param,
2195
+ _request_timeout=_request_timeout
2196
+ )
2197
+ return response_data.response
2198
+
2199
+
2200
+ def _set_label_serialize(
2201
+ self,
2202
+ python_python_package_content_href,
2203
+ set_label,
2204
+ x_task_diagnostics,
2205
+ _request_auth,
2206
+ _content_type,
2207
+ _headers,
2208
+ _host_index,
2209
+ ) -> RequestSerialized:
2210
+
2211
+ _host = None
2212
+
2213
+ _collection_formats: Dict[str, str] = {
2214
+ 'X-Task-Diagnostics': 'csv',
2215
+ }
2216
+
2217
+ _path_params: Dict[str, str] = {}
2218
+ _query_params: List[Tuple[str, str]] = []
2219
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2220
+ _form_params: List[Tuple[str, str]] = []
2221
+ _files: Dict[
2222
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2223
+ ] = {}
2224
+ _body_params: Optional[bytes] = None
2225
+
2226
+ # process the path parameters
2227
+ if python_python_package_content_href is not None:
2228
+ _path_params['python_python_package_content_href'] = python_python_package_content_href
2229
+ # process the query parameters
2230
+ # process the header parameters
2231
+ if x_task_diagnostics is not None:
2232
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
2233
+ # process the form parameters
2234
+ # process the body parameter
2235
+ if set_label is not None:
2236
+ _body_params = set_label
2237
+
2238
+
2239
+ # set the HTTP header `Accept`
2240
+ if 'Accept' not in _header_params:
2241
+ _header_params['Accept'] = self.api_client.select_header_accept(
2242
+ [
2243
+ 'application/json'
2244
+ ]
2245
+ )
2246
+
2247
+ # set the HTTP header `Content-Type`
2248
+ if _content_type:
2249
+ _header_params['Content-Type'] = _content_type
2250
+ else:
2251
+ _default_content_type = (
2252
+ self.api_client.select_header_content_type(
2253
+ [
2254
+ 'application/json',
2255
+ 'application/x-www-form-urlencoded',
2256
+ 'multipart/form-data'
2257
+ ]
2258
+ )
2259
+ )
2260
+ if _default_content_type is not None:
2261
+ _header_params['Content-Type'] = _default_content_type
2262
+
2263
+ # authentication setting
2264
+ _auth_settings: List[str] = [
2265
+ 'json_header_remote_authentication',
2266
+ 'basicAuth',
2267
+ 'cookieAuth'
2268
+ ]
2269
+
2270
+ return self.api_client.param_serialize(
2271
+ method='POST',
2272
+ resource_path='{python_python_package_content_href}set_label/',
2273
+ path_params=_path_params,
2274
+ query_params=_query_params,
2275
+ header_params=_header_params,
2276
+ body=_body_params,
2277
+ post_params=_form_params,
2278
+ files=_files,
2279
+ auth_settings=_auth_settings,
2280
+ collection_formats=_collection_formats,
2281
+ _host=_host,
2282
+ _request_auth=_request_auth
2283
+ )
2284
+
2285
+
2286
+
2287
+
2288
+ @validate_call
2289
+ def unset_label(
2290
+ self,
2291
+ python_python_package_content_href: StrictStr,
2292
+ unset_label: UnsetLabel,
2293
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2294
+ _request_timeout: Union[
2295
+ None,
2296
+ Annotated[StrictFloat, Field(gt=0)],
2297
+ Tuple[
2298
+ Annotated[StrictFloat, Field(gt=0)],
2299
+ Annotated[StrictFloat, Field(gt=0)]
2300
+ ]
2301
+ ] = None,
2302
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2303
+ _content_type: Optional[StrictStr] = None,
2304
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2305
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2306
+ ) -> UnsetLabelResponse:
2307
+ """Unset a label
2308
+
2309
+ Unset a single pulp_label on the object.
2310
+
2311
+ :param python_python_package_content_href: (required)
2312
+ :type python_python_package_content_href: str
2313
+ :param unset_label: (required)
2314
+ :type unset_label: UnsetLabel
2315
+ :param x_task_diagnostics: List of profilers to use on tasks.
2316
+ :type x_task_diagnostics: List[str]
2317
+ :param _request_timeout: timeout setting for this request. If one
2318
+ number provided, it will be total request
2319
+ timeout. It can also be a pair (tuple) of
2320
+ (connection, read) timeouts.
2321
+ :type _request_timeout: int, tuple(int, int), optional
2322
+ :param _request_auth: set to override the auth_settings for an a single
2323
+ request; this effectively ignores the
2324
+ authentication in the spec for a single request.
2325
+ :type _request_auth: dict, optional
2326
+ :param _content_type: force content-type for the request.
2327
+ :type _content_type: str, Optional
2328
+ :param _headers: set to override the headers for a single
2329
+ request; this effectively ignores the headers
2330
+ in the spec for a single request.
2331
+ :type _headers: dict, optional
2332
+ :param _host_index: set to override the host_index for a single
2333
+ request; this effectively ignores the host_index
2334
+ in the spec for a single request.
2335
+ :type _host_index: int, optional
2336
+ :return: Returns the result object.
2337
+ """ # noqa: E501
2338
+
2339
+ _param = self._unset_label_serialize(
2340
+ python_python_package_content_href=python_python_package_content_href,
2341
+ unset_label=unset_label,
2342
+ x_task_diagnostics=x_task_diagnostics,
2343
+ _request_auth=_request_auth,
2344
+ _content_type=_content_type,
2345
+ _headers=_headers,
2346
+ _host_index=_host_index
2347
+ )
2348
+
2349
+ _response_types_map: Dict[str, Optional[str]] = {
2350
+ '201': "UnsetLabelResponse",
2351
+ }
2352
+ response_data = self.api_client.call_api(
2353
+ *_param,
2354
+ _request_timeout=_request_timeout
2355
+ )
2356
+ response_data.read()
2357
+ return self.api_client.response_deserialize(
2358
+ response_data=response_data,
2359
+ response_types_map=_response_types_map,
2360
+ ).data
2361
+
2362
+
2363
+ @validate_call
2364
+ def unset_label_with_http_info(
2365
+ self,
2366
+ python_python_package_content_href: StrictStr,
2367
+ unset_label: UnsetLabel,
2368
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2369
+ _request_timeout: Union[
2370
+ None,
2371
+ Annotated[StrictFloat, Field(gt=0)],
2372
+ Tuple[
2373
+ Annotated[StrictFloat, Field(gt=0)],
2374
+ Annotated[StrictFloat, Field(gt=0)]
2375
+ ]
2376
+ ] = None,
2377
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2378
+ _content_type: Optional[StrictStr] = None,
2379
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2380
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2381
+ ) -> ApiResponse[UnsetLabelResponse]:
2382
+ """Unset a label
2383
+
2384
+ Unset a single pulp_label on the object.
2385
+
2386
+ :param python_python_package_content_href: (required)
2387
+ :type python_python_package_content_href: str
2388
+ :param unset_label: (required)
2389
+ :type unset_label: UnsetLabel
2390
+ :param x_task_diagnostics: List of profilers to use on tasks.
2391
+ :type x_task_diagnostics: List[str]
2392
+ :param _request_timeout: timeout setting for this request. If one
2393
+ number provided, it will be total request
2394
+ timeout. It can also be a pair (tuple) of
2395
+ (connection, read) timeouts.
2396
+ :type _request_timeout: int, tuple(int, int), optional
2397
+ :param _request_auth: set to override the auth_settings for an a single
2398
+ request; this effectively ignores the
2399
+ authentication in the spec for a single request.
2400
+ :type _request_auth: dict, optional
2401
+ :param _content_type: force content-type for the request.
2402
+ :type _content_type: str, Optional
2403
+ :param _headers: set to override the headers for a single
2404
+ request; this effectively ignores the headers
2405
+ in the spec for a single request.
2406
+ :type _headers: dict, optional
2407
+ :param _host_index: set to override the host_index for a single
2408
+ request; this effectively ignores the host_index
2409
+ in the spec for a single request.
2410
+ :type _host_index: int, optional
2411
+ :return: Returns the result object.
2412
+ """ # noqa: E501
2413
+
2414
+ _param = self._unset_label_serialize(
2415
+ python_python_package_content_href=python_python_package_content_href,
2416
+ unset_label=unset_label,
2417
+ x_task_diagnostics=x_task_diagnostics,
2418
+ _request_auth=_request_auth,
2419
+ _content_type=_content_type,
2420
+ _headers=_headers,
2421
+ _host_index=_host_index
2422
+ )
2423
+
2424
+ _response_types_map: Dict[str, Optional[str]] = {
2425
+ '201': "UnsetLabelResponse",
2426
+ }
2427
+ response_data = self.api_client.call_api(
2428
+ *_param,
2429
+ _request_timeout=_request_timeout
2430
+ )
2431
+ response_data.read()
2432
+ return self.api_client.response_deserialize(
2433
+ response_data=response_data,
2434
+ response_types_map=_response_types_map,
2435
+ )
2436
+
2437
+
2438
+ @validate_call
2439
+ def unset_label_without_preload_content(
2440
+ self,
2441
+ python_python_package_content_href: StrictStr,
2442
+ unset_label: UnsetLabel,
2443
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2444
+ _request_timeout: Union[
2445
+ None,
2446
+ Annotated[StrictFloat, Field(gt=0)],
2447
+ Tuple[
2448
+ Annotated[StrictFloat, Field(gt=0)],
2449
+ Annotated[StrictFloat, Field(gt=0)]
2450
+ ]
2451
+ ] = None,
2452
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2453
+ _content_type: Optional[StrictStr] = None,
2454
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2455
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2456
+ ) -> RESTResponseType:
2457
+ """Unset a label
2458
+
2459
+ Unset a single pulp_label on the object.
2460
+
2461
+ :param python_python_package_content_href: (required)
2462
+ :type python_python_package_content_href: str
2463
+ :param unset_label: (required)
2464
+ :type unset_label: UnsetLabel
2465
+ :param x_task_diagnostics: List of profilers to use on tasks.
2466
+ :type x_task_diagnostics: List[str]
2467
+ :param _request_timeout: timeout setting for this request. If one
2468
+ number provided, it will be total request
2469
+ timeout. It can also be a pair (tuple) of
2470
+ (connection, read) timeouts.
2471
+ :type _request_timeout: int, tuple(int, int), optional
2472
+ :param _request_auth: set to override the auth_settings for an a single
2473
+ request; this effectively ignores the
2474
+ authentication in the spec for a single request.
2475
+ :type _request_auth: dict, optional
2476
+ :param _content_type: force content-type for the request.
2477
+ :type _content_type: str, Optional
2478
+ :param _headers: set to override the headers for a single
2479
+ request; this effectively ignores the headers
2480
+ in the spec for a single request.
2481
+ :type _headers: dict, optional
2482
+ :param _host_index: set to override the host_index for a single
2483
+ request; this effectively ignores the host_index
2484
+ in the spec for a single request.
2485
+ :type _host_index: int, optional
2486
+ :return: Returns the result object.
2487
+ """ # noqa: E501
2488
+
2489
+ _param = self._unset_label_serialize(
2490
+ python_python_package_content_href=python_python_package_content_href,
2491
+ unset_label=unset_label,
2492
+ x_task_diagnostics=x_task_diagnostics,
2493
+ _request_auth=_request_auth,
2494
+ _content_type=_content_type,
2495
+ _headers=_headers,
2496
+ _host_index=_host_index
2497
+ )
2498
+
2499
+ _response_types_map: Dict[str, Optional[str]] = {
2500
+ '201': "UnsetLabelResponse",
2501
+ }
2502
+ response_data = self.api_client.call_api(
2503
+ *_param,
2504
+ _request_timeout=_request_timeout
2505
+ )
2506
+ return response_data.response
2507
+
2508
+
2509
+ def _unset_label_serialize(
2510
+ self,
2511
+ python_python_package_content_href,
2512
+ unset_label,
2513
+ x_task_diagnostics,
2514
+ _request_auth,
2515
+ _content_type,
2516
+ _headers,
2517
+ _host_index,
2518
+ ) -> RequestSerialized:
2519
+
2520
+ _host = None
2521
+
2522
+ _collection_formats: Dict[str, str] = {
2523
+ 'X-Task-Diagnostics': 'csv',
2524
+ }
2525
+
2526
+ _path_params: Dict[str, str] = {}
2527
+ _query_params: List[Tuple[str, str]] = []
2528
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2529
+ _form_params: List[Tuple[str, str]] = []
2530
+ _files: Dict[
2531
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2532
+ ] = {}
2533
+ _body_params: Optional[bytes] = None
2534
+
2535
+ # process the path parameters
2536
+ if python_python_package_content_href is not None:
2537
+ _path_params['python_python_package_content_href'] = python_python_package_content_href
2538
+ # process the query parameters
2539
+ # process the header parameters
2540
+ if x_task_diagnostics is not None:
2541
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
2542
+ # process the form parameters
2543
+ # process the body parameter
2544
+ if unset_label is not None:
2545
+ _body_params = unset_label
2546
+
2547
+
2548
+ # set the HTTP header `Accept`
2549
+ if 'Accept' not in _header_params:
2550
+ _header_params['Accept'] = self.api_client.select_header_accept(
2551
+ [
2552
+ 'application/json'
2553
+ ]
2554
+ )
2555
+
2556
+ # set the HTTP header `Content-Type`
2557
+ if _content_type:
2558
+ _header_params['Content-Type'] = _content_type
2559
+ else:
2560
+ _default_content_type = (
2561
+ self.api_client.select_header_content_type(
2562
+ [
2563
+ 'application/json',
2564
+ 'application/x-www-form-urlencoded',
2565
+ 'multipart/form-data'
2566
+ ]
2567
+ )
2568
+ )
2569
+ if _default_content_type is not None:
2570
+ _header_params['Content-Type'] = _default_content_type
2571
+
2572
+ # authentication setting
2573
+ _auth_settings: List[str] = [
2574
+ 'json_header_remote_authentication',
2575
+ 'basicAuth',
2576
+ 'cookieAuth'
2577
+ ]
2578
+
2579
+ return self.api_client.param_serialize(
2580
+ method='POST',
2581
+ resource_path='{python_python_package_content_href}unset_label/',
2582
+ path_params=_path_params,
2583
+ query_params=_query_params,
2584
+ header_params=_header_params,
2585
+ body=_body_params,
2586
+ post_params=_form_params,
2587
+ files=_files,
2588
+ auth_settings=_auth_settings,
2589
+ collection_formats=_collection_formats,
2590
+ _host=_host,
2591
+ _request_auth=_request_auth
2592
+ )
2593
+
2594
+