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,209 @@
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 PackageMetadataResponse(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
+ 'last_serial': 'int',
38
+ 'info': 'object',
39
+ 'releases': 'object',
40
+ 'urls': 'object'
41
+ }
42
+
43
+ attribute_map = {
44
+ 'last_serial': 'last_serial',
45
+ 'info': 'info',
46
+ 'releases': 'releases',
47
+ 'urls': 'urls'
48
+ }
49
+
50
+ def __init__(self, last_serial=None, info=None, releases=None, urls=None, local_vars_configuration=None): # noqa: E501
51
+ """PackageMetadataResponse - a model defined in OpenAPI""" # noqa: E501
52
+ if local_vars_configuration is None:
53
+ local_vars_configuration = Configuration()
54
+ self.local_vars_configuration = local_vars_configuration
55
+
56
+ self._last_serial = None
57
+ self._info = None
58
+ self._releases = None
59
+ self._urls = None
60
+ self.discriminator = None
61
+
62
+ self.last_serial = last_serial
63
+ self.info = info
64
+ self.releases = releases
65
+ self.urls = urls
66
+
67
+ @property
68
+ def last_serial(self):
69
+ """Gets the last_serial of this PackageMetadataResponse. # noqa: E501
70
+
71
+ Cache value from last PyPI sync # noqa: E501
72
+
73
+ :return: The last_serial of this PackageMetadataResponse. # noqa: E501
74
+ :rtype: int
75
+ """
76
+ return self._last_serial
77
+
78
+ @last_serial.setter
79
+ def last_serial(self, last_serial):
80
+ """Sets the last_serial of this PackageMetadataResponse.
81
+
82
+ Cache value from last PyPI sync # noqa: E501
83
+
84
+ :param last_serial: The last_serial of this PackageMetadataResponse. # noqa: E501
85
+ :type: int
86
+ """
87
+ if self.local_vars_configuration.client_side_validation and last_serial is None: # noqa: E501
88
+ raise ValueError("Invalid value for `last_serial`, must not be `None`") # noqa: E501
89
+
90
+ self._last_serial = last_serial
91
+
92
+ @property
93
+ def info(self):
94
+ """Gets the info of this PackageMetadataResponse. # noqa: E501
95
+
96
+ Core metadata of the package # noqa: E501
97
+
98
+ :return: The info of this PackageMetadataResponse. # noqa: E501
99
+ :rtype: object
100
+ """
101
+ return self._info
102
+
103
+ @info.setter
104
+ def info(self, info):
105
+ """Sets the info of this PackageMetadataResponse.
106
+
107
+ Core metadata of the package # noqa: E501
108
+
109
+ :param info: The info of this PackageMetadataResponse. # noqa: E501
110
+ :type: object
111
+ """
112
+ if self.local_vars_configuration.client_side_validation and info is None: # noqa: E501
113
+ raise ValueError("Invalid value for `info`, must not be `None`") # noqa: E501
114
+
115
+ self._info = info
116
+
117
+ @property
118
+ def releases(self):
119
+ """Gets the releases of this PackageMetadataResponse. # noqa: E501
120
+
121
+ List of all the releases of the package # noqa: E501
122
+
123
+ :return: The releases of this PackageMetadataResponse. # noqa: E501
124
+ :rtype: object
125
+ """
126
+ return self._releases
127
+
128
+ @releases.setter
129
+ def releases(self, releases):
130
+ """Sets the releases of this PackageMetadataResponse.
131
+
132
+ List of all the releases of the package # noqa: E501
133
+
134
+ :param releases: The releases of this PackageMetadataResponse. # noqa: E501
135
+ :type: object
136
+ """
137
+ if self.local_vars_configuration.client_side_validation and releases is None: # noqa: E501
138
+ raise ValueError("Invalid value for `releases`, must not be `None`") # noqa: E501
139
+
140
+ self._releases = releases
141
+
142
+ @property
143
+ def urls(self):
144
+ """Gets the urls of this PackageMetadataResponse. # noqa: E501
145
+
146
+
147
+ :return: The urls of this PackageMetadataResponse. # noqa: E501
148
+ :rtype: object
149
+ """
150
+ return self._urls
151
+
152
+ @urls.setter
153
+ def urls(self, urls):
154
+ """Sets the urls of this PackageMetadataResponse.
155
+
156
+
157
+ :param urls: The urls of this PackageMetadataResponse. # noqa: E501
158
+ :type: object
159
+ """
160
+ if self.local_vars_configuration.client_side_validation and urls is None: # noqa: E501
161
+ raise ValueError("Invalid value for `urls`, must not be `None`") # noqa: E501
162
+
163
+ self._urls = urls
164
+
165
+ def to_dict(self):
166
+ """Returns the model properties as a dict"""
167
+ result = {}
168
+
169
+ for attr, _ in six.iteritems(self.openapi_types):
170
+ value = getattr(self, attr)
171
+ if isinstance(value, list):
172
+ result[attr] = list(map(
173
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
174
+ value
175
+ ))
176
+ elif hasattr(value, "to_dict"):
177
+ result[attr] = value.to_dict()
178
+ elif isinstance(value, dict):
179
+ result[attr] = dict(map(
180
+ lambda item: (item[0], item[1].to_dict())
181
+ if hasattr(item[1], "to_dict") else item,
182
+ value.items()
183
+ ))
184
+ else:
185
+ result[attr] = value
186
+
187
+ return result
188
+
189
+ def to_str(self):
190
+ """Returns the string representation of the model"""
191
+ return pprint.pformat(self.to_dict())
192
+
193
+ def __repr__(self):
194
+ """For `print` and `pprint`"""
195
+ return self.to_str()
196
+
197
+ def __eq__(self, other):
198
+ """Returns true if both objects are equal"""
199
+ if not isinstance(other, PackageMetadataResponse):
200
+ return False
201
+
202
+ return self.to_dict() == other.to_dict()
203
+
204
+ def __ne__(self, other):
205
+ """Returns true if both objects are not equal"""
206
+ if not isinstance(other, PackageMetadataResponse):
207
+ return True
208
+
209
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,107 @@
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 PackageTypesEnum(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
+ allowed enum values
31
+ """
32
+ BDIST_DMG = "bdist_dmg"
33
+ BDIST_DUMB = "bdist_dumb"
34
+ BDIST_EGG = "bdist_egg"
35
+ BDIST_MSI = "bdist_msi"
36
+ BDIST_RPM = "bdist_rpm"
37
+ BDIST_WHEEL = "bdist_wheel"
38
+ BDIST_WININST = "bdist_wininst"
39
+ SDIST = "sdist"
40
+
41
+ allowable_values = [BDIST_DMG, BDIST_DUMB, BDIST_EGG, BDIST_MSI, BDIST_RPM, BDIST_WHEEL, BDIST_WININST, SDIST] # noqa: E501
42
+
43
+ """
44
+ Attributes:
45
+ openapi_types (dict): The key is attribute name
46
+ and the value is attribute type.
47
+ attribute_map (dict): The key is attribute name
48
+ and the value is json key in definition.
49
+ """
50
+ openapi_types = {
51
+ }
52
+
53
+ attribute_map = {
54
+ }
55
+
56
+ def __init__(self, local_vars_configuration=None): # noqa: E501
57
+ """PackageTypesEnum - a model defined in OpenAPI""" # noqa: E501
58
+ if local_vars_configuration is None:
59
+ local_vars_configuration = Configuration()
60
+ self.local_vars_configuration = local_vars_configuration
61
+ self.discriminator = None
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ result[attr] = value
84
+
85
+ return result
86
+
87
+ def to_str(self):
88
+ """Returns the string representation of the model"""
89
+ return pprint.pformat(self.to_dict())
90
+
91
+ def __repr__(self):
92
+ """For `print` and `pprint`"""
93
+ return self.to_str()
94
+
95
+ def __eq__(self, other):
96
+ """Returns true if both objects are equal"""
97
+ if not isinstance(other, PackageTypesEnum):
98
+ return False
99
+
100
+ return self.to_dict() == other.to_dict()
101
+
102
+ def __ne__(self, other):
103
+ """Returns true if both objects are not equal"""
104
+ if not isinstance(other, PackageTypesEnum):
105
+ return True
106
+
107
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,187 @@
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 PackageUpload(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
+ 'content': 'file',
38
+ 'action': 'str',
39
+ 'sha256_digest': 'str'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'content': 'content',
44
+ 'action': 'action',
45
+ 'sha256_digest': 'sha256_digest'
46
+ }
47
+
48
+ def __init__(self, content=None, action='file_upload', sha256_digest=None, local_vars_configuration=None): # noqa: E501
49
+ """PackageUpload - a model defined in OpenAPI""" # noqa: E501
50
+ if local_vars_configuration is None:
51
+ local_vars_configuration = Configuration()
52
+ self.local_vars_configuration = local_vars_configuration
53
+
54
+ self._content = None
55
+ self._action = None
56
+ self._sha256_digest = None
57
+ self.discriminator = None
58
+
59
+ self.content = content
60
+ if action is not None:
61
+ self.action = action
62
+ self.sha256_digest = sha256_digest
63
+
64
+ @property
65
+ def content(self):
66
+ """Gets the content of this PackageUpload. # noqa: E501
67
+
68
+ A Python package release file to upload to the index. # noqa: E501
69
+
70
+ :return: The content of this PackageUpload. # noqa: E501
71
+ :rtype: file
72
+ """
73
+ return self._content
74
+
75
+ @content.setter
76
+ def content(self, content):
77
+ """Sets the content of this PackageUpload.
78
+
79
+ A Python package release file to upload to the index. # noqa: E501
80
+
81
+ :param content: The content of this PackageUpload. # noqa: E501
82
+ :type: file
83
+ """
84
+ if self.local_vars_configuration.client_side_validation and content is None: # noqa: E501
85
+ raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501
86
+
87
+ self._content = content
88
+
89
+ @property
90
+ def action(self):
91
+ """Gets the action of this PackageUpload. # noqa: E501
92
+
93
+ Defaults to `file_upload`, don't change it or request will fail! # noqa: E501
94
+
95
+ :return: The action of this PackageUpload. # noqa: E501
96
+ :rtype: str
97
+ """
98
+ return self._action
99
+
100
+ @action.setter
101
+ def action(self, action):
102
+ """Sets the action of this PackageUpload.
103
+
104
+ Defaults to `file_upload`, don't change it or request will fail! # noqa: E501
105
+
106
+ :param action: The action of this PackageUpload. # noqa: E501
107
+ :type: str
108
+ """
109
+
110
+ self._action = action
111
+
112
+ @property
113
+ def sha256_digest(self):
114
+ """Gets the sha256_digest of this PackageUpload. # noqa: E501
115
+
116
+ SHA256 of package to validate upload integrity. # noqa: E501
117
+
118
+ :return: The sha256_digest of this PackageUpload. # noqa: E501
119
+ :rtype: str
120
+ """
121
+ return self._sha256_digest
122
+
123
+ @sha256_digest.setter
124
+ def sha256_digest(self, sha256_digest):
125
+ """Sets the sha256_digest of this PackageUpload.
126
+
127
+ SHA256 of package to validate upload integrity. # noqa: E501
128
+
129
+ :param sha256_digest: The sha256_digest of this PackageUpload. # noqa: E501
130
+ :type: str
131
+ """
132
+ if self.local_vars_configuration.client_side_validation and sha256_digest is None: # noqa: E501
133
+ raise ValueError("Invalid value for `sha256_digest`, must not be `None`") # noqa: E501
134
+ if (self.local_vars_configuration.client_side_validation and
135
+ sha256_digest is not None and len(sha256_digest) > 64):
136
+ raise ValueError("Invalid value for `sha256_digest`, length must be less than or equal to `64`") # noqa: E501
137
+ if (self.local_vars_configuration.client_side_validation and
138
+ sha256_digest is not None and len(sha256_digest) < 64):
139
+ raise ValueError("Invalid value for `sha256_digest`, length must be greater than or equal to `64`") # noqa: E501
140
+
141
+ self._sha256_digest = sha256_digest
142
+
143
+ def to_dict(self):
144
+ """Returns the model properties as a dict"""
145
+ result = {}
146
+
147
+ for attr, _ in six.iteritems(self.openapi_types):
148
+ value = getattr(self, attr)
149
+ if isinstance(value, list):
150
+ result[attr] = list(map(
151
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
152
+ value
153
+ ))
154
+ elif hasattr(value, "to_dict"):
155
+ result[attr] = value.to_dict()
156
+ elif isinstance(value, dict):
157
+ result[attr] = dict(map(
158
+ lambda item: (item[0], item[1].to_dict())
159
+ if hasattr(item[1], "to_dict") else item,
160
+ value.items()
161
+ ))
162
+ else:
163
+ result[attr] = value
164
+
165
+ return result
166
+
167
+ def to_str(self):
168
+ """Returns the string representation of the model"""
169
+ return pprint.pformat(self.to_dict())
170
+
171
+ def __repr__(self):
172
+ """For `print` and `pprint`"""
173
+ return self.to_str()
174
+
175
+ def __eq__(self, other):
176
+ """Returns true if both objects are equal"""
177
+ if not isinstance(other, PackageUpload):
178
+ return False
179
+
180
+ return self.to_dict() == other.to_dict()
181
+
182
+ def __ne__(self, other):
183
+ """Returns true if both objects are not equal"""
184
+ if not isinstance(other, PackageUpload):
185
+ return True
186
+
187
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,176 @@
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 PackageUploadTaskResponse(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
+ 'session': 'str',
38
+ 'task': 'str',
39
+ 'task_start_time': 'datetime'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'session': 'session',
44
+ 'task': 'task',
45
+ 'task_start_time': 'task_start_time'
46
+ }
47
+
48
+ def __init__(self, session=None, task=None, task_start_time=None, local_vars_configuration=None): # noqa: E501
49
+ """PackageUploadTaskResponse - a model defined in OpenAPI""" # noqa: E501
50
+ if local_vars_configuration is None:
51
+ local_vars_configuration = Configuration()
52
+ self.local_vars_configuration = local_vars_configuration
53
+
54
+ self._session = None
55
+ self._task = None
56
+ self._task_start_time = None
57
+ self.discriminator = None
58
+
59
+ self.session = session
60
+ self.task = task
61
+ self.task_start_time = task_start_time
62
+
63
+ @property
64
+ def session(self):
65
+ """Gets the session of this PackageUploadTaskResponse. # noqa: E501
66
+
67
+
68
+ :return: The session of this PackageUploadTaskResponse. # noqa: E501
69
+ :rtype: str
70
+ """
71
+ return self._session
72
+
73
+ @session.setter
74
+ def session(self, session):
75
+ """Sets the session of this PackageUploadTaskResponse.
76
+
77
+
78
+ :param session: The session of this PackageUploadTaskResponse. # noqa: E501
79
+ :type: str
80
+ """
81
+ if self.local_vars_configuration.client_side_validation and session is None: # noqa: E501
82
+ raise ValueError("Invalid value for `session`, must not be `None`") # noqa: E501
83
+
84
+ self._session = session
85
+
86
+ @property
87
+ def task(self):
88
+ """Gets the task of this PackageUploadTaskResponse. # noqa: E501
89
+
90
+
91
+ :return: The task of this PackageUploadTaskResponse. # noqa: E501
92
+ :rtype: str
93
+ """
94
+ return self._task
95
+
96
+ @task.setter
97
+ def task(self, task):
98
+ """Sets the task of this PackageUploadTaskResponse.
99
+
100
+
101
+ :param task: The task of this PackageUploadTaskResponse. # noqa: E501
102
+ :type: str
103
+ """
104
+ if self.local_vars_configuration.client_side_validation and task is None: # noqa: E501
105
+ raise ValueError("Invalid value for `task`, must not be `None`") # noqa: E501
106
+
107
+ self._task = task
108
+
109
+ @property
110
+ def task_start_time(self):
111
+ """Gets the task_start_time of this PackageUploadTaskResponse. # noqa: E501
112
+
113
+
114
+ :return: The task_start_time of this PackageUploadTaskResponse. # noqa: E501
115
+ :rtype: datetime
116
+ """
117
+ return self._task_start_time
118
+
119
+ @task_start_time.setter
120
+ def task_start_time(self, task_start_time):
121
+ """Sets the task_start_time of this PackageUploadTaskResponse.
122
+
123
+
124
+ :param task_start_time: The task_start_time of this PackageUploadTaskResponse. # noqa: E501
125
+ :type: datetime
126
+ """
127
+ if self.local_vars_configuration.client_side_validation and task_start_time is None: # noqa: E501
128
+ raise ValueError("Invalid value for `task_start_time`, must not be `None`") # noqa: E501
129
+
130
+ self._task_start_time = task_start_time
131
+
132
+ def to_dict(self):
133
+ """Returns the model properties as a dict"""
134
+ result = {}
135
+
136
+ for attr, _ in six.iteritems(self.openapi_types):
137
+ value = getattr(self, attr)
138
+ if isinstance(value, list):
139
+ result[attr] = list(map(
140
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
141
+ value
142
+ ))
143
+ elif hasattr(value, "to_dict"):
144
+ result[attr] = value.to_dict()
145
+ elif isinstance(value, dict):
146
+ result[attr] = dict(map(
147
+ lambda item: (item[0], item[1].to_dict())
148
+ if hasattr(item[1], "to_dict") else item,
149
+ value.items()
150
+ ))
151
+ else:
152
+ result[attr] = value
153
+
154
+ return result
155
+
156
+ def to_str(self):
157
+ """Returns the string representation of the model"""
158
+ return pprint.pformat(self.to_dict())
159
+
160
+ def __repr__(self):
161
+ """For `print` and `pprint`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, PackageUploadTaskResponse):
167
+ return False
168
+
169
+ return self.to_dict() == other.to_dict()
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ if not isinstance(other, PackageUploadTaskResponse):
174
+ return True
175
+
176
+ return self.to_dict() != other.to_dict()