pulp_ansible_client 0.29.10 → 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 +8 -8
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRoleResponse.md +8 -8
- data/docs/ContentCollectionVersionsApi.md +2 -2
- data/docs/PatchedansibleCollectionRemote.md +3 -1
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/RemotesCollectionApi.md +2 -2
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
- 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 +35 -35
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +247 -247
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +162 -162
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +35 -35
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +30 -4
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +243 -243
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +1 -1
- 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 +7 -7
- 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 +7 -7
- data/spec/models/patchedansible_collection_remote_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +127 -127
|
@@ -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
|
|
@@ -16,25 +16,25 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for CollectionVersion Content.
|
|
18
18
|
class AnsibleCollectionVersionResponse
|
|
19
|
+
# Artifact file representing the physical content
|
|
20
|
+
attr_accessor :artifact
|
|
21
|
+
|
|
22
|
+
attr_accessor :pulp_href
|
|
23
|
+
|
|
19
24
|
# Timestamp of creation.
|
|
20
25
|
attr_accessor :pulp_created
|
|
21
26
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
# Artifact file representing the physical content
|
|
25
|
-
attr_accessor :artifact
|
|
27
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
28
|
+
attr_accessor :pulp_labels
|
|
26
29
|
|
|
27
30
|
# The Pulp Resource Name (PRN).
|
|
28
31
|
attr_accessor :prn
|
|
29
32
|
|
|
30
|
-
attr_accessor :
|
|
33
|
+
attr_accessor :vuln_report
|
|
31
34
|
|
|
32
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.
|
|
33
36
|
attr_accessor :pulp_last_updated
|
|
34
37
|
|
|
35
|
-
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
36
|
-
attr_accessor :pulp_labels
|
|
37
|
-
|
|
38
38
|
# The SHA-256 checksum if available.
|
|
39
39
|
attr_accessor :sha256
|
|
40
40
|
|
|
@@ -97,13 +97,13 @@ module PulpAnsibleClient
|
|
|
97
97
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
98
98
|
def self.attribute_map
|
|
99
99
|
{
|
|
100
|
-
:'pulp_created' => :'pulp_created',
|
|
101
|
-
:'vuln_report' => :'vuln_report',
|
|
102
100
|
:'artifact' => :'artifact',
|
|
103
|
-
:'prn' => :'prn',
|
|
104
101
|
:'pulp_href' => :'pulp_href',
|
|
105
|
-
:'
|
|
102
|
+
:'pulp_created' => :'pulp_created',
|
|
106
103
|
:'pulp_labels' => :'pulp_labels',
|
|
104
|
+
:'prn' => :'prn',
|
|
105
|
+
:'vuln_report' => :'vuln_report',
|
|
106
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
107
107
|
:'sha256' => :'sha256',
|
|
108
108
|
:'md5' => :'md5',
|
|
109
109
|
:'sha1' => :'sha1',
|
|
@@ -135,13 +135,13 @@ module PulpAnsibleClient
|
|
|
135
135
|
# Attribute type mapping.
|
|
136
136
|
def self.openapi_types
|
|
137
137
|
{
|
|
138
|
-
:'pulp_created' => :'Time',
|
|
139
|
-
:'vuln_report' => :'String',
|
|
140
138
|
:'artifact' => :'String',
|
|
141
|
-
:'prn' => :'String',
|
|
142
139
|
:'pulp_href' => :'String',
|
|
143
|
-
:'
|
|
140
|
+
:'pulp_created' => :'Time',
|
|
144
141
|
:'pulp_labels' => :'Hash<String, String>',
|
|
142
|
+
:'prn' => :'String',
|
|
143
|
+
:'vuln_report' => :'String',
|
|
144
|
+
:'pulp_last_updated' => :'Time',
|
|
145
145
|
:'sha256' => :'String',
|
|
146
146
|
:'md5' => :'String',
|
|
147
147
|
:'sha1' => :'String',
|
|
@@ -187,28 +187,16 @@ module PulpAnsibleClient
|
|
|
187
187
|
h[k.to_sym] = v
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
if attributes.key?(:'pulp_created')
|
|
191
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
if attributes.key?(:'vuln_report')
|
|
195
|
-
self.vuln_report = attributes[:'vuln_report']
|
|
196
|
-
end
|
|
197
|
-
|
|
198
190
|
if attributes.key?(:'artifact')
|
|
199
191
|
self.artifact = attributes[:'artifact']
|
|
200
192
|
end
|
|
201
193
|
|
|
202
|
-
if attributes.key?(:'prn')
|
|
203
|
-
self.prn = attributes[:'prn']
|
|
204
|
-
end
|
|
205
|
-
|
|
206
194
|
if attributes.key?(:'pulp_href')
|
|
207
195
|
self.pulp_href = attributes[:'pulp_href']
|
|
208
196
|
end
|
|
209
197
|
|
|
210
|
-
if attributes.key?(:'
|
|
211
|
-
self.
|
|
198
|
+
if attributes.key?(:'pulp_created')
|
|
199
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
212
200
|
end
|
|
213
201
|
|
|
214
202
|
if attributes.key?(:'pulp_labels')
|
|
@@ -217,6 +205,18 @@ module PulpAnsibleClient
|
|
|
217
205
|
end
|
|
218
206
|
end
|
|
219
207
|
|
|
208
|
+
if attributes.key?(:'prn')
|
|
209
|
+
self.prn = attributes[:'prn']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'vuln_report')
|
|
213
|
+
self.vuln_report = attributes[:'vuln_report']
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'pulp_last_updated')
|
|
217
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
218
|
+
end
|
|
219
|
+
|
|
220
220
|
if attributes.key?(:'sha256')
|
|
221
221
|
self.sha256 = attributes[:'sha256']
|
|
222
222
|
end
|
|
@@ -472,13 +472,13 @@ module PulpAnsibleClient
|
|
|
472
472
|
def ==(o)
|
|
473
473
|
return true if self.equal?(o)
|
|
474
474
|
self.class == o.class &&
|
|
475
|
-
pulp_created == o.pulp_created &&
|
|
476
|
-
vuln_report == o.vuln_report &&
|
|
477
475
|
artifact == o.artifact &&
|
|
478
|
-
prn == o.prn &&
|
|
479
476
|
pulp_href == o.pulp_href &&
|
|
480
|
-
|
|
477
|
+
pulp_created == o.pulp_created &&
|
|
481
478
|
pulp_labels == o.pulp_labels &&
|
|
479
|
+
prn == o.prn &&
|
|
480
|
+
vuln_report == o.vuln_report &&
|
|
481
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
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
|
-
[
|
|
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
|