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,439 +3,956 @@
|
|
|
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, StrictStr
|
|
21
|
+
from typing import List, Optional, Tuple, Union
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pulpcore.client.pulp_python.models.package_upload_task_response import PackageUploadTaskResponse
|
|
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 PypiSimpleApi
|
|
30
|
+
class PypiSimpleApi:
|
|
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 create(
|
|
45
|
+
self,
|
|
46
|
+
path: StrictStr,
|
|
47
|
+
content: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="A Python package release file to upload to the index.")],
|
|
48
|
+
sha256_digest: Annotated[str, Field(min_length=64, strict=True, max_length=64, description="SHA256 of package to validate upload integrity.")],
|
|
49
|
+
action: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="Defaults to `file_upload`, don't change it or request will fail!")] = None,
|
|
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
|
+
) -> PackageUploadTaskResponse:
|
|
63
|
+
"""Upload a package
|
|
64
|
+
|
|
65
|
+
Upload package to the index. This endpoint has the same functionality as the upload endpoint at the `/legacy` url of the index. This is provided for convenience for users who want a single index url for all their Python tools. (pip, twine, poetry, pipenv, ...)
|
|
66
|
+
|
|
67
|
+
:param path: (required)
|
|
68
|
+
:type path: str
|
|
69
|
+
:param content: A Python package release file to upload to the index. (required)
|
|
70
|
+
:type content: bytearray
|
|
71
|
+
:param sha256_digest: SHA256 of package to validate upload integrity. (required)
|
|
72
|
+
:type sha256_digest: str
|
|
73
|
+
:param action: Defaults to `file_upload`, don't change it or request will fail!
|
|
74
|
+
:type action: 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._create_serialize(
|
|
98
|
+
path=path,
|
|
99
|
+
content=content,
|
|
100
|
+
sha256_digest=sha256_digest,
|
|
101
|
+
action=action,
|
|
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': "PackageUploadTaskResponse",
|
|
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 create_with_http_info(
|
|
124
|
+
self,
|
|
125
|
+
path: StrictStr,
|
|
126
|
+
content: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="A Python package release file to upload to the index.")],
|
|
127
|
+
sha256_digest: Annotated[str, Field(min_length=64, strict=True, max_length=64, description="SHA256 of package to validate upload integrity.")],
|
|
128
|
+
action: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="Defaults to `file_upload`, don't change it or request will fail!")] = None,
|
|
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[PackageUploadTaskResponse]:
|
|
142
|
+
"""Upload a package
|
|
143
|
+
|
|
144
|
+
Upload package to the index. This endpoint has the same functionality as the upload endpoint at the `/legacy` url of the index. This is provided for convenience for users who want a single index url for all their Python tools. (pip, twine, poetry, pipenv, ...)
|
|
145
|
+
|
|
146
|
+
:param path: (required)
|
|
147
|
+
:type path: str
|
|
148
|
+
:param content: A Python package release file to upload to the index. (required)
|
|
149
|
+
:type content: bytearray
|
|
150
|
+
:param sha256_digest: SHA256 of package to validate upload integrity. (required)
|
|
151
|
+
:type sha256_digest: str
|
|
152
|
+
:param action: Defaults to `file_upload`, don't change it or request will fail!
|
|
153
|
+
:type action: 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._create_serialize(
|
|
177
|
+
path=path,
|
|
178
|
+
content=content,
|
|
179
|
+
sha256_digest=sha256_digest,
|
|
180
|
+
action=action,
|
|
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': "PackageUploadTaskResponse",
|
|
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 create_without_preload_content(
|
|
203
|
+
self,
|
|
204
|
+
path: StrictStr,
|
|
205
|
+
content: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="A Python package release file to upload to the index.")],
|
|
206
|
+
sha256_digest: Annotated[str, Field(min_length=64, strict=True, max_length=64, description="SHA256 of package to validate upload integrity.")],
|
|
207
|
+
action: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="Defaults to `file_upload`, don't change it or request will fail!")] = None,
|
|
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
|
+
"""Upload a package
|
|
222
|
+
|
|
223
|
+
Upload package to the index. This endpoint has the same functionality as the upload endpoint at the `/legacy` url of the index. This is provided for convenience for users who want a single index url for all their Python tools. (pip, twine, poetry, pipenv, ...)
|
|
224
|
+
|
|
225
|
+
:param path: (required)
|
|
226
|
+
:type path: str
|
|
227
|
+
:param content: A Python package release file to upload to the index. (required)
|
|
228
|
+
:type content: bytearray
|
|
229
|
+
:param sha256_digest: SHA256 of package to validate upload integrity. (required)
|
|
230
|
+
:type sha256_digest: str
|
|
231
|
+
:param action: Defaults to `file_upload`, don't change it or request will fail!
|
|
232
|
+
:type action: 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._create_serialize(
|
|
256
|
+
path=path,
|
|
257
|
+
content=content,
|
|
258
|
+
sha256_digest=sha256_digest,
|
|
259
|
+
action=action,
|
|
260
|
+
_request_auth=_request_auth,
|
|
261
|
+
_content_type=_content_type,
|
|
262
|
+
_headers=_headers,
|
|
263
|
+
_host_index=_host_index
|
|
111
264
|
)
|
|
112
265
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
266
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
267
|
+
'200': "PackageUploadTaskResponse",
|
|
268
|
+
}
|
|
269
|
+
response_data = self.api_client.call_api(
|
|
270
|
+
*_param,
|
|
271
|
+
_request_timeout=_request_timeout
|
|
272
|
+
)
|
|
273
|
+
return response_data.response
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
def _create_serialize(
|
|
277
|
+
self,
|
|
278
|
+
path,
|
|
279
|
+
content,
|
|
280
|
+
sha256_digest,
|
|
281
|
+
action,
|
|
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
|
+
}
|
|
292
|
+
|
|
293
|
+
_path_params: Dict[str, str] = {}
|
|
294
|
+
_query_params: List[Tuple[str, str]] = []
|
|
295
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
296
|
+
_form_params: List[Tuple[str, str]] = []
|
|
297
|
+
_files: Dict[
|
|
298
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
299
|
+
] = {}
|
|
300
|
+
_body_params: Optional[bytes] = None
|
|
301
|
+
|
|
302
|
+
# process the path parameters
|
|
303
|
+
if path is not None:
|
|
304
|
+
_path_params['path'] = path
|
|
305
|
+
# process the query parameters
|
|
306
|
+
# process the header parameters
|
|
307
|
+
# process the form parameters
|
|
308
|
+
if content is not None:
|
|
309
|
+
_files['content'] = content
|
|
310
|
+
if action is not None:
|
|
311
|
+
_form_params.append(('action', action))
|
|
312
|
+
if sha256_digest is not None:
|
|
313
|
+
_form_params.append(('sha256_digest', sha256_digest))
|
|
314
|
+
# process the body parameter
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
# set the HTTP header `Accept`
|
|
318
|
+
if 'Accept' not in _header_params:
|
|
319
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
320
|
+
[
|
|
321
|
+
'application/json'
|
|
322
|
+
]
|
|
323
|
+
)
|
|
324
|
+
|
|
325
|
+
# set the HTTP header `Content-Type`
|
|
326
|
+
if _content_type:
|
|
327
|
+
_header_params['Content-Type'] = _content_type
|
|
328
|
+
else:
|
|
329
|
+
_default_content_type = (
|
|
330
|
+
self.api_client.select_header_content_type(
|
|
331
|
+
[
|
|
332
|
+
'multipart/form-data',
|
|
333
|
+
'application/x-www-form-urlencoded'
|
|
334
|
+
]
|
|
118
335
|
)
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
body=body_params,
|
|
180
|
-
post_params=form_params,
|
|
181
|
-
files=local_var_files,
|
|
182
|
-
response_type='PackageUploadTaskResponse', # noqa: E501
|
|
183
|
-
auth_settings=auth_settings,
|
|
184
|
-
async_req=local_var_params.get('async_req'),
|
|
185
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
186
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
|
187
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
|
188
|
-
collection_formats=collection_formats)
|
|
189
|
-
|
|
190
|
-
def pypi_simple_package_read(self, package, path, **kwargs): # noqa: E501
|
|
191
|
-
"""Get package simple page # noqa: E501
|
|
192
|
-
|
|
193
|
-
Retrieves the simple api html page for a package. # noqa: E501
|
|
194
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
195
|
-
asynchronous HTTP request, please pass async_req=True
|
|
196
|
-
>>> thread = api.pypi_simple_package_read(package, path, async_req=True)
|
|
197
|
-
>>> result = thread.get()
|
|
198
|
-
|
|
199
|
-
:param async_req bool: execute request asynchronously
|
|
200
|
-
:param str package: (required)
|
|
201
|
-
:param str path: (required)
|
|
202
|
-
:param list[str] fields: A list of fields to include in the response.
|
|
203
|
-
:param list[str] exclude_fields: A list of fields to exclude from the response.
|
|
204
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
205
|
-
be returned without reading/decoding response
|
|
206
|
-
data. Default is True.
|
|
336
|
+
)
|
|
337
|
+
if _default_content_type is not None:
|
|
338
|
+
_header_params['Content-Type'] = _default_content_type
|
|
339
|
+
|
|
340
|
+
# authentication setting
|
|
341
|
+
_auth_settings: List[str] = [
|
|
342
|
+
'basicAuth',
|
|
343
|
+
'cookieAuth'
|
|
344
|
+
]
|
|
345
|
+
|
|
346
|
+
return self.api_client.param_serialize(
|
|
347
|
+
method='POST',
|
|
348
|
+
resource_path='/pypi/{path}/simple/',
|
|
349
|
+
path_params=_path_params,
|
|
350
|
+
query_params=_query_params,
|
|
351
|
+
header_params=_header_params,
|
|
352
|
+
body=_body_params,
|
|
353
|
+
post_params=_form_params,
|
|
354
|
+
files=_files,
|
|
355
|
+
auth_settings=_auth_settings,
|
|
356
|
+
collection_formats=_collection_formats,
|
|
357
|
+
_host=_host,
|
|
358
|
+
_request_auth=_request_auth
|
|
359
|
+
)
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
@validate_call
|
|
365
|
+
def pypi_simple_package_read(
|
|
366
|
+
self,
|
|
367
|
+
package: StrictStr,
|
|
368
|
+
path: StrictStr,
|
|
369
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
370
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
371
|
+
_request_timeout: Union[
|
|
372
|
+
None,
|
|
373
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
374
|
+
Tuple[
|
|
375
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
376
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
377
|
+
]
|
|
378
|
+
] = None,
|
|
379
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
380
|
+
_content_type: Optional[StrictStr] = None,
|
|
381
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
382
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
383
|
+
) -> None:
|
|
384
|
+
"""Get package simple page
|
|
385
|
+
|
|
386
|
+
Retrieves the simple api html page for a package.
|
|
387
|
+
|
|
388
|
+
:param package: (required)
|
|
389
|
+
:type package: str
|
|
390
|
+
:param path: (required)
|
|
391
|
+
:type path: str
|
|
392
|
+
:param fields: A list of fields to include in the response.
|
|
393
|
+
:type fields: List[str]
|
|
394
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
395
|
+
:type exclude_fields: List[str]
|
|
207
396
|
:param _request_timeout: timeout setting for this request. If one
|
|
208
397
|
number provided, it will be total request
|
|
209
398
|
timeout. It can also be a pair (tuple) of
|
|
210
399
|
(connection, read) timeouts.
|
|
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
|
-
|
|
400
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
401
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
402
|
+
request; this effectively ignores the
|
|
403
|
+
authentication in the spec for a single request.
|
|
404
|
+
:type _request_auth: dict, optional
|
|
405
|
+
:param _content_type: force content-type for the request.
|
|
406
|
+
:type _content_type: str, Optional
|
|
407
|
+
:param _headers: set to override the headers for a single
|
|
408
|
+
request; this effectively ignores the headers
|
|
409
|
+
in the spec for a single request.
|
|
410
|
+
:type _headers: dict, optional
|
|
411
|
+
:param _host_index: set to override the host_index for a single
|
|
412
|
+
request; this effectively ignores the host_index
|
|
413
|
+
in the spec for a single request.
|
|
414
|
+
:type _host_index: int, optional
|
|
415
|
+
:return: Returns the result object.
|
|
416
|
+
""" # noqa: E501
|
|
417
|
+
|
|
418
|
+
_param = self._pypi_simple_package_read_serialize(
|
|
419
|
+
package=package,
|
|
420
|
+
path=path,
|
|
421
|
+
fields=fields,
|
|
422
|
+
exclude_fields=exclude_fields,
|
|
423
|
+
_request_auth=_request_auth,
|
|
424
|
+
_content_type=_content_type,
|
|
425
|
+
_headers=_headers,
|
|
426
|
+
_host_index=_host_index
|
|
427
|
+
)
|
|
428
|
+
|
|
429
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
430
|
+
'200': None,
|
|
431
|
+
}
|
|
432
|
+
response_data = self.api_client.call_api(
|
|
433
|
+
*_param,
|
|
434
|
+
_request_timeout=_request_timeout
|
|
435
|
+
)
|
|
436
|
+
response_data.read()
|
|
437
|
+
return self.api_client.response_deserialize(
|
|
438
|
+
response_data=response_data,
|
|
439
|
+
response_types_map=_response_types_map,
|
|
440
|
+
).data
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
@validate_call
|
|
444
|
+
def pypi_simple_package_read_with_http_info(
|
|
445
|
+
self,
|
|
446
|
+
package: StrictStr,
|
|
447
|
+
path: StrictStr,
|
|
448
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
449
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
450
|
+
_request_timeout: Union[
|
|
451
|
+
None,
|
|
452
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
453
|
+
Tuple[
|
|
454
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
455
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
456
|
+
]
|
|
457
|
+
] = None,
|
|
458
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
459
|
+
_content_type: Optional[StrictStr] = None,
|
|
460
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
461
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
462
|
+
) -> ApiResponse[None]:
|
|
463
|
+
"""Get package simple page
|
|
464
|
+
|
|
465
|
+
Retrieves the simple api html page for a package.
|
|
466
|
+
|
|
467
|
+
:param package: (required)
|
|
468
|
+
:type package: str
|
|
469
|
+
:param path: (required)
|
|
470
|
+
:type path: str
|
|
471
|
+
:param fields: A list of fields to include in the response.
|
|
472
|
+
:type fields: List[str]
|
|
473
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
474
|
+
:type exclude_fields: List[str]
|
|
237
475
|
:param _request_timeout: timeout setting for this request. If one
|
|
238
476
|
number provided, it will be total request
|
|
239
477
|
timeout. It can also be a pair (tuple) of
|
|
240
478
|
(connection, read) timeouts.
|
|
241
|
-
:
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
479
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
480
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
481
|
+
request; this effectively ignores the
|
|
482
|
+
authentication in the spec for a single request.
|
|
483
|
+
:type _request_auth: dict, optional
|
|
484
|
+
:param _content_type: force content-type for the request.
|
|
485
|
+
:type _content_type: str, Optional
|
|
486
|
+
:param _headers: set to override the headers for a single
|
|
487
|
+
request; this effectively ignores the headers
|
|
488
|
+
in the spec for a single request.
|
|
489
|
+
:type _headers: dict, optional
|
|
490
|
+
:param _host_index: set to override the host_index for a single
|
|
491
|
+
request; this effectively ignores the host_index
|
|
492
|
+
in the spec for a single request.
|
|
493
|
+
:type _host_index: int, optional
|
|
494
|
+
:return: Returns the result object.
|
|
495
|
+
""" # noqa: E501
|
|
496
|
+
|
|
497
|
+
_param = self._pypi_simple_package_read_serialize(
|
|
498
|
+
package=package,
|
|
499
|
+
path=path,
|
|
500
|
+
fields=fields,
|
|
501
|
+
exclude_fields=exclude_fields,
|
|
502
|
+
_request_auth=_request_auth,
|
|
503
|
+
_content_type=_content_type,
|
|
504
|
+
_headers=_headers,
|
|
505
|
+
_host_index=_host_index
|
|
506
|
+
)
|
|
507
|
+
|
|
508
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
509
|
+
'200': None,
|
|
510
|
+
}
|
|
511
|
+
response_data = self.api_client.call_api(
|
|
512
|
+
*_param,
|
|
513
|
+
_request_timeout=_request_timeout
|
|
514
|
+
)
|
|
515
|
+
response_data.read()
|
|
516
|
+
return self.api_client.response_deserialize(
|
|
517
|
+
response_data=response_data,
|
|
518
|
+
response_types_map=_response_types_map,
|
|
519
|
+
)
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
@validate_call
|
|
523
|
+
def pypi_simple_package_read_without_preload_content(
|
|
524
|
+
self,
|
|
525
|
+
package: StrictStr,
|
|
526
|
+
path: StrictStr,
|
|
527
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
528
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
529
|
+
_request_timeout: Union[
|
|
530
|
+
None,
|
|
531
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
532
|
+
Tuple[
|
|
533
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
534
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
260
535
|
]
|
|
536
|
+
] = None,
|
|
537
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
538
|
+
_content_type: Optional[StrictStr] = None,
|
|
539
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
540
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
541
|
+
) -> RESTResponseType:
|
|
542
|
+
"""Get package simple page
|
|
543
|
+
|
|
544
|
+
Retrieves the simple api html page for a package.
|
|
545
|
+
|
|
546
|
+
:param package: (required)
|
|
547
|
+
:type package: str
|
|
548
|
+
:param path: (required)
|
|
549
|
+
:type path: str
|
|
550
|
+
:param fields: A list of fields to include in the response.
|
|
551
|
+
:type fields: List[str]
|
|
552
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
553
|
+
:type exclude_fields: List[str]
|
|
554
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
555
|
+
number provided, it will be total request
|
|
556
|
+
timeout. It can also be a pair (tuple) of
|
|
557
|
+
(connection, read) timeouts.
|
|
558
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
559
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
560
|
+
request; this effectively ignores the
|
|
561
|
+
authentication in the spec for a single request.
|
|
562
|
+
:type _request_auth: dict, optional
|
|
563
|
+
:param _content_type: force content-type for the request.
|
|
564
|
+
:type _content_type: str, Optional
|
|
565
|
+
:param _headers: set to override the headers for a single
|
|
566
|
+
request; this effectively ignores the headers
|
|
567
|
+
in the spec for a single request.
|
|
568
|
+
:type _headers: dict, optional
|
|
569
|
+
:param _host_index: set to override the host_index for a single
|
|
570
|
+
request; this effectively ignores the host_index
|
|
571
|
+
in the spec for a single request.
|
|
572
|
+
:type _host_index: int, optional
|
|
573
|
+
:return: Returns the result object.
|
|
574
|
+
""" # noqa: E501
|
|
575
|
+
|
|
576
|
+
_param = self._pypi_simple_package_read_serialize(
|
|
577
|
+
package=package,
|
|
578
|
+
path=path,
|
|
579
|
+
fields=fields,
|
|
580
|
+
exclude_fields=exclude_fields,
|
|
581
|
+
_request_auth=_request_auth,
|
|
582
|
+
_content_type=_content_type,
|
|
583
|
+
_headers=_headers,
|
|
584
|
+
_host_index=_host_index
|
|
261
585
|
)
|
|
262
586
|
|
|
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
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
587
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
588
|
+
'200': None,
|
|
589
|
+
}
|
|
590
|
+
response_data = self.api_client.call_api(
|
|
591
|
+
*_param,
|
|
592
|
+
_request_timeout=_request_timeout
|
|
593
|
+
)
|
|
594
|
+
return response_data.response
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
def _pypi_simple_package_read_serialize(
|
|
598
|
+
self,
|
|
599
|
+
package,
|
|
600
|
+
path,
|
|
601
|
+
fields,
|
|
602
|
+
exclude_fields,
|
|
603
|
+
_request_auth,
|
|
604
|
+
_content_type,
|
|
605
|
+
_headers,
|
|
606
|
+
_host_index,
|
|
607
|
+
) -> RequestSerialized:
|
|
608
|
+
|
|
609
|
+
_host = None
|
|
610
|
+
|
|
611
|
+
_collection_formats: Dict[str, str] = {
|
|
612
|
+
'fields': 'multi',
|
|
613
|
+
'exclude_fields': 'multi',
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
_path_params: Dict[str, str] = {}
|
|
617
|
+
_query_params: List[Tuple[str, str]] = []
|
|
618
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
619
|
+
_form_params: List[Tuple[str, str]] = []
|
|
620
|
+
_files: Dict[
|
|
621
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
622
|
+
] = {}
|
|
623
|
+
_body_params: Optional[bytes] = None
|
|
624
|
+
|
|
625
|
+
# process the path parameters
|
|
626
|
+
if package is not None:
|
|
627
|
+
_path_params['package'] = package
|
|
628
|
+
if path is not None:
|
|
629
|
+
_path_params['path'] = path
|
|
630
|
+
# process the query parameters
|
|
631
|
+
if fields is not None:
|
|
632
|
+
|
|
633
|
+
_query_params.append(('fields', fields))
|
|
634
|
+
|
|
635
|
+
if exclude_fields is not None:
|
|
636
|
+
|
|
637
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
638
|
+
|
|
639
|
+
# process the header parameters
|
|
640
|
+
# process the form parameters
|
|
641
|
+
# process the body parameter
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
# authentication setting
|
|
647
|
+
_auth_settings: List[str] = [
|
|
648
|
+
'basicAuth',
|
|
649
|
+
'cookieAuth'
|
|
650
|
+
]
|
|
651
|
+
|
|
652
|
+
return self.api_client.param_serialize(
|
|
653
|
+
method='GET',
|
|
654
|
+
resource_path='/pypi/{path}/simple/{package}/',
|
|
655
|
+
path_params=_path_params,
|
|
656
|
+
query_params=_query_params,
|
|
657
|
+
header_params=_header_params,
|
|
658
|
+
body=_body_params,
|
|
659
|
+
post_params=_form_params,
|
|
660
|
+
files=_files,
|
|
661
|
+
auth_settings=_auth_settings,
|
|
662
|
+
collection_formats=_collection_formats,
|
|
663
|
+
_host=_host,
|
|
664
|
+
_request_auth=_request_auth
|
|
665
|
+
)
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
@validate_call
|
|
671
|
+
def read(
|
|
672
|
+
self,
|
|
673
|
+
path: StrictStr,
|
|
674
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
675
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
676
|
+
_request_timeout: Union[
|
|
677
|
+
None,
|
|
678
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
679
|
+
Tuple[
|
|
680
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
681
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
682
|
+
]
|
|
683
|
+
] = None,
|
|
684
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
685
|
+
_content_type: Optional[StrictStr] = None,
|
|
686
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
687
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
688
|
+
) -> None:
|
|
689
|
+
"""Get index simple page
|
|
690
|
+
|
|
691
|
+
Gets the simple api html page for the index.
|
|
692
|
+
|
|
693
|
+
:param path: (required)
|
|
694
|
+
:type path: str
|
|
695
|
+
:param fields: A list of fields to include in the response.
|
|
696
|
+
:type fields: List[str]
|
|
697
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
698
|
+
:type exclude_fields: List[str]
|
|
337
699
|
:param _request_timeout: timeout setting for this request. If one
|
|
338
700
|
number provided, it will be total request
|
|
339
701
|
timeout. It can also be a pair (tuple) of
|
|
340
702
|
(connection, read) timeouts.
|
|
341
|
-
:
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
703
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
704
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
705
|
+
request; this effectively ignores the
|
|
706
|
+
authentication in the spec for a single request.
|
|
707
|
+
:type _request_auth: dict, optional
|
|
708
|
+
:param _content_type: force content-type for the request.
|
|
709
|
+
:type _content_type: str, Optional
|
|
710
|
+
:param _headers: set to override the headers for a single
|
|
711
|
+
request; this effectively ignores the headers
|
|
712
|
+
in the spec for a single request.
|
|
713
|
+
:type _headers: dict, optional
|
|
714
|
+
:param _host_index: set to override the host_index for a single
|
|
715
|
+
request; this effectively ignores the host_index
|
|
716
|
+
in the spec for a single request.
|
|
717
|
+
:type _host_index: int, optional
|
|
718
|
+
:return: Returns the result object.
|
|
719
|
+
""" # noqa: E501
|
|
720
|
+
|
|
721
|
+
_param = self._read_serialize(
|
|
722
|
+
path=path,
|
|
723
|
+
fields=fields,
|
|
724
|
+
exclude_fields=exclude_fields,
|
|
725
|
+
_request_auth=_request_auth,
|
|
726
|
+
_content_type=_content_type,
|
|
727
|
+
_headers=_headers,
|
|
728
|
+
_host_index=_host_index
|
|
729
|
+
)
|
|
730
|
+
|
|
731
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
732
|
+
'200': None,
|
|
733
|
+
}
|
|
734
|
+
response_data = self.api_client.call_api(
|
|
735
|
+
*_param,
|
|
736
|
+
_request_timeout=_request_timeout
|
|
737
|
+
)
|
|
738
|
+
response_data.read()
|
|
739
|
+
return self.api_client.response_deserialize(
|
|
740
|
+
response_data=response_data,
|
|
741
|
+
response_types_map=_response_types_map,
|
|
742
|
+
).data
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
@validate_call
|
|
746
|
+
def read_with_http_info(
|
|
747
|
+
self,
|
|
748
|
+
path: StrictStr,
|
|
749
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
750
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
751
|
+
_request_timeout: Union[
|
|
752
|
+
None,
|
|
753
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
754
|
+
Tuple[
|
|
755
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
756
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
757
|
+
]
|
|
758
|
+
] = None,
|
|
759
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
760
|
+
_content_type: Optional[StrictStr] = None,
|
|
761
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
762
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
763
|
+
) -> ApiResponse[None]:
|
|
764
|
+
"""Get index simple page
|
|
765
|
+
|
|
766
|
+
Gets the simple api html page for the index.
|
|
767
|
+
|
|
768
|
+
:param path: (required)
|
|
769
|
+
:type path: str
|
|
770
|
+
:param fields: A list of fields to include in the response.
|
|
771
|
+
:type fields: List[str]
|
|
772
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
773
|
+
:type exclude_fields: List[str]
|
|
366
774
|
:param _request_timeout: timeout setting for this request. If one
|
|
367
775
|
number provided, it will be total request
|
|
368
776
|
timeout. It can also be a pair (tuple) of
|
|
369
777
|
(connection, read) timeouts.
|
|
370
|
-
:
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
778
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
779
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
780
|
+
request; this effectively ignores the
|
|
781
|
+
authentication in the spec for a single request.
|
|
782
|
+
:type _request_auth: dict, optional
|
|
783
|
+
:param _content_type: force content-type for the request.
|
|
784
|
+
:type _content_type: str, Optional
|
|
785
|
+
:param _headers: set to override the headers for a single
|
|
786
|
+
request; this effectively ignores the headers
|
|
787
|
+
in the spec for a single request.
|
|
788
|
+
:type _headers: dict, optional
|
|
789
|
+
:param _host_index: set to override the host_index for a single
|
|
790
|
+
request; this effectively ignores the host_index
|
|
791
|
+
in the spec for a single request.
|
|
792
|
+
:type _host_index: int, optional
|
|
793
|
+
:return: Returns the result object.
|
|
794
|
+
""" # noqa: E501
|
|
795
|
+
|
|
796
|
+
_param = self._read_serialize(
|
|
797
|
+
path=path,
|
|
798
|
+
fields=fields,
|
|
799
|
+
exclude_fields=exclude_fields,
|
|
800
|
+
_request_auth=_request_auth,
|
|
801
|
+
_content_type=_content_type,
|
|
802
|
+
_headers=_headers,
|
|
803
|
+
_host_index=_host_index
|
|
804
|
+
)
|
|
374
805
|
|
|
375
|
-
|
|
806
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
807
|
+
'200': None,
|
|
808
|
+
}
|
|
809
|
+
response_data = self.api_client.call_api(
|
|
810
|
+
*_param,
|
|
811
|
+
_request_timeout=_request_timeout
|
|
812
|
+
)
|
|
813
|
+
response_data.read()
|
|
814
|
+
return self.api_client.response_deserialize(
|
|
815
|
+
response_data=response_data,
|
|
816
|
+
response_types_map=_response_types_map,
|
|
817
|
+
)
|
|
376
818
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
819
|
+
|
|
820
|
+
@validate_call
|
|
821
|
+
def read_without_preload_content(
|
|
822
|
+
self,
|
|
823
|
+
path: StrictStr,
|
|
824
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
825
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
826
|
+
_request_timeout: Union[
|
|
827
|
+
None,
|
|
828
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
829
|
+
Tuple[
|
|
830
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
831
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
388
832
|
]
|
|
833
|
+
] = None,
|
|
834
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
835
|
+
_content_type: Optional[StrictStr] = None,
|
|
836
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
837
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
838
|
+
) -> RESTResponseType:
|
|
839
|
+
"""Get index simple page
|
|
840
|
+
|
|
841
|
+
Gets the simple api html page for the index.
|
|
842
|
+
|
|
843
|
+
:param path: (required)
|
|
844
|
+
:type path: str
|
|
845
|
+
:param fields: A list of fields to include in the response.
|
|
846
|
+
:type fields: List[str]
|
|
847
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
848
|
+
:type exclude_fields: List[str]
|
|
849
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
850
|
+
number provided, it will be total request
|
|
851
|
+
timeout. It can also be a pair (tuple) of
|
|
852
|
+
(connection, read) timeouts.
|
|
853
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
854
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
855
|
+
request; this effectively ignores the
|
|
856
|
+
authentication in the spec for a single request.
|
|
857
|
+
:type _request_auth: dict, optional
|
|
858
|
+
:param _content_type: force content-type for the request.
|
|
859
|
+
:type _content_type: str, Optional
|
|
860
|
+
:param _headers: set to override the headers for a single
|
|
861
|
+
request; this effectively ignores the headers
|
|
862
|
+
in the spec for a single request.
|
|
863
|
+
:type _headers: dict, optional
|
|
864
|
+
:param _host_index: set to override the host_index for a single
|
|
865
|
+
request; this effectively ignores the host_index
|
|
866
|
+
in the spec for a single request.
|
|
867
|
+
:type _host_index: int, optional
|
|
868
|
+
:return: Returns the result object.
|
|
869
|
+
""" # noqa: E501
|
|
870
|
+
|
|
871
|
+
_param = self._read_serialize(
|
|
872
|
+
path=path,
|
|
873
|
+
fields=fields,
|
|
874
|
+
exclude_fields=exclude_fields,
|
|
875
|
+
_request_auth=_request_auth,
|
|
876
|
+
_content_type=_content_type,
|
|
877
|
+
_headers=_headers,
|
|
878
|
+
_host_index=_host_index
|
|
389
879
|
)
|
|
390
880
|
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
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
|
-
|
|
881
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
882
|
+
'200': None,
|
|
883
|
+
}
|
|
884
|
+
response_data = self.api_client.call_api(
|
|
885
|
+
*_param,
|
|
886
|
+
_request_timeout=_request_timeout
|
|
887
|
+
)
|
|
888
|
+
return response_data.response
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
def _read_serialize(
|
|
892
|
+
self,
|
|
893
|
+
path,
|
|
894
|
+
fields,
|
|
895
|
+
exclude_fields,
|
|
896
|
+
_request_auth,
|
|
897
|
+
_content_type,
|
|
898
|
+
_headers,
|
|
899
|
+
_host_index,
|
|
900
|
+
) -> RequestSerialized:
|
|
901
|
+
|
|
902
|
+
_host = None
|
|
903
|
+
|
|
904
|
+
_collection_formats: Dict[str, str] = {
|
|
905
|
+
'fields': 'multi',
|
|
906
|
+
'exclude_fields': 'multi',
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
_path_params: Dict[str, str] = {}
|
|
910
|
+
_query_params: List[Tuple[str, str]] = []
|
|
911
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
912
|
+
_form_params: List[Tuple[str, str]] = []
|
|
913
|
+
_files: Dict[
|
|
914
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
915
|
+
] = {}
|
|
916
|
+
_body_params: Optional[bytes] = None
|
|
917
|
+
|
|
918
|
+
# process the path parameters
|
|
919
|
+
if path is not None:
|
|
920
|
+
_path_params['path'] = path
|
|
921
|
+
# process the query parameters
|
|
922
|
+
if fields is not None:
|
|
923
|
+
|
|
924
|
+
_query_params.append(('fields', fields))
|
|
925
|
+
|
|
926
|
+
if exclude_fields is not None:
|
|
927
|
+
|
|
928
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
929
|
+
|
|
930
|
+
# process the header parameters
|
|
931
|
+
# process the form parameters
|
|
932
|
+
# process the body parameter
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
# authentication setting
|
|
938
|
+
_auth_settings: List[str] = [
|
|
939
|
+
'basicAuth',
|
|
940
|
+
'cookieAuth'
|
|
941
|
+
]
|
|
942
|
+
|
|
943
|
+
return self.api_client.param_serialize(
|
|
944
|
+
method='GET',
|
|
945
|
+
resource_path='/pypi/{path}/simple/',
|
|
946
|
+
path_params=_path_params,
|
|
947
|
+
query_params=_query_params,
|
|
948
|
+
header_params=_header_params,
|
|
949
|
+
body=_body_params,
|
|
950
|
+
post_params=_form_params,
|
|
951
|
+
files=_files,
|
|
952
|
+
auth_settings=_auth_settings,
|
|
953
|
+
collection_formats=_collection_formats,
|
|
954
|
+
_host=_host,
|
|
955
|
+
_request_auth=_request_auth
|
|
956
|
+
)
|
|
957
|
+
|
|
958
|
+
|