pulp_container_client 2.25.1 → 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 +4 -4
- data/docs/ContainerContainerDistributionResponse.md +12 -12
- data/docs/ContainerContainerPullThroughDistribution.md +4 -4
- data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
- data/docs/ContainerContainerPullThroughRemoteResponse.md +1 -1
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- 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 +4 -4
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- 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 +47 -47
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +62 -62
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +47 -47
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +62 -62
- 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 +42 -57
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +59 -74
- 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 +40 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +40 -40
- 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 +38 -53
- 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 +4 -4
- 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 +4 -4
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +59 -59
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
@@ -16,33 +16,33 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
18
18
|
class ContainerContainerPullThroughDistributionResponse
|
19
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
20
|
-
attr_accessor :content_guard
|
21
|
-
|
22
|
-
attr_accessor :pulp_href
|
23
|
-
|
24
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.
|
25
20
|
attr_accessor :pulp_last_updated
|
26
21
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
22
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
23
|
+
attr_accessor :name
|
29
24
|
|
30
|
-
|
25
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
26
|
+
attr_accessor :content_guard
|
31
27
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
28
|
+
# The latest RepositoryVersion for this Repository will be served.
|
29
|
+
attr_accessor :repository
|
34
30
|
|
35
|
-
|
36
|
-
attr_accessor :no_content_change_since
|
31
|
+
attr_accessor :pulp_labels
|
37
32
|
|
38
33
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
39
34
|
attr_accessor :base_path
|
40
35
|
|
41
|
-
#
|
42
|
-
attr_accessor :
|
36
|
+
# Timestamp of creation.
|
37
|
+
attr_accessor :pulp_created
|
43
38
|
|
44
|
-
#
|
45
|
-
attr_accessor :
|
39
|
+
# The Pulp Resource Name (PRN).
|
40
|
+
attr_accessor :prn
|
41
|
+
|
42
|
+
attr_accessor :pulp_href
|
43
|
+
|
44
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
45
|
+
attr_accessor :no_content_change_since
|
46
46
|
|
47
47
|
# Whether this distribution should be shown in the content app.
|
48
48
|
attr_accessor :hidden
|
@@ -65,16 +65,16 @@ module PulpContainerClient
|
|
65
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
66
|
def self.attribute_map
|
67
67
|
{
|
68
|
-
:'content_guard' => :'content_guard',
|
69
|
-
:'pulp_href' => :'pulp_href',
|
70
68
|
:'pulp_last_updated' => :'pulp_last_updated',
|
71
|
-
:'
|
69
|
+
:'name' => :'name',
|
70
|
+
:'content_guard' => :'content_guard',
|
71
|
+
:'repository' => :'repository',
|
72
72
|
:'pulp_labels' => :'pulp_labels',
|
73
|
+
:'base_path' => :'base_path',
|
73
74
|
:'pulp_created' => :'pulp_created',
|
75
|
+
:'prn' => :'prn',
|
76
|
+
:'pulp_href' => :'pulp_href',
|
74
77
|
:'no_content_change_since' => :'no_content_change_since',
|
75
|
-
:'base_path' => :'base_path',
|
76
|
-
:'repository' => :'repository',
|
77
|
-
:'name' => :'name',
|
78
78
|
:'hidden' => :'hidden',
|
79
79
|
:'remote' => :'remote',
|
80
80
|
:'distributions' => :'distributions',
|
@@ -92,16 +92,16 @@ module PulpContainerClient
|
|
92
92
|
# Attribute type mapping.
|
93
93
|
def self.openapi_types
|
94
94
|
{
|
95
|
-
:'content_guard' => :'String',
|
96
|
-
:'pulp_href' => :'String',
|
97
95
|
:'pulp_last_updated' => :'Time',
|
98
|
-
:'
|
96
|
+
:'name' => :'String',
|
97
|
+
:'content_guard' => :'String',
|
98
|
+
:'repository' => :'String',
|
99
99
|
:'pulp_labels' => :'Hash<String, String>',
|
100
|
+
:'base_path' => :'String',
|
100
101
|
:'pulp_created' => :'Time',
|
102
|
+
:'prn' => :'String',
|
103
|
+
:'pulp_href' => :'String',
|
101
104
|
:'no_content_change_since' => :'String',
|
102
|
-
:'base_path' => :'String',
|
103
|
-
:'repository' => :'String',
|
104
|
-
:'name' => :'String',
|
105
105
|
:'hidden' => :'Boolean',
|
106
106
|
:'remote' => :'String',
|
107
107
|
:'distributions' => :'Array<String>',
|
@@ -134,20 +134,22 @@ module PulpContainerClient
|
|
134
134
|
h[k.to_sym] = v
|
135
135
|
}
|
136
136
|
|
137
|
-
if attributes.key?(:'
|
138
|
-
self.
|
137
|
+
if attributes.key?(:'pulp_last_updated')
|
138
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
139
139
|
end
|
140
140
|
|
141
|
-
if attributes.key?(:'
|
142
|
-
self.
|
141
|
+
if attributes.key?(:'name')
|
142
|
+
self.name = attributes[:'name']
|
143
|
+
else
|
144
|
+
self.name = nil
|
143
145
|
end
|
144
146
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
147
|
+
if attributes.key?(:'content_guard')
|
148
|
+
self.content_guard = attributes[:'content_guard']
|
147
149
|
end
|
148
150
|
|
149
|
-
if attributes.key?(:'
|
150
|
-
self.
|
151
|
+
if attributes.key?(:'repository')
|
152
|
+
self.repository = attributes[:'repository']
|
151
153
|
end
|
152
154
|
|
153
155
|
if attributes.key?(:'pulp_labels')
|
@@ -156,28 +158,26 @@ module PulpContainerClient
|
|
156
158
|
end
|
157
159
|
end
|
158
160
|
|
159
|
-
if attributes.key?(:'pulp_created')
|
160
|
-
self.pulp_created = attributes[:'pulp_created']
|
161
|
-
end
|
162
|
-
|
163
|
-
if attributes.key?(:'no_content_change_since')
|
164
|
-
self.no_content_change_since = attributes[:'no_content_change_since']
|
165
|
-
end
|
166
|
-
|
167
161
|
if attributes.key?(:'base_path')
|
168
162
|
self.base_path = attributes[:'base_path']
|
169
163
|
else
|
170
164
|
self.base_path = nil
|
171
165
|
end
|
172
166
|
|
173
|
-
if attributes.key?(:'
|
174
|
-
self.
|
167
|
+
if attributes.key?(:'pulp_created')
|
168
|
+
self.pulp_created = attributes[:'pulp_created']
|
175
169
|
end
|
176
170
|
|
177
|
-
if attributes.key?(:'
|
178
|
-
self.
|
179
|
-
|
180
|
-
|
171
|
+
if attributes.key?(:'prn')
|
172
|
+
self.prn = attributes[:'prn']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.key?(:'pulp_href')
|
176
|
+
self.pulp_href = attributes[:'pulp_href']
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes.key?(:'no_content_change_since')
|
180
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
181
181
|
end
|
182
182
|
|
183
183
|
if attributes.key?(:'hidden')
|
@@ -216,14 +216,14 @@ module PulpContainerClient
|
|
216
216
|
def list_invalid_properties
|
217
217
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
218
218
|
invalid_properties = Array.new
|
219
|
-
if @base_path.nil?
|
220
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
221
|
-
end
|
222
|
-
|
223
219
|
if @name.nil?
|
224
220
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
225
221
|
end
|
226
222
|
|
223
|
+
if @base_path.nil?
|
224
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
225
|
+
end
|
226
|
+
|
227
227
|
if @remote.nil?
|
228
228
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
229
229
|
end
|
@@ -235,8 +235,8 @@ module PulpContainerClient
|
|
235
235
|
# @return true if the model is valid
|
236
236
|
def valid?
|
237
237
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
238
|
-
return false if @base_path.nil?
|
239
238
|
return false if @name.nil?
|
239
|
+
return false if @base_path.nil?
|
240
240
|
return false if @remote.nil?
|
241
241
|
true
|
242
242
|
end
|
@@ -246,16 +246,16 @@ module PulpContainerClient
|
|
246
246
|
def ==(o)
|
247
247
|
return true if self.equal?(o)
|
248
248
|
self.class == o.class &&
|
249
|
-
content_guard == o.content_guard &&
|
250
|
-
pulp_href == o.pulp_href &&
|
251
249
|
pulp_last_updated == o.pulp_last_updated &&
|
252
|
-
|
250
|
+
name == o.name &&
|
251
|
+
content_guard == o.content_guard &&
|
252
|
+
repository == o.repository &&
|
253
253
|
pulp_labels == o.pulp_labels &&
|
254
|
+
base_path == o.base_path &&
|
254
255
|
pulp_created == o.pulp_created &&
|
256
|
+
prn == o.prn &&
|
257
|
+
pulp_href == o.pulp_href &&
|
255
258
|
no_content_change_since == o.no_content_change_since &&
|
256
|
-
base_path == o.base_path &&
|
257
|
-
repository == o.repository &&
|
258
|
-
name == o.name &&
|
259
259
|
hidden == o.hidden &&
|
260
260
|
remote == o.remote &&
|
261
261
|
distributions == o.distributions &&
|
@@ -273,7 +273,7 @@ module PulpContainerClient
|
|
273
273
|
# Calculates hash code according to all attributes.
|
274
274
|
# @return [Integer] Hash code
|
275
275
|
def hash
|
276
|
-
[
|
276
|
+
[pulp_last_updated, name, content_guard, repository, pulp_labels, base_path, pulp_created, prn, pulp_href, no_content_change_since, hidden, remote, distributions, namespace, private, description].hash
|
277
277
|
end
|
278
278
|
|
279
279
|
# Builds the object from hash
|
@@ -364,10 +364,6 @@ module PulpContainerClient
|
|
364
364
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
365
365
|
end
|
366
366
|
|
367
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
368
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
369
|
-
end
|
370
|
-
|
371
367
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
372
368
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
373
369
|
end
|
@@ -403,7 +399,6 @@ module PulpContainerClient
|
|
403
399
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
404
400
|
return false if !@username.nil? && @username.to_s.length < 1
|
405
401
|
return false if !@password.nil? && @password.to_s.length < 1
|
406
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
407
402
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
408
403
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
409
404
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -519,16 +514,6 @@ module PulpContainerClient
|
|
519
514
|
@password = password
|
520
515
|
end
|
521
516
|
|
522
|
-
# Custom attribute writer method with validation
|
523
|
-
# @param [Object] download_concurrency Value to be assigned
|
524
|
-
def download_concurrency=(download_concurrency)
|
525
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
526
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
527
|
-
end
|
528
|
-
|
529
|
-
@download_concurrency = download_concurrency
|
530
|
-
end
|
531
|
-
|
532
517
|
# Custom attribute writer method with validation
|
533
518
|
# @param [Object] total_timeout Value to be assigned
|
534
519
|
def total_timeout=(total_timeout)
|
@@ -320,10 +320,6 @@ module PulpContainerClient
|
|
320
320
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
321
321
|
end
|
322
322
|
|
323
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
324
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
325
|
-
end
|
326
|
-
|
327
323
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
328
324
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
329
325
|
end
|
@@ -349,7 +345,6 @@ module PulpContainerClient
|
|
349
345
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
350
346
|
return false if @name.nil?
|
351
347
|
return false if @url.nil?
|
352
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
353
348
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
354
349
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
355
350
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -357,16 +352,6 @@ module PulpContainerClient
|
|
357
352
|
true
|
358
353
|
end
|
359
354
|
|
360
|
-
# Custom attribute writer method with validation
|
361
|
-
# @param [Object] download_concurrency Value to be assigned
|
362
|
-
def download_concurrency=(download_concurrency)
|
363
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
364
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
365
|
-
end
|
366
|
-
|
367
|
-
@download_concurrency = download_concurrency
|
368
|
-
end
|
369
|
-
|
370
355
|
# Custom attribute writer method with validation
|
371
356
|
# @param [Object] total_timeout Value to be assigned
|
372
357
|
def total_timeout=(total_timeout)
|
@@ -16,28 +16,28 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# Serializer for Container Push Repositories.
|
18
18
|
class ContainerContainerPushRepository
|
19
|
-
|
19
|
+
# A unique name for this repository.
|
20
|
+
attr_accessor :name
|
20
21
|
|
21
|
-
|
22
|
-
attr_accessor :retain_repo_versions
|
22
|
+
attr_accessor :pulp_labels
|
23
23
|
|
24
24
|
# A reference to an associated signing service.
|
25
25
|
attr_accessor :manifest_signing_service
|
26
26
|
|
27
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
28
|
+
attr_accessor :retain_repo_versions
|
29
|
+
|
27
30
|
# An optional description.
|
28
31
|
attr_accessor :description
|
29
32
|
|
30
|
-
# A unique name for this repository.
|
31
|
-
attr_accessor :name
|
32
|
-
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
+
:'name' => :'name',
|
36
37
|
:'pulp_labels' => :'pulp_labels',
|
37
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
38
38
|
:'manifest_signing_service' => :'manifest_signing_service',
|
39
|
-
:'
|
40
|
-
:'
|
39
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
40
|
+
:'description' => :'description'
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
@@ -49,20 +49,20 @@ module PulpContainerClient
|
|
49
49
|
# Attribute type mapping.
|
50
50
|
def self.openapi_types
|
51
51
|
{
|
52
|
+
:'name' => :'String',
|
52
53
|
:'pulp_labels' => :'Hash<String, String>',
|
53
|
-
:'retain_repo_versions' => :'Integer',
|
54
54
|
:'manifest_signing_service' => :'String',
|
55
|
-
:'
|
56
|
-
:'
|
55
|
+
:'retain_repo_versions' => :'Integer',
|
56
|
+
:'description' => :'String'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
60
60
|
# List of attributes with nullable: true
|
61
61
|
def self.openapi_nullable
|
62
62
|
Set.new([
|
63
|
-
:'retain_repo_versions',
|
64
63
|
:'manifest_signing_service',
|
65
|
-
:'
|
64
|
+
:'retain_repo_versions',
|
65
|
+
:'description'
|
66
66
|
])
|
67
67
|
end
|
68
68
|
|
@@ -81,28 +81,28 @@ module PulpContainerClient
|
|
81
81
|
h[k.to_sym] = v
|
82
82
|
}
|
83
83
|
|
84
|
+
if attributes.key?(:'name')
|
85
|
+
self.name = attributes[:'name']
|
86
|
+
else
|
87
|
+
self.name = nil
|
88
|
+
end
|
89
|
+
|
84
90
|
if attributes.key?(:'pulp_labels')
|
85
91
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
86
92
|
self.pulp_labels = value
|
87
93
|
end
|
88
94
|
end
|
89
95
|
|
90
|
-
if attributes.key?(:'retain_repo_versions')
|
91
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
92
|
-
end
|
93
|
-
|
94
96
|
if attributes.key?(:'manifest_signing_service')
|
95
97
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
96
98
|
end
|
97
99
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
self.
|
100
|
+
if attributes.key?(:'retain_repo_versions')
|
101
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
100
102
|
end
|
101
103
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
self.
|
104
|
-
else
|
105
|
-
self.name = nil
|
104
|
+
if attributes.key?(:'description')
|
105
|
+
self.description = attributes[:'description']
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
@@ -111,14 +111,6 @@ module PulpContainerClient
|
|
111
111
|
def list_invalid_properties
|
112
112
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
113
113
|
invalid_properties = Array.new
|
114
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
115
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
116
|
-
end
|
117
|
-
|
118
|
-
if !@description.nil? && @description.to_s.length < 1
|
119
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
120
|
-
end
|
121
|
-
|
122
114
|
if @name.nil?
|
123
115
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
124
116
|
end
|
@@ -127,6 +119,10 @@ module PulpContainerClient
|
|
127
119
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
128
120
|
end
|
129
121
|
|
122
|
+
if !@description.nil? && @description.to_s.length < 1
|
123
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
124
|
+
end
|
125
|
+
|
130
126
|
invalid_properties
|
131
127
|
end
|
132
128
|
|
@@ -134,21 +130,24 @@ module PulpContainerClient
|
|
134
130
|
# @return true if the model is valid
|
135
131
|
def valid?
|
136
132
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
137
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
138
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
139
133
|
return false if @name.nil?
|
140
134
|
return false if @name.to_s.length < 1
|
135
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
141
136
|
true
|
142
137
|
end
|
143
138
|
|
144
139
|
# Custom attribute writer method with validation
|
145
|
-
# @param [Object]
|
146
|
-
def
|
147
|
-
if
|
148
|
-
fail ArgumentError, '
|
140
|
+
# @param [Object] name Value to be assigned
|
141
|
+
def name=(name)
|
142
|
+
if name.nil?
|
143
|
+
fail ArgumentError, 'name cannot be nil'
|
149
144
|
end
|
150
145
|
|
151
|
-
|
146
|
+
if name.to_s.length < 1
|
147
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
148
|
+
end
|
149
|
+
|
150
|
+
@name = name
|
152
151
|
end
|
153
152
|
|
154
153
|
# Custom attribute writer method with validation
|
@@ -161,30 +160,16 @@ module PulpContainerClient
|
|
161
160
|
@description = description
|
162
161
|
end
|
163
162
|
|
164
|
-
# Custom attribute writer method with validation
|
165
|
-
# @param [Object] name Value to be assigned
|
166
|
-
def name=(name)
|
167
|
-
if name.nil?
|
168
|
-
fail ArgumentError, 'name cannot be nil'
|
169
|
-
end
|
170
|
-
|
171
|
-
if name.to_s.length < 1
|
172
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
173
|
-
end
|
174
|
-
|
175
|
-
@name = name
|
176
|
-
end
|
177
|
-
|
178
163
|
# Checks equality by comparing each attribute.
|
179
164
|
# @param [Object] Object to be compared
|
180
165
|
def ==(o)
|
181
166
|
return true if self.equal?(o)
|
182
167
|
self.class == o.class &&
|
168
|
+
name == o.name &&
|
183
169
|
pulp_labels == o.pulp_labels &&
|
184
|
-
retain_repo_versions == o.retain_repo_versions &&
|
185
170
|
manifest_signing_service == o.manifest_signing_service &&
|
186
|
-
|
187
|
-
|
171
|
+
retain_repo_versions == o.retain_repo_versions &&
|
172
|
+
description == o.description
|
188
173
|
end
|
189
174
|
|
190
175
|
# @see the `==` method
|
@@ -196,7 +181,7 @@ module PulpContainerClient
|
|
196
181
|
# Calculates hash code according to all attributes.
|
197
182
|
# @return [Integer] Hash code
|
198
183
|
def hash
|
199
|
-
[
|
184
|
+
[name, pulp_labels, manifest_signing_service, retain_repo_versions, description].hash
|
200
185
|
end
|
201
186
|
|
202
187
|
# Builds the object from hash
|