pulp-python-client 3.12.5__py3-none-any.whl → 3.13.0__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 pulp-python-client might be problematic. Click here for more details.

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