pulp-python-client 3.16.0__py3-none-any.whl → 3.17.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulp-python-client might be problematic. Click here for more details.
- {pulp_python_client-3.16.0.dist-info → pulp_python_client-3.17.1.dist-info}/METADATA +1 -1
- {pulp_python_client-3.16.0.dist-info → pulp_python_client-3.17.1.dist-info}/RECORD +18 -18
- pulpcore/client/pulp_python/__init__.py +1 -1
- pulpcore/client/pulp_python/api/content_packages_api.py +341 -201
- pulpcore/client/pulp_python/api/distributions_pypi_api.py +192 -0
- pulpcore/client/pulp_python/api/publications_pypi_api.py +128 -0
- pulpcore/client/pulp_python/api/pypi_api.py +16 -0
- pulpcore/client/pulp_python/api/pypi_legacy_api.py +17 -1
- pulpcore/client/pulp_python/api/pypi_metadata_api.py +16 -0
- pulpcore/client/pulp_python/api/pypi_simple_api.py +48 -0
- pulpcore/client/pulp_python/api/remotes_python_api.py +208 -0
- pulpcore/client/pulp_python/api/repositories_python_api.py +240 -0
- pulpcore/client/pulp_python/api/repositories_python_versions_api.py +70 -6
- pulpcore/client/pulp_python/api_client.py +1 -1
- pulpcore/client/pulp_python/configuration.py +1 -1
- pulpcore/client/pulp_python/models/python_python_package_content_response.py +80 -53
- {pulp_python_client-3.16.0.dist-info → pulp_python_client-3.17.1.dist-info}/WHEEL +0 -0
- {pulp_python_client-3.16.0.dist-info → pulp_python_client-3.17.1.dist-info}/top_level.txt +0 -0
|
@@ -44,6 +44,7 @@ class PypiApi:
|
|
|
44
44
|
def read(
|
|
45
45
|
self,
|
|
46
46
|
path: StrictStr,
|
|
47
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
47
48
|
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
48
49
|
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
49
50
|
_request_timeout: Union[
|
|
@@ -65,6 +66,8 @@ class PypiApi:
|
|
|
65
66
|
|
|
66
67
|
:param path: (required)
|
|
67
68
|
:type path: str
|
|
69
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
70
|
+
:type x_task_diagnostics: List[str]
|
|
68
71
|
:param fields: A list of fields to include in the response.
|
|
69
72
|
:type fields: List[str]
|
|
70
73
|
:param exclude_fields: A list of fields to exclude from the response.
|
|
@@ -93,6 +96,7 @@ class PypiApi:
|
|
|
93
96
|
|
|
94
97
|
_param = self._read_serialize(
|
|
95
98
|
path=path,
|
|
99
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
96
100
|
fields=fields,
|
|
97
101
|
exclude_fields=exclude_fields,
|
|
98
102
|
_request_auth=_request_auth,
|
|
@@ -119,6 +123,7 @@ class PypiApi:
|
|
|
119
123
|
def read_with_http_info(
|
|
120
124
|
self,
|
|
121
125
|
path: StrictStr,
|
|
126
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
122
127
|
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
123
128
|
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
124
129
|
_request_timeout: Union[
|
|
@@ -140,6 +145,8 @@ class PypiApi:
|
|
|
140
145
|
|
|
141
146
|
:param path: (required)
|
|
142
147
|
:type path: str
|
|
148
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
149
|
+
:type x_task_diagnostics: List[str]
|
|
143
150
|
:param fields: A list of fields to include in the response.
|
|
144
151
|
:type fields: List[str]
|
|
145
152
|
:param exclude_fields: A list of fields to exclude from the response.
|
|
@@ -168,6 +175,7 @@ class PypiApi:
|
|
|
168
175
|
|
|
169
176
|
_param = self._read_serialize(
|
|
170
177
|
path=path,
|
|
178
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
171
179
|
fields=fields,
|
|
172
180
|
exclude_fields=exclude_fields,
|
|
173
181
|
_request_auth=_request_auth,
|
|
@@ -194,6 +202,7 @@ class PypiApi:
|
|
|
194
202
|
def read_without_preload_content(
|
|
195
203
|
self,
|
|
196
204
|
path: StrictStr,
|
|
205
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
197
206
|
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
198
207
|
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
199
208
|
_request_timeout: Union[
|
|
@@ -215,6 +224,8 @@ class PypiApi:
|
|
|
215
224
|
|
|
216
225
|
:param path: (required)
|
|
217
226
|
:type path: str
|
|
227
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
228
|
+
:type x_task_diagnostics: List[str]
|
|
218
229
|
:param fields: A list of fields to include in the response.
|
|
219
230
|
:type fields: List[str]
|
|
220
231
|
:param exclude_fields: A list of fields to exclude from the response.
|
|
@@ -243,6 +254,7 @@ class PypiApi:
|
|
|
243
254
|
|
|
244
255
|
_param = self._read_serialize(
|
|
245
256
|
path=path,
|
|
257
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
246
258
|
fields=fields,
|
|
247
259
|
exclude_fields=exclude_fields,
|
|
248
260
|
_request_auth=_request_auth,
|
|
@@ -264,6 +276,7 @@ class PypiApi:
|
|
|
264
276
|
def _read_serialize(
|
|
265
277
|
self,
|
|
266
278
|
path,
|
|
279
|
+
x_task_diagnostics,
|
|
267
280
|
fields,
|
|
268
281
|
exclude_fields,
|
|
269
282
|
_request_auth,
|
|
@@ -275,6 +288,7 @@ class PypiApi:
|
|
|
275
288
|
_host = None
|
|
276
289
|
|
|
277
290
|
_collection_formats: Dict[str, str] = {
|
|
291
|
+
'X-Task-Diagnostics': 'csv',
|
|
278
292
|
'fields': 'multi',
|
|
279
293
|
'exclude_fields': 'multi',
|
|
280
294
|
}
|
|
@@ -301,6 +315,8 @@ class PypiApi:
|
|
|
301
315
|
_query_params.append(('exclude_fields', exclude_fields))
|
|
302
316
|
|
|
303
317
|
# process the header parameters
|
|
318
|
+
if x_task_diagnostics is not None:
|
|
319
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
304
320
|
# process the form parameters
|
|
305
321
|
# process the body parameter
|
|
306
322
|
|
|
@@ -18,7 +18,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
18
18
|
from typing_extensions import Annotated
|
|
19
19
|
|
|
20
20
|
from pydantic import Field, StrictBytes, StrictStr
|
|
21
|
-
from typing import Optional, Tuple, Union
|
|
21
|
+
from typing import List, Optional, Tuple, Union
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
23
|
from pulpcore.client.pulp_python.models.package_upload_task_response import PackageUploadTaskResponse
|
|
24
24
|
|
|
@@ -46,6 +46,7 @@ class PypiLegacyApi:
|
|
|
46
46
|
path: StrictStr,
|
|
47
47
|
content: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="A Python package release file to upload to the index.")],
|
|
48
48
|
sha256_digest: Annotated[str, Field(min_length=64, strict=True, max_length=64, description="SHA256 of package to validate upload integrity.")],
|
|
49
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
49
50
|
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
51
|
_request_timeout: Union[
|
|
51
52
|
None,
|
|
@@ -70,6 +71,8 @@ class PypiLegacyApi:
|
|
|
70
71
|
:type content: bytearray
|
|
71
72
|
:param sha256_digest: SHA256 of package to validate upload integrity. (required)
|
|
72
73
|
:type sha256_digest: str
|
|
74
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
75
|
+
:type x_task_diagnostics: List[str]
|
|
73
76
|
:param action: Defaults to `file_upload`, don't change it or request will fail!
|
|
74
77
|
:type action: str
|
|
75
78
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -98,6 +101,7 @@ class PypiLegacyApi:
|
|
|
98
101
|
path=path,
|
|
99
102
|
content=content,
|
|
100
103
|
sha256_digest=sha256_digest,
|
|
104
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
101
105
|
action=action,
|
|
102
106
|
_request_auth=_request_auth,
|
|
103
107
|
_content_type=_content_type,
|
|
@@ -125,6 +129,7 @@ class PypiLegacyApi:
|
|
|
125
129
|
path: StrictStr,
|
|
126
130
|
content: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="A Python package release file to upload to the index.")],
|
|
127
131
|
sha256_digest: Annotated[str, Field(min_length=64, strict=True, max_length=64, description="SHA256 of package to validate upload integrity.")],
|
|
132
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
128
133
|
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
134
|
_request_timeout: Union[
|
|
130
135
|
None,
|
|
@@ -149,6 +154,8 @@ class PypiLegacyApi:
|
|
|
149
154
|
:type content: bytearray
|
|
150
155
|
:param sha256_digest: SHA256 of package to validate upload integrity. (required)
|
|
151
156
|
:type sha256_digest: str
|
|
157
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
158
|
+
:type x_task_diagnostics: List[str]
|
|
152
159
|
:param action: Defaults to `file_upload`, don't change it or request will fail!
|
|
153
160
|
:type action: str
|
|
154
161
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -177,6 +184,7 @@ class PypiLegacyApi:
|
|
|
177
184
|
path=path,
|
|
178
185
|
content=content,
|
|
179
186
|
sha256_digest=sha256_digest,
|
|
187
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
180
188
|
action=action,
|
|
181
189
|
_request_auth=_request_auth,
|
|
182
190
|
_content_type=_content_type,
|
|
@@ -204,6 +212,7 @@ class PypiLegacyApi:
|
|
|
204
212
|
path: StrictStr,
|
|
205
213
|
content: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="A Python package release file to upload to the index.")],
|
|
206
214
|
sha256_digest: Annotated[str, Field(min_length=64, strict=True, max_length=64, description="SHA256 of package to validate upload integrity.")],
|
|
215
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
207
216
|
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
217
|
_request_timeout: Union[
|
|
209
218
|
None,
|
|
@@ -228,6 +237,8 @@ class PypiLegacyApi:
|
|
|
228
237
|
:type content: bytearray
|
|
229
238
|
:param sha256_digest: SHA256 of package to validate upload integrity. (required)
|
|
230
239
|
:type sha256_digest: str
|
|
240
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
241
|
+
:type x_task_diagnostics: List[str]
|
|
231
242
|
:param action: Defaults to `file_upload`, don't change it or request will fail!
|
|
232
243
|
:type action: str
|
|
233
244
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -256,6 +267,7 @@ class PypiLegacyApi:
|
|
|
256
267
|
path=path,
|
|
257
268
|
content=content,
|
|
258
269
|
sha256_digest=sha256_digest,
|
|
270
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
259
271
|
action=action,
|
|
260
272
|
_request_auth=_request_auth,
|
|
261
273
|
_content_type=_content_type,
|
|
@@ -278,6 +290,7 @@ class PypiLegacyApi:
|
|
|
278
290
|
path,
|
|
279
291
|
content,
|
|
280
292
|
sha256_digest,
|
|
293
|
+
x_task_diagnostics,
|
|
281
294
|
action,
|
|
282
295
|
_request_auth,
|
|
283
296
|
_content_type,
|
|
@@ -288,6 +301,7 @@ class PypiLegacyApi:
|
|
|
288
301
|
_host = None
|
|
289
302
|
|
|
290
303
|
_collection_formats: Dict[str, str] = {
|
|
304
|
+
'X-Task-Diagnostics': 'csv',
|
|
291
305
|
}
|
|
292
306
|
|
|
293
307
|
_path_params: Dict[str, str] = {}
|
|
@@ -304,6 +318,8 @@ class PypiLegacyApi:
|
|
|
304
318
|
_path_params['path'] = path
|
|
305
319
|
# process the query parameters
|
|
306
320
|
# process the header parameters
|
|
321
|
+
if x_task_diagnostics is not None:
|
|
322
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
307
323
|
# process the form parameters
|
|
308
324
|
if content is not None:
|
|
309
325
|
_files['content'] = content
|
|
@@ -45,6 +45,7 @@ class PypiMetadataApi:
|
|
|
45
45
|
self,
|
|
46
46
|
meta: StrictStr,
|
|
47
47
|
path: StrictStr,
|
|
48
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
48
49
|
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
49
50
|
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
50
51
|
_request_timeout: Union[
|
|
@@ -68,6 +69,8 @@ class PypiMetadataApi:
|
|
|
68
69
|
:type meta: str
|
|
69
70
|
:param path: (required)
|
|
70
71
|
:type path: str
|
|
72
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
73
|
+
:type x_task_diagnostics: List[str]
|
|
71
74
|
:param fields: A list of fields to include in the response.
|
|
72
75
|
:type fields: List[str]
|
|
73
76
|
:param exclude_fields: A list of fields to exclude from the response.
|
|
@@ -97,6 +100,7 @@ class PypiMetadataApi:
|
|
|
97
100
|
_param = self._read_serialize(
|
|
98
101
|
meta=meta,
|
|
99
102
|
path=path,
|
|
103
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
100
104
|
fields=fields,
|
|
101
105
|
exclude_fields=exclude_fields,
|
|
102
106
|
_request_auth=_request_auth,
|
|
@@ -124,6 +128,7 @@ class PypiMetadataApi:
|
|
|
124
128
|
self,
|
|
125
129
|
meta: StrictStr,
|
|
126
130
|
path: StrictStr,
|
|
131
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
127
132
|
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
128
133
|
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
129
134
|
_request_timeout: Union[
|
|
@@ -147,6 +152,8 @@ class PypiMetadataApi:
|
|
|
147
152
|
:type meta: str
|
|
148
153
|
:param path: (required)
|
|
149
154
|
:type path: str
|
|
155
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
156
|
+
:type x_task_diagnostics: List[str]
|
|
150
157
|
:param fields: A list of fields to include in the response.
|
|
151
158
|
:type fields: List[str]
|
|
152
159
|
:param exclude_fields: A list of fields to exclude from the response.
|
|
@@ -176,6 +183,7 @@ class PypiMetadataApi:
|
|
|
176
183
|
_param = self._read_serialize(
|
|
177
184
|
meta=meta,
|
|
178
185
|
path=path,
|
|
186
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
179
187
|
fields=fields,
|
|
180
188
|
exclude_fields=exclude_fields,
|
|
181
189
|
_request_auth=_request_auth,
|
|
@@ -203,6 +211,7 @@ class PypiMetadataApi:
|
|
|
203
211
|
self,
|
|
204
212
|
meta: StrictStr,
|
|
205
213
|
path: StrictStr,
|
|
214
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
206
215
|
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
207
216
|
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
208
217
|
_request_timeout: Union[
|
|
@@ -226,6 +235,8 @@ class PypiMetadataApi:
|
|
|
226
235
|
:type meta: str
|
|
227
236
|
:param path: (required)
|
|
228
237
|
:type path: str
|
|
238
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
239
|
+
:type x_task_diagnostics: List[str]
|
|
229
240
|
:param fields: A list of fields to include in the response.
|
|
230
241
|
:type fields: List[str]
|
|
231
242
|
:param exclude_fields: A list of fields to exclude from the response.
|
|
@@ -255,6 +266,7 @@ class PypiMetadataApi:
|
|
|
255
266
|
_param = self._read_serialize(
|
|
256
267
|
meta=meta,
|
|
257
268
|
path=path,
|
|
269
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
258
270
|
fields=fields,
|
|
259
271
|
exclude_fields=exclude_fields,
|
|
260
272
|
_request_auth=_request_auth,
|
|
@@ -277,6 +289,7 @@ class PypiMetadataApi:
|
|
|
277
289
|
self,
|
|
278
290
|
meta,
|
|
279
291
|
path,
|
|
292
|
+
x_task_diagnostics,
|
|
280
293
|
fields,
|
|
281
294
|
exclude_fields,
|
|
282
295
|
_request_auth,
|
|
@@ -288,6 +301,7 @@ class PypiMetadataApi:
|
|
|
288
301
|
_host = None
|
|
289
302
|
|
|
290
303
|
_collection_formats: Dict[str, str] = {
|
|
304
|
+
'X-Task-Diagnostics': 'csv',
|
|
291
305
|
'fields': 'multi',
|
|
292
306
|
'exclude_fields': 'multi',
|
|
293
307
|
}
|
|
@@ -316,6 +330,8 @@ class PypiMetadataApi:
|
|
|
316
330
|
_query_params.append(('exclude_fields', exclude_fields))
|
|
317
331
|
|
|
318
332
|
# process the header parameters
|
|
333
|
+
if x_task_diagnostics is not None:
|
|
334
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
319
335
|
# process the form parameters
|
|
320
336
|
# process the body parameter
|
|
321
337
|
|
|
@@ -46,6 +46,7 @@ class PypiSimpleApi:
|
|
|
46
46
|
path: StrictStr,
|
|
47
47
|
content: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="A Python package release file to upload to the index.")],
|
|
48
48
|
sha256_digest: Annotated[str, Field(min_length=64, strict=True, max_length=64, description="SHA256 of package to validate upload integrity.")],
|
|
49
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
49
50
|
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
51
|
_request_timeout: Union[
|
|
51
52
|
None,
|
|
@@ -70,6 +71,8 @@ class PypiSimpleApi:
|
|
|
70
71
|
:type content: bytearray
|
|
71
72
|
:param sha256_digest: SHA256 of package to validate upload integrity. (required)
|
|
72
73
|
:type sha256_digest: str
|
|
74
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
75
|
+
:type x_task_diagnostics: List[str]
|
|
73
76
|
:param action: Defaults to `file_upload`, don't change it or request will fail!
|
|
74
77
|
:type action: str
|
|
75
78
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -98,6 +101,7 @@ class PypiSimpleApi:
|
|
|
98
101
|
path=path,
|
|
99
102
|
content=content,
|
|
100
103
|
sha256_digest=sha256_digest,
|
|
104
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
101
105
|
action=action,
|
|
102
106
|
_request_auth=_request_auth,
|
|
103
107
|
_content_type=_content_type,
|
|
@@ -125,6 +129,7 @@ class PypiSimpleApi:
|
|
|
125
129
|
path: StrictStr,
|
|
126
130
|
content: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="A Python package release file to upload to the index.")],
|
|
127
131
|
sha256_digest: Annotated[str, Field(min_length=64, strict=True, max_length=64, description="SHA256 of package to validate upload integrity.")],
|
|
132
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
128
133
|
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
134
|
_request_timeout: Union[
|
|
130
135
|
None,
|
|
@@ -149,6 +154,8 @@ class PypiSimpleApi:
|
|
|
149
154
|
:type content: bytearray
|
|
150
155
|
:param sha256_digest: SHA256 of package to validate upload integrity. (required)
|
|
151
156
|
:type sha256_digest: str
|
|
157
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
158
|
+
:type x_task_diagnostics: List[str]
|
|
152
159
|
:param action: Defaults to `file_upload`, don't change it or request will fail!
|
|
153
160
|
:type action: str
|
|
154
161
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -177,6 +184,7 @@ class PypiSimpleApi:
|
|
|
177
184
|
path=path,
|
|
178
185
|
content=content,
|
|
179
186
|
sha256_digest=sha256_digest,
|
|
187
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
180
188
|
action=action,
|
|
181
189
|
_request_auth=_request_auth,
|
|
182
190
|
_content_type=_content_type,
|
|
@@ -204,6 +212,7 @@ class PypiSimpleApi:
|
|
|
204
212
|
path: StrictStr,
|
|
205
213
|
content: Annotated[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], Field(description="A Python package release file to upload to the index.")],
|
|
206
214
|
sha256_digest: Annotated[str, Field(min_length=64, strict=True, max_length=64, description="SHA256 of package to validate upload integrity.")],
|
|
215
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
207
216
|
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
217
|
_request_timeout: Union[
|
|
209
218
|
None,
|
|
@@ -228,6 +237,8 @@ class PypiSimpleApi:
|
|
|
228
237
|
:type content: bytearray
|
|
229
238
|
:param sha256_digest: SHA256 of package to validate upload integrity. (required)
|
|
230
239
|
:type sha256_digest: str
|
|
240
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
241
|
+
:type x_task_diagnostics: List[str]
|
|
231
242
|
:param action: Defaults to `file_upload`, don't change it or request will fail!
|
|
232
243
|
:type action: str
|
|
233
244
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -256,6 +267,7 @@ class PypiSimpleApi:
|
|
|
256
267
|
path=path,
|
|
257
268
|
content=content,
|
|
258
269
|
sha256_digest=sha256_digest,
|
|
270
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
259
271
|
action=action,
|
|
260
272
|
_request_auth=_request_auth,
|
|
261
273
|
_content_type=_content_type,
|
|
@@ -278,6 +290,7 @@ class PypiSimpleApi:
|
|
|
278
290
|
path,
|
|
279
291
|
content,
|
|
280
292
|
sha256_digest,
|
|
293
|
+
x_task_diagnostics,
|
|
281
294
|
action,
|
|
282
295
|
_request_auth,
|
|
283
296
|
_content_type,
|
|
@@ -288,6 +301,7 @@ class PypiSimpleApi:
|
|
|
288
301
|
_host = None
|
|
289
302
|
|
|
290
303
|
_collection_formats: Dict[str, str] = {
|
|
304
|
+
'X-Task-Diagnostics': 'csv',
|
|
291
305
|
}
|
|
292
306
|
|
|
293
307
|
_path_params: Dict[str, str] = {}
|
|
@@ -304,6 +318,8 @@ class PypiSimpleApi:
|
|
|
304
318
|
_path_params['path'] = path
|
|
305
319
|
# process the query parameters
|
|
306
320
|
# process the header parameters
|
|
321
|
+
if x_task_diagnostics is not None:
|
|
322
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
307
323
|
# process the form parameters
|
|
308
324
|
if content is not None:
|
|
309
325
|
_files['content'] = content
|
|
@@ -366,6 +382,7 @@ class PypiSimpleApi:
|
|
|
366
382
|
self,
|
|
367
383
|
package: StrictStr,
|
|
368
384
|
path: StrictStr,
|
|
385
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
369
386
|
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
370
387
|
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
371
388
|
_request_timeout: Union[
|
|
@@ -389,6 +406,8 @@ class PypiSimpleApi:
|
|
|
389
406
|
:type package: str
|
|
390
407
|
:param path: (required)
|
|
391
408
|
:type path: str
|
|
409
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
410
|
+
:type x_task_diagnostics: List[str]
|
|
392
411
|
:param fields: A list of fields to include in the response.
|
|
393
412
|
:type fields: List[str]
|
|
394
413
|
:param exclude_fields: A list of fields to exclude from the response.
|
|
@@ -418,6 +437,7 @@ class PypiSimpleApi:
|
|
|
418
437
|
_param = self._pypi_simple_package_read_serialize(
|
|
419
438
|
package=package,
|
|
420
439
|
path=path,
|
|
440
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
421
441
|
fields=fields,
|
|
422
442
|
exclude_fields=exclude_fields,
|
|
423
443
|
_request_auth=_request_auth,
|
|
@@ -445,6 +465,7 @@ class PypiSimpleApi:
|
|
|
445
465
|
self,
|
|
446
466
|
package: StrictStr,
|
|
447
467
|
path: StrictStr,
|
|
468
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
448
469
|
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
449
470
|
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
450
471
|
_request_timeout: Union[
|
|
@@ -468,6 +489,8 @@ class PypiSimpleApi:
|
|
|
468
489
|
:type package: str
|
|
469
490
|
:param path: (required)
|
|
470
491
|
:type path: str
|
|
492
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
493
|
+
:type x_task_diagnostics: List[str]
|
|
471
494
|
:param fields: A list of fields to include in the response.
|
|
472
495
|
:type fields: List[str]
|
|
473
496
|
:param exclude_fields: A list of fields to exclude from the response.
|
|
@@ -497,6 +520,7 @@ class PypiSimpleApi:
|
|
|
497
520
|
_param = self._pypi_simple_package_read_serialize(
|
|
498
521
|
package=package,
|
|
499
522
|
path=path,
|
|
523
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
500
524
|
fields=fields,
|
|
501
525
|
exclude_fields=exclude_fields,
|
|
502
526
|
_request_auth=_request_auth,
|
|
@@ -524,6 +548,7 @@ class PypiSimpleApi:
|
|
|
524
548
|
self,
|
|
525
549
|
package: StrictStr,
|
|
526
550
|
path: StrictStr,
|
|
551
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
527
552
|
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
528
553
|
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
529
554
|
_request_timeout: Union[
|
|
@@ -547,6 +572,8 @@ class PypiSimpleApi:
|
|
|
547
572
|
:type package: str
|
|
548
573
|
:param path: (required)
|
|
549
574
|
:type path: str
|
|
575
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
576
|
+
:type x_task_diagnostics: List[str]
|
|
550
577
|
:param fields: A list of fields to include in the response.
|
|
551
578
|
:type fields: List[str]
|
|
552
579
|
:param exclude_fields: A list of fields to exclude from the response.
|
|
@@ -576,6 +603,7 @@ class PypiSimpleApi:
|
|
|
576
603
|
_param = self._pypi_simple_package_read_serialize(
|
|
577
604
|
package=package,
|
|
578
605
|
path=path,
|
|
606
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
579
607
|
fields=fields,
|
|
580
608
|
exclude_fields=exclude_fields,
|
|
581
609
|
_request_auth=_request_auth,
|
|
@@ -598,6 +626,7 @@ class PypiSimpleApi:
|
|
|
598
626
|
self,
|
|
599
627
|
package,
|
|
600
628
|
path,
|
|
629
|
+
x_task_diagnostics,
|
|
601
630
|
fields,
|
|
602
631
|
exclude_fields,
|
|
603
632
|
_request_auth,
|
|
@@ -609,6 +638,7 @@ class PypiSimpleApi:
|
|
|
609
638
|
_host = None
|
|
610
639
|
|
|
611
640
|
_collection_formats: Dict[str, str] = {
|
|
641
|
+
'X-Task-Diagnostics': 'csv',
|
|
612
642
|
'fields': 'multi',
|
|
613
643
|
'exclude_fields': 'multi',
|
|
614
644
|
}
|
|
@@ -637,6 +667,8 @@ class PypiSimpleApi:
|
|
|
637
667
|
_query_params.append(('exclude_fields', exclude_fields))
|
|
638
668
|
|
|
639
669
|
# process the header parameters
|
|
670
|
+
if x_task_diagnostics is not None:
|
|
671
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
640
672
|
# process the form parameters
|
|
641
673
|
# process the body parameter
|
|
642
674
|
|
|
@@ -671,6 +703,7 @@ class PypiSimpleApi:
|
|
|
671
703
|
def read(
|
|
672
704
|
self,
|
|
673
705
|
path: StrictStr,
|
|
706
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
674
707
|
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
675
708
|
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
676
709
|
_request_timeout: Union[
|
|
@@ -692,6 +725,8 @@ class PypiSimpleApi:
|
|
|
692
725
|
|
|
693
726
|
:param path: (required)
|
|
694
727
|
:type path: str
|
|
728
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
729
|
+
:type x_task_diagnostics: List[str]
|
|
695
730
|
:param fields: A list of fields to include in the response.
|
|
696
731
|
:type fields: List[str]
|
|
697
732
|
:param exclude_fields: A list of fields to exclude from the response.
|
|
@@ -720,6 +755,7 @@ class PypiSimpleApi:
|
|
|
720
755
|
|
|
721
756
|
_param = self._read_serialize(
|
|
722
757
|
path=path,
|
|
758
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
723
759
|
fields=fields,
|
|
724
760
|
exclude_fields=exclude_fields,
|
|
725
761
|
_request_auth=_request_auth,
|
|
@@ -746,6 +782,7 @@ class PypiSimpleApi:
|
|
|
746
782
|
def read_with_http_info(
|
|
747
783
|
self,
|
|
748
784
|
path: StrictStr,
|
|
785
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
749
786
|
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
750
787
|
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
751
788
|
_request_timeout: Union[
|
|
@@ -767,6 +804,8 @@ class PypiSimpleApi:
|
|
|
767
804
|
|
|
768
805
|
:param path: (required)
|
|
769
806
|
:type path: str
|
|
807
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
808
|
+
:type x_task_diagnostics: List[str]
|
|
770
809
|
:param fields: A list of fields to include in the response.
|
|
771
810
|
:type fields: List[str]
|
|
772
811
|
:param exclude_fields: A list of fields to exclude from the response.
|
|
@@ -795,6 +834,7 @@ class PypiSimpleApi:
|
|
|
795
834
|
|
|
796
835
|
_param = self._read_serialize(
|
|
797
836
|
path=path,
|
|
837
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
798
838
|
fields=fields,
|
|
799
839
|
exclude_fields=exclude_fields,
|
|
800
840
|
_request_auth=_request_auth,
|
|
@@ -821,6 +861,7 @@ class PypiSimpleApi:
|
|
|
821
861
|
def read_without_preload_content(
|
|
822
862
|
self,
|
|
823
863
|
path: StrictStr,
|
|
864
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
824
865
|
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
825
866
|
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
826
867
|
_request_timeout: Union[
|
|
@@ -842,6 +883,8 @@ class PypiSimpleApi:
|
|
|
842
883
|
|
|
843
884
|
:param path: (required)
|
|
844
885
|
:type path: str
|
|
886
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
887
|
+
:type x_task_diagnostics: List[str]
|
|
845
888
|
:param fields: A list of fields to include in the response.
|
|
846
889
|
:type fields: List[str]
|
|
847
890
|
:param exclude_fields: A list of fields to exclude from the response.
|
|
@@ -870,6 +913,7 @@ class PypiSimpleApi:
|
|
|
870
913
|
|
|
871
914
|
_param = self._read_serialize(
|
|
872
915
|
path=path,
|
|
916
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
873
917
|
fields=fields,
|
|
874
918
|
exclude_fields=exclude_fields,
|
|
875
919
|
_request_auth=_request_auth,
|
|
@@ -891,6 +935,7 @@ class PypiSimpleApi:
|
|
|
891
935
|
def _read_serialize(
|
|
892
936
|
self,
|
|
893
937
|
path,
|
|
938
|
+
x_task_diagnostics,
|
|
894
939
|
fields,
|
|
895
940
|
exclude_fields,
|
|
896
941
|
_request_auth,
|
|
@@ -902,6 +947,7 @@ class PypiSimpleApi:
|
|
|
902
947
|
_host = None
|
|
903
948
|
|
|
904
949
|
_collection_formats: Dict[str, str] = {
|
|
950
|
+
'X-Task-Diagnostics': 'csv',
|
|
905
951
|
'fields': 'multi',
|
|
906
952
|
'exclude_fields': 'multi',
|
|
907
953
|
}
|
|
@@ -928,6 +974,8 @@ class PypiSimpleApi:
|
|
|
928
974
|
_query_params.append(('exclude_fields', exclude_fields))
|
|
929
975
|
|
|
930
976
|
# process the header parameters
|
|
977
|
+
if x_task_diagnostics is not None:
|
|
978
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
931
979
|
# process the form parameters
|
|
932
980
|
# process the body parameter
|
|
933
981
|
|