pulp_ansible_client 0.7.0 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +7 -6
  4. data/docs/AnsibleCollectionRemote.md +7 -1
  5. data/docs/AnsibleCollectionRemoteResponse.md +3 -7
  6. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  7. data/docs/AnsibleCollectionsApi.md +4 -4
  8. data/docs/AnsibleRoleRemote.md +7 -1
  9. data/docs/AnsibleRoleRemoteResponse.md +3 -7
  10. data/docs/AnsibleRoleResponse.md +3 -3
  11. data/docs/CollectionVersionResponse.md +5 -5
  12. data/docs/ContentCollectionVersionsApi.md +18 -18
  13. data/docs/ContentRolesApi.md +12 -12
  14. data/docs/ContentSummary.md +3 -3
  15. data/docs/ContentSummaryResponse.md +3 -3
  16. data/docs/DistributionsAnsibleApi.md +20 -20
  17. data/docs/PatchedansibleCollectionRemote.md +7 -1
  18. data/docs/PatchedansibleRoleRemote.md +7 -1
  19. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +6 -6
  20. data/docs/PulpAnsibleGalaxyApiV3AllApi.md +8 -26
  21. data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +18 -18
  22. data/docs/RemotesCollectionApi.md +24 -24
  23. data/docs/RemotesRoleApi.md +24 -24
  24. data/docs/RepositoriesAnsibleApi.md +12 -12
  25. data/docs/RepositoriesAnsibleVersionsApi.md +28 -28
  26. data/docs/RepositoryAddRemoveContent.md +2 -2
  27. data/docs/UnpaginatedCollectionVersionResponse.md +37 -0
  28. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +5 -5
  29. data/lib/pulp_ansible_client/api/ansible_copy_api.rb +1 -1
  30. data/lib/pulp_ansible_client/api/api_collections_api.rb +1 -1
  31. data/lib/pulp_ansible_client/api/api_roles_api.rb +1 -1
  32. data/lib/pulp_ansible_client/api/collection_import_api.rb +1 -1
  33. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +19 -19
  34. data/lib/pulp_ansible_client/api/content_roles_api.rb +13 -13
  35. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +23 -23
  36. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +1 -1
  37. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +1 -1
  38. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +7 -7
  39. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +1 -1
  40. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_all_api.rb +10 -37
  41. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +1 -1
  42. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api.rb +1 -1
  43. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +19 -19
  44. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_v3_api.rb +1 -1
  45. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +1 -1
  46. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +27 -27
  47. data/lib/pulp_ansible_client/api/remotes_role_api.rb +27 -27
  48. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +14 -14
  49. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +31 -31
  50. data/lib/pulp_ansible_client/api/versions_api.rb +1 -1
  51. data/lib/pulp_ansible_client/api_client.rb +12 -8
  52. data/lib/pulp_ansible_client/api_error.rb +1 -1
  53. data/lib/pulp_ansible_client/configuration.rb +8 -1
  54. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +1 -1
  55. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +1 -1
  56. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +1 -1
  57. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +1 -1
  58. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +37 -3
  59. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +15 -36
  60. data/lib/pulp_ansible_client/models/ansible_collection_response.rb +1 -1
  61. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +16 -16
  62. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +26 -26
  63. data/lib/pulp_ansible_client/models/ansible_repository_sync_url.rb +1 -1
  64. data/lib/pulp_ansible_client/models/ansible_role.rb +1 -1
  65. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +37 -3
  66. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +15 -36
  67. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  68. data/lib/pulp_ansible_client/models/ansible_tag_response.rb +1 -1
  69. data/lib/pulp_ansible_client/models/artifact_ref_response.rb +1 -1
  70. data/lib/pulp_ansible_client/models/async_operation_response.rb +1 -1
  71. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +1 -1
  72. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +1 -1
  73. data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -1
  74. data/lib/pulp_ansible_client/models/collection_one_shot.rb +1 -1
  75. data/lib/pulp_ansible_client/models/collection_ref_response.rb +1 -1
  76. data/lib/pulp_ansible_client/models/collection_response.rb +1 -1
  77. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  78. data/lib/pulp_ansible_client/models/collection_version_response.rb +25 -35
  79. data/lib/pulp_ansible_client/models/content_summary.rb +13 -7
  80. data/lib/pulp_ansible_client/models/content_summary_response.rb +13 -7
  81. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  82. data/lib/pulp_ansible_client/models/galaxy_collection.rb +1 -1
  83. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +1 -1
  84. data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +1 -1
  85. data/lib/pulp_ansible_client/models/galaxy_role_response.rb +1 -1
  86. data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +1 -1
  87. data/lib/pulp_ansible_client/models/paginated_collection_response_list.rb +1 -1
  88. data/lib/pulp_ansible_client/models/paginated_collection_response_list_links.rb +1 -1
  89. data/lib/pulp_ansible_client/models/paginated_collection_response_list_meta.rb +1 -1
  90. data/lib/pulp_ansible_client/models/paginated_collection_version_response_list.rb +1 -1
  91. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +1 -1
  92. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +1 -1
  93. data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +1 -1
  94. data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +1 -1
  95. data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +1 -1
  96. data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +1 -1
  97. data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +1 -1
  98. data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +1 -1
  99. data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +1 -1
  100. data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +1 -1
  101. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +1 -1
  102. data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +1 -1
  103. data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +1 -1
  104. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +1 -1
  105. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +1 -1
  106. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +37 -3
  107. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +37 -3
  108. data/lib/pulp_ansible_client/models/policy_enum.rb +1 -1
  109. data/lib/pulp_ansible_client/models/repo_metadata_response.rb +1 -1
  110. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +3 -3
  111. data/lib/pulp_ansible_client/models/repository_version.rb +1 -1
  112. data/lib/pulp_ansible_client/models/repository_version_response.rb +1 -1
  113. data/lib/pulp_ansible_client/models/tag_response.rb +1 -1
  114. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +323 -0
  115. data/lib/pulp_ansible_client/version.rb +2 -2
  116. data/lib/pulp_ansible_client.rb +2 -1
  117. data/pulp_ansible_client.gemspec +1 -1
  118. data/spec/api/ansible_collections_api_spec.rb +3 -3
  119. data/spec/api/ansible_copy_api_spec.rb +1 -1
  120. data/spec/api/api_collections_api_spec.rb +1 -1
  121. data/spec/api/api_roles_api_spec.rb +1 -1
  122. data/spec/api/collection_import_api_spec.rb +1 -1
  123. data/spec/api/content_collection_versions_api_spec.rb +10 -10
  124. data/spec/api/content_roles_api_spec.rb +7 -7
  125. data/spec/api/distributions_ansible_api_spec.rb +11 -11
  126. data/spec/api/galaxy_detail_api_spec.rb +1 -1
  127. data/spec/api/pulp_ansible_api_api_spec.rb +1 -1
  128. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +4 -4
  129. data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +1 -1
  130. data/spec/api/pulp_ansible_galaxy_api_v3_all_api_spec.rb +5 -14
  131. data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +1 -1
  132. data/spec/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api_spec.rb +1 -1
  133. data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +10 -10
  134. data/spec/api/pulp_ansible_galaxy_v3_api_spec.rb +1 -1
  135. data/spec/api/pulp_ansible_tags_api_spec.rb +1 -1
  136. data/spec/api/remotes_collection_api_spec.rb +13 -13
  137. data/spec/api/remotes_role_api_spec.rb +13 -13
  138. data/spec/api/repositories_ansible_api_spec.rb +7 -7
  139. data/spec/api/repositories_ansible_versions_api_spec.rb +15 -15
  140. data/spec/api/versions_api_spec.rb +1 -1
  141. data/spec/api_client_spec.rb +2 -2
  142. data/spec/configuration_spec.rb +1 -1
  143. data/spec/models/ansible_ansible_distribution_response_spec.rb +1 -1
  144. data/spec/models/ansible_ansible_distribution_spec.rb +1 -1
  145. data/spec/models/ansible_ansible_repository_response_spec.rb +1 -1
  146. data/spec/models/ansible_ansible_repository_spec.rb +1 -1
  147. data/spec/models/ansible_collection_remote_response_spec.rb +7 -19
  148. data/spec/models/ansible_collection_remote_spec.rb +19 -1
  149. data/spec/models/ansible_collection_response_spec.rb +1 -1
  150. data/spec/models/ansible_collection_version_response_spec.rb +4 -4
  151. data/spec/models/ansible_collection_version_spec.rb +1 -1
  152. data/spec/models/ansible_repository_sync_url_spec.rb +1 -1
  153. data/spec/models/ansible_role_remote_response_spec.rb +7 -19
  154. data/spec/models/ansible_role_remote_spec.rb +19 -1
  155. data/spec/models/ansible_role_response_spec.rb +4 -4
  156. data/spec/models/ansible_role_spec.rb +1 -1
  157. data/spec/models/ansible_tag_response_spec.rb +1 -1
  158. data/spec/models/artifact_ref_response_spec.rb +1 -1
  159. data/spec/models/async_operation_response_spec.rb +1 -1
  160. data/spec/models/collection_import_detail_response_spec.rb +1 -1
  161. data/spec/models/collection_metadata_response_spec.rb +1 -1
  162. data/spec/models/collection_namespace_response_spec.rb +1 -1
  163. data/spec/models/collection_one_shot_spec.rb +1 -1
  164. data/spec/models/collection_ref_response_spec.rb +1 -1
  165. data/spec/models/collection_response_spec.rb +1 -1
  166. data/spec/models/collection_version_docs_response_spec.rb +1 -1
  167. data/spec/models/collection_version_response_spec.rb +10 -10
  168. data/spec/models/content_summary_response_spec.rb +1 -1
  169. data/spec/models/content_summary_spec.rb +1 -1
  170. data/spec/models/copy_spec.rb +1 -1
  171. data/spec/models/galaxy_collection_response_spec.rb +1 -1
  172. data/spec/models/galaxy_collection_spec.rb +1 -1
  173. data/spec/models/galaxy_collection_version_response_spec.rb +1 -1
  174. data/spec/models/galaxy_role_response_spec.rb +1 -1
  175. data/spec/models/galaxy_role_version_response_spec.rb +1 -1
  176. data/spec/models/paginated_collection_response_list_links_spec.rb +1 -1
  177. data/spec/models/paginated_collection_response_list_meta_spec.rb +1 -1
  178. data/spec/models/paginated_collection_response_list_spec.rb +1 -1
  179. data/spec/models/paginated_collection_version_response_list_spec.rb +1 -1
  180. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +1 -1
  181. data/spec/models/paginated_galaxy_collection_version_response_list_spec.rb +1 -1
  182. data/spec/models/paginated_galaxy_role_response_list_spec.rb +1 -1
  183. data/spec/models/paginated_galaxy_role_version_response_list_spec.rb +1 -1
  184. data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
  185. data/spec/models/paginated_tag_response_list_spec.rb +1 -1
  186. data/spec/models/paginatedansible_ansible_distribution_response_list_spec.rb +1 -1
  187. data/spec/models/paginatedansible_ansible_repository_response_list_spec.rb +1 -1
  188. data/spec/models/paginatedansible_collection_remote_response_list_spec.rb +1 -1
  189. data/spec/models/paginatedansible_collection_response_list_spec.rb +1 -1
  190. data/spec/models/paginatedansible_collection_version_response_list_spec.rb +1 -1
  191. data/spec/models/paginatedansible_role_remote_response_list_spec.rb +1 -1
  192. data/spec/models/paginatedansible_role_response_list_spec.rb +1 -1
  193. data/spec/models/patchedansible_ansible_distribution_spec.rb +1 -1
  194. data/spec/models/patchedansible_ansible_repository_spec.rb +1 -1
  195. data/spec/models/patchedansible_collection_remote_spec.rb +19 -1
  196. data/spec/models/patchedansible_role_remote_spec.rb +19 -1
  197. data/spec/models/policy_enum_spec.rb +1 -1
  198. data/spec/models/repo_metadata_response_spec.rb +1 -1
  199. data/spec/models/repository_add_remove_content_spec.rb +1 -1
  200. data/spec/models/repository_version_response_spec.rb +1 -1
  201. data/spec/models/repository_version_spec.rb +1 -1
  202. data/spec/models/tag_response_spec.rb +1 -1
  203. data/spec/models/unpaginated_collection_version_response_spec.rb +101 -0
  204. data/spec/spec_helper.rb +1 -1
  205. metadata +67 -63
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -33,9 +33,15 @@ module PulpAnsibleClient
33
33
  # If True, TLS peer validation must be performed.
34
34
  attr_accessor :tls_validation
35
35
 
36
- # The proxy URL. Format: scheme://user:password@host:port
36
+ # The proxy URL. Format: scheme://host:port
37
37
  attr_accessor :proxy_url
38
38
 
39
+ # The username to authenticte to the proxy.
40
+ attr_accessor :proxy_username
41
+
42
+ # The password to authenticte to the proxy.
43
+ attr_accessor :proxy_password
44
+
39
45
  # The username to be used for authentication when syncing.
40
46
  attr_accessor :username
41
47
 
@@ -62,6 +68,9 @@ module PulpAnsibleClient
62
68
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
63
69
  attr_accessor :sock_read_timeout
64
70
 
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
65
74
  # Limits total download rate in requests per second
66
75
  attr_accessor :rate_limit
67
76
 
@@ -84,6 +93,8 @@ module PulpAnsibleClient
84
93
  :'client_key' => :'client_key',
85
94
  :'tls_validation' => :'tls_validation',
86
95
  :'proxy_url' => :'proxy_url',
96
+ :'proxy_username' => :'proxy_username',
97
+ :'proxy_password' => :'proxy_password',
87
98
  :'username' => :'username',
88
99
  :'password' => :'password',
89
100
  :'pulp_labels' => :'pulp_labels',
@@ -93,6 +104,7 @@ module PulpAnsibleClient
93
104
  :'connect_timeout' => :'connect_timeout',
94
105
  :'sock_connect_timeout' => :'sock_connect_timeout',
95
106
  :'sock_read_timeout' => :'sock_read_timeout',
107
+ :'headers' => :'headers',
96
108
  :'rate_limit' => :'rate_limit',
97
109
  :'requirements_file' => :'requirements_file',
98
110
  :'auth_url' => :'auth_url',
@@ -110,6 +122,8 @@ module PulpAnsibleClient
110
122
  :'client_key' => :'String',
111
123
  :'tls_validation' => :'Boolean',
112
124
  :'proxy_url' => :'String',
125
+ :'proxy_username' => :'String',
126
+ :'proxy_password' => :'String',
113
127
  :'username' => :'String',
114
128
  :'password' => :'String',
115
129
  :'pulp_labels' => :'Object',
@@ -119,6 +133,7 @@ module PulpAnsibleClient
119
133
  :'connect_timeout' => :'Float',
120
134
  :'sock_connect_timeout' => :'Float',
121
135
  :'sock_read_timeout' => :'Float',
136
+ :'headers' => :'Array<Object>',
122
137
  :'rate_limit' => :'Integer',
123
138
  :'requirements_file' => :'String',
124
139
  :'auth_url' => :'String',
@@ -133,6 +148,8 @@ module PulpAnsibleClient
133
148
  :'client_cert',
134
149
  :'client_key',
135
150
  :'proxy_url',
151
+ :'proxy_username',
152
+ :'proxy_password',
136
153
  :'username',
137
154
  :'password',
138
155
  :'total_timeout',
@@ -189,6 +206,14 @@ module PulpAnsibleClient
189
206
  self.proxy_url = attributes[:'proxy_url']
190
207
  end
191
208
 
209
+ if attributes.key?(:'proxy_username')
210
+ self.proxy_username = attributes[:'proxy_username']
211
+ end
212
+
213
+ if attributes.key?(:'proxy_password')
214
+ self.proxy_password = attributes[:'proxy_password']
215
+ end
216
+
192
217
  if attributes.key?(:'username')
193
218
  self.username = attributes[:'username']
194
219
  end
@@ -225,6 +250,12 @@ module PulpAnsibleClient
225
250
  self.sock_read_timeout = attributes[:'sock_read_timeout']
226
251
  end
227
252
 
253
+ if attributes.key?(:'headers')
254
+ if (value = attributes[:'headers']).is_a?(Array)
255
+ self.headers = value
256
+ end
257
+ end
258
+
228
259
  if attributes.key?(:'rate_limit')
229
260
  self.rate_limit = attributes[:'rate_limit']
230
261
  end
@@ -372,6 +403,8 @@ module PulpAnsibleClient
372
403
  client_key == o.client_key &&
373
404
  tls_validation == o.tls_validation &&
374
405
  proxy_url == o.proxy_url &&
406
+ proxy_username == o.proxy_username &&
407
+ proxy_password == o.proxy_password &&
375
408
  username == o.username &&
376
409
  password == o.password &&
377
410
  pulp_labels == o.pulp_labels &&
@@ -381,6 +414,7 @@ module PulpAnsibleClient
381
414
  connect_timeout == o.connect_timeout &&
382
415
  sock_connect_timeout == o.sock_connect_timeout &&
383
416
  sock_read_timeout == o.sock_read_timeout &&
417
+ headers == o.headers &&
384
418
  rate_limit == o.rate_limit &&
385
419
  requirements_file == o.requirements_file &&
386
420
  auth_url == o.auth_url &&
@@ -396,7 +430,7 @@ module PulpAnsibleClient
396
430
  # Calculates hash code according to all attributes.
397
431
  # @return [Integer] Hash code
398
432
  def hash
399
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, requirements_file, auth_url, token].hash
433
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url, token].hash
400
434
  end
401
435
 
402
436
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -33,9 +33,15 @@ module PulpAnsibleClient
33
33
  # If True, TLS peer validation must be performed.
34
34
  attr_accessor :tls_validation
35
35
 
36
- # The proxy URL. Format: scheme://user:password@host:port
36
+ # The proxy URL. Format: scheme://host:port
37
37
  attr_accessor :proxy_url
38
38
 
39
+ # The username to authenticte to the proxy.
40
+ attr_accessor :proxy_username
41
+
42
+ # The password to authenticte to the proxy.
43
+ attr_accessor :proxy_password
44
+
39
45
  # The username to be used for authentication when syncing.
40
46
  attr_accessor :username
41
47
 
@@ -62,6 +68,9 @@ module PulpAnsibleClient
62
68
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
63
69
  attr_accessor :sock_read_timeout
64
70
 
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
65
74
  # Limits total download rate in requests per second
66
75
  attr_accessor :rate_limit
67
76
 
@@ -75,6 +84,8 @@ module PulpAnsibleClient
75
84
  :'client_key' => :'client_key',
76
85
  :'tls_validation' => :'tls_validation',
77
86
  :'proxy_url' => :'proxy_url',
87
+ :'proxy_username' => :'proxy_username',
88
+ :'proxy_password' => :'proxy_password',
78
89
  :'username' => :'username',
79
90
  :'password' => :'password',
80
91
  :'pulp_labels' => :'pulp_labels',
@@ -84,6 +95,7 @@ module PulpAnsibleClient
84
95
  :'connect_timeout' => :'connect_timeout',
85
96
  :'sock_connect_timeout' => :'sock_connect_timeout',
86
97
  :'sock_read_timeout' => :'sock_read_timeout',
98
+ :'headers' => :'headers',
87
99
  :'rate_limit' => :'rate_limit'
88
100
  }
89
101
  end
@@ -98,6 +110,8 @@ module PulpAnsibleClient
98
110
  :'client_key' => :'String',
99
111
  :'tls_validation' => :'Boolean',
100
112
  :'proxy_url' => :'String',
113
+ :'proxy_username' => :'String',
114
+ :'proxy_password' => :'String',
101
115
  :'username' => :'String',
102
116
  :'password' => :'String',
103
117
  :'pulp_labels' => :'Object',
@@ -107,6 +121,7 @@ module PulpAnsibleClient
107
121
  :'connect_timeout' => :'Float',
108
122
  :'sock_connect_timeout' => :'Float',
109
123
  :'sock_read_timeout' => :'Float',
124
+ :'headers' => :'Array<Object>',
110
125
  :'rate_limit' => :'Integer'
111
126
  }
112
127
  end
@@ -118,6 +133,8 @@ module PulpAnsibleClient
118
133
  :'client_cert',
119
134
  :'client_key',
120
135
  :'proxy_url',
136
+ :'proxy_username',
137
+ :'proxy_password',
121
138
  :'username',
122
139
  :'password',
123
140
  :'total_timeout',
@@ -171,6 +188,14 @@ module PulpAnsibleClient
171
188
  self.proxy_url = attributes[:'proxy_url']
172
189
  end
173
190
 
191
+ if attributes.key?(:'proxy_username')
192
+ self.proxy_username = attributes[:'proxy_username']
193
+ end
194
+
195
+ if attributes.key?(:'proxy_password')
196
+ self.proxy_password = attributes[:'proxy_password']
197
+ end
198
+
174
199
  if attributes.key?(:'username')
175
200
  self.username = attributes[:'username']
176
201
  end
@@ -207,6 +232,12 @@ module PulpAnsibleClient
207
232
  self.sock_read_timeout = attributes[:'sock_read_timeout']
208
233
  end
209
234
 
235
+ if attributes.key?(:'headers')
236
+ if (value = attributes[:'headers']).is_a?(Array)
237
+ self.headers = value
238
+ end
239
+ end
240
+
210
241
  if attributes.key?(:'rate_limit')
211
242
  self.rate_limit = attributes[:'rate_limit']
212
243
  end
@@ -312,6 +343,8 @@ module PulpAnsibleClient
312
343
  client_key == o.client_key &&
313
344
  tls_validation == o.tls_validation &&
314
345
  proxy_url == o.proxy_url &&
346
+ proxy_username == o.proxy_username &&
347
+ proxy_password == o.proxy_password &&
315
348
  username == o.username &&
316
349
  password == o.password &&
317
350
  pulp_labels == o.pulp_labels &&
@@ -321,6 +354,7 @@ module PulpAnsibleClient
321
354
  connect_timeout == o.connect_timeout &&
322
355
  sock_connect_timeout == o.sock_connect_timeout &&
323
356
  sock_read_timeout == o.sock_read_timeout &&
357
+ headers == o.headers &&
324
358
  rate_limit == o.rate_limit
325
359
  end
326
360
 
@@ -333,7 +367,7 @@ module PulpAnsibleClient
333
367
  # Calculates hash code according to all attributes.
334
368
  # @return [Integer] Hash code
335
369
  def hash
336
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit].hash
370
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
337
371
  end
338
372
 
339
373
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -36,8 +36,8 @@ module PulpAnsibleClient
36
36
  # Attribute type mapping.
37
37
  def self.openapi_types
38
38
  {
39
- :'add_content_units' => :'Array<Object>',
40
- :'remove_content_units' => :'Array<Object>',
39
+ :'add_content_units' => :'Array<AnyType>',
40
+ :'remove_content_units' => :'Array<AnyType>',
41
41
  :'base_version' => :'String'
42
42
  }
43
43
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,323 @@
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.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpAnsibleClient
16
+ # A serializer for unpaginated CollectionVersion.
17
+ class UnpaginatedCollectionVersionResponse
18
+ attr_accessor :version
19
+
20
+ attr_accessor :href
21
+
22
+ attr_accessor :created_at
23
+
24
+ attr_accessor :updated_at
25
+
26
+ attr_accessor :requires_ansible
27
+
28
+ attr_accessor :artifact
29
+
30
+ attr_accessor :collection
31
+
32
+ attr_accessor :download_url
33
+
34
+ attr_accessor :name
35
+
36
+ attr_accessor :namespace
37
+
38
+ attr_accessor :metadata
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ {
43
+ :'version' => :'version',
44
+ :'href' => :'href',
45
+ :'created_at' => :'created_at',
46
+ :'updated_at' => :'updated_at',
47
+ :'requires_ansible' => :'requires_ansible',
48
+ :'artifact' => :'artifact',
49
+ :'collection' => :'collection',
50
+ :'download_url' => :'download_url',
51
+ :'name' => :'name',
52
+ :'namespace' => :'namespace',
53
+ :'metadata' => :'metadata'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.openapi_types
59
+ {
60
+ :'version' => :'String',
61
+ :'href' => :'String',
62
+ :'created_at' => :'DateTime',
63
+ :'updated_at' => :'DateTime',
64
+ :'requires_ansible' => :'String',
65
+ :'artifact' => :'ArtifactRefResponse',
66
+ :'collection' => :'CollectionRefResponse',
67
+ :'download_url' => :'String',
68
+ :'name' => :'String',
69
+ :'namespace' => :'CollectionNamespaceResponse',
70
+ :'metadata' => :'CollectionMetadataResponse'
71
+ }
72
+ end
73
+
74
+ # List of attributes with nullable: true
75
+ def self.openapi_nullable
76
+ Set.new([
77
+ :'requires_ansible',
78
+ ])
79
+ end
80
+
81
+ # Initializes the object
82
+ # @param [Hash] attributes Model attributes in the form of hash
83
+ def initialize(attributes = {})
84
+ if (!attributes.is_a?(Hash))
85
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::UnpaginatedCollectionVersionResponse` initialize method"
86
+ end
87
+
88
+ # check to see if the attribute exists and convert string to symbol for hash key
89
+ attributes = attributes.each_with_object({}) { |(k, v), h|
90
+ if (!self.class.attribute_map.key?(k.to_sym))
91
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::UnpaginatedCollectionVersionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
92
+ end
93
+ h[k.to_sym] = v
94
+ }
95
+
96
+ if attributes.key?(:'version')
97
+ self.version = attributes[:'version']
98
+ end
99
+
100
+ if attributes.key?(:'href')
101
+ self.href = attributes[:'href']
102
+ end
103
+
104
+ if attributes.key?(:'created_at')
105
+ self.created_at = attributes[:'created_at']
106
+ end
107
+
108
+ if attributes.key?(:'updated_at')
109
+ self.updated_at = attributes[:'updated_at']
110
+ end
111
+
112
+ if attributes.key?(:'requires_ansible')
113
+ self.requires_ansible = attributes[:'requires_ansible']
114
+ end
115
+
116
+ if attributes.key?(:'artifact')
117
+ self.artifact = attributes[:'artifact']
118
+ end
119
+
120
+ if attributes.key?(:'collection')
121
+ self.collection = attributes[:'collection']
122
+ end
123
+
124
+ if attributes.key?(:'download_url')
125
+ self.download_url = attributes[:'download_url']
126
+ end
127
+
128
+ if attributes.key?(:'name')
129
+ self.name = attributes[:'name']
130
+ end
131
+
132
+ if attributes.key?(:'namespace')
133
+ self.namespace = attributes[:'namespace']
134
+ end
135
+
136
+ if attributes.key?(:'metadata')
137
+ self.metadata = attributes[:'metadata']
138
+ end
139
+ end
140
+
141
+ # Show invalid properties with the reasons. Usually used together with valid?
142
+ # @return Array for valid properties with the reasons
143
+ def list_invalid_properties
144
+ invalid_properties = Array.new
145
+ if @created_at.nil?
146
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
147
+ end
148
+
149
+ if @updated_at.nil?
150
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
151
+ end
152
+
153
+ if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
154
+ invalid_properties.push('invalid value for "requires_ansible", the character length must be smaller than or equal to 255.')
155
+ end
156
+
157
+ invalid_properties
158
+ end
159
+
160
+ # Check to see if the all the properties in the model are valid
161
+ # @return true if the model is valid
162
+ def valid?
163
+ return false if @created_at.nil?
164
+ return false if @updated_at.nil?
165
+ return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
166
+ true
167
+ end
168
+
169
+ # Custom attribute writer method with validation
170
+ # @param [Object] requires_ansible Value to be assigned
171
+ def requires_ansible=(requires_ansible)
172
+ if !requires_ansible.nil? && requires_ansible.to_s.length > 255
173
+ fail ArgumentError, 'invalid value for "requires_ansible", the character length must be smaller than or equal to 255.'
174
+ end
175
+
176
+ @requires_ansible = requires_ansible
177
+ end
178
+
179
+ # Checks equality by comparing each attribute.
180
+ # @param [Object] Object to be compared
181
+ def ==(o)
182
+ return true if self.equal?(o)
183
+ self.class == o.class &&
184
+ version == o.version &&
185
+ href == o.href &&
186
+ created_at == o.created_at &&
187
+ updated_at == o.updated_at &&
188
+ requires_ansible == o.requires_ansible &&
189
+ artifact == o.artifact &&
190
+ collection == o.collection &&
191
+ download_url == o.download_url &&
192
+ name == o.name &&
193
+ namespace == o.namespace &&
194
+ metadata == o.metadata
195
+ end
196
+
197
+ # @see the `==` method
198
+ # @param [Object] Object to be compared
199
+ def eql?(o)
200
+ self == o
201
+ end
202
+
203
+ # Calculates hash code according to all attributes.
204
+ # @return [Integer] Hash code
205
+ def hash
206
+ [version, href, created_at, updated_at, requires_ansible, artifact, collection, download_url, name, namespace, metadata].hash
207
+ end
208
+
209
+ # Builds the object from hash
210
+ # @param [Hash] attributes Model attributes in the form of hash
211
+ # @return [Object] Returns the model itself
212
+ def self.build_from_hash(attributes)
213
+ new.build_from_hash(attributes)
214
+ end
215
+
216
+ # Builds the object from hash
217
+ # @param [Hash] attributes Model attributes in the form of hash
218
+ # @return [Object] Returns the model itself
219
+ def build_from_hash(attributes)
220
+ return nil unless attributes.is_a?(Hash)
221
+ self.class.openapi_types.each_pair do |key, type|
222
+ if type =~ /\AArray<(.*)>/i
223
+ # check to ensure the input is an array given that the attribute
224
+ # is documented as an array but the input is not
225
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
226
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
227
+ end
228
+ elsif !attributes[self.class.attribute_map[key]].nil?
229
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
230
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
231
+ end
232
+
233
+ self
234
+ end
235
+
236
+ # Deserializes the data based on type
237
+ # @param string type Data type
238
+ # @param string value Value to be deserialized
239
+ # @return [Object] Deserialized data
240
+ def _deserialize(type, value)
241
+ case type.to_sym
242
+ when :DateTime
243
+ DateTime.parse(value)
244
+ when :Date
245
+ Date.parse(value)
246
+ when :String
247
+ value.to_s
248
+ when :Integer
249
+ value.to_i
250
+ when :Float
251
+ value.to_f
252
+ when :Boolean
253
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
254
+ true
255
+ else
256
+ false
257
+ end
258
+ when :Object
259
+ # generic object (usually a Hash), return directly
260
+ value
261
+ when /\AArray<(?<inner_type>.+)>\z/
262
+ inner_type = Regexp.last_match[:inner_type]
263
+ value.map { |v| _deserialize(inner_type, v) }
264
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
265
+ k_type = Regexp.last_match[:k_type]
266
+ v_type = Regexp.last_match[:v_type]
267
+ {}.tap do |hash|
268
+ value.each do |k, v|
269
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
270
+ end
271
+ end
272
+ else # model
273
+ PulpAnsibleClient.const_get(type).build_from_hash(value)
274
+ end
275
+ end
276
+
277
+ # Returns the string representation of the object
278
+ # @return [String] String presentation of the object
279
+ def to_s
280
+ to_hash.to_s
281
+ end
282
+
283
+ # to_body is an alias to to_hash (backward compatibility)
284
+ # @return [Hash] Returns the object in the form of hash
285
+ def to_body
286
+ to_hash
287
+ end
288
+
289
+ # Returns the object in the form of hash
290
+ # @return [Hash] Returns the object in the form of hash
291
+ def to_hash
292
+ hash = {}
293
+ self.class.attribute_map.each_pair do |attr, param|
294
+ value = self.send(attr)
295
+ if value.nil?
296
+ is_nullable = self.class.openapi_nullable.include?(attr)
297
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
298
+ end
299
+
300
+ hash[param] = _to_hash(value)
301
+ end
302
+ hash
303
+ end
304
+
305
+ # Outputs non-array value in the form of hash
306
+ # For object, use to_hash. Otherwise, just return the value
307
+ # @param [Object] value Any valid value
308
+ # @return [Hash] Returns the value in the form of hash
309
+ def _to_hash(value)
310
+ if value.is_a?(Array)
311
+ value.compact.map { |v| _to_hash(v) }
312
+ elsif value.is_a?(Hash)
313
+ {}.tap do |hash|
314
+ value.each { |k, v| hash[k] = _to_hash(v) }
315
+ end
316
+ elsif value.respond_to? :to_hash
317
+ value.to_hash
318
+ else
319
+ value
320
+ end
321
+ end
322
+ end
323
+ end
@@ -6,10 +6,10 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
13
13
  module PulpAnsibleClient
14
- VERSION = '0.7.0'
14
+ VERSION = '0.7.4'
15
15
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -77,6 +77,7 @@ require 'pulp_ansible_client/models/repository_add_remove_content'
77
77
  require 'pulp_ansible_client/models/repository_version'
78
78
  require 'pulp_ansible_client/models/repository_version_response'
79
79
  require 'pulp_ansible_client/models/tag_response'
80
+ require 'pulp_ansible_client/models/unpaginated_collection_version_response'
80
81
 
81
82
  # APIs
82
83
  require 'pulp_ansible_client/api/ansible_collections_api'
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: v3
9
9
  Contact: pulp-list@redhat.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.2.3
11
+ OpenAPI Generator version: 4.3.1
12
12
 
13
13
  =end
14
14