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,240 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpPythonClient
16
+ # A Serializer for responding to a package upload task.
17
+ class PackageUploadTaskResponse
18
+ attr_accessor :session
19
+
20
+ attr_accessor :task
21
+
22
+ attr_accessor :task_start_time
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'session' => :'session',
28
+ :'task' => :'task',
29
+ :'task_start_time' => :'task_start_time'
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'session' => :'String',
37
+ :'task' => :'String',
38
+ :'task_start_time' => :'DateTime'
39
+ }
40
+ end
41
+
42
+ # List of attributes with nullable: true
43
+ def self.openapi_nullable
44
+ Set.new([
45
+ ])
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ if (!attributes.is_a?(Hash))
52
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PackageUploadTaskResponse` initialize method"
53
+ end
54
+
55
+ # check to see if the attribute exists and convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h|
57
+ if (!self.class.attribute_map.key?(k.to_sym))
58
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::PackageUploadTaskResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ end
60
+ h[k.to_sym] = v
61
+ }
62
+
63
+ if attributes.key?(:'session')
64
+ self.session = attributes[:'session']
65
+ end
66
+
67
+ if attributes.key?(:'task')
68
+ self.task = attributes[:'task']
69
+ end
70
+
71
+ if attributes.key?(:'task_start_time')
72
+ self.task_start_time = attributes[:'task_start_time']
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ invalid_properties = Array.new
80
+ if @session.nil?
81
+ invalid_properties.push('invalid value for "session", session cannot be nil.')
82
+ end
83
+
84
+ if @task.nil?
85
+ invalid_properties.push('invalid value for "task", task cannot be nil.')
86
+ end
87
+
88
+ if @task_start_time.nil?
89
+ invalid_properties.push('invalid value for "task_start_time", task_start_time cannot be nil.')
90
+ end
91
+
92
+ invalid_properties
93
+ end
94
+
95
+ # Check to see if the all the properties in the model are valid
96
+ # @return true if the model is valid
97
+ def valid?
98
+ return false if @session.nil?
99
+ return false if @task.nil?
100
+ return false if @task_start_time.nil?
101
+ true
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ session == o.session &&
110
+ task == o.task &&
111
+ task_start_time == o.task_start_time
112
+ end
113
+
114
+ # @see the `==` method
115
+ # @param [Object] Object to be compared
116
+ def eql?(o)
117
+ self == o
118
+ end
119
+
120
+ # Calculates hash code according to all attributes.
121
+ # @return [Integer] Hash code
122
+ def hash
123
+ [session, task, task_start_time].hash
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def self.build_from_hash(attributes)
130
+ new.build_from_hash(attributes)
131
+ end
132
+
133
+ # Builds the object from hash
134
+ # @param [Hash] attributes Model attributes in the form of hash
135
+ # @return [Object] Returns the model itself
136
+ def build_from_hash(attributes)
137
+ return nil unless attributes.is_a?(Hash)
138
+ self.class.openapi_types.each_pair do |key, type|
139
+ if type =~ /\AArray<(.*)>/i
140
+ # check to ensure the input is an array given that the attribute
141
+ # is documented as an array but the input is not
142
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
143
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
144
+ end
145
+ elsif !attributes[self.class.attribute_map[key]].nil?
146
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
147
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
148
+ end
149
+
150
+ self
151
+ end
152
+
153
+ # Deserializes the data based on type
154
+ # @param string type Data type
155
+ # @param string value Value to be deserialized
156
+ # @return [Object] Deserialized data
157
+ def _deserialize(type, value)
158
+ case type.to_sym
159
+ when :DateTime
160
+ DateTime.parse(value)
161
+ when :Date
162
+ Date.parse(value)
163
+ when :String
164
+ value.to_s
165
+ when :Integer
166
+ value.to_i
167
+ when :Float
168
+ value.to_f
169
+ when :Boolean
170
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
171
+ true
172
+ else
173
+ false
174
+ end
175
+ when :Object
176
+ # generic object (usually a Hash), return directly
177
+ value
178
+ when /\AArray<(?<inner_type>.+)>\z/
179
+ inner_type = Regexp.last_match[:inner_type]
180
+ value.map { |v| _deserialize(inner_type, v) }
181
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
182
+ k_type = Regexp.last_match[:k_type]
183
+ v_type = Regexp.last_match[:v_type]
184
+ {}.tap do |hash|
185
+ value.each do |k, v|
186
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
187
+ end
188
+ end
189
+ else # model
190
+ PulpPythonClient.const_get(type).build_from_hash(value)
191
+ end
192
+ end
193
+
194
+ # Returns the string representation of the object
195
+ # @return [String] String presentation of the object
196
+ def to_s
197
+ to_hash.to_s
198
+ end
199
+
200
+ # to_body is an alias to to_hash (backward compatibility)
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_body
203
+ to_hash
204
+ end
205
+
206
+ # Returns the object in the form of hash
207
+ # @return [Hash] Returns the object in the form of hash
208
+ def to_hash
209
+ hash = {}
210
+ self.class.attribute_map.each_pair do |attr, param|
211
+ value = self.send(attr)
212
+ if value.nil?
213
+ is_nullable = self.class.openapi_nullable.include?(attr)
214
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
215
+ end
216
+
217
+ hash[param] = _to_hash(value)
218
+ end
219
+ hash
220
+ end
221
+
222
+ # Outputs non-array value in the form of hash
223
+ # For object, use to_hash. Otherwise, just return the value
224
+ # @param [Object] value Any valid value
225
+ # @return [Hash] Returns the value in the form of hash
226
+ def _to_hash(value)
227
+ if value.is_a?(Array)
228
+ value.compact.map { |v| _to_hash(v) }
229
+ elsif value.is_a?(Hash)
230
+ {}.tap do |hash|
231
+ value.each { |k, v| hash[k] = _to_hash(v) }
232
+ end
233
+ elsif value.respond_to? :to_hash
234
+ value.to_hash
235
+ else
236
+ value
237
+ end
238
+ end
239
+ end
240
+ end
@@ -32,6 +32,9 @@ module PulpPythonClient
32
32
  # Publication to be served
33
33
  attr_accessor :publication
34
34
 
35
+ # Allow packages to be uploaded to this index.
36
+ attr_accessor :allow_uploads
37
+
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
@@ -40,7 +43,8 @@ module PulpPythonClient
40
43
  :'pulp_labels' => :'pulp_labels',
41
44
  :'name' => :'name',
42
45
  :'repository' => :'repository',
43
- :'publication' => :'publication'
46
+ :'publication' => :'publication',
47
+ :'allow_uploads' => :'allow_uploads'
44
48
  }
45
49
  end
46
50
 
@@ -52,7 +56,8 @@ module PulpPythonClient
52
56
  :'pulp_labels' => :'Object',
53
57
  :'name' => :'String',
54
58
  :'repository' => :'String',
55
- :'publication' => :'String'
59
+ :'publication' => :'String',
60
+ :'allow_uploads' => :'Boolean'
56
61
  }
57
62
  end
58
63
 
@@ -61,7 +66,7 @@ module PulpPythonClient
61
66
  Set.new([
62
67
  :'content_guard',
63
68
  :'repository',
64
- :'publication'
69
+ :'publication',
65
70
  ])
66
71
  end
67
72
 
@@ -103,6 +108,12 @@ module PulpPythonClient
103
108
  if attributes.key?(:'publication')
104
109
  self.publication = attributes[:'publication']
105
110
  end
111
+
112
+ if attributes.key?(:'allow_uploads')
113
+ self.allow_uploads = attributes[:'allow_uploads']
114
+ else
115
+ self.allow_uploads = true
116
+ end
106
117
  end
107
118
 
108
119
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -128,7 +139,8 @@ module PulpPythonClient
128
139
  pulp_labels == o.pulp_labels &&
129
140
  name == o.name &&
130
141
  repository == o.repository &&
131
- publication == o.publication
142
+ publication == o.publication &&
143
+ allow_uploads == o.allow_uploads
132
144
  end
133
145
 
134
146
  # @see the `==` method
@@ -140,7 +152,7 @@ module PulpPythonClient
140
152
  # Calculates hash code according to all attributes.
141
153
  # @return [Integer] Hash code
142
154
  def hash
143
- [base_path, content_guard, pulp_labels, name, repository, publication].hash
155
+ [base_path, content_guard, pulp_labels, name, repository, publication, allow_uploads].hash
144
156
  end
145
157
 
146
158
  # Builds the object from hash
@@ -53,7 +53,7 @@ module PulpPythonClient
53
53
  # Total number of simultaneous connections.
54
54
  attr_accessor :download_concurrency
55
55
 
56
- # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'cache_only'. 'immediate' is the default.
56
+ # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default.
57
57
  attr_accessor :policy
58
58
 
59
59
  # aiohttp.ClientTimeout.total (q.v.) for download-connections.
@@ -21,7 +21,7 @@ module PulpPythonClient
21
21
  # A unique name for this remote
22
22
  attr_accessor :name
23
23
 
24
- # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'cache_only'. 'immediate' is the default.
24
+ # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default.
25
25
  attr_accessor :policy
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -32,6 +32,9 @@ module PulpPythonClient
32
32
  # Publication to be served
33
33
  attr_accessor :publication
34
34
 
35
+ # Allow packages to be uploaded to this index.
36
+ attr_accessor :allow_uploads
37
+
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
@@ -40,7 +43,8 @@ module PulpPythonClient
40
43
  :'pulp_labels' => :'pulp_labels',
41
44
  :'name' => :'name',
42
45
  :'repository' => :'repository',
43
- :'publication' => :'publication'
46
+ :'publication' => :'publication',
47
+ :'allow_uploads' => :'allow_uploads'
44
48
  }
45
49
  end
46
50
 
@@ -52,7 +56,8 @@ module PulpPythonClient
52
56
  :'pulp_labels' => :'Object',
53
57
  :'name' => :'String',
54
58
  :'repository' => :'String',
55
- :'publication' => :'String'
59
+ :'publication' => :'String',
60
+ :'allow_uploads' => :'Boolean'
56
61
  }
57
62
  end
58
63
 
@@ -61,7 +66,7 @@ module PulpPythonClient
61
66
  Set.new([
62
67
  :'content_guard',
63
68
  :'repository',
64
- :'publication'
69
+ :'publication',
65
70
  ])
66
71
  end
67
72
 
@@ -103,6 +108,12 @@ module PulpPythonClient
103
108
  if attributes.key?(:'publication')
104
109
  self.publication = attributes[:'publication']
105
110
  end
111
+
112
+ if attributes.key?(:'allow_uploads')
113
+ self.allow_uploads = attributes[:'allow_uploads']
114
+ else
115
+ self.allow_uploads = true
116
+ end
106
117
  end
107
118
 
108
119
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -138,7 +149,8 @@ module PulpPythonClient
138
149
  pulp_labels == o.pulp_labels &&
139
150
  name == o.name &&
140
151
  repository == o.repository &&
141
- publication == o.publication
152
+ publication == o.publication &&
153
+ allow_uploads == o.allow_uploads
142
154
  end
143
155
 
144
156
  # @see the `==` method
@@ -150,7 +162,7 @@ module PulpPythonClient
150
162
  # Calculates hash code according to all attributes.
151
163
  # @return [Integer] Hash code
152
164
  def hash
153
- [base_path, content_guard, pulp_labels, name, repository, publication].hash
165
+ [base_path, content_guard, pulp_labels, name, repository, publication, allow_uploads].hash
154
166
  end
155
167
 
156
168
  # Builds the object from hash
@@ -23,7 +23,6 @@ module PulpPythonClient
23
23
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
24
24
  attr_accessor :base_path
25
25
 
26
- # The URL for accessing the publication as defined by this distribution.
27
26
  attr_accessor :base_url
28
27
 
29
28
  # An optional content-guard.
@@ -40,6 +39,9 @@ module PulpPythonClient
40
39
  # Publication to be served
41
40
  attr_accessor :publication
42
41
 
42
+ # Allow packages to be uploaded to this index.
43
+ attr_accessor :allow_uploads
44
+
43
45
  # Attribute mapping from ruby-style variable name to JSON key.
44
46
  def self.attribute_map
45
47
  {
@@ -51,7 +53,8 @@ module PulpPythonClient
51
53
  :'pulp_labels' => :'pulp_labels',
52
54
  :'name' => :'name',
53
55
  :'repository' => :'repository',
54
- :'publication' => :'publication'
56
+ :'publication' => :'publication',
57
+ :'allow_uploads' => :'allow_uploads'
55
58
  }
56
59
  end
57
60
 
@@ -66,7 +69,8 @@ module PulpPythonClient
66
69
  :'pulp_labels' => :'Object',
67
70
  :'name' => :'String',
68
71
  :'repository' => :'String',
69
- :'publication' => :'String'
72
+ :'publication' => :'String',
73
+ :'allow_uploads' => :'Boolean'
70
74
  }
71
75
  end
72
76
 
@@ -75,7 +79,7 @@ module PulpPythonClient
75
79
  Set.new([
76
80
  :'content_guard',
77
81
  :'repository',
78
- :'publication'
82
+ :'publication',
79
83
  ])
80
84
  end
81
85
 
@@ -129,6 +133,12 @@ module PulpPythonClient
129
133
  if attributes.key?(:'publication')
130
134
  self.publication = attributes[:'publication']
131
135
  end
136
+
137
+ if attributes.key?(:'allow_uploads')
138
+ self.allow_uploads = attributes[:'allow_uploads']
139
+ else
140
+ self.allow_uploads = true
141
+ end
132
142
  end
133
143
 
134
144
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -167,7 +177,8 @@ module PulpPythonClient
167
177
  pulp_labels == o.pulp_labels &&
168
178
  name == o.name &&
169
179
  repository == o.repository &&
170
- publication == o.publication
180
+ publication == o.publication &&
181
+ allow_uploads == o.allow_uploads
171
182
  end
172
183
 
173
184
  # @see the `==` method
@@ -179,7 +190,7 @@ module PulpPythonClient
179
190
  # Calculates hash code according to all attributes.
180
191
  # @return [Integer] Hash code
181
192
  def hash
182
- [pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication].hash
193
+ [pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication, allow_uploads].hash
183
194
  end
184
195
 
185
196
  # Builds the object from hash
@@ -27,12 +27,18 @@ module PulpPythonClient
27
27
  # A URI of a repository the new content unit should be associated with.
28
28
  attr_accessor :repository
29
29
 
30
+ # The SHA256 digest of this package.
31
+ attr_accessor :sha256
32
+
30
33
  # A one-line summary of what the package does.
31
34
  attr_accessor :summary
32
35
 
33
36
  # A longer description of the package that can run to several paragraphs.
34
37
  attr_accessor :description
35
38
 
39
+ # A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.
40
+ attr_accessor :description_content_type
41
+
36
42
  # Additional keywords to be used to assist searching for the package in a larger catalog.
37
43
  attr_accessor :keywords
38
44
 
@@ -63,6 +69,9 @@ module PulpPythonClient
63
69
  # A browsable URL for the project and a label for it, separated by a comma.
64
70
  attr_accessor :project_url
65
71
 
72
+ # A dictionary of labels and URLs for the project.
73
+ attr_accessor :project_urls
74
+
66
75
  # A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
67
76
  attr_accessor :platform
68
77
 
@@ -91,8 +100,10 @@ module PulpPythonClient
91
100
  :'relative_path' => :'relative_path',
92
101
  :'file' => :'file',
93
102
  :'repository' => :'repository',
103
+ :'sha256' => :'sha256',
94
104
  :'summary' => :'summary',
95
105
  :'description' => :'description',
106
+ :'description_content_type' => :'description_content_type',
96
107
  :'keywords' => :'keywords',
97
108
  :'home_page' => :'home_page',
98
109
  :'download_url' => :'download_url',
@@ -103,6 +114,7 @@ module PulpPythonClient
103
114
  :'license' => :'license',
104
115
  :'requires_python' => :'requires_python',
105
116
  :'project_url' => :'project_url',
117
+ :'project_urls' => :'project_urls',
106
118
  :'platform' => :'platform',
107
119
  :'supported_platform' => :'supported_platform',
108
120
  :'requires_dist' => :'requires_dist',
@@ -120,8 +132,10 @@ module PulpPythonClient
120
132
  :'relative_path' => :'String',
121
133
  :'file' => :'File',
122
134
  :'repository' => :'String',
135
+ :'sha256' => :'String',
123
136
  :'summary' => :'String',
124
137
  :'description' => :'String',
138
+ :'description_content_type' => :'String',
125
139
  :'keywords' => :'String',
126
140
  :'home_page' => :'String',
127
141
  :'download_url' => :'String',
@@ -132,6 +146,7 @@ module PulpPythonClient
132
146
  :'license' => :'String',
133
147
  :'requires_python' => :'String',
134
148
  :'project_url' => :'String',
149
+ :'project_urls' => :'Object',
135
150
  :'platform' => :'String',
136
151
  :'supported_platform' => :'String',
137
152
  :'requires_dist' => :'Object',
@@ -179,6 +194,12 @@ module PulpPythonClient
179
194
  self.repository = attributes[:'repository']
180
195
  end
181
196
 
197
+ if attributes.key?(:'sha256')
198
+ self.sha256 = attributes[:'sha256']
199
+ else
200
+ self.sha256 = ''
201
+ end
202
+
182
203
  if attributes.key?(:'summary')
183
204
  self.summary = attributes[:'summary']
184
205
  end
@@ -187,6 +208,10 @@ module PulpPythonClient
187
208
  self.description = attributes[:'description']
188
209
  end
189
210
 
211
+ if attributes.key?(:'description_content_type')
212
+ self.description_content_type = attributes[:'description_content_type']
213
+ end
214
+
190
215
  if attributes.key?(:'keywords')
191
216
  self.keywords = attributes[:'keywords']
192
217
  end
@@ -227,6 +252,10 @@ module PulpPythonClient
227
252
  self.project_url = attributes[:'project_url']
228
253
  end
229
254
 
255
+ if attributes.key?(:'project_urls')
256
+ self.project_urls = attributes[:'project_urls']
257
+ end
258
+
230
259
  if attributes.key?(:'platform')
231
260
  self.platform = attributes[:'platform']
232
261
  end
@@ -283,8 +312,10 @@ module PulpPythonClient
283
312
  relative_path == o.relative_path &&
284
313
  file == o.file &&
285
314
  repository == o.repository &&
315
+ sha256 == o.sha256 &&
286
316
  summary == o.summary &&
287
317
  description == o.description &&
318
+ description_content_type == o.description_content_type &&
288
319
  keywords == o.keywords &&
289
320
  home_page == o.home_page &&
290
321
  download_url == o.download_url &&
@@ -295,6 +326,7 @@ module PulpPythonClient
295
326
  license == o.license &&
296
327
  requires_python == o.requires_python &&
297
328
  project_url == o.project_url &&
329
+ project_urls == o.project_urls &&
298
330
  platform == o.platform &&
299
331
  supported_platform == o.supported_platform &&
300
332
  requires_dist == o.requires_dist &&
@@ -313,7 +345,7 @@ module PulpPythonClient
313
345
  # Calculates hash code according to all attributes.
314
346
  # @return [Integer] Hash code
315
347
  def hash
316
- [artifact, relative_path, file, repository, summary, description, keywords, home_page, download_url, author, author_email, maintainer, maintainer_email, license, requires_python, project_url, platform, supported_platform, requires_dist, provides_dist, obsoletes_dist, requires_external, classifiers].hash
348
+ [artifact, relative_path, file, repository, sha256, summary, description, description_content_type, keywords, home_page, download_url, author, author_email, maintainer, maintainer_email, license, requires_python, project_url, project_urls, platform, supported_platform, requires_dist, provides_dist, obsoletes_dist, requires_external, classifiers].hash
317
349
  end
318
350
 
319
351
  # Builds the object from hash