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,260 @@
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 PythonPythonRepository(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
+ 'pulp_labels': 'object',
38
+ 'name': 'str',
39
+ 'description': 'str',
40
+ 'retained_versions': 'int',
41
+ 'remote': 'str',
42
+ 'autopublish': 'bool'
43
+ }
44
+
45
+ attribute_map = {
46
+ 'pulp_labels': 'pulp_labels',
47
+ 'name': 'name',
48
+ 'description': 'description',
49
+ 'retained_versions': 'retained_versions',
50
+ 'remote': 'remote',
51
+ 'autopublish': 'autopublish'
52
+ }
53
+
54
+ def __init__(self, pulp_labels=None, name=None, description=None, retained_versions=None, remote=None, autopublish=False, local_vars_configuration=None): # noqa: E501
55
+ """PythonPythonRepository - a model defined in OpenAPI""" # noqa: E501
56
+ if local_vars_configuration is None:
57
+ local_vars_configuration = Configuration()
58
+ self.local_vars_configuration = local_vars_configuration
59
+
60
+ self._pulp_labels = None
61
+ self._name = None
62
+ self._description = None
63
+ self._retained_versions = None
64
+ self._remote = None
65
+ self._autopublish = None
66
+ self.discriminator = None
67
+
68
+ if pulp_labels is not None:
69
+ self.pulp_labels = pulp_labels
70
+ self.name = name
71
+ self.description = description
72
+ self.retained_versions = retained_versions
73
+ self.remote = remote
74
+ if autopublish is not None:
75
+ self.autopublish = autopublish
76
+
77
+ @property
78
+ def pulp_labels(self):
79
+ """Gets the pulp_labels of this PythonPythonRepository. # noqa: E501
80
+
81
+
82
+ :return: The pulp_labels of this PythonPythonRepository. # noqa: E501
83
+ :rtype: object
84
+ """
85
+ return self._pulp_labels
86
+
87
+ @pulp_labels.setter
88
+ def pulp_labels(self, pulp_labels):
89
+ """Sets the pulp_labels of this PythonPythonRepository.
90
+
91
+
92
+ :param pulp_labels: The pulp_labels of this PythonPythonRepository. # noqa: E501
93
+ :type: object
94
+ """
95
+
96
+ self._pulp_labels = pulp_labels
97
+
98
+ @property
99
+ def name(self):
100
+ """Gets the name of this PythonPythonRepository. # noqa: E501
101
+
102
+ A unique name for this repository. # noqa: E501
103
+
104
+ :return: The name of this PythonPythonRepository. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._name
108
+
109
+ @name.setter
110
+ def name(self, name):
111
+ """Sets the name of this PythonPythonRepository.
112
+
113
+ A unique name for this repository. # noqa: E501
114
+
115
+ :param name: The name of this PythonPythonRepository. # noqa: E501
116
+ :type: str
117
+ """
118
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
119
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
120
+
121
+ self._name = name
122
+
123
+ @property
124
+ def description(self):
125
+ """Gets the description of this PythonPythonRepository. # noqa: E501
126
+
127
+ An optional description. # noqa: E501
128
+
129
+ :return: The description of this PythonPythonRepository. # noqa: E501
130
+ :rtype: str
131
+ """
132
+ return self._description
133
+
134
+ @description.setter
135
+ def description(self, description):
136
+ """Sets the description of this PythonPythonRepository.
137
+
138
+ An optional description. # noqa: E501
139
+
140
+ :param description: The description of this PythonPythonRepository. # noqa: E501
141
+ :type: str
142
+ """
143
+
144
+ self._description = description
145
+
146
+ @property
147
+ def retained_versions(self):
148
+ """Gets the retained_versions of this PythonPythonRepository. # noqa: E501
149
+
150
+ Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
151
+
152
+ :return: The retained_versions of this PythonPythonRepository. # noqa: E501
153
+ :rtype: int
154
+ """
155
+ return self._retained_versions
156
+
157
+ @retained_versions.setter
158
+ def retained_versions(self, retained_versions):
159
+ """Sets the retained_versions of this PythonPythonRepository.
160
+
161
+ Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
162
+
163
+ :param retained_versions: The retained_versions of this PythonPythonRepository. # noqa: E501
164
+ :type: int
165
+ """
166
+ if (self.local_vars_configuration.client_side_validation and
167
+ retained_versions is not None and retained_versions < 1): # noqa: E501
168
+ raise ValueError("Invalid value for `retained_versions`, must be a value greater than or equal to `1`") # noqa: E501
169
+
170
+ self._retained_versions = retained_versions
171
+
172
+ @property
173
+ def remote(self):
174
+ """Gets the remote of this PythonPythonRepository. # noqa: E501
175
+
176
+
177
+ :return: The remote of this PythonPythonRepository. # noqa: E501
178
+ :rtype: str
179
+ """
180
+ return self._remote
181
+
182
+ @remote.setter
183
+ def remote(self, remote):
184
+ """Sets the remote of this PythonPythonRepository.
185
+
186
+
187
+ :param remote: The remote of this PythonPythonRepository. # noqa: E501
188
+ :type: str
189
+ """
190
+
191
+ self._remote = remote
192
+
193
+ @property
194
+ def autopublish(self):
195
+ """Gets the autopublish of this PythonPythonRepository. # noqa: E501
196
+
197
+ Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. # noqa: E501
198
+
199
+ :return: The autopublish of this PythonPythonRepository. # noqa: E501
200
+ :rtype: bool
201
+ """
202
+ return self._autopublish
203
+
204
+ @autopublish.setter
205
+ def autopublish(self, autopublish):
206
+ """Sets the autopublish of this PythonPythonRepository.
207
+
208
+ Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. # noqa: E501
209
+
210
+ :param autopublish: The autopublish of this PythonPythonRepository. # noqa: E501
211
+ :type: bool
212
+ """
213
+
214
+ self._autopublish = autopublish
215
+
216
+ def to_dict(self):
217
+ """Returns the model properties as a dict"""
218
+ result = {}
219
+
220
+ for attr, _ in six.iteritems(self.openapi_types):
221
+ value = getattr(self, attr)
222
+ if isinstance(value, list):
223
+ result[attr] = list(map(
224
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
225
+ value
226
+ ))
227
+ elif hasattr(value, "to_dict"):
228
+ result[attr] = value.to_dict()
229
+ elif isinstance(value, dict):
230
+ result[attr] = dict(map(
231
+ lambda item: (item[0], item[1].to_dict())
232
+ if hasattr(item[1], "to_dict") else item,
233
+ value.items()
234
+ ))
235
+ else:
236
+ result[attr] = value
237
+
238
+ return result
239
+
240
+ def to_str(self):
241
+ """Returns the string representation of the model"""
242
+ return pprint.pformat(self.to_dict())
243
+
244
+ def __repr__(self):
245
+ """For `print` and `pprint`"""
246
+ return self.to_str()
247
+
248
+ def __eq__(self, other):
249
+ """Returns true if both objects are equal"""
250
+ if not isinstance(other, PythonPythonRepository):
251
+ return False
252
+
253
+ return self.to_dict() == other.to_dict()
254
+
255
+ def __ne__(self, other):
256
+ """Returns true if both objects are not equal"""
257
+ if not isinstance(other, PythonPythonRepository):
258
+ return True
259
+
260
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,366 @@
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 PythonPythonRepositoryResponse(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
+ 'pulp_href': 'str',
38
+ 'pulp_created': 'datetime',
39
+ 'versions_href': 'str',
40
+ 'pulp_labels': 'object',
41
+ 'latest_version_href': 'str',
42
+ 'name': 'str',
43
+ 'description': 'str',
44
+ 'retained_versions': 'int',
45
+ 'remote': 'str',
46
+ 'autopublish': 'bool'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'pulp_href': 'pulp_href',
51
+ 'pulp_created': 'pulp_created',
52
+ 'versions_href': 'versions_href',
53
+ 'pulp_labels': 'pulp_labels',
54
+ 'latest_version_href': 'latest_version_href',
55
+ 'name': 'name',
56
+ 'description': 'description',
57
+ 'retained_versions': 'retained_versions',
58
+ 'remote': 'remote',
59
+ 'autopublish': 'autopublish'
60
+ }
61
+
62
+ def __init__(self, pulp_href=None, pulp_created=None, versions_href=None, pulp_labels=None, latest_version_href=None, name=None, description=None, retained_versions=None, remote=None, autopublish=False, local_vars_configuration=None): # noqa: E501
63
+ """PythonPythonRepositoryResponse - a model defined in OpenAPI""" # noqa: E501
64
+ if local_vars_configuration is None:
65
+ local_vars_configuration = Configuration()
66
+ self.local_vars_configuration = local_vars_configuration
67
+
68
+ self._pulp_href = None
69
+ self._pulp_created = None
70
+ self._versions_href = None
71
+ self._pulp_labels = None
72
+ self._latest_version_href = None
73
+ self._name = None
74
+ self._description = None
75
+ self._retained_versions = None
76
+ self._remote = None
77
+ self._autopublish = None
78
+ self.discriminator = None
79
+
80
+ if pulp_href is not None:
81
+ self.pulp_href = pulp_href
82
+ if pulp_created is not None:
83
+ self.pulp_created = pulp_created
84
+ if versions_href is not None:
85
+ self.versions_href = versions_href
86
+ if pulp_labels is not None:
87
+ self.pulp_labels = pulp_labels
88
+ if latest_version_href is not None:
89
+ self.latest_version_href = latest_version_href
90
+ self.name = name
91
+ self.description = description
92
+ self.retained_versions = retained_versions
93
+ self.remote = remote
94
+ if autopublish is not None:
95
+ self.autopublish = autopublish
96
+
97
+ @property
98
+ def pulp_href(self):
99
+ """Gets the pulp_href of this PythonPythonRepositoryResponse. # noqa: E501
100
+
101
+
102
+ :return: The pulp_href of this PythonPythonRepositoryResponse. # noqa: E501
103
+ :rtype: str
104
+ """
105
+ return self._pulp_href
106
+
107
+ @pulp_href.setter
108
+ def pulp_href(self, pulp_href):
109
+ """Sets the pulp_href of this PythonPythonRepositoryResponse.
110
+
111
+
112
+ :param pulp_href: The pulp_href of this PythonPythonRepositoryResponse. # noqa: E501
113
+ :type: str
114
+ """
115
+
116
+ self._pulp_href = pulp_href
117
+
118
+ @property
119
+ def pulp_created(self):
120
+ """Gets the pulp_created of this PythonPythonRepositoryResponse. # noqa: E501
121
+
122
+ Timestamp of creation. # noqa: E501
123
+
124
+ :return: The pulp_created of this PythonPythonRepositoryResponse. # noqa: E501
125
+ :rtype: datetime
126
+ """
127
+ return self._pulp_created
128
+
129
+ @pulp_created.setter
130
+ def pulp_created(self, pulp_created):
131
+ """Sets the pulp_created of this PythonPythonRepositoryResponse.
132
+
133
+ Timestamp of creation. # noqa: E501
134
+
135
+ :param pulp_created: The pulp_created of this PythonPythonRepositoryResponse. # noqa: E501
136
+ :type: datetime
137
+ """
138
+
139
+ self._pulp_created = pulp_created
140
+
141
+ @property
142
+ def versions_href(self):
143
+ """Gets the versions_href of this PythonPythonRepositoryResponse. # noqa: E501
144
+
145
+
146
+ :return: The versions_href of this PythonPythonRepositoryResponse. # noqa: E501
147
+ :rtype: str
148
+ """
149
+ return self._versions_href
150
+
151
+ @versions_href.setter
152
+ def versions_href(self, versions_href):
153
+ """Sets the versions_href of this PythonPythonRepositoryResponse.
154
+
155
+
156
+ :param versions_href: The versions_href of this PythonPythonRepositoryResponse. # noqa: E501
157
+ :type: str
158
+ """
159
+
160
+ self._versions_href = versions_href
161
+
162
+ @property
163
+ def pulp_labels(self):
164
+ """Gets the pulp_labels of this PythonPythonRepositoryResponse. # noqa: E501
165
+
166
+
167
+ :return: The pulp_labels of this PythonPythonRepositoryResponse. # noqa: E501
168
+ :rtype: object
169
+ """
170
+ return self._pulp_labels
171
+
172
+ @pulp_labels.setter
173
+ def pulp_labels(self, pulp_labels):
174
+ """Sets the pulp_labels of this PythonPythonRepositoryResponse.
175
+
176
+
177
+ :param pulp_labels: The pulp_labels of this PythonPythonRepositoryResponse. # noqa: E501
178
+ :type: object
179
+ """
180
+
181
+ self._pulp_labels = pulp_labels
182
+
183
+ @property
184
+ def latest_version_href(self):
185
+ """Gets the latest_version_href of this PythonPythonRepositoryResponse. # noqa: E501
186
+
187
+
188
+ :return: The latest_version_href of this PythonPythonRepositoryResponse. # noqa: E501
189
+ :rtype: str
190
+ """
191
+ return self._latest_version_href
192
+
193
+ @latest_version_href.setter
194
+ def latest_version_href(self, latest_version_href):
195
+ """Sets the latest_version_href of this PythonPythonRepositoryResponse.
196
+
197
+
198
+ :param latest_version_href: The latest_version_href of this PythonPythonRepositoryResponse. # noqa: E501
199
+ :type: str
200
+ """
201
+
202
+ self._latest_version_href = latest_version_href
203
+
204
+ @property
205
+ def name(self):
206
+ """Gets the name of this PythonPythonRepositoryResponse. # noqa: E501
207
+
208
+ A unique name for this repository. # noqa: E501
209
+
210
+ :return: The name of this PythonPythonRepositoryResponse. # noqa: E501
211
+ :rtype: str
212
+ """
213
+ return self._name
214
+
215
+ @name.setter
216
+ def name(self, name):
217
+ """Sets the name of this PythonPythonRepositoryResponse.
218
+
219
+ A unique name for this repository. # noqa: E501
220
+
221
+ :param name: The name of this PythonPythonRepositoryResponse. # noqa: E501
222
+ :type: str
223
+ """
224
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
225
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
226
+
227
+ self._name = name
228
+
229
+ @property
230
+ def description(self):
231
+ """Gets the description of this PythonPythonRepositoryResponse. # noqa: E501
232
+
233
+ An optional description. # noqa: E501
234
+
235
+ :return: The description of this PythonPythonRepositoryResponse. # noqa: E501
236
+ :rtype: str
237
+ """
238
+ return self._description
239
+
240
+ @description.setter
241
+ def description(self, description):
242
+ """Sets the description of this PythonPythonRepositoryResponse.
243
+
244
+ An optional description. # noqa: E501
245
+
246
+ :param description: The description of this PythonPythonRepositoryResponse. # noqa: E501
247
+ :type: str
248
+ """
249
+
250
+ self._description = description
251
+
252
+ @property
253
+ def retained_versions(self):
254
+ """Gets the retained_versions of this PythonPythonRepositoryResponse. # noqa: E501
255
+
256
+ Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
257
+
258
+ :return: The retained_versions of this PythonPythonRepositoryResponse. # noqa: E501
259
+ :rtype: int
260
+ """
261
+ return self._retained_versions
262
+
263
+ @retained_versions.setter
264
+ def retained_versions(self, retained_versions):
265
+ """Sets the retained_versions of this PythonPythonRepositoryResponse.
266
+
267
+ Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
268
+
269
+ :param retained_versions: The retained_versions of this PythonPythonRepositoryResponse. # noqa: E501
270
+ :type: int
271
+ """
272
+ if (self.local_vars_configuration.client_side_validation and
273
+ retained_versions is not None and retained_versions < 1): # noqa: E501
274
+ raise ValueError("Invalid value for `retained_versions`, must be a value greater than or equal to `1`") # noqa: E501
275
+
276
+ self._retained_versions = retained_versions
277
+
278
+ @property
279
+ def remote(self):
280
+ """Gets the remote of this PythonPythonRepositoryResponse. # noqa: E501
281
+
282
+
283
+ :return: The remote of this PythonPythonRepositoryResponse. # noqa: E501
284
+ :rtype: str
285
+ """
286
+ return self._remote
287
+
288
+ @remote.setter
289
+ def remote(self, remote):
290
+ """Sets the remote of this PythonPythonRepositoryResponse.
291
+
292
+
293
+ :param remote: The remote of this PythonPythonRepositoryResponse. # noqa: E501
294
+ :type: str
295
+ """
296
+
297
+ self._remote = remote
298
+
299
+ @property
300
+ def autopublish(self):
301
+ """Gets the autopublish of this PythonPythonRepositoryResponse. # noqa: E501
302
+
303
+ Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. # noqa: E501
304
+
305
+ :return: The autopublish of this PythonPythonRepositoryResponse. # noqa: E501
306
+ :rtype: bool
307
+ """
308
+ return self._autopublish
309
+
310
+ @autopublish.setter
311
+ def autopublish(self, autopublish):
312
+ """Sets the autopublish of this PythonPythonRepositoryResponse.
313
+
314
+ Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. # noqa: E501
315
+
316
+ :param autopublish: The autopublish of this PythonPythonRepositoryResponse. # noqa: E501
317
+ :type: bool
318
+ """
319
+
320
+ self._autopublish = autopublish
321
+
322
+ def to_dict(self):
323
+ """Returns the model properties as a dict"""
324
+ result = {}
325
+
326
+ for attr, _ in six.iteritems(self.openapi_types):
327
+ value = getattr(self, attr)
328
+ if isinstance(value, list):
329
+ result[attr] = list(map(
330
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
331
+ value
332
+ ))
333
+ elif hasattr(value, "to_dict"):
334
+ result[attr] = value.to_dict()
335
+ elif isinstance(value, dict):
336
+ result[attr] = dict(map(
337
+ lambda item: (item[0], item[1].to_dict())
338
+ if hasattr(item[1], "to_dict") else item,
339
+ value.items()
340
+ ))
341
+ else:
342
+ result[attr] = value
343
+
344
+ return result
345
+
346
+ def to_str(self):
347
+ """Returns the string representation of the model"""
348
+ return pprint.pformat(self.to_dict())
349
+
350
+ def __repr__(self):
351
+ """For `print` and `pprint`"""
352
+ return self.to_str()
353
+
354
+ def __eq__(self, other):
355
+ """Returns true if both objects are equal"""
356
+ if not isinstance(other, PythonPythonRepositoryResponse):
357
+ return False
358
+
359
+ return self.to_dict() == other.to_dict()
360
+
361
+ def __ne__(self, other):
362
+ """Returns true if both objects are not equal"""
363
+ if not isinstance(other, PythonPythonRepositoryResponse):
364
+ return True
365
+
366
+ return self.to_dict() != other.to_dict()