pulp-python-client 3.12.4__py3-none-any.whl → 3.13.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulp-python-client might be problematic. Click here for more details.

Files changed (68) hide show
  1. pulp_python_client-3.13.0.dist-info/METADATA +17 -0
  2. pulp_python_client-3.13.0.dist-info/RECORD +64 -0
  3. {pulp_python_client-3.12.4.dist-info → pulp_python_client-3.13.0.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.4.dist-info/METADATA +0 -17
  63. pulp_python_client-3.12.4.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.4.dist-info → pulp_python_client-3.13.0.dist-info}/top_level.txt +0 -0
@@ -3,879 +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 PythonPythonRemote(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 PythonPythonRemote(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
- """PythonPythonRemote - 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
- self.name = name
132
- self.url = url
133
- self.ca_cert = ca_cert
134
- self.client_cert = client_cert
135
- self.client_key = client_key
136
- if tls_validation is not None:
137
- self.tls_validation = tls_validation
138
- self.proxy_url = proxy_url
139
- self.proxy_username = proxy_username
140
- self.proxy_password = proxy_password
141
- self.username = username
142
- self.password = password
143
- if pulp_labels is not None:
144
- self.pulp_labels = pulp_labels
145
- self.download_concurrency = download_concurrency
146
- self.max_retries = max_retries
147
- if policy is not None:
148
- self.policy = policy
149
- self.total_timeout = total_timeout
150
- self.connect_timeout = connect_timeout
151
- self.sock_connect_timeout = sock_connect_timeout
152
- self.sock_read_timeout = sock_read_timeout
153
- if headers is not None:
154
- self.headers = headers
155
- self.rate_limit = rate_limit
156
- if includes is not None:
157
- self.includes = includes
158
- if excludes is not None:
159
- self.excludes = excludes
160
- if prereleases is not None:
161
- self.prereleases = prereleases
162
- if package_types is not None:
163
- self.package_types = package_types
164
- if keep_latest_packages is not None:
165
- self.keep_latest_packages = keep_latest_packages
166
- if exclude_platforms is not None:
167
- self.exclude_platforms = exclude_platforms
168
-
169
- @property
170
- def name(self):
171
- """Gets the name of this PythonPythonRemote. # noqa: E501
172
-
173
- A unique name for this remote. # noqa: E501
174
-
175
- :return: The name of this PythonPythonRemote. # noqa: E501
176
- :rtype: str
177
- """
178
- return self._name
179
-
180
- @name.setter
181
- def name(self, name):
182
- """Sets the name of this PythonPythonRemote.
183
-
184
- A unique name for this remote. # noqa: E501
185
-
186
- :param name: The name of this PythonPythonRemote. # noqa: E501
187
- :type: str
188
- """
189
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
190
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
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 PythonPythonRemote. # noqa: E501
200
-
201
- The URL of an external content source. # noqa: E501
202
-
203
- :return: The url of this PythonPythonRemote. # 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 PythonPythonRemote.
211
-
212
- The URL of an external content source. # noqa: E501
213
-
214
- :param url: The url of this PythonPythonRemote. # noqa: E501
215
- :type: str
216
- """
217
- if self.local_vars_configuration.client_side_validation and url is None: # noqa: E501
218
- raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
219
- if (self.local_vars_configuration.client_side_validation and
220
- url is not None and len(url) < 1):
221
- raise ValueError("Invalid value for `url`, length must be greater than or equal to `1`") # noqa: E501
222
-
223
- self._url = url
224
-
225
- @property
226
- def ca_cert(self):
227
- """Gets the ca_cert of this PythonPythonRemote. # noqa: E501
228
-
229
- A PEM encoded CA certificate used to validate the server certificate presented by the remote server. # noqa: E501
230
-
231
- :return: The ca_cert of this PythonPythonRemote. # noqa: E501
232
- :rtype: str
233
- """
234
- return self._ca_cert
235
-
236
- @ca_cert.setter
237
- def ca_cert(self, ca_cert):
238
- """Sets the ca_cert of this PythonPythonRemote.
239
-
240
- A PEM encoded CA certificate used to validate the server certificate presented by the remote server. # noqa: E501
241
-
242
- :param ca_cert: The ca_cert of this PythonPythonRemote. # noqa: E501
243
- :type: str
244
- """
245
- if (self.local_vars_configuration.client_side_validation and
246
- ca_cert is not None and len(ca_cert) < 1):
247
- raise ValueError("Invalid value for `ca_cert`, length must be greater than or equal to `1`") # noqa: E501
248
-
249
- self._ca_cert = ca_cert
250
-
251
- @property
252
- def client_cert(self):
253
- """Gets the client_cert of this PythonPythonRemote. # noqa: E501
254
-
255
- A PEM encoded client certificate used for authentication. # noqa: E501
256
-
257
- :return: The client_cert of this PythonPythonRemote. # noqa: E501
258
- :rtype: str
259
- """
260
- return self._client_cert
261
-
262
- @client_cert.setter
263
- def client_cert(self, client_cert):
264
- """Sets the client_cert of this PythonPythonRemote.
265
-
266
- A PEM encoded client certificate used for authentication. # noqa: E501
267
-
268
- :param client_cert: The client_cert of this PythonPythonRemote. # noqa: E501
269
- :type: str
270
- """
271
- if (self.local_vars_configuration.client_side_validation and
272
- client_cert is not None and len(client_cert) < 1):
273
- raise ValueError("Invalid value for `client_cert`, length must be greater than or equal to `1`") # noqa: E501
274
-
275
- self._client_cert = client_cert
276
-
277
- @property
278
- def client_key(self):
279
- """Gets the client_key of this PythonPythonRemote. # noqa: E501
280
-
281
- A PEM encoded private key used for authentication. # noqa: E501
282
-
283
- :return: The client_key of this PythonPythonRemote. # noqa: E501
284
- :rtype: str
285
- """
286
- return self._client_key
287
-
288
- @client_key.setter
289
- def client_key(self, client_key):
290
- """Sets the client_key of this PythonPythonRemote.
291
-
292
- A PEM encoded private key used for authentication. # noqa: E501
293
-
294
- :param client_key: The client_key of this PythonPythonRemote. # noqa: E501
295
- :type: str
296
- """
297
- if (self.local_vars_configuration.client_side_validation and
298
- client_key is not None and len(client_key) < 1):
299
- raise ValueError("Invalid value for `client_key`, length must be greater than or equal to `1`") # noqa: E501
300
-
301
- self._client_key = client_key
302
-
303
- @property
304
- def tls_validation(self):
305
- """Gets the tls_validation of this PythonPythonRemote. # noqa: E501
306
-
307
- If True, TLS peer validation must be performed. # noqa: E501
308
-
309
- :return: The tls_validation of this PythonPythonRemote. # noqa: E501
310
- :rtype: bool
311
- """
312
- return self._tls_validation
313
-
314
- @tls_validation.setter
315
- def tls_validation(self, tls_validation):
316
- """Sets the tls_validation of this PythonPythonRemote.
317
-
318
- If True, TLS peer validation must be performed. # noqa: E501
319
-
320
- :param tls_validation: The tls_validation of this PythonPythonRemote. # noqa: E501
321
- :type: bool
322
- """
323
-
324
- self._tls_validation = tls_validation
325
-
326
- @property
327
- def proxy_url(self):
328
- """Gets the proxy_url of this PythonPythonRemote. # noqa: E501
329
-
330
- The proxy URL. Format: scheme://host:port # noqa: E501
331
-
332
- :return: The proxy_url of this PythonPythonRemote. # noqa: E501
333
- :rtype: str
334
- """
335
- return self._proxy_url
336
-
337
- @proxy_url.setter
338
- def proxy_url(self, proxy_url):
339
- """Sets the proxy_url of this PythonPythonRemote.
340
-
341
- The proxy URL. Format: scheme://host:port # noqa: E501
342
-
343
- :param proxy_url: The proxy_url of this PythonPythonRemote. # noqa: E501
344
- :type: str
345
- """
346
- if (self.local_vars_configuration.client_side_validation and
347
- proxy_url is not None and len(proxy_url) < 1):
348
- raise ValueError("Invalid value for `proxy_url`, length must be greater than or equal to `1`") # noqa: E501
349
-
350
- self._proxy_url = proxy_url
351
-
352
- @property
353
- def proxy_username(self):
354
- """Gets the proxy_username of this PythonPythonRemote. # noqa: E501
355
-
356
- The username to authenticte to the proxy. # noqa: E501
357
-
358
- :return: The proxy_username of this PythonPythonRemote. # noqa: E501
359
- :rtype: str
360
- """
361
- return self._proxy_username
362
-
363
- @proxy_username.setter
364
- def proxy_username(self, proxy_username):
365
- """Sets the proxy_username of this PythonPythonRemote.
366
-
367
- The username to authenticte to the proxy. # noqa: E501
368
-
369
- :param proxy_username: The proxy_username of this PythonPythonRemote. # noqa: E501
370
- :type: str
371
- """
372
- if (self.local_vars_configuration.client_side_validation and
373
- proxy_username is not None and len(proxy_username) < 1):
374
- raise ValueError("Invalid value for `proxy_username`, length must be greater than or equal to `1`") # noqa: E501
375
-
376
- self._proxy_username = proxy_username
377
-
378
- @property
379
- def proxy_password(self):
380
- """Gets the proxy_password of this PythonPythonRemote. # noqa: E501
381
-
382
- The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. # noqa: E501
383
-
384
- :return: The proxy_password of this PythonPythonRemote. # noqa: E501
385
- :rtype: str
386
- """
387
- return self._proxy_password
388
-
389
- @proxy_password.setter
390
- def proxy_password(self, proxy_password):
391
- """Sets the proxy_password of this PythonPythonRemote.
392
-
393
- The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. # noqa: E501
394
-
395
- :param proxy_password: The proxy_password of this PythonPythonRemote. # noqa: E501
396
- :type: str
397
- """
398
- if (self.local_vars_configuration.client_side_validation and
399
- proxy_password is not None and len(proxy_password) < 1):
400
- raise ValueError("Invalid value for `proxy_password`, length must be greater than or equal to `1`") # noqa: E501
401
-
402
- self._proxy_password = proxy_password
403
-
404
- @property
405
- def username(self):
406
- """Gets the username of this PythonPythonRemote. # noqa: E501
407
-
408
- The username to be used for authentication when syncing. # noqa: E501
409
-
410
- :return: The username of this PythonPythonRemote. # noqa: E501
411
- :rtype: str
412
- """
413
- return self._username
414
-
415
- @username.setter
416
- def username(self, username):
417
- """Sets the username of this PythonPythonRemote.
418
-
419
- The username to be used for authentication when syncing. # noqa: E501
420
-
421
- :param username: The username of this PythonPythonRemote. # noqa: E501
422
- :type: str
423
- """
424
- if (self.local_vars_configuration.client_side_validation and
425
- username is not None and len(username) < 1):
426
- raise ValueError("Invalid value for `username`, length must be greater than or equal to `1`") # noqa: E501
427
-
428
- self._username = username
429
-
430
- @property
431
- def password(self):
432
- """Gets the password of this PythonPythonRemote. # noqa: E501
433
-
434
- The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. # noqa: E501
435
-
436
- :return: The password of this PythonPythonRemote. # noqa: E501
437
- :rtype: str
438
- """
439
- return self._password
440
-
441
- @password.setter
442
- def password(self, password):
443
- """Sets the password of this PythonPythonRemote.
444
-
445
- The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. # noqa: E501
446
-
447
- :param password: The password of this PythonPythonRemote. # noqa: E501
448
- :type: str
449
- """
450
- if (self.local_vars_configuration.client_side_validation and
451
- password is not None and len(password) < 1):
452
- raise ValueError("Invalid value for `password`, length must be greater than or equal to `1`") # noqa: E501
453
-
454
- self._password = password
455
-
456
- @property
457
- def pulp_labels(self):
458
- """Gets the pulp_labels of this PythonPythonRemote. # noqa: E501
459
-
460
-
461
- :return: The pulp_labels of this PythonPythonRemote. # noqa: E501
462
- :rtype: dict(str, str)
463
- """
464
- return self._pulp_labels
465
-
466
- @pulp_labels.setter
467
- def pulp_labels(self, pulp_labels):
468
- """Sets the pulp_labels of this PythonPythonRemote.
469
-
470
-
471
- :param pulp_labels: The pulp_labels of this PythonPythonRemote. # noqa: E501
472
- :type: dict(str, str)
473
- """
474
-
475
- self._pulp_labels = pulp_labels
476
-
477
- @property
478
- def download_concurrency(self):
479
- """Gets the download_concurrency of this PythonPythonRemote. # noqa: E501
480
-
481
- Total number of simultaneous connections. If not set then the default value will be used. # noqa: E501
482
-
483
- :return: The download_concurrency of this PythonPythonRemote. # noqa: E501
484
- :rtype: int
485
- """
486
- return self._download_concurrency
487
-
488
- @download_concurrency.setter
489
- def download_concurrency(self, download_concurrency):
490
- """Sets the download_concurrency of this PythonPythonRemote.
491
-
492
- Total number of simultaneous connections. If not set then the default value will be used. # noqa: E501
493
-
494
- :param download_concurrency: The download_concurrency of this PythonPythonRemote. # noqa: E501
495
- :type: int
496
- """
497
- if (self.local_vars_configuration.client_side_validation and
498
- download_concurrency is not None and download_concurrency < 1): # noqa: E501
499
- 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: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name for this remote.")
35
+ url: Annotated[str, Field(min_length=1, strict=True)] = Field(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 PythonPythonRemote 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 PythonPythonRemote 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
500
218
 
501
- self._download_concurrency = download_concurrency
502
-
503
- @property
504
- def max_retries(self):
505
- """Gets the max_retries of this PythonPythonRemote. # noqa: E501
506
-
507
- Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. # noqa: E501
508
-
509
- :return: The max_retries of this PythonPythonRemote. # noqa: E501
510
- :rtype: int
511
- """
512
- return self._max_retries
513
-
514
- @max_retries.setter
515
- def max_retries(self, max_retries):
516
- """Sets the max_retries of this PythonPythonRemote.
517
-
518
- Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. # noqa: E501
519
-
520
- :param max_retries: The max_retries of this PythonPythonRemote. # noqa: E501
521
- :type: int
522
- """
523
-
524
- self._max_retries = max_retries
525
-
526
- @property
527
- def policy(self):
528
- """Gets the policy of this PythonPythonRemote. # noqa: E501
529
-
530
- 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
531
-
532
- :return: The policy of this PythonPythonRemote. # noqa: E501
533
- :rtype: PolicyEnum
534
- """
535
- return self._policy
536
-
537
- @policy.setter
538
- def policy(self, policy):
539
- """Sets the policy of this PythonPythonRemote.
540
-
541
- 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
542
-
543
- :param policy: The policy of this PythonPythonRemote. # noqa: E501
544
- :type: PolicyEnum
545
- """
546
-
547
- self._policy = policy
548
-
549
- @property
550
- def total_timeout(self):
551
- """Gets the total_timeout of this PythonPythonRemote. # noqa: E501
552
-
553
- 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
554
-
555
- :return: The total_timeout of this PythonPythonRemote. # noqa: E501
556
- :rtype: float
557
- """
558
- return self._total_timeout
559
-
560
- @total_timeout.setter
561
- def total_timeout(self, total_timeout):
562
- """Sets the total_timeout of this PythonPythonRemote.
563
-
564
- 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
565
-
566
- :param total_timeout: The total_timeout of this PythonPythonRemote. # noqa: E501
567
- :type: float
568
- """
569
- if (self.local_vars_configuration.client_side_validation and
570
- total_timeout is not None and total_timeout < 0.0): # noqa: E501
571
- raise ValueError("Invalid value for `total_timeout`, must be a value greater than or equal to `0.0`") # noqa: E501
572
-
573
- self._total_timeout = total_timeout
574
-
575
- @property
576
- def connect_timeout(self):
577
- """Gets the connect_timeout of this PythonPythonRemote. # noqa: E501
578
-
579
- 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
580
-
581
- :return: The connect_timeout of this PythonPythonRemote. # noqa: E501
582
- :rtype: float
583
- """
584
- return self._connect_timeout
585
-
586
- @connect_timeout.setter
587
- def connect_timeout(self, connect_timeout):
588
- """Sets the connect_timeout of this PythonPythonRemote.
589
-
590
- 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
591
-
592
- :param connect_timeout: The connect_timeout of this PythonPythonRemote. # noqa: E501
593
- :type: float
594
- """
595
- if (self.local_vars_configuration.client_side_validation and
596
- connect_timeout is not None and connect_timeout < 0.0): # noqa: E501
597
- raise ValueError("Invalid value for `connect_timeout`, must be a value greater than or equal to `0.0`") # noqa: E501
598
-
599
- self._connect_timeout = connect_timeout
600
-
601
- @property
602
- def sock_connect_timeout(self):
603
- """Gets the sock_connect_timeout of this PythonPythonRemote. # noqa: E501
604
-
605
- 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
606
-
607
- :return: The sock_connect_timeout of this PythonPythonRemote. # noqa: E501
608
- :rtype: float
609
- """
610
- return self._sock_connect_timeout
611
-
612
- @sock_connect_timeout.setter
613
- def sock_connect_timeout(self, sock_connect_timeout):
614
- """Sets the sock_connect_timeout of this PythonPythonRemote.
615
-
616
- 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
617
-
618
- :param sock_connect_timeout: The sock_connect_timeout of this PythonPythonRemote. # noqa: E501
619
- :type: float
620
- """
621
- if (self.local_vars_configuration.client_side_validation and
622
- sock_connect_timeout is not None and sock_connect_timeout < 0.0): # noqa: E501
623
- raise ValueError("Invalid value for `sock_connect_timeout`, must be a value greater than or equal to `0.0`") # noqa: E501
624
-
625
- self._sock_connect_timeout = sock_connect_timeout
626
-
627
- @property
628
- def sock_read_timeout(self):
629
- """Gets the sock_read_timeout of this PythonPythonRemote. # noqa: E501
630
-
631
- 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
632
-
633
- :return: The sock_read_timeout of this PythonPythonRemote. # noqa: E501
634
- :rtype: float
635
- """
636
- return self._sock_read_timeout
637
-
638
- @sock_read_timeout.setter
639
- def sock_read_timeout(self, sock_read_timeout):
640
- """Sets the sock_read_timeout of this PythonPythonRemote.
641
-
642
- 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
643
-
644
- :param sock_read_timeout: The sock_read_timeout of this PythonPythonRemote. # noqa: E501
645
- :type: float
646
- """
647
- if (self.local_vars_configuration.client_side_validation and
648
- sock_read_timeout is not None and sock_read_timeout < 0.0): # noqa: E501
649
- raise ValueError("Invalid value for `sock_read_timeout`, must be a value greater than or equal to `0.0`") # noqa: E501
650
-
651
- self._sock_read_timeout = sock_read_timeout
652
-
653
- @property
654
- def headers(self):
655
- """Gets the headers of this PythonPythonRemote. # noqa: E501
656
-
657
- Headers for aiohttp.Clientsession # noqa: E501
658
-
659
- :return: The headers of this PythonPythonRemote. # noqa: E501
660
- :rtype: list[object]
661
- """
662
- return self._headers
663
-
664
- @headers.setter
665
- def headers(self, headers):
666
- """Sets the headers of this PythonPythonRemote.
667
-
668
- Headers for aiohttp.Clientsession # noqa: E501
669
-
670
- :param headers: The headers of this PythonPythonRemote. # noqa: E501
671
- :type: list[object]
672
- """
673
-
674
- self._headers = headers
675
-
676
- @property
677
- def rate_limit(self):
678
- """Gets the rate_limit of this PythonPythonRemote. # noqa: E501
679
-
680
- Limits requests per second for each concurrent downloader # noqa: E501
681
-
682
- :return: The rate_limit of this PythonPythonRemote. # noqa: E501
683
- :rtype: int
684
- """
685
- return self._rate_limit
686
-
687
- @rate_limit.setter
688
- def rate_limit(self, rate_limit):
689
- """Sets the rate_limit of this PythonPythonRemote.
690
-
691
- Limits requests per second for each concurrent downloader # noqa: E501
692
-
693
- :param rate_limit: The rate_limit of this PythonPythonRemote. # noqa: E501
694
- :type: int
695
- """
696
-
697
- self._rate_limit = rate_limit
698
-
699
- @property
700
- def includes(self):
701
- """Gets the includes of this PythonPythonRemote. # noqa: E501
702
-
703
- A list containing project specifiers for Python packages to include. # noqa: E501
704
-
705
- :return: The includes of this PythonPythonRemote. # noqa: E501
706
- :rtype: list[str]
707
- """
708
- return self._includes
709
-
710
- @includes.setter
711
- def includes(self, includes):
712
- """Sets the includes of this PythonPythonRemote.
713
-
714
- A list containing project specifiers for Python packages to include. # noqa: E501
715
-
716
- :param includes: The includes of this PythonPythonRemote. # noqa: E501
717
- :type: list[str]
718
- """
719
-
720
- self._includes = includes
721
-
722
- @property
723
- def excludes(self):
724
- """Gets the excludes of this PythonPythonRemote. # noqa: E501
725
-
726
- A list containing project specifiers for Python packages to exclude. # noqa: E501
727
-
728
- :return: The excludes of this PythonPythonRemote. # noqa: E501
729
- :rtype: list[str]
730
- """
731
- return self._excludes
732
-
733
- @excludes.setter
734
- def excludes(self, excludes):
735
- """Sets the excludes of this PythonPythonRemote.
736
-
737
- A list containing project specifiers for Python packages to exclude. # noqa: E501
738
-
739
- :param excludes: The excludes of this PythonPythonRemote. # noqa: E501
740
- :type: list[str]
741
- """
742
-
743
- self._excludes = excludes
744
-
745
- @property
746
- def prereleases(self):
747
- """Gets the prereleases of this PythonPythonRemote. # noqa: E501
748
-
749
- Whether or not to include pre-release packages in the sync. # noqa: E501
750
-
751
- :return: The prereleases of this PythonPythonRemote. # noqa: E501
752
- :rtype: bool
753
- """
754
- return self._prereleases
755
-
756
- @prereleases.setter
757
- def prereleases(self, prereleases):
758
- """Sets the prereleases of this PythonPythonRemote.
759
-
760
- Whether or not to include pre-release packages in the sync. # noqa: E501
761
-
762
- :param prereleases: The prereleases of this PythonPythonRemote. # noqa: E501
763
- :type: bool
764
- """
765
-
766
- self._prereleases = prereleases
767
-
768
- @property
769
- def package_types(self):
770
- """Gets the package_types of this PythonPythonRemote. # noqa: E501
771
-
772
- The package types to sync for Python content. Leave blank to get everypackage type. # noqa: E501
773
-
774
- :return: The package_types of this PythonPythonRemote. # noqa: E501
775
- :rtype: list[PackageTypesEnum]
776
- """
777
- return self._package_types
778
-
779
- @package_types.setter
780
- def package_types(self, package_types):
781
- """Sets the package_types of this PythonPythonRemote.
782
-
783
- The package types to sync for Python content. Leave blank to get everypackage type. # noqa: E501
784
-
785
- :param package_types: The package_types of this PythonPythonRemote. # noqa: E501
786
- :type: list[PackageTypesEnum]
787
- """
788
-
789
- self._package_types = package_types
790
-
791
- @property
792
- def keep_latest_packages(self):
793
- """Gets the keep_latest_packages of this PythonPythonRemote. # noqa: E501
794
-
795
- The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions. # noqa: E501
796
-
797
- :return: The keep_latest_packages of this PythonPythonRemote. # noqa: E501
798
- :rtype: int
799
- """
800
- return self._keep_latest_packages
801
-
802
- @keep_latest_packages.setter
803
- def keep_latest_packages(self, keep_latest_packages):
804
- """Sets the keep_latest_packages of this PythonPythonRemote.
805
-
806
- The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions. # noqa: E501
807
-
808
- :param keep_latest_packages: The keep_latest_packages of this PythonPythonRemote. # noqa: E501
809
- :type: int
810
- """
811
-
812
- self._keep_latest_packages = keep_latest_packages
813
-
814
- @property
815
- def exclude_platforms(self):
816
- """Gets the exclude_platforms of this PythonPythonRemote. # noqa: E501
817
-
818
- List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux. # noqa: E501
819
-
820
- :return: The exclude_platforms of this PythonPythonRemote. # noqa: E501
821
- :rtype: list[ExcludePlatformsEnum]
822
- """
823
- return self._exclude_platforms
824
-
825
- @exclude_platforms.setter
826
- def exclude_platforms(self, exclude_platforms):
827
- """Sets the exclude_platforms of this PythonPythonRemote.
828
-
829
- List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux. # noqa: E501
830
-
831
- :param exclude_platforms: The exclude_platforms of this PythonPythonRemote. # noqa: E501
832
- :type: list[ExcludePlatformsEnum]
833
- """
834
219
 
835
- self._exclude_platforms = exclude_platforms
836
-
837
- def to_dict(self):
838
- """Returns the model properties as a dict"""
839
- result = {}
840
-
841
- for attr, _ in six.iteritems(self.openapi_types):
842
- value = getattr(self, attr)
843
- if isinstance(value, list):
844
- result[attr] = list(map(
845
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
846
- value
847
- ))
848
- elif hasattr(value, "to_dict"):
849
- result[attr] = value.to_dict()
850
- elif isinstance(value, dict):
851
- result[attr] = dict(map(
852
- lambda item: (item[0], item[1].to_dict())
853
- if hasattr(item[1], "to_dict") else item,
854
- value.items()
855
- ))
856
- else:
857
- result[attr] = value
858
-
859
- return result
860
-
861
- def to_str(self):
862
- """Returns the string representation of the model"""
863
- return pprint.pformat(self.to_dict())
864
-
865
- def __repr__(self):
866
- """For `print` and `pprint`"""
867
- return self.to_str()
868
-
869
- def __eq__(self, other):
870
- """Returns true if both objects are equal"""
871
- if not isinstance(other, PythonPythonRemote):
872
- return False
873
-
874
- return self.to_dict() == other.to_dict()
875
-
876
- def __ne__(self, other):
877
- """Returns true if both objects are not equal"""
878
- if not isinstance(other, PythonPythonRemote):
879
- return True
880
-
881
- return self.to_dict() != other.to_dict()