pulp_container_client 2.25.1 → 2.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/ContainerBlobResponse.md +2 -0
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +12 -12
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
- data/docs/ContainerContainerPullThroughRemoteResponse.md +1 -1
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/ContainerManifestResponse.md +2 -0
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContainerTagResponse.md +2 -0
- data/docs/ContentBlobsApi.md +20 -8
- data/docs/ContentManifestsApi.md +20 -8
- data/docs/ContentSignaturesApi.md +20 -8
- data/docs/ContentTagsApi.md +20 -8
- data/docs/DistributionsContainerApi.md +74 -34
- data/docs/DistributionsPullThroughApi.md +74 -34
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- data/docs/PulpContainerNamespacesApi.md +40 -16
- data/docs/RemotesContainerApi.md +72 -32
- data/docs/RemotesPullThroughApi.md +72 -32
- data/docs/RepositoriesContainerApi.md +138 -64
- data/docs/RepositoriesContainerPushApi.md +80 -36
- data/docs/RepositoriesContainerPushVersionsApi.md +22 -10
- data/docs/RepositoriesContainerVersionsApi.md +22 -10
- data/docs/RepositoryVersionResponse.md +3 -1
- data/docs/TokenApi.md +14 -5
- data/lib/pulp_container_client/api/content_blobs_api.rb +12 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +12 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +12 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +12 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +36 -0
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +36 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +36 -0
- data/lib/pulp_container_client/api/remotes_pull_through_api.rb +36 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +63 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +39 -0
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +15 -3
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +15 -3
- data/lib/pulp_container_client/api/token_api.rb +9 -0
- data/lib/pulp_container_client/models/container_blob_response.rb +10 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +51 -51
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +55 -55
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +51 -51
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +55 -55
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +0 -15
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +0 -15
- data/lib/pulp_container_client/models/container_container_push_repository.rb +17 -32
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +57 -72
- data/lib/pulp_container_client/models/container_container_remote.rb +0 -15
- data/lib/pulp_container_client/models/container_container_remote_response.rb +0 -15
- data/lib/pulp_container_client/models/container_container_repository.rb +0 -15
- data/lib/pulp_container_client/models/container_container_repository_response.rb +0 -15
- data/lib/pulp_container_client/models/container_manifest_response.rb +10 -1
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +10 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +10 -1
- data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +0 -2
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +44 -44
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +44 -44
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +0 -15
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +17 -32
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +0 -15
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +0 -15
- data/lib/pulp_container_client/models/repository_version_response.rb +13 -4
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +4 -0
- data/spec/api/content_manifests_api_spec.rb +4 -0
- data/spec/api/content_signatures_api_spec.rb +4 -0
- data/spec/api/content_tags_api_spec.rb +4 -0
- data/spec/api/distributions_container_api_spec.rb +12 -0
- data/spec/api/distributions_pull_through_api_spec.rb +12 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +8 -0
- data/spec/api/remotes_container_api_spec.rb +12 -0
- data/spec/api/remotes_pull_through_api_spec.rb +12 -0
- data/spec/api/repositories_container_api_spec.rb +21 -0
- data/spec/api/repositories_container_push_api_spec.rb +13 -0
- data/spec/api/repositories_container_push_versions_api_spec.rb +5 -1
- data/spec/api/repositories_container_versions_api_spec.rb +5 -1
- data/spec/api/token_api_spec.rb +3 -0
- data/spec/models/container_blob_response_spec.rb +6 -0
- data/spec/models/container_container_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- data/spec/models/container_container_push_repository_spec.rb +2 -2
- data/spec/models/container_manifest_response_spec.rb +6 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/container_tag_response_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +58 -58
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
@@ -16,10 +16,14 @@ 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
|
-
|
22
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
23
|
+
attr_accessor :name
|
24
|
+
|
25
|
+
# 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
|
+
attr_accessor :no_content_change_since
|
23
27
|
|
24
28
|
# 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
29
|
attr_accessor :pulp_last_updated
|
@@ -27,22 +31,18 @@ module PulpContainerClient
|
|
27
31
|
# The Pulp Resource Name (PRN).
|
28
32
|
attr_accessor :prn
|
29
33
|
|
30
|
-
|
31
|
-
|
32
|
-
# Timestamp of creation.
|
33
|
-
attr_accessor :pulp_created
|
34
|
+
# The latest RepositoryVersion for this Repository will be served.
|
35
|
+
attr_accessor :repository
|
34
36
|
|
35
|
-
|
36
|
-
attr_accessor :no_content_change_since
|
37
|
+
attr_accessor :pulp_labels
|
37
38
|
|
38
39
|
# 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
40
|
attr_accessor :base_path
|
40
41
|
|
41
|
-
|
42
|
-
attr_accessor :repository
|
42
|
+
attr_accessor :pulp_href
|
43
43
|
|
44
|
-
#
|
45
|
-
attr_accessor :
|
44
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
45
|
+
attr_accessor :content_guard
|
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
|
-
:'
|
69
|
-
:'
|
68
|
+
:'pulp_created' => :'pulp_created',
|
69
|
+
:'name' => :'name',
|
70
|
+
:'no_content_change_since' => :'no_content_change_since',
|
70
71
|
:'pulp_last_updated' => :'pulp_last_updated',
|
71
72
|
:'prn' => :'prn',
|
73
|
+
:'repository' => :'repository',
|
72
74
|
:'pulp_labels' => :'pulp_labels',
|
73
|
-
:'pulp_created' => :'pulp_created',
|
74
|
-
:'no_content_change_since' => :'no_content_change_since',
|
75
75
|
:'base_path' => :'base_path',
|
76
|
-
:'
|
77
|
-
:'
|
76
|
+
:'pulp_href' => :'pulp_href',
|
77
|
+
:'content_guard' => :'content_guard',
|
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
|
-
:'
|
96
|
-
:'
|
95
|
+
:'pulp_created' => :'Time',
|
96
|
+
:'name' => :'String',
|
97
|
+
:'no_content_change_since' => :'String',
|
97
98
|
:'pulp_last_updated' => :'Time',
|
98
99
|
:'prn' => :'String',
|
100
|
+
:'repository' => :'String',
|
99
101
|
:'pulp_labels' => :'Hash<String, String>',
|
100
|
-
:'pulp_created' => :'Time',
|
101
|
-
:'no_content_change_since' => :'String',
|
102
102
|
:'base_path' => :'String',
|
103
|
-
:'
|
104
|
-
:'
|
103
|
+
:'pulp_href' => :'String',
|
104
|
+
:'content_guard' => :'String',
|
105
105
|
:'hidden' => :'Boolean',
|
106
106
|
:'remote' => :'String',
|
107
107
|
:'distributions' => :'Array<String>',
|
@@ -134,12 +134,18 @@ module PulpContainerClient
|
|
134
134
|
h[k.to_sym] = v
|
135
135
|
}
|
136
136
|
|
137
|
-
if attributes.key?(:'
|
138
|
-
self.
|
137
|
+
if attributes.key?(:'pulp_created')
|
138
|
+
self.pulp_created = attributes[:'pulp_created']
|
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
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.key?(:'no_content_change_since')
|
148
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
143
149
|
end
|
144
150
|
|
145
151
|
if attributes.key?(:'pulp_last_updated')
|
@@ -150,34 +156,28 @@ module PulpContainerClient
|
|
150
156
|
self.prn = attributes[:'prn']
|
151
157
|
end
|
152
158
|
|
159
|
+
if attributes.key?(:'repository')
|
160
|
+
self.repository = attributes[:'repository']
|
161
|
+
end
|
162
|
+
|
153
163
|
if attributes.key?(:'pulp_labels')
|
154
164
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
155
165
|
self.pulp_labels = value
|
156
166
|
end
|
157
167
|
end
|
158
168
|
|
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
169
|
if attributes.key?(:'base_path')
|
168
170
|
self.base_path = attributes[:'base_path']
|
169
171
|
else
|
170
172
|
self.base_path = nil
|
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.name = nil
|
179
|
+
if attributes.key?(:'content_guard')
|
180
|
+
self.content_guard = attributes[:'content_guard']
|
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
|
-
|
250
|
-
|
249
|
+
pulp_created == o.pulp_created &&
|
250
|
+
name == o.name &&
|
251
|
+
no_content_change_since == o.no_content_change_since &&
|
251
252
|
pulp_last_updated == o.pulp_last_updated &&
|
252
253
|
prn == o.prn &&
|
254
|
+
repository == o.repository &&
|
253
255
|
pulp_labels == o.pulp_labels &&
|
254
|
-
pulp_created == o.pulp_created &&
|
255
|
-
no_content_change_since == o.no_content_change_since &&
|
256
256
|
base_path == o.base_path &&
|
257
|
-
|
258
|
-
|
257
|
+
pulp_href == o.pulp_href &&
|
258
|
+
content_guard == o.content_guard &&
|
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_created, name, no_content_change_since, pulp_last_updated, prn, repository, pulp_labels, base_path, pulp_href, content_guard, 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,7 +16,8 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# Serializer for Container Push Repositories.
|
18
18
|
class ContainerContainerPushRepository
|
19
|
-
|
19
|
+
# An optional description.
|
20
|
+
attr_accessor :description
|
20
21
|
|
21
22
|
# Retain X versions of the repository. Default is null which retains all versions.
|
22
23
|
attr_accessor :retain_repo_versions
|
@@ -24,8 +25,7 @@ module PulpContainerClient
|
|
24
25
|
# A reference to an associated signing service.
|
25
26
|
attr_accessor :manifest_signing_service
|
26
27
|
|
27
|
-
|
28
|
-
attr_accessor :description
|
28
|
+
attr_accessor :pulp_labels
|
29
29
|
|
30
30
|
# A unique name for this repository.
|
31
31
|
attr_accessor :name
|
@@ -33,10 +33,10 @@ module PulpContainerClient
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
-
:'
|
36
|
+
:'description' => :'description',
|
37
37
|
:'retain_repo_versions' => :'retain_repo_versions',
|
38
38
|
:'manifest_signing_service' => :'manifest_signing_service',
|
39
|
-
:'
|
39
|
+
:'pulp_labels' => :'pulp_labels',
|
40
40
|
:'name' => :'name'
|
41
41
|
}
|
42
42
|
end
|
@@ -49,10 +49,10 @@ module PulpContainerClient
|
|
49
49
|
# Attribute type mapping.
|
50
50
|
def self.openapi_types
|
51
51
|
{
|
52
|
-
:'
|
52
|
+
:'description' => :'String',
|
53
53
|
:'retain_repo_versions' => :'Integer',
|
54
54
|
:'manifest_signing_service' => :'String',
|
55
|
-
:'
|
55
|
+
:'pulp_labels' => :'Hash<String, String>',
|
56
56
|
:'name' => :'String'
|
57
57
|
}
|
58
58
|
end
|
@@ -60,9 +60,9 @@ module PulpContainerClient
|
|
60
60
|
# List of attributes with nullable: true
|
61
61
|
def self.openapi_nullable
|
62
62
|
Set.new([
|
63
|
+
:'description',
|
63
64
|
:'retain_repo_versions',
|
64
65
|
:'manifest_signing_service',
|
65
|
-
:'description',
|
66
66
|
])
|
67
67
|
end
|
68
68
|
|
@@ -81,10 +81,8 @@ module PulpContainerClient
|
|
81
81
|
h[k.to_sym] = v
|
82
82
|
}
|
83
83
|
|
84
|
-
if attributes.key?(:'
|
85
|
-
|
86
|
-
self.pulp_labels = value
|
87
|
-
end
|
84
|
+
if attributes.key?(:'description')
|
85
|
+
self.description = attributes[:'description']
|
88
86
|
end
|
89
87
|
|
90
88
|
if attributes.key?(:'retain_repo_versions')
|
@@ -95,8 +93,10 @@ module PulpContainerClient
|
|
95
93
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
96
94
|
end
|
97
95
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
|
96
|
+
if attributes.key?(:'pulp_labels')
|
97
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
98
|
+
self.pulp_labels = value
|
99
|
+
end
|
100
100
|
end
|
101
101
|
|
102
102
|
if attributes.key?(:'name')
|
@@ -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 !@description.nil? && @description.to_s.length < 1
|
119
115
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
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 !@description.nil? && @description.to_s.length < 1
|
139
134
|
return false if @name.nil?
|
140
135
|
return false if @name.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] description Value to be assigned
|
156
141
|
def description=(description)
|
@@ -180,10 +165,10 @@ module PulpContainerClient
|
|
180
165
|
def ==(o)
|
181
166
|
return true if self.equal?(o)
|
182
167
|
self.class == o.class &&
|
183
|
-
|
168
|
+
description == o.description &&
|
184
169
|
retain_repo_versions == o.retain_repo_versions &&
|
185
170
|
manifest_signing_service == o.manifest_signing_service &&
|
186
|
-
|
171
|
+
pulp_labels == o.pulp_labels &&
|
187
172
|
name == o.name
|
188
173
|
end
|
189
174
|
|
@@ -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
|
+
[description, retain_repo_versions, manifest_signing_service, pulp_labels, name].hash
|
200
185
|
end
|
201
186
|
|
202
187
|
# Builds the object from hash
|
@@ -16,49 +16,49 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# Serializer for Container Push Repositories.
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
19
|
-
|
20
|
-
|
21
|
-
# 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.
|
22
|
-
attr_accessor :pulp_last_updated
|
23
|
-
|
24
|
-
# The Pulp Resource Name (PRN).
|
25
|
-
attr_accessor :prn
|
19
|
+
# Timestamp of creation.
|
20
|
+
attr_accessor :pulp_created
|
26
21
|
|
27
|
-
|
22
|
+
# An optional description.
|
23
|
+
attr_accessor :description
|
28
24
|
|
29
25
|
# Retain X versions of the repository. Default is null which retains all versions.
|
30
26
|
attr_accessor :retain_repo_versions
|
31
27
|
|
32
|
-
# Timestamp of
|
33
|
-
attr_accessor :
|
28
|
+
# 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.
|
29
|
+
attr_accessor :pulp_last_updated
|
34
30
|
|
35
31
|
# A reference to an associated signing service.
|
36
32
|
attr_accessor :manifest_signing_service
|
37
33
|
|
38
|
-
|
34
|
+
# The Pulp Resource Name (PRN).
|
35
|
+
attr_accessor :prn
|
39
36
|
|
40
|
-
|
41
|
-
|
37
|
+
attr_accessor :pulp_labels
|
38
|
+
|
39
|
+
attr_accessor :pulp_href
|
40
|
+
|
41
|
+
attr_accessor :versions_href
|
42
42
|
|
43
43
|
# A unique name for this repository.
|
44
44
|
attr_accessor :name
|
45
45
|
|
46
|
-
attr_accessor :
|
46
|
+
attr_accessor :latest_version_href
|
47
47
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
|
-
:'
|
51
|
+
:'pulp_created' => :'pulp_created',
|
52
|
+
:'description' => :'description',
|
53
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
52
54
|
:'pulp_last_updated' => :'pulp_last_updated',
|
55
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
53
56
|
:'prn' => :'prn',
|
54
57
|
:'pulp_labels' => :'pulp_labels',
|
55
|
-
:'
|
56
|
-
:'
|
57
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
58
|
-
:'latest_version_href' => :'latest_version_href',
|
59
|
-
:'description' => :'description',
|
58
|
+
:'pulp_href' => :'pulp_href',
|
59
|
+
:'versions_href' => :'versions_href',
|
60
60
|
:'name' => :'name',
|
61
|
-
:'
|
61
|
+
:'latest_version_href' => :'latest_version_href'
|
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
|
-
:'
|
73
|
+
:'pulp_created' => :'Time',
|
74
|
+
:'description' => :'String',
|
75
|
+
:'retain_repo_versions' => :'Integer',
|
74
76
|
:'pulp_last_updated' => :'Time',
|
77
|
+
:'manifest_signing_service' => :'String',
|
75
78
|
:'prn' => :'String',
|
76
79
|
:'pulp_labels' => :'Hash<String, String>',
|
77
|
-
:'
|
78
|
-
:'
|
79
|
-
:'manifest_signing_service' => :'String',
|
80
|
-
:'latest_version_href' => :'String',
|
81
|
-
:'description' => :'String',
|
80
|
+
:'pulp_href' => :'String',
|
81
|
+
:'versions_href' => :'String',
|
82
82
|
:'name' => :'String',
|
83
|
-
:'
|
83
|
+
:'latest_version_href' => :'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
|
+
:'description',
|
90
91
|
:'retain_repo_versions',
|
91
92
|
:'manifest_signing_service',
|
92
|
-
:'description',
|
93
93
|
])
|
94
94
|
end
|
95
95
|
|
@@ -108,14 +108,26 @@ module PulpContainerClient
|
|
108
108
|
h[k.to_sym] = v
|
109
109
|
}
|
110
110
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
111
|
+
if attributes.key?(:'pulp_created')
|
112
|
+
self.pulp_created = attributes[:'pulp_created']
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.key?(:'description')
|
116
|
+
self.description = attributes[:'description']
|
117
|
+
end
|
118
|
+
|
119
|
+
if attributes.key?(:'retain_repo_versions')
|
120
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
113
121
|
end
|
114
122
|
|
115
123
|
if attributes.key?(:'pulp_last_updated')
|
116
124
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
117
125
|
end
|
118
126
|
|
127
|
+
if attributes.key?(:'manifest_signing_service')
|
128
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
129
|
+
end
|
130
|
+
|
119
131
|
if attributes.key?(:'prn')
|
120
132
|
self.prn = attributes[:'prn']
|
121
133
|
end
|
@@ -126,24 +138,12 @@ module PulpContainerClient
|
|
126
138
|
end
|
127
139
|
end
|
128
140
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
131
|
-
end
|
132
|
-
|
133
|
-
if attributes.key?(:'pulp_created')
|
134
|
-
self.pulp_created = attributes[:'pulp_created']
|
135
|
-
end
|
136
|
-
|
137
|
-
if attributes.key?(:'manifest_signing_service')
|
138
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
139
|
-
end
|
140
|
-
|
141
|
-
if attributes.key?(:'latest_version_href')
|
142
|
-
self.latest_version_href = attributes[:'latest_version_href']
|
141
|
+
if attributes.key?(:'pulp_href')
|
142
|
+
self.pulp_href = attributes[:'pulp_href']
|
143
143
|
end
|
144
144
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
145
|
+
if attributes.key?(:'versions_href')
|
146
|
+
self.versions_href = attributes[:'versions_href']
|
147
147
|
end
|
148
148
|
|
149
149
|
if attributes.key?(:'name')
|
@@ -152,8 +152,8 @@ module PulpContainerClient
|
|
152
152
|
self.name = nil
|
153
153
|
end
|
154
154
|
|
155
|
-
if attributes.key?(:'
|
156
|
-
self.
|
155
|
+
if attributes.key?(:'latest_version_href')
|
156
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
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 &&
|
200
|
-
|
185
|
+
pulp_created == o.pulp_created &&
|
186
|
+
description == o.description &&
|
187
|
+
retain_repo_versions == o.retain_repo_versions &&
|
201
188
|
pulp_last_updated == o.pulp_last_updated &&
|
189
|
+
manifest_signing_service == o.manifest_signing_service &&
|
202
190
|
prn == o.prn &&
|
203
191
|
pulp_labels == o.pulp_labels &&
|
204
|
-
|
205
|
-
|
206
|
-
manifest_signing_service == o.manifest_signing_service &&
|
207
|
-
latest_version_href == o.latest_version_href &&
|
208
|
-
description == o.description &&
|
192
|
+
pulp_href == o.pulp_href &&
|
193
|
+
versions_href == o.versions_href &&
|
209
194
|
name == o.name &&
|
210
|
-
|
195
|
+
latest_version_href == o.latest_version_href
|
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_created, description, retain_repo_versions, pulp_last_updated, manifest_signing_service, prn, pulp_labels, pulp_href, versions_href, name, latest_version_href].hash
|
223
208
|
end
|
224
209
|
|
225
210
|
# Builds the object from hash
|