pulp_container_client 2.25.1 → 2.26.1
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 +5 -4
- data/docs/ContainerBlobResponse.md +2 -0
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +12 -12
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
- data/docs/ContainerContainerPullThroughRemoteResponse.md +1 -1
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/ContainerManifestResponse.md +2 -0
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContainerTagResponse.md +2 -0
- data/docs/ContentBlobsApi.md +20 -8
- data/docs/ContentManifestsApi.md +20 -8
- data/docs/ContentSignaturesApi.md +20 -8
- data/docs/ContentTagsApi.md +20 -8
- data/docs/DistributionsContainerApi.md +74 -34
- data/docs/DistributionsPullThroughApi.md +74 -34
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- data/docs/PulpContainerNamespacesApi.md +40 -16
- data/docs/RemotesContainerApi.md +72 -32
- data/docs/RemotesPullThroughApi.md +72 -32
- data/docs/RepositoriesContainerApi.md +138 -64
- data/docs/RepositoriesContainerPushApi.md +80 -36
- data/docs/RepositoriesContainerPushVersionsApi.md +22 -10
- data/docs/RepositoriesContainerVersionsApi.md +22 -10
- data/docs/RepositoryVersionResponse.md +3 -1
- data/docs/TokenApi.md +14 -5
- data/lib/pulp_container_client/api/content_blobs_api.rb +12 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +12 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +12 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +12 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +36 -0
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +36 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +36 -0
- data/lib/pulp_container_client/api/remotes_pull_through_api.rb +36 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +63 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +39 -0
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +15 -3
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +15 -3
- data/lib/pulp_container_client/api/token_api.rb +9 -0
- data/lib/pulp_container_client/models/container_blob_response.rb +10 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +51 -51
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +55 -55
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +51 -51
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +55 -55
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +0 -15
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +0 -15
- data/lib/pulp_container_client/models/container_container_push_repository.rb +17 -32
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +57 -72
- data/lib/pulp_container_client/models/container_container_remote.rb +0 -15
- data/lib/pulp_container_client/models/container_container_remote_response.rb +0 -15
- data/lib/pulp_container_client/models/container_container_repository.rb +0 -15
- data/lib/pulp_container_client/models/container_container_repository_response.rb +0 -15
- data/lib/pulp_container_client/models/container_manifest_response.rb +10 -1
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +10 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +10 -1
- data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +0 -2
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +44 -44
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +44 -44
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +0 -15
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +17 -32
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +0 -15
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +0 -15
- data/lib/pulp_container_client/models/repository_version_response.rb +13 -4
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +4 -0
- data/spec/api/content_manifests_api_spec.rb +4 -0
- data/spec/api/content_signatures_api_spec.rb +4 -0
- data/spec/api/content_tags_api_spec.rb +4 -0
- data/spec/api/distributions_container_api_spec.rb +12 -0
- data/spec/api/distributions_pull_through_api_spec.rb +12 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +8 -0
- data/spec/api/remotes_container_api_spec.rb +12 -0
- data/spec/api/remotes_pull_through_api_spec.rb +12 -0
- data/spec/api/repositories_container_api_spec.rb +21 -0
- data/spec/api/repositories_container_push_api_spec.rb +13 -0
- data/spec/api/repositories_container_push_versions_api_spec.rb +5 -1
- data/spec/api/repositories_container_versions_api_spec.rb +5 -1
- data/spec/api/token_api_spec.rb +3 -0
- data/spec/models/container_blob_response_spec.rb +6 -0
- data/spec/models/container_container_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- data/spec/models/container_container_push_repository_spec.rb +2 -2
- data/spec/models/container_manifest_response_spec.rb +6 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/container_tag_response_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +58 -58
@@ -385,10 +385,6 @@ module PulpContainerClient
|
|
385
385
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
386
386
|
end
|
387
387
|
|
388
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
389
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
390
|
-
end
|
391
|
-
|
392
388
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
393
389
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
394
390
|
end
|
@@ -436,7 +432,6 @@ module PulpContainerClient
|
|
436
432
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
437
433
|
return false if !@username.nil? && @username.to_s.length < 1
|
438
434
|
return false if !@password.nil? && @password.to_s.length < 1
|
439
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
440
435
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
441
436
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
442
437
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -555,16 +550,6 @@ module PulpContainerClient
|
|
555
550
|
@password = password
|
556
551
|
end
|
557
552
|
|
558
|
-
# Custom attribute writer method with validation
|
559
|
-
# @param [Object] download_concurrency Value to be assigned
|
560
|
-
def download_concurrency=(download_concurrency)
|
561
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
562
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
563
|
-
end
|
564
|
-
|
565
|
-
@download_concurrency = download_concurrency
|
566
|
-
end
|
567
|
-
|
568
553
|
# Custom attribute writer method with validation
|
569
554
|
# @param [Object] total_timeout Value to be assigned
|
570
555
|
def total_timeout=(total_timeout)
|
@@ -341,10 +341,6 @@ module PulpContainerClient
|
|
341
341
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
342
342
|
end
|
343
343
|
|
344
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
345
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
346
|
-
end
|
347
|
-
|
348
344
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
349
345
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
350
346
|
end
|
@@ -374,7 +370,6 @@ module PulpContainerClient
|
|
374
370
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
375
371
|
return false if @name.nil?
|
376
372
|
return false if @url.nil?
|
377
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
378
373
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
379
374
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
380
375
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -383,16 +378,6 @@ module PulpContainerClient
|
|
383
378
|
true
|
384
379
|
end
|
385
380
|
|
386
|
-
# Custom attribute writer method with validation
|
387
|
-
# @param [Object] download_concurrency Value to be assigned
|
388
|
-
def download_concurrency=(download_concurrency)
|
389
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
390
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
391
|
-
end
|
392
|
-
|
393
|
-
@download_concurrency = download_concurrency
|
394
|
-
end
|
395
|
-
|
396
381
|
# Custom attribute writer method with validation
|
397
382
|
# @param [Object] total_timeout Value to be assigned
|
398
383
|
def total_timeout=(total_timeout)
|
@@ -133,10 +133,6 @@ module PulpContainerClient
|
|
133
133
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
134
134
|
end
|
135
135
|
|
136
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
137
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
138
|
-
end
|
139
|
-
|
140
136
|
invalid_properties
|
141
137
|
end
|
142
138
|
|
@@ -147,7 +143,6 @@ module PulpContainerClient
|
|
147
143
|
return false if @name.nil?
|
148
144
|
return false if @name.to_s.length < 1
|
149
145
|
return false if !@description.nil? && @description.to_s.length < 1
|
150
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
151
146
|
true
|
152
147
|
end
|
153
148
|
|
@@ -175,16 +170,6 @@ module PulpContainerClient
|
|
175
170
|
@description = description
|
176
171
|
end
|
177
172
|
|
178
|
-
# Custom attribute writer method with validation
|
179
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
180
|
-
def retain_repo_versions=(retain_repo_versions)
|
181
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
182
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
183
|
-
end
|
184
|
-
|
185
|
-
@retain_repo_versions = retain_repo_versions
|
186
|
-
end
|
187
|
-
|
188
173
|
# Checks equality by comparing each attribute.
|
189
174
|
# @param [Object] Object to be compared
|
190
175
|
def ==(o)
|
@@ -176,10 +176,6 @@ module PulpContainerClient
|
|
176
176
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
177
177
|
end
|
178
178
|
|
179
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
180
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
181
|
-
end
|
182
|
-
|
183
179
|
invalid_properties
|
184
180
|
end
|
185
181
|
|
@@ -188,20 +184,9 @@ module PulpContainerClient
|
|
188
184
|
def valid?
|
189
185
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
190
186
|
return false if @name.nil?
|
191
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
192
187
|
true
|
193
188
|
end
|
194
189
|
|
195
|
-
# Custom attribute writer method with validation
|
196
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
197
|
-
def retain_repo_versions=(retain_repo_versions)
|
198
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
199
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
200
|
-
end
|
201
|
-
|
202
|
-
@retain_repo_versions = retain_repo_versions
|
203
|
-
end
|
204
|
-
|
205
190
|
# Checks equality by comparing each attribute.
|
206
191
|
# @param [Object] Object to be compared
|
207
192
|
def ==(o)
|
@@ -30,6 +30,8 @@ module PulpContainerClient
|
|
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
|
# sha256 of the Manifest file
|
34
36
|
attr_accessor :digest
|
35
37
|
|
@@ -80,6 +82,7 @@ module PulpContainerClient
|
|
80
82
|
:'pulp_created' => :'pulp_created',
|
81
83
|
:'pulp_last_updated' => :'pulp_last_updated',
|
82
84
|
:'pulp_labels' => :'pulp_labels',
|
85
|
+
:'vuln_report' => :'vuln_report',
|
83
86
|
:'digest' => :'digest',
|
84
87
|
:'schema_version' => :'schema_version',
|
85
88
|
:'media_type' => :'media_type',
|
@@ -110,6 +113,7 @@ module PulpContainerClient
|
|
110
113
|
:'pulp_created' => :'Time',
|
111
114
|
:'pulp_last_updated' => :'Time',
|
112
115
|
:'pulp_labels' => :'Hash<String, String>',
|
116
|
+
:'vuln_report' => :'String',
|
113
117
|
:'digest' => :'String',
|
114
118
|
:'schema_version' => :'Integer',
|
115
119
|
:'media_type' => :'String',
|
@@ -170,6 +174,10 @@ module PulpContainerClient
|
|
170
174
|
end
|
171
175
|
end
|
172
176
|
|
177
|
+
if attributes.key?(:'vuln_report')
|
178
|
+
self.vuln_report = attributes[:'vuln_report']
|
179
|
+
end
|
180
|
+
|
173
181
|
if attributes.key?(:'digest')
|
174
182
|
self.digest = attributes[:'digest']
|
175
183
|
else
|
@@ -295,6 +303,7 @@ module PulpContainerClient
|
|
295
303
|
pulp_created == o.pulp_created &&
|
296
304
|
pulp_last_updated == o.pulp_last_updated &&
|
297
305
|
pulp_labels == o.pulp_labels &&
|
306
|
+
vuln_report == o.vuln_report &&
|
298
307
|
digest == o.digest &&
|
299
308
|
schema_version == o.schema_version &&
|
300
309
|
media_type == o.media_type &&
|
@@ -320,7 +329,7 @@ module PulpContainerClient
|
|
320
329
|
# Calculates hash code according to all attributes.
|
321
330
|
# @return [Integer] Hash code
|
322
331
|
def hash
|
323
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, digest, schema_version, media_type, listed_manifests, config_blob, blobs, annotations, labels, is_bootable, is_flatpak, type, architecture, os, compressed_image_size].hash
|
332
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, digest, schema_version, media_type, listed_manifests, config_blob, blobs, annotations, labels, is_bootable, is_flatpak, type, architecture, os, compressed_image_size].hash
|
324
333
|
end
|
325
334
|
|
326
335
|
# Builds the object from hash
|
@@ -30,6 +30,8 @@ module PulpContainerClient
|
|
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
|
# Signature name in the format of `digest_algo:manifest_digest@random_32_chars`
|
34
36
|
attr_accessor :name
|
35
37
|
|
@@ -59,6 +61,7 @@ module PulpContainerClient
|
|
59
61
|
:'pulp_created' => :'pulp_created',
|
60
62
|
:'pulp_last_updated' => :'pulp_last_updated',
|
61
63
|
:'pulp_labels' => :'pulp_labels',
|
64
|
+
:'vuln_report' => :'vuln_report',
|
62
65
|
:'name' => :'name',
|
63
66
|
:'digest' => :'digest',
|
64
67
|
:'type' => :'type',
|
@@ -82,6 +85,7 @@ module PulpContainerClient
|
|
82
85
|
:'pulp_created' => :'Time',
|
83
86
|
:'pulp_last_updated' => :'Time',
|
84
87
|
:'pulp_labels' => :'Hash<String, String>',
|
88
|
+
:'vuln_report' => :'String',
|
85
89
|
:'name' => :'String',
|
86
90
|
:'digest' => :'String',
|
87
91
|
:'type' => :'String',
|
@@ -135,6 +139,10 @@ module PulpContainerClient
|
|
135
139
|
end
|
136
140
|
end
|
137
141
|
|
142
|
+
if attributes.key?(:'vuln_report')
|
143
|
+
self.vuln_report = attributes[:'vuln_report']
|
144
|
+
end
|
145
|
+
|
138
146
|
if attributes.key?(:'name')
|
139
147
|
self.name = attributes[:'name']
|
140
148
|
else
|
@@ -238,6 +246,7 @@ module PulpContainerClient
|
|
238
246
|
pulp_created == o.pulp_created &&
|
239
247
|
pulp_last_updated == o.pulp_last_updated &&
|
240
248
|
pulp_labels == o.pulp_labels &&
|
249
|
+
vuln_report == o.vuln_report &&
|
241
250
|
name == o.name &&
|
242
251
|
digest == o.digest &&
|
243
252
|
type == o.type &&
|
@@ -256,7 +265,7 @@ module PulpContainerClient
|
|
256
265
|
# Calculates hash code according to all attributes.
|
257
266
|
# @return [Integer] Hash code
|
258
267
|
def hash
|
259
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, name, digest, type, key_id, timestamp, creator, signed_manifest].hash
|
268
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, name, digest, type, key_id, timestamp, creator, signed_manifest].hash
|
260
269
|
end
|
261
270
|
|
262
271
|
# Builds the object from hash
|
@@ -30,6 +30,8 @@ module PulpContainerClient
|
|
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
|
# Tag name
|
34
36
|
attr_accessor :name
|
35
37
|
|
@@ -44,6 +46,7 @@ module PulpContainerClient
|
|
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
|
:'tagged_manifest' => :'tagged_manifest'
|
49
52
|
}
|
@@ -62,6 +65,7 @@ module PulpContainerClient
|
|
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
|
:'tagged_manifest' => :'String'
|
67
71
|
}
|
@@ -110,6 +114,10 @@ module PulpContainerClient
|
|
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 PulpContainerClient
|
|
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
|
tagged_manifest == o.tagged_manifest
|
163
172
|
end
|
@@ -171,7 +180,7 @@ module PulpContainerClient
|
|
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, tagged_manifest].hash
|
183
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, name, tagged_manifest].hash
|
175
184
|
end
|
176
185
|
|
177
186
|
# Builds the object from hash
|
@@ -16,19 +16,19 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# A serializer for ContainerDistribution.
|
18
18
|
class PatchedcontainerContainerDistribution
|
19
|
-
#
|
20
|
-
attr_accessor :
|
19
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
# The latest RepositoryVersion for this Repository will be served.
|
23
|
+
attr_accessor :repository
|
21
24
|
|
22
25
|
attr_accessor :pulp_labels
|
23
26
|
|
24
27
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
25
28
|
attr_accessor :base_path
|
26
29
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
29
|
-
|
30
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
31
|
-
attr_accessor :name
|
30
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
31
|
+
attr_accessor :content_guard
|
32
32
|
|
33
33
|
# Whether this distribution should be shown in the content app.
|
34
34
|
attr_accessor :hidden
|
@@ -45,11 +45,11 @@ module PulpContainerClient
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
46
|
def self.attribute_map
|
47
47
|
{
|
48
|
-
:'
|
48
|
+
:'name' => :'name',
|
49
|
+
:'repository' => :'repository',
|
49
50
|
:'pulp_labels' => :'pulp_labels',
|
50
51
|
:'base_path' => :'base_path',
|
51
|
-
:'
|
52
|
-
:'name' => :'name',
|
52
|
+
:'content_guard' => :'content_guard',
|
53
53
|
:'hidden' => :'hidden',
|
54
54
|
:'repository_version' => :'repository_version',
|
55
55
|
:'private' => :'private',
|
@@ -65,11 +65,11 @@ module PulpContainerClient
|
|
65
65
|
# Attribute type mapping.
|
66
66
|
def self.openapi_types
|
67
67
|
{
|
68
|
-
:'
|
68
|
+
:'name' => :'String',
|
69
|
+
:'repository' => :'String',
|
69
70
|
:'pulp_labels' => :'Hash<String, String>',
|
70
71
|
:'base_path' => :'String',
|
71
|
-
:'
|
72
|
-
:'name' => :'String',
|
72
|
+
:'content_guard' => :'String',
|
73
73
|
:'hidden' => :'Boolean',
|
74
74
|
:'repository_version' => :'String',
|
75
75
|
:'private' => :'Boolean',
|
@@ -101,8 +101,12 @@ module PulpContainerClient
|
|
101
101
|
h[k.to_sym] = v
|
102
102
|
}
|
103
103
|
|
104
|
-
if attributes.key?(:'
|
105
|
-
self.
|
104
|
+
if attributes.key?(:'name')
|
105
|
+
self.name = attributes[:'name']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'repository')
|
109
|
+
self.repository = attributes[:'repository']
|
106
110
|
end
|
107
111
|
|
108
112
|
if attributes.key?(:'pulp_labels')
|
@@ -115,12 +119,8 @@ module PulpContainerClient
|
|
115
119
|
self.base_path = attributes[:'base_path']
|
116
120
|
end
|
117
121
|
|
118
|
-
if attributes.key?(:'
|
119
|
-
self.
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes.key?(:'name')
|
123
|
-
self.name = attributes[:'name']
|
122
|
+
if attributes.key?(:'content_guard')
|
123
|
+
self.content_guard = attributes[:'content_guard']
|
124
124
|
end
|
125
125
|
|
126
126
|
if attributes.key?(:'hidden')
|
@@ -147,14 +147,14 @@ module PulpContainerClient
|
|
147
147
|
def list_invalid_properties
|
148
148
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
149
149
|
invalid_properties = Array.new
|
150
|
-
if !@base_path.nil? && @base_path.to_s.length < 1
|
151
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
152
|
-
end
|
153
|
-
|
154
150
|
if !@name.nil? && @name.to_s.length < 1
|
155
151
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
156
152
|
end
|
157
153
|
|
154
|
+
if !@base_path.nil? && @base_path.to_s.length < 1
|
155
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
156
|
+
end
|
157
|
+
|
158
158
|
if !@description.nil? && @description.to_s.length < 1
|
159
159
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
160
160
|
end
|
@@ -166,26 +166,12 @@ module PulpContainerClient
|
|
166
166
|
# @return true if the model is valid
|
167
167
|
def valid?
|
168
168
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
169
|
-
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
170
169
|
return false if !@name.nil? && @name.to_s.length < 1
|
170
|
+
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
171
171
|
return false if !@description.nil? && @description.to_s.length < 1
|
172
172
|
true
|
173
173
|
end
|
174
174
|
|
175
|
-
# Custom attribute writer method with validation
|
176
|
-
# @param [Object] base_path Value to be assigned
|
177
|
-
def base_path=(base_path)
|
178
|
-
if base_path.nil?
|
179
|
-
fail ArgumentError, 'base_path cannot be nil'
|
180
|
-
end
|
181
|
-
|
182
|
-
if base_path.to_s.length < 1
|
183
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
184
|
-
end
|
185
|
-
|
186
|
-
@base_path = base_path
|
187
|
-
end
|
188
|
-
|
189
175
|
# Custom attribute writer method with validation
|
190
176
|
# @param [Object] name Value to be assigned
|
191
177
|
def name=(name)
|
@@ -200,6 +186,20 @@ module PulpContainerClient
|
|
200
186
|
@name = name
|
201
187
|
end
|
202
188
|
|
189
|
+
# Custom attribute writer method with validation
|
190
|
+
# @param [Object] base_path Value to be assigned
|
191
|
+
def base_path=(base_path)
|
192
|
+
if base_path.nil?
|
193
|
+
fail ArgumentError, 'base_path cannot be nil'
|
194
|
+
end
|
195
|
+
|
196
|
+
if base_path.to_s.length < 1
|
197
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
198
|
+
end
|
199
|
+
|
200
|
+
@base_path = base_path
|
201
|
+
end
|
202
|
+
|
203
203
|
# Custom attribute writer method with validation
|
204
204
|
# @param [Object] description Value to be assigned
|
205
205
|
def description=(description)
|
@@ -215,11 +215,11 @@ module PulpContainerClient
|
|
215
215
|
def ==(o)
|
216
216
|
return true if self.equal?(o)
|
217
217
|
self.class == o.class &&
|
218
|
-
|
218
|
+
name == o.name &&
|
219
|
+
repository == o.repository &&
|
219
220
|
pulp_labels == o.pulp_labels &&
|
220
221
|
base_path == o.base_path &&
|
221
|
-
|
222
|
-
name == o.name &&
|
222
|
+
content_guard == o.content_guard &&
|
223
223
|
hidden == o.hidden &&
|
224
224
|
repository_version == o.repository_version &&
|
225
225
|
private == o.private &&
|
@@ -235,7 +235,7 @@ module PulpContainerClient
|
|
235
235
|
# Calculates hash code according to all attributes.
|
236
236
|
# @return [Integer] Hash code
|
237
237
|
def hash
|
238
|
-
[
|
238
|
+
[name, repository, pulp_labels, base_path, content_guard, hidden, repository_version, private, description].hash
|
239
239
|
end
|
240
240
|
|
241
241
|
# Builds the object from hash
|