pulp-python-client 3.12.5__py3-none-any.whl → 3.13.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.13.1.dist-info/METADATA +17 -0
- pulp_python_client-3.13.1.dist-info/RECORD +64 -0
- {pulp_python_client-3.12.5.dist-info → pulp_python_client-3.13.1.dist-info}/WHEEL +1 -1
- pulpcore/client/pulp_python/__init__.py +9 -10
- pulpcore/client/pulp_python/api/__init__.py +1 -2
- pulpcore/client/pulp_python/api/content_packages_api.py +1800 -655
- pulpcore/client/pulp_python/api/distributions_pypi_api.py +3755 -1474
- pulpcore/client/pulp_python/api/publications_pypi_api.py +2574 -982
- pulpcore/client/pulp_python/api/pypi_api.py +302 -128
- pulpcore/client/pulp_python/api/pypi_legacy_api.py +326 -153
- pulpcore/client/pulp_python/api/pypi_metadata_api.py +319 -139
- pulpcore/client/pulp_python/api/pypi_simple_api.py +899 -382
- pulpcore/client/pulp_python/api/remotes_python_api.py +4092 -1589
- pulpcore/client/pulp_python/api/repositories_python_api.py +4380 -1719
- pulpcore/client/pulp_python/api/repositories_python_versions_api.py +1526 -561
- pulpcore/client/pulp_python/api_client.py +444 -313
- pulpcore/client/pulp_python/api_response.py +21 -0
- pulpcore/client/pulp_python/configuration.py +266 -73
- pulpcore/client/pulp_python/exceptions.py +99 -20
- pulpcore/client/pulp_python/models/__init__.py +5 -8
- pulpcore/client/pulp_python/models/async_operation_response.py +60 -96
- pulpcore/client/pulp_python/models/content_summary_response.py +70 -154
- pulpcore/client/pulp_python/models/exclude_platforms_enum.py +19 -82
- pulpcore/client/pulp_python/models/my_permissions_response.py +60 -94
- pulpcore/client/pulp_python/models/nested_role.py +71 -155
- pulpcore/client/pulp_python/models/nested_role_response.py +70 -152
- pulpcore/client/pulp_python/models/object_roles_response.py +70 -96
- pulpcore/client/pulp_python/models/package_metadata_response.py +91 -191
- pulpcore/client/pulp_python/models/package_types_enum.py +23 -86
- pulpcore/client/pulp_python/models/package_upload_task_response.py +85 -154
- pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +94 -181
- pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +108 -330
- pulpcore/client/pulp_python/models/patchedpython_python_remote.py +204 -864
- pulpcore/client/pulp_python/models/patchedpython_python_repository.py +96 -249
- pulpcore/client/pulp_python/models/policy_enum.py +18 -81
- pulpcore/client/pulp_python/models/python_python_distribution.py +108 -332
- pulpcore/client/pulp_python/models/python_python_distribution_response.py +132 -490
- pulpcore/client/pulp_python/models/python_python_package_content_response.py +182 -972
- pulpcore/client/pulp_python/models/python_python_publication.py +68 -127
- pulpcore/client/pulp_python/models/python_python_publication_response.py +93 -269
- pulpcore/client/pulp_python/models/python_python_remote.py +204 -866
- pulpcore/client/pulp_python/models/python_python_remote_response.py +198 -839
- pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields_inner.py +90 -0
- pulpcore/client/pulp_python/models/python_python_repository.py +96 -250
- pulpcore/client/pulp_python/models/python_python_repository_response.py +122 -407
- pulpcore/client/pulp_python/models/repair.py +60 -95
- pulpcore/client/pulp_python/models/repository_add_remove_content.py +71 -157
- pulpcore/client/pulp_python/models/repository_sync_url.py +68 -129
- pulpcore/client/pulp_python/models/repository_version_response.py +104 -296
- pulpcore/client/pulp_python/models/set_label.py +80 -130
- pulpcore/client/pulp_python/models/set_label_response.py +80 -127
- pulpcore/client/pulp_python/models/summary_response.py +70 -160
- pulpcore/client/pulp_python/models/unset_label.py +75 -107
- pulpcore/client/pulp_python/models/unset_label_response.py +78 -129
- pulpcore/client/pulp_python/py.typed +0 -0
- pulpcore/client/pulp_python/rest.py +136 -170
- pulp_python_client-3.12.5.dist-info/METADATA +0 -17
- pulp_python_client-3.12.5.dist-info/RECORD +0 -65
- pulpcore/client/pulp_python/models/package_upload.py +0 -190
- pulpcore/client/pulp_python/models/python_bander_remote.py +0 -184
- pulpcore/client/pulp_python/models/python_python_package_content.py +0 -889
- pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py +0 -149
- {pulp_python_client-3.12.5.dist-info → pulp_python_client-3.13.1.dist-info}/top_level.txt +0 -0
|
@@ -3,877 +3,217 @@
|
|
|
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
|
-
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
12
14
|
|
|
13
15
|
|
|
16
|
+
from __future__ import annotations
|
|
14
17
|
import pprint
|
|
15
18
|
import re # noqa: F401
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
from
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"""
|
|
30
|
-
Attributes:
|
|
31
|
-
openapi_types (dict): The key is attribute name
|
|
32
|
-
and the value is attribute type.
|
|
33
|
-
attribute_map (dict): The key is attribute name
|
|
34
|
-
and the value is json key in definition.
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
23
|
+
from typing_extensions import Annotated
|
|
24
|
+
from pulpcore.client.pulp_python.models.exclude_platforms_enum import ExcludePlatformsEnum
|
|
25
|
+
from pulpcore.client.pulp_python.models.package_types_enum import PackageTypesEnum
|
|
26
|
+
from pulpcore.client.pulp_python.models.policy_enum import PolicyEnum
|
|
27
|
+
from typing import Optional, Set
|
|
28
|
+
from typing_extensions import Self
|
|
29
|
+
|
|
30
|
+
class PatchedpythonPythonRemote(BaseModel):
|
|
35
31
|
"""
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"""
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
self.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
self.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
self.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
self.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
self.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if
|
|
132
|
-
|
|
133
|
-
if
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
if
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
self.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
self.
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
self.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
if
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
if
|
|
167
|
-
|
|
168
|
-
if
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
:
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
@property
|
|
224
|
-
def ca_cert(self):
|
|
225
|
-
"""Gets the ca_cert of this PatchedpythonPythonRemote. # noqa: E501
|
|
226
|
-
|
|
227
|
-
A PEM encoded CA certificate used to validate the server certificate presented by the remote server. # noqa: E501
|
|
228
|
-
|
|
229
|
-
:return: The ca_cert of this PatchedpythonPythonRemote. # noqa: E501
|
|
230
|
-
:rtype: str
|
|
231
|
-
"""
|
|
232
|
-
return self._ca_cert
|
|
233
|
-
|
|
234
|
-
@ca_cert.setter
|
|
235
|
-
def ca_cert(self, ca_cert):
|
|
236
|
-
"""Sets the ca_cert of this PatchedpythonPythonRemote.
|
|
237
|
-
|
|
238
|
-
A PEM encoded CA certificate used to validate the server certificate presented by the remote server. # noqa: E501
|
|
239
|
-
|
|
240
|
-
:param ca_cert: The ca_cert of this PatchedpythonPythonRemote. # noqa: E501
|
|
241
|
-
:type: str
|
|
242
|
-
"""
|
|
243
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
244
|
-
ca_cert is not None and len(ca_cert) < 1):
|
|
245
|
-
raise ValueError("Invalid value for `ca_cert`, length must be greater than or equal to `1`") # noqa: E501
|
|
246
|
-
|
|
247
|
-
self._ca_cert = ca_cert
|
|
248
|
-
|
|
249
|
-
@property
|
|
250
|
-
def client_cert(self):
|
|
251
|
-
"""Gets the client_cert of this PatchedpythonPythonRemote. # noqa: E501
|
|
252
|
-
|
|
253
|
-
A PEM encoded client certificate used for authentication. # noqa: E501
|
|
254
|
-
|
|
255
|
-
:return: The client_cert of this PatchedpythonPythonRemote. # noqa: E501
|
|
256
|
-
:rtype: str
|
|
257
|
-
"""
|
|
258
|
-
return self._client_cert
|
|
259
|
-
|
|
260
|
-
@client_cert.setter
|
|
261
|
-
def client_cert(self, client_cert):
|
|
262
|
-
"""Sets the client_cert of this PatchedpythonPythonRemote.
|
|
263
|
-
|
|
264
|
-
A PEM encoded client certificate used for authentication. # noqa: E501
|
|
265
|
-
|
|
266
|
-
:param client_cert: The client_cert of this PatchedpythonPythonRemote. # noqa: E501
|
|
267
|
-
:type: str
|
|
268
|
-
"""
|
|
269
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
270
|
-
client_cert is not None and len(client_cert) < 1):
|
|
271
|
-
raise ValueError("Invalid value for `client_cert`, length must be greater than or equal to `1`") # noqa: E501
|
|
272
|
-
|
|
273
|
-
self._client_cert = client_cert
|
|
274
|
-
|
|
275
|
-
@property
|
|
276
|
-
def client_key(self):
|
|
277
|
-
"""Gets the client_key of this PatchedpythonPythonRemote. # noqa: E501
|
|
278
|
-
|
|
279
|
-
A PEM encoded private key used for authentication. # noqa: E501
|
|
280
|
-
|
|
281
|
-
:return: The client_key of this PatchedpythonPythonRemote. # noqa: E501
|
|
282
|
-
:rtype: str
|
|
283
|
-
"""
|
|
284
|
-
return self._client_key
|
|
285
|
-
|
|
286
|
-
@client_key.setter
|
|
287
|
-
def client_key(self, client_key):
|
|
288
|
-
"""Sets the client_key of this PatchedpythonPythonRemote.
|
|
289
|
-
|
|
290
|
-
A PEM encoded private key used for authentication. # noqa: E501
|
|
291
|
-
|
|
292
|
-
:param client_key: The client_key of this PatchedpythonPythonRemote. # noqa: E501
|
|
293
|
-
:type: str
|
|
294
|
-
"""
|
|
295
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
296
|
-
client_key is not None and len(client_key) < 1):
|
|
297
|
-
raise ValueError("Invalid value for `client_key`, length must be greater than or equal to `1`") # noqa: E501
|
|
298
|
-
|
|
299
|
-
self._client_key = client_key
|
|
300
|
-
|
|
301
|
-
@property
|
|
302
|
-
def tls_validation(self):
|
|
303
|
-
"""Gets the tls_validation of this PatchedpythonPythonRemote. # noqa: E501
|
|
304
|
-
|
|
305
|
-
If True, TLS peer validation must be performed. # noqa: E501
|
|
306
|
-
|
|
307
|
-
:return: The tls_validation of this PatchedpythonPythonRemote. # noqa: E501
|
|
308
|
-
:rtype: bool
|
|
309
|
-
"""
|
|
310
|
-
return self._tls_validation
|
|
311
|
-
|
|
312
|
-
@tls_validation.setter
|
|
313
|
-
def tls_validation(self, tls_validation):
|
|
314
|
-
"""Sets the tls_validation of this PatchedpythonPythonRemote.
|
|
315
|
-
|
|
316
|
-
If True, TLS peer validation must be performed. # noqa: E501
|
|
317
|
-
|
|
318
|
-
:param tls_validation: The tls_validation of this PatchedpythonPythonRemote. # noqa: E501
|
|
319
|
-
:type: bool
|
|
320
|
-
"""
|
|
321
|
-
|
|
322
|
-
self._tls_validation = tls_validation
|
|
323
|
-
|
|
324
|
-
@property
|
|
325
|
-
def proxy_url(self):
|
|
326
|
-
"""Gets the proxy_url of this PatchedpythonPythonRemote. # noqa: E501
|
|
327
|
-
|
|
328
|
-
The proxy URL. Format: scheme://host:port # noqa: E501
|
|
329
|
-
|
|
330
|
-
:return: The proxy_url of this PatchedpythonPythonRemote. # noqa: E501
|
|
331
|
-
:rtype: str
|
|
332
|
-
"""
|
|
333
|
-
return self._proxy_url
|
|
334
|
-
|
|
335
|
-
@proxy_url.setter
|
|
336
|
-
def proxy_url(self, proxy_url):
|
|
337
|
-
"""Sets the proxy_url of this PatchedpythonPythonRemote.
|
|
338
|
-
|
|
339
|
-
The proxy URL. Format: scheme://host:port # noqa: E501
|
|
340
|
-
|
|
341
|
-
:param proxy_url: The proxy_url of this PatchedpythonPythonRemote. # noqa: E501
|
|
342
|
-
:type: str
|
|
343
|
-
"""
|
|
344
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
345
|
-
proxy_url is not None and len(proxy_url) < 1):
|
|
346
|
-
raise ValueError("Invalid value for `proxy_url`, length must be greater than or equal to `1`") # noqa: E501
|
|
347
|
-
|
|
348
|
-
self._proxy_url = proxy_url
|
|
349
|
-
|
|
350
|
-
@property
|
|
351
|
-
def proxy_username(self):
|
|
352
|
-
"""Gets the proxy_username of this PatchedpythonPythonRemote. # noqa: E501
|
|
353
|
-
|
|
354
|
-
The username to authenticte to the proxy. # noqa: E501
|
|
355
|
-
|
|
356
|
-
:return: The proxy_username of this PatchedpythonPythonRemote. # noqa: E501
|
|
357
|
-
:rtype: str
|
|
358
|
-
"""
|
|
359
|
-
return self._proxy_username
|
|
360
|
-
|
|
361
|
-
@proxy_username.setter
|
|
362
|
-
def proxy_username(self, proxy_username):
|
|
363
|
-
"""Sets the proxy_username of this PatchedpythonPythonRemote.
|
|
364
|
-
|
|
365
|
-
The username to authenticte to the proxy. # noqa: E501
|
|
366
|
-
|
|
367
|
-
:param proxy_username: The proxy_username of this PatchedpythonPythonRemote. # noqa: E501
|
|
368
|
-
:type: str
|
|
369
|
-
"""
|
|
370
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
371
|
-
proxy_username is not None and len(proxy_username) < 1):
|
|
372
|
-
raise ValueError("Invalid value for `proxy_username`, length must be greater than or equal to `1`") # noqa: E501
|
|
373
|
-
|
|
374
|
-
self._proxy_username = proxy_username
|
|
375
|
-
|
|
376
|
-
@property
|
|
377
|
-
def proxy_password(self):
|
|
378
|
-
"""Gets the proxy_password of this PatchedpythonPythonRemote. # noqa: E501
|
|
379
|
-
|
|
380
|
-
The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. # noqa: E501
|
|
381
|
-
|
|
382
|
-
:return: The proxy_password of this PatchedpythonPythonRemote. # noqa: E501
|
|
383
|
-
:rtype: str
|
|
384
|
-
"""
|
|
385
|
-
return self._proxy_password
|
|
386
|
-
|
|
387
|
-
@proxy_password.setter
|
|
388
|
-
def proxy_password(self, proxy_password):
|
|
389
|
-
"""Sets the proxy_password of this PatchedpythonPythonRemote.
|
|
390
|
-
|
|
391
|
-
The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. # noqa: E501
|
|
392
|
-
|
|
393
|
-
:param proxy_password: The proxy_password of this PatchedpythonPythonRemote. # noqa: E501
|
|
394
|
-
:type: str
|
|
395
|
-
"""
|
|
396
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
397
|
-
proxy_password is not None and len(proxy_password) < 1):
|
|
398
|
-
raise ValueError("Invalid value for `proxy_password`, length must be greater than or equal to `1`") # noqa: E501
|
|
399
|
-
|
|
400
|
-
self._proxy_password = proxy_password
|
|
401
|
-
|
|
402
|
-
@property
|
|
403
|
-
def username(self):
|
|
404
|
-
"""Gets the username of this PatchedpythonPythonRemote. # noqa: E501
|
|
405
|
-
|
|
406
|
-
The username to be used for authentication when syncing. # noqa: E501
|
|
407
|
-
|
|
408
|
-
:return: The username of this PatchedpythonPythonRemote. # noqa: E501
|
|
409
|
-
:rtype: str
|
|
410
|
-
"""
|
|
411
|
-
return self._username
|
|
412
|
-
|
|
413
|
-
@username.setter
|
|
414
|
-
def username(self, username):
|
|
415
|
-
"""Sets the username of this PatchedpythonPythonRemote.
|
|
416
|
-
|
|
417
|
-
The username to be used for authentication when syncing. # noqa: E501
|
|
418
|
-
|
|
419
|
-
:param username: The username of this PatchedpythonPythonRemote. # noqa: E501
|
|
420
|
-
:type: str
|
|
421
|
-
"""
|
|
422
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
423
|
-
username is not None and len(username) < 1):
|
|
424
|
-
raise ValueError("Invalid value for `username`, length must be greater than or equal to `1`") # noqa: E501
|
|
425
|
-
|
|
426
|
-
self._username = username
|
|
427
|
-
|
|
428
|
-
@property
|
|
429
|
-
def password(self):
|
|
430
|
-
"""Gets the password of this PatchedpythonPythonRemote. # noqa: E501
|
|
431
|
-
|
|
432
|
-
The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. # noqa: E501
|
|
433
|
-
|
|
434
|
-
:return: The password of this PatchedpythonPythonRemote. # noqa: E501
|
|
435
|
-
:rtype: str
|
|
436
|
-
"""
|
|
437
|
-
return self._password
|
|
438
|
-
|
|
439
|
-
@password.setter
|
|
440
|
-
def password(self, password):
|
|
441
|
-
"""Sets the password of this PatchedpythonPythonRemote.
|
|
442
|
-
|
|
443
|
-
The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. # noqa: E501
|
|
444
|
-
|
|
445
|
-
:param password: The password of this PatchedpythonPythonRemote. # noqa: E501
|
|
446
|
-
:type: str
|
|
447
|
-
"""
|
|
448
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
449
|
-
password is not None and len(password) < 1):
|
|
450
|
-
raise ValueError("Invalid value for `password`, length must be greater than or equal to `1`") # noqa: E501
|
|
451
|
-
|
|
452
|
-
self._password = password
|
|
453
|
-
|
|
454
|
-
@property
|
|
455
|
-
def pulp_labels(self):
|
|
456
|
-
"""Gets the pulp_labels of this PatchedpythonPythonRemote. # noqa: E501
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
:return: The pulp_labels of this PatchedpythonPythonRemote. # noqa: E501
|
|
460
|
-
:rtype: dict(str, str)
|
|
461
|
-
"""
|
|
462
|
-
return self._pulp_labels
|
|
463
|
-
|
|
464
|
-
@pulp_labels.setter
|
|
465
|
-
def pulp_labels(self, pulp_labels):
|
|
466
|
-
"""Sets the pulp_labels of this PatchedpythonPythonRemote.
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
:param pulp_labels: The pulp_labels of this PatchedpythonPythonRemote. # noqa: E501
|
|
470
|
-
:type: dict(str, str)
|
|
471
|
-
"""
|
|
472
|
-
|
|
473
|
-
self._pulp_labels = pulp_labels
|
|
474
|
-
|
|
475
|
-
@property
|
|
476
|
-
def download_concurrency(self):
|
|
477
|
-
"""Gets the download_concurrency of this PatchedpythonPythonRemote. # noqa: E501
|
|
478
|
-
|
|
479
|
-
Total number of simultaneous connections. If not set then the default value will be used. # noqa: E501
|
|
480
|
-
|
|
481
|
-
:return: The download_concurrency of this PatchedpythonPythonRemote. # noqa: E501
|
|
482
|
-
:rtype: int
|
|
483
|
-
"""
|
|
484
|
-
return self._download_concurrency
|
|
485
|
-
|
|
486
|
-
@download_concurrency.setter
|
|
487
|
-
def download_concurrency(self, download_concurrency):
|
|
488
|
-
"""Sets the download_concurrency of this PatchedpythonPythonRemote.
|
|
489
|
-
|
|
490
|
-
Total number of simultaneous connections. If not set then the default value will be used. # noqa: E501
|
|
491
|
-
|
|
492
|
-
:param download_concurrency: The download_concurrency of this PatchedpythonPythonRemote. # noqa: E501
|
|
493
|
-
:type: int
|
|
494
|
-
"""
|
|
495
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
496
|
-
download_concurrency is not None and download_concurrency < 1): # noqa: E501
|
|
497
|
-
raise ValueError("Invalid value for `download_concurrency`, must be a value greater than or equal to `1`") # noqa: E501
|
|
32
|
+
A Serializer for PythonRemote.
|
|
33
|
+
""" # noqa: E501
|
|
34
|
+
name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A unique name for this remote.")
|
|
35
|
+
url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The URL of an external content source.")
|
|
36
|
+
ca_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
|
|
37
|
+
client_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
|
|
38
|
+
client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
|
|
39
|
+
tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
|
|
40
|
+
proxy_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
|
|
41
|
+
proxy_username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to authenticte to the proxy.")
|
|
42
|
+
proxy_password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.")
|
|
43
|
+
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
|
|
44
|
+
password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.")
|
|
45
|
+
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
46
|
+
download_concurrency: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
47
|
+
max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
|
|
48
|
+
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.")
|
|
49
|
+
total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
50
|
+
connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
51
|
+
sock_connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
52
|
+
sock_read_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
53
|
+
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
54
|
+
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
55
|
+
includes: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="A list containing project specifiers for Python packages to include.")
|
|
56
|
+
excludes: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="A list containing project specifiers for Python packages to exclude.")
|
|
57
|
+
prereleases: Optional[StrictBool] = Field(default=None, description="Whether or not to include pre-release packages in the sync.")
|
|
58
|
+
package_types: Optional[List[PackageTypesEnum]] = Field(default=None, description="The package types to sync for Python content. Leave blank to get everypackage type.")
|
|
59
|
+
keep_latest_packages: Optional[StrictInt] = Field(default=0, description="The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions.")
|
|
60
|
+
exclude_platforms: Optional[List[ExcludePlatformsEnum]] = Field(default=None, description="List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux.")
|
|
61
|
+
__properties: ClassVar[List[str]] = ["name", "url", "ca_cert", "client_cert", "client_key", "tls_validation", "proxy_url", "proxy_username", "proxy_password", "username", "password", "pulp_labels", "download_concurrency", "max_retries", "policy", "total_timeout", "connect_timeout", "sock_connect_timeout", "sock_read_timeout", "headers", "rate_limit", "includes", "excludes", "prereleases", "package_types", "keep_latest_packages", "exclude_platforms"]
|
|
62
|
+
|
|
63
|
+
model_config = ConfigDict(
|
|
64
|
+
populate_by_name=True,
|
|
65
|
+
validate_assignment=True,
|
|
66
|
+
protected_namespaces=(),
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def to_str(self) -> str:
|
|
71
|
+
"""Returns the string representation of the model using alias"""
|
|
72
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
73
|
+
|
|
74
|
+
def to_json(self) -> str:
|
|
75
|
+
"""Returns the JSON representation of the model using alias"""
|
|
76
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
77
|
+
return json.dumps(self.to_dict())
|
|
78
|
+
|
|
79
|
+
@classmethod
|
|
80
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
81
|
+
"""Create an instance of PatchedpythonPythonRemote from a JSON string"""
|
|
82
|
+
return cls.from_dict(json.loads(json_str))
|
|
83
|
+
|
|
84
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
85
|
+
"""Return the dictionary representation of the model using alias.
|
|
86
|
+
|
|
87
|
+
This has the following differences from calling pydantic's
|
|
88
|
+
`self.model_dump(by_alias=True)`:
|
|
89
|
+
|
|
90
|
+
* `None` is only added to the output dict for nullable fields that
|
|
91
|
+
were set at model initialization. Other fields with value `None`
|
|
92
|
+
are ignored.
|
|
93
|
+
"""
|
|
94
|
+
excluded_fields: Set[str] = set([
|
|
95
|
+
])
|
|
96
|
+
|
|
97
|
+
_dict = self.model_dump(
|
|
98
|
+
by_alias=True,
|
|
99
|
+
exclude=excluded_fields,
|
|
100
|
+
exclude_none=True,
|
|
101
|
+
)
|
|
102
|
+
# set to None if ca_cert (nullable) is None
|
|
103
|
+
# and model_fields_set contains the field
|
|
104
|
+
if self.ca_cert is None and "ca_cert" in self.model_fields_set:
|
|
105
|
+
_dict['ca_cert'] = None
|
|
106
|
+
|
|
107
|
+
# set to None if client_cert (nullable) is None
|
|
108
|
+
# and model_fields_set contains the field
|
|
109
|
+
if self.client_cert is None and "client_cert" in self.model_fields_set:
|
|
110
|
+
_dict['client_cert'] = None
|
|
111
|
+
|
|
112
|
+
# set to None if client_key (nullable) is None
|
|
113
|
+
# and model_fields_set contains the field
|
|
114
|
+
if self.client_key is None and "client_key" in self.model_fields_set:
|
|
115
|
+
_dict['client_key'] = None
|
|
116
|
+
|
|
117
|
+
# set to None if proxy_url (nullable) is None
|
|
118
|
+
# and model_fields_set contains the field
|
|
119
|
+
if self.proxy_url is None and "proxy_url" in self.model_fields_set:
|
|
120
|
+
_dict['proxy_url'] = None
|
|
121
|
+
|
|
122
|
+
# set to None if proxy_username (nullable) is None
|
|
123
|
+
# and model_fields_set contains the field
|
|
124
|
+
if self.proxy_username is None and "proxy_username" in self.model_fields_set:
|
|
125
|
+
_dict['proxy_username'] = None
|
|
126
|
+
|
|
127
|
+
# set to None if proxy_password (nullable) is None
|
|
128
|
+
# and model_fields_set contains the field
|
|
129
|
+
if self.proxy_password is None and "proxy_password" in self.model_fields_set:
|
|
130
|
+
_dict['proxy_password'] = None
|
|
131
|
+
|
|
132
|
+
# set to None if username (nullable) is None
|
|
133
|
+
# and model_fields_set contains the field
|
|
134
|
+
if self.username is None and "username" in self.model_fields_set:
|
|
135
|
+
_dict['username'] = None
|
|
136
|
+
|
|
137
|
+
# set to None if password (nullable) is None
|
|
138
|
+
# and model_fields_set contains the field
|
|
139
|
+
if self.password is None and "password" in self.model_fields_set:
|
|
140
|
+
_dict['password'] = None
|
|
141
|
+
|
|
142
|
+
# set to None if download_concurrency (nullable) is None
|
|
143
|
+
# and model_fields_set contains the field
|
|
144
|
+
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
145
|
+
_dict['download_concurrency'] = None
|
|
146
|
+
|
|
147
|
+
# set to None if max_retries (nullable) is None
|
|
148
|
+
# and model_fields_set contains the field
|
|
149
|
+
if self.max_retries is None and "max_retries" in self.model_fields_set:
|
|
150
|
+
_dict['max_retries'] = None
|
|
151
|
+
|
|
152
|
+
# set to None if total_timeout (nullable) is None
|
|
153
|
+
# and model_fields_set contains the field
|
|
154
|
+
if self.total_timeout is None and "total_timeout" in self.model_fields_set:
|
|
155
|
+
_dict['total_timeout'] = None
|
|
156
|
+
|
|
157
|
+
# set to None if connect_timeout (nullable) is None
|
|
158
|
+
# and model_fields_set contains the field
|
|
159
|
+
if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
|
|
160
|
+
_dict['connect_timeout'] = None
|
|
161
|
+
|
|
162
|
+
# set to None if sock_connect_timeout (nullable) is None
|
|
163
|
+
# and model_fields_set contains the field
|
|
164
|
+
if self.sock_connect_timeout is None and "sock_connect_timeout" in self.model_fields_set:
|
|
165
|
+
_dict['sock_connect_timeout'] = None
|
|
166
|
+
|
|
167
|
+
# set to None if sock_read_timeout (nullable) is None
|
|
168
|
+
# and model_fields_set contains the field
|
|
169
|
+
if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
|
|
170
|
+
_dict['sock_read_timeout'] = None
|
|
171
|
+
|
|
172
|
+
# set to None if rate_limit (nullable) is None
|
|
173
|
+
# and model_fields_set contains the field
|
|
174
|
+
if self.rate_limit is None and "rate_limit" in self.model_fields_set:
|
|
175
|
+
_dict['rate_limit'] = None
|
|
176
|
+
|
|
177
|
+
return _dict
|
|
178
|
+
|
|
179
|
+
@classmethod
|
|
180
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
181
|
+
"""Create an instance of PatchedpythonPythonRemote from a dict"""
|
|
182
|
+
if obj is None:
|
|
183
|
+
return None
|
|
184
|
+
|
|
185
|
+
if not isinstance(obj, dict):
|
|
186
|
+
return cls.model_validate(obj)
|
|
187
|
+
|
|
188
|
+
_obj = cls.model_validate({
|
|
189
|
+
"name": obj.get("name"),
|
|
190
|
+
"url": obj.get("url"),
|
|
191
|
+
"ca_cert": obj.get("ca_cert"),
|
|
192
|
+
"client_cert": obj.get("client_cert"),
|
|
193
|
+
"client_key": obj.get("client_key"),
|
|
194
|
+
"tls_validation": obj.get("tls_validation"),
|
|
195
|
+
"proxy_url": obj.get("proxy_url"),
|
|
196
|
+
"proxy_username": obj.get("proxy_username"),
|
|
197
|
+
"proxy_password": obj.get("proxy_password"),
|
|
198
|
+
"username": obj.get("username"),
|
|
199
|
+
"password": obj.get("password"),
|
|
200
|
+
"pulp_labels": obj.get("pulp_labels"),
|
|
201
|
+
"download_concurrency": obj.get("download_concurrency"),
|
|
202
|
+
"max_retries": obj.get("max_retries"),
|
|
203
|
+
"policy": obj.get("policy"),
|
|
204
|
+
"total_timeout": obj.get("total_timeout"),
|
|
205
|
+
"connect_timeout": obj.get("connect_timeout"),
|
|
206
|
+
"sock_connect_timeout": obj.get("sock_connect_timeout"),
|
|
207
|
+
"sock_read_timeout": obj.get("sock_read_timeout"),
|
|
208
|
+
"headers": obj.get("headers"),
|
|
209
|
+
"rate_limit": obj.get("rate_limit"),
|
|
210
|
+
"includes": obj.get("includes"),
|
|
211
|
+
"excludes": obj.get("excludes"),
|
|
212
|
+
"prereleases": obj.get("prereleases"),
|
|
213
|
+
"package_types": obj.get("package_types"),
|
|
214
|
+
"keep_latest_packages": obj.get("keep_latest_packages") if obj.get("keep_latest_packages") is not None else 0,
|
|
215
|
+
"exclude_platforms": obj.get("exclude_platforms")
|
|
216
|
+
})
|
|
217
|
+
return _obj
|
|
498
218
|
|
|
499
|
-
self._download_concurrency = download_concurrency
|
|
500
|
-
|
|
501
|
-
@property
|
|
502
|
-
def max_retries(self):
|
|
503
|
-
"""Gets the max_retries of this PatchedpythonPythonRemote. # noqa: E501
|
|
504
|
-
|
|
505
|
-
Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. # noqa: E501
|
|
506
|
-
|
|
507
|
-
:return: The max_retries of this PatchedpythonPythonRemote. # noqa: E501
|
|
508
|
-
:rtype: int
|
|
509
|
-
"""
|
|
510
|
-
return self._max_retries
|
|
511
|
-
|
|
512
|
-
@max_retries.setter
|
|
513
|
-
def max_retries(self, max_retries):
|
|
514
|
-
"""Sets the max_retries of this PatchedpythonPythonRemote.
|
|
515
|
-
|
|
516
|
-
Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. # noqa: E501
|
|
517
|
-
|
|
518
|
-
:param max_retries: The max_retries of this PatchedpythonPythonRemote. # noqa: E501
|
|
519
|
-
:type: int
|
|
520
|
-
"""
|
|
521
|
-
|
|
522
|
-
self._max_retries = max_retries
|
|
523
|
-
|
|
524
|
-
@property
|
|
525
|
-
def policy(self):
|
|
526
|
-
"""Gets the policy of this PatchedpythonPythonRemote. # noqa: E501
|
|
527
|
-
|
|
528
|
-
The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. # noqa: E501
|
|
529
|
-
|
|
530
|
-
:return: The policy of this PatchedpythonPythonRemote. # noqa: E501
|
|
531
|
-
:rtype: PolicyEnum
|
|
532
|
-
"""
|
|
533
|
-
return self._policy
|
|
534
|
-
|
|
535
|
-
@policy.setter
|
|
536
|
-
def policy(self, policy):
|
|
537
|
-
"""Sets the policy of this PatchedpythonPythonRemote.
|
|
538
|
-
|
|
539
|
-
The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. # noqa: E501
|
|
540
|
-
|
|
541
|
-
:param policy: The policy of this PatchedpythonPythonRemote. # noqa: E501
|
|
542
|
-
:type: PolicyEnum
|
|
543
|
-
"""
|
|
544
|
-
|
|
545
|
-
self._policy = policy
|
|
546
|
-
|
|
547
|
-
@property
|
|
548
|
-
def total_timeout(self):
|
|
549
|
-
"""Gets the total_timeout of this PatchedpythonPythonRemote. # noqa: E501
|
|
550
|
-
|
|
551
|
-
aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. # noqa: E501
|
|
552
|
-
|
|
553
|
-
:return: The total_timeout of this PatchedpythonPythonRemote. # noqa: E501
|
|
554
|
-
:rtype: float
|
|
555
|
-
"""
|
|
556
|
-
return self._total_timeout
|
|
557
|
-
|
|
558
|
-
@total_timeout.setter
|
|
559
|
-
def total_timeout(self, total_timeout):
|
|
560
|
-
"""Sets the total_timeout of this PatchedpythonPythonRemote.
|
|
561
|
-
|
|
562
|
-
aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. # noqa: E501
|
|
563
|
-
|
|
564
|
-
:param total_timeout: The total_timeout of this PatchedpythonPythonRemote. # noqa: E501
|
|
565
|
-
:type: float
|
|
566
|
-
"""
|
|
567
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
568
|
-
total_timeout is not None and total_timeout < 0): # noqa: E501
|
|
569
|
-
raise ValueError("Invalid value for `total_timeout`, must be a value greater than or equal to `0`") # noqa: E501
|
|
570
|
-
|
|
571
|
-
self._total_timeout = total_timeout
|
|
572
|
-
|
|
573
|
-
@property
|
|
574
|
-
def connect_timeout(self):
|
|
575
|
-
"""Gets the connect_timeout of this PatchedpythonPythonRemote. # noqa: E501
|
|
576
|
-
|
|
577
|
-
aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. # noqa: E501
|
|
578
|
-
|
|
579
|
-
:return: The connect_timeout of this PatchedpythonPythonRemote. # noqa: E501
|
|
580
|
-
:rtype: float
|
|
581
|
-
"""
|
|
582
|
-
return self._connect_timeout
|
|
583
|
-
|
|
584
|
-
@connect_timeout.setter
|
|
585
|
-
def connect_timeout(self, connect_timeout):
|
|
586
|
-
"""Sets the connect_timeout of this PatchedpythonPythonRemote.
|
|
587
|
-
|
|
588
|
-
aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. # noqa: E501
|
|
589
|
-
|
|
590
|
-
:param connect_timeout: The connect_timeout of this PatchedpythonPythonRemote. # noqa: E501
|
|
591
|
-
:type: float
|
|
592
|
-
"""
|
|
593
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
594
|
-
connect_timeout is not None and connect_timeout < 0): # noqa: E501
|
|
595
|
-
raise ValueError("Invalid value for `connect_timeout`, must be a value greater than or equal to `0`") # noqa: E501
|
|
596
|
-
|
|
597
|
-
self._connect_timeout = connect_timeout
|
|
598
|
-
|
|
599
|
-
@property
|
|
600
|
-
def sock_connect_timeout(self):
|
|
601
|
-
"""Gets the sock_connect_timeout of this PatchedpythonPythonRemote. # noqa: E501
|
|
602
|
-
|
|
603
|
-
aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. # noqa: E501
|
|
604
|
-
|
|
605
|
-
:return: The sock_connect_timeout of this PatchedpythonPythonRemote. # noqa: E501
|
|
606
|
-
:rtype: float
|
|
607
|
-
"""
|
|
608
|
-
return self._sock_connect_timeout
|
|
609
|
-
|
|
610
|
-
@sock_connect_timeout.setter
|
|
611
|
-
def sock_connect_timeout(self, sock_connect_timeout):
|
|
612
|
-
"""Sets the sock_connect_timeout of this PatchedpythonPythonRemote.
|
|
613
|
-
|
|
614
|
-
aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. # noqa: E501
|
|
615
|
-
|
|
616
|
-
:param sock_connect_timeout: The sock_connect_timeout of this PatchedpythonPythonRemote. # noqa: E501
|
|
617
|
-
:type: float
|
|
618
|
-
"""
|
|
619
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
620
|
-
sock_connect_timeout is not None and sock_connect_timeout < 0): # noqa: E501
|
|
621
|
-
raise ValueError("Invalid value for `sock_connect_timeout`, must be a value greater than or equal to `0`") # noqa: E501
|
|
622
|
-
|
|
623
|
-
self._sock_connect_timeout = sock_connect_timeout
|
|
624
|
-
|
|
625
|
-
@property
|
|
626
|
-
def sock_read_timeout(self):
|
|
627
|
-
"""Gets the sock_read_timeout of this PatchedpythonPythonRemote. # noqa: E501
|
|
628
|
-
|
|
629
|
-
aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. # noqa: E501
|
|
630
|
-
|
|
631
|
-
:return: The sock_read_timeout of this PatchedpythonPythonRemote. # noqa: E501
|
|
632
|
-
:rtype: float
|
|
633
|
-
"""
|
|
634
|
-
return self._sock_read_timeout
|
|
635
|
-
|
|
636
|
-
@sock_read_timeout.setter
|
|
637
|
-
def sock_read_timeout(self, sock_read_timeout):
|
|
638
|
-
"""Sets the sock_read_timeout of this PatchedpythonPythonRemote.
|
|
639
|
-
|
|
640
|
-
aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. # noqa: E501
|
|
641
|
-
|
|
642
|
-
:param sock_read_timeout: The sock_read_timeout of this PatchedpythonPythonRemote. # noqa: E501
|
|
643
|
-
:type: float
|
|
644
|
-
"""
|
|
645
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
646
|
-
sock_read_timeout is not None and sock_read_timeout < 0): # noqa: E501
|
|
647
|
-
raise ValueError("Invalid value for `sock_read_timeout`, must be a value greater than or equal to `0`") # noqa: E501
|
|
648
|
-
|
|
649
|
-
self._sock_read_timeout = sock_read_timeout
|
|
650
|
-
|
|
651
|
-
@property
|
|
652
|
-
def headers(self):
|
|
653
|
-
"""Gets the headers of this PatchedpythonPythonRemote. # noqa: E501
|
|
654
|
-
|
|
655
|
-
Headers for aiohttp.Clientsession # noqa: E501
|
|
656
|
-
|
|
657
|
-
:return: The headers of this PatchedpythonPythonRemote. # noqa: E501
|
|
658
|
-
:rtype: list[object]
|
|
659
|
-
"""
|
|
660
|
-
return self._headers
|
|
661
|
-
|
|
662
|
-
@headers.setter
|
|
663
|
-
def headers(self, headers):
|
|
664
|
-
"""Sets the headers of this PatchedpythonPythonRemote.
|
|
665
|
-
|
|
666
|
-
Headers for aiohttp.Clientsession # noqa: E501
|
|
667
|
-
|
|
668
|
-
:param headers: The headers of this PatchedpythonPythonRemote. # noqa: E501
|
|
669
|
-
:type: list[object]
|
|
670
|
-
"""
|
|
671
|
-
|
|
672
|
-
self._headers = headers
|
|
673
|
-
|
|
674
|
-
@property
|
|
675
|
-
def rate_limit(self):
|
|
676
|
-
"""Gets the rate_limit of this PatchedpythonPythonRemote. # noqa: E501
|
|
677
|
-
|
|
678
|
-
Limits requests per second for each concurrent downloader # noqa: E501
|
|
679
|
-
|
|
680
|
-
:return: The rate_limit of this PatchedpythonPythonRemote. # noqa: E501
|
|
681
|
-
:rtype: int
|
|
682
|
-
"""
|
|
683
|
-
return self._rate_limit
|
|
684
|
-
|
|
685
|
-
@rate_limit.setter
|
|
686
|
-
def rate_limit(self, rate_limit):
|
|
687
|
-
"""Sets the rate_limit of this PatchedpythonPythonRemote.
|
|
688
|
-
|
|
689
|
-
Limits requests per second for each concurrent downloader # noqa: E501
|
|
690
|
-
|
|
691
|
-
:param rate_limit: The rate_limit of this PatchedpythonPythonRemote. # noqa: E501
|
|
692
|
-
:type: int
|
|
693
|
-
"""
|
|
694
|
-
|
|
695
|
-
self._rate_limit = rate_limit
|
|
696
|
-
|
|
697
|
-
@property
|
|
698
|
-
def includes(self):
|
|
699
|
-
"""Gets the includes of this PatchedpythonPythonRemote. # noqa: E501
|
|
700
|
-
|
|
701
|
-
A list containing project specifiers for Python packages to include. # noqa: E501
|
|
702
|
-
|
|
703
|
-
:return: The includes of this PatchedpythonPythonRemote. # noqa: E501
|
|
704
|
-
:rtype: list[str]
|
|
705
|
-
"""
|
|
706
|
-
return self._includes
|
|
707
|
-
|
|
708
|
-
@includes.setter
|
|
709
|
-
def includes(self, includes):
|
|
710
|
-
"""Sets the includes of this PatchedpythonPythonRemote.
|
|
711
|
-
|
|
712
|
-
A list containing project specifiers for Python packages to include. # noqa: E501
|
|
713
|
-
|
|
714
|
-
:param includes: The includes of this PatchedpythonPythonRemote. # noqa: E501
|
|
715
|
-
:type: list[str]
|
|
716
|
-
"""
|
|
717
|
-
|
|
718
|
-
self._includes = includes
|
|
719
|
-
|
|
720
|
-
@property
|
|
721
|
-
def excludes(self):
|
|
722
|
-
"""Gets the excludes of this PatchedpythonPythonRemote. # noqa: E501
|
|
723
|
-
|
|
724
|
-
A list containing project specifiers for Python packages to exclude. # noqa: E501
|
|
725
|
-
|
|
726
|
-
:return: The excludes of this PatchedpythonPythonRemote. # noqa: E501
|
|
727
|
-
:rtype: list[str]
|
|
728
|
-
"""
|
|
729
|
-
return self._excludes
|
|
730
|
-
|
|
731
|
-
@excludes.setter
|
|
732
|
-
def excludes(self, excludes):
|
|
733
|
-
"""Sets the excludes of this PatchedpythonPythonRemote.
|
|
734
|
-
|
|
735
|
-
A list containing project specifiers for Python packages to exclude. # noqa: E501
|
|
736
|
-
|
|
737
|
-
:param excludes: The excludes of this PatchedpythonPythonRemote. # noqa: E501
|
|
738
|
-
:type: list[str]
|
|
739
|
-
"""
|
|
740
|
-
|
|
741
|
-
self._excludes = excludes
|
|
742
|
-
|
|
743
|
-
@property
|
|
744
|
-
def prereleases(self):
|
|
745
|
-
"""Gets the prereleases of this PatchedpythonPythonRemote. # noqa: E501
|
|
746
|
-
|
|
747
|
-
Whether or not to include pre-release packages in the sync. # noqa: E501
|
|
748
|
-
|
|
749
|
-
:return: The prereleases of this PatchedpythonPythonRemote. # noqa: E501
|
|
750
|
-
:rtype: bool
|
|
751
|
-
"""
|
|
752
|
-
return self._prereleases
|
|
753
|
-
|
|
754
|
-
@prereleases.setter
|
|
755
|
-
def prereleases(self, prereleases):
|
|
756
|
-
"""Sets the prereleases of this PatchedpythonPythonRemote.
|
|
757
|
-
|
|
758
|
-
Whether or not to include pre-release packages in the sync. # noqa: E501
|
|
759
|
-
|
|
760
|
-
:param prereleases: The prereleases of this PatchedpythonPythonRemote. # noqa: E501
|
|
761
|
-
:type: bool
|
|
762
|
-
"""
|
|
763
|
-
|
|
764
|
-
self._prereleases = prereleases
|
|
765
|
-
|
|
766
|
-
@property
|
|
767
|
-
def package_types(self):
|
|
768
|
-
"""Gets the package_types of this PatchedpythonPythonRemote. # noqa: E501
|
|
769
|
-
|
|
770
|
-
The package types to sync for Python content. Leave blank to get everypackage type. # noqa: E501
|
|
771
|
-
|
|
772
|
-
:return: The package_types of this PatchedpythonPythonRemote. # noqa: E501
|
|
773
|
-
:rtype: list[PackageTypesEnum]
|
|
774
|
-
"""
|
|
775
|
-
return self._package_types
|
|
776
|
-
|
|
777
|
-
@package_types.setter
|
|
778
|
-
def package_types(self, package_types):
|
|
779
|
-
"""Sets the package_types of this PatchedpythonPythonRemote.
|
|
780
|
-
|
|
781
|
-
The package types to sync for Python content. Leave blank to get everypackage type. # noqa: E501
|
|
782
|
-
|
|
783
|
-
:param package_types: The package_types of this PatchedpythonPythonRemote. # noqa: E501
|
|
784
|
-
:type: list[PackageTypesEnum]
|
|
785
|
-
"""
|
|
786
|
-
|
|
787
|
-
self._package_types = package_types
|
|
788
|
-
|
|
789
|
-
@property
|
|
790
|
-
def keep_latest_packages(self):
|
|
791
|
-
"""Gets the keep_latest_packages of this PatchedpythonPythonRemote. # noqa: E501
|
|
792
|
-
|
|
793
|
-
The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions. # noqa: E501
|
|
794
|
-
|
|
795
|
-
:return: The keep_latest_packages of this PatchedpythonPythonRemote. # noqa: E501
|
|
796
|
-
:rtype: int
|
|
797
|
-
"""
|
|
798
|
-
return self._keep_latest_packages
|
|
799
|
-
|
|
800
|
-
@keep_latest_packages.setter
|
|
801
|
-
def keep_latest_packages(self, keep_latest_packages):
|
|
802
|
-
"""Sets the keep_latest_packages of this PatchedpythonPythonRemote.
|
|
803
|
-
|
|
804
|
-
The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions. # noqa: E501
|
|
805
|
-
|
|
806
|
-
:param keep_latest_packages: The keep_latest_packages of this PatchedpythonPythonRemote. # noqa: E501
|
|
807
|
-
:type: int
|
|
808
|
-
"""
|
|
809
|
-
|
|
810
|
-
self._keep_latest_packages = keep_latest_packages
|
|
811
|
-
|
|
812
|
-
@property
|
|
813
|
-
def exclude_platforms(self):
|
|
814
|
-
"""Gets the exclude_platforms of this PatchedpythonPythonRemote. # noqa: E501
|
|
815
|
-
|
|
816
|
-
List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux. # noqa: E501
|
|
817
|
-
|
|
818
|
-
:return: The exclude_platforms of this PatchedpythonPythonRemote. # noqa: E501
|
|
819
|
-
:rtype: list[ExcludePlatformsEnum]
|
|
820
|
-
"""
|
|
821
|
-
return self._exclude_platforms
|
|
822
|
-
|
|
823
|
-
@exclude_platforms.setter
|
|
824
|
-
def exclude_platforms(self, exclude_platforms):
|
|
825
|
-
"""Sets the exclude_platforms of this PatchedpythonPythonRemote.
|
|
826
|
-
|
|
827
|
-
List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux. # noqa: E501
|
|
828
|
-
|
|
829
|
-
:param exclude_platforms: The exclude_platforms of this PatchedpythonPythonRemote. # noqa: E501
|
|
830
|
-
:type: list[ExcludePlatformsEnum]
|
|
831
|
-
"""
|
|
832
219
|
|
|
833
|
-
self._exclude_platforms = exclude_platforms
|
|
834
|
-
|
|
835
|
-
def to_dict(self):
|
|
836
|
-
"""Returns the model properties as a dict"""
|
|
837
|
-
result = {}
|
|
838
|
-
|
|
839
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
840
|
-
value = getattr(self, attr)
|
|
841
|
-
if isinstance(value, list):
|
|
842
|
-
result[attr] = list(map(
|
|
843
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
844
|
-
value
|
|
845
|
-
))
|
|
846
|
-
elif hasattr(value, "to_dict"):
|
|
847
|
-
result[attr] = value.to_dict()
|
|
848
|
-
elif isinstance(value, dict):
|
|
849
|
-
result[attr] = dict(map(
|
|
850
|
-
lambda item: (item[0], item[1].to_dict())
|
|
851
|
-
if hasattr(item[1], "to_dict") else item,
|
|
852
|
-
value.items()
|
|
853
|
-
))
|
|
854
|
-
else:
|
|
855
|
-
result[attr] = value
|
|
856
|
-
|
|
857
|
-
return result
|
|
858
|
-
|
|
859
|
-
def to_str(self):
|
|
860
|
-
"""Returns the string representation of the model"""
|
|
861
|
-
return pprint.pformat(self.to_dict())
|
|
862
|
-
|
|
863
|
-
def __repr__(self):
|
|
864
|
-
"""For `print` and `pprint`"""
|
|
865
|
-
return self.to_str()
|
|
866
|
-
|
|
867
|
-
def __eq__(self, other):
|
|
868
|
-
"""Returns true if both objects are equal"""
|
|
869
|
-
if not isinstance(other, PatchedpythonPythonRemote):
|
|
870
|
-
return False
|
|
871
|
-
|
|
872
|
-
return self.to_dict() == other.to_dict()
|
|
873
|
-
|
|
874
|
-
def __ne__(self, other):
|
|
875
|
-
"""Returns true if both objects are not equal"""
|
|
876
|
-
if not isinstance(other, PatchedpythonPythonRemote):
|
|
877
|
-
return True
|
|
878
|
-
|
|
879
|
-
return self.to_dict() != other.to_dict()
|