pulp-python-client 3.12.4__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.4.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.4.dist-info/METADATA +0 -17
- pulp_python_client-3.12.4.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.4.dist-info → pulp_python_client-3.13.0.dist-info}/top_level.txt +0 -0
|
@@ -3,171 +3,351 @@
|
|
|
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, StrictStr
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pulpcore.client.pulp_python.models.package_metadata_response import PackageMetadataResponse
|
|
20
24
|
|
|
21
|
-
from pulpcore.client.pulp_python.api_client import ApiClient
|
|
22
|
-
from pulpcore.client.pulp_python.
|
|
23
|
-
|
|
24
|
-
ApiValueError
|
|
25
|
-
)
|
|
25
|
+
from pulpcore.client.pulp_python.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from pulpcore.client.pulp_python.api_response import ApiResponse
|
|
27
|
+
from pulpcore.client.pulp_python.rest import RESTResponseType
|
|
26
28
|
|
|
27
29
|
|
|
28
|
-
class PypiMetadataApi
|
|
30
|
+
class PypiMetadataApi:
|
|
29
31
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
32
|
Ref: https://openapi-generator.tech
|
|
31
33
|
|
|
32
34
|
Do not edit the class manually.
|
|
33
35
|
"""
|
|
34
36
|
|
|
35
|
-
def __init__(self, api_client=None):
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
36
38
|
if api_client is None:
|
|
37
|
-
api_client = ApiClient()
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
38
40
|
self.api_client = api_client
|
|
39
41
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def read(
|
|
45
|
+
self,
|
|
46
|
+
meta: StrictStr,
|
|
47
|
+
path: StrictStr,
|
|
48
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
49
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
50
|
+
_request_timeout: Union[
|
|
51
|
+
None,
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
+
Tuple[
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
56
|
+
]
|
|
57
|
+
] = None,
|
|
58
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
59
|
+
_content_type: Optional[StrictStr] = None,
|
|
60
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
61
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
62
|
+
) -> PackageMetadataResponse:
|
|
63
|
+
"""Get package metadata
|
|
64
|
+
|
|
65
|
+
Retrieves the package's core-metadata specified by https://packaging.python.org/specifications/core-metadata/. `meta` must be a path in form of `{package}/json/` or `{package}/{version}/json/`
|
|
66
|
+
|
|
67
|
+
:param meta: (required)
|
|
68
|
+
:type meta: str
|
|
69
|
+
:param path: (required)
|
|
70
|
+
:type path: str
|
|
71
|
+
:param fields: A list of fields to include in the response.
|
|
72
|
+
:type fields: List[str]
|
|
73
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
74
|
+
:type exclude_fields: List[str]
|
|
57
75
|
:param _request_timeout: timeout setting for this request. If one
|
|
58
76
|
number provided, it will be total request
|
|
59
77
|
timeout. It can also be a pair (tuple) of
|
|
60
78
|
(connection, read) timeouts.
|
|
61
|
-
:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
79
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
80
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
81
|
+
request; this effectively ignores the
|
|
82
|
+
authentication in the spec for a single request.
|
|
83
|
+
:type _request_auth: dict, optional
|
|
84
|
+
:param _content_type: force content-type for the request.
|
|
85
|
+
:type _content_type: str, Optional
|
|
86
|
+
:param _headers: set to override the headers for a single
|
|
87
|
+
request; this effectively ignores the headers
|
|
88
|
+
in the spec for a single request.
|
|
89
|
+
:type _headers: dict, optional
|
|
90
|
+
:param _host_index: set to override the host_index for a single
|
|
91
|
+
request; this effectively ignores the host_index
|
|
92
|
+
in the spec for a single request.
|
|
93
|
+
:type _host_index: int, optional
|
|
94
|
+
:return: Returns the result object.
|
|
95
|
+
""" # noqa: E501
|
|
96
|
+
|
|
97
|
+
_param = self._read_serialize(
|
|
98
|
+
meta=meta,
|
|
99
|
+
path=path,
|
|
100
|
+
fields=fields,
|
|
101
|
+
exclude_fields=exclude_fields,
|
|
102
|
+
_request_auth=_request_auth,
|
|
103
|
+
_content_type=_content_type,
|
|
104
|
+
_headers=_headers,
|
|
105
|
+
_host_index=_host_index
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
109
|
+
'200': "PackageMetadataResponse",
|
|
110
|
+
}
|
|
111
|
+
response_data = self.api_client.call_api(
|
|
112
|
+
*_param,
|
|
113
|
+
_request_timeout=_request_timeout
|
|
114
|
+
)
|
|
115
|
+
response_data.read()
|
|
116
|
+
return self.api_client.response_deserialize(
|
|
117
|
+
response_data=response_data,
|
|
118
|
+
response_types_map=_response_types_map,
|
|
119
|
+
).data
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
@validate_call
|
|
123
|
+
def read_with_http_info(
|
|
124
|
+
self,
|
|
125
|
+
meta: StrictStr,
|
|
126
|
+
path: StrictStr,
|
|
127
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
128
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
129
|
+
_request_timeout: Union[
|
|
130
|
+
None,
|
|
131
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
132
|
+
Tuple[
|
|
133
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
134
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
135
|
+
]
|
|
136
|
+
] = None,
|
|
137
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
138
|
+
_content_type: Optional[StrictStr] = None,
|
|
139
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
140
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
141
|
+
) -> ApiResponse[PackageMetadataResponse]:
|
|
142
|
+
"""Get package metadata
|
|
143
|
+
|
|
144
|
+
Retrieves the package's core-metadata specified by https://packaging.python.org/specifications/core-metadata/. `meta` must be a path in form of `{package}/json/` or `{package}/{version}/json/`
|
|
145
|
+
|
|
146
|
+
:param meta: (required)
|
|
147
|
+
:type meta: str
|
|
148
|
+
:param path: (required)
|
|
149
|
+
:type path: str
|
|
150
|
+
:param fields: A list of fields to include in the response.
|
|
151
|
+
:type fields: List[str]
|
|
152
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
153
|
+
:type exclude_fields: List[str]
|
|
87
154
|
:param _request_timeout: timeout setting for this request. If one
|
|
88
155
|
number provided, it will be total request
|
|
89
156
|
timeout. It can also be a pair (tuple) of
|
|
90
157
|
(connection, read) timeouts.
|
|
91
|
-
:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
158
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
159
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
160
|
+
request; this effectively ignores the
|
|
161
|
+
authentication in the spec for a single request.
|
|
162
|
+
:type _request_auth: dict, optional
|
|
163
|
+
:param _content_type: force content-type for the request.
|
|
164
|
+
:type _content_type: str, Optional
|
|
165
|
+
:param _headers: set to override the headers for a single
|
|
166
|
+
request; this effectively ignores the headers
|
|
167
|
+
in the spec for a single request.
|
|
168
|
+
:type _headers: dict, optional
|
|
169
|
+
:param _host_index: set to override the host_index for a single
|
|
170
|
+
request; this effectively ignores the host_index
|
|
171
|
+
in the spec for a single request.
|
|
172
|
+
:type _host_index: int, optional
|
|
173
|
+
:return: Returns the result object.
|
|
174
|
+
""" # noqa: E501
|
|
175
|
+
|
|
176
|
+
_param = self._read_serialize(
|
|
177
|
+
meta=meta,
|
|
178
|
+
path=path,
|
|
179
|
+
fields=fields,
|
|
180
|
+
exclude_fields=exclude_fields,
|
|
181
|
+
_request_auth=_request_auth,
|
|
182
|
+
_content_type=_content_type,
|
|
183
|
+
_headers=_headers,
|
|
184
|
+
_host_index=_host_index
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
188
|
+
'200': "PackageMetadataResponse",
|
|
189
|
+
}
|
|
190
|
+
response_data = self.api_client.call_api(
|
|
191
|
+
*_param,
|
|
192
|
+
_request_timeout=_request_timeout
|
|
193
|
+
)
|
|
194
|
+
response_data.read()
|
|
195
|
+
return self.api_client.response_deserialize(
|
|
196
|
+
response_data=response_data,
|
|
197
|
+
response_types_map=_response_types_map,
|
|
198
|
+
)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
@validate_call
|
|
202
|
+
def read_without_preload_content(
|
|
203
|
+
self,
|
|
204
|
+
meta: StrictStr,
|
|
205
|
+
path: StrictStr,
|
|
206
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
207
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
208
|
+
_request_timeout: Union[
|
|
209
|
+
None,
|
|
210
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
211
|
+
Tuple[
|
|
212
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
213
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
110
214
|
]
|
|
215
|
+
] = None,
|
|
216
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
217
|
+
_content_type: Optional[StrictStr] = None,
|
|
218
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
219
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
220
|
+
) -> RESTResponseType:
|
|
221
|
+
"""Get package metadata
|
|
222
|
+
|
|
223
|
+
Retrieves the package's core-metadata specified by https://packaging.python.org/specifications/core-metadata/. `meta` must be a path in form of `{package}/json/` or `{package}/{version}/json/`
|
|
224
|
+
|
|
225
|
+
:param meta: (required)
|
|
226
|
+
:type meta: str
|
|
227
|
+
:param path: (required)
|
|
228
|
+
:type path: str
|
|
229
|
+
:param fields: A list of fields to include in the response.
|
|
230
|
+
:type fields: List[str]
|
|
231
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
232
|
+
:type exclude_fields: List[str]
|
|
233
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
234
|
+
number provided, it will be total request
|
|
235
|
+
timeout. It can also be a pair (tuple) of
|
|
236
|
+
(connection, read) timeouts.
|
|
237
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
238
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
239
|
+
request; this effectively ignores the
|
|
240
|
+
authentication in the spec for a single request.
|
|
241
|
+
:type _request_auth: dict, optional
|
|
242
|
+
:param _content_type: force content-type for the request.
|
|
243
|
+
:type _content_type: str, Optional
|
|
244
|
+
:param _headers: set to override the headers for a single
|
|
245
|
+
request; this effectively ignores the headers
|
|
246
|
+
in the spec for a single request.
|
|
247
|
+
:type _headers: dict, optional
|
|
248
|
+
:param _host_index: set to override the host_index for a single
|
|
249
|
+
request; this effectively ignores the host_index
|
|
250
|
+
in the spec for a single request.
|
|
251
|
+
:type _host_index: int, optional
|
|
252
|
+
:return: Returns the result object.
|
|
253
|
+
""" # noqa: E501
|
|
254
|
+
|
|
255
|
+
_param = self._read_serialize(
|
|
256
|
+
meta=meta,
|
|
257
|
+
path=path,
|
|
258
|
+
fields=fields,
|
|
259
|
+
exclude_fields=exclude_fields,
|
|
260
|
+
_request_auth=_request_auth,
|
|
261
|
+
_content_type=_content_type,
|
|
262
|
+
_headers=_headers,
|
|
263
|
+
_host_index=_host_index
|
|
264
|
+
)
|
|
265
|
+
|
|
266
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
267
|
+
'200': "PackageMetadataResponse",
|
|
268
|
+
}
|
|
269
|
+
response_data = self.api_client.call_api(
|
|
270
|
+
*_param,
|
|
271
|
+
_request_timeout=_request_timeout
|
|
111
272
|
)
|
|
273
|
+
return response_data.response
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
def _read_serialize(
|
|
277
|
+
self,
|
|
278
|
+
meta,
|
|
279
|
+
path,
|
|
280
|
+
fields,
|
|
281
|
+
exclude_fields,
|
|
282
|
+
_request_auth,
|
|
283
|
+
_content_type,
|
|
284
|
+
_headers,
|
|
285
|
+
_host_index,
|
|
286
|
+
) -> RequestSerialized:
|
|
287
|
+
|
|
288
|
+
_host = None
|
|
289
|
+
|
|
290
|
+
_collection_formats: Dict[str, str] = {
|
|
291
|
+
'fields': 'multi',
|
|
292
|
+
'exclude_fields': 'multi',
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
_path_params: Dict[str, str] = {}
|
|
296
|
+
_query_params: List[Tuple[str, str]] = []
|
|
297
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
298
|
+
_form_params: List[Tuple[str, str]] = []
|
|
299
|
+
_files: Dict[
|
|
300
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
301
|
+
] = {}
|
|
302
|
+
_body_params: Optional[bytes] = None
|
|
303
|
+
|
|
304
|
+
# process the path parameters
|
|
305
|
+
if meta is not None:
|
|
306
|
+
_path_params['meta'] = meta
|
|
307
|
+
if path is not None:
|
|
308
|
+
_path_params['path'] = path
|
|
309
|
+
# process the query parameters
|
|
310
|
+
if fields is not None:
|
|
311
|
+
|
|
312
|
+
_query_params.append(('fields', fields))
|
|
313
|
+
|
|
314
|
+
if exclude_fields is not None:
|
|
315
|
+
|
|
316
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
317
|
+
|
|
318
|
+
# process the header parameters
|
|
319
|
+
# process the form parameters
|
|
320
|
+
# process the body parameter
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
# set the HTTP header `Accept`
|
|
324
|
+
if 'Accept' not in _header_params:
|
|
325
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
326
|
+
[
|
|
327
|
+
'application/json'
|
|
328
|
+
]
|
|
329
|
+
)
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
# authentication setting
|
|
333
|
+
_auth_settings: List[str] = [
|
|
334
|
+
'basicAuth',
|
|
335
|
+
'cookieAuth'
|
|
336
|
+
]
|
|
337
|
+
|
|
338
|
+
return self.api_client.param_serialize(
|
|
339
|
+
method='GET',
|
|
340
|
+
resource_path='/pypi/{path}/pypi/{meta}/',
|
|
341
|
+
path_params=_path_params,
|
|
342
|
+
query_params=_query_params,
|
|
343
|
+
header_params=_header_params,
|
|
344
|
+
body=_body_params,
|
|
345
|
+
post_params=_form_params,
|
|
346
|
+
files=_files,
|
|
347
|
+
auth_settings=_auth_settings,
|
|
348
|
+
collection_formats=_collection_formats,
|
|
349
|
+
_host=_host,
|
|
350
|
+
_request_auth=_request_auth
|
|
351
|
+
)
|
|
352
|
+
|
|
112
353
|
|
|
113
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
114
|
-
if key not in all_params:
|
|
115
|
-
raise ApiTypeError(
|
|
116
|
-
"Got an unexpected keyword argument '%s'"
|
|
117
|
-
" to method read" % key
|
|
118
|
-
)
|
|
119
|
-
local_var_params[key] = val
|
|
120
|
-
del local_var_params['kwargs']
|
|
121
|
-
# verify the required parameter 'meta' is set
|
|
122
|
-
if self.api_client.client_side_validation and ('meta' not in local_var_params or # noqa: E501
|
|
123
|
-
local_var_params['meta'] is None): # noqa: E501
|
|
124
|
-
raise ApiValueError("Missing the required parameter `meta` when calling `read`") # noqa: E501
|
|
125
|
-
# verify the required parameter 'path' is set
|
|
126
|
-
if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501
|
|
127
|
-
local_var_params['path'] is None): # noqa: E501
|
|
128
|
-
raise ApiValueError("Missing the required parameter `path` when calling `read`") # noqa: E501
|
|
129
|
-
|
|
130
|
-
collection_formats = {}
|
|
131
|
-
|
|
132
|
-
path_params = {}
|
|
133
|
-
if 'meta' in local_var_params:
|
|
134
|
-
path_params['meta'] = local_var_params['meta'] # noqa: E501
|
|
135
|
-
if 'path' in local_var_params:
|
|
136
|
-
path_params['path'] = local_var_params['path'] # noqa: E501
|
|
137
|
-
|
|
138
|
-
query_params = []
|
|
139
|
-
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
|
140
|
-
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
|
141
|
-
collection_formats['fields'] = 'multi' # noqa: E501
|
|
142
|
-
if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
|
|
143
|
-
query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
|
|
144
|
-
collection_formats['exclude_fields'] = 'multi' # noqa: E501
|
|
145
|
-
|
|
146
|
-
header_params = {}
|
|
147
|
-
|
|
148
|
-
form_params = []
|
|
149
|
-
local_var_files = {}
|
|
150
|
-
|
|
151
|
-
body_params = None
|
|
152
|
-
# HTTP header `Accept`
|
|
153
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
154
|
-
['application/json']) # noqa: E501
|
|
155
|
-
|
|
156
|
-
# Authentication setting
|
|
157
|
-
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
158
|
-
|
|
159
|
-
return self.api_client.call_api(
|
|
160
|
-
'/pypi/{path}/pypi/{meta}/', 'GET',
|
|
161
|
-
path_params,
|
|
162
|
-
query_params,
|
|
163
|
-
header_params,
|
|
164
|
-
body=body_params,
|
|
165
|
-
post_params=form_params,
|
|
166
|
-
files=local_var_files,
|
|
167
|
-
response_type='PackageMetadataResponse', # noqa: E501
|
|
168
|
-
auth_settings=auth_settings,
|
|
169
|
-
async_req=local_var_params.get('async_req'),
|
|
170
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
171
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
172
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
173
|
-
collection_formats=collection_formats)
|