pulp_ansible_client 0.16.5 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +89 -21
  3. data/docs/AnsibleAnsibleNamespaceMetadata.md +29 -0
  4. data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +35 -0
  5. data/docs/AnsibleAnsibleRepository.md +4 -2
  6. data/docs/AnsibleAnsibleRepositoryResponse.md +6 -2
  7. data/docs/AnsibleCollectionRemoteResponse.md +3 -1
  8. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
  9. data/docs/AnsibleCollectionVersion.md +5 -5
  10. data/docs/AnsibleCollectionVersionMark.md +19 -0
  11. data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
  12. data/docs/AnsibleCollectionsApi.md +229 -1
  13. data/docs/AnsibleCopyApi.md +1 -1
  14. data/docs/AnsibleGitRemote.md +28 -28
  15. data/docs/AnsibleGitRemoteResponse.md +24 -24
  16. data/docs/AnsibleRepositoryMark.md +19 -0
  17. data/docs/AnsibleRoleResponse.md +3 -3
  18. data/docs/ApiCollectionsApi.md +1 -1
  19. data/docs/ApiRolesApi.md +1 -1
  20. data/docs/CollectionImportApi.md +1 -1
  21. data/docs/CollectionNamespaceResponse.md +3 -1
  22. data/docs/CollectionSummaryResponse.md +35 -0
  23. data/docs/CollectionVersionCopyMove.md +21 -0
  24. data/docs/CollectionVersionListResponse.md +3 -1
  25. data/docs/CollectionVersionResponse.md +2 -0
  26. data/docs/CollectionVersionSearchList.md +27 -0
  27. data/docs/CollectionVersionSearchListResponse.md +29 -0
  28. data/docs/ContentCollectionDeprecationsApi.md +1 -1
  29. data/docs/ContentCollectionMarksApi.md +198 -0
  30. data/docs/ContentCollectionSignaturesApi.md +1 -1
  31. data/docs/ContentCollectionVersionsApi.md +5 -5
  32. data/docs/ContentNamespacesApi.md +220 -0
  33. data/docs/ContentRolesApi.md +1 -1
  34. data/docs/DistributionsAnsibleApi.md +233 -1
  35. data/docs/GalaxyDetailApi.md +1 -1
  36. data/docs/MyPermissionsResponse.md +17 -0
  37. data/docs/NamespaceLink.md +19 -0
  38. data/docs/NamespaceLinkResponse.md +19 -0
  39. data/docs/NestedRole.md +21 -0
  40. data/docs/NestedRoleResponse.md +21 -0
  41. data/docs/ObjectRolesResponse.md +17 -0
  42. data/docs/PaginatedCollectionVersionSearchListResponseList.md +21 -0
  43. data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +23 -0
  44. data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +23 -0
  45. data/docs/PatchedansibleAnsibleNamespaceMetadata.md +29 -0
  46. data/docs/PatchedansibleAnsibleRepository.md +4 -2
  47. data/docs/PatchedansibleGitRemote.md +28 -28
  48. data/docs/ProgressReportResponse.md +27 -0
  49. data/docs/PulpAnsibleApiApi.md +1 -1
  50. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  51. data/docs/PulpAnsibleApiV3Api.md +1 -1
  52. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  53. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  54. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
  55. data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
  56. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  57. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  58. data/docs/PulpAnsibleApiV3NamespacesApi.md +158 -0
  59. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +7 -7
  60. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  61. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  62. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  63. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  64. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  65. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  66. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  67. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +363 -0
  68. data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +168 -0
  69. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  70. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  71. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  72. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  73. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  74. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
  75. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
  76. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  77. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  78. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +154 -0
  79. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +7 -7
  80. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  81. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  82. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  83. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  84. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  85. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  86. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  87. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +353 -0
  88. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +164 -0
  89. data/docs/PulpAnsibleTagsApi.md +1 -1
  90. data/docs/RemotesCollectionApi.md +237 -1
  91. data/docs/RemotesGitApi.md +229 -1
  92. data/docs/RemotesRoleApi.md +229 -1
  93. data/docs/RepositoriesAnsibleApi.md +465 -1
  94. data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
  95. data/docs/Repository.md +25 -0
  96. data/docs/RepositoryAddRemoveContent.md +2 -2
  97. data/docs/RepositoryResponse.md +33 -0
  98. data/docs/Task.md +19 -0
  99. data/docs/TaskResponse.md +45 -0
  100. data/docs/UnpaginatedCollectionVersionResponse.md +2 -0
  101. data/docs/VersionsApi.md +11 -11
  102. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +268 -0
  103. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +247 -0
  104. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  105. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +276 -0
  106. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +274 -0
  107. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +209 -0
  108. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +8 -8
  109. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +531 -0
  110. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb +229 -0
  111. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +197 -0
  112. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +7 -7
  113. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +501 -0
  114. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +217 -0
  115. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +281 -1
  116. data/lib/pulp_ansible_client/api/remotes_git_api.rb +268 -0
  117. data/lib/pulp_ansible_client/api/remotes_role_api.rb +268 -0
  118. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +564 -0
  119. data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
  120. data/lib/pulp_ansible_client/configuration.rb +3 -3
  121. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +359 -0
  122. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +402 -0
  123. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +15 -6
  124. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +24 -6
  125. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  126. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +33 -24
  127. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
  128. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
  129. data/lib/pulp_ansible_client/models/ansible_collection_version_mark.rb +258 -0
  130. data/lib/pulp_ansible_client/models/ansible_collection_version_mark_response.rb +268 -0
  131. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +237 -237
  132. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +150 -150
  133. data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
  134. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  135. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  136. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  137. data/lib/pulp_ansible_client/models/collection_namespace_response.rb +13 -4
  138. data/lib/pulp_ansible_client/models/collection_summary_response.rb +359 -0
  139. data/lib/pulp_ansible_client/models/collection_version_copy_move.rb +242 -0
  140. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +16 -5
  141. data/lib/pulp_ansible_client/models/collection_version_response.rb +12 -1
  142. data/lib/pulp_ansible_client/models/collection_version_search_list.rb +279 -0
  143. data/lib/pulp_ansible_client/models/collection_version_search_list_response.rb +287 -0
  144. data/lib/pulp_ansible_client/models/my_permissions_response.rb +213 -0
  145. data/lib/pulp_ansible_client/models/namespace_link.rb +282 -0
  146. data/lib/pulp_ansible_client/models/namespace_link_response.rb +264 -0
  147. data/lib/pulp_ansible_client/models/nested_role.rb +253 -0
  148. data/lib/pulp_ansible_client/models/nested_role_response.rb +234 -0
  149. data/lib/pulp_ansible_client/models/object_roles_response.rb +213 -0
  150. data/lib/pulp_ansible_client/models/paginated_collection_version_search_list_response_list.rb +226 -0
  151. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +237 -0
  152. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +237 -0
  153. data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +350 -0
  154. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +15 -6
  155. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  156. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +226 -226
  157. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  158. data/lib/pulp_ansible_client/models/progress_report_response.rb +259 -0
  159. data/lib/pulp_ansible_client/models/repository.rb +306 -0
  160. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
  161. data/lib/pulp_ansible_client/models/repository_response.rb +309 -0
  162. data/lib/pulp_ansible_client/models/task.rb +266 -0
  163. data/lib/pulp_ansible_client/models/task_response.rb +366 -0
  164. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +12 -1
  165. data/lib/pulp_ansible_client/version.rb +1 -1
  166. data/lib/pulp_ansible_client.rb +32 -0
  167. data/spec/api/ansible_collections_api_spec.rb +50 -0
  168. data/spec/api/content_collection_marks_api_spec.rb +83 -0
  169. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  170. data/spec/api/content_namespaces_api_spec.rb +93 -0
  171. data/spec/api/distributions_ansible_api_spec.rb +52 -0
  172. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +77 -0
  173. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
  174. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +131 -0
  175. data/spec/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +83 -0
  176. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +75 -0
  177. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
  178. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +126 -0
  179. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +81 -0
  180. data/spec/api/remotes_collection_api_spec.rb +54 -0
  181. data/spec/api/remotes_git_api_spec.rb +50 -0
  182. data/spec/api/remotes_role_api_spec.rb +50 -0
  183. data/spec/api/repositories_ansible_api_spec.rb +106 -0
  184. data/spec/api/versions_api_spec.rb +4 -4
  185. data/spec/configuration_spec.rb +3 -3
  186. data/spec/models/ansible_ansible_namespace_metadata_response_spec.rb +95 -0
  187. data/spec/models/ansible_ansible_namespace_metadata_spec.rb +77 -0
  188. data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
  189. data/spec/models/ansible_ansible_repository_spec.rb +6 -0
  190. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  191. data/spec/models/ansible_collection_version_mark_response_spec.rb +59 -0
  192. data/spec/models/ansible_collection_version_mark_spec.rb +47 -0
  193. data/spec/models/ansible_collection_version_spec.rb +4 -4
  194. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  195. data/spec/models/ansible_git_remote_spec.rb +20 -20
  196. data/spec/models/ansible_repository_mark_spec.rb +47 -0
  197. data/spec/models/ansible_role_response_spec.rb +2 -2
  198. data/spec/models/collection_namespace_response_spec.rb +6 -0
  199. data/spec/models/collection_summary_response_spec.rb +95 -0
  200. data/spec/models/collection_version_copy_move_spec.rb +53 -0
  201. data/spec/models/collection_version_list_response_spec.rb +6 -0
  202. data/spec/models/collection_version_response_spec.rb +6 -0
  203. data/spec/models/collection_version_search_list_response_spec.rb +77 -0
  204. data/spec/models/collection_version_search_list_spec.rb +71 -0
  205. data/spec/models/my_permissions_response_spec.rb +41 -0
  206. data/spec/models/namespace_link_response_spec.rb +47 -0
  207. data/spec/models/namespace_link_spec.rb +47 -0
  208. data/spec/models/nested_role_response_spec.rb +53 -0
  209. data/spec/models/nested_role_spec.rb +53 -0
  210. data/spec/models/object_roles_response_spec.rb +41 -0
  211. data/spec/models/paginated_collection_version_search_list_response_list_spec.rb +53 -0
  212. data/spec/models/paginatedansible_ansible_namespace_metadata_response_list_spec.rb +59 -0
  213. data/spec/models/paginatedansible_collection_version_mark_response_list_spec.rb +59 -0
  214. data/spec/models/patchedansible_ansible_namespace_metadata_spec.rb +77 -0
  215. data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
  216. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  217. data/spec/models/progress_report_response_spec.rb +71 -0
  218. data/spec/models/repository_response_spec.rb +89 -0
  219. data/spec/models/repository_spec.rb +65 -0
  220. data/spec/models/task_response_spec.rb +125 -0
  221. data/spec/models/task_spec.rb +47 -0
  222. data/spec/models/unpaginated_collection_version_response_spec.rb +6 -0
  223. metadata +242 -114
@@ -85,6 +85,8 @@ module PulpAnsibleClient
85
85
  # Sync only collections that have a signature
86
86
  attr_accessor :signed_only
87
87
 
88
+ attr_accessor :last_sync_task
89
+
88
90
  # Attribute mapping from ruby-style variable name to JSON key.
89
91
  def self.attribute_map
90
92
  {
@@ -111,7 +113,8 @@ module PulpAnsibleClient
111
113
  :'requirements_file' => :'requirements_file',
112
114
  :'auth_url' => :'auth_url',
113
115
  :'sync_dependencies' => :'sync_dependencies',
114
- :'signed_only' => :'signed_only'
116
+ :'signed_only' => :'signed_only',
117
+ :'last_sync_task' => :'last_sync_task'
115
118
  }
116
119
  end
117
120
 
@@ -141,7 +144,8 @@ module PulpAnsibleClient
141
144
  :'requirements_file' => :'String',
142
145
  :'auth_url' => :'String',
143
146
  :'sync_dependencies' => :'Boolean',
144
- :'signed_only' => :'Boolean'
147
+ :'signed_only' => :'Boolean',
148
+ :'last_sync_task' => :'TaskResponse'
145
149
  }
146
150
  end
147
151
 
@@ -283,6 +287,10 @@ module PulpAnsibleClient
283
287
  else
284
288
  self.signed_only = false
285
289
  end
290
+
291
+ if attributes.key?(:'last_sync_task')
292
+ self.last_sync_task = attributes[:'last_sync_task']
293
+ end
286
294
  end
287
295
 
288
296
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -301,20 +309,20 @@ module PulpAnsibleClient
301
309
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
302
310
  end
303
311
 
304
- if !@total_timeout.nil? && @total_timeout < 0
305
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
312
+ if !@total_timeout.nil? && @total_timeout < 0.0
313
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
306
314
  end
307
315
 
308
- if !@connect_timeout.nil? && @connect_timeout < 0
309
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
316
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
317
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
310
318
  end
311
319
 
312
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
313
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
320
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
321
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
314
322
  end
315
323
 
316
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
317
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
324
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
325
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
318
326
  end
319
327
 
320
328
  if !@auth_url.nil? && @auth_url.to_s.length > 255
@@ -330,10 +338,10 @@ module PulpAnsibleClient
330
338
  return false if @name.nil?
331
339
  return false if @url.nil?
332
340
  return false if !@download_concurrency.nil? && @download_concurrency < 1
333
- return false if !@total_timeout.nil? && @total_timeout < 0
334
- return false if !@connect_timeout.nil? && @connect_timeout < 0
335
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
336
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
341
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
342
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
343
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
344
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
337
345
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
338
346
  true
339
347
  end
@@ -351,8 +359,8 @@ module PulpAnsibleClient
351
359
  # Custom attribute writer method with validation
352
360
  # @param [Object] total_timeout Value to be assigned
353
361
  def total_timeout=(total_timeout)
354
- if !total_timeout.nil? && total_timeout < 0
355
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
362
+ if !total_timeout.nil? && total_timeout < 0.0
363
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
356
364
  end
357
365
 
358
366
  @total_timeout = total_timeout
@@ -361,8 +369,8 @@ module PulpAnsibleClient
361
369
  # Custom attribute writer method with validation
362
370
  # @param [Object] connect_timeout Value to be assigned
363
371
  def connect_timeout=(connect_timeout)
364
- if !connect_timeout.nil? && connect_timeout < 0
365
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
372
+ if !connect_timeout.nil? && connect_timeout < 0.0
373
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
366
374
  end
367
375
 
368
376
  @connect_timeout = connect_timeout
@@ -371,8 +379,8 @@ module PulpAnsibleClient
371
379
  # Custom attribute writer method with validation
372
380
  # @param [Object] sock_connect_timeout Value to be assigned
373
381
  def sock_connect_timeout=(sock_connect_timeout)
374
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
375
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
382
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
383
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
376
384
  end
377
385
 
378
386
  @sock_connect_timeout = sock_connect_timeout
@@ -381,8 +389,8 @@ module PulpAnsibleClient
381
389
  # Custom attribute writer method with validation
382
390
  # @param [Object] sock_read_timeout Value to be assigned
383
391
  def sock_read_timeout=(sock_read_timeout)
384
- if !sock_read_timeout.nil? && sock_read_timeout < 0
385
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
392
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
393
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
386
394
  end
387
395
 
388
396
  @sock_read_timeout = sock_read_timeout
@@ -426,7 +434,8 @@ module PulpAnsibleClient
426
434
  requirements_file == o.requirements_file &&
427
435
  auth_url == o.auth_url &&
428
436
  sync_dependencies == o.sync_dependencies &&
429
- signed_only == o.signed_only
437
+ signed_only == o.signed_only &&
438
+ last_sync_task == o.last_sync_task
430
439
  end
431
440
 
432
441
  # @see the `==` method
@@ -438,7 +447,7 @@ module PulpAnsibleClient
438
447
  # Calculates hash code according to all attributes.
439
448
  # @return [Integer] Hash code
440
449
  def hash
441
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, requirements_file, auth_url, sync_dependencies, signed_only].hash
450
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, requirements_file, auth_url, sync_dependencies, signed_only, last_sync_task].hash
442
451
  end
443
452
 
444
453
  # Builds the object from hash
@@ -68,22 +68,12 @@ module PulpAnsibleClient
68
68
  # @return Array for valid properties with the reasons
69
69
  def list_invalid_properties
70
70
  invalid_properties = Array.new
71
- if @name.nil?
72
- invalid_properties.push('invalid value for "name", name cannot be nil.')
73
- end
74
-
75
- if @is_set.nil?
76
- invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
77
- end
78
-
79
71
  invalid_properties
80
72
  end
81
73
 
82
74
  # Check to see if the all the properties in the model are valid
83
75
  # @return true if the model is valid
84
76
  def valid?
85
- return false if @name.nil?
86
- return false if @is_set.nil?
87
77
  true
88
78
  end
89
79
 
@@ -15,18 +15,18 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersion
18
- # An uncommitted upload that may be turned into the artifact of the content unit.
19
- attr_accessor :upload
20
-
21
- # A URI of a repository the new content unit should be associated with.
22
- attr_accessor :repository
23
-
24
18
  # An uploaded file that may be turned into the artifact of the content unit.
25
19
  attr_accessor :file
26
20
 
27
21
  # Artifact file representing the physical content
28
22
  attr_accessor :artifact
29
23
 
24
+ # An uncommitted upload that may be turned into the artifact of the content unit.
25
+ attr_accessor :upload
26
+
27
+ # A URI of a repository the new content unit should be associated with.
28
+ attr_accessor :repository
29
+
30
30
  # The name of the collection.
31
31
  attr_accessor :expected_name
32
32
 
@@ -39,10 +39,10 @@ module PulpAnsibleClient
39
39
  # Attribute mapping from ruby-style variable name to JSON key.
40
40
  def self.attribute_map
41
41
  {
42
- :'upload' => :'upload',
43
- :'repository' => :'repository',
44
42
  :'file' => :'file',
45
43
  :'artifact' => :'artifact',
44
+ :'upload' => :'upload',
45
+ :'repository' => :'repository',
46
46
  :'expected_name' => :'expected_name',
47
47
  :'expected_namespace' => :'expected_namespace',
48
48
  :'expected_version' => :'expected_version'
@@ -52,10 +52,10 @@ module PulpAnsibleClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'upload' => :'String',
56
- :'repository' => :'String',
57
55
  :'file' => :'File',
58
56
  :'artifact' => :'String',
57
+ :'upload' => :'String',
58
+ :'repository' => :'String',
59
59
  :'expected_name' => :'String',
60
60
  :'expected_namespace' => :'String',
61
61
  :'expected_version' => :'String'
@@ -83,14 +83,6 @@ module PulpAnsibleClient
83
83
  h[k.to_sym] = v
84
84
  }
85
85
 
86
- if attributes.key?(:'upload')
87
- self.upload = attributes[:'upload']
88
- end
89
-
90
- if attributes.key?(:'repository')
91
- self.repository = attributes[:'repository']
92
- end
93
-
94
86
  if attributes.key?(:'file')
95
87
  self.file = attributes[:'file']
96
88
  end
@@ -99,6 +91,14 @@ module PulpAnsibleClient
99
91
  self.artifact = attributes[:'artifact']
100
92
  end
101
93
 
94
+ if attributes.key?(:'upload')
95
+ self.upload = attributes[:'upload']
96
+ end
97
+
98
+ if attributes.key?(:'repository')
99
+ self.repository = attributes[:'repository']
100
+ end
101
+
102
102
  if attributes.key?(:'expected_name')
103
103
  self.expected_name = attributes[:'expected_name']
104
104
  end
@@ -202,10 +202,10 @@ module PulpAnsibleClient
202
202
  def ==(o)
203
203
  return true if self.equal?(o)
204
204
  self.class == o.class &&
205
- upload == o.upload &&
206
- repository == o.repository &&
207
205
  file == o.file &&
208
206
  artifact == o.artifact &&
207
+ upload == o.upload &&
208
+ repository == o.repository &&
209
209
  expected_name == o.expected_name &&
210
210
  expected_namespace == o.expected_namespace &&
211
211
  expected_version == o.expected_version
@@ -220,7 +220,7 @@ module PulpAnsibleClient
220
220
  # Calculates hash code according to all attributes.
221
221
  # @return [Integer] Hash code
222
222
  def hash
223
- [upload, repository, file, artifact, expected_name, expected_namespace, expected_version].hash
223
+ [file, artifact, upload, repository, expected_name, expected_namespace, expected_version].hash
224
224
  end
225
225
 
226
226
  # Builds the object from hash
@@ -0,0 +1,258 @@
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 mark models.
17
+ class AnsibleCollectionVersionMark
18
+ # The content this mark is pointing to.
19
+ attr_accessor :marked_collection
20
+
21
+ # The string value of this mark.
22
+ attr_accessor :value
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'marked_collection' => :'marked_collection',
28
+ :'value' => :'value'
29
+ }
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'marked_collection' => :'String',
36
+ :'value' => :'String'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ ])
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleCollectionVersionMark` initialize method"
51
+ end
52
+
53
+ # check to see if the attribute exists and convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h|
55
+ if (!self.class.attribute_map.key?(k.to_sym))
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleCollectionVersionMark`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ end
58
+ h[k.to_sym] = v
59
+ }
60
+
61
+ if attributes.key?(:'marked_collection')
62
+ self.marked_collection = attributes[:'marked_collection']
63
+ end
64
+
65
+ if attributes.key?(:'value')
66
+ self.value = attributes[:'value']
67
+ end
68
+ end
69
+
70
+ # Show invalid properties with the reasons. Usually used together with valid?
71
+ # @return Array for valid properties with the reasons
72
+ def list_invalid_properties
73
+ invalid_properties = Array.new
74
+ if @marked_collection.nil?
75
+ invalid_properties.push('invalid value for "marked_collection", marked_collection cannot be nil.')
76
+ end
77
+
78
+ if @value.nil?
79
+ invalid_properties.push('invalid value for "value", value cannot be nil.')
80
+ end
81
+
82
+ if @value.to_s.length < 1
83
+ invalid_properties.push('invalid value for "value", the character length must be great than or equal to 1.')
84
+ end
85
+
86
+ pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
87
+ if @value !~ pattern
88
+ invalid_properties.push("invalid value for \"value\", must conform to the pattern #{pattern}.")
89
+ end
90
+
91
+ invalid_properties
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ return false if @marked_collection.nil?
98
+ return false if @value.nil?
99
+ return false if @value.to_s.length < 1
100
+ return false if @value !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
101
+ true
102
+ end
103
+
104
+ # Custom attribute writer method with validation
105
+ # @param [Object] value Value to be assigned
106
+ def value=(value)
107
+ if value.nil?
108
+ fail ArgumentError, 'value cannot be nil'
109
+ end
110
+
111
+ if value.to_s.length < 1
112
+ fail ArgumentError, 'invalid value for "value", the character length must be great than or equal to 1.'
113
+ end
114
+
115
+ pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
116
+ if value !~ pattern
117
+ fail ArgumentError, "invalid value for \"value\", must conform to the pattern #{pattern}."
118
+ end
119
+
120
+ @value = value
121
+ end
122
+
123
+ # Checks equality by comparing each attribute.
124
+ # @param [Object] Object to be compared
125
+ def ==(o)
126
+ return true if self.equal?(o)
127
+ self.class == o.class &&
128
+ marked_collection == o.marked_collection &&
129
+ value == o.value
130
+ end
131
+
132
+ # @see the `==` method
133
+ # @param [Object] Object to be compared
134
+ def eql?(o)
135
+ self == o
136
+ end
137
+
138
+ # Calculates hash code according to all attributes.
139
+ # @return [Integer] Hash code
140
+ def hash
141
+ [marked_collection, value].hash
142
+ end
143
+
144
+ # Builds the object from hash
145
+ # @param [Hash] attributes Model attributes in the form of hash
146
+ # @return [Object] Returns the model itself
147
+ def self.build_from_hash(attributes)
148
+ new.build_from_hash(attributes)
149
+ end
150
+
151
+ # Builds the object from hash
152
+ # @param [Hash] attributes Model attributes in the form of hash
153
+ # @return [Object] Returns the model itself
154
+ def build_from_hash(attributes)
155
+ return nil unless attributes.is_a?(Hash)
156
+ self.class.openapi_types.each_pair do |key, type|
157
+ if type =~ /\AArray<(.*)>/i
158
+ # check to ensure the input is an array given that the attribute
159
+ # is documented as an array but the input is not
160
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
161
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
162
+ end
163
+ elsif !attributes[self.class.attribute_map[key]].nil?
164
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
165
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
166
+ end
167
+
168
+ self
169
+ end
170
+
171
+ # Deserializes the data based on type
172
+ # @param string type Data type
173
+ # @param string value Value to be deserialized
174
+ # @return [Object] Deserialized data
175
+ def _deserialize(type, value)
176
+ case type.to_sym
177
+ when :DateTime
178
+ DateTime.parse(value)
179
+ when :Date
180
+ Date.parse(value)
181
+ when :String
182
+ value.to_s
183
+ when :Integer
184
+ value.to_i
185
+ when :Float
186
+ value.to_f
187
+ when :Boolean
188
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
189
+ true
190
+ else
191
+ false
192
+ end
193
+ when :Object
194
+ # generic object (usually a Hash), return directly
195
+ value
196
+ when /\AArray<(?<inner_type>.+)>\z/
197
+ inner_type = Regexp.last_match[:inner_type]
198
+ value.map { |v| _deserialize(inner_type, v) }
199
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
200
+ k_type = Regexp.last_match[:k_type]
201
+ v_type = Regexp.last_match[:v_type]
202
+ {}.tap do |hash|
203
+ value.each do |k, v|
204
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
205
+ end
206
+ end
207
+ else # model
208
+ PulpAnsibleClient.const_get(type).build_from_hash(value)
209
+ end
210
+ end
211
+
212
+ # Returns the string representation of the object
213
+ # @return [String] String presentation of the object
214
+ def to_s
215
+ to_hash.to_s
216
+ end
217
+
218
+ # to_body is an alias to to_hash (backward compatibility)
219
+ # @return [Hash] Returns the object in the form of hash
220
+ def to_body
221
+ to_hash
222
+ end
223
+
224
+ # Returns the object in the form of hash
225
+ # @return [Hash] Returns the object in the form of hash
226
+ def to_hash
227
+ hash = {}
228
+ self.class.attribute_map.each_pair do |attr, param|
229
+ value = self.send(attr)
230
+ if value.nil?
231
+ is_nullable = self.class.openapi_nullable.include?(attr)
232
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
233
+ end
234
+
235
+ hash[param] = _to_hash(value)
236
+ end
237
+ hash
238
+ end
239
+
240
+ # Outputs non-array value in the form of hash
241
+ # For object, use to_hash. Otherwise, just return the value
242
+ # @param [Object] value Any valid value
243
+ # @return [Hash] Returns the value in the form of hash
244
+ def _to_hash(value)
245
+ if value.is_a?(Array)
246
+ value.compact.map { |v| _to_hash(v) }
247
+ elsif value.is_a?(Hash)
248
+ {}.tap do |hash|
249
+ value.each { |k, v| hash[k] = _to_hash(v) }
250
+ end
251
+ elsif value.respond_to? :to_hash
252
+ value.to_hash
253
+ else
254
+ value
255
+ end
256
+ end
257
+ end
258
+ end