pulp_ansible_client 0.22.0 → 0.22.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -8
  3. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
  5. data/docs/AnsibleCollectionRemoteResponse.md +2 -0
  6. data/docs/AnsibleCollectionVersion.md +7 -5
  7. data/docs/AnsibleCollectionVersionResponse.md +11 -9
  8. data/docs/AnsibleCollectionVersionSignature.md +2 -0
  9. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  10. data/docs/AnsibleCollectionsApi.md +5 -3
  11. data/docs/AnsibleCopyApi.md +1 -1
  12. data/docs/AnsibleGitRemote.md +30 -30
  13. data/docs/AnsibleGitRemoteResponse.md +25 -23
  14. data/docs/AnsibleRole.md +3 -3
  15. data/docs/AnsibleRoleRemoteResponse.md +2 -0
  16. data/docs/AnsibleRoleResponse.md +6 -4
  17. data/docs/{PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md → ApiPluginAnsibleSearchCollectionVersionsApi.md} +18 -17
  18. data/docs/ApiRolesApi.md +1 -1
  19. data/docs/CollectionImportApi.md +1 -1
  20. data/docs/CollectionImportDetailResponse.md +2 -2
  21. data/docs/CollectionSummaryResponse.md +2 -2
  22. data/docs/CollectionVersionDocsResponse.md +1 -1
  23. data/docs/CollectionVersionResponse.md +2 -2
  24. data/docs/CollectionVersionSearchList.md +0 -2
  25. data/docs/ContentCollectionDeprecationsApi.md +11 -9
  26. data/docs/ContentCollectionMarksApi.md +11 -9
  27. data/docs/ContentCollectionSignaturesApi.md +14 -10
  28. data/docs/ContentCollectionVersionsApi.md +15 -11
  29. data/docs/ContentNamespacesApi.md +11 -9
  30. data/docs/ContentRolesApi.md +11 -9
  31. data/docs/Copy.md +1 -1
  32. data/docs/DistributionsAnsibleApi.md +5 -3
  33. data/docs/PatchedansibleGitRemote.md +30 -30
  34. data/docs/PulpAnsibleApiApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3Api.md +1 -1
  36. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +5 -3
  39. data/docs/PulpAnsibleApiV3CollectionsApi.md +5 -3
  40. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +9 -7
  41. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3NamespacesApi.md +5 -3
  43. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +5 -3
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  46. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  47. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  48. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -3
  49. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +9 -7
  50. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  51. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +5 -3
  52. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  54. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +5 -3
  58. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +5 -3
  59. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +9 -7
  60. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +5 -3
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +5 -3
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -3
  68. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +9 -7
  69. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  70. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +5 -3
  71. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +4 -3
  72. data/docs/PulpAnsibleTagsApi.md +1 -1
  73. data/docs/RemotesCollectionApi.md +5 -3
  74. data/docs/RemotesGitApi.md +5 -3
  75. data/docs/RemotesRoleApi.md +5 -3
  76. data/docs/RepositoriesAnsibleApi.md +9 -7
  77. data/docs/RepositoriesAnsibleVersionsApi.md +9 -7
  78. data/docs/RepositoryResponse.md +2 -0
  79. data/docs/RepositoryVersionResponse.md +2 -0
  80. data/docs/VersionsApi.md +1 -1
  81. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +5 -2
  82. data/lib/pulp_ansible_client/api/{pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb → api_plugin_ansible_search_collection_versions_api.rb} +26 -24
  83. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +11 -8
  84. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +11 -8
  85. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +18 -8
  86. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +22 -12
  87. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +11 -8
  88. data/lib/pulp_ansible_client/api/content_roles_api.rb +11 -8
  89. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +5 -2
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +5 -2
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +5 -2
  92. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +9 -6
  93. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +5 -2
  94. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +5 -2
  95. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +5 -2
  96. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +9 -6
  97. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +5 -2
  98. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +5 -2
  99. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +5 -2
  100. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +9 -6
  101. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +5 -2
  102. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +5 -2
  103. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +5 -2
  104. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +9 -6
  105. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +5 -2
  106. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +2 -0
  107. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +5 -2
  108. data/lib/pulp_ansible_client/api/remotes_git_api.rb +5 -2
  109. data/lib/pulp_ansible_client/api/remotes_role_api.rb +5 -2
  110. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +9 -6
  111. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +10 -7
  112. data/lib/pulp_ansible_client/configuration.rb +2 -2
  113. data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +11 -1
  114. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
  115. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  116. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +31 -21
  117. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +43 -18
  118. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +33 -23
  119. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +26 -1
  120. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
  121. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +249 -249
  122. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +141 -131
  123. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  124. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  125. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +31 -21
  126. data/lib/pulp_ansible_client/models/ansible_role_response.rb +28 -18
  127. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  128. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  129. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  130. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  131. data/lib/pulp_ansible_client/models/collection_version_search_list.rb +1 -16
  132. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  133. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  134. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +237 -237
  135. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  136. data/lib/pulp_ansible_client/models/repository.rb +1 -1
  137. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +1 -1
  138. data/lib/pulp_ansible_client/models/repository_response.rb +12 -2
  139. data/lib/pulp_ansible_client/models/repository_version_response.rb +12 -2
  140. data/lib/pulp_ansible_client/version.rb +1 -1
  141. data/lib/pulp_ansible_client.rb +1 -1
  142. data/spec/api/ansible_collections_api_spec.rb +2 -1
  143. data/spec/api/{pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb → api_plugin_ansible_search_collection_versions_api_spec.rb} +9 -8
  144. data/spec/api/content_collection_deprecations_api_spec.rb +5 -4
  145. data/spec/api/content_collection_marks_api_spec.rb +5 -4
  146. data/spec/api/content_collection_signatures_api_spec.rb +6 -4
  147. data/spec/api/content_collection_versions_api_spec.rb +7 -5
  148. data/spec/api/content_namespaces_api_spec.rb +5 -4
  149. data/spec/api/content_roles_api_spec.rb +5 -4
  150. data/spec/api/distributions_ansible_api_spec.rb +2 -1
  151. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +2 -1
  152. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +2 -1
  153. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +4 -3
  154. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +2 -1
  155. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -1
  156. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +2 -1
  157. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -3
  158. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +2 -1
  159. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +2 -1
  160. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +2 -1
  161. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +4 -3
  162. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +2 -1
  163. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -1
  164. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +2 -1
  165. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -3
  166. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +2 -1
  167. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +1 -0
  168. data/spec/api/remotes_collection_api_spec.rb +2 -1
  169. data/spec/api/remotes_git_api_spec.rb +2 -1
  170. data/spec/api/remotes_role_api_spec.rb +2 -1
  171. data/spec/api/repositories_ansible_api_spec.rb +4 -3
  172. data/spec/api/repositories_ansible_versions_api_spec.rb +4 -3
  173. data/spec/configuration_spec.rb +3 -3
  174. data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
  175. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  176. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  177. data/spec/models/ansible_collection_version_response_spec.rb +9 -3
  178. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  179. data/spec/models/ansible_collection_version_signature_spec.rb +6 -0
  180. data/spec/models/ansible_collection_version_spec.rb +9 -3
  181. data/spec/models/ansible_git_remote_response_spec.rb +22 -16
  182. data/spec/models/ansible_git_remote_spec.rb +18 -18
  183. data/spec/models/ansible_role_remote_response_spec.rb +6 -0
  184. data/spec/models/ansible_role_response_spec.rb +9 -3
  185. data/spec/models/ansible_role_spec.rb +2 -2
  186. data/spec/models/collection_version_search_list_spec.rb +0 -6
  187. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  188. data/spec/models/repository_response_spec.rb +6 -0
  189. data/spec/models/repository_version_response_spec.rb +6 -0
  190. metadata +140 -140
@@ -17,6 +17,9 @@ module PulpAnsibleClient
17
17
  class AnsibleCollectionRemoteResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
+ # The Pulp Resource Name (PRN).
21
+ attr_accessor :prn
22
+
20
23
  # Timestamp of creation.
21
24
  attr_accessor :pulp_created
22
25
 
@@ -91,6 +94,7 @@ module PulpAnsibleClient
91
94
  def self.attribute_map
92
95
  {
93
96
  :'pulp_href' => :'pulp_href',
97
+ :'prn' => :'prn',
94
98
  :'pulp_created' => :'pulp_created',
95
99
  :'pulp_last_updated' => :'pulp_last_updated',
96
100
  :'name' => :'name',
@@ -122,6 +126,7 @@ module PulpAnsibleClient
122
126
  def self.openapi_types
123
127
  {
124
128
  :'pulp_href' => :'String',
129
+ :'prn' => :'String',
125
130
  :'pulp_created' => :'DateTime',
126
131
  :'pulp_last_updated' => :'DateTime',
127
132
  :'name' => :'String',
@@ -186,6 +191,10 @@ module PulpAnsibleClient
186
191
  self.pulp_href = attributes[:'pulp_href']
187
192
  end
188
193
 
194
+ if attributes.key?(:'prn')
195
+ self.prn = attributes[:'prn']
196
+ end
197
+
189
198
  if attributes.key?(:'pulp_created')
190
199
  self.pulp_created = attributes[:'pulp_created']
191
200
  end
@@ -309,20 +318,20 @@ module PulpAnsibleClient
309
318
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
310
319
  end
311
320
 
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.')
321
+ if !@total_timeout.nil? && @total_timeout < 0
322
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
314
323
  end
315
324
 
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.')
325
+ if !@connect_timeout.nil? && @connect_timeout < 0
326
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
318
327
  end
319
328
 
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.')
329
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
330
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
322
331
  end
323
332
 
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.')
333
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
334
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
326
335
  end
327
336
 
328
337
  if !@auth_url.nil? && @auth_url.to_s.length > 255
@@ -338,10 +347,10 @@ module PulpAnsibleClient
338
347
  return false if @name.nil?
339
348
  return false if @url.nil?
340
349
  return false if !@download_concurrency.nil? && @download_concurrency < 1
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
350
+ return false if !@total_timeout.nil? && @total_timeout < 0
351
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
352
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
353
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
345
354
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
346
355
  true
347
356
  end
@@ -359,8 +368,8 @@ module PulpAnsibleClient
359
368
  # Custom attribute writer method with validation
360
369
  # @param [Object] total_timeout Value to be assigned
361
370
  def total_timeout=(total_timeout)
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.'
371
+ if !total_timeout.nil? && total_timeout < 0
372
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
364
373
  end
365
374
 
366
375
  @total_timeout = total_timeout
@@ -369,8 +378,8 @@ module PulpAnsibleClient
369
378
  # Custom attribute writer method with validation
370
379
  # @param [Object] connect_timeout Value to be assigned
371
380
  def connect_timeout=(connect_timeout)
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.'
381
+ if !connect_timeout.nil? && connect_timeout < 0
382
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
374
383
  end
375
384
 
376
385
  @connect_timeout = connect_timeout
@@ -379,8 +388,8 @@ module PulpAnsibleClient
379
388
  # Custom attribute writer method with validation
380
389
  # @param [Object] sock_connect_timeout Value to be assigned
381
390
  def sock_connect_timeout=(sock_connect_timeout)
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.'
391
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
392
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
384
393
  end
385
394
 
386
395
  @sock_connect_timeout = sock_connect_timeout
@@ -389,8 +398,8 @@ module PulpAnsibleClient
389
398
  # Custom attribute writer method with validation
390
399
  # @param [Object] sock_read_timeout Value to be assigned
391
400
  def sock_read_timeout=(sock_read_timeout)
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.'
401
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
402
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
394
403
  end
395
404
 
396
405
  @sock_read_timeout = sock_read_timeout
@@ -412,6 +421,7 @@ module PulpAnsibleClient
412
421
  return true if self.equal?(o)
413
422
  self.class == o.class &&
414
423
  pulp_href == o.pulp_href &&
424
+ prn == o.prn &&
415
425
  pulp_created == o.pulp_created &&
416
426
  pulp_last_updated == o.pulp_last_updated &&
417
427
  name == o.name &&
@@ -447,7 +457,7 @@ module PulpAnsibleClient
447
457
  # Calculates hash code according to all attributes.
448
458
  # @return [Integer] Hash code
449
459
  def hash
450
- [pulp_href, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, 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
460
+ [pulp_href, prn, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, 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
451
461
  end
452
462
 
453
463
  # Builds the object from hash
@@ -15,17 +15,20 @@ 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 content unit.
19
- attr_accessor :upload
20
-
21
18
  # An uploaded file that may be turned into the content unit.
22
19
  attr_accessor :file
23
20
 
21
+ # A URI of a repository the new content unit should be associated with.
22
+ attr_accessor :repository
23
+
24
24
  # Artifact file representing the physical content
25
25
  attr_accessor :artifact
26
26
 
27
- # A URI of a repository the new content unit should be associated with.
28
- attr_accessor :repository
27
+ # An uncommitted upload that may be turned into the content unit.
28
+ attr_accessor :upload
29
+
30
+ # A url that Pulp can download and turn into the content unit.
31
+ attr_accessor :file_url
29
32
 
30
33
  # The name of the collection.
31
34
  attr_accessor :expected_name
@@ -39,10 +42,11 @@ module PulpAnsibleClient
39
42
  # Attribute mapping from ruby-style variable name to JSON key.
40
43
  def self.attribute_map
41
44
  {
42
- :'upload' => :'upload',
43
45
  :'file' => :'file',
44
- :'artifact' => :'artifact',
45
46
  :'repository' => :'repository',
47
+ :'artifact' => :'artifact',
48
+ :'upload' => :'upload',
49
+ :'file_url' => :'file_url',
46
50
  :'expected_name' => :'expected_name',
47
51
  :'expected_namespace' => :'expected_namespace',
48
52
  :'expected_version' => :'expected_version'
@@ -52,10 +56,11 @@ module PulpAnsibleClient
52
56
  # Attribute type mapping.
53
57
  def self.openapi_types
54
58
  {
55
- :'upload' => :'String',
56
59
  :'file' => :'File',
57
- :'artifact' => :'String',
58
60
  :'repository' => :'String',
61
+ :'artifact' => :'String',
62
+ :'upload' => :'String',
63
+ :'file_url' => :'String',
59
64
  :'expected_name' => :'String',
60
65
  :'expected_namespace' => :'String',
61
66
  :'expected_version' => :'String'
@@ -83,20 +88,24 @@ module PulpAnsibleClient
83
88
  h[k.to_sym] = v
84
89
  }
85
90
 
86
- if attributes.key?(:'upload')
87
- self.upload = attributes[:'upload']
88
- end
89
-
90
91
  if attributes.key?(:'file')
91
92
  self.file = attributes[:'file']
92
93
  end
93
94
 
95
+ if attributes.key?(:'repository')
96
+ self.repository = attributes[:'repository']
97
+ end
98
+
94
99
  if attributes.key?(:'artifact')
95
100
  self.artifact = attributes[:'artifact']
96
101
  end
97
102
 
98
- if attributes.key?(:'repository')
99
- self.repository = attributes[:'repository']
103
+ if attributes.key?(:'upload')
104
+ self.upload = attributes[:'upload']
105
+ end
106
+
107
+ if attributes.key?(:'file_url')
108
+ self.file_url = attributes[:'file_url']
100
109
  end
101
110
 
102
111
  if attributes.key?(:'expected_name')
@@ -116,6 +125,10 @@ module PulpAnsibleClient
116
125
  # @return Array for valid properties with the reasons
117
126
  def list_invalid_properties
118
127
  invalid_properties = Array.new
128
+ if !@file_url.nil? && @file_url.to_s.length < 1
129
+ invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
130
+ end
131
+
119
132
  if !@expected_name.nil? && @expected_name.to_s.length > 64
120
133
  invalid_properties.push('invalid value for "expected_name", the character length must be smaller than or equal to 64.')
121
134
  end
@@ -146,6 +159,7 @@ module PulpAnsibleClient
146
159
  # Check to see if the all the properties in the model are valid
147
160
  # @return true if the model is valid
148
161
  def valid?
162
+ return false if !@file_url.nil? && @file_url.to_s.length < 1
149
163
  return false if !@expected_name.nil? && @expected_name.to_s.length > 64
150
164
  return false if !@expected_name.nil? && @expected_name.to_s.length < 1
151
165
  return false if !@expected_namespace.nil? && @expected_namespace.to_s.length > 64
@@ -155,6 +169,16 @@ module PulpAnsibleClient
155
169
  true
156
170
  end
157
171
 
172
+ # Custom attribute writer method with validation
173
+ # @param [Object] file_url Value to be assigned
174
+ def file_url=(file_url)
175
+ if !file_url.nil? && file_url.to_s.length < 1
176
+ fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
177
+ end
178
+
179
+ @file_url = file_url
180
+ end
181
+
158
182
  # Custom attribute writer method with validation
159
183
  # @param [Object] expected_name Value to be assigned
160
184
  def expected_name=(expected_name)
@@ -202,10 +226,11 @@ module PulpAnsibleClient
202
226
  def ==(o)
203
227
  return true if self.equal?(o)
204
228
  self.class == o.class &&
205
- upload == o.upload &&
206
229
  file == o.file &&
207
- artifact == o.artifact &&
208
230
  repository == o.repository &&
231
+ artifact == o.artifact &&
232
+ upload == o.upload &&
233
+ file_url == o.file_url &&
209
234
  expected_name == o.expected_name &&
210
235
  expected_namespace == o.expected_namespace &&
211
236
  expected_version == o.expected_version
@@ -220,7 +245,7 @@ module PulpAnsibleClient
220
245
  # Calculates hash code according to all attributes.
221
246
  # @return [Integer] Hash code
222
247
  def hash
223
- [upload, file, artifact, repository, expected_name, expected_namespace, expected_version].hash
248
+ [file, repository, artifact, upload, file_url, expected_name, expected_namespace, expected_version].hash
224
249
  end
225
250
 
226
251
  # Builds the object from hash
@@ -15,16 +15,19 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
- # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
19
- attr_accessor :pulp_last_updated
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
+
21
+ # The Pulp Resource Name (PRN).
22
+ attr_accessor :prn
20
23
 
21
24
  # Artifact file representing the physical content
22
25
  attr_accessor :artifact
23
26
 
24
- attr_accessor :pulp_href
27
+ # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
28
+ attr_accessor :pulp_last_updated
25
29
 
26
- # Timestamp of creation.
27
- attr_accessor :pulp_created
30
+ attr_accessor :pulp_href
28
31
 
29
32
  # The SHA-256 checksum if available.
30
33
  attr_accessor :sha256
@@ -100,10 +103,11 @@ module PulpAnsibleClient
100
103
  # Attribute mapping from ruby-style variable name to JSON key.
101
104
  def self.attribute_map
102
105
  {
103
- :'pulp_last_updated' => :'pulp_last_updated',
106
+ :'pulp_created' => :'pulp_created',
107
+ :'prn' => :'prn',
104
108
  :'artifact' => :'artifact',
109
+ :'pulp_last_updated' => :'pulp_last_updated',
105
110
  :'pulp_href' => :'pulp_href',
106
- :'pulp_created' => :'pulp_created',
107
111
  :'sha256' => :'sha256',
108
112
  :'md5' => :'md5',
109
113
  :'sha1' => :'sha1',
@@ -134,10 +138,11 @@ module PulpAnsibleClient
134
138
  # Attribute type mapping.
135
139
  def self.openapi_types
136
140
  {
137
- :'pulp_last_updated' => :'DateTime',
141
+ :'pulp_created' => :'DateTime',
142
+ :'prn' => :'String',
138
143
  :'artifact' => :'String',
144
+ :'pulp_last_updated' => :'DateTime',
139
145
  :'pulp_href' => :'String',
140
- :'pulp_created' => :'DateTime',
141
146
  :'sha256' => :'String',
142
147
  :'md5' => :'String',
143
148
  :'sha1' => :'String',
@@ -146,12 +151,12 @@ module PulpAnsibleClient
146
151
  :'sha512' => :'String',
147
152
  :'id' => :'String',
148
153
  :'authors' => :'Array<String>',
149
- :'contents' => :'AnyType',
150
- :'dependencies' => :'AnyType',
154
+ :'contents' => :'Object',
155
+ :'dependencies' => :'Object',
151
156
  :'description' => :'String',
152
- :'docs_blob' => :'AnyType',
153
- :'manifest' => :'AnyType',
154
- :'files' => :'AnyType',
157
+ :'docs_blob' => :'Object',
158
+ :'manifest' => :'Object',
159
+ :'files' => :'Object',
155
160
  :'documentation' => :'String',
156
161
  :'homepage' => :'String',
157
162
  :'issues' => :'String',
@@ -187,20 +192,24 @@ module PulpAnsibleClient
187
192
  h[k.to_sym] = v
188
193
  }
189
194
 
190
- if attributes.key?(:'pulp_last_updated')
191
- self.pulp_last_updated = attributes[:'pulp_last_updated']
195
+ if attributes.key?(:'pulp_created')
196
+ self.pulp_created = attributes[:'pulp_created']
197
+ end
198
+
199
+ if attributes.key?(:'prn')
200
+ self.prn = attributes[:'prn']
192
201
  end
193
202
 
194
203
  if attributes.key?(:'artifact')
195
204
  self.artifact = attributes[:'artifact']
196
205
  end
197
206
 
198
- if attributes.key?(:'pulp_href')
199
- self.pulp_href = attributes[:'pulp_href']
207
+ if attributes.key?(:'pulp_last_updated')
208
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
200
209
  end
201
210
 
202
- if attributes.key?(:'pulp_created')
203
- self.pulp_created = attributes[:'pulp_created']
211
+ if attributes.key?(:'pulp_href')
212
+ self.pulp_href = attributes[:'pulp_href']
204
213
  end
205
214
 
206
215
  if attributes.key?(:'sha256')
@@ -444,10 +453,11 @@ module PulpAnsibleClient
444
453
  def ==(o)
445
454
  return true if self.equal?(o)
446
455
  self.class == o.class &&
447
- pulp_last_updated == o.pulp_last_updated &&
456
+ pulp_created == o.pulp_created &&
457
+ prn == o.prn &&
448
458
  artifact == o.artifact &&
459
+ pulp_last_updated == o.pulp_last_updated &&
449
460
  pulp_href == o.pulp_href &&
450
- pulp_created == o.pulp_created &&
451
461
  sha256 == o.sha256 &&
452
462
  md5 == o.md5 &&
453
463
  sha1 == o.sha1 &&
@@ -483,7 +493,7 @@ module PulpAnsibleClient
483
493
  # Calculates hash code according to all attributes.
484
494
  # @return [Integer] Hash code
485
495
  def hash
486
- [pulp_last_updated, artifact, pulp_href, pulp_created, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
496
+ [pulp_created, prn, artifact, pulp_last_updated, pulp_href, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
487
497
  end
488
498
 
489
499
  # Builds the object from hash
@@ -24,6 +24,9 @@ module PulpAnsibleClient
24
24
  # An uncommitted upload that may be turned into the content unit.
25
25
  attr_accessor :upload
26
26
 
27
+ # A url that Pulp can download and turn into the content unit.
28
+ attr_accessor :file_url
29
+
27
30
  # The content this signature is pointing to.
28
31
  attr_accessor :signed_collection
29
32
 
@@ -33,6 +36,7 @@ module PulpAnsibleClient
33
36
  :'repository' => :'repository',
34
37
  :'file' => :'file',
35
38
  :'upload' => :'upload',
39
+ :'file_url' => :'file_url',
36
40
  :'signed_collection' => :'signed_collection'
37
41
  }
38
42
  end
@@ -43,6 +47,7 @@ module PulpAnsibleClient
43
47
  :'repository' => :'String',
44
48
  :'file' => :'File',
45
49
  :'upload' => :'String',
50
+ :'file_url' => :'String',
46
51
  :'signed_collection' => :'String'
47
52
  }
48
53
  end
@@ -80,6 +85,10 @@ module PulpAnsibleClient
80
85
  self.upload = attributes[:'upload']
81
86
  end
82
87
 
88
+ if attributes.key?(:'file_url')
89
+ self.file_url = attributes[:'file_url']
90
+ end
91
+
83
92
  if attributes.key?(:'signed_collection')
84
93
  self.signed_collection = attributes[:'signed_collection']
85
94
  end
@@ -89,6 +98,10 @@ module PulpAnsibleClient
89
98
  # @return Array for valid properties with the reasons
90
99
  def list_invalid_properties
91
100
  invalid_properties = Array.new
101
+ if !@file_url.nil? && @file_url.to_s.length < 1
102
+ invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
103
+ end
104
+
92
105
  if @signed_collection.nil?
93
106
  invalid_properties.push('invalid value for "signed_collection", signed_collection cannot be nil.')
94
107
  end
@@ -99,10 +112,21 @@ module PulpAnsibleClient
99
112
  # Check to see if the all the properties in the model are valid
100
113
  # @return true if the model is valid
101
114
  def valid?
115
+ return false if !@file_url.nil? && @file_url.to_s.length < 1
102
116
  return false if @signed_collection.nil?
103
117
  true
104
118
  end
105
119
 
120
+ # Custom attribute writer method with validation
121
+ # @param [Object] file_url Value to be assigned
122
+ def file_url=(file_url)
123
+ if !file_url.nil? && file_url.to_s.length < 1
124
+ fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
125
+ end
126
+
127
+ @file_url = file_url
128
+ end
129
+
106
130
  # Checks equality by comparing each attribute.
107
131
  # @param [Object] Object to be compared
108
132
  def ==(o)
@@ -111,6 +135,7 @@ module PulpAnsibleClient
111
135
  repository == o.repository &&
112
136
  file == o.file &&
113
137
  upload == o.upload &&
138
+ file_url == o.file_url &&
114
139
  signed_collection == o.signed_collection
115
140
  end
116
141
 
@@ -123,7 +148,7 @@ module PulpAnsibleClient
123
148
  # Calculates hash code according to all attributes.
124
149
  # @return [Integer] Hash code
125
150
  def hash
126
- [repository, file, upload, signed_collection].hash
151
+ [repository, file, upload, file_url, signed_collection].hash
127
152
  end
128
153
 
129
154
  # Builds the object from hash
@@ -17,6 +17,9 @@ module PulpAnsibleClient
17
17
  class AnsibleCollectionVersionSignatureResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
+ # The Pulp Resource Name (PRN).
21
+ attr_accessor :prn
22
+
20
23
  # Timestamp of creation.
21
24
  attr_accessor :pulp_created
22
25
 
@@ -36,6 +39,7 @@ module PulpAnsibleClient
36
39
  def self.attribute_map
37
40
  {
38
41
  :'pulp_href' => :'pulp_href',
42
+ :'prn' => :'prn',
39
43
  :'pulp_created' => :'pulp_created',
40
44
  :'pulp_last_updated' => :'pulp_last_updated',
41
45
  :'signed_collection' => :'signed_collection',
@@ -48,6 +52,7 @@ module PulpAnsibleClient
48
52
  def self.openapi_types
49
53
  {
50
54
  :'pulp_href' => :'String',
55
+ :'prn' => :'String',
51
56
  :'pulp_created' => :'DateTime',
52
57
  :'pulp_last_updated' => :'DateTime',
53
58
  :'signed_collection' => :'String',
@@ -82,6 +87,10 @@ module PulpAnsibleClient
82
87
  self.pulp_href = attributes[:'pulp_href']
83
88
  end
84
89
 
90
+ if attributes.key?(:'prn')
91
+ self.prn = attributes[:'prn']
92
+ end
93
+
85
94
  if attributes.key?(:'pulp_created')
86
95
  self.pulp_created = attributes[:'pulp_created']
87
96
  end
@@ -127,6 +136,7 @@ module PulpAnsibleClient
127
136
  return true if self.equal?(o)
128
137
  self.class == o.class &&
129
138
  pulp_href == o.pulp_href &&
139
+ prn == o.prn &&
130
140
  pulp_created == o.pulp_created &&
131
141
  pulp_last_updated == o.pulp_last_updated &&
132
142
  signed_collection == o.signed_collection &&
@@ -143,7 +153,7 @@ module PulpAnsibleClient
143
153
  # Calculates hash code according to all attributes.
144
154
  # @return [Integer] Hash code
145
155
  def hash
146
- [pulp_href, pulp_created, pulp_last_updated, signed_collection, pubkey_fingerprint, signing_service].hash
156
+ [pulp_href, prn, pulp_created, pulp_last_updated, signed_collection, pubkey_fingerprint, signing_service].hash
147
157
  end
148
158
 
149
159
  # Builds the object from hash