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
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
|
-
# Timestamp
|
20
|
-
attr_accessor :
|
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
|
21
21
|
|
22
|
-
|
22
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
23
|
+
attr_accessor :name
|
23
24
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
25
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
26
|
+
attr_accessor :content_guard
|
26
27
|
|
27
28
|
# The latest RepositoryVersion for this Repository will be served.
|
28
29
|
attr_accessor :repository
|
29
30
|
|
30
|
-
|
31
|
-
attr_accessor :prn
|
31
|
+
attr_accessor :pulp_labels
|
32
32
|
|
33
|
-
#
|
34
|
-
attr_accessor :
|
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\")
|
34
|
+
attr_accessor :base_path
|
35
35
|
|
36
|
-
#
|
37
|
-
attr_accessor :
|
36
|
+
# Timestamp of creation.
|
37
|
+
attr_accessor :pulp_created
|
38
38
|
|
39
|
-
#
|
40
|
-
attr_accessor :
|
39
|
+
# The Pulp Resource Name (PRN).
|
40
|
+
attr_accessor :prn
|
41
41
|
|
42
|
-
|
43
|
-
attr_accessor :pulp_last_updated
|
42
|
+
attr_accessor :pulp_href
|
44
43
|
|
45
|
-
#
|
46
|
-
attr_accessor :
|
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
|
47
46
|
|
48
|
-
|
47
|
+
# Whether this distribution should be shown in the content app.
|
48
|
+
attr_accessor :hidden
|
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
|
-
:'
|
70
|
-
:'
|
68
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
69
|
+
:'name' => :'name',
|
70
|
+
:'content_guard' => :'content_guard',
|
71
71
|
:'repository' => :'repository',
|
72
|
+
:'pulp_labels' => :'pulp_labels',
|
73
|
+
:'base_path' => :'base_path',
|
74
|
+
:'pulp_created' => :'pulp_created',
|
72
75
|
:'prn' => :'prn',
|
73
|
-
:'
|
76
|
+
:'pulp_href' => :'pulp_href',
|
77
|
+
:'no_content_change_since' => :'no_content_change_since',
|
74
78
|
:'hidden' => :'hidden',
|
75
|
-
:'name' => :'name',
|
76
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
77
|
-
:'base_path' => :'base_path',
|
78
|
-
:'pulp_labels' => :'pulp_labels',
|
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
|
-
:'
|
97
|
-
:'
|
95
|
+
:'pulp_last_updated' => :'Time',
|
96
|
+
:'name' => :'String',
|
97
|
+
:'content_guard' => :'String',
|
98
98
|
:'repository' => :'String',
|
99
|
+
:'pulp_labels' => :'Hash<String, String>',
|
100
|
+
:'base_path' => :'String',
|
101
|
+
:'pulp_created' => :'Time',
|
99
102
|
:'prn' => :'String',
|
100
|
-
:'
|
103
|
+
:'pulp_href' => :'String',
|
104
|
+
:'no_content_change_since' => :'String',
|
101
105
|
:'hidden' => :'Boolean',
|
102
|
-
:'name' => :'String',
|
103
|
-
:'pulp_last_updated' => :'Time',
|
104
|
-
:'base_path' => :'String',
|
105
|
-
:'pulp_labels' => :'Hash<String, 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.
|
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
151
|
if attributes.key?(:'repository')
|
150
152
|
self.repository = attributes[:'repository']
|
151
153
|
end
|
152
154
|
|
153
|
-
if attributes.key?(:'
|
154
|
-
|
155
|
+
if attributes.key?(:'pulp_labels')
|
156
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
157
|
+
self.pulp_labels = value
|
158
|
+
end
|
155
159
|
end
|
156
160
|
|
157
|
-
if attributes.key?(:'
|
158
|
-
self.
|
161
|
+
if attributes.key?(:'base_path')
|
162
|
+
self.base_path = attributes[:'base_path']
|
163
|
+
else
|
164
|
+
self.base_path = nil
|
159
165
|
end
|
160
166
|
|
161
|
-
if attributes.key?(:'
|
162
|
-
self.
|
163
|
-
else
|
164
|
-
self.hidden = false
|
167
|
+
if attributes.key?(:'pulp_created')
|
168
|
+
self.pulp_created = attributes[:'pulp_created']
|
165
169
|
end
|
166
170
|
|
167
|
-
if attributes.key?(:'
|
168
|
-
self.
|
169
|
-
else
|
170
|
-
self.name = nil
|
171
|
+
if attributes.key?(:'prn')
|
172
|
+
self.prn = attributes[:'prn']
|
171
173
|
end
|
172
174
|
|
173
|
-
if attributes.key?(:'
|
174
|
-
self.
|
175
|
+
if attributes.key?(:'pulp_href')
|
176
|
+
self.pulp_href = attributes[:'pulp_href']
|
175
177
|
end
|
176
178
|
|
177
|
-
if attributes.key?(:'
|
178
|
-
self.
|
179
|
-
else
|
180
|
-
self.base_path = nil
|
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
|
-
if attributes.key?(:'
|
184
|
-
|
185
|
-
|
186
|
-
|
183
|
+
if attributes.key?(:'hidden')
|
184
|
+
self.hidden = attributes[:'hidden']
|
185
|
+
else
|
186
|
+
self.hidden = false
|
187
187
|
end
|
188
188
|
|
189
189
|
if attributes.key?(:'remote')
|
@@ -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
|
-
|
251
|
-
|
249
|
+
pulp_last_updated == o.pulp_last_updated &&
|
250
|
+
name == o.name &&
|
251
|
+
content_guard == o.content_guard &&
|
252
252
|
repository == o.repository &&
|
253
|
+
pulp_labels == o.pulp_labels &&
|
254
|
+
base_path == o.base_path &&
|
255
|
+
pulp_created == o.pulp_created &&
|
253
256
|
prn == o.prn &&
|
254
|
-
|
257
|
+
pulp_href == o.pulp_href &&
|
258
|
+
no_content_change_since == o.no_content_change_since &&
|
255
259
|
hidden == o.hidden &&
|
256
|
-
name == o.name &&
|
257
|
-
pulp_last_updated == o.pulp_last_updated &&
|
258
|
-
base_path == o.base_path &&
|
259
|
-
pulp_labels == o.pulp_labels &&
|
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_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
|
-
#
|
20
|
-
attr_accessor :
|
19
|
+
# A unique name for this repository.
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
attr_accessor :pulp_labels
|
21
23
|
|
22
24
|
# A reference to an associated signing service.
|
23
25
|
attr_accessor :manifest_signing_service
|
24
26
|
|
25
|
-
#
|
26
|
-
attr_accessor :
|
27
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
28
|
+
attr_accessor :retain_repo_versions
|
27
29
|
|
28
30
|
# An optional description.
|
29
31
|
attr_accessor :description
|
30
32
|
|
31
|
-
attr_accessor :pulp_labels
|
32
|
-
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
37
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
38
36
|
:'name' => :'name',
|
39
|
-
:'
|
40
|
-
:'
|
37
|
+
:'pulp_labels' => :'pulp_labels',
|
38
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
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
|
-
:'retain_repo_versions' => :'Integer',
|
53
|
-
:'manifest_signing_service' => :'String',
|
54
52
|
:'name' => :'String',
|
55
|
-
:'
|
56
|
-
:'
|
53
|
+
:'pulp_labels' => :'Hash<String, String>',
|
54
|
+
:'manifest_signing_service' => :'String',
|
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,29 +81,29 @@ module PulpContainerClient
|
|
81
81
|
h[k.to_sym] = v
|
82
82
|
}
|
83
83
|
|
84
|
-
if attributes.key?(:'retain_repo_versions')
|
85
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
86
|
-
end
|
87
|
-
|
88
|
-
if attributes.key?(:'manifest_signing_service')
|
89
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
90
|
-
end
|
91
|
-
|
92
84
|
if attributes.key?(:'name')
|
93
85
|
self.name = attributes[:'name']
|
94
86
|
else
|
95
87
|
self.name = nil
|
96
88
|
end
|
97
89
|
|
98
|
-
if attributes.key?(:'description')
|
99
|
-
self.description = attributes[:'description']
|
100
|
-
end
|
101
|
-
|
102
90
|
if attributes.key?(:'pulp_labels')
|
103
91
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
104
92
|
self.pulp_labels = value
|
105
93
|
end
|
106
94
|
end
|
95
|
+
|
96
|
+
if attributes.key?(:'manifest_signing_service')
|
97
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'retain_repo_versions')
|
101
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'description')
|
105
|
+
self.description = attributes[:'description']
|
106
|
+
end
|
107
107
|
end
|
108
108
|
|
109
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -111,10 +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
114
|
if @name.nil?
|
119
115
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
120
116
|
end
|
@@ -134,23 +130,12 @@ 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
133
|
return false if @name.nil?
|
139
134
|
return false if @name.to_s.length < 1
|
140
135
|
return false if !@description.nil? && @description.to_s.length < 1
|
141
136
|
true
|
142
137
|
end
|
143
138
|
|
144
|
-
# Custom attribute writer method with validation
|
145
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
146
|
-
def retain_repo_versions=(retain_repo_versions)
|
147
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
148
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
149
|
-
end
|
150
|
-
|
151
|
-
@retain_repo_versions = retain_repo_versions
|
152
|
-
end
|
153
|
-
|
154
139
|
# Custom attribute writer method with validation
|
155
140
|
# @param [Object] name Value to be assigned
|
156
141
|
def name=(name)
|
@@ -180,11 +165,11 @@ module PulpContainerClient
|
|
180
165
|
def ==(o)
|
181
166
|
return true if self.equal?(o)
|
182
167
|
self.class == o.class &&
|
183
|
-
retain_repo_versions == o.retain_repo_versions &&
|
184
|
-
manifest_signing_service == o.manifest_signing_service &&
|
185
168
|
name == o.name &&
|
186
|
-
|
187
|
-
|
169
|
+
pulp_labels == o.pulp_labels &&
|
170
|
+
manifest_signing_service == o.manifest_signing_service &&
|
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
|