pulp_container_client 2.25.0 → 2.26.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 +5 -4
- data/docs/ContainerBlobResponse.md +2 -0
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionResponse.md +16 -16
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
- data/docs/ContainerContainerPullThroughRemoteResponse.md +1 -1
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
- 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 +72 -32
- data/docs/DistributionsPullThroughApi.md +72 -32
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- 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 +34 -34
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +71 -71
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +34 -34
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +71 -71
- 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 +33 -48
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +66 -81
- 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 +32 -32
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +32 -32
- 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 +31 -46
- 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/pulp_container_client.gemspec +0 -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 +10 -10
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- 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 +4 -4
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +62 -82
@@ -16,49 +16,49 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# Serializer for Container Push Repositories.
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
19
|
-
|
19
|
+
# 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.
|
20
|
+
attr_accessor :pulp_last_updated
|
20
21
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
22
|
+
# A unique name for this repository.
|
23
|
+
attr_accessor :name
|
23
24
|
|
24
|
-
attr_accessor :
|
25
|
+
attr_accessor :latest_version_href
|
26
|
+
|
27
|
+
attr_accessor :pulp_labels
|
25
28
|
|
26
29
|
# Timestamp of creation.
|
27
30
|
attr_accessor :pulp_created
|
28
31
|
|
29
|
-
|
30
|
-
attr_accessor :manifest_signing_service
|
32
|
+
attr_accessor :versions_href
|
31
33
|
|
32
34
|
# The Pulp Resource Name (PRN).
|
33
35
|
attr_accessor :prn
|
34
36
|
|
35
|
-
|
36
|
-
attr_accessor :name
|
37
|
-
|
38
|
-
# An optional description.
|
39
|
-
attr_accessor :description
|
37
|
+
attr_accessor :pulp_href
|
40
38
|
|
41
|
-
#
|
42
|
-
attr_accessor :
|
39
|
+
# A reference to an associated signing service.
|
40
|
+
attr_accessor :manifest_signing_service
|
43
41
|
|
44
|
-
|
42
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
43
|
+
attr_accessor :retain_repo_versions
|
45
44
|
|
46
|
-
|
45
|
+
# An optional description.
|
46
|
+
attr_accessor :description
|
47
47
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
52
|
+
:'name' => :'name',
|
53
|
+
:'latest_version_href' => :'latest_version_href',
|
54
|
+
:'pulp_labels' => :'pulp_labels',
|
55
|
+
:'pulp_created' => :'pulp_created',
|
51
56
|
:'versions_href' => :'versions_href',
|
52
|
-
:'
|
57
|
+
:'prn' => :'prn',
|
53
58
|
:'pulp_href' => :'pulp_href',
|
54
|
-
:'pulp_created' => :'pulp_created',
|
55
59
|
:'manifest_signing_service' => :'manifest_signing_service',
|
56
|
-
:'
|
57
|
-
:'
|
58
|
-
:'description' => :'description',
|
59
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
60
|
-
:'latest_version_href' => :'latest_version_href',
|
61
|
-
:'pulp_labels' => :'pulp_labels'
|
60
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
61
|
+
:'description' => :'description'
|
62
62
|
}
|
63
63
|
end
|
64
64
|
|
@@ -70,26 +70,26 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
+
:'pulp_last_updated' => :'Time',
|
74
|
+
:'name' => :'String',
|
75
|
+
:'latest_version_href' => :'String',
|
76
|
+
:'pulp_labels' => :'Hash<String, String>',
|
77
|
+
:'pulp_created' => :'Time',
|
73
78
|
:'versions_href' => :'String',
|
74
|
-
:'
|
79
|
+
:'prn' => :'String',
|
75
80
|
:'pulp_href' => :'String',
|
76
|
-
:'pulp_created' => :'Time',
|
77
81
|
:'manifest_signing_service' => :'String',
|
78
|
-
:'
|
79
|
-
:'
|
80
|
-
:'description' => :'String',
|
81
|
-
:'pulp_last_updated' => :'Time',
|
82
|
-
:'latest_version_href' => :'String',
|
83
|
-
:'pulp_labels' => :'Hash<String, String>'
|
82
|
+
:'retain_repo_versions' => :'Integer',
|
83
|
+
:'description' => :'String'
|
84
84
|
}
|
85
85
|
end
|
86
86
|
|
87
87
|
# List of attributes with nullable: true
|
88
88
|
def self.openapi_nullable
|
89
89
|
Set.new([
|
90
|
-
:'retain_repo_versions',
|
91
90
|
:'manifest_signing_service',
|
92
|
-
:'
|
91
|
+
:'retain_repo_versions',
|
92
|
+
:'description'
|
93
93
|
])
|
94
94
|
end
|
95
95
|
|
@@ -108,52 +108,52 @@ module PulpContainerClient
|
|
108
108
|
h[k.to_sym] = v
|
109
109
|
}
|
110
110
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
111
|
+
if attributes.key?(:'pulp_last_updated')
|
112
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
113
113
|
end
|
114
114
|
|
115
|
-
if attributes.key?(:'
|
116
|
-
self.
|
115
|
+
if attributes.key?(:'name')
|
116
|
+
self.name = attributes[:'name']
|
117
|
+
else
|
118
|
+
self.name = nil
|
117
119
|
end
|
118
120
|
|
119
|
-
if attributes.key?(:'
|
120
|
-
self.
|
121
|
+
if attributes.key?(:'latest_version_href')
|
122
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'pulp_labels')
|
126
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
127
|
+
self.pulp_labels = value
|
128
|
+
end
|
121
129
|
end
|
122
130
|
|
123
131
|
if attributes.key?(:'pulp_created')
|
124
132
|
self.pulp_created = attributes[:'pulp_created']
|
125
133
|
end
|
126
134
|
|
127
|
-
if attributes.key?(:'
|
128
|
-
self.
|
135
|
+
if attributes.key?(:'versions_href')
|
136
|
+
self.versions_href = attributes[:'versions_href']
|
129
137
|
end
|
130
138
|
|
131
139
|
if attributes.key?(:'prn')
|
132
140
|
self.prn = attributes[:'prn']
|
133
141
|
end
|
134
142
|
|
135
|
-
if attributes.key?(:'
|
136
|
-
self.
|
137
|
-
else
|
138
|
-
self.name = nil
|
139
|
-
end
|
140
|
-
|
141
|
-
if attributes.key?(:'description')
|
142
|
-
self.description = attributes[:'description']
|
143
|
+
if attributes.key?(:'pulp_href')
|
144
|
+
self.pulp_href = attributes[:'pulp_href']
|
143
145
|
end
|
144
146
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
147
|
+
if attributes.key?(:'manifest_signing_service')
|
148
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
147
149
|
end
|
148
150
|
|
149
|
-
if attributes.key?(:'
|
150
|
-
self.
|
151
|
+
if attributes.key?(:'retain_repo_versions')
|
152
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
151
153
|
end
|
152
154
|
|
153
|
-
if attributes.key?(:'
|
154
|
-
|
155
|
-
self.pulp_labels = value
|
156
|
-
end
|
155
|
+
if attributes.key?(:'description')
|
156
|
+
self.description = attributes[:'description']
|
157
157
|
end
|
158
158
|
end
|
159
159
|
|
@@ -162,10 +162,6 @@ module PulpContainerClient
|
|
162
162
|
def list_invalid_properties
|
163
163
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
164
164
|
invalid_properties = Array.new
|
165
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
166
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
167
|
-
end
|
168
|
-
|
169
165
|
if @name.nil?
|
170
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
171
167
|
end
|
@@ -177,37 +173,26 @@ module PulpContainerClient
|
|
177
173
|
# @return true if the model is valid
|
178
174
|
def valid?
|
179
175
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
180
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
181
176
|
return false if @name.nil?
|
182
177
|
true
|
183
178
|
end
|
184
179
|
|
185
|
-
# Custom attribute writer method with validation
|
186
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
187
|
-
def retain_repo_versions=(retain_repo_versions)
|
188
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
189
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
190
|
-
end
|
191
|
-
|
192
|
-
@retain_repo_versions = retain_repo_versions
|
193
|
-
end
|
194
|
-
|
195
180
|
# Checks equality by comparing each attribute.
|
196
181
|
# @param [Object] Object to be compared
|
197
182
|
def ==(o)
|
198
183
|
return true if self.equal?(o)
|
199
184
|
self.class == o.class &&
|
185
|
+
pulp_last_updated == o.pulp_last_updated &&
|
186
|
+
name == o.name &&
|
187
|
+
latest_version_href == o.latest_version_href &&
|
188
|
+
pulp_labels == o.pulp_labels &&
|
189
|
+
pulp_created == o.pulp_created &&
|
200
190
|
versions_href == o.versions_href &&
|
201
|
-
|
191
|
+
prn == o.prn &&
|
202
192
|
pulp_href == o.pulp_href &&
|
203
|
-
pulp_created == o.pulp_created &&
|
204
193
|
manifest_signing_service == o.manifest_signing_service &&
|
205
|
-
|
206
|
-
|
207
|
-
description == o.description &&
|
208
|
-
pulp_last_updated == o.pulp_last_updated &&
|
209
|
-
latest_version_href == o.latest_version_href &&
|
210
|
-
pulp_labels == o.pulp_labels
|
194
|
+
retain_repo_versions == o.retain_repo_versions &&
|
195
|
+
description == o.description
|
211
196
|
end
|
212
197
|
|
213
198
|
# @see the `==` method
|
@@ -219,7 +204,7 @@ module PulpContainerClient
|
|
219
204
|
# Calculates hash code according to all attributes.
|
220
205
|
# @return [Integer] Hash code
|
221
206
|
def hash
|
222
|
-
[
|
207
|
+
[pulp_last_updated, name, latest_version_href, pulp_labels, pulp_created, versions_href, prn, pulp_href, manifest_signing_service, retain_repo_versions, description].hash
|
223
208
|
end
|
224
209
|
|
225
210
|
# Builds the object from hash
|
@@ -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
|