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.

Files changed (68) hide show
  1. pulp_python_client-3.13.1.dist-info/METADATA +17 -0
  2. pulp_python_client-3.13.1.dist-info/RECORD +64 -0
  3. {pulp_python_client-3.12.5.dist-info → pulp_python_client-3.13.1.dist-info}/WHEEL +1 -1
  4. pulpcore/client/pulp_python/__init__.py +9 -10
  5. pulpcore/client/pulp_python/api/__init__.py +1 -2
  6. pulpcore/client/pulp_python/api/content_packages_api.py +1800 -655
  7. pulpcore/client/pulp_python/api/distributions_pypi_api.py +3755 -1474
  8. pulpcore/client/pulp_python/api/publications_pypi_api.py +2574 -982
  9. pulpcore/client/pulp_python/api/pypi_api.py +302 -128
  10. pulpcore/client/pulp_python/api/pypi_legacy_api.py +326 -153
  11. pulpcore/client/pulp_python/api/pypi_metadata_api.py +319 -139
  12. pulpcore/client/pulp_python/api/pypi_simple_api.py +899 -382
  13. pulpcore/client/pulp_python/api/remotes_python_api.py +4092 -1589
  14. pulpcore/client/pulp_python/api/repositories_python_api.py +4380 -1719
  15. pulpcore/client/pulp_python/api/repositories_python_versions_api.py +1526 -561
  16. pulpcore/client/pulp_python/api_client.py +444 -313
  17. pulpcore/client/pulp_python/api_response.py +21 -0
  18. pulpcore/client/pulp_python/configuration.py +266 -73
  19. pulpcore/client/pulp_python/exceptions.py +99 -20
  20. pulpcore/client/pulp_python/models/__init__.py +5 -8
  21. pulpcore/client/pulp_python/models/async_operation_response.py +60 -96
  22. pulpcore/client/pulp_python/models/content_summary_response.py +70 -154
  23. pulpcore/client/pulp_python/models/exclude_platforms_enum.py +19 -82
  24. pulpcore/client/pulp_python/models/my_permissions_response.py +60 -94
  25. pulpcore/client/pulp_python/models/nested_role.py +71 -155
  26. pulpcore/client/pulp_python/models/nested_role_response.py +70 -152
  27. pulpcore/client/pulp_python/models/object_roles_response.py +70 -96
  28. pulpcore/client/pulp_python/models/package_metadata_response.py +91 -191
  29. pulpcore/client/pulp_python/models/package_types_enum.py +23 -86
  30. pulpcore/client/pulp_python/models/package_upload_task_response.py +85 -154
  31. pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +94 -181
  32. pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +94 -181
  33. pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +94 -181
  34. pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +94 -181
  35. pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +94 -181
  36. pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +94 -181
  37. pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +108 -330
  38. pulpcore/client/pulp_python/models/patchedpython_python_remote.py +204 -864
  39. pulpcore/client/pulp_python/models/patchedpython_python_repository.py +96 -249
  40. pulpcore/client/pulp_python/models/policy_enum.py +18 -81
  41. pulpcore/client/pulp_python/models/python_python_distribution.py +108 -332
  42. pulpcore/client/pulp_python/models/python_python_distribution_response.py +132 -490
  43. pulpcore/client/pulp_python/models/python_python_package_content_response.py +182 -972
  44. pulpcore/client/pulp_python/models/python_python_publication.py +68 -127
  45. pulpcore/client/pulp_python/models/python_python_publication_response.py +93 -269
  46. pulpcore/client/pulp_python/models/python_python_remote.py +204 -866
  47. pulpcore/client/pulp_python/models/python_python_remote_response.py +198 -839
  48. pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields_inner.py +90 -0
  49. pulpcore/client/pulp_python/models/python_python_repository.py +96 -250
  50. pulpcore/client/pulp_python/models/python_python_repository_response.py +122 -407
  51. pulpcore/client/pulp_python/models/repair.py +60 -95
  52. pulpcore/client/pulp_python/models/repository_add_remove_content.py +71 -157
  53. pulpcore/client/pulp_python/models/repository_sync_url.py +68 -129
  54. pulpcore/client/pulp_python/models/repository_version_response.py +104 -296
  55. pulpcore/client/pulp_python/models/set_label.py +80 -130
  56. pulpcore/client/pulp_python/models/set_label_response.py +80 -127
  57. pulpcore/client/pulp_python/models/summary_response.py +70 -160
  58. pulpcore/client/pulp_python/models/unset_label.py +75 -107
  59. pulpcore/client/pulp_python/models/unset_label_response.py +78 -129
  60. pulpcore/client/pulp_python/py.typed +0 -0
  61. pulpcore/client/pulp_python/rest.py +136 -170
  62. pulp_python_client-3.12.5.dist-info/METADATA +0 -17
  63. pulp_python_client-3.12.5.dist-info/RECORD +0 -65
  64. pulpcore/client/pulp_python/models/package_upload.py +0 -190
  65. pulpcore/client/pulp_python/models/python_bander_remote.py +0 -184
  66. pulpcore/client/pulp_python/models/python_python_package_content.py +0 -889
  67. pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py +0 -149
  68. {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 # noqa: E501
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: https://openapi-generator.tech
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
- import six
18
-
19
- from pulpcore.client.pulp_python.configuration import Configuration
20
-
21
-
22
- class PatchedpythonPythonRemote(object):
23
- """NOTE: This class is auto generated by OpenAPI Generator.
24
- Ref: https://openapi-generator.tech
25
-
26
- Do not edit the class manually.
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
- openapi_types = {
37
- 'name': 'str',
38
- 'url': 'str',
39
- 'ca_cert': 'str',
40
- 'client_cert': 'str',
41
- 'client_key': 'str',
42
- 'tls_validation': 'bool',
43
- 'proxy_url': 'str',
44
- 'proxy_username': 'str',
45
- 'proxy_password': 'str',
46
- 'username': 'str',
47
- 'password': 'str',
48
- 'pulp_labels': 'dict(str, str)',
49
- 'download_concurrency': 'int',
50
- 'max_retries': 'int',
51
- 'policy': 'PolicyEnum',
52
- 'total_timeout': 'float',
53
- 'connect_timeout': 'float',
54
- 'sock_connect_timeout': 'float',
55
- 'sock_read_timeout': 'float',
56
- 'headers': 'list[object]',
57
- 'rate_limit': 'int',
58
- 'includes': 'list[str]',
59
- 'excludes': 'list[str]',
60
- 'prereleases': 'bool',
61
- 'package_types': 'list[PackageTypesEnum]',
62
- 'keep_latest_packages': 'int',
63
- 'exclude_platforms': 'list[ExcludePlatformsEnum]'
64
- }
65
-
66
- attribute_map = {
67
- 'name': 'name',
68
- 'url': 'url',
69
- 'ca_cert': 'ca_cert',
70
- 'client_cert': 'client_cert',
71
- 'client_key': 'client_key',
72
- 'tls_validation': 'tls_validation',
73
- 'proxy_url': 'proxy_url',
74
- 'proxy_username': 'proxy_username',
75
- 'proxy_password': 'proxy_password',
76
- 'username': 'username',
77
- 'password': 'password',
78
- 'pulp_labels': 'pulp_labels',
79
- 'download_concurrency': 'download_concurrency',
80
- 'max_retries': 'max_retries',
81
- 'policy': 'policy',
82
- 'total_timeout': 'total_timeout',
83
- 'connect_timeout': 'connect_timeout',
84
- 'sock_connect_timeout': 'sock_connect_timeout',
85
- 'sock_read_timeout': 'sock_read_timeout',
86
- 'headers': 'headers',
87
- 'rate_limit': 'rate_limit',
88
- 'includes': 'includes',
89
- 'excludes': 'excludes',
90
- 'prereleases': 'prereleases',
91
- 'package_types': 'package_types',
92
- 'keep_latest_packages': 'keep_latest_packages',
93
- 'exclude_platforms': 'exclude_platforms'
94
- }
95
-
96
- def __init__(self, name=None, url=None, ca_cert=None, client_cert=None, client_key=None, tls_validation=None, proxy_url=None, proxy_username=None, proxy_password=None, username=None, password=None, pulp_labels=None, download_concurrency=None, max_retries=None, policy=None, total_timeout=None, connect_timeout=None, sock_connect_timeout=None, sock_read_timeout=None, headers=None, rate_limit=None, includes=None, excludes=None, prereleases=None, package_types=None, keep_latest_packages=0, exclude_platforms=None, local_vars_configuration=None): # noqa: E501
97
- """PatchedpythonPythonRemote - a model defined in OpenAPI""" # noqa: E501
98
- if local_vars_configuration is None:
99
- local_vars_configuration = Configuration()
100
- self.local_vars_configuration = local_vars_configuration
101
-
102
- self._name = None
103
- self._url = None
104
- self._ca_cert = None
105
- self._client_cert = None
106
- self._client_key = None
107
- self._tls_validation = None
108
- self._proxy_url = None
109
- self._proxy_username = None
110
- self._proxy_password = None
111
- self._username = None
112
- self._password = None
113
- self._pulp_labels = None
114
- self._download_concurrency = None
115
- self._max_retries = None
116
- self._policy = None
117
- self._total_timeout = None
118
- self._connect_timeout = None
119
- self._sock_connect_timeout = None
120
- self._sock_read_timeout = None
121
- self._headers = None
122
- self._rate_limit = None
123
- self._includes = None
124
- self._excludes = None
125
- self._prereleases = None
126
- self._package_types = None
127
- self._keep_latest_packages = None
128
- self._exclude_platforms = None
129
- self.discriminator = None
130
-
131
- if name is not None:
132
- self.name = name
133
- if url is not None:
134
- self.url = url
135
- self.ca_cert = ca_cert
136
- self.client_cert = client_cert
137
- self.client_key = client_key
138
- if tls_validation is not None:
139
- self.tls_validation = tls_validation
140
- self.proxy_url = proxy_url
141
- self.proxy_username = proxy_username
142
- self.proxy_password = proxy_password
143
- self.username = username
144
- self.password = password
145
- if pulp_labels is not None:
146
- self.pulp_labels = pulp_labels
147
- self.download_concurrency = download_concurrency
148
- self.max_retries = max_retries
149
- if policy is not None:
150
- self.policy = policy
151
- self.total_timeout = total_timeout
152
- self.connect_timeout = connect_timeout
153
- self.sock_connect_timeout = sock_connect_timeout
154
- self.sock_read_timeout = sock_read_timeout
155
- if headers is not None:
156
- self.headers = headers
157
- self.rate_limit = rate_limit
158
- if includes is not None:
159
- self.includes = includes
160
- if excludes is not None:
161
- self.excludes = excludes
162
- if prereleases is not None:
163
- self.prereleases = prereleases
164
- if package_types is not None:
165
- self.package_types = package_types
166
- if keep_latest_packages is not None:
167
- self.keep_latest_packages = keep_latest_packages
168
- if exclude_platforms is not None:
169
- self.exclude_platforms = exclude_platforms
170
-
171
- @property
172
- def name(self):
173
- """Gets the name of this PatchedpythonPythonRemote. # noqa: E501
174
-
175
- A unique name for this remote. # noqa: E501
176
-
177
- :return: The name of this PatchedpythonPythonRemote. # noqa: E501
178
- :rtype: str
179
- """
180
- return self._name
181
-
182
- @name.setter
183
- def name(self, name):
184
- """Sets the name of this PatchedpythonPythonRemote.
185
-
186
- A unique name for this remote. # noqa: E501
187
-
188
- :param name: The name of this PatchedpythonPythonRemote. # noqa: E501
189
- :type: str
190
- """
191
- if (self.local_vars_configuration.client_side_validation and
192
- name is not None and len(name) < 1):
193
- raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501
194
-
195
- self._name = name
196
-
197
- @property
198
- def url(self):
199
- """Gets the url of this PatchedpythonPythonRemote. # noqa: E501
200
-
201
- The URL of an external content source. # noqa: E501
202
-
203
- :return: The url of this PatchedpythonPythonRemote. # noqa: E501
204
- :rtype: str
205
- """
206
- return self._url
207
-
208
- @url.setter
209
- def url(self, url):
210
- """Sets the url of this PatchedpythonPythonRemote.
211
-
212
- The URL of an external content source. # noqa: E501
213
-
214
- :param url: The url of this PatchedpythonPythonRemote. # noqa: E501
215
- :type: str
216
- """
217
- if (self.local_vars_configuration.client_side_validation and
218
- url is not None and len(url) < 1):
219
- raise ValueError("Invalid value for `url`, length must be greater than or equal to `1`") # noqa: E501
220
-
221
- self._url = url
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()