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,987 +3,197 @@
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
19
+ import json
16
20
 
17
- import six
18
-
19
- from pulpcore.client.pulp_python.configuration import Configuration
20
-
21
+ from datetime import datetime
22
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
23
+ from typing import Any, ClassVar, Dict, List, Optional
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
21
26
 
22
- class PythonPythonPackageContentResponse(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.
27
+ class PythonPythonPackageContentResponse(BaseModel):
35
28
  """
36
- openapi_types = {
37
- 'pulp_href': 'str',
38
- 'prn': 'str',
39
- 'pulp_created': 'datetime',
40
- 'pulp_last_updated': 'datetime',
41
- 'artifact': 'str',
42
- 'filename': 'str',
43
- 'packagetype': 'str',
44
- 'name': 'str',
45
- 'version': 'str',
46
- 'sha256': 'str',
47
- 'metadata_version': 'str',
48
- 'summary': 'str',
49
- 'description': 'str',
50
- 'description_content_type': 'str',
51
- 'keywords': 'str',
52
- 'home_page': 'str',
53
- 'download_url': 'str',
54
- 'author': 'str',
55
- 'author_email': 'str',
56
- 'maintainer': 'str',
57
- 'maintainer_email': 'str',
58
- 'license': 'str',
59
- 'requires_python': 'str',
60
- 'project_url': 'str',
61
- 'project_urls': 'object',
62
- 'platform': 'str',
63
- 'supported_platform': 'str',
64
- 'requires_dist': 'object',
65
- 'provides_dist': 'object',
66
- 'obsoletes_dist': 'object',
67
- 'requires_external': 'object',
68
- 'classifiers': 'object'
69
- }
70
-
71
- attribute_map = {
72
- 'pulp_href': 'pulp_href',
73
- 'prn': 'prn',
74
- 'pulp_created': 'pulp_created',
75
- 'pulp_last_updated': 'pulp_last_updated',
76
- 'artifact': 'artifact',
77
- 'filename': 'filename',
78
- 'packagetype': 'packagetype',
79
- 'name': 'name',
80
- 'version': 'version',
81
- 'sha256': 'sha256',
82
- 'metadata_version': 'metadata_version',
83
- 'summary': 'summary',
84
- 'description': 'description',
85
- 'description_content_type': 'description_content_type',
86
- 'keywords': 'keywords',
87
- 'home_page': 'home_page',
88
- 'download_url': 'download_url',
89
- 'author': 'author',
90
- 'author_email': 'author_email',
91
- 'maintainer': 'maintainer',
92
- 'maintainer_email': 'maintainer_email',
93
- 'license': 'license',
94
- 'requires_python': 'requires_python',
95
- 'project_url': 'project_url',
96
- 'project_urls': 'project_urls',
97
- 'platform': 'platform',
98
- 'supported_platform': 'supported_platform',
99
- 'requires_dist': 'requires_dist',
100
- 'provides_dist': 'provides_dist',
101
- 'obsoletes_dist': 'obsoletes_dist',
102
- 'requires_external': 'requires_external',
103
- 'classifiers': 'classifiers'
104
- }
105
-
106
- def __init__(self, pulp_href=None, prn=None, pulp_created=None, pulp_last_updated=None, artifact=None, filename=None, packagetype=None, name=None, version=None, sha256='', metadata_version=None, summary=None, description=None, description_content_type=None, keywords=None, home_page=None, download_url=None, author=None, author_email=None, maintainer=None, maintainer_email=None, license=None, requires_python=None, project_url=None, project_urls=None, platform=None, supported_platform=None, requires_dist=None, provides_dist=None, obsoletes_dist=None, requires_external=None, classifiers=None, local_vars_configuration=None): # noqa: E501
107
- """PythonPythonPackageContentResponse - a model defined in OpenAPI""" # noqa: E501
108
- if local_vars_configuration is None:
109
- local_vars_configuration = Configuration()
110
- self.local_vars_configuration = local_vars_configuration
111
-
112
- self._pulp_href = None
113
- self._prn = None
114
- self._pulp_created = None
115
- self._pulp_last_updated = None
116
- self._artifact = None
117
- self._filename = None
118
- self._packagetype = None
119
- self._name = None
120
- self._version = None
121
- self._sha256 = None
122
- self._metadata_version = None
123
- self._summary = None
124
- self._description = None
125
- self._description_content_type = None
126
- self._keywords = None
127
- self._home_page = None
128
- self._download_url = None
129
- self._author = None
130
- self._author_email = None
131
- self._maintainer = None
132
- self._maintainer_email = None
133
- self._license = None
134
- self._requires_python = None
135
- self._project_url = None
136
- self._project_urls = None
137
- self._platform = None
138
- self._supported_platform = None
139
- self._requires_dist = None
140
- self._provides_dist = None
141
- self._obsoletes_dist = None
142
- self._requires_external = None
143
- self._classifiers = None
144
- self.discriminator = None
145
-
146
- if pulp_href is not None:
147
- self.pulp_href = pulp_href
148
- if prn is not None:
149
- self.prn = prn
150
- if pulp_created is not None:
151
- self.pulp_created = pulp_created
152
- if pulp_last_updated is not None:
153
- self.pulp_last_updated = pulp_last_updated
154
- if artifact is not None:
155
- self.artifact = artifact
156
- if filename is not None:
157
- self.filename = filename
158
- if packagetype is not None:
159
- self.packagetype = packagetype
160
- if name is not None:
161
- self.name = name
162
- if version is not None:
163
- self.version = version
164
- if sha256 is not None:
165
- self.sha256 = sha256
166
- if metadata_version is not None:
167
- self.metadata_version = metadata_version
168
- if summary is not None:
169
- self.summary = summary
170
- if description is not None:
171
- self.description = description
172
- if description_content_type is not None:
173
- self.description_content_type = description_content_type
174
- if keywords is not None:
175
- self.keywords = keywords
176
- if home_page is not None:
177
- self.home_page = home_page
178
- if download_url is not None:
179
- self.download_url = download_url
180
- if author is not None:
181
- self.author = author
182
- if author_email is not None:
183
- self.author_email = author_email
184
- if maintainer is not None:
185
- self.maintainer = maintainer
186
- if maintainer_email is not None:
187
- self.maintainer_email = maintainer_email
188
- if license is not None:
189
- self.license = license
190
- if requires_python is not None:
191
- self.requires_python = requires_python
192
- if project_url is not None:
193
- self.project_url = project_url
194
- if project_urls is not None:
195
- self.project_urls = project_urls
196
- if platform is not None:
197
- self.platform = platform
198
- if supported_platform is not None:
199
- self.supported_platform = supported_platform
200
- if requires_dist is not None:
201
- self.requires_dist = requires_dist
202
- if provides_dist is not None:
203
- self.provides_dist = provides_dist
204
- if obsoletes_dist is not None:
205
- self.obsoletes_dist = obsoletes_dist
206
- if requires_external is not None:
207
- self.requires_external = requires_external
208
- if classifiers is not None:
209
- self.classifiers = classifiers
210
-
211
- @property
212
- def pulp_href(self):
213
- """Gets the pulp_href of this PythonPythonPackageContentResponse. # noqa: E501
214
-
215
-
216
- :return: The pulp_href of this PythonPythonPackageContentResponse. # noqa: E501
217
- :rtype: str
218
- """
219
- return self._pulp_href
220
-
221
- @pulp_href.setter
222
- def pulp_href(self, pulp_href):
223
- """Sets the pulp_href of this PythonPythonPackageContentResponse.
224
-
225
-
226
- :param pulp_href: The pulp_href of this PythonPythonPackageContentResponse. # noqa: E501
227
- :type: str
228
- """
229
-
230
- self._pulp_href = pulp_href
231
-
232
- @property
233
- def prn(self):
234
- """Gets the prn of this PythonPythonPackageContentResponse. # noqa: E501
235
-
236
- The Pulp Resource Name (PRN). # noqa: E501
237
-
238
- :return: The prn of this PythonPythonPackageContentResponse. # noqa: E501
239
- :rtype: str
240
- """
241
- return self._prn
242
-
243
- @prn.setter
244
- def prn(self, prn):
245
- """Sets the prn of this PythonPythonPackageContentResponse.
246
-
247
- The Pulp Resource Name (PRN). # noqa: E501
248
-
249
- :param prn: The prn of this PythonPythonPackageContentResponse. # noqa: E501
250
- :type: str
251
- """
252
-
253
- self._prn = prn
254
-
255
- @property
256
- def pulp_created(self):
257
- """Gets the pulp_created of this PythonPythonPackageContentResponse. # noqa: E501
258
-
259
- Timestamp of creation. # noqa: E501
260
-
261
- :return: The pulp_created of this PythonPythonPackageContentResponse. # noqa: E501
262
- :rtype: datetime
263
- """
264
- return self._pulp_created
265
-
266
- @pulp_created.setter
267
- def pulp_created(self, pulp_created):
268
- """Sets the pulp_created of this PythonPythonPackageContentResponse.
269
-
270
- Timestamp of creation. # noqa: E501
271
-
272
- :param pulp_created: The pulp_created of this PythonPythonPackageContentResponse. # noqa: E501
273
- :type: datetime
274
- """
275
-
276
- self._pulp_created = pulp_created
277
-
278
- @property
279
- def pulp_last_updated(self):
280
- """Gets the pulp_last_updated of this PythonPythonPackageContentResponse. # noqa: E501
281
-
282
- Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. # noqa: E501
283
-
284
- :return: The pulp_last_updated of this PythonPythonPackageContentResponse. # noqa: E501
285
- :rtype: datetime
286
- """
287
- return self._pulp_last_updated
288
-
289
- @pulp_last_updated.setter
290
- def pulp_last_updated(self, pulp_last_updated):
291
- """Sets the pulp_last_updated of this PythonPythonPackageContentResponse.
292
-
293
- Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. # noqa: E501
294
-
295
- :param pulp_last_updated: The pulp_last_updated of this PythonPythonPackageContentResponse. # noqa: E501
296
- :type: datetime
297
- """
298
-
299
- self._pulp_last_updated = pulp_last_updated
300
-
301
- @property
302
- def artifact(self):
303
- """Gets the artifact of this PythonPythonPackageContentResponse. # noqa: E501
304
-
305
- Artifact file representing the physical content # noqa: E501
306
-
307
- :return: The artifact of this PythonPythonPackageContentResponse. # noqa: E501
308
- :rtype: str
309
- """
310
- return self._artifact
311
-
312
- @artifact.setter
313
- def artifact(self, artifact):
314
- """Sets the artifact of this PythonPythonPackageContentResponse.
315
-
316
- Artifact file representing the physical content # noqa: E501
317
-
318
- :param artifact: The artifact of this PythonPythonPackageContentResponse. # noqa: E501
319
- :type: str
320
- """
321
-
322
- self._artifact = artifact
323
-
324
- @property
325
- def filename(self):
326
- """Gets the filename of this PythonPythonPackageContentResponse. # noqa: E501
327
-
328
- The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype} # noqa: E501
329
-
330
- :return: The filename of this PythonPythonPackageContentResponse. # noqa: E501
331
- :rtype: str
332
- """
333
- return self._filename
334
-
335
- @filename.setter
336
- def filename(self, filename):
337
- """Sets the filename of this PythonPythonPackageContentResponse.
338
-
339
- The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype} # noqa: E501
340
-
341
- :param filename: The filename of this PythonPythonPackageContentResponse. # noqa: E501
342
- :type: str
343
- """
344
-
345
- self._filename = filename
346
-
347
- @property
348
- def packagetype(self):
349
- """Gets the packagetype of this PythonPythonPackageContentResponse. # noqa: E501
350
-
351
- The type of the distribution package (e.g. sdist, bdist_wheel, bdist_egg, etc) # noqa: E501
352
-
353
- :return: The packagetype of this PythonPythonPackageContentResponse. # noqa: E501
354
- :rtype: str
355
- """
356
- return self._packagetype
357
-
358
- @packagetype.setter
359
- def packagetype(self, packagetype):
360
- """Sets the packagetype of this PythonPythonPackageContentResponse.
361
-
362
- The type of the distribution package (e.g. sdist, bdist_wheel, bdist_egg, etc) # noqa: E501
363
-
364
- :param packagetype: The packagetype of this PythonPythonPackageContentResponse. # noqa: E501
365
- :type: str
366
- """
367
-
368
- self._packagetype = packagetype
369
-
370
- @property
371
- def name(self):
372
- """Gets the name of this PythonPythonPackageContentResponse. # noqa: E501
373
-
374
- The name of the python project. # noqa: E501
375
-
376
- :return: The name of this PythonPythonPackageContentResponse. # noqa: E501
377
- :rtype: str
378
- """
379
- return self._name
380
-
381
- @name.setter
382
- def name(self, name):
383
- """Sets the name of this PythonPythonPackageContentResponse.
384
-
385
- The name of the python project. # noqa: E501
386
-
387
- :param name: The name of this PythonPythonPackageContentResponse. # noqa: E501
388
- :type: str
389
- """
390
-
391
- self._name = name
392
-
393
- @property
394
- def version(self):
395
- """Gets the version of this PythonPythonPackageContentResponse. # noqa: E501
396
-
397
- The packages version number. # noqa: E501
398
-
399
- :return: The version of this PythonPythonPackageContentResponse. # noqa: E501
400
- :rtype: str
401
- """
402
- return self._version
403
-
404
- @version.setter
405
- def version(self, version):
406
- """Sets the version of this PythonPythonPackageContentResponse.
407
-
408
- The packages version number. # noqa: E501
409
-
410
- :param version: The version of this PythonPythonPackageContentResponse. # noqa: E501
411
- :type: str
412
- """
413
-
414
- self._version = version
415
-
416
- @property
417
- def sha256(self):
418
- """Gets the sha256 of this PythonPythonPackageContentResponse. # noqa: E501
419
-
420
- The SHA256 digest of this package. # noqa: E501
421
-
422
- :return: The sha256 of this PythonPythonPackageContentResponse. # noqa: E501
423
- :rtype: str
424
- """
425
- return self._sha256
426
-
427
- @sha256.setter
428
- def sha256(self, sha256):
429
- """Sets the sha256 of this PythonPythonPackageContentResponse.
430
-
431
- The SHA256 digest of this package. # noqa: E501
432
-
433
- :param sha256: The sha256 of this PythonPythonPackageContentResponse. # noqa: E501
434
- :type: str
435
- """
436
-
437
- self._sha256 = sha256
438
-
439
- @property
440
- def metadata_version(self):
441
- """Gets the metadata_version of this PythonPythonPackageContentResponse. # noqa: E501
442
-
443
- Version of the file format # noqa: E501
444
-
445
- :return: The metadata_version of this PythonPythonPackageContentResponse. # noqa: E501
446
- :rtype: str
447
- """
448
- return self._metadata_version
449
-
450
- @metadata_version.setter
451
- def metadata_version(self, metadata_version):
452
- """Sets the metadata_version of this PythonPythonPackageContentResponse.
453
-
454
- Version of the file format # noqa: E501
455
-
456
- :param metadata_version: The metadata_version of this PythonPythonPackageContentResponse. # noqa: E501
457
- :type: str
458
- """
459
-
460
- self._metadata_version = metadata_version
461
-
462
- @property
463
- def summary(self):
464
- """Gets the summary of this PythonPythonPackageContentResponse. # noqa: E501
465
-
466
- A one-line summary of what the package does. # noqa: E501
467
-
468
- :return: The summary of this PythonPythonPackageContentResponse. # noqa: E501
469
- :rtype: str
470
- """
471
- return self._summary
472
-
473
- @summary.setter
474
- def summary(self, summary):
475
- """Sets the summary of this PythonPythonPackageContentResponse.
476
-
477
- A one-line summary of what the package does. # noqa: E501
478
-
479
- :param summary: The summary of this PythonPythonPackageContentResponse. # noqa: E501
480
- :type: str
481
- """
482
-
483
- self._summary = summary
484
-
485
- @property
486
- def description(self):
487
- """Gets the description of this PythonPythonPackageContentResponse. # noqa: E501
488
-
489
- A longer description of the package that can run to several paragraphs. # noqa: E501
490
-
491
- :return: The description of this PythonPythonPackageContentResponse. # noqa: E501
492
- :rtype: str
493
- """
494
- return self._description
495
-
496
- @description.setter
497
- def description(self, description):
498
- """Sets the description of this PythonPythonPackageContentResponse.
499
-
500
- A longer description of the package that can run to several paragraphs. # noqa: E501
501
-
502
- :param description: The description of this PythonPythonPackageContentResponse. # noqa: E501
503
- :type: str
504
- """
505
-
506
- self._description = description
507
-
508
- @property
509
- def description_content_type(self):
510
- """Gets the description_content_type of this PythonPythonPackageContentResponse. # noqa: E501
511
-
512
- A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description. # noqa: E501
513
-
514
- :return: The description_content_type of this PythonPythonPackageContentResponse. # noqa: E501
515
- :rtype: str
516
- """
517
- return self._description_content_type
518
-
519
- @description_content_type.setter
520
- def description_content_type(self, description_content_type):
521
- """Sets the description_content_type of this PythonPythonPackageContentResponse.
522
-
523
- A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description. # noqa: E501
524
-
525
- :param description_content_type: The description_content_type of this PythonPythonPackageContentResponse. # noqa: E501
526
- :type: str
527
- """
528
-
529
- self._description_content_type = description_content_type
530
-
531
- @property
532
- def keywords(self):
533
- """Gets the keywords of this PythonPythonPackageContentResponse. # noqa: E501
534
-
535
- Additional keywords to be used to assist searching for the package in a larger catalog. # noqa: E501
536
-
537
- :return: The keywords of this PythonPythonPackageContentResponse. # noqa: E501
538
- :rtype: str
539
- """
540
- return self._keywords
541
-
542
- @keywords.setter
543
- def keywords(self, keywords):
544
- """Sets the keywords of this PythonPythonPackageContentResponse.
545
-
546
- Additional keywords to be used to assist searching for the package in a larger catalog. # noqa: E501
547
-
548
- :param keywords: The keywords of this PythonPythonPackageContentResponse. # noqa: E501
549
- :type: str
550
- """
551
-
552
- self._keywords = keywords
553
-
554
- @property
555
- def home_page(self):
556
- """Gets the home_page of this PythonPythonPackageContentResponse. # noqa: E501
557
-
558
- The URL for the package's home page. # noqa: E501
559
-
560
- :return: The home_page of this PythonPythonPackageContentResponse. # noqa: E501
561
- :rtype: str
562
- """
563
- return self._home_page
564
-
565
- @home_page.setter
566
- def home_page(self, home_page):
567
- """Sets the home_page of this PythonPythonPackageContentResponse.
568
-
569
- The URL for the package's home page. # noqa: E501
570
-
571
- :param home_page: The home_page of this PythonPythonPackageContentResponse. # noqa: E501
572
- :type: str
573
- """
574
-
575
- self._home_page = home_page
576
-
577
- @property
578
- def download_url(self):
579
- """Gets the download_url of this PythonPythonPackageContentResponse. # noqa: E501
580
-
581
- Legacy field denoting the URL from which this package can be downloaded. # noqa: E501
582
-
583
- :return: The download_url of this PythonPythonPackageContentResponse. # noqa: E501
584
- :rtype: str
585
- """
586
- return self._download_url
587
-
588
- @download_url.setter
589
- def download_url(self, download_url):
590
- """Sets the download_url of this PythonPythonPackageContentResponse.
591
-
592
- Legacy field denoting the URL from which this package can be downloaded. # noqa: E501
593
-
594
- :param download_url: The download_url of this PythonPythonPackageContentResponse. # noqa: E501
595
- :type: str
596
- """
597
-
598
- self._download_url = download_url
599
-
600
- @property
601
- def author(self):
602
- """Gets the author of this PythonPythonPackageContentResponse. # noqa: E501
603
-
604
- Text containing the author's name. Contact information can also be added, separated with newlines. # noqa: E501
605
-
606
- :return: The author of this PythonPythonPackageContentResponse. # noqa: E501
607
- :rtype: str
608
- """
609
- return self._author
610
-
611
- @author.setter
612
- def author(self, author):
613
- """Sets the author of this PythonPythonPackageContentResponse.
614
-
615
- Text containing the author's name. Contact information can also be added, separated with newlines. # noqa: E501
616
-
617
- :param author: The author of this PythonPythonPackageContentResponse. # noqa: E501
618
- :type: str
619
- """
620
-
621
- self._author = author
622
-
623
- @property
624
- def author_email(self):
625
- """Gets the author_email of this PythonPythonPackageContentResponse. # noqa: E501
626
-
627
- The author's e-mail address. # noqa: E501
628
-
629
- :return: The author_email of this PythonPythonPackageContentResponse. # noqa: E501
630
- :rtype: str
631
- """
632
- return self._author_email
633
-
634
- @author_email.setter
635
- def author_email(self, author_email):
636
- """Sets the author_email of this PythonPythonPackageContentResponse.
637
-
638
- The author's e-mail address. # noqa: E501
639
-
640
- :param author_email: The author_email of this PythonPythonPackageContentResponse. # noqa: E501
641
- :type: str
642
- """
643
-
644
- self._author_email = author_email
645
-
646
- @property
647
- def maintainer(self):
648
- """Gets the maintainer of this PythonPythonPackageContentResponse. # noqa: E501
649
-
650
- The maintainer's name at a minimum; additional contact information may be provided. # noqa: E501
651
-
652
- :return: The maintainer of this PythonPythonPackageContentResponse. # noqa: E501
653
- :rtype: str
654
- """
655
- return self._maintainer
656
-
657
- @maintainer.setter
658
- def maintainer(self, maintainer):
659
- """Sets the maintainer of this PythonPythonPackageContentResponse.
660
-
661
- The maintainer's name at a minimum; additional contact information may be provided. # noqa: E501
662
-
663
- :param maintainer: The maintainer of this PythonPythonPackageContentResponse. # noqa: E501
664
- :type: str
665
- """
666
-
667
- self._maintainer = maintainer
668
-
669
- @property
670
- def maintainer_email(self):
671
- """Gets the maintainer_email of this PythonPythonPackageContentResponse. # noqa: E501
672
-
673
- The maintainer's e-mail address. # noqa: E501
674
-
675
- :return: The maintainer_email of this PythonPythonPackageContentResponse. # noqa: E501
676
- :rtype: str
677
- """
678
- return self._maintainer_email
679
-
680
- @maintainer_email.setter
681
- def maintainer_email(self, maintainer_email):
682
- """Sets the maintainer_email of this PythonPythonPackageContentResponse.
683
-
684
- The maintainer's e-mail address. # noqa: E501
685
-
686
- :param maintainer_email: The maintainer_email of this PythonPythonPackageContentResponse. # noqa: E501
687
- :type: str
688
- """
689
-
690
- self._maintainer_email = maintainer_email
691
-
692
- @property
693
- def license(self):
694
- """Gets the license of this PythonPythonPackageContentResponse. # noqa: E501
695
-
696
- Text indicating the license covering the distribution # noqa: E501
697
-
698
- :return: The license of this PythonPythonPackageContentResponse. # noqa: E501
699
- :rtype: str
700
- """
701
- return self._license
702
-
703
- @license.setter
704
- def license(self, license):
705
- """Sets the license of this PythonPythonPackageContentResponse.
706
-
707
- Text indicating the license covering the distribution # noqa: E501
708
-
709
- :param license: The license of this PythonPythonPackageContentResponse. # noqa: E501
710
- :type: str
711
- """
712
-
713
- self._license = license
714
-
715
- @property
716
- def requires_python(self):
717
- """Gets the requires_python of this PythonPythonPackageContentResponse. # noqa: E501
718
-
719
- The Python version(s) that the distribution is guaranteed to be compatible with. # noqa: E501
720
-
721
- :return: The requires_python of this PythonPythonPackageContentResponse. # noqa: E501
722
- :rtype: str
723
- """
724
- return self._requires_python
725
-
726
- @requires_python.setter
727
- def requires_python(self, requires_python):
728
- """Sets the requires_python of this PythonPythonPackageContentResponse.
729
-
730
- The Python version(s) that the distribution is guaranteed to be compatible with. # noqa: E501
731
-
732
- :param requires_python: The requires_python of this PythonPythonPackageContentResponse. # noqa: E501
733
- :type: str
734
- """
735
-
736
- self._requires_python = requires_python
737
-
738
- @property
739
- def project_url(self):
740
- """Gets the project_url of this PythonPythonPackageContentResponse. # noqa: E501
741
-
742
- A browsable URL for the project and a label for it, separated by a comma. # noqa: E501
743
-
744
- :return: The project_url of this PythonPythonPackageContentResponse. # noqa: E501
745
- :rtype: str
746
- """
747
- return self._project_url
748
-
749
- @project_url.setter
750
- def project_url(self, project_url):
751
- """Sets the project_url of this PythonPythonPackageContentResponse.
752
-
753
- A browsable URL for the project and a label for it, separated by a comma. # noqa: E501
754
-
755
- :param project_url: The project_url of this PythonPythonPackageContentResponse. # noqa: E501
756
- :type: str
757
- """
758
-
759
- self._project_url = project_url
760
-
761
- @property
762
- def project_urls(self):
763
- """Gets the project_urls of this PythonPythonPackageContentResponse. # noqa: E501
764
-
765
- A dictionary of labels and URLs for the project. # noqa: E501
766
-
767
- :return: The project_urls of this PythonPythonPackageContentResponse. # noqa: E501
768
- :rtype: object
769
- """
770
- return self._project_urls
771
-
772
- @project_urls.setter
773
- def project_urls(self, project_urls):
774
- """Sets the project_urls of this PythonPythonPackageContentResponse.
775
-
776
- A dictionary of labels and URLs for the project. # noqa: E501
777
-
778
- :param project_urls: The project_urls of this PythonPythonPackageContentResponse. # noqa: E501
779
- :type: object
780
- """
781
-
782
- self._project_urls = project_urls
783
-
784
- @property
785
- def platform(self):
786
- """Gets the platform of this PythonPythonPackageContentResponse. # noqa: E501
787
-
788
- A comma-separated list of platform specifications, summarizing the operating systems supported by the package. # noqa: E501
789
-
790
- :return: The platform of this PythonPythonPackageContentResponse. # noqa: E501
791
- :rtype: str
792
- """
793
- return self._platform
794
-
795
- @platform.setter
796
- def platform(self, platform):
797
- """Sets the platform of this PythonPythonPackageContentResponse.
798
-
799
- A comma-separated list of platform specifications, summarizing the operating systems supported by the package. # noqa: E501
800
-
801
- :param platform: The platform of this PythonPythonPackageContentResponse. # noqa: E501
802
- :type: str
803
- """
804
-
805
- self._platform = platform
806
-
807
- @property
808
- def supported_platform(self):
809
- """Gets the supported_platform of this PythonPythonPackageContentResponse. # noqa: E501
810
-
811
- Field to specify the OS and CPU for which the binary package was compiled. # noqa: E501
812
-
813
- :return: The supported_platform of this PythonPythonPackageContentResponse. # noqa: E501
814
- :rtype: str
815
- """
816
- return self._supported_platform
817
-
818
- @supported_platform.setter
819
- def supported_platform(self, supported_platform):
820
- """Sets the supported_platform of this PythonPythonPackageContentResponse.
821
-
822
- Field to specify the OS and CPU for which the binary package was compiled. # noqa: E501
823
-
824
- :param supported_platform: The supported_platform of this PythonPythonPackageContentResponse. # noqa: E501
825
- :type: str
826
- """
827
-
828
- self._supported_platform = supported_platform
829
-
830
- @property
831
- def requires_dist(self):
832
- """Gets the requires_dist of this PythonPythonPackageContentResponse. # noqa: E501
833
-
834
- A JSON list containing names of some other distutils project required by this distribution. # noqa: E501
835
-
836
- :return: The requires_dist of this PythonPythonPackageContentResponse. # noqa: E501
837
- :rtype: object
838
- """
839
- return self._requires_dist
840
-
841
- @requires_dist.setter
842
- def requires_dist(self, requires_dist):
843
- """Sets the requires_dist of this PythonPythonPackageContentResponse.
844
-
845
- A JSON list containing names of some other distutils project required by this distribution. # noqa: E501
846
-
847
- :param requires_dist: The requires_dist of this PythonPythonPackageContentResponse. # noqa: E501
848
- :type: object
849
- """
850
-
851
- self._requires_dist = requires_dist
852
-
853
- @property
854
- def provides_dist(self):
855
- """Gets the provides_dist of this PythonPythonPackageContentResponse. # noqa: E501
856
-
857
- A JSON list containing names of a Distutils project which is contained within this distribution. # noqa: E501
858
-
859
- :return: The provides_dist of this PythonPythonPackageContentResponse. # noqa: E501
860
- :rtype: object
861
- """
862
- return self._provides_dist
863
-
864
- @provides_dist.setter
865
- def provides_dist(self, provides_dist):
866
- """Sets the provides_dist of this PythonPythonPackageContentResponse.
867
-
868
- A JSON list containing names of a Distutils project which is contained within this distribution. # noqa: E501
869
-
870
- :param provides_dist: The provides_dist of this PythonPythonPackageContentResponse. # noqa: E501
871
- :type: object
872
- """
873
-
874
- self._provides_dist = provides_dist
875
-
876
- @property
877
- def obsoletes_dist(self):
878
- """Gets the obsoletes_dist of this PythonPythonPackageContentResponse. # noqa: E501
879
-
880
- A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time. # noqa: E501
881
-
882
- :return: The obsoletes_dist of this PythonPythonPackageContentResponse. # noqa: E501
883
- :rtype: object
884
- """
885
- return self._obsoletes_dist
886
-
887
- @obsoletes_dist.setter
888
- def obsoletes_dist(self, obsoletes_dist):
889
- """Sets the obsoletes_dist of this PythonPythonPackageContentResponse.
890
-
891
- A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time. # noqa: E501
892
-
893
- :param obsoletes_dist: The obsoletes_dist of this PythonPythonPackageContentResponse. # noqa: E501
894
- :type: object
895
- """
896
-
897
- self._obsoletes_dist = obsoletes_dist
898
-
899
- @property
900
- def requires_external(self):
901
- """Gets the requires_external of this PythonPythonPackageContentResponse. # noqa: E501
902
-
903
- A JSON list containing some dependency in the system that the distribution is to be used. # noqa: E501
904
-
905
- :return: The requires_external of this PythonPythonPackageContentResponse. # noqa: E501
906
- :rtype: object
907
- """
908
- return self._requires_external
909
-
910
- @requires_external.setter
911
- def requires_external(self, requires_external):
912
- """Sets the requires_external of this PythonPythonPackageContentResponse.
913
-
914
- A JSON list containing some dependency in the system that the distribution is to be used. # noqa: E501
915
-
916
- :param requires_external: The requires_external of this PythonPythonPackageContentResponse. # noqa: E501
917
- :type: object
918
- """
919
-
920
- self._requires_external = requires_external
921
-
922
- @property
923
- def classifiers(self):
924
- """Gets the classifiers of this PythonPythonPackageContentResponse. # noqa: E501
925
-
926
- A JSON list containing classification values for a Python package. # noqa: E501
927
-
928
- :return: The classifiers of this PythonPythonPackageContentResponse. # noqa: E501
929
- :rtype: object
930
- """
931
- return self._classifiers
932
-
933
- @classifiers.setter
934
- def classifiers(self, classifiers):
935
- """Sets the classifiers of this PythonPythonPackageContentResponse.
936
-
937
- A JSON list containing classification values for a Python package. # noqa: E501
938
-
939
- :param classifiers: The classifiers of this PythonPythonPackageContentResponse. # noqa: E501
940
- :type: object
941
- """
942
-
943
- self._classifiers = classifiers
944
-
945
- def to_dict(self):
946
- """Returns the model properties as a dict"""
947
- result = {}
948
-
949
- for attr, _ in six.iteritems(self.openapi_types):
950
- value = getattr(self, attr)
951
- if isinstance(value, list):
952
- result[attr] = list(map(
953
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
954
- value
955
- ))
956
- elif hasattr(value, "to_dict"):
957
- result[attr] = value.to_dict()
958
- elif isinstance(value, dict):
959
- result[attr] = dict(map(
960
- lambda item: (item[0], item[1].to_dict())
961
- if hasattr(item[1], "to_dict") else item,
962
- value.items()
963
- ))
964
- else:
965
- result[attr] = value
966
-
967
- return result
968
-
969
- def to_str(self):
970
- """Returns the string representation of the model"""
971
- return pprint.pformat(self.to_dict())
972
-
973
- def __repr__(self):
974
- """For `print` and `pprint`"""
975
- return self.to_str()
976
-
977
- def __eq__(self, other):
978
- """Returns true if both objects are equal"""
979
- if not isinstance(other, PythonPythonPackageContentResponse):
980
- return False
981
-
982
- return self.to_dict() == other.to_dict()
29
+ A Serializer for PythonPackageContent.
30
+ """ # noqa: E501
31
+ pulp_href: Optional[StrictStr] = None
32
+ prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
33
+ pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
34
+ pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.")
35
+ artifact: Optional[StrictStr] = Field(default=None, description="Artifact file representing the physical content")
36
+ filename: Optional[StrictStr] = Field(default=None, description="The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype}")
37
+ packagetype: Optional[StrictStr] = Field(default=None, description="The type of the distribution package (e.g. sdist, bdist_wheel, bdist_egg, etc)")
38
+ name: Optional[StrictStr] = Field(default=None, description="The name of the python project.")
39
+ version: Optional[StrictStr] = Field(default=None, description="The packages version number.")
40
+ sha256: Optional[StrictStr] = Field(default='', description="The SHA256 digest of this package.")
41
+ metadata_version: Optional[StrictStr] = Field(default=None, description="Version of the file format")
42
+ summary: Optional[StrictStr] = Field(default=None, description="A one-line summary of what the package does.")
43
+ description: Optional[StrictStr] = Field(default=None, description="A longer description of the package that can run to several paragraphs.")
44
+ description_content_type: Optional[StrictStr] = Field(default=None, description="A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.")
45
+ keywords: Optional[StrictStr] = Field(default=None, description="Additional keywords to be used to assist searching for the package in a larger catalog.")
46
+ home_page: Optional[StrictStr] = Field(default=None, description="The URL for the package's home page.")
47
+ download_url: Optional[StrictStr] = Field(default=None, description="Legacy field denoting the URL from which this package can be downloaded.")
48
+ author: Optional[StrictStr] = Field(default=None, description="Text containing the author's name. Contact information can also be added, separated with newlines.")
49
+ author_email: Optional[StrictStr] = Field(default=None, description="The author's e-mail address. ")
50
+ maintainer: Optional[StrictStr] = Field(default=None, description="The maintainer's name at a minimum; additional contact information may be provided.")
51
+ maintainer_email: Optional[StrictStr] = Field(default=None, description="The maintainer's e-mail address.")
52
+ license: Optional[StrictStr] = Field(default=None, description="Text indicating the license covering the distribution")
53
+ requires_python: Optional[StrictStr] = Field(default=None, description="The Python version(s) that the distribution is guaranteed to be compatible with.")
54
+ project_url: Optional[StrictStr] = Field(default=None, description="A browsable URL for the project and a label for it, separated by a comma.")
55
+ project_urls: Optional[Any] = Field(default=None, description="A dictionary of labels and URLs for the project.")
56
+ platform: Optional[StrictStr] = Field(default=None, description="A comma-separated list of platform specifications, summarizing the operating systems supported by the package.")
57
+ supported_platform: Optional[StrictStr] = Field(default=None, description="Field to specify the OS and CPU for which the binary package was compiled. ")
58
+ requires_dist: Optional[Any] = Field(default=None, description="A JSON list containing names of some other distutils project required by this distribution.")
59
+ provides_dist: Optional[Any] = Field(default=None, description="A JSON list containing names of a Distutils project which is contained within this distribution.")
60
+ obsoletes_dist: Optional[Any] = Field(default=None, description="A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.")
61
+ requires_external: Optional[Any] = Field(default=None, description="A JSON list containing some dependency in the system that the distribution is to be used.")
62
+ classifiers: Optional[Any] = Field(default=None, description="A JSON list containing classification values for a Python package.")
63
+ __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "artifact", "filename", "packagetype", "name", "version", "sha256", "metadata_version", "summary", "description", "description_content_type", "keywords", "home_page", "download_url", "author", "author_email", "maintainer", "maintainer_email", "license", "requires_python", "project_url", "project_urls", "platform", "supported_platform", "requires_dist", "provides_dist", "obsoletes_dist", "requires_external", "classifiers"]
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 PythonPythonPackageContentResponse 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
+ * OpenAPI `readOnly` fields are excluded.
101
+ * OpenAPI `readOnly` fields are excluded.
102
+ * OpenAPI `readOnly` fields are excluded.
103
+ * OpenAPI `readOnly` fields are excluded.
104
+ """
105
+ excluded_fields: Set[str] = set([
106
+ "pulp_href",
107
+ "prn",
108
+ "pulp_created",
109
+ "pulp_last_updated",
110
+ "filename",
111
+ "packagetype",
112
+ "name",
113
+ "version",
114
+ "metadata_version",
115
+ ])
116
+
117
+ _dict = self.model_dump(
118
+ by_alias=True,
119
+ exclude=excluded_fields,
120
+ exclude_none=True,
121
+ )
122
+ # set to None if project_urls (nullable) is None
123
+ # and model_fields_set contains the field
124
+ if self.project_urls is None and "project_urls" in self.model_fields_set:
125
+ _dict['project_urls'] = None
126
+
127
+ # set to None if requires_dist (nullable) is None
128
+ # and model_fields_set contains the field
129
+ if self.requires_dist is None and "requires_dist" in self.model_fields_set:
130
+ _dict['requires_dist'] = None
131
+
132
+ # set to None if provides_dist (nullable) is None
133
+ # and model_fields_set contains the field
134
+ if self.provides_dist is None and "provides_dist" in self.model_fields_set:
135
+ _dict['provides_dist'] = None
136
+
137
+ # set to None if obsoletes_dist (nullable) is None
138
+ # and model_fields_set contains the field
139
+ if self.obsoletes_dist is None and "obsoletes_dist" in self.model_fields_set:
140
+ _dict['obsoletes_dist'] = None
141
+
142
+ # set to None if requires_external (nullable) is None
143
+ # and model_fields_set contains the field
144
+ if self.requires_external is None and "requires_external" in self.model_fields_set:
145
+ _dict['requires_external'] = None
146
+
147
+ # set to None if classifiers (nullable) is None
148
+ # and model_fields_set contains the field
149
+ if self.classifiers is None and "classifiers" in self.model_fields_set:
150
+ _dict['classifiers'] = None
151
+
152
+ return _dict
153
+
154
+ @classmethod
155
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
156
+ """Create an instance of PythonPythonPackageContentResponse from a dict"""
157
+ if obj is None:
158
+ return None
159
+
160
+ if not isinstance(obj, dict):
161
+ return cls.model_validate(obj)
162
+
163
+ _obj = cls.model_validate({
164
+ "pulp_href": obj.get("pulp_href"),
165
+ "prn": obj.get("prn"),
166
+ "pulp_created": obj.get("pulp_created"),
167
+ "pulp_last_updated": obj.get("pulp_last_updated"),
168
+ "artifact": obj.get("artifact"),
169
+ "filename": obj.get("filename"),
170
+ "packagetype": obj.get("packagetype"),
171
+ "name": obj.get("name"),
172
+ "version": obj.get("version"),
173
+ "sha256": obj.get("sha256") if obj.get("sha256") is not None else '',
174
+ "metadata_version": obj.get("metadata_version"),
175
+ "summary": obj.get("summary"),
176
+ "description": obj.get("description"),
177
+ "description_content_type": obj.get("description_content_type"),
178
+ "keywords": obj.get("keywords"),
179
+ "home_page": obj.get("home_page"),
180
+ "download_url": obj.get("download_url"),
181
+ "author": obj.get("author"),
182
+ "author_email": obj.get("author_email"),
183
+ "maintainer": obj.get("maintainer"),
184
+ "maintainer_email": obj.get("maintainer_email"),
185
+ "license": obj.get("license"),
186
+ "requires_python": obj.get("requires_python"),
187
+ "project_url": obj.get("project_url"),
188
+ "project_urls": obj.get("project_urls"),
189
+ "platform": obj.get("platform"),
190
+ "supported_platform": obj.get("supported_platform"),
191
+ "requires_dist": obj.get("requires_dist"),
192
+ "provides_dist": obj.get("provides_dist"),
193
+ "obsoletes_dist": obj.get("obsoletes_dist"),
194
+ "requires_external": obj.get("requires_external"),
195
+ "classifiers": obj.get("classifiers")
196
+ })
197
+ return _obj
983
198
 
984
- def __ne__(self, other):
985
- """Returns true if both objects are not equal"""
986
- if not isinstance(other, PythonPythonPackageContentResponse):
987
- return True
988
199
 
989
- return self.to_dict() != other.to_dict()