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