pulp_ansible_client 0.29.8 → 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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleAnsibleCollectionDeprecated.md +2 -0
- data/docs/AnsibleCollectionRemote.md +3 -1
- data/docs/AnsibleCollectionRemoteResponse.md +2 -0
- data/docs/AnsibleCollectionVersionResponse.md +6 -6
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/AnsibleRole.md +4 -2
- data/docs/AnsibleRoleResponse.md +6 -6
- data/docs/ContentCollectionSignaturesApi.md +2 -0
- data/docs/ContentCollectionVersionsApi.md +10 -8
- data/docs/PatchedansibleCollectionRemote.md +3 -1
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/RemotesCollectionApi.md +2 -2
- data/docs/RepositoryAddRemoveContent.md +3 -1
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +15 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +30 -4
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +27 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +28 -28
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +222 -222
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +124 -124
- data/lib/pulp_ansible_client/models/ansible_role.rb +18 -8
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +28 -28
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +30 -4
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +214 -214
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +16 -4
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_signatures_api_spec.rb +1 -0
- data/spec/api/content_collection_versions_api_spec.rb +5 -4
- data/spec/api/remotes_collection_api_spec.rb +1 -1
- data/spec/models/ansible_ansible_collection_deprecated_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +6 -6
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +6 -6
- data/spec/models/ansible_role_spec.rb +7 -1
- data/spec/models/patchedansible_collection_remote_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- data/spec/models/repository_add_remove_content_spec.rb +6 -0
- metadata +121 -121
|
@@ -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
|
|
|
@@ -330,6 +336,10 @@ module PulpAnsibleClient
|
|
|
330
336
|
if attributes.key?(:'signed_only')
|
|
331
337
|
self.signed_only = attributes[:'signed_only']
|
|
332
338
|
end
|
|
339
|
+
|
|
340
|
+
if attributes.key?(:'sync_highest_versions')
|
|
341
|
+
self.sync_highest_versions = attributes[:'sync_highest_versions']
|
|
342
|
+
end
|
|
333
343
|
end
|
|
334
344
|
|
|
335
345
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -417,6 +427,10 @@ module PulpAnsibleClient
|
|
|
417
427
|
invalid_properties.push('invalid value for "token", the character length must be great than or equal to 1.')
|
|
418
428
|
end
|
|
419
429
|
|
|
430
|
+
if !@sync_highest_versions.nil? && @sync_highest_versions < 1
|
|
431
|
+
invalid_properties.push('invalid value for "sync_highest_versions", must be greater than or equal to 1.')
|
|
432
|
+
end
|
|
433
|
+
|
|
420
434
|
invalid_properties
|
|
421
435
|
end
|
|
422
436
|
|
|
@@ -444,6 +458,7 @@ module PulpAnsibleClient
|
|
|
444
458
|
return false if !@auth_url.nil? && @auth_url.to_s.length < 1
|
|
445
459
|
return false if !@token.nil? && @token.to_s.length > 2000
|
|
446
460
|
return false if !@token.nil? && @token.to_s.length < 1
|
|
461
|
+
return false if !@sync_highest_versions.nil? && @sync_highest_versions < 1
|
|
447
462
|
true
|
|
448
463
|
end
|
|
449
464
|
|
|
@@ -643,6 +658,16 @@ module PulpAnsibleClient
|
|
|
643
658
|
@token = token
|
|
644
659
|
end
|
|
645
660
|
|
|
661
|
+
# Custom attribute writer method with validation
|
|
662
|
+
# @param [Object] sync_highest_versions Value to be assigned
|
|
663
|
+
def sync_highest_versions=(sync_highest_versions)
|
|
664
|
+
if !sync_highest_versions.nil? && sync_highest_versions < 1
|
|
665
|
+
fail ArgumentError, 'invalid value for "sync_highest_versions", must be greater than or equal to 1.'
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
@sync_highest_versions = sync_highest_versions
|
|
669
|
+
end
|
|
670
|
+
|
|
646
671
|
# Checks equality by comparing each attribute.
|
|
647
672
|
# @param [Object] Object to be compared
|
|
648
673
|
def ==(o)
|
|
@@ -673,7 +698,8 @@ module PulpAnsibleClient
|
|
|
673
698
|
auth_url == o.auth_url &&
|
|
674
699
|
token == o.token &&
|
|
675
700
|
sync_dependencies == o.sync_dependencies &&
|
|
676
|
-
signed_only == o.signed_only
|
|
701
|
+
signed_only == o.signed_only &&
|
|
702
|
+
sync_highest_versions == o.sync_highest_versions
|
|
677
703
|
end
|
|
678
704
|
|
|
679
705
|
# @see the `==` method
|
|
@@ -685,7 +711,7 @@ module PulpAnsibleClient
|
|
|
685
711
|
# Calculates hash code according to all attributes.
|
|
686
712
|
# @return [Integer] Hash code
|
|
687
713
|
def hash
|
|
688
|
-
[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
|
|
714
|
+
[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
|
|
689
715
|
end
|
|
690
716
|
|
|
691
717
|
# Builds the object from hash
|