pulp_container_client 2.27.1 → 2.27.3
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 +7 -7
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionResponse.md +14 -14
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/ContentBlobsApi.md +6 -6
- data/docs/ContentManifestsApi.md +6 -6
- data/docs/ContentSignaturesApi.md +6 -6
- data/docs/ContentTagsApi.md +6 -6
- data/docs/DistributionsContainerApi.md +6 -6
- data/docs/DistributionsPullThroughApi.md +6 -6
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/docs/RepositoriesContainerApi.md +2 -2
- data/docs/RepositoriesContainerPushApi.md +2 -2
- data/lib/pulp_container_client/api/content_blobs_api.rb +6 -6
- data/lib/pulp_container_client/api/content_manifests_api.rb +6 -6
- data/lib/pulp_container_client/api/content_signatures_api.rb +6 -6
- data/lib/pulp_container_client/api/content_tags_api.rb +6 -6
- data/lib/pulp_container_client/api/distributions_container_api.rb +4 -4
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -4
- data/lib/pulp_container_client/api/repositories_container_api.rb +2 -2
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +2 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +64 -64
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +70 -70
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +64 -64
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +70 -70
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +15 -0
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +15 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -27
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +79 -64
- data/lib/pulp_container_client/models/container_container_remote.rb +15 -0
- data/lib/pulp_container_client/models/container_container_remote_response.rb +15 -0
- data/lib/pulp_container_client/models/container_container_repository.rb +15 -0
- data/lib/pulp_container_client/models/container_container_repository_response.rb +15 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +58 -58
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +58 -58
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +15 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +40 -25
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +15 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +15 -0
- data/lib/pulp_container_client/models/set_label.rb +0 -11
- data/lib/pulp_container_client/models/set_label_response.rb +0 -21
- data/lib/pulp_container_client/models/unset_label.rb +0 -11
- data/lib/pulp_container_client/models/unset_label_response.rb +0 -21
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +3 -3
- data/spec/api/content_manifests_api_spec.rb +3 -3
- data/spec/api/content_signatures_api_spec.rb +3 -3
- data/spec/api/content_tags_api_spec.rb +3 -3
- data/spec/api/distributions_container_api_spec.rb +2 -2
- data/spec/api/distributions_pull_through_api_spec.rb +2 -2
- data/spec/api/repositories_container_api_spec.rb +1 -1
- data/spec/api/repositories_container_push_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- 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/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +59 -59
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
|
@@ -16,36 +16,36 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class ContainerContainerPullThroughDistributionResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# Timestamp of creation.
|
|
20
|
+
attr_accessor :pulp_created
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
attr_accessor :content_guard
|
|
22
|
+
attr_accessor :pulp_labels
|
|
24
23
|
|
|
25
24
|
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
26
25
|
attr_accessor :no_content_change_since
|
|
27
26
|
|
|
27
|
+
# Whether this distribution should be shown in the content app.
|
|
28
|
+
attr_accessor :hidden
|
|
29
|
+
|
|
28
30
|
# The Pulp Resource Name (PRN).
|
|
29
31
|
attr_accessor :prn
|
|
30
32
|
|
|
31
|
-
#
|
|
32
|
-
attr_accessor :
|
|
33
|
+
# 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.
|
|
34
|
+
attr_accessor :pulp_last_updated
|
|
35
|
+
|
|
36
|
+
attr_accessor :pulp_href
|
|
33
37
|
|
|
34
38
|
# The latest RepositoryVersion for this Repository will be served.
|
|
35
39
|
attr_accessor :repository
|
|
36
40
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
# 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.
|
|
40
|
-
attr_accessor :pulp_last_updated
|
|
41
|
-
|
|
42
|
-
# Timestamp of creation.
|
|
43
|
-
attr_accessor :pulp_created
|
|
41
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
42
|
+
attr_accessor :base_path
|
|
44
43
|
|
|
45
|
-
#
|
|
46
|
-
attr_accessor :
|
|
44
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
45
|
+
attr_accessor :name
|
|
47
46
|
|
|
48
|
-
|
|
47
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
48
|
+
attr_accessor :content_guard
|
|
49
49
|
|
|
50
50
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
51
51
|
attr_accessor :remote
|
|
@@ -65,17 +65,17 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
66
66
|
def self.attribute_map
|
|
67
67
|
{
|
|
68
|
-
:'
|
|
69
|
-
:'
|
|
68
|
+
:'pulp_created' => :'pulp_created',
|
|
69
|
+
:'pulp_labels' => :'pulp_labels',
|
|
70
70
|
:'no_content_change_since' => :'no_content_change_since',
|
|
71
|
+
:'hidden' => :'hidden',
|
|
71
72
|
:'prn' => :'prn',
|
|
72
|
-
:'base_path' => :'base_path',
|
|
73
|
-
:'repository' => :'repository',
|
|
74
|
-
:'pulp_labels' => :'pulp_labels',
|
|
75
73
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
76
|
-
:'pulp_created' => :'pulp_created',
|
|
77
|
-
:'hidden' => :'hidden',
|
|
78
74
|
:'pulp_href' => :'pulp_href',
|
|
75
|
+
:'repository' => :'repository',
|
|
76
|
+
:'base_path' => :'base_path',
|
|
77
|
+
:'name' => :'name',
|
|
78
|
+
:'content_guard' => :'content_guard',
|
|
79
79
|
:'remote' => :'remote',
|
|
80
80
|
:'distributions' => :'distributions',
|
|
81
81
|
:'namespace' => :'namespace',
|
|
@@ -92,17 +92,17 @@ module PulpContainerClient
|
|
|
92
92
|
# Attribute type mapping.
|
|
93
93
|
def self.openapi_types
|
|
94
94
|
{
|
|
95
|
-
:'
|
|
96
|
-
:'
|
|
95
|
+
:'pulp_created' => :'Time',
|
|
96
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
97
97
|
:'no_content_change_since' => :'String',
|
|
98
|
+
:'hidden' => :'Boolean',
|
|
98
99
|
:'prn' => :'String',
|
|
99
|
-
:'base_path' => :'String',
|
|
100
|
-
:'repository' => :'String',
|
|
101
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
102
100
|
:'pulp_last_updated' => :'Time',
|
|
103
|
-
:'pulp_created' => :'Time',
|
|
104
|
-
:'hidden' => :'Boolean',
|
|
105
101
|
:'pulp_href' => :'String',
|
|
102
|
+
:'repository' => :'String',
|
|
103
|
+
:'base_path' => :'String',
|
|
104
|
+
:'name' => :'String',
|
|
105
|
+
:'content_guard' => :'String',
|
|
106
106
|
:'remote' => :'String',
|
|
107
107
|
:'distributions' => :'Array<String>',
|
|
108
108
|
:'namespace' => :'String',
|
|
@@ -134,56 +134,56 @@ module PulpContainerClient
|
|
|
134
134
|
h[k.to_sym] = v
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
if attributes.key?(:'
|
|
138
|
-
self.
|
|
139
|
-
else
|
|
140
|
-
self.name = nil
|
|
137
|
+
if attributes.key?(:'pulp_created')
|
|
138
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
141
139
|
end
|
|
142
140
|
|
|
143
|
-
if attributes.key?(:'
|
|
144
|
-
|
|
141
|
+
if attributes.key?(:'pulp_labels')
|
|
142
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
143
|
+
self.pulp_labels = value
|
|
144
|
+
end
|
|
145
145
|
end
|
|
146
146
|
|
|
147
147
|
if attributes.key?(:'no_content_change_since')
|
|
148
148
|
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
149
149
|
end
|
|
150
150
|
|
|
151
|
-
if attributes.key?(:'
|
|
152
|
-
self.
|
|
151
|
+
if attributes.key?(:'hidden')
|
|
152
|
+
self.hidden = attributes[:'hidden']
|
|
153
|
+
else
|
|
154
|
+
self.hidden = false
|
|
153
155
|
end
|
|
154
156
|
|
|
155
|
-
if attributes.key?(:'
|
|
156
|
-
self.
|
|
157
|
-
else
|
|
158
|
-
self.base_path = nil
|
|
157
|
+
if attributes.key?(:'prn')
|
|
158
|
+
self.prn = attributes[:'prn']
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
-
if attributes.key?(:'
|
|
162
|
-
self.
|
|
161
|
+
if attributes.key?(:'pulp_last_updated')
|
|
162
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
163
163
|
end
|
|
164
164
|
|
|
165
|
-
if attributes.key?(:'
|
|
166
|
-
|
|
167
|
-
self.pulp_labels = value
|
|
168
|
-
end
|
|
165
|
+
if attributes.key?(:'pulp_href')
|
|
166
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
169
167
|
end
|
|
170
168
|
|
|
171
|
-
if attributes.key?(:'
|
|
172
|
-
self.
|
|
169
|
+
if attributes.key?(:'repository')
|
|
170
|
+
self.repository = attributes[:'repository']
|
|
173
171
|
end
|
|
174
172
|
|
|
175
|
-
if attributes.key?(:'
|
|
176
|
-
self.
|
|
173
|
+
if attributes.key?(:'base_path')
|
|
174
|
+
self.base_path = attributes[:'base_path']
|
|
175
|
+
else
|
|
176
|
+
self.base_path = nil
|
|
177
177
|
end
|
|
178
178
|
|
|
179
|
-
if attributes.key?(:'
|
|
180
|
-
self.
|
|
179
|
+
if attributes.key?(:'name')
|
|
180
|
+
self.name = attributes[:'name']
|
|
181
181
|
else
|
|
182
|
-
self.
|
|
182
|
+
self.name = nil
|
|
183
183
|
end
|
|
184
184
|
|
|
185
|
-
if attributes.key?(:'
|
|
186
|
-
self.
|
|
185
|
+
if attributes.key?(:'content_guard')
|
|
186
|
+
self.content_guard = attributes[:'content_guard']
|
|
187
187
|
end
|
|
188
188
|
|
|
189
189
|
if attributes.key?(:'remote')
|
|
@@ -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 @name.nil?
|
|
220
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
221
|
-
end
|
|
222
|
-
|
|
223
219
|
if @base_path.nil?
|
|
224
220
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
225
221
|
end
|
|
226
222
|
|
|
223
|
+
if @name.nil?
|
|
224
|
+
invalid_properties.push('invalid value for "name", name 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 @name.nil?
|
|
239
238
|
return false if @base_path.nil?
|
|
239
|
+
return false if @name.nil?
|
|
240
240
|
return false if @remote.nil?
|
|
241
241
|
true
|
|
242
242
|
end
|
|
@@ -246,17 +246,17 @@ module PulpContainerClient
|
|
|
246
246
|
def ==(o)
|
|
247
247
|
return true if self.equal?(o)
|
|
248
248
|
self.class == o.class &&
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
pulp_created == o.pulp_created &&
|
|
250
|
+
pulp_labels == o.pulp_labels &&
|
|
251
251
|
no_content_change_since == o.no_content_change_since &&
|
|
252
|
+
hidden == o.hidden &&
|
|
252
253
|
prn == o.prn &&
|
|
253
|
-
base_path == o.base_path &&
|
|
254
|
-
repository == o.repository &&
|
|
255
|
-
pulp_labels == o.pulp_labels &&
|
|
256
254
|
pulp_last_updated == o.pulp_last_updated &&
|
|
257
|
-
pulp_created == o.pulp_created &&
|
|
258
|
-
hidden == o.hidden &&
|
|
259
255
|
pulp_href == o.pulp_href &&
|
|
256
|
+
repository == o.repository &&
|
|
257
|
+
base_path == o.base_path &&
|
|
258
|
+
name == o.name &&
|
|
259
|
+
content_guard == o.content_guard &&
|
|
260
260
|
remote == o.remote &&
|
|
261
261
|
distributions == o.distributions &&
|
|
262
262
|
namespace == o.namespace &&
|
|
@@ -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_created, pulp_labels, no_content_change_since, hidden, prn, pulp_last_updated, pulp_href, repository, base_path, name, content_guard, remote, distributions, namespace, private, description].hash
|
|
277
277
|
end
|
|
278
278
|
|
|
279
279
|
# Builds the object from hash
|
|
@@ -380,6 +380,10 @@ module PulpContainerClient
|
|
|
380
380
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
381
381
|
end
|
|
382
382
|
|
|
383
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
384
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
385
|
+
end
|
|
386
|
+
|
|
383
387
|
invalid_properties
|
|
384
388
|
end
|
|
385
389
|
|
|
@@ -403,6 +407,7 @@ module PulpContainerClient
|
|
|
403
407
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
404
408
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
405
409
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
410
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
406
411
|
true
|
|
407
412
|
end
|
|
408
413
|
|
|
@@ -554,6 +559,16 @@ module PulpContainerClient
|
|
|
554
559
|
@sock_read_timeout = sock_read_timeout
|
|
555
560
|
end
|
|
556
561
|
|
|
562
|
+
# Custom attribute writer method with validation
|
|
563
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
564
|
+
def download_concurrency=(download_concurrency)
|
|
565
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
566
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
@download_concurrency = download_concurrency
|
|
570
|
+
end
|
|
571
|
+
|
|
557
572
|
# Checks equality by comparing each attribute.
|
|
558
573
|
# @param [Object] Object to be compared
|
|
559
574
|
def ==(o)
|
|
@@ -336,6 +336,10 @@ module PulpContainerClient
|
|
|
336
336
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
337
337
|
end
|
|
338
338
|
|
|
339
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
340
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
341
|
+
end
|
|
342
|
+
|
|
339
343
|
invalid_properties
|
|
340
344
|
end
|
|
341
345
|
|
|
@@ -349,6 +353,7 @@ module PulpContainerClient
|
|
|
349
353
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
350
354
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
351
355
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
356
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
352
357
|
true
|
|
353
358
|
end
|
|
354
359
|
|
|
@@ -392,6 +397,16 @@ module PulpContainerClient
|
|
|
392
397
|
@sock_read_timeout = sock_read_timeout
|
|
393
398
|
end
|
|
394
399
|
|
|
400
|
+
# Custom attribute writer method with validation
|
|
401
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
402
|
+
def download_concurrency=(download_concurrency)
|
|
403
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
404
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
@download_concurrency = download_concurrency
|
|
408
|
+
end
|
|
409
|
+
|
|
395
410
|
# Checks equality by comparing each attribute.
|
|
396
411
|
# @param [Object] Object to be compared
|
|
397
412
|
def ==(o)
|
|
@@ -16,28 +16,28 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepository
|
|
19
|
+
attr_accessor :pulp_labels
|
|
20
|
+
|
|
21
|
+
# A reference to an associated signing service.
|
|
22
|
+
attr_accessor :manifest_signing_service
|
|
23
|
+
|
|
19
24
|
# A unique name for this repository.
|
|
20
25
|
attr_accessor :name
|
|
21
26
|
|
|
22
|
-
attr_accessor :pulp_labels
|
|
23
|
-
|
|
24
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
25
28
|
attr_accessor :retain_repo_versions
|
|
26
29
|
|
|
27
30
|
# An optional description.
|
|
28
31
|
attr_accessor :description
|
|
29
32
|
|
|
30
|
-
# A reference to an associated signing service.
|
|
31
|
-
attr_accessor :manifest_signing_service
|
|
32
|
-
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
34
|
def self.attribute_map
|
|
35
35
|
{
|
|
36
|
-
:'name' => :'name',
|
|
37
36
|
:'pulp_labels' => :'pulp_labels',
|
|
37
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
38
|
+
:'name' => :'name',
|
|
38
39
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
39
|
-
:'description' => :'description'
|
|
40
|
-
:'manifest_signing_service' => :'manifest_signing_service'
|
|
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',
|
|
53
52
|
:'pulp_labels' => :'Hash<String, String>',
|
|
53
|
+
:'manifest_signing_service' => :'String',
|
|
54
|
+
:'name' => :'String',
|
|
54
55
|
:'retain_repo_versions' => :'Integer',
|
|
55
|
-
:'description' => :'String'
|
|
56
|
-
:'manifest_signing_service' => :'String'
|
|
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
|
+
:'manifest_signing_service',
|
|
63
64
|
:'retain_repo_versions',
|
|
64
|
-
:'description'
|
|
65
|
-
:'manifest_signing_service'
|
|
65
|
+
:'description'
|
|
66
66
|
])
|
|
67
67
|
end
|
|
68
68
|
|
|
@@ -81,18 +81,22 @@ 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
|
-
|
|
90
84
|
if attributes.key?(:'pulp_labels')
|
|
91
85
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
92
86
|
self.pulp_labels = value
|
|
93
87
|
end
|
|
94
88
|
end
|
|
95
89
|
|
|
90
|
+
if attributes.key?(:'manifest_signing_service')
|
|
91
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'name')
|
|
95
|
+
self.name = attributes[:'name']
|
|
96
|
+
else
|
|
97
|
+
self.name = nil
|
|
98
|
+
end
|
|
99
|
+
|
|
96
100
|
if attributes.key?(:'retain_repo_versions')
|
|
97
101
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
98
102
|
end
|
|
@@ -100,10 +104,6 @@ module PulpContainerClient
|
|
|
100
104
|
if attributes.key?(:'description')
|
|
101
105
|
self.description = attributes[:'description']
|
|
102
106
|
end
|
|
103
|
-
|
|
104
|
-
if attributes.key?(:'manifest_signing_service')
|
|
105
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
106
|
-
end
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -119,6 +119,10 @@ module PulpContainerClient
|
|
|
119
119
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
120
120
|
end
|
|
121
121
|
|
|
122
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
123
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
124
|
+
end
|
|
125
|
+
|
|
122
126
|
if !@description.nil? && @description.to_s.length < 1
|
|
123
127
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
124
128
|
end
|
|
@@ -132,6 +136,7 @@ module PulpContainerClient
|
|
|
132
136
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
133
137
|
return false if @name.nil?
|
|
134
138
|
return false if @name.to_s.length < 1
|
|
139
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
135
140
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
136
141
|
true
|
|
137
142
|
end
|
|
@@ -150,6 +155,16 @@ module PulpContainerClient
|
|
|
150
155
|
@name = name
|
|
151
156
|
end
|
|
152
157
|
|
|
158
|
+
# Custom attribute writer method with validation
|
|
159
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
160
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
161
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
162
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
@retain_repo_versions = retain_repo_versions
|
|
166
|
+
end
|
|
167
|
+
|
|
153
168
|
# Custom attribute writer method with validation
|
|
154
169
|
# @param [Object] description Value to be assigned
|
|
155
170
|
def description=(description)
|
|
@@ -165,11 +180,11 @@ module PulpContainerClient
|
|
|
165
180
|
def ==(o)
|
|
166
181
|
return true if self.equal?(o)
|
|
167
182
|
self.class == o.class &&
|
|
168
|
-
name == o.name &&
|
|
169
183
|
pulp_labels == o.pulp_labels &&
|
|
184
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
185
|
+
name == o.name &&
|
|
170
186
|
retain_repo_versions == o.retain_repo_versions &&
|
|
171
|
-
description == o.description
|
|
172
|
-
manifest_signing_service == o.manifest_signing_service
|
|
187
|
+
description == o.description
|
|
173
188
|
end
|
|
174
189
|
|
|
175
190
|
# @see the `==` method
|
|
@@ -181,7 +196,7 @@ module PulpContainerClient
|
|
|
181
196
|
# Calculates hash code according to all attributes.
|
|
182
197
|
# @return [Integer] Hash code
|
|
183
198
|
def hash
|
|
184
|
-
[
|
|
199
|
+
[pulp_labels, manifest_signing_service, name, retain_repo_versions, description].hash
|
|
185
200
|
end
|
|
186
201
|
|
|
187
202
|
# Builds the object from hash
|