pulp_ansible_client 0.21.6 → 0.21.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -8
  3. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
  4. data/docs/AnsibleCollectionRemoteResponse.md +2 -2
  5. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
  6. data/docs/AnsibleCollectionVersion.md +3 -3
  7. data/docs/AnsibleCollectionVersionResponse.md +2 -0
  8. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  9. data/docs/AnsibleCollectionsApi.md +1 -1
  10. data/docs/AnsibleCopyApi.md +1 -1
  11. data/docs/AnsibleGitRemote.md +28 -28
  12. data/docs/AnsibleGitRemoteResponse.md +24 -24
  13. data/docs/AnsibleRole.md +3 -3
  14. data/docs/AnsibleRoleRemoteResponse.md +2 -2
  15. data/docs/AnsibleRoleResponse.md +5 -3
  16. data/docs/ApiCollectionsApi.md +1 -1
  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/ContentCollectionDeprecationsApi.md +1 -1
  21. data/docs/ContentCollectionMarksApi.md +1 -1
  22. data/docs/ContentCollectionSignaturesApi.md +1 -1
  23. data/docs/ContentCollectionVersionsApi.md +3 -3
  24. data/docs/ContentNamespacesApi.md +1 -1
  25. data/docs/ContentRolesApi.md +1 -1
  26. data/docs/DistributionsAnsibleApi.md +1 -1
  27. data/docs/GalaxyDetailApi.md +1 -1
  28. data/docs/PaginatedGalaxyCollectionResponseList.md +2 -2
  29. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +2 -2
  30. data/docs/PaginatedGalaxyRoleResponseList.md +2 -2
  31. data/docs/PaginatedGalaxyRoleVersionResponseList.md +2 -2
  32. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  33. data/docs/PaginatedTagResponseList.md +2 -2
  34. data/docs/PaginatedansibleAnsibleDistributionResponseList.md +2 -2
  35. data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +2 -2
  36. data/docs/PaginatedansibleAnsibleRepositoryResponseList.md +2 -2
  37. data/docs/PaginatedansibleCollectionRemoteResponseList.md +2 -2
  38. data/docs/PaginatedansibleCollectionResponseList.md +2 -2
  39. data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +2 -2
  40. data/docs/PaginatedansibleCollectionVersionResponseList.md +2 -2
  41. data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +2 -2
  42. data/docs/PaginatedansibleGitRemoteResponseList.md +2 -2
  43. data/docs/PaginatedansibleRoleRemoteResponseList.md +2 -2
  44. data/docs/PaginatedansibleRoleResponseList.md +2 -2
  45. data/docs/PatchedansibleGitRemote.md +28 -28
  46. data/docs/PulpAnsibleApiApi.md +1 -1
  47. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  48. data/docs/PulpAnsibleApiV3Api.md +1 -1
  49. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  50. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  51. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
  52. data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
  53. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  54. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  55. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
  56. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  57. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  58. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  59. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  60. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  61. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  62. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  63. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  64. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  65. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  66. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  67. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  68. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  69. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  70. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
  71. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
  72. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  73. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  74. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
  75. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  76. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  77. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  78. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  79. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  80. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  81. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  82. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  83. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  84. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +4 -3
  85. data/docs/PulpAnsibleTagsApi.md +1 -1
  86. data/docs/RemotesCollectionApi.md +1 -1
  87. data/docs/RemotesGitApi.md +1 -1
  88. data/docs/RemotesRoleApi.md +1 -1
  89. data/docs/RepositoriesAnsibleApi.md +1 -1
  90. data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
  91. data/docs/RepositoryResponse.md +2 -0
  92. data/docs/RepositoryVersionResponse.md +2 -0
  93. data/docs/VersionsApi.md +1 -1
  94. 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
  95. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  96. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +2 -0
  97. data/lib/pulp_ansible_client/configuration.rb +2 -2
  98. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
  99. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  100. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +31 -31
  101. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +10 -0
  102. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  103. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -1
  104. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
  105. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +249 -249
  106. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -144
  107. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  108. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  109. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +31 -31
  110. data/lib/pulp_ansible_client/models/ansible_role_response.rb +18 -8
  111. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +10 -0
  112. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +10 -0
  113. data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +10 -0
  114. data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +10 -0
  115. data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +10 -0
  116. data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +10 -0
  117. data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +10 -0
  118. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +10 -0
  119. data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +10 -0
  120. data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +10 -0
  121. data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +10 -0
  122. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +10 -0
  123. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +10 -0
  124. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +10 -0
  125. data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +10 -0
  126. data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +10 -0
  127. data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +10 -0
  128. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  129. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +237 -237
  130. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  131. data/lib/pulp_ansible_client/models/repository_response.rb +11 -1
  132. data/lib/pulp_ansible_client/models/repository_version_response.rb +11 -1
  133. data/lib/pulp_ansible_client/version.rb +1 -1
  134. data/lib/pulp_ansible_client.rb +1 -1
  135. 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
  136. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  137. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +1 -0
  138. data/spec/configuration_spec.rb +3 -3
  139. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  140. data/spec/models/ansible_collection_remote_response_spec.rb +6 -6
  141. data/spec/models/ansible_collection_version_response_spec.rb +6 -0
  142. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  143. data/spec/models/ansible_collection_version_spec.rb +3 -3
  144. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  145. data/spec/models/ansible_git_remote_spec.rb +18 -18
  146. data/spec/models/ansible_role_remote_response_spec.rb +6 -6
  147. data/spec/models/ansible_role_response_spec.rb +7 -1
  148. data/spec/models/ansible_role_spec.rb +2 -2
  149. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  150. data/spec/models/repository_response_spec.rb +6 -0
  151. data/spec/models/repository_version_response_spec.rb +6 -0
  152. metadata +143 -143
@@ -20,6 +20,9 @@ module PulpAnsibleClient
20
20
  # Timestamp of creation.
21
21
  attr_accessor :pulp_created
22
22
 
23
+ # Timestamp of the most recent update of the remote.
24
+ attr_accessor :pulp_last_updated
25
+
23
26
  # A unique name for this remote.
24
27
  attr_accessor :name
25
28
 
@@ -40,9 +43,6 @@ module PulpAnsibleClient
40
43
 
41
44
  attr_accessor :pulp_labels
42
45
 
43
- # Timestamp of the most recent update of the remote.
44
- attr_accessor :pulp_last_updated
45
-
46
46
  # Total number of simultaneous connections. If not set then the default value will be used.
47
47
  attr_accessor :download_concurrency
48
48
 
@@ -92,6 +92,7 @@ module PulpAnsibleClient
92
92
  {
93
93
  :'pulp_href' => :'pulp_href',
94
94
  :'pulp_created' => :'pulp_created',
95
+ :'pulp_last_updated' => :'pulp_last_updated',
95
96
  :'name' => :'name',
96
97
  :'url' => :'url',
97
98
  :'ca_cert' => :'ca_cert',
@@ -99,7 +100,6 @@ module PulpAnsibleClient
99
100
  :'tls_validation' => :'tls_validation',
100
101
  :'proxy_url' => :'proxy_url',
101
102
  :'pulp_labels' => :'pulp_labels',
102
- :'pulp_last_updated' => :'pulp_last_updated',
103
103
  :'download_concurrency' => :'download_concurrency',
104
104
  :'max_retries' => :'max_retries',
105
105
  :'policy' => :'policy',
@@ -123,6 +123,7 @@ module PulpAnsibleClient
123
123
  {
124
124
  :'pulp_href' => :'String',
125
125
  :'pulp_created' => :'DateTime',
126
+ :'pulp_last_updated' => :'DateTime',
126
127
  :'name' => :'String',
127
128
  :'url' => :'String',
128
129
  :'ca_cert' => :'String',
@@ -130,7 +131,6 @@ module PulpAnsibleClient
130
131
  :'tls_validation' => :'Boolean',
131
132
  :'proxy_url' => :'String',
132
133
  :'pulp_labels' => :'Hash<String, String>',
133
- :'pulp_last_updated' => :'DateTime',
134
134
  :'download_concurrency' => :'Integer',
135
135
  :'max_retries' => :'Integer',
136
136
  :'policy' => :'PolicyEnum',
@@ -190,6 +190,10 @@ module PulpAnsibleClient
190
190
  self.pulp_created = attributes[:'pulp_created']
191
191
  end
192
192
 
193
+ if attributes.key?(:'pulp_last_updated')
194
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
195
+ end
196
+
193
197
  if attributes.key?(:'name')
194
198
  self.name = attributes[:'name']
195
199
  end
@@ -220,10 +224,6 @@ module PulpAnsibleClient
220
224
  end
221
225
  end
222
226
 
223
- if attributes.key?(:'pulp_last_updated')
224
- self.pulp_last_updated = attributes[:'pulp_last_updated']
225
- end
226
-
227
227
  if attributes.key?(:'download_concurrency')
228
228
  self.download_concurrency = attributes[:'download_concurrency']
229
229
  end
@@ -309,20 +309,20 @@ module PulpAnsibleClient
309
309
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
310
310
  end
311
311
 
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.')
312
+ if !@total_timeout.nil? && @total_timeout < 0
313
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
314
314
  end
315
315
 
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.')
316
+ if !@connect_timeout.nil? && @connect_timeout < 0
317
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
318
318
  end
319
319
 
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.')
320
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
321
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
322
322
  end
323
323
 
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.')
324
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
325
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
326
326
  end
327
327
 
328
328
  if !@auth_url.nil? && @auth_url.to_s.length > 255
@@ -338,10 +338,10 @@ module PulpAnsibleClient
338
338
  return false if @name.nil?
339
339
  return false if @url.nil?
340
340
  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
341
+ return false if !@total_timeout.nil? && @total_timeout < 0
342
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
343
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
344
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
345
345
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
346
346
  true
347
347
  end
@@ -359,8 +359,8 @@ module PulpAnsibleClient
359
359
  # Custom attribute writer method with validation
360
360
  # @param [Object] total_timeout Value to be assigned
361
361
  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.'
362
+ if !total_timeout.nil? && total_timeout < 0
363
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
364
364
  end
365
365
 
366
366
  @total_timeout = total_timeout
@@ -369,8 +369,8 @@ module PulpAnsibleClient
369
369
  # Custom attribute writer method with validation
370
370
  # @param [Object] connect_timeout Value to be assigned
371
371
  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.'
372
+ if !connect_timeout.nil? && connect_timeout < 0
373
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
374
374
  end
375
375
 
376
376
  @connect_timeout = connect_timeout
@@ -379,8 +379,8 @@ module PulpAnsibleClient
379
379
  # Custom attribute writer method with validation
380
380
  # @param [Object] sock_connect_timeout Value to be assigned
381
381
  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.'
382
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
383
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
384
384
  end
385
385
 
386
386
  @sock_connect_timeout = sock_connect_timeout
@@ -389,8 +389,8 @@ module PulpAnsibleClient
389
389
  # Custom attribute writer method with validation
390
390
  # @param [Object] sock_read_timeout Value to be assigned
391
391
  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.'
392
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
393
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
394
394
  end
395
395
 
396
396
  @sock_read_timeout = sock_read_timeout
@@ -413,6 +413,7 @@ module PulpAnsibleClient
413
413
  self.class == o.class &&
414
414
  pulp_href == o.pulp_href &&
415
415
  pulp_created == o.pulp_created &&
416
+ pulp_last_updated == o.pulp_last_updated &&
416
417
  name == o.name &&
417
418
  url == o.url &&
418
419
  ca_cert == o.ca_cert &&
@@ -420,7 +421,6 @@ module PulpAnsibleClient
420
421
  tls_validation == o.tls_validation &&
421
422
  proxy_url == o.proxy_url &&
422
423
  pulp_labels == o.pulp_labels &&
423
- pulp_last_updated == o.pulp_last_updated &&
424
424
  download_concurrency == o.download_concurrency &&
425
425
  max_retries == o.max_retries &&
426
426
  policy == o.policy &&
@@ -447,7 +447,7 @@ module PulpAnsibleClient
447
447
  # Calculates hash code according to all attributes.
448
448
  # @return [Integer] Hash code
449
449
  def 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
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
451
451
  end
452
452
 
453
453
  # Builds the object from hash
@@ -68,12 +68,22 @@ 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
+
71
79
  invalid_properties
72
80
  end
73
81
 
74
82
  # Check to see if the all the properties in the model are valid
75
83
  # @return true if the model is valid
76
84
  def valid?
85
+ return false if @name.nil?
86
+ return false if @is_set.nil?
77
87
  true
78
88
  end
79
89
 
@@ -15,15 +15,15 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersion
18
+ # A URI of a repository the new content unit should be associated with.
19
+ attr_accessor :repository
20
+
18
21
  # Artifact file representing the physical content
19
22
  attr_accessor :artifact
20
23
 
21
24
  # An uploaded file that may be turned into the content unit.
22
25
  attr_accessor :file
23
26
 
24
- # A URI of a repository the new content unit should be associated with.
25
- attr_accessor :repository
26
-
27
27
  # An uncommitted upload that may be turned into the content unit.
28
28
  attr_accessor :upload
29
29
 
@@ -39,9 +39,9 @@ module PulpAnsibleClient
39
39
  # Attribute mapping from ruby-style variable name to JSON key.
40
40
  def self.attribute_map
41
41
  {
42
+ :'repository' => :'repository',
42
43
  :'artifact' => :'artifact',
43
44
  :'file' => :'file',
44
- :'repository' => :'repository',
45
45
  :'upload' => :'upload',
46
46
  :'expected_name' => :'expected_name',
47
47
  :'expected_namespace' => :'expected_namespace',
@@ -52,9 +52,9 @@ module PulpAnsibleClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
+ :'repository' => :'String',
55
56
  :'artifact' => :'String',
56
57
  :'file' => :'File',
57
- :'repository' => :'String',
58
58
  :'upload' => :'String',
59
59
  :'expected_name' => :'String',
60
60
  :'expected_namespace' => :'String',
@@ -83,6 +83,10 @@ module PulpAnsibleClient
83
83
  h[k.to_sym] = v
84
84
  }
85
85
 
86
+ if attributes.key?(:'repository')
87
+ self.repository = attributes[:'repository']
88
+ end
89
+
86
90
  if attributes.key?(:'artifact')
87
91
  self.artifact = attributes[:'artifact']
88
92
  end
@@ -91,10 +95,6 @@ module PulpAnsibleClient
91
95
  self.file = attributes[:'file']
92
96
  end
93
97
 
94
- if attributes.key?(:'repository')
95
- self.repository = attributes[:'repository']
96
- end
97
-
98
98
  if attributes.key?(:'upload')
99
99
  self.upload = attributes[:'upload']
100
100
  end
@@ -202,9 +202,9 @@ module PulpAnsibleClient
202
202
  def ==(o)
203
203
  return true if self.equal?(o)
204
204
  self.class == o.class &&
205
+ repository == o.repository &&
205
206
  artifact == o.artifact &&
206
207
  file == o.file &&
207
- repository == o.repository &&
208
208
  upload == o.upload &&
209
209
  expected_name == o.expected_name &&
210
210
  expected_namespace == o.expected_namespace &&
@@ -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
- [artifact, file, repository, upload, expected_name, expected_namespace, expected_version].hash
223
+ [repository, artifact, file, upload, expected_name, expected_namespace, expected_version].hash
224
224
  end
225
225
 
226
226
  # Builds the object from hash
@@ -21,6 +21,9 @@ module PulpAnsibleClient
21
21
  # Timestamp of creation.
22
22
  attr_accessor :pulp_created
23
23
 
24
+ # 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.
25
+ attr_accessor :pulp_last_updated
26
+
24
27
  attr_accessor :pulp_href
25
28
 
26
29
  # The SHA-256 checksum if available.
@@ -99,6 +102,7 @@ module PulpAnsibleClient
99
102
  {
100
103
  :'artifact' => :'artifact',
101
104
  :'pulp_created' => :'pulp_created',
105
+ :'pulp_last_updated' => :'pulp_last_updated',
102
106
  :'pulp_href' => :'pulp_href',
103
107
  :'sha256' => :'sha256',
104
108
  :'md5' => :'md5',
@@ -132,6 +136,7 @@ module PulpAnsibleClient
132
136
  {
133
137
  :'artifact' => :'String',
134
138
  :'pulp_created' => :'DateTime',
139
+ :'pulp_last_updated' => :'DateTime',
135
140
  :'pulp_href' => :'String',
136
141
  :'sha256' => :'String',
137
142
  :'md5' => :'String',
@@ -190,6 +195,10 @@ module PulpAnsibleClient
190
195
  self.pulp_created = attributes[:'pulp_created']
191
196
  end
192
197
 
198
+ if attributes.key?(:'pulp_last_updated')
199
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
200
+ end
201
+
193
202
  if attributes.key?(:'pulp_href')
194
203
  self.pulp_href = attributes[:'pulp_href']
195
204
  end
@@ -437,6 +446,7 @@ module PulpAnsibleClient
437
446
  self.class == o.class &&
438
447
  artifact == o.artifact &&
439
448
  pulp_created == o.pulp_created &&
449
+ pulp_last_updated == o.pulp_last_updated &&
440
450
  pulp_href == o.pulp_href &&
441
451
  sha256 == o.sha256 &&
442
452
  md5 == o.md5 &&
@@ -473,7 +483,7 @@ module PulpAnsibleClient
473
483
  # Calculates hash code according to all attributes.
474
484
  # @return [Integer] Hash code
475
485
  def hash
476
- [artifact, pulp_created, 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
486
+ [artifact, pulp_created, 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
477
487
  end
478
488
 
479
489
  # Builds the object from hash
@@ -20,6 +20,9 @@ module PulpAnsibleClient
20
20
  # Timestamp of creation.
21
21
  attr_accessor :pulp_created
22
22
 
23
+ # 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.
24
+ attr_accessor :pulp_last_updated
25
+
23
26
  # The content this signature is pointing to.
24
27
  attr_accessor :signed_collection
25
28
 
@@ -34,6 +37,7 @@ module PulpAnsibleClient
34
37
  {
35
38
  :'pulp_href' => :'pulp_href',
36
39
  :'pulp_created' => :'pulp_created',
40
+ :'pulp_last_updated' => :'pulp_last_updated',
37
41
  :'signed_collection' => :'signed_collection',
38
42
  :'pubkey_fingerprint' => :'pubkey_fingerprint',
39
43
  :'signing_service' => :'signing_service'
@@ -45,6 +49,7 @@ module PulpAnsibleClient
45
49
  {
46
50
  :'pulp_href' => :'String',
47
51
  :'pulp_created' => :'DateTime',
52
+ :'pulp_last_updated' => :'DateTime',
48
53
  :'signed_collection' => :'String',
49
54
  :'pubkey_fingerprint' => :'String',
50
55
  :'signing_service' => :'String'
@@ -81,6 +86,10 @@ module PulpAnsibleClient
81
86
  self.pulp_created = attributes[:'pulp_created']
82
87
  end
83
88
 
89
+ if attributes.key?(:'pulp_last_updated')
90
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
91
+ end
92
+
84
93
  if attributes.key?(:'signed_collection')
85
94
  self.signed_collection = attributes[:'signed_collection']
86
95
  end
@@ -119,6 +128,7 @@ module PulpAnsibleClient
119
128
  self.class == o.class &&
120
129
  pulp_href == o.pulp_href &&
121
130
  pulp_created == o.pulp_created &&
131
+ pulp_last_updated == o.pulp_last_updated &&
122
132
  signed_collection == o.signed_collection &&
123
133
  pubkey_fingerprint == o.pubkey_fingerprint &&
124
134
  signing_service == o.signing_service
@@ -133,7 +143,7 @@ module PulpAnsibleClient
133
143
  # Calculates hash code according to all attributes.
134
144
  # @return [Integer] Hash code
135
145
  def hash
136
- [pulp_href, pulp_created, signed_collection, pubkey_fingerprint, signing_service].hash
146
+ [pulp_href, pulp_created, pulp_last_updated, signed_collection, pubkey_fingerprint, signing_service].hash
137
147
  end
138
148
 
139
149
  # Builds the object from hash