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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleCollectionRemote.md +3 -1
- data/docs/AnsibleCollectionRemoteResponse.md +2 -0
- data/docs/AnsibleCollectionVersionResponse.md +6 -6
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRole.md +4 -4
- data/docs/AnsibleRoleResponse.md +6 -6
- data/docs/ContentCollectionVersionsApi.md +8 -8
- data/docs/PatchedansibleCollectionRemote.md +3 -1
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/RemotesCollectionApi.md +2 -2
- data/docs/RemotesGitApi.md +2 -2
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -12
- data/lib/pulp_ansible_client/api/remotes_collection_api.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 +27 -27
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +250 -250
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +176 -176
- data/lib/pulp_ansible_client/models/ansible_role.rb +18 -18
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +27 -27
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +30 -4
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +239 -239
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +4 -4
- data/spec/api/remotes_collection_api_spec.rb +1 -1
- 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 +5 -5
- data/spec/models/ansible_git_remote_response_spec.rb +20 -20
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_response_spec.rb +5 -5
- data/spec/models/ansible_role_spec.rb +3 -3
- data/spec/models/patchedansible_collection_remote_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +2 -2
|
@@ -19,21 +19,21 @@ module PulpAnsibleClient
|
|
|
19
19
|
# Artifact file representing the physical content
|
|
20
20
|
attr_accessor :artifact
|
|
21
21
|
|
|
22
|
-
|
|
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
|
-
|
|
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 :
|
|
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
|
attr_accessor :version
|
|
39
39
|
|
|
@@ -45,12 +45,12 @@ module PulpAnsibleClient
|
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
47
|
:'artifact' => :'artifact',
|
|
48
|
-
:'
|
|
48
|
+
:'pulp_href' => :'pulp_href',
|
|
49
49
|
:'pulp_created' => :'pulp_created',
|
|
50
|
+
:'pulp_labels' => :'pulp_labels',
|
|
51
|
+
:'prn' => :'prn',
|
|
50
52
|
:'vuln_report' => :'vuln_report',
|
|
51
53
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
52
|
-
:'prn' => :'prn',
|
|
53
|
-
:'pulp_href' => :'pulp_href',
|
|
54
54
|
:'version' => :'version',
|
|
55
55
|
:'name' => :'name',
|
|
56
56
|
:'namespace' => :'namespace'
|
|
@@ -66,12 +66,12 @@ module PulpAnsibleClient
|
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
68
|
:'artifact' => :'String',
|
|
69
|
-
:'
|
|
69
|
+
:'pulp_href' => :'String',
|
|
70
70
|
:'pulp_created' => :'Time',
|
|
71
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
72
|
+
:'prn' => :'String',
|
|
71
73
|
:'vuln_report' => :'String',
|
|
72
74
|
:'pulp_last_updated' => :'Time',
|
|
73
|
-
:'prn' => :'String',
|
|
74
|
-
:'pulp_href' => :'String',
|
|
75
75
|
:'version' => :'String',
|
|
76
76
|
:'name' => :'String',
|
|
77
77
|
:'namespace' => :'String'
|
|
@@ -105,14 +105,22 @@ module PulpAnsibleClient
|
|
|
105
105
|
self.artifact = nil
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
+
if attributes.key?(:'pulp_href')
|
|
109
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'pulp_created')
|
|
113
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
114
|
+
end
|
|
115
|
+
|
|
108
116
|
if attributes.key?(:'pulp_labels')
|
|
109
117
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
110
118
|
self.pulp_labels = value
|
|
111
119
|
end
|
|
112
120
|
end
|
|
113
121
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
122
|
+
if attributes.key?(:'prn')
|
|
123
|
+
self.prn = attributes[:'prn']
|
|
116
124
|
end
|
|
117
125
|
|
|
118
126
|
if attributes.key?(:'vuln_report')
|
|
@@ -123,14 +131,6 @@ module PulpAnsibleClient
|
|
|
123
131
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
124
132
|
end
|
|
125
133
|
|
|
126
|
-
if attributes.key?(:'prn')
|
|
127
|
-
self.prn = attributes[:'prn']
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
if attributes.key?(:'pulp_href')
|
|
131
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
132
|
-
end
|
|
133
|
-
|
|
134
134
|
if attributes.key?(:'version')
|
|
135
135
|
self.version = attributes[:'version']
|
|
136
136
|
else
|
|
@@ -191,12 +191,12 @@ module PulpAnsibleClient
|
|
|
191
191
|
return true if self.equal?(o)
|
|
192
192
|
self.class == o.class &&
|
|
193
193
|
artifact == o.artifact &&
|
|
194
|
-
|
|
194
|
+
pulp_href == o.pulp_href &&
|
|
195
195
|
pulp_created == o.pulp_created &&
|
|
196
|
+
pulp_labels == o.pulp_labels &&
|
|
197
|
+
prn == o.prn &&
|
|
196
198
|
vuln_report == o.vuln_report &&
|
|
197
199
|
pulp_last_updated == o.pulp_last_updated &&
|
|
198
|
-
prn == o.prn &&
|
|
199
|
-
pulp_href == o.pulp_href &&
|
|
200
200
|
version == o.version &&
|
|
201
201
|
name == o.name &&
|
|
202
202
|
namespace == o.namespace
|
|
@@ -211,7 +211,7 @@ module PulpAnsibleClient
|
|
|
211
211
|
# Calculates hash code according to all attributes.
|
|
212
212
|
# @return [Integer] Hash code
|
|
213
213
|
def hash
|
|
214
|
-
[artifact,
|
|
214
|
+
[artifact, pulp_href, pulp_created, pulp_labels, prn, vuln_report, pulp_last_updated, version, name, namespace].hash
|
|
215
215
|
end
|
|
216
216
|
|
|
217
217
|
# Builds the object from hash
|
|
@@ -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
|