pulp_ansible_client 0.27.1 → 0.28.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/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
- data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
- data/docs/AnsibleCollectionRemoteResponse.md +1 -1
- data/docs/AnsibleCollectionVersionResponse.md +12 -10
- data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +27 -27
- data/docs/AnsibleRole.md +2 -2
- data/docs/AnsibleRoleRemoteResponse.md +1 -1
- data/docs/AnsibleRoleResponse.md +8 -6
- data/docs/CollectionMetadataResponse.md +4 -4
- data/docs/CollectionSummaryResponse.md +2 -2
- data/docs/CollectionVersionListResponse.md +1 -1
- data/docs/CollectionVersionResponse.md +1 -1
- data/docs/ContentCollectionVersionsApi.md +6 -6
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/RemotesGitApi.md +2 -2
- data/docs/RepositoryVersionResponse.md +3 -1
- data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +10 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +0 -15
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +0 -15
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +0 -33
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +0 -30
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +39 -45
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +10 -1
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +209 -224
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +140 -155
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +0 -15
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +0 -15
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +39 -30
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +0 -15
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +0 -15
- data/lib/pulp_ansible_client/models/collection_version_response.rb +0 -15
- data/lib/pulp_ansible_client/models/paginated_collection_response_list_links.rb +0 -4
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_collection_deprecated_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +0 -15
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +0 -33
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +197 -212
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +0 -15
- data/lib/pulp_ansible_client/models/repository.rb +0 -15
- data/lib/pulp_ansible_client/models/repository_response.rb +0 -15
- data/lib/pulp_ansible_client/models/repository_version_response.rb +13 -4
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +0 -15
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +3 -3
- data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +11 -5
- data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
- data/spec/models/ansible_git_remote_response_spec.rb +20 -20
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +11 -5
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +122 -122
@@ -23,12 +23,12 @@ module PulpAnsibleClient
|
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
26
|
-
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
27
|
-
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
28
|
-
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
29
26
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
27
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
30
28
|
# @option opts [String] :artifact Artifact file representing the physical content
|
29
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
31
30
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
31
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
32
32
|
# @option opts [String] :expected_name The name of the collection.
|
33
33
|
# @option opts [String] :expected_namespace The namespace of the collection.
|
34
34
|
# @option opts [String] :expected_version The version of the collection.
|
@@ -42,12 +42,12 @@ module PulpAnsibleClient
|
|
42
42
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
43
43
|
# @param [Hash] opts the optional parameters
|
44
44
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
45
|
-
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
46
|
-
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
47
|
-
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
48
45
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
46
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
49
47
|
# @option opts [String] :artifact Artifact file representing the physical content
|
48
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
50
49
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
50
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
51
51
|
# @option opts [String] :expected_name The name of the collection.
|
52
52
|
# @option opts [String] :expected_namespace The namespace of the collection.
|
53
53
|
# @option opts [String] :expected_version The version of the collection.
|
@@ -103,12 +103,12 @@ module PulpAnsibleClient
|
|
103
103
|
|
104
104
|
# form parameters
|
105
105
|
form_params = opts[:form_params] || {}
|
106
|
-
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
107
|
-
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
108
|
-
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
109
106
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
107
|
+
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
110
108
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
109
|
+
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
111
110
|
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
111
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
112
112
|
form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
|
113
113
|
form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
|
114
114
|
form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
|
@@ -30,6 +30,8 @@ module PulpAnsibleClient
|
|
30
30
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
31
|
attr_accessor :pulp_labels
|
32
32
|
|
33
|
+
attr_accessor :vuln_report
|
34
|
+
|
33
35
|
# The name of the Collection.
|
34
36
|
attr_accessor :name
|
35
37
|
|
@@ -44,6 +46,7 @@ module PulpAnsibleClient
|
|
44
46
|
:'pulp_created' => :'pulp_created',
|
45
47
|
:'pulp_last_updated' => :'pulp_last_updated',
|
46
48
|
:'pulp_labels' => :'pulp_labels',
|
49
|
+
:'vuln_report' => :'vuln_report',
|
47
50
|
:'name' => :'name',
|
48
51
|
:'namespace' => :'namespace'
|
49
52
|
}
|
@@ -62,6 +65,7 @@ module PulpAnsibleClient
|
|
62
65
|
:'pulp_created' => :'Time',
|
63
66
|
:'pulp_last_updated' => :'Time',
|
64
67
|
:'pulp_labels' => :'Hash<String, String>',
|
68
|
+
:'vuln_report' => :'String',
|
65
69
|
:'name' => :'String',
|
66
70
|
:'namespace' => :'String'
|
67
71
|
}
|
@@ -110,6 +114,10 @@ module PulpAnsibleClient
|
|
110
114
|
end
|
111
115
|
end
|
112
116
|
|
117
|
+
if attributes.key?(:'vuln_report')
|
118
|
+
self.vuln_report = attributes[:'vuln_report']
|
119
|
+
end
|
120
|
+
|
113
121
|
if attributes.key?(:'name')
|
114
122
|
self.name = attributes[:'name']
|
115
123
|
else
|
@@ -158,6 +166,7 @@ module PulpAnsibleClient
|
|
158
166
|
pulp_created == o.pulp_created &&
|
159
167
|
pulp_last_updated == o.pulp_last_updated &&
|
160
168
|
pulp_labels == o.pulp_labels &&
|
169
|
+
vuln_report == o.vuln_report &&
|
161
170
|
name == o.name &&
|
162
171
|
namespace == o.namespace
|
163
172
|
end
|
@@ -171,7 +180,7 @@ module PulpAnsibleClient
|
|
171
180
|
# Calculates hash code according to all attributes.
|
172
181
|
# @return [Integer] Hash code
|
173
182
|
def hash
|
174
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, name, namespace].hash
|
183
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, name, namespace].hash
|
175
184
|
end
|
176
185
|
|
177
186
|
# Builds the object from hash
|
@@ -151,10 +151,6 @@ module PulpAnsibleClient
|
|
151
151
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
152
152
|
end
|
153
153
|
|
154
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
155
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
156
|
-
end
|
157
|
-
|
158
154
|
if !@gpgkey.nil? && @gpgkey.to_s.length < 1
|
159
155
|
invalid_properties.push('invalid value for "gpgkey", the character length must be great than or equal to 1.')
|
160
156
|
end
|
@@ -169,7 +165,6 @@ module PulpAnsibleClient
|
|
169
165
|
return false if @name.nil?
|
170
166
|
return false if @name.to_s.length < 1
|
171
167
|
return false if !@description.nil? && @description.to_s.length < 1
|
172
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
173
168
|
return false if !@gpgkey.nil? && @gpgkey.to_s.length < 1
|
174
169
|
true
|
175
170
|
end
|
@@ -198,16 +193,6 @@ module PulpAnsibleClient
|
|
198
193
|
@description = description
|
199
194
|
end
|
200
195
|
|
201
|
-
# Custom attribute writer method with validation
|
202
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
203
|
-
def retain_repo_versions=(retain_repo_versions)
|
204
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
205
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
206
|
-
end
|
207
|
-
|
208
|
-
@retain_repo_versions = retain_repo_versions
|
209
|
-
end
|
210
|
-
|
211
196
|
# Custom attribute writer method with validation
|
212
197
|
# @param [Object] gpgkey Value to be assigned
|
213
198
|
def gpgkey=(gpgkey)
|
@@ -203,10 +203,6 @@ module PulpAnsibleClient
|
|
203
203
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
204
204
|
end
|
205
205
|
|
206
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
207
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
208
|
-
end
|
209
|
-
|
210
206
|
invalid_properties
|
211
207
|
end
|
212
208
|
|
@@ -215,20 +211,9 @@ module PulpAnsibleClient
|
|
215
211
|
def valid?
|
216
212
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
217
213
|
return false if @name.nil?
|
218
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
219
214
|
true
|
220
215
|
end
|
221
216
|
|
222
|
-
# Custom attribute writer method with validation
|
223
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
224
|
-
def retain_repo_versions=(retain_repo_versions)
|
225
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
226
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
227
|
-
end
|
228
|
-
|
229
|
-
@retain_repo_versions = retain_repo_versions
|
230
|
-
end
|
231
|
-
|
232
217
|
# Checks equality by comparing each attribute.
|
233
218
|
# @param [Object] Object to be compared
|
234
219
|
def ==(o)
|
@@ -389,10 +389,6 @@ module PulpAnsibleClient
|
|
389
389
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
390
390
|
end
|
391
391
|
|
392
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
393
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
394
|
-
end
|
395
|
-
|
396
392
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
397
393
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
398
394
|
end
|
@@ -413,18 +409,10 @@ module PulpAnsibleClient
|
|
413
409
|
invalid_properties.push('invalid value for "requirements_file", the character length must be great than or equal to 1.')
|
414
410
|
end
|
415
411
|
|
416
|
-
if !@auth_url.nil? && @auth_url.to_s.length > 255
|
417
|
-
invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
|
418
|
-
end
|
419
|
-
|
420
412
|
if !@auth_url.nil? && @auth_url.to_s.length < 1
|
421
413
|
invalid_properties.push('invalid value for "auth_url", the character length must be great than or equal to 1.')
|
422
414
|
end
|
423
415
|
|
424
|
-
if !@token.nil? && @token.to_s.length > 2000
|
425
|
-
invalid_properties.push('invalid value for "token", the character length must be smaller than or equal to 2000.')
|
426
|
-
end
|
427
|
-
|
428
416
|
if !@token.nil? && @token.to_s.length < 1
|
429
417
|
invalid_properties.push('invalid value for "token", the character length must be great than or equal to 1.')
|
430
418
|
end
|
@@ -448,15 +436,12 @@ module PulpAnsibleClient
|
|
448
436
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
449
437
|
return false if !@username.nil? && @username.to_s.length < 1
|
450
438
|
return false if !@password.nil? && @password.to_s.length < 1
|
451
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
452
439
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
453
440
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
454
441
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
455
442
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
456
443
|
return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
|
457
|
-
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
458
444
|
return false if !@auth_url.nil? && @auth_url.to_s.length < 1
|
459
|
-
return false if !@token.nil? && @token.to_s.length > 2000
|
460
445
|
return false if !@token.nil? && @token.to_s.length < 1
|
461
446
|
true
|
462
447
|
end
|
@@ -569,16 +554,6 @@ module PulpAnsibleClient
|
|
569
554
|
@password = password
|
570
555
|
end
|
571
556
|
|
572
|
-
# Custom attribute writer method with validation
|
573
|
-
# @param [Object] download_concurrency Value to be assigned
|
574
|
-
def download_concurrency=(download_concurrency)
|
575
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
576
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
577
|
-
end
|
578
|
-
|
579
|
-
@download_concurrency = download_concurrency
|
580
|
-
end
|
581
|
-
|
582
557
|
# Custom attribute writer method with validation
|
583
558
|
# @param [Object] total_timeout Value to be assigned
|
584
559
|
def total_timeout=(total_timeout)
|
@@ -632,10 +607,6 @@ module PulpAnsibleClient
|
|
632
607
|
# Custom attribute writer method with validation
|
633
608
|
# @param [Object] auth_url Value to be assigned
|
634
609
|
def auth_url=(auth_url)
|
635
|
-
if !auth_url.nil? && auth_url.to_s.length > 255
|
636
|
-
fail ArgumentError, 'invalid value for "auth_url", the character length must be smaller than or equal to 255.'
|
637
|
-
end
|
638
|
-
|
639
610
|
if !auth_url.nil? && auth_url.to_s.length < 1
|
640
611
|
fail ArgumentError, 'invalid value for "auth_url", the character length must be great than or equal to 1.'
|
641
612
|
end
|
@@ -646,10 +617,6 @@ module PulpAnsibleClient
|
|
646
617
|
# Custom attribute writer method with validation
|
647
618
|
# @param [Object] token Value to be assigned
|
648
619
|
def token=(token)
|
649
|
-
if !token.nil? && token.to_s.length > 2000
|
650
|
-
fail ArgumentError, 'invalid value for "token", the character length must be smaller than or equal to 2000.'
|
651
|
-
end
|
652
|
-
|
653
620
|
if !token.nil? && token.to_s.length < 1
|
654
621
|
fail ArgumentError, 'invalid value for "token", the character length must be great than or equal to 1.'
|
655
622
|
end
|
@@ -343,10 +343,6 @@ module PulpAnsibleClient
|
|
343
343
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
344
344
|
end
|
345
345
|
|
346
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
347
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
348
|
-
end
|
349
|
-
|
350
346
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
351
347
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
352
348
|
end
|
@@ -363,10 +359,6 @@ module PulpAnsibleClient
|
|
363
359
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
364
360
|
end
|
365
361
|
|
366
|
-
if !@auth_url.nil? && @auth_url.to_s.length > 255
|
367
|
-
invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
|
368
|
-
end
|
369
|
-
|
370
362
|
invalid_properties
|
371
363
|
end
|
372
364
|
|
@@ -376,25 +368,13 @@ module PulpAnsibleClient
|
|
376
368
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
377
369
|
return false if @name.nil?
|
378
370
|
return false if @url.nil?
|
379
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
380
371
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
381
372
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
382
373
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
383
374
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
384
|
-
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
385
375
|
true
|
386
376
|
end
|
387
377
|
|
388
|
-
# Custom attribute writer method with validation
|
389
|
-
# @param [Object] download_concurrency Value to be assigned
|
390
|
-
def download_concurrency=(download_concurrency)
|
391
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
392
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
393
|
-
end
|
394
|
-
|
395
|
-
@download_concurrency = download_concurrency
|
396
|
-
end
|
397
|
-
|
398
378
|
# Custom attribute writer method with validation
|
399
379
|
# @param [Object] total_timeout Value to be assigned
|
400
380
|
def total_timeout=(total_timeout)
|
@@ -435,16 +415,6 @@ module PulpAnsibleClient
|
|
435
415
|
@sock_read_timeout = sock_read_timeout
|
436
416
|
end
|
437
417
|
|
438
|
-
# Custom attribute writer method with validation
|
439
|
-
# @param [Object] auth_url Value to be assigned
|
440
|
-
def auth_url=(auth_url)
|
441
|
-
if !auth_url.nil? && auth_url.to_s.length > 255
|
442
|
-
fail ArgumentError, 'invalid value for "auth_url", the character length must be smaller than or equal to 255.'
|
443
|
-
end
|
444
|
-
|
445
|
-
@auth_url = auth_url
|
446
|
-
end
|
447
|
-
|
448
418
|
# Checks equality by comparing each attribute.
|
449
419
|
# @param [Object] Object to be compared
|
450
420
|
def ==(o)
|
@@ -16,23 +16,25 @@ require 'time'
|
|
16
16
|
module PulpAnsibleClient
|
17
17
|
# A serializer for CollectionVersion Content.
|
18
18
|
class AnsibleCollectionVersionResponse
|
19
|
-
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
20
|
-
attr_accessor :pulp_labels
|
21
|
-
|
22
|
-
# 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.
|
23
|
-
attr_accessor :pulp_last_updated
|
24
|
-
|
25
19
|
# The Pulp Resource Name (PRN).
|
26
20
|
attr_accessor :prn
|
27
21
|
|
28
|
-
# Timestamp of
|
29
|
-
attr_accessor :
|
22
|
+
# 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.
|
23
|
+
attr_accessor :pulp_last_updated
|
30
24
|
|
31
25
|
attr_accessor :pulp_href
|
32
26
|
|
27
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
28
|
+
attr_accessor :pulp_labels
|
29
|
+
|
33
30
|
# Artifact file representing the physical content
|
34
31
|
attr_accessor :artifact
|
35
32
|
|
33
|
+
# Timestamp of creation.
|
34
|
+
attr_accessor :pulp_created
|
35
|
+
|
36
|
+
attr_accessor :vuln_report
|
37
|
+
|
36
38
|
# The SHA-256 checksum if available.
|
37
39
|
attr_accessor :sha256
|
38
40
|
|
@@ -107,12 +109,13 @@ module PulpAnsibleClient
|
|
107
109
|
# Attribute mapping from ruby-style variable name to JSON key.
|
108
110
|
def self.attribute_map
|
109
111
|
{
|
110
|
-
:'pulp_labels' => :'pulp_labels',
|
111
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
112
112
|
:'prn' => :'prn',
|
113
|
-
:'
|
113
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
114
114
|
:'pulp_href' => :'pulp_href',
|
115
|
+
:'pulp_labels' => :'pulp_labels',
|
115
116
|
:'artifact' => :'artifact',
|
117
|
+
:'pulp_created' => :'pulp_created',
|
118
|
+
:'vuln_report' => :'vuln_report',
|
116
119
|
:'sha256' => :'sha256',
|
117
120
|
:'md5' => :'md5',
|
118
121
|
:'sha1' => :'sha1',
|
@@ -148,12 +151,13 @@ module PulpAnsibleClient
|
|
148
151
|
# Attribute type mapping.
|
149
152
|
def self.openapi_types
|
150
153
|
{
|
151
|
-
:'pulp_labels' => :'Hash<String, String>',
|
152
|
-
:'pulp_last_updated' => :'Time',
|
153
154
|
:'prn' => :'String',
|
154
|
-
:'
|
155
|
+
:'pulp_last_updated' => :'Time',
|
155
156
|
:'pulp_href' => :'String',
|
157
|
+
:'pulp_labels' => :'Hash<String, String>',
|
156
158
|
:'artifact' => :'String',
|
159
|
+
:'pulp_created' => :'Time',
|
160
|
+
:'vuln_report' => :'String',
|
157
161
|
:'sha256' => :'String',
|
158
162
|
:'md5' => :'String',
|
159
163
|
:'sha1' => :'String',
|
@@ -203,32 +207,36 @@ module PulpAnsibleClient
|
|
203
207
|
h[k.to_sym] = v
|
204
208
|
}
|
205
209
|
|
206
|
-
if attributes.key?(:'pulp_labels')
|
207
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
208
|
-
self.pulp_labels = value
|
209
|
-
end
|
210
|
-
end
|
211
|
-
|
212
|
-
if attributes.key?(:'pulp_last_updated')
|
213
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
214
|
-
end
|
215
|
-
|
216
210
|
if attributes.key?(:'prn')
|
217
211
|
self.prn = attributes[:'prn']
|
218
212
|
end
|
219
213
|
|
220
|
-
if attributes.key?(:'
|
221
|
-
self.
|
214
|
+
if attributes.key?(:'pulp_last_updated')
|
215
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
222
216
|
end
|
223
217
|
|
224
218
|
if attributes.key?(:'pulp_href')
|
225
219
|
self.pulp_href = attributes[:'pulp_href']
|
226
220
|
end
|
227
221
|
|
222
|
+
if attributes.key?(:'pulp_labels')
|
223
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
224
|
+
self.pulp_labels = value
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
228
|
if attributes.key?(:'artifact')
|
229
229
|
self.artifact = attributes[:'artifact']
|
230
230
|
end
|
231
231
|
|
232
|
+
if attributes.key?(:'pulp_created')
|
233
|
+
self.pulp_created = attributes[:'pulp_created']
|
234
|
+
end
|
235
|
+
|
236
|
+
if attributes.key?(:'vuln_report')
|
237
|
+
self.vuln_report = attributes[:'vuln_report']
|
238
|
+
end
|
239
|
+
|
232
240
|
if attributes.key?(:'sha256')
|
233
241
|
self.sha256 = attributes[:'sha256']
|
234
242
|
end
|
@@ -367,10 +375,6 @@ module PulpAnsibleClient
|
|
367
375
|
invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
|
368
376
|
end
|
369
377
|
|
370
|
-
if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
|
371
|
-
invalid_properties.push('invalid value for "requires_ansible", the character length must be smaller than or equal to 255.')
|
372
|
-
end
|
373
|
-
|
374
378
|
invalid_properties
|
375
379
|
end
|
376
380
|
|
@@ -385,7 +389,6 @@ module PulpAnsibleClient
|
|
385
389
|
return false if !@namespace.nil? && @namespace.to_s.length > 64
|
386
390
|
return false if !@origin_repository.nil? && @origin_repository.to_s.length > 2000
|
387
391
|
return false if !@version.nil? && @version.to_s.length > 128
|
388
|
-
return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
|
389
392
|
true
|
390
393
|
end
|
391
394
|
|
@@ -487,27 +490,18 @@ module PulpAnsibleClient
|
|
487
490
|
@version = version
|
488
491
|
end
|
489
492
|
|
490
|
-
# Custom attribute writer method with validation
|
491
|
-
# @param [Object] requires_ansible Value to be assigned
|
492
|
-
def requires_ansible=(requires_ansible)
|
493
|
-
if !requires_ansible.nil? && requires_ansible.to_s.length > 255
|
494
|
-
fail ArgumentError, 'invalid value for "requires_ansible", the character length must be smaller than or equal to 255.'
|
495
|
-
end
|
496
|
-
|
497
|
-
@requires_ansible = requires_ansible
|
498
|
-
end
|
499
|
-
|
500
493
|
# Checks equality by comparing each attribute.
|
501
494
|
# @param [Object] Object to be compared
|
502
495
|
def ==(o)
|
503
496
|
return true if self.equal?(o)
|
504
497
|
self.class == o.class &&
|
505
|
-
pulp_labels == o.pulp_labels &&
|
506
|
-
pulp_last_updated == o.pulp_last_updated &&
|
507
498
|
prn == o.prn &&
|
508
|
-
|
499
|
+
pulp_last_updated == o.pulp_last_updated &&
|
509
500
|
pulp_href == o.pulp_href &&
|
501
|
+
pulp_labels == o.pulp_labels &&
|
510
502
|
artifact == o.artifact &&
|
503
|
+
pulp_created == o.pulp_created &&
|
504
|
+
vuln_report == o.vuln_report &&
|
511
505
|
sha256 == o.sha256 &&
|
512
506
|
md5 == o.md5 &&
|
513
507
|
sha1 == o.sha1 &&
|
@@ -543,7 +537,7 @@ module PulpAnsibleClient
|
|
543
537
|
# Calculates hash code according to all attributes.
|
544
538
|
# @return [Integer] Hash code
|
545
539
|
def hash
|
546
|
-
[
|
540
|
+
[prn, pulp_last_updated, pulp_href, pulp_labels, artifact, pulp_created, vuln_report, 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
|
547
541
|
end
|
548
542
|
|
549
543
|
# Builds the object from hash
|
@@ -30,6 +30,8 @@ module PulpAnsibleClient
|
|
30
30
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
31
|
attr_accessor :pulp_labels
|
32
32
|
|
33
|
+
attr_accessor :vuln_report
|
34
|
+
|
33
35
|
# The content this signature is pointing to.
|
34
36
|
attr_accessor :signed_collection
|
35
37
|
|
@@ -47,6 +49,7 @@ module PulpAnsibleClient
|
|
47
49
|
:'pulp_created' => :'pulp_created',
|
48
50
|
:'pulp_last_updated' => :'pulp_last_updated',
|
49
51
|
:'pulp_labels' => :'pulp_labels',
|
52
|
+
:'vuln_report' => :'vuln_report',
|
50
53
|
:'signed_collection' => :'signed_collection',
|
51
54
|
:'pubkey_fingerprint' => :'pubkey_fingerprint',
|
52
55
|
:'signing_service' => :'signing_service'
|
@@ -66,6 +69,7 @@ module PulpAnsibleClient
|
|
66
69
|
:'pulp_created' => :'Time',
|
67
70
|
:'pulp_last_updated' => :'Time',
|
68
71
|
:'pulp_labels' => :'Hash<String, String>',
|
72
|
+
:'vuln_report' => :'String',
|
69
73
|
:'signed_collection' => :'String',
|
70
74
|
:'pubkey_fingerprint' => :'String',
|
71
75
|
:'signing_service' => :'String'
|
@@ -116,6 +120,10 @@ module PulpAnsibleClient
|
|
116
120
|
end
|
117
121
|
end
|
118
122
|
|
123
|
+
if attributes.key?(:'vuln_report')
|
124
|
+
self.vuln_report = attributes[:'vuln_report']
|
125
|
+
end
|
126
|
+
|
119
127
|
if attributes.key?(:'signed_collection')
|
120
128
|
self.signed_collection = attributes[:'signed_collection']
|
121
129
|
else
|
@@ -161,6 +169,7 @@ module PulpAnsibleClient
|
|
161
169
|
pulp_created == o.pulp_created &&
|
162
170
|
pulp_last_updated == o.pulp_last_updated &&
|
163
171
|
pulp_labels == o.pulp_labels &&
|
172
|
+
vuln_report == o.vuln_report &&
|
164
173
|
signed_collection == o.signed_collection &&
|
165
174
|
pubkey_fingerprint == o.pubkey_fingerprint &&
|
166
175
|
signing_service == o.signing_service
|
@@ -175,7 +184,7 @@ module PulpAnsibleClient
|
|
175
184
|
# Calculates hash code according to all attributes.
|
176
185
|
# @return [Integer] Hash code
|
177
186
|
def hash
|
178
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, signed_collection, pubkey_fingerprint, signing_service].hash
|
187
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, signed_collection, pubkey_fingerprint, signing_service].hash
|
179
188
|
end
|
180
189
|
|
181
190
|
# Builds the object from hash
|