pulp_python_client 3.4.0 → 3.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +4 -4
  4. data/docs/ContentPackagesApi.md +4 -0
  5. data/docs/RepositoryAddRemoveContent.md +2 -2
  6. data/lib/pulp_python_client/api/content_packages_api.rb +7 -1
  7. data/lib/pulp_python_client/api/distributions_pypi_api.rb +1 -1
  8. data/lib/pulp_python_client/api/publications_pypi_api.rb +1 -1
  9. data/lib/pulp_python_client/api/pypi_api.rb +1 -1
  10. data/lib/pulp_python_client/api/pypi_legacy_api.rb +1 -1
  11. data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -1
  12. data/lib/pulp_python_client/api/pypi_simple_api.rb +1 -1
  13. data/lib/pulp_python_client/api/remotes_python_api.rb +1 -1
  14. data/lib/pulp_python_client/api/repositories_python_api.rb +1 -1
  15. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +1 -1
  16. data/lib/pulp_python_client/api_client.rb +12 -8
  17. data/lib/pulp_python_client/api_error.rb +1 -1
  18. data/lib/pulp_python_client/configuration.rb +8 -1
  19. data/lib/pulp_python_client/models/async_operation_response.rb +1 -1
  20. data/lib/pulp_python_client/models/content_summary.rb +1 -1
  21. data/lib/pulp_python_client/models/content_summary_response.rb +1 -1
  22. data/lib/pulp_python_client/models/exclude_platforms_enum.rb +1 -1
  23. data/lib/pulp_python_client/models/package_metadata_response.rb +1 -1
  24. data/lib/pulp_python_client/models/package_types_enum.rb +1 -1
  25. data/lib/pulp_python_client/models/package_upload.rb +1 -1
  26. data/lib/pulp_python_client/models/package_upload_task_response.rb +1 -1
  27. data/lib/pulp_python_client/models/paginated_repository_version_response_list.rb +1 -1
  28. data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +1 -1
  29. data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +1 -1
  30. data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +1 -1
  31. data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +1 -1
  32. data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +1 -1
  33. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +1 -1
  34. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +1 -1
  35. data/lib/pulp_python_client/models/patchedpython_python_repository.rb +1 -1
  36. data/lib/pulp_python_client/models/policy_enum.rb +1 -1
  37. data/lib/pulp_python_client/models/python_bander_remote.rb +1 -1
  38. data/lib/pulp_python_client/models/python_python_distribution.rb +1 -1
  39. data/lib/pulp_python_client/models/python_python_distribution_response.rb +1 -1
  40. data/lib/pulp_python_client/models/python_python_package_content.rb +1 -1
  41. data/lib/pulp_python_client/models/python_python_package_content_response.rb +1 -1
  42. data/lib/pulp_python_client/models/python_python_publication.rb +1 -1
  43. data/lib/pulp_python_client/models/python_python_publication_response.rb +1 -1
  44. data/lib/pulp_python_client/models/python_python_remote.rb +1 -1
  45. data/lib/pulp_python_client/models/python_python_remote_response.rb +1 -1
  46. data/lib/pulp_python_client/models/python_python_repository.rb +1 -1
  47. data/lib/pulp_python_client/models/python_python_repository_response.rb +1 -1
  48. data/lib/pulp_python_client/models/repository_add_remove_content.rb +3 -3
  49. data/lib/pulp_python_client/models/repository_sync_url.rb +1 -1
  50. data/lib/pulp_python_client/models/repository_version.rb +1 -1
  51. data/lib/pulp_python_client/models/repository_version_response.rb +1 -1
  52. data/lib/pulp_python_client/models/summary_response.rb +1 -1
  53. data/lib/pulp_python_client/version.rb +2 -2
  54. data/lib/pulp_python_client.rb +1 -1
  55. data/pulp_python_client.gemspec +1 -1
  56. data/spec/api/content_packages_api_spec.rb +3 -1
  57. data/spec/api/distributions_pypi_api_spec.rb +1 -1
  58. data/spec/api/publications_pypi_api_spec.rb +1 -1
  59. data/spec/api/pypi_api_spec.rb +1 -1
  60. data/spec/api/pypi_legacy_api_spec.rb +1 -1
  61. data/spec/api/pypi_metadata_api_spec.rb +1 -1
  62. data/spec/api/pypi_simple_api_spec.rb +1 -1
  63. data/spec/api/remotes_python_api_spec.rb +1 -1
  64. data/spec/api/repositories_python_api_spec.rb +1 -1
  65. data/spec/api/repositories_python_versions_api_spec.rb +1 -1
  66. data/spec/api_client_spec.rb +2 -2
  67. data/spec/configuration_spec.rb +1 -1
  68. data/spec/models/async_operation_response_spec.rb +1 -1
  69. data/spec/models/content_summary_response_spec.rb +1 -1
  70. data/spec/models/content_summary_spec.rb +1 -1
  71. data/spec/models/exclude_platforms_enum_spec.rb +1 -1
  72. data/spec/models/package_metadata_response_spec.rb +1 -1
  73. data/spec/models/package_types_enum_spec.rb +1 -1
  74. data/spec/models/package_upload_spec.rb +1 -1
  75. data/spec/models/package_upload_task_response_spec.rb +1 -1
  76. data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
  77. data/spec/models/paginatedpython_python_distribution_response_list_spec.rb +1 -1
  78. data/spec/models/paginatedpython_python_package_content_response_list_spec.rb +1 -1
  79. data/spec/models/paginatedpython_python_publication_response_list_spec.rb +1 -1
  80. data/spec/models/paginatedpython_python_remote_response_list_spec.rb +1 -1
  81. data/spec/models/paginatedpython_python_repository_response_list_spec.rb +1 -1
  82. data/spec/models/patchedpython_python_distribution_spec.rb +1 -1
  83. data/spec/models/patchedpython_python_remote_spec.rb +1 -1
  84. data/spec/models/patchedpython_python_repository_spec.rb +1 -1
  85. data/spec/models/policy_enum_spec.rb +1 -1
  86. data/spec/models/python_bander_remote_spec.rb +1 -1
  87. data/spec/models/python_python_distribution_response_spec.rb +1 -1
  88. data/spec/models/python_python_distribution_spec.rb +1 -1
  89. data/spec/models/python_python_package_content_response_spec.rb +1 -1
  90. data/spec/models/python_python_package_content_spec.rb +1 -1
  91. data/spec/models/python_python_publication_response_spec.rb +1 -1
  92. data/spec/models/python_python_publication_spec.rb +1 -1
  93. data/spec/models/python_python_remote_response_spec.rb +1 -1
  94. data/spec/models/python_python_remote_spec.rb +1 -1
  95. data/spec/models/python_python_repository_response_spec.rb +1 -1
  96. data/spec/models/python_python_repository_spec.rb +1 -1
  97. data/spec/models/repository_add_remove_content_spec.rb +1 -1
  98. data/spec/models/repository_sync_url_spec.rb +1 -1
  99. data/spec/models/repository_version_response_spec.rb +1 -1
  100. data/spec/models/repository_version_spec.rb +1 -1
  101. data/spec/models/summary_response_spec.rb +1 -1
  102. data/spec/spec_helper.rb +1 -1
  103. metadata +33 -196
  104. data/build/lib/pulpcore/__init__.py +0 -2
  105. data/build/lib/pulpcore/client/__init__.py +0 -2
  106. data/build/lib/pulpcore/client/pulp_python/__init__.py +0 -75
  107. data/build/lib/pulpcore/client/pulp_python/api/__init__.py +0 -15
  108. data/build/lib/pulpcore/client/pulp_python/api/content_packages_api.py +0 -626
  109. data/build/lib/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -830
  110. data/build/lib/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -566
  111. data/build/lib/pulpcore/client/pulp_python/api/pypi_api.py +0 -162
  112. data/build/lib/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -185
  113. data/build/lib/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -171
  114. data/build/lib/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -434
  115. data/build/lib/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -972
  116. data/build/lib/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -1063
  117. data/build/lib/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -614
  118. data/build/lib/pulpcore/client/pulp_python/api_client.py +0 -667
  119. data/build/lib/pulpcore/client/pulp_python/configuration.py +0 -427
  120. data/build/lib/pulpcore/client/pulp_python/exceptions.py +0 -121
  121. data/build/lib/pulpcore/client/pulp_python/models/__init__.py +0 -51
  122. data/build/lib/pulpcore/client/pulp_python/models/async_operation_response.py +0 -124
  123. data/build/lib/pulpcore/client/pulp_python/models/content_summary.py +0 -176
  124. data/build/lib/pulpcore/client/pulp_python/models/content_summary_response.py +0 -176
  125. data/build/lib/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -103
  126. data/build/lib/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -209
  127. data/build/lib/pulpcore/client/pulp_python/models/package_types_enum.py +0 -107
  128. data/build/lib/pulpcore/client/pulp_python/models/package_upload.py +0 -187
  129. data/build/lib/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -176
  130. data/build/lib/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +0 -197
  131. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +0 -197
  132. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +0 -197
  133. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +0 -197
  134. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +0 -197
  135. data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +0 -197
  136. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +0 -286
  137. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +0 -823
  138. data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -259
  139. data/build/lib/pulpcore/client/pulp_python/models/policy_enum.py +0 -102
  140. data/build/lib/pulpcore/client/pulp_python/models/python_bander_remote.py +0 -181
  141. data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution.py +0 -288
  142. data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution_response.py +0 -368
  143. data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content.py +0 -824
  144. data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -933
  145. data/build/lib/pulpcore/client/pulp_python/models/python_python_publication.py +0 -149
  146. data/build/lib/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -231
  147. data/build/lib/pulpcore/client/pulp_python/models/python_python_remote.py +0 -825
  148. data/build/lib/pulpcore/client/pulp_python/models/python_python_remote_response.py +0 -772
  149. data/build/lib/pulpcore/client/pulp_python/models/python_python_repository.py +0 -260
  150. data/build/lib/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -366
  151. data/build/lib/pulpcore/client/pulp_python/models/repository_add_remove_content.py +0 -179
  152. data/build/lib/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -151
  153. data/build/lib/pulpcore/client/pulp_python/models/repository_version.py +0 -123
  154. data/build/lib/pulpcore/client/pulp_python/models/repository_version_response.py +0 -257
  155. data/build/lib/pulpcore/client/pulp_python/models/summary_response.py +0 -182
  156. data/build/lib/pulpcore/client/pulp_python/rest.py +0 -292
  157. data/dist/pulp_python-client-3.4.0.tar.gz +0 -0
  158. data/dist/pulp_python_client-3.4.0-py3-none-any.whl +0 -0
  159. data/pulp_python_client.egg-info/PKG-INFO +0 -15
  160. data/pulp_python_client.egg-info/SOURCES.txt +0 -105
  161. data/pulp_python_client.egg-info/dependency_links.txt +0 -1
  162. data/pulp_python_client.egg-info/requires.txt +0 -4
  163. data/pulp_python_client.egg-info/top_level.txt +0 -1
  164. data/pulpcore/__init__.py +0 -2
  165. data/pulpcore/client/__init__.py +0 -2
  166. data/pulpcore/client/pulp_python/__init__.py +0 -75
  167. data/pulpcore/client/pulp_python/api/__init__.py +0 -15
  168. data/pulpcore/client/pulp_python/api/content_packages_api.py +0 -626
  169. data/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -830
  170. data/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -566
  171. data/pulpcore/client/pulp_python/api/pypi_api.py +0 -162
  172. data/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -185
  173. data/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -171
  174. data/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -434
  175. data/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -972
  176. data/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -1063
  177. data/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -614
  178. data/pulpcore/client/pulp_python/api_client.py +0 -667
  179. data/pulpcore/client/pulp_python/configuration.py +0 -427
  180. data/pulpcore/client/pulp_python/exceptions.py +0 -121
  181. data/pulpcore/client/pulp_python/models/__init__.py +0 -51
  182. data/pulpcore/client/pulp_python/models/async_operation_response.py +0 -124
  183. data/pulpcore/client/pulp_python/models/content_summary.py +0 -176
  184. data/pulpcore/client/pulp_python/models/content_summary_response.py +0 -176
  185. data/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -103
  186. data/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -209
  187. data/pulpcore/client/pulp_python/models/package_types_enum.py +0 -107
  188. data/pulpcore/client/pulp_python/models/package_upload.py +0 -187
  189. data/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -176
  190. data/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +0 -197
  191. data/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +0 -197
  192. data/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +0 -197
  193. data/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +0 -197
  194. data/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +0 -197
  195. data/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +0 -197
  196. data/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +0 -286
  197. data/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +0 -823
  198. data/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -259
  199. data/pulpcore/client/pulp_python/models/policy_enum.py +0 -102
  200. data/pulpcore/client/pulp_python/models/python_bander_remote.py +0 -181
  201. data/pulpcore/client/pulp_python/models/python_python_distribution.py +0 -288
  202. data/pulpcore/client/pulp_python/models/python_python_distribution_response.py +0 -368
  203. data/pulpcore/client/pulp_python/models/python_python_package_content.py +0 -824
  204. data/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -933
  205. data/pulpcore/client/pulp_python/models/python_python_publication.py +0 -149
  206. data/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -231
  207. data/pulpcore/client/pulp_python/models/python_python_remote.py +0 -825
  208. data/pulpcore/client/pulp_python/models/python_python_remote_response.py +0 -772
  209. data/pulpcore/client/pulp_python/models/python_python_repository.py +0 -260
  210. data/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -366
  211. data/pulpcore/client/pulp_python/models/repository_add_remove_content.py +0 -179
  212. data/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -151
  213. data/pulpcore/client/pulp_python/models/repository_version.py +0 -123
  214. data/pulpcore/client/pulp_python/models/repository_version_response.py +0 -257
  215. data/pulpcore/client/pulp_python/models/summary_response.py +0 -182
  216. data/pulpcore/client/pulp_python/rest.py +0 -292
  217. data/requirements.txt +0 -6
  218. data/setup.cfg +0 -2
  219. data/setup.py +0 -42
  220. data/test/__init__.py +0 -0
  221. data/test/test_async_operation_response.py +0 -54
  222. data/test/test_content_packages_api.py +0 -55
  223. data/test/test_content_summary.py +0 -70
  224. data/test/test_content_summary_response.py +0 -70
  225. data/test/test_distributions_pypi_api.py +0 -76
  226. data/test/test_exclude_platforms_enum.py +0 -52
  227. data/test/test_package_metadata_response.py +0 -60
  228. data/test/test_package_types_enum.py +0 -52
  229. data/test/test_package_upload.py +0 -57
  230. data/test/test_package_upload_task_response.py +0 -58
  231. data/test/test_paginated_repository_version_response_list.py +0 -64
  232. data/test/test_paginatedpython_python_distribution_response_list.py +0 -68
  233. data/test/test_paginatedpython_python_package_content_response_list.py +0 -88
  234. data/test/test_paginatedpython_python_publication_response_list.py +0 -65
  235. data/test/test_paginatedpython_python_remote_response_list.py +0 -88
  236. data/test/test_paginatedpython_python_repository_response_list.py +0 -68
  237. data/test/test_patchedpython_python_distribution.py +0 -59
  238. data/test/test_patchedpython_python_remote.py +0 -84
  239. data/test/test_patchedpython_python_repository.py +0 -58
  240. data/test/test_policy_enum.py +0 -52
  241. data/test/test_publications_pypi_api.py +0 -62
  242. data/test/test_pypi_api.py +0 -41
  243. data/test/test_pypi_legacy_api.py +0 -41
  244. data/test/test_pypi_metadata_api.py +0 -41
  245. data/test/test_pypi_simple_api.py +0 -55
  246. data/test/test_python_bander_remote.py +0 -57
  247. data/test/test_python_python_distribution.py +0 -61
  248. data/test/test_python_python_distribution_response.py +0 -64
  249. data/test/test_python_python_package_content.py +0 -79
  250. data/test/test_python_python_package_content_response.py +0 -82
  251. data/test/test_python_python_publication.py +0 -54
  252. data/test/test_python_python_publication_response.py +0 -59
  253. data/test/test_python_python_remote.py +0 -86
  254. data/test/test_python_python_remote_response.py +0 -84
  255. data/test/test_python_python_repository.py +0 -59
  256. data/test/test_python_python_repository_response.py +0 -63
  257. data/test/test_remotes_python_api.py +0 -83
  258. data/test/test_repositories_python_api.py +0 -90
  259. data/test/test_repositories_python_versions_api.py +0 -61
  260. data/test/test_repository_add_remove_content.py +0 -59
  261. data/test/test_repository_sync_url.py +0 -54
  262. data/test/test_repository_version.py +0 -53
  263. data/test/test_repository_version_response.py +0 -58
  264. data/test/test_summary_response.py +0 -58
  265. data/test-requirements.txt +0 -3
  266. data/tox.ini +0 -9
@@ -1,824 +0,0 @@
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()