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.
- pulp_python_client-3.13.0.dist-info/METADATA +17 -0
- pulp_python_client-3.13.0.dist-info/RECORD +64 -0
- {pulp_python_client-3.12.5.dist-info → pulp_python_client-3.13.0.dist-info}/WHEEL +1 -1
- pulpcore/client/pulp_python/__init__.py +9 -10
- pulpcore/client/pulp_python/api/__init__.py +1 -2
- pulpcore/client/pulp_python/api/content_packages_api.py +1800 -655
- pulpcore/client/pulp_python/api/distributions_pypi_api.py +3755 -1474
- pulpcore/client/pulp_python/api/publications_pypi_api.py +2574 -982
- pulpcore/client/pulp_python/api/pypi_api.py +302 -128
- pulpcore/client/pulp_python/api/pypi_legacy_api.py +326 -153
- pulpcore/client/pulp_python/api/pypi_metadata_api.py +319 -139
- pulpcore/client/pulp_python/api/pypi_simple_api.py +899 -382
- pulpcore/client/pulp_python/api/remotes_python_api.py +4092 -1589
- pulpcore/client/pulp_python/api/repositories_python_api.py +4380 -1719
- pulpcore/client/pulp_python/api/repositories_python_versions_api.py +1526 -561
- pulpcore/client/pulp_python/api_client.py +444 -313
- pulpcore/client/pulp_python/api_response.py +21 -0
- pulpcore/client/pulp_python/configuration.py +266 -73
- pulpcore/client/pulp_python/exceptions.py +99 -20
- pulpcore/client/pulp_python/models/__init__.py +5 -8
- pulpcore/client/pulp_python/models/async_operation_response.py +60 -96
- pulpcore/client/pulp_python/models/content_summary_response.py +70 -154
- pulpcore/client/pulp_python/models/exclude_platforms_enum.py +19 -82
- pulpcore/client/pulp_python/models/my_permissions_response.py +60 -94
- pulpcore/client/pulp_python/models/nested_role.py +71 -155
- pulpcore/client/pulp_python/models/nested_role_response.py +70 -152
- pulpcore/client/pulp_python/models/object_roles_response.py +70 -96
- pulpcore/client/pulp_python/models/package_metadata_response.py +91 -191
- pulpcore/client/pulp_python/models/package_types_enum.py +23 -86
- pulpcore/client/pulp_python/models/package_upload_task_response.py +85 -154
- pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +94 -181
- pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +108 -330
- pulpcore/client/pulp_python/models/patchedpython_python_remote.py +204 -864
- pulpcore/client/pulp_python/models/patchedpython_python_repository.py +96 -249
- pulpcore/client/pulp_python/models/policy_enum.py +18 -81
- pulpcore/client/pulp_python/models/python_python_distribution.py +108 -332
- pulpcore/client/pulp_python/models/python_python_distribution_response.py +132 -490
- pulpcore/client/pulp_python/models/python_python_package_content_response.py +182 -972
- pulpcore/client/pulp_python/models/python_python_publication.py +68 -127
- pulpcore/client/pulp_python/models/python_python_publication_response.py +93 -269
- pulpcore/client/pulp_python/models/python_python_remote.py +204 -866
- pulpcore/client/pulp_python/models/python_python_remote_response.py +198 -839
- pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields_inner.py +90 -0
- pulpcore/client/pulp_python/models/python_python_repository.py +96 -250
- pulpcore/client/pulp_python/models/python_python_repository_response.py +122 -407
- pulpcore/client/pulp_python/models/repair.py +60 -95
- pulpcore/client/pulp_python/models/repository_add_remove_content.py +71 -157
- pulpcore/client/pulp_python/models/repository_sync_url.py +68 -129
- pulpcore/client/pulp_python/models/repository_version_response.py +104 -296
- pulpcore/client/pulp_python/models/set_label.py +80 -130
- pulpcore/client/pulp_python/models/set_label_response.py +80 -127
- pulpcore/client/pulp_python/models/summary_response.py +70 -160
- pulpcore/client/pulp_python/models/unset_label.py +75 -107
- pulpcore/client/pulp_python/models/unset_label_response.py +78 -129
- pulpcore/client/pulp_python/py.typed +0 -0
- pulpcore/client/pulp_python/rest.py +136 -170
- pulp_python_client-3.12.5.dist-info/METADATA +0 -17
- pulp_python_client-3.12.5.dist-info/RECORD +0 -65
- pulpcore/client/pulp_python/models/package_upload.py +0 -190
- pulpcore/client/pulp_python/models/python_bander_remote.py +0 -184
- pulpcore/client/pulp_python/models/python_python_package_content.py +0 -889
- pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py +0 -149
- {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
|
|
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
|
|
11
|
-
"""
|
|
12
|
-
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
13
11
|
|
|
14
|
-
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
15
14
|
|
|
16
|
-
import
|
|
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
|
-
|
|
19
|
-
import
|
|
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.
|
|
23
|
-
|
|
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
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
:
|
|
50
|
-
:
|
|
51
|
-
:
|
|
52
|
-
:
|
|
53
|
-
:
|
|
54
|
-
:
|
|
55
|
-
:
|
|
56
|
-
:
|
|
57
|
-
:
|
|
58
|
-
:
|
|
59
|
-
:
|
|
60
|
-
:
|
|
61
|
-
:
|
|
62
|
-
:
|
|
63
|
-
:
|
|
64
|
-
:
|
|
65
|
-
:
|
|
66
|
-
:
|
|
67
|
-
:
|
|
68
|
-
:
|
|
69
|
-
:
|
|
70
|
-
:
|
|
71
|
-
:
|
|
72
|
-
:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
-
:
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
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
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
:param
|
|
312
|
-
:
|
|
313
|
-
:param
|
|
314
|
-
:
|
|
315
|
-
:param
|
|
316
|
-
:
|
|
317
|
-
:param
|
|
318
|
-
:
|
|
319
|
-
:param
|
|
320
|
-
:
|
|
321
|
-
:param
|
|
322
|
-
:
|
|
323
|
-
:param
|
|
324
|
-
:
|
|
325
|
-
:param
|
|
326
|
-
:
|
|
327
|
-
:param
|
|
328
|
-
:
|
|
329
|
-
:param
|
|
330
|
-
:
|
|
331
|
-
:param
|
|
332
|
-
:
|
|
333
|
-
:param
|
|
334
|
-
:
|
|
335
|
-
:param
|
|
336
|
-
:
|
|
337
|
-
:param
|
|
338
|
-
:
|
|
339
|
-
:param
|
|
340
|
-
:
|
|
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
|
-
:
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
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
|
-
:
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
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
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
if
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
if
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
if
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
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
|
-
:
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
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
|
-
:
|
|
640
|
-
|
|
641
|
-
|
|
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
|
-
|
|
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
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
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
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
#
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
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
|
+
|