pulp_ansible_client 0.29.9 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionRemote.md +3 -1
  4. data/docs/AnsibleCollectionRemoteResponse.md +2 -0
  5. data/docs/AnsibleCollectionVersionResponse.md +6 -6
  6. data/docs/AnsibleGitRemote.md +28 -28
  7. data/docs/AnsibleGitRemoteResponse.md +26 -26
  8. data/docs/AnsibleRole.md +4 -4
  9. data/docs/AnsibleRoleResponse.md +6 -6
  10. data/docs/ContentCollectionVersionsApi.md +8 -8
  11. data/docs/PatchedansibleCollectionRemote.md +3 -1
  12. data/docs/PatchedansibleGitRemote.md +28 -28
  13. data/docs/RemotesCollectionApi.md +2 -2
  14. data/docs/RemotesGitApi.md +2 -2
  15. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -12
  16. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +3 -3
  17. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +30 -4
  18. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +27 -1
  19. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +27 -27
  20. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +250 -250
  21. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +176 -176
  22. data/lib/pulp_ansible_client/models/ansible_role.rb +18 -18
  23. data/lib/pulp_ansible_client/models/ansible_role_response.rb +27 -27
  24. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +30 -4
  25. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +239 -239
  26. data/lib/pulp_ansible_client/version.rb +1 -1
  27. data/spec/api/content_collection_versions_api_spec.rb +4 -4
  28. data/spec/api/remotes_collection_api_spec.rb +1 -1
  29. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  30. data/spec/models/ansible_collection_remote_spec.rb +6 -0
  31. data/spec/models/ansible_collection_version_response_spec.rb +5 -5
  32. data/spec/models/ansible_git_remote_response_spec.rb +20 -20
  33. data/spec/models/ansible_git_remote_spec.rb +20 -20
  34. data/spec/models/ansible_role_response_spec.rb +5 -5
  35. data/spec/models/ansible_role_spec.rb +3 -3
  36. data/spec/models/patchedansible_collection_remote_spec.rb +6 -0
  37. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  38. metadata +2 -2
@@ -248,7 +248,7 @@ module PulpAnsibleClient
248
248
  # @option opts [String] :name__regex Filter results where name matches regex value
249
249
  # @option opts [String] :name__startswith Filter results where name starts with value
250
250
  # @option opts [Integer] :offset The initial index from which to return the results.
251
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;requirements_file&#x60; - Requirements file * &#x60;-requirements_file&#x60; - Requirements file (descending) * &#x60;auth_url&#x60; - Auth url * &#x60;-auth_url&#x60; - Auth url (descending) * &#x60;token&#x60; - Token * &#x60;-token&#x60; - Token (descending) * &#x60;sync_dependencies&#x60; - Sync dependencies * &#x60;-sync_dependencies&#x60; - Sync dependencies (descending) * &#x60;signed_only&#x60; - Signed only * &#x60;-signed_only&#x60; - Signed only (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
251
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;requirements_file&#x60; - Requirements file * &#x60;-requirements_file&#x60; - Requirements file (descending) * &#x60;auth_url&#x60; - Auth url * &#x60;-auth_url&#x60; - Auth url (descending) * &#x60;token&#x60; - Token * &#x60;-token&#x60; - Token (descending) * &#x60;sync_dependencies&#x60; - Sync dependencies * &#x60;-sync_dependencies&#x60; - Sync dependencies (descending) * &#x60;signed_only&#x60; - Signed only * &#x60;-signed_only&#x60; - Signed only (descending) * &#x60;sync_highest_versions&#x60; - Sync highest versions * &#x60;-sync_highest_versions&#x60; - Sync highest versions (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
252
252
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
253
253
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
254
254
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -288,7 +288,7 @@ module PulpAnsibleClient
288
288
  # @option opts [String] :name__regex Filter results where name matches regex value
289
289
  # @option opts [String] :name__startswith Filter results where name starts with value
290
290
  # @option opts [Integer] :offset The initial index from which to return the results.
291
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;requirements_file&#x60; - Requirements file * &#x60;-requirements_file&#x60; - Requirements file (descending) * &#x60;auth_url&#x60; - Auth url * &#x60;-auth_url&#x60; - Auth url (descending) * &#x60;token&#x60; - Token * &#x60;-token&#x60; - Token (descending) * &#x60;sync_dependencies&#x60; - Sync dependencies * &#x60;-sync_dependencies&#x60; - Sync dependencies (descending) * &#x60;signed_only&#x60; - Signed only * &#x60;-signed_only&#x60; - Signed only (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
291
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;requirements_file&#x60; - Requirements file * &#x60;-requirements_file&#x60; - Requirements file (descending) * &#x60;auth_url&#x60; - Auth url * &#x60;-auth_url&#x60; - Auth url (descending) * &#x60;token&#x60; - Token * &#x60;-token&#x60; - Token (descending) * &#x60;sync_dependencies&#x60; - Sync dependencies * &#x60;-sync_dependencies&#x60; - Sync dependencies (descending) * &#x60;signed_only&#x60; - Signed only * &#x60;-signed_only&#x60; - Signed only (descending) * &#x60;sync_highest_versions&#x60; - Sync highest versions * &#x60;-sync_highest_versions&#x60; - Sync highest versions (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
292
292
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
293
293
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
294
294
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -312,7 +312,7 @@ module PulpAnsibleClient
312
312
  if @api_client.config.debugging
313
313
  @api_client.config.logger.debug 'Calling API: RemotesCollectionApi.list ...'
314
314
  end
315
- allowable_values = ["-auth_url", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-requirements_file", "-signed_only", "-sock_connect_timeout", "-sock_read_timeout", "-sync_dependencies", "-tls_validation", "-token", "-total_timeout", "-url", "-username", "auth_url", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "requirements_file", "signed_only", "sock_connect_timeout", "sock_read_timeout", "sync_dependencies", "tls_validation", "token", "total_timeout", "url", "username"]
315
+ allowable_values = ["-auth_url", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-requirements_file", "-signed_only", "-sock_connect_timeout", "-sock_read_timeout", "-sync_dependencies", "-sync_highest_versions", "-tls_validation", "-token", "-total_timeout", "-url", "-username", "auth_url", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "requirements_file", "signed_only", "sock_connect_timeout", "sock_read_timeout", "sync_dependencies", "sync_highest_versions", "tls_validation", "token", "total_timeout", "url", "username"]
316
316
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
317
317
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
318
318
  end
@@ -93,6 +93,9 @@ module PulpAnsibleClient
93
93
  # Sync only collections that have a signature
94
94
  attr_accessor :signed_only
95
95
 
96
+ # The number of highest versions of each collection to sync. Unset or null syncs all versions. 1 syncs only the highest version.
97
+ attr_accessor :sync_highest_versions
98
+
96
99
  class EnumAttributeValidator
97
100
  attr_reader :datatype
98
101
  attr_reader :allowable_values
@@ -143,7 +146,8 @@ module PulpAnsibleClient
143
146
  :'auth_url' => :'auth_url',
144
147
  :'token' => :'token',
145
148
  :'sync_dependencies' => :'sync_dependencies',
146
- :'signed_only' => :'signed_only'
149
+ :'signed_only' => :'signed_only',
150
+ :'sync_highest_versions' => :'sync_highest_versions'
147
151
  }
148
152
  end
149
153
 
@@ -180,7 +184,8 @@ module PulpAnsibleClient
180
184
  :'auth_url' => :'String',
181
185
  :'token' => :'String',
182
186
  :'sync_dependencies' => :'Boolean',
183
- :'signed_only' => :'Boolean'
187
+ :'signed_only' => :'Boolean',
188
+ :'sync_highest_versions' => :'Integer'
184
189
  }
185
190
  end
186
191
 
@@ -205,6 +210,7 @@ module PulpAnsibleClient
205
210
  :'requirements_file',
206
211
  :'auth_url',
207
212
  :'token',
213
+ :'sync_highest_versions'
208
214
  ])
209
215
  end
210
216
 
@@ -334,6 +340,10 @@ module PulpAnsibleClient
334
340
  if attributes.key?(:'signed_only')
335
341
  self.signed_only = attributes[:'signed_only']
336
342
  end
343
+
344
+ if attributes.key?(:'sync_highest_versions')
345
+ self.sync_highest_versions = attributes[:'sync_highest_versions']
346
+ end
337
347
  end
338
348
 
339
349
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -429,6 +439,10 @@ module PulpAnsibleClient
429
439
  invalid_properties.push('invalid value for "token", the character length must be great than or equal to 1.')
430
440
  end
431
441
 
442
+ if !@sync_highest_versions.nil? && @sync_highest_versions < 1
443
+ invalid_properties.push('invalid value for "sync_highest_versions", must be greater than or equal to 1.')
444
+ end
445
+
432
446
  invalid_properties
433
447
  end
434
448
 
@@ -458,6 +472,7 @@ module PulpAnsibleClient
458
472
  return false if !@auth_url.nil? && @auth_url.to_s.length < 1
459
473
  return false if !@token.nil? && @token.to_s.length > 2000
460
474
  return false if !@token.nil? && @token.to_s.length < 1
475
+ return false if !@sync_highest_versions.nil? && @sync_highest_versions < 1
461
476
  true
462
477
  end
463
478
 
@@ -657,6 +672,16 @@ module PulpAnsibleClient
657
672
  @token = token
658
673
  end
659
674
 
675
+ # Custom attribute writer method with validation
676
+ # @param [Object] sync_highest_versions Value to be assigned
677
+ def sync_highest_versions=(sync_highest_versions)
678
+ if !sync_highest_versions.nil? && sync_highest_versions < 1
679
+ fail ArgumentError, 'invalid value for "sync_highest_versions", must be greater than or equal to 1.'
680
+ end
681
+
682
+ @sync_highest_versions = sync_highest_versions
683
+ end
684
+
660
685
  # Checks equality by comparing each attribute.
661
686
  # @param [Object] Object to be compared
662
687
  def ==(o)
@@ -687,7 +712,8 @@ module PulpAnsibleClient
687
712
  auth_url == o.auth_url &&
688
713
  token == o.token &&
689
714
  sync_dependencies == o.sync_dependencies &&
690
- signed_only == o.signed_only
715
+ signed_only == o.signed_only &&
716
+ sync_highest_versions == o.sync_highest_versions
691
717
  end
692
718
 
693
719
  # @see the `==` method
@@ -699,7 +725,7 @@ module PulpAnsibleClient
699
725
  # Calculates hash code according to all attributes.
700
726
  # @return [Integer] Hash code
701
727
  def hash
702
- [name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, requirements_file, auth_url, token, sync_dependencies, signed_only].hash
728
+ [name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, requirements_file, auth_url, token, sync_dependencies, signed_only, sync_highest_versions].hash
703
729
  end
704
730
 
705
731
  # Builds the object from hash
@@ -89,6 +89,9 @@ module PulpAnsibleClient
89
89
  # Sync only collections that have a signature
90
90
  attr_accessor :signed_only
91
91
 
92
+ # The number of highest versions of each collection to sync. Unset or null syncs all versions. 1 syncs only the highest version.
93
+ attr_accessor :sync_highest_versions
94
+
92
95
  attr_accessor :last_sync_task
93
96
 
94
97
  class EnumAttributeValidator
@@ -141,6 +144,7 @@ module PulpAnsibleClient
141
144
  :'auth_url' => :'auth_url',
142
145
  :'sync_dependencies' => :'sync_dependencies',
143
146
  :'signed_only' => :'signed_only',
147
+ :'sync_highest_versions' => :'sync_highest_versions',
144
148
  :'last_sync_task' => :'last_sync_task'
145
149
  }
146
150
  end
@@ -178,6 +182,7 @@ module PulpAnsibleClient
178
182
  :'auth_url' => :'String',
179
183
  :'sync_dependencies' => :'Boolean',
180
184
  :'signed_only' => :'Boolean',
185
+ :'sync_highest_versions' => :'Integer',
181
186
  :'last_sync_task' => :'String'
182
187
  }
183
188
  end
@@ -197,6 +202,7 @@ module PulpAnsibleClient
197
202
  :'rate_limit',
198
203
  :'requirements_file',
199
204
  :'auth_url',
205
+ :'sync_highest_versions',
200
206
  ])
201
207
  end
202
208
 
@@ -325,6 +331,10 @@ module PulpAnsibleClient
325
331
  self.signed_only = attributes[:'signed_only']
326
332
  end
327
333
 
334
+ if attributes.key?(:'sync_highest_versions')
335
+ self.sync_highest_versions = attributes[:'sync_highest_versions']
336
+ end
337
+
328
338
  if attributes.key?(:'last_sync_task')
329
339
  self.last_sync_task = attributes[:'last_sync_task']
330
340
  end
@@ -367,6 +377,10 @@ module PulpAnsibleClient
367
377
  invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
368
378
  end
369
379
 
380
+ if !@sync_highest_versions.nil? && @sync_highest_versions < 1
381
+ invalid_properties.push('invalid value for "sync_highest_versions", must be greater than or equal to 1.')
382
+ end
383
+
370
384
  invalid_properties
371
385
  end
372
386
 
@@ -382,6 +396,7 @@ module PulpAnsibleClient
382
396
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
383
397
  return false if !@download_concurrency.nil? && @download_concurrency < 1
384
398
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
399
+ return false if !@sync_highest_versions.nil? && @sync_highest_versions < 1
385
400
  true
386
401
  end
387
402
 
@@ -445,6 +460,16 @@ module PulpAnsibleClient
445
460
  @auth_url = auth_url
446
461
  end
447
462
 
463
+ # Custom attribute writer method with validation
464
+ # @param [Object] sync_highest_versions Value to be assigned
465
+ def sync_highest_versions=(sync_highest_versions)
466
+ if !sync_highest_versions.nil? && sync_highest_versions < 1
467
+ fail ArgumentError, 'invalid value for "sync_highest_versions", must be greater than or equal to 1.'
468
+ end
469
+
470
+ @sync_highest_versions = sync_highest_versions
471
+ end
472
+
448
473
  # Checks equality by comparing each attribute.
449
474
  # @param [Object] Object to be compared
450
475
  def ==(o)
@@ -475,6 +500,7 @@ module PulpAnsibleClient
475
500
  auth_url == o.auth_url &&
476
501
  sync_dependencies == o.sync_dependencies &&
477
502
  signed_only == o.signed_only &&
503
+ sync_highest_versions == o.sync_highest_versions &&
478
504
  last_sync_task == o.last_sync_task
479
505
  end
480
506
 
@@ -487,7 +513,7 @@ module PulpAnsibleClient
487
513
  # Calculates hash code according to all attributes.
488
514
  # @return [Integer] Hash code
489
515
  def hash
490
- [pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, requirements_file, auth_url, sync_dependencies, signed_only, last_sync_task].hash
516
+ [pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, requirements_file, auth_url, sync_dependencies, signed_only, sync_highest_versions, last_sync_task].hash
491
517
  end
492
518
 
493
519
  # Builds the object from hash
@@ -19,21 +19,21 @@ module PulpAnsibleClient
19
19
  # Artifact file representing the physical content
20
20
  attr_accessor :artifact
21
21
 
22
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
- attr_accessor :pulp_labels
22
+ attr_accessor :pulp_href
24
23
 
25
24
  # Timestamp of creation.
26
25
  attr_accessor :pulp_created
27
26
 
28
- attr_accessor :vuln_report
29
-
30
- # 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.
31
- attr_accessor :pulp_last_updated
27
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
28
+ attr_accessor :pulp_labels
32
29
 
33
30
  # The Pulp Resource Name (PRN).
34
31
  attr_accessor :prn
35
32
 
36
- attr_accessor :pulp_href
33
+ attr_accessor :vuln_report
34
+
35
+ # 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.
36
+ attr_accessor :pulp_last_updated
37
37
 
38
38
  # The SHA-256 checksum if available.
39
39
  attr_accessor :sha256
@@ -98,12 +98,12 @@ module PulpAnsibleClient
98
98
  def self.attribute_map
99
99
  {
100
100
  :'artifact' => :'artifact',
101
- :'pulp_labels' => :'pulp_labels',
101
+ :'pulp_href' => :'pulp_href',
102
102
  :'pulp_created' => :'pulp_created',
103
+ :'pulp_labels' => :'pulp_labels',
104
+ :'prn' => :'prn',
103
105
  :'vuln_report' => :'vuln_report',
104
106
  :'pulp_last_updated' => :'pulp_last_updated',
105
- :'prn' => :'prn',
106
- :'pulp_href' => :'pulp_href',
107
107
  :'sha256' => :'sha256',
108
108
  :'md5' => :'md5',
109
109
  :'sha1' => :'sha1',
@@ -136,12 +136,12 @@ module PulpAnsibleClient
136
136
  def self.openapi_types
137
137
  {
138
138
  :'artifact' => :'String',
139
- :'pulp_labels' => :'Hash<String, String>',
139
+ :'pulp_href' => :'String',
140
140
  :'pulp_created' => :'Time',
141
+ :'pulp_labels' => :'Hash<String, String>',
142
+ :'prn' => :'String',
141
143
  :'vuln_report' => :'String',
142
144
  :'pulp_last_updated' => :'Time',
143
- :'prn' => :'String',
144
- :'pulp_href' => :'String',
145
145
  :'sha256' => :'String',
146
146
  :'md5' => :'String',
147
147
  :'sha1' => :'String',
@@ -191,14 +191,22 @@ module PulpAnsibleClient
191
191
  self.artifact = attributes[:'artifact']
192
192
  end
193
193
 
194
+ if attributes.key?(:'pulp_href')
195
+ self.pulp_href = attributes[:'pulp_href']
196
+ end
197
+
198
+ if attributes.key?(:'pulp_created')
199
+ self.pulp_created = attributes[:'pulp_created']
200
+ end
201
+
194
202
  if attributes.key?(:'pulp_labels')
195
203
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
196
204
  self.pulp_labels = value
197
205
  end
198
206
  end
199
207
 
200
- if attributes.key?(:'pulp_created')
201
- self.pulp_created = attributes[:'pulp_created']
208
+ if attributes.key?(:'prn')
209
+ self.prn = attributes[:'prn']
202
210
  end
203
211
 
204
212
  if attributes.key?(:'vuln_report')
@@ -209,14 +217,6 @@ module PulpAnsibleClient
209
217
  self.pulp_last_updated = attributes[:'pulp_last_updated']
210
218
  end
211
219
 
212
- if attributes.key?(:'prn')
213
- self.prn = attributes[:'prn']
214
- end
215
-
216
- if attributes.key?(:'pulp_href')
217
- self.pulp_href = attributes[:'pulp_href']
218
- end
219
-
220
220
  if attributes.key?(:'sha256')
221
221
  self.sha256 = attributes[:'sha256']
222
222
  end
@@ -473,12 +473,12 @@ module PulpAnsibleClient
473
473
  return true if self.equal?(o)
474
474
  self.class == o.class &&
475
475
  artifact == o.artifact &&
476
- pulp_labels == o.pulp_labels &&
476
+ pulp_href == o.pulp_href &&
477
477
  pulp_created == o.pulp_created &&
478
+ pulp_labels == o.pulp_labels &&
479
+ prn == o.prn &&
478
480
  vuln_report == o.vuln_report &&
479
481
  pulp_last_updated == o.pulp_last_updated &&
480
- prn == o.prn &&
481
- pulp_href == o.pulp_href &&
482
482
  sha256 == o.sha256 &&
483
483
  md5 == o.md5 &&
484
484
  sha1 == o.sha1 &&
@@ -510,7 +510,7 @@ module PulpAnsibleClient
510
510
  # Calculates hash code according to all attributes.
511
511
  # @return [Integer] Hash code
512
512
  def hash
513
- [artifact, pulp_labels, pulp_created, vuln_report, pulp_last_updated, prn, pulp_href, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
513
+ [artifact, pulp_href, pulp_created, pulp_labels, prn, vuln_report, pulp_last_updated, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
514
514
  end
515
515
 
516
516
  # Builds the object from hash