pulp_python_client 3.3.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -4
  3. data/build/lib/pulpcore/__init__.py +2 -0
  4. data/build/lib/pulpcore/client/__init__.py +2 -0
  5. data/build/lib/pulpcore/client/pulp_python/__init__.py +75 -0
  6. data/build/lib/pulpcore/client/pulp_python/api/__init__.py +15 -0
  7. data/build/lib/pulpcore/client/pulp_python/api/content_packages_api.py +626 -0
  8. data/build/lib/pulpcore/client/pulp_python/api/distributions_pypi_api.py +830 -0
  9. data/build/lib/pulpcore/client/pulp_python/api/publications_pypi_api.py +566 -0
  10. data/build/lib/pulpcore/client/pulp_python/api/pypi_api.py +162 -0
  11. data/build/lib/pulpcore/client/pulp_python/api/pypi_legacy_api.py +185 -0
  12. data/build/lib/pulpcore/client/pulp_python/api/pypi_metadata_api.py +171 -0
  13. data/build/lib/pulpcore/client/pulp_python/api/pypi_simple_api.py +434 -0
  14. data/build/lib/pulpcore/client/pulp_python/api/remotes_python_api.py +972 -0
  15. data/build/lib/pulpcore/client/pulp_python/api/repositories_python_api.py +1063 -0
  16. data/build/lib/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +614 -0
  17. data/build/lib/pulpcore/client/pulp_python/api_client.py +667 -0
  18. data/build/lib/pulpcore/client/pulp_python/configuration.py +427 -0
  19. data/build/lib/pulpcore/client/pulp_python/exceptions.py +121 -0
  20. data/build/lib/pulpcore/client/pulp_python/models/__init__.py +51 -0
  21. data/build/lib/pulpcore/client/pulp_python/models/async_operation_response.py +124 -0
  22. data/build/lib/pulpcore/client/pulp_python/models/content_summary.py +176 -0
  23. data/build/lib/pulpcore/client/pulp_python/models/content_summary_response.py +176 -0
  24. data/build/lib/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +103 -0
  25. data/build/lib/pulpcore/client/pulp_python/models/package_metadata_response.py +209 -0
  26. data/build/lib/pulpcore/client/pulp_python/models/package_types_enum.py +107 -0
  27. data/build/lib/pulpcore/client/pulp_python/models/package_upload.py +187 -0
  28. data/build/lib/pulpcore/client/pulp_python/models/package_upload_task_response.py +176 -0
  29. data/build/lib/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +197 -0
  30. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +197 -0
  31. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +197 -0
  32. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +197 -0
  33. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +197 -0
  34. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +197 -0
  35. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +286 -0
  36. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +823 -0
  37. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +259 -0
  38. data/build/lib/pulpcore/client/pulp_python/models/policy_enum.py +102 -0
  39. data/build/lib/pulpcore/client/pulp_python/models/python_bander_remote.py +181 -0
  40. data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution.py +288 -0
  41. data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution_response.py +368 -0
  42. data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content.py +824 -0
  43. data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content_response.py +933 -0
  44. data/build/lib/pulpcore/client/pulp_python/models/python_python_publication.py +149 -0
  45. data/build/lib/pulpcore/client/pulp_python/models/python_python_publication_response.py +231 -0
  46. data/build/lib/pulpcore/client/pulp_python/models/python_python_remote.py +825 -0
  47. data/build/lib/pulpcore/client/pulp_python/models/python_python_remote_response.py +772 -0
  48. data/build/lib/pulpcore/client/pulp_python/models/python_python_repository.py +260 -0
  49. data/build/lib/pulpcore/client/pulp_python/models/python_python_repository_response.py +366 -0
  50. data/build/lib/pulpcore/client/pulp_python/models/repository_add_remove_content.py +179 -0
  51. data/build/lib/pulpcore/client/pulp_python/models/repository_sync_url.py +151 -0
  52. data/build/lib/pulpcore/client/pulp_python/models/repository_version.py +123 -0
  53. data/build/lib/pulpcore/client/pulp_python/models/repository_version_response.py +257 -0
  54. data/build/lib/pulpcore/client/pulp_python/models/summary_response.py +182 -0
  55. data/build/lib/pulpcore/client/pulp_python/rest.py +292 -0
  56. data/dist/pulp_python-client-3.4.0.tar.gz +0 -0
  57. data/dist/pulp_python_client-3.4.0-py3-none-any.whl +0 -0
  58. data/docs/ContentPackagesApi.md +6 -0
  59. data/docs/DistributionsPypiApi.md +2 -2
  60. data/docs/PackageMetadataResponse.md +23 -0
  61. data/docs/PackageUpload.md +21 -0
  62. data/docs/PackageUploadTaskResponse.md +21 -0
  63. data/docs/PatchedpythonPythonDistribution.md +3 -1
  64. data/docs/PatchedpythonPythonRemote.md +1 -1
  65. data/docs/PublicationsPypiApi.md +1 -1
  66. data/docs/PypiApi.md +62 -0
  67. data/docs/PypiLegacyApi.md +70 -0
  68. data/docs/PypiMetadataApi.md +64 -0
  69. data/docs/PypiSimpleApi.md +190 -0
  70. data/docs/PythonBanderRemote.md +1 -1
  71. data/docs/PythonPythonDistribution.md +3 -1
  72. data/docs/PythonPythonDistributionResponse.md +4 -2
  73. data/docs/PythonPythonPackageContent.md +6 -0
  74. data/docs/PythonPythonPackageContentResponse.md +5 -1
  75. data/docs/PythonPythonRemote.md +1 -1
  76. data/docs/PythonPythonRemoteResponse.md +1 -1
  77. data/docs/RemotesPythonApi.md +3 -3
  78. data/docs/RepositoriesPythonApi.md +4 -4
  79. data/docs/SummaryResponse.md +21 -0
  80. data/lib/pulp_python_client/api/content_packages_api.rb +9 -0
  81. data/lib/pulp_python_client/api/distributions_pypi_api.rb +4 -4
  82. data/lib/pulp_python_client/api/publications_pypi_api.rb +2 -2
  83. data/lib/pulp_python_client/api/pypi_api.rb +90 -0
  84. data/lib/pulp_python_client/api/pypi_legacy_api.rb +111 -0
  85. data/lib/pulp_python_client/api/pypi_metadata_api.rb +96 -0
  86. data/lib/pulp_python_client/api/pypi_simple_api.rb +249 -0
  87. data/lib/pulp_python_client/api/remotes_python_api.rb +4 -4
  88. data/lib/pulp_python_client/api/repositories_python_api.rb +8 -8
  89. data/lib/pulp_python_client/models/package_metadata_response.rb +257 -0
  90. data/lib/pulp_python_client/models/package_upload.rb +268 -0
  91. data/lib/pulp_python_client/models/package_upload_task_response.rb +240 -0
  92. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +17 -5
  93. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +1 -1
  94. data/lib/pulp_python_client/models/python_bander_remote.rb +1 -1
  95. data/lib/pulp_python_client/models/python_python_distribution.rb +17 -5
  96. data/lib/pulp_python_client/models/python_python_distribution_response.rb +17 -6
  97. data/lib/pulp_python_client/models/python_python_package_content.rb +33 -1
  98. data/lib/pulp_python_client/models/python_python_package_content_response.rb +23 -1
  99. data/lib/pulp_python_client/models/python_python_remote.rb +1 -1
  100. data/lib/pulp_python_client/models/python_python_remote_response.rb +1 -1
  101. data/lib/pulp_python_client/models/summary_response.rb +243 -0
  102. data/lib/pulp_python_client/version.rb +1 -1
  103. data/lib/pulp_python_client.rb +8 -0
  104. data/pulp_python_client.egg-info/PKG-INFO +15 -0
  105. data/pulp_python_client.egg-info/SOURCES.txt +105 -0
  106. data/pulp_python_client.egg-info/dependency_links.txt +1 -0
  107. data/pulp_python_client.egg-info/requires.txt +4 -0
  108. data/pulp_python_client.egg-info/top_level.txt +1 -0
  109. data/pulpcore/__init__.py +2 -0
  110. data/pulpcore/client/__init__.py +2 -0
  111. data/pulpcore/client/pulp_python/__init__.py +75 -0
  112. data/pulpcore/client/pulp_python/api/__init__.py +15 -0
  113. data/pulpcore/client/pulp_python/api/content_packages_api.py +626 -0
  114. data/pulpcore/client/pulp_python/api/distributions_pypi_api.py +830 -0
  115. data/pulpcore/client/pulp_python/api/publications_pypi_api.py +566 -0
  116. data/pulpcore/client/pulp_python/api/pypi_api.py +162 -0
  117. data/pulpcore/client/pulp_python/api/pypi_legacy_api.py +185 -0
  118. data/pulpcore/client/pulp_python/api/pypi_metadata_api.py +171 -0
  119. data/pulpcore/client/pulp_python/api/pypi_simple_api.py +434 -0
  120. data/pulpcore/client/pulp_python/api/remotes_python_api.py +972 -0
  121. data/pulpcore/client/pulp_python/api/repositories_python_api.py +1063 -0
  122. data/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +614 -0
  123. data/pulpcore/client/pulp_python/api_client.py +667 -0
  124. data/pulpcore/client/pulp_python/configuration.py +427 -0
  125. data/pulpcore/client/pulp_python/exceptions.py +121 -0
  126. data/pulpcore/client/pulp_python/models/__init__.py +51 -0
  127. data/pulpcore/client/pulp_python/models/async_operation_response.py +124 -0
  128. data/pulpcore/client/pulp_python/models/content_summary.py +176 -0
  129. data/pulpcore/client/pulp_python/models/content_summary_response.py +176 -0
  130. data/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +103 -0
  131. data/pulpcore/client/pulp_python/models/package_metadata_response.py +209 -0
  132. data/pulpcore/client/pulp_python/models/package_types_enum.py +107 -0
  133. data/pulpcore/client/pulp_python/models/package_upload.py +187 -0
  134. data/pulpcore/client/pulp_python/models/package_upload_task_response.py +176 -0
  135. data/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +197 -0
  136. data/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +197 -0
  137. data/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +197 -0
  138. data/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +197 -0
  139. data/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +197 -0
  140. data/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +197 -0
  141. data/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +286 -0
  142. data/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +823 -0
  143. data/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +259 -0
  144. data/pulpcore/client/pulp_python/models/policy_enum.py +102 -0
  145. data/pulpcore/client/pulp_python/models/python_bander_remote.py +181 -0
  146. data/pulpcore/client/pulp_python/models/python_python_distribution.py +288 -0
  147. data/pulpcore/client/pulp_python/models/python_python_distribution_response.py +368 -0
  148. data/pulpcore/client/pulp_python/models/python_python_package_content.py +824 -0
  149. data/pulpcore/client/pulp_python/models/python_python_package_content_response.py +933 -0
  150. data/pulpcore/client/pulp_python/models/python_python_publication.py +149 -0
  151. data/pulpcore/client/pulp_python/models/python_python_publication_response.py +231 -0
  152. data/pulpcore/client/pulp_python/models/python_python_remote.py +825 -0
  153. data/pulpcore/client/pulp_python/models/python_python_remote_response.py +772 -0
  154. data/pulpcore/client/pulp_python/models/python_python_repository.py +260 -0
  155. data/pulpcore/client/pulp_python/models/python_python_repository_response.py +366 -0
  156. data/pulpcore/client/pulp_python/models/repository_add_remove_content.py +179 -0
  157. data/pulpcore/client/pulp_python/models/repository_sync_url.py +151 -0
  158. data/pulpcore/client/pulp_python/models/repository_version.py +123 -0
  159. data/pulpcore/client/pulp_python/models/repository_version_response.py +257 -0
  160. data/pulpcore/client/pulp_python/models/summary_response.py +182 -0
  161. data/pulpcore/client/pulp_python/rest.py +292 -0
  162. data/requirements.txt +6 -0
  163. data/setup.cfg +2 -0
  164. data/setup.py +42 -0
  165. data/spec/api/content_packages_api_spec.rb +3 -0
  166. data/spec/api/distributions_pypi_api_spec.rb +2 -2
  167. data/spec/api/publications_pypi_api_spec.rb +1 -1
  168. data/spec/api/pypi_api_spec.rb +49 -0
  169. data/spec/api/pypi_legacy_api_spec.rb +50 -0
  170. data/spec/api/pypi_metadata_api_spec.rb +50 -0
  171. data/spec/api/pypi_simple_api_spec.rb +79 -0
  172. data/spec/api/remotes_python_api_spec.rb +2 -2
  173. data/spec/api/repositories_python_api_spec.rb +4 -4
  174. data/spec/models/package_metadata_response_spec.rb +59 -0
  175. data/spec/models/package_upload_spec.rb +53 -0
  176. data/spec/models/package_upload_task_response_spec.rb +53 -0
  177. data/spec/models/patchedpython_python_distribution_spec.rb +6 -0
  178. data/spec/models/python_python_distribution_response_spec.rb +6 -0
  179. data/spec/models/python_python_distribution_spec.rb +6 -0
  180. data/spec/models/python_python_package_content_response_spec.rb +12 -0
  181. data/spec/models/python_python_package_content_spec.rb +18 -0
  182. data/spec/models/summary_response_spec.rb +53 -0
  183. data/test/__init__.py +0 -0
  184. data/test/test_async_operation_response.py +54 -0
  185. data/test/test_content_packages_api.py +55 -0
  186. data/test/test_content_summary.py +70 -0
  187. data/test/test_content_summary_response.py +70 -0
  188. data/test/test_distributions_pypi_api.py +76 -0
  189. data/test/test_exclude_platforms_enum.py +52 -0
  190. data/test/test_package_metadata_response.py +60 -0
  191. data/test/test_package_types_enum.py +52 -0
  192. data/test/test_package_upload.py +57 -0
  193. data/test/test_package_upload_task_response.py +58 -0
  194. data/test/test_paginated_repository_version_response_list.py +64 -0
  195. data/test/test_paginatedpython_python_distribution_response_list.py +68 -0
  196. data/test/test_paginatedpython_python_package_content_response_list.py +88 -0
  197. data/test/test_paginatedpython_python_publication_response_list.py +65 -0
  198. data/test/test_paginatedpython_python_remote_response_list.py +88 -0
  199. data/test/test_paginatedpython_python_repository_response_list.py +68 -0
  200. data/test/test_patchedpython_python_distribution.py +59 -0
  201. data/test/test_patchedpython_python_remote.py +84 -0
  202. data/test/test_patchedpython_python_repository.py +58 -0
  203. data/test/test_policy_enum.py +52 -0
  204. data/test/test_publications_pypi_api.py +62 -0
  205. data/test/test_pypi_api.py +41 -0
  206. data/test/test_pypi_legacy_api.py +41 -0
  207. data/test/test_pypi_metadata_api.py +41 -0
  208. data/test/test_pypi_simple_api.py +55 -0
  209. data/test/test_python_bander_remote.py +57 -0
  210. data/test/test_python_python_distribution.py +61 -0
  211. data/test/test_python_python_distribution_response.py +64 -0
  212. data/test/test_python_python_package_content.py +79 -0
  213. data/test/test_python_python_package_content_response.py +82 -0
  214. data/test/test_python_python_publication.py +54 -0
  215. data/test/test_python_python_publication_response.py +59 -0
  216. data/test/test_python_python_remote.py +86 -0
  217. data/test/test_python_python_remote_response.py +84 -0
  218. data/test/test_python_python_repository.py +59 -0
  219. data/test/test_python_python_repository_response.py +63 -0
  220. data/test/test_remotes_python_api.py +83 -0
  221. data/test/test_repositories_python_api.py +90 -0
  222. data/test/test_repositories_python_versions_api.py +61 -0
  223. data/test/test_repository_add_remove_content.py +59 -0
  224. data/test/test_repository_sync_url.py +54 -0
  225. data/test/test_repository_version.py +53 -0
  226. data/test/test_repository_version_response.py +58 -0
  227. data/test/test_summary_response.py +58 -0
  228. data/test-requirements.txt +3 -0
  229. data/tox.ini +9 -0
  230. metadata +221 -26
@@ -0,0 +1,824 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from pulpcore.client.pulp_python.configuration import Configuration
20
+
21
+
22
+ class PythonPythonPackageContent(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.
35
+ """
36
+ openapi_types = {
37
+ 'artifact': 'str',
38
+ 'relative_path': 'str',
39
+ 'file': 'file',
40
+ 'repository': 'str',
41
+ 'sha256': 'str',
42
+ 'summary': 'str',
43
+ 'description': 'str',
44
+ 'description_content_type': 'str',
45
+ 'keywords': 'str',
46
+ 'home_page': 'str',
47
+ 'download_url': 'str',
48
+ 'author': 'str',
49
+ 'author_email': 'str',
50
+ 'maintainer': 'str',
51
+ 'maintainer_email': 'str',
52
+ 'license': 'str',
53
+ 'requires_python': 'str',
54
+ 'project_url': 'str',
55
+ 'project_urls': 'object',
56
+ 'platform': 'str',
57
+ 'supported_platform': 'str',
58
+ 'requires_dist': 'object',
59
+ 'provides_dist': 'object',
60
+ 'obsoletes_dist': 'object',
61
+ 'requires_external': 'object',
62
+ 'classifiers': 'object'
63
+ }
64
+
65
+ attribute_map = {
66
+ 'artifact': 'artifact',
67
+ 'relative_path': 'relative_path',
68
+ 'file': 'file',
69
+ 'repository': 'repository',
70
+ 'sha256': 'sha256',
71
+ 'summary': 'summary',
72
+ 'description': 'description',
73
+ 'description_content_type': 'description_content_type',
74
+ 'keywords': 'keywords',
75
+ 'home_page': 'home_page',
76
+ 'download_url': 'download_url',
77
+ 'author': 'author',
78
+ 'author_email': 'author_email',
79
+ 'maintainer': 'maintainer',
80
+ 'maintainer_email': 'maintainer_email',
81
+ 'license': 'license',
82
+ 'requires_python': 'requires_python',
83
+ 'project_url': 'project_url',
84
+ 'project_urls': 'project_urls',
85
+ 'platform': 'platform',
86
+ 'supported_platform': 'supported_platform',
87
+ 'requires_dist': 'requires_dist',
88
+ 'provides_dist': 'provides_dist',
89
+ 'obsoletes_dist': 'obsoletes_dist',
90
+ 'requires_external': 'requires_external',
91
+ 'classifiers': 'classifiers'
92
+ }
93
+
94
+ def __init__(self, artifact=None, relative_path=None, file=None, repository=None, sha256='', 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
95
+ """PythonPythonPackageContent - a model defined in OpenAPI""" # noqa: E501
96
+ if local_vars_configuration is None:
97
+ local_vars_configuration = Configuration()
98
+ self.local_vars_configuration = local_vars_configuration
99
+
100
+ self._artifact = None
101
+ self._relative_path = None
102
+ self._file = None
103
+ self._repository = None
104
+ self._sha256 = None
105
+ self._summary = None
106
+ self._description = None
107
+ self._description_content_type = None
108
+ self._keywords = None
109
+ self._home_page = None
110
+ self._download_url = None
111
+ self._author = None
112
+ self._author_email = None
113
+ self._maintainer = None
114
+ self._maintainer_email = None
115
+ self._license = None
116
+ self._requires_python = None
117
+ self._project_url = None
118
+ self._project_urls = None
119
+ self._platform = None
120
+ self._supported_platform = None
121
+ self._requires_dist = None
122
+ self._provides_dist = None
123
+ self._obsoletes_dist = None
124
+ self._requires_external = None
125
+ self._classifiers = None
126
+ self.discriminator = None
127
+
128
+ if artifact is not None:
129
+ self.artifact = artifact
130
+ self.relative_path = relative_path
131
+ if file is not None:
132
+ self.file = file
133
+ if repository is not None:
134
+ self.repository = repository
135
+ if sha256 is not None:
136
+ self.sha256 = sha256
137
+ if summary is not None:
138
+ self.summary = summary
139
+ if description is not None:
140
+ self.description = description
141
+ if description_content_type is not None:
142
+ self.description_content_type = description_content_type
143
+ if keywords is not None:
144
+ self.keywords = keywords
145
+ if home_page is not None:
146
+ self.home_page = home_page
147
+ if download_url is not None:
148
+ self.download_url = download_url
149
+ if author is not None:
150
+ self.author = author
151
+ if author_email is not None:
152
+ self.author_email = author_email
153
+ if maintainer is not None:
154
+ self.maintainer = maintainer
155
+ if maintainer_email is not None:
156
+ self.maintainer_email = maintainer_email
157
+ if license is not None:
158
+ self.license = license
159
+ if requires_python is not None:
160
+ self.requires_python = requires_python
161
+ if project_url is not None:
162
+ self.project_url = project_url
163
+ if project_urls is not None:
164
+ self.project_urls = project_urls
165
+ if platform is not None:
166
+ self.platform = platform
167
+ if supported_platform is not None:
168
+ self.supported_platform = supported_platform
169
+ if requires_dist is not None:
170
+ self.requires_dist = requires_dist
171
+ if provides_dist is not None:
172
+ self.provides_dist = provides_dist
173
+ if obsoletes_dist is not None:
174
+ self.obsoletes_dist = obsoletes_dist
175
+ if requires_external is not None:
176
+ self.requires_external = requires_external
177
+ if classifiers is not None:
178
+ self.classifiers = classifiers
179
+
180
+ @property
181
+ def artifact(self):
182
+ """Gets the artifact of this PythonPythonPackageContent. # noqa: E501
183
+
184
+ Artifact file representing the physical content # noqa: E501
185
+
186
+ :return: The artifact of this PythonPythonPackageContent. # noqa: E501
187
+ :rtype: str
188
+ """
189
+ return self._artifact
190
+
191
+ @artifact.setter
192
+ def artifact(self, artifact):
193
+ """Sets the artifact of this PythonPythonPackageContent.
194
+
195
+ Artifact file representing the physical content # noqa: E501
196
+
197
+ :param artifact: The artifact of this PythonPythonPackageContent. # noqa: E501
198
+ :type: str
199
+ """
200
+
201
+ self._artifact = artifact
202
+
203
+ @property
204
+ def relative_path(self):
205
+ """Gets the relative_path of this PythonPythonPackageContent. # noqa: E501
206
+
207
+ Path where the artifact is located relative to distributions base_path # noqa: E501
208
+
209
+ :return: The relative_path of this PythonPythonPackageContent. # noqa: E501
210
+ :rtype: str
211
+ """
212
+ return self._relative_path
213
+
214
+ @relative_path.setter
215
+ def relative_path(self, relative_path):
216
+ """Sets the relative_path of this PythonPythonPackageContent.
217
+
218
+ Path where the artifact is located relative to distributions base_path # noqa: E501
219
+
220
+ :param relative_path: The relative_path of this PythonPythonPackageContent. # noqa: E501
221
+ :type: str
222
+ """
223
+ if self.local_vars_configuration.client_side_validation and relative_path is None: # noqa: E501
224
+ raise ValueError("Invalid value for `relative_path`, must not be `None`") # noqa: E501
225
+
226
+ self._relative_path = relative_path
227
+
228
+ @property
229
+ def file(self):
230
+ """Gets the file of this PythonPythonPackageContent. # noqa: E501
231
+
232
+ An uploaded file that may be turned into the artifact of the content unit. # noqa: E501
233
+
234
+ :return: The file of this PythonPythonPackageContent. # noqa: E501
235
+ :rtype: file
236
+ """
237
+ return self._file
238
+
239
+ @file.setter
240
+ def file(self, file):
241
+ """Sets the file of this PythonPythonPackageContent.
242
+
243
+ An uploaded file that may be turned into the artifact of the content unit. # noqa: E501
244
+
245
+ :param file: The file of this PythonPythonPackageContent. # noqa: E501
246
+ :type: file
247
+ """
248
+
249
+ self._file = file
250
+
251
+ @property
252
+ def repository(self):
253
+ """Gets the repository of this PythonPythonPackageContent. # noqa: E501
254
+
255
+ A URI of a repository the new content unit should be associated with. # noqa: E501
256
+
257
+ :return: The repository of this PythonPythonPackageContent. # noqa: E501
258
+ :rtype: str
259
+ """
260
+ return self._repository
261
+
262
+ @repository.setter
263
+ def repository(self, repository):
264
+ """Sets the repository of this PythonPythonPackageContent.
265
+
266
+ A URI of a repository the new content unit should be associated with. # noqa: E501
267
+
268
+ :param repository: The repository of this PythonPythonPackageContent. # noqa: E501
269
+ :type: str
270
+ """
271
+
272
+ self._repository = repository
273
+
274
+ @property
275
+ def sha256(self):
276
+ """Gets the sha256 of this PythonPythonPackageContent. # noqa: E501
277
+
278
+ The SHA256 digest of this package. # noqa: E501
279
+
280
+ :return: The sha256 of this PythonPythonPackageContent. # noqa: E501
281
+ :rtype: str
282
+ """
283
+ return self._sha256
284
+
285
+ @sha256.setter
286
+ def sha256(self, sha256):
287
+ """Sets the sha256 of this PythonPythonPackageContent.
288
+
289
+ The SHA256 digest of this package. # noqa: E501
290
+
291
+ :param sha256: The sha256 of this PythonPythonPackageContent. # noqa: E501
292
+ :type: str
293
+ """
294
+
295
+ self._sha256 = sha256
296
+
297
+ @property
298
+ def summary(self):
299
+ """Gets the summary of this PythonPythonPackageContent. # noqa: E501
300
+
301
+ A one-line summary of what the package does. # noqa: E501
302
+
303
+ :return: The summary of this PythonPythonPackageContent. # noqa: E501
304
+ :rtype: str
305
+ """
306
+ return self._summary
307
+
308
+ @summary.setter
309
+ def summary(self, summary):
310
+ """Sets the summary of this PythonPythonPackageContent.
311
+
312
+ A one-line summary of what the package does. # noqa: E501
313
+
314
+ :param summary: The summary of this PythonPythonPackageContent. # noqa: E501
315
+ :type: str
316
+ """
317
+
318
+ self._summary = summary
319
+
320
+ @property
321
+ def description(self):
322
+ """Gets the description of this PythonPythonPackageContent. # noqa: E501
323
+
324
+ A longer description of the package that can run to several paragraphs. # noqa: E501
325
+
326
+ :return: The description of this PythonPythonPackageContent. # noqa: E501
327
+ :rtype: str
328
+ """
329
+ return self._description
330
+
331
+ @description.setter
332
+ def description(self, description):
333
+ """Sets the description of this PythonPythonPackageContent.
334
+
335
+ A longer description of the package that can run to several paragraphs. # noqa: E501
336
+
337
+ :param description: The description of this PythonPythonPackageContent. # noqa: E501
338
+ :type: str
339
+ """
340
+
341
+ self._description = description
342
+
343
+ @property
344
+ def description_content_type(self):
345
+ """Gets the description_content_type of this PythonPythonPackageContent. # noqa: E501
346
+
347
+ A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description. # noqa: E501
348
+
349
+ :return: The description_content_type of this PythonPythonPackageContent. # noqa: E501
350
+ :rtype: str
351
+ """
352
+ return self._description_content_type
353
+
354
+ @description_content_type.setter
355
+ def description_content_type(self, description_content_type):
356
+ """Sets the description_content_type of this PythonPythonPackageContent.
357
+
358
+ A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description. # noqa: E501
359
+
360
+ :param description_content_type: The description_content_type of this PythonPythonPackageContent. # noqa: E501
361
+ :type: str
362
+ """
363
+
364
+ self._description_content_type = description_content_type
365
+
366
+ @property
367
+ def keywords(self):
368
+ """Gets the keywords of this PythonPythonPackageContent. # noqa: E501
369
+
370
+ Additional keywords to be used to assist searching for the package in a larger catalog. # noqa: E501
371
+
372
+ :return: The keywords of this PythonPythonPackageContent. # noqa: E501
373
+ :rtype: str
374
+ """
375
+ return self._keywords
376
+
377
+ @keywords.setter
378
+ def keywords(self, keywords):
379
+ """Sets the keywords of this PythonPythonPackageContent.
380
+
381
+ Additional keywords to be used to assist searching for the package in a larger catalog. # noqa: E501
382
+
383
+ :param keywords: The keywords of this PythonPythonPackageContent. # noqa: E501
384
+ :type: str
385
+ """
386
+
387
+ self._keywords = keywords
388
+
389
+ @property
390
+ def home_page(self):
391
+ """Gets the home_page of this PythonPythonPackageContent. # noqa: E501
392
+
393
+ The URL for the package's home page. # noqa: E501
394
+
395
+ :return: The home_page of this PythonPythonPackageContent. # noqa: E501
396
+ :rtype: str
397
+ """
398
+ return self._home_page
399
+
400
+ @home_page.setter
401
+ def home_page(self, home_page):
402
+ """Sets the home_page of this PythonPythonPackageContent.
403
+
404
+ The URL for the package's home page. # noqa: E501
405
+
406
+ :param home_page: The home_page of this PythonPythonPackageContent. # noqa: E501
407
+ :type: str
408
+ """
409
+
410
+ self._home_page = home_page
411
+
412
+ @property
413
+ def download_url(self):
414
+ """Gets the download_url of this PythonPythonPackageContent. # noqa: E501
415
+
416
+ Legacy field denoting the URL from which this package can be downloaded. # noqa: E501
417
+
418
+ :return: The download_url of this PythonPythonPackageContent. # noqa: E501
419
+ :rtype: str
420
+ """
421
+ return self._download_url
422
+
423
+ @download_url.setter
424
+ def download_url(self, download_url):
425
+ """Sets the download_url of this PythonPythonPackageContent.
426
+
427
+ Legacy field denoting the URL from which this package can be downloaded. # noqa: E501
428
+
429
+ :param download_url: The download_url of this PythonPythonPackageContent. # noqa: E501
430
+ :type: str
431
+ """
432
+
433
+ self._download_url = download_url
434
+
435
+ @property
436
+ def author(self):
437
+ """Gets the author of this PythonPythonPackageContent. # noqa: E501
438
+
439
+ Text containing the author's name. Contact information can also be added, separated with newlines. # noqa: E501
440
+
441
+ :return: The author of this PythonPythonPackageContent. # noqa: E501
442
+ :rtype: str
443
+ """
444
+ return self._author
445
+
446
+ @author.setter
447
+ def author(self, author):
448
+ """Sets the author of this PythonPythonPackageContent.
449
+
450
+ Text containing the author's name. Contact information can also be added, separated with newlines. # noqa: E501
451
+
452
+ :param author: The author of this PythonPythonPackageContent. # noqa: E501
453
+ :type: str
454
+ """
455
+
456
+ self._author = author
457
+
458
+ @property
459
+ def author_email(self):
460
+ """Gets the author_email of this PythonPythonPackageContent. # noqa: E501
461
+
462
+ The author's e-mail address. # noqa: E501
463
+
464
+ :return: The author_email of this PythonPythonPackageContent. # noqa: E501
465
+ :rtype: str
466
+ """
467
+ return self._author_email
468
+
469
+ @author_email.setter
470
+ def author_email(self, author_email):
471
+ """Sets the author_email of this PythonPythonPackageContent.
472
+
473
+ The author's e-mail address. # noqa: E501
474
+
475
+ :param author_email: The author_email of this PythonPythonPackageContent. # noqa: E501
476
+ :type: str
477
+ """
478
+
479
+ self._author_email = author_email
480
+
481
+ @property
482
+ def maintainer(self):
483
+ """Gets the maintainer of this PythonPythonPackageContent. # noqa: E501
484
+
485
+ The maintainer's name at a minimum; additional contact information may be provided. # noqa: E501
486
+
487
+ :return: The maintainer of this PythonPythonPackageContent. # noqa: E501
488
+ :rtype: str
489
+ """
490
+ return self._maintainer
491
+
492
+ @maintainer.setter
493
+ def maintainer(self, maintainer):
494
+ """Sets the maintainer of this PythonPythonPackageContent.
495
+
496
+ The maintainer's name at a minimum; additional contact information may be provided. # noqa: E501
497
+
498
+ :param maintainer: The maintainer of this PythonPythonPackageContent. # noqa: E501
499
+ :type: str
500
+ """
501
+
502
+ self._maintainer = maintainer
503
+
504
+ @property
505
+ def maintainer_email(self):
506
+ """Gets the maintainer_email of this PythonPythonPackageContent. # noqa: E501
507
+
508
+ The maintainer's e-mail address. # noqa: E501
509
+
510
+ :return: The maintainer_email of this PythonPythonPackageContent. # noqa: E501
511
+ :rtype: str
512
+ """
513
+ return self._maintainer_email
514
+
515
+ @maintainer_email.setter
516
+ def maintainer_email(self, maintainer_email):
517
+ """Sets the maintainer_email of this PythonPythonPackageContent.
518
+
519
+ The maintainer's e-mail address. # noqa: E501
520
+
521
+ :param maintainer_email: The maintainer_email of this PythonPythonPackageContent. # noqa: E501
522
+ :type: str
523
+ """
524
+
525
+ self._maintainer_email = maintainer_email
526
+
527
+ @property
528
+ def license(self):
529
+ """Gets the license of this PythonPythonPackageContent. # noqa: E501
530
+
531
+ Text indicating the license covering the distribution # noqa: E501
532
+
533
+ :return: The license of this PythonPythonPackageContent. # noqa: E501
534
+ :rtype: str
535
+ """
536
+ return self._license
537
+
538
+ @license.setter
539
+ def license(self, license):
540
+ """Sets the license of this PythonPythonPackageContent.
541
+
542
+ Text indicating the license covering the distribution # noqa: E501
543
+
544
+ :param license: The license of this PythonPythonPackageContent. # noqa: E501
545
+ :type: str
546
+ """
547
+
548
+ self._license = license
549
+
550
+ @property
551
+ def requires_python(self):
552
+ """Gets the requires_python of this PythonPythonPackageContent. # noqa: E501
553
+
554
+ The Python version(s) that the distribution is guaranteed to be compatible with. # noqa: E501
555
+
556
+ :return: The requires_python of this PythonPythonPackageContent. # noqa: E501
557
+ :rtype: str
558
+ """
559
+ return self._requires_python
560
+
561
+ @requires_python.setter
562
+ def requires_python(self, requires_python):
563
+ """Sets the requires_python of this PythonPythonPackageContent.
564
+
565
+ The Python version(s) that the distribution is guaranteed to be compatible with. # noqa: E501
566
+
567
+ :param requires_python: The requires_python of this PythonPythonPackageContent. # noqa: E501
568
+ :type: str
569
+ """
570
+
571
+ self._requires_python = requires_python
572
+
573
+ @property
574
+ def project_url(self):
575
+ """Gets the project_url of this PythonPythonPackageContent. # noqa: E501
576
+
577
+ A browsable URL for the project and a label for it, separated by a comma. # noqa: E501
578
+
579
+ :return: The project_url of this PythonPythonPackageContent. # noqa: E501
580
+ :rtype: str
581
+ """
582
+ return self._project_url
583
+
584
+ @project_url.setter
585
+ def project_url(self, project_url):
586
+ """Sets the project_url of this PythonPythonPackageContent.
587
+
588
+ A browsable URL for the project and a label for it, separated by a comma. # noqa: E501
589
+
590
+ :param project_url: The project_url of this PythonPythonPackageContent. # noqa: E501
591
+ :type: str
592
+ """
593
+
594
+ self._project_url = project_url
595
+
596
+ @property
597
+ def project_urls(self):
598
+ """Gets the project_urls of this PythonPythonPackageContent. # noqa: E501
599
+
600
+ A dictionary of labels and URLs for the project. # noqa: E501
601
+
602
+ :return: The project_urls of this PythonPythonPackageContent. # noqa: E501
603
+ :rtype: object
604
+ """
605
+ return self._project_urls
606
+
607
+ @project_urls.setter
608
+ def project_urls(self, project_urls):
609
+ """Sets the project_urls of this PythonPythonPackageContent.
610
+
611
+ A dictionary of labels and URLs for the project. # noqa: E501
612
+
613
+ :param project_urls: The project_urls of this PythonPythonPackageContent. # noqa: E501
614
+ :type: object
615
+ """
616
+
617
+ self._project_urls = project_urls
618
+
619
+ @property
620
+ def platform(self):
621
+ """Gets the platform of this PythonPythonPackageContent. # noqa: E501
622
+
623
+ A comma-separated list of platform specifications, summarizing the operating systems supported by the package. # noqa: E501
624
+
625
+ :return: The platform of this PythonPythonPackageContent. # noqa: E501
626
+ :rtype: str
627
+ """
628
+ return self._platform
629
+
630
+ @platform.setter
631
+ def platform(self, platform):
632
+ """Sets the platform of this PythonPythonPackageContent.
633
+
634
+ A comma-separated list of platform specifications, summarizing the operating systems supported by the package. # noqa: E501
635
+
636
+ :param platform: The platform of this PythonPythonPackageContent. # noqa: E501
637
+ :type: str
638
+ """
639
+
640
+ self._platform = platform
641
+
642
+ @property
643
+ def supported_platform(self):
644
+ """Gets the supported_platform of this PythonPythonPackageContent. # noqa: E501
645
+
646
+ Field to specify the OS and CPU for which the binary package was compiled. # noqa: E501
647
+
648
+ :return: The supported_platform of this PythonPythonPackageContent. # noqa: E501
649
+ :rtype: str
650
+ """
651
+ return self._supported_platform
652
+
653
+ @supported_platform.setter
654
+ def supported_platform(self, supported_platform):
655
+ """Sets the supported_platform of this PythonPythonPackageContent.
656
+
657
+ Field to specify the OS and CPU for which the binary package was compiled. # noqa: E501
658
+
659
+ :param supported_platform: The supported_platform of this PythonPythonPackageContent. # noqa: E501
660
+ :type: str
661
+ """
662
+
663
+ self._supported_platform = supported_platform
664
+
665
+ @property
666
+ def requires_dist(self):
667
+ """Gets the requires_dist of this PythonPythonPackageContent. # noqa: E501
668
+
669
+ A JSON list containing names of some other distutils project required by this distribution. # noqa: E501
670
+
671
+ :return: The requires_dist of this PythonPythonPackageContent. # noqa: E501
672
+ :rtype: object
673
+ """
674
+ return self._requires_dist
675
+
676
+ @requires_dist.setter
677
+ def requires_dist(self, requires_dist):
678
+ """Sets the requires_dist of this PythonPythonPackageContent.
679
+
680
+ A JSON list containing names of some other distutils project required by this distribution. # noqa: E501
681
+
682
+ :param requires_dist: The requires_dist of this PythonPythonPackageContent. # noqa: E501
683
+ :type: object
684
+ """
685
+
686
+ self._requires_dist = requires_dist
687
+
688
+ @property
689
+ def provides_dist(self):
690
+ """Gets the provides_dist of this PythonPythonPackageContent. # noqa: E501
691
+
692
+ A JSON list containing names of a Distutils project which is contained within this distribution. # noqa: E501
693
+
694
+ :return: The provides_dist of this PythonPythonPackageContent. # noqa: E501
695
+ :rtype: object
696
+ """
697
+ return self._provides_dist
698
+
699
+ @provides_dist.setter
700
+ def provides_dist(self, provides_dist):
701
+ """Sets the provides_dist of this PythonPythonPackageContent.
702
+
703
+ A JSON list containing names of a Distutils project which is contained within this distribution. # noqa: E501
704
+
705
+ :param provides_dist: The provides_dist of this PythonPythonPackageContent. # noqa: E501
706
+ :type: object
707
+ """
708
+
709
+ self._provides_dist = provides_dist
710
+
711
+ @property
712
+ def obsoletes_dist(self):
713
+ """Gets the obsoletes_dist of this PythonPythonPackageContent. # noqa: E501
714
+
715
+ 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
716
+
717
+ :return: The obsoletes_dist of this PythonPythonPackageContent. # noqa: E501
718
+ :rtype: object
719
+ """
720
+ return self._obsoletes_dist
721
+
722
+ @obsoletes_dist.setter
723
+ def obsoletes_dist(self, obsoletes_dist):
724
+ """Sets the obsoletes_dist of this PythonPythonPackageContent.
725
+
726
+ 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
727
+
728
+ :param obsoletes_dist: The obsoletes_dist of this PythonPythonPackageContent. # noqa: E501
729
+ :type: object
730
+ """
731
+
732
+ self._obsoletes_dist = obsoletes_dist
733
+
734
+ @property
735
+ def requires_external(self):
736
+ """Gets the requires_external of this PythonPythonPackageContent. # noqa: E501
737
+
738
+ A JSON list containing some dependency in the system that the distribution is to be used. # noqa: E501
739
+
740
+ :return: The requires_external of this PythonPythonPackageContent. # noqa: E501
741
+ :rtype: object
742
+ """
743
+ return self._requires_external
744
+
745
+ @requires_external.setter
746
+ def requires_external(self, requires_external):
747
+ """Sets the requires_external of this PythonPythonPackageContent.
748
+
749
+ A JSON list containing some dependency in the system that the distribution is to be used. # noqa: E501
750
+
751
+ :param requires_external: The requires_external of this PythonPythonPackageContent. # noqa: E501
752
+ :type: object
753
+ """
754
+
755
+ self._requires_external = requires_external
756
+
757
+ @property
758
+ def classifiers(self):
759
+ """Gets the classifiers of this PythonPythonPackageContent. # noqa: E501
760
+
761
+ A JSON list containing classification values for a Python package. # noqa: E501
762
+
763
+ :return: The classifiers of this PythonPythonPackageContent. # noqa: E501
764
+ :rtype: object
765
+ """
766
+ return self._classifiers
767
+
768
+ @classifiers.setter
769
+ def classifiers(self, classifiers):
770
+ """Sets the classifiers of this PythonPythonPackageContent.
771
+
772
+ A JSON list containing classification values for a Python package. # noqa: E501
773
+
774
+ :param classifiers: The classifiers of this PythonPythonPackageContent. # noqa: E501
775
+ :type: object
776
+ """
777
+
778
+ self._classifiers = classifiers
779
+
780
+ def to_dict(self):
781
+ """Returns the model properties as a dict"""
782
+ result = {}
783
+
784
+ for attr, _ in six.iteritems(self.openapi_types):
785
+ value = getattr(self, attr)
786
+ if isinstance(value, list):
787
+ result[attr] = list(map(
788
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
789
+ value
790
+ ))
791
+ elif hasattr(value, "to_dict"):
792
+ result[attr] = value.to_dict()
793
+ elif isinstance(value, dict):
794
+ result[attr] = dict(map(
795
+ lambda item: (item[0], item[1].to_dict())
796
+ if hasattr(item[1], "to_dict") else item,
797
+ value.items()
798
+ ))
799
+ else:
800
+ result[attr] = value
801
+
802
+ return result
803
+
804
+ def to_str(self):
805
+ """Returns the string representation of the model"""
806
+ return pprint.pformat(self.to_dict())
807
+
808
+ def __repr__(self):
809
+ """For `print` and `pprint`"""
810
+ return self.to_str()
811
+
812
+ def __eq__(self, other):
813
+ """Returns true if both objects are equal"""
814
+ if not isinstance(other, PythonPythonPackageContent):
815
+ return False
816
+
817
+ return self.to_dict() == other.to_dict()
818
+
819
+ def __ne__(self, other):
820
+ """Returns true if both objects are not equal"""
821
+ if not isinstance(other, PythonPythonPackageContent):
822
+ return True
823
+
824
+ return self.to_dict() != other.to_dict()