pulp_docker_client 4.0.0b7 → 4.0.0b8.dev01573482113
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.
Potentially problematic release.
This version of pulp_docker_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +24 -16
- data/docs/ContentBlobsApi.md +8 -58
- data/docs/ContentManifestsApi.md +8 -58
- data/docs/ContentTagsApi.md +8 -58
- data/docs/DistributionsDockerApi.md +14 -10
- data/docs/{Blob.md → DockerBlob.md} +5 -9
- data/docs/{DockerDistribution.md → DockerDockerDistribution.md} +11 -11
- data/docs/{DockerRemote.md → DockerDockerRemote.md} +8 -14
- data/docs/{Manifest.md → DockerManifest.md} +5 -9
- data/docs/{Tag.md → DockerTag.md} +5 -9
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/RemotesDockerApi.md +28 -24
- data/lib/pulp_docker_client/api/content_blobs_api.rb +10 -68
- data/lib/pulp_docker_client/api/content_manifests_api.rb +10 -68
- data/lib/pulp_docker_client/api/content_tags_api.rb +10 -68
- data/lib/pulp_docker_client/api/distributions_docker_api.rb +16 -10
- data/lib/pulp_docker_client/api/docker_copy_api.rb +1 -1
- data/lib/pulp_docker_client/api/docker_recursive_add_api.rb +1 -1
- data/lib/pulp_docker_client/api/docker_recursive_remove_api.rb +1 -1
- data/lib/pulp_docker_client/api/docker_tag_api.rb +1 -1
- data/lib/pulp_docker_client/api/docker_untag_api.rb +1 -1
- data/lib/pulp_docker_client/api/remotes_docker_api.rb +37 -31
- data/lib/pulp_docker_client/api_client.rb +1 -1
- data/lib/pulp_docker_client/api_error.rb +1 -1
- data/lib/pulp_docker_client/configuration.rb +1 -1
- data/lib/pulp_docker_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_docker_client/models/{blob.rb → docker_blob.rb} +28 -76
- data/lib/pulp_docker_client/models/{docker_distribution.rb → docker_docker_distribution.rb} +52 -39
- data/lib/pulp_docker_client/models/{docker_remote.rb → docker_docker_remote.rb} +44 -116
- data/lib/pulp_docker_client/models/{manifest.rb → docker_manifest.rb} +28 -76
- data/lib/pulp_docker_client/models/{tag.rb → docker_tag.rb} +28 -76
- data/lib/pulp_docker_client/models/inline_response200.rb +15 -3
- data/lib/pulp_docker_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_docker_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_docker_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_docker_client/models/inline_response2004.rb +15 -3
- data/lib/pulp_docker_client/models/manifest_copy.rb +12 -2
- data/lib/pulp_docker_client/models/recursive_manage.rb +12 -2
- data/lib/pulp_docker_client/models/repository_sync_url.rb +12 -2
- data/lib/pulp_docker_client/models/tag_copy.rb +12 -2
- data/lib/pulp_docker_client/models/tag_image.rb +12 -2
- data/lib/pulp_docker_client/models/un_tag_image.rb +12 -2
- data/lib/pulp_docker_client/version.rb +2 -2
- data/lib/pulp_docker_client.rb +6 -6
- data/pulp_docker_client.gemspec +1 -1
- data/spec/api/content_blobs_api_spec.rb +4 -14
- data/spec/api/content_manifests_api_spec.rb +4 -14
- data/spec/api/content_tags_api_spec.rb +4 -14
- data/spec/api/distributions_docker_api_spec.rb +4 -2
- data/spec/api/docker_copy_api_spec.rb +1 -1
- data/spec/api/docker_recursive_add_api_spec.rb +1 -1
- data/spec/api/docker_recursive_remove_api_spec.rb +1 -1
- data/spec/api/docker_tag_api_spec.rb +1 -1
- data/spec/api/docker_untag_api_spec.rb +1 -1
- data/spec/api/remotes_docker_api_spec.rb +11 -9
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/{blob_spec.rb → docker_blob_spec.rb} +9 -21
- data/spec/models/{docker_distribution_spec.rb → docker_docker_distribution_spec.rb} +14 -14
- data/spec/models/{docker_remote_spec.rb → docker_docker_remote_spec.rb} +10 -28
- data/spec/models/{manifest_spec.rb → docker_manifest_spec.rb} +9 -21
- data/spec/models/{tag_spec.rb → docker_tag_spec.rb} +9 -21
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/manifest_copy_spec.rb +1 -1
- data/spec/models/recursive_manage_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/tag_copy_spec.rb +1 -1
- data/spec/models/tag_image_spec.rb +1 -1
- data/spec/models/un_tag_image_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +22 -22
@@ -6,20 +6,18 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.1
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpDockerClient
|
16
|
-
class
|
17
|
-
attr_accessor :
|
16
|
+
class DockerDockerRemote
|
17
|
+
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
20
|
-
attr_accessor :
|
21
|
-
|
22
|
-
attr_accessor :_type
|
20
|
+
attr_accessor :pulp_created
|
23
21
|
|
24
22
|
# A unique name for this remote.
|
25
23
|
attr_accessor :name
|
@@ -42,14 +40,8 @@ module PulpDockerClient
|
|
42
40
|
# The proxy URL. Format: scheme://user:password@host:port
|
43
41
|
attr_accessor :proxy_url
|
44
42
|
|
45
|
-
# The username to be used for authentication when syncing.
|
46
|
-
attr_accessor :username
|
47
|
-
|
48
|
-
# The password to be used for authentication when syncing.
|
49
|
-
attr_accessor :password
|
50
|
-
|
51
43
|
# Timestamp of the most recent update of the remote.
|
52
|
-
attr_accessor :
|
44
|
+
attr_accessor :pulp_last_updated
|
53
45
|
|
54
46
|
# Total number of simultaneous connections.
|
55
47
|
attr_accessor :download_concurrency
|
@@ -60,7 +52,7 @@ module PulpDockerClient
|
|
60
52
|
# Name of the upstream repository
|
61
53
|
attr_accessor :upstream_name
|
62
54
|
|
63
|
-
# A
|
55
|
+
# A list of whitelisted tags to sync
|
64
56
|
attr_accessor :whitelist_tags
|
65
57
|
|
66
58
|
class EnumAttributeValidator
|
@@ -88,9 +80,8 @@ module PulpDockerClient
|
|
88
80
|
# Attribute mapping from ruby-style variable name to JSON key.
|
89
81
|
def self.attribute_map
|
90
82
|
{
|
91
|
-
:'
|
92
|
-
:'
|
93
|
-
:'_type' => :'_type',
|
83
|
+
:'pulp_href' => :'pulp_href',
|
84
|
+
:'pulp_created' => :'pulp_created',
|
94
85
|
:'name' => :'name',
|
95
86
|
:'url' => :'url',
|
96
87
|
:'ssl_ca_certificate' => :'ssl_ca_certificate',
|
@@ -98,9 +89,7 @@ module PulpDockerClient
|
|
98
89
|
:'ssl_client_key' => :'ssl_client_key',
|
99
90
|
:'ssl_validation' => :'ssl_validation',
|
100
91
|
:'proxy_url' => :'proxy_url',
|
101
|
-
:'
|
102
|
-
:'password' => :'password',
|
103
|
-
:'_last_updated' => :'_last_updated',
|
92
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
104
93
|
:'download_concurrency' => :'download_concurrency',
|
105
94
|
:'policy' => :'policy',
|
106
95
|
:'upstream_name' => :'upstream_name',
|
@@ -111,9 +100,8 @@ module PulpDockerClient
|
|
111
100
|
# Attribute type mapping.
|
112
101
|
def self.openapi_types
|
113
102
|
{
|
114
|
-
:'
|
115
|
-
:'
|
116
|
-
:'_type' => :'String',
|
103
|
+
:'pulp_href' => :'String',
|
104
|
+
:'pulp_created' => :'DateTime',
|
117
105
|
:'name' => :'String',
|
118
106
|
:'url' => :'String',
|
119
107
|
:'ssl_ca_certificate' => :'String',
|
@@ -121,41 +109,46 @@ module PulpDockerClient
|
|
121
109
|
:'ssl_client_key' => :'String',
|
122
110
|
:'ssl_validation' => :'Boolean',
|
123
111
|
:'proxy_url' => :'String',
|
124
|
-
:'
|
125
|
-
:'password' => :'String',
|
126
|
-
:'_last_updated' => :'DateTime',
|
112
|
+
:'pulp_last_updated' => :'DateTime',
|
127
113
|
:'download_concurrency' => :'Integer',
|
128
114
|
:'policy' => :'String',
|
129
115
|
:'upstream_name' => :'String',
|
130
|
-
:'whitelist_tags' => :'String'
|
116
|
+
:'whitelist_tags' => :'Array<String>'
|
131
117
|
}
|
132
118
|
end
|
133
119
|
|
120
|
+
# List of attributes with nullable: true
|
121
|
+
def self.openapi_nullable
|
122
|
+
Set.new([
|
123
|
+
:'ssl_ca_certificate',
|
124
|
+
:'ssl_client_certificate',
|
125
|
+
:'ssl_client_key',
|
126
|
+
:'proxy_url',
|
127
|
+
:'whitelist_tags'
|
128
|
+
])
|
129
|
+
end
|
130
|
+
|
134
131
|
# Initializes the object
|
135
132
|
# @param [Hash] attributes Model attributes in the form of hash
|
136
133
|
def initialize(attributes = {})
|
137
134
|
if (!attributes.is_a?(Hash))
|
138
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDockerClient::
|
135
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDockerClient::DockerDockerRemote` initialize method"
|
139
136
|
end
|
140
137
|
|
141
138
|
# check to see if the attribute exists and convert string to symbol for hash key
|
142
139
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
143
140
|
if (!self.class.attribute_map.key?(k.to_sym))
|
144
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDockerClient::
|
141
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDockerClient::DockerDockerRemote`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
145
142
|
end
|
146
143
|
h[k.to_sym] = v
|
147
144
|
}
|
148
145
|
|
149
|
-
if attributes.key?(:'
|
150
|
-
self.
|
146
|
+
if attributes.key?(:'pulp_href')
|
147
|
+
self.pulp_href = attributes[:'pulp_href']
|
151
148
|
end
|
152
149
|
|
153
|
-
if attributes.key?(:'
|
154
|
-
self.
|
155
|
-
end
|
156
|
-
|
157
|
-
if attributes.key?(:'_type')
|
158
|
-
self._type = attributes[:'_type']
|
150
|
+
if attributes.key?(:'pulp_created')
|
151
|
+
self.pulp_created = attributes[:'pulp_created']
|
159
152
|
end
|
160
153
|
|
161
154
|
if attributes.key?(:'name')
|
@@ -186,16 +179,8 @@ module PulpDockerClient
|
|
186
179
|
self.proxy_url = attributes[:'proxy_url']
|
187
180
|
end
|
188
181
|
|
189
|
-
if attributes.key?(:'
|
190
|
-
self.
|
191
|
-
end
|
192
|
-
|
193
|
-
if attributes.key?(:'password')
|
194
|
-
self.password = attributes[:'password']
|
195
|
-
end
|
196
|
-
|
197
|
-
if attributes.key?(:'_last_updated')
|
198
|
-
self._last_updated = attributes[:'_last_updated']
|
182
|
+
if attributes.key?(:'pulp_last_updated')
|
183
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
199
184
|
end
|
200
185
|
|
201
186
|
if attributes.key?(:'download_concurrency')
|
@@ -213,7 +198,9 @@ module PulpDockerClient
|
|
213
198
|
end
|
214
199
|
|
215
200
|
if attributes.key?(:'whitelist_tags')
|
216
|
-
|
201
|
+
if (value = attributes[:'whitelist_tags']).is_a?(Array)
|
202
|
+
self.whitelist_tags = value
|
203
|
+
end
|
217
204
|
end
|
218
205
|
end
|
219
206
|
|
@@ -221,10 +208,6 @@ module PulpDockerClient
|
|
221
208
|
# @return Array for valid properties with the reasons
|
222
209
|
def list_invalid_properties
|
223
210
|
invalid_properties = Array.new
|
224
|
-
if !@_type.nil? && @_type.to_s.length < 1
|
225
|
-
invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
|
226
|
-
end
|
227
|
-
|
228
211
|
if @name.nil?
|
229
212
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
230
213
|
end
|
@@ -257,14 +240,6 @@ module PulpDockerClient
|
|
257
240
|
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
258
241
|
end
|
259
242
|
|
260
|
-
if !@username.nil? && @username.to_s.length < 1
|
261
|
-
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
262
|
-
end
|
263
|
-
|
264
|
-
if !@password.nil? && @password.to_s.length < 1
|
265
|
-
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
266
|
-
end
|
267
|
-
|
268
243
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
269
244
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
270
245
|
end
|
@@ -277,17 +252,12 @@ module PulpDockerClient
|
|
277
252
|
invalid_properties.push('invalid value for "upstream_name", the character length must be great than or equal to 1.')
|
278
253
|
end
|
279
254
|
|
280
|
-
if !@whitelist_tags.nil? && @whitelist_tags.to_s.length < 1
|
281
|
-
invalid_properties.push('invalid value for "whitelist_tags", the character length must be great than or equal to 1.')
|
282
|
-
end
|
283
|
-
|
284
255
|
invalid_properties
|
285
256
|
end
|
286
257
|
|
287
258
|
# Check to see if the all the properties in the model are valid
|
288
259
|
# @return true if the model is valid
|
289
260
|
def valid?
|
290
|
-
return false if !@_type.nil? && @_type.to_s.length < 1
|
291
261
|
return false if @name.nil?
|
292
262
|
return false if @name.to_s.length < 1
|
293
263
|
return false if @url.nil?
|
@@ -296,27 +266,14 @@ module PulpDockerClient
|
|
296
266
|
return false if !@ssl_client_certificate.nil? && @ssl_client_certificate.to_s.length < 1
|
297
267
|
return false if !@ssl_client_key.nil? && @ssl_client_key.to_s.length < 1
|
298
268
|
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
299
|
-
return false if !@username.nil? && @username.to_s.length < 1
|
300
|
-
return false if !@password.nil? && @password.to_s.length < 1
|
301
269
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
302
270
|
policy_validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
|
303
271
|
return false unless policy_validator.valid?(@policy)
|
304
272
|
return false if @upstream_name.nil?
|
305
273
|
return false if @upstream_name.to_s.length < 1
|
306
|
-
return false if !@whitelist_tags.nil? && @whitelist_tags.to_s.length < 1
|
307
274
|
true
|
308
275
|
end
|
309
276
|
|
310
|
-
# Custom attribute writer method with validation
|
311
|
-
# @param [Object] _type Value to be assigned
|
312
|
-
def _type=(_type)
|
313
|
-
if !_type.nil? && _type.to_s.length < 1
|
314
|
-
fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
|
315
|
-
end
|
316
|
-
|
317
|
-
@_type = _type
|
318
|
-
end
|
319
|
-
|
320
277
|
# Custom attribute writer method with validation
|
321
278
|
# @param [Object] name Value to be assigned
|
322
279
|
def name=(name)
|
@@ -385,26 +342,6 @@ module PulpDockerClient
|
|
385
342
|
@proxy_url = proxy_url
|
386
343
|
end
|
387
344
|
|
388
|
-
# Custom attribute writer method with validation
|
389
|
-
# @param [Object] username Value to be assigned
|
390
|
-
def username=(username)
|
391
|
-
if !username.nil? && username.to_s.length < 1
|
392
|
-
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
393
|
-
end
|
394
|
-
|
395
|
-
@username = username
|
396
|
-
end
|
397
|
-
|
398
|
-
# Custom attribute writer method with validation
|
399
|
-
# @param [Object] password Value to be assigned
|
400
|
-
def password=(password)
|
401
|
-
if !password.nil? && password.to_s.length < 1
|
402
|
-
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
403
|
-
end
|
404
|
-
|
405
|
-
@password = password
|
406
|
-
end
|
407
|
-
|
408
345
|
# Custom attribute writer method with validation
|
409
346
|
# @param [Object] download_concurrency Value to be assigned
|
410
347
|
def download_concurrency=(download_concurrency)
|
@@ -439,24 +376,13 @@ module PulpDockerClient
|
|
439
376
|
@upstream_name = upstream_name
|
440
377
|
end
|
441
378
|
|
442
|
-
# Custom attribute writer method with validation
|
443
|
-
# @param [Object] whitelist_tags Value to be assigned
|
444
|
-
def whitelist_tags=(whitelist_tags)
|
445
|
-
if !whitelist_tags.nil? && whitelist_tags.to_s.length < 1
|
446
|
-
fail ArgumentError, 'invalid value for "whitelist_tags", the character length must be great than or equal to 1.'
|
447
|
-
end
|
448
|
-
|
449
|
-
@whitelist_tags = whitelist_tags
|
450
|
-
end
|
451
|
-
|
452
379
|
# Checks equality by comparing each attribute.
|
453
380
|
# @param [Object] Object to be compared
|
454
381
|
def ==(o)
|
455
382
|
return true if self.equal?(o)
|
456
383
|
self.class == o.class &&
|
457
|
-
|
458
|
-
|
459
|
-
_type == o._type &&
|
384
|
+
pulp_href == o.pulp_href &&
|
385
|
+
pulp_created == o.pulp_created &&
|
460
386
|
name == o.name &&
|
461
387
|
url == o.url &&
|
462
388
|
ssl_ca_certificate == o.ssl_ca_certificate &&
|
@@ -464,9 +390,7 @@ module PulpDockerClient
|
|
464
390
|
ssl_client_key == o.ssl_client_key &&
|
465
391
|
ssl_validation == o.ssl_validation &&
|
466
392
|
proxy_url == o.proxy_url &&
|
467
|
-
|
468
|
-
password == o.password &&
|
469
|
-
_last_updated == o._last_updated &&
|
393
|
+
pulp_last_updated == o.pulp_last_updated &&
|
470
394
|
download_concurrency == o.download_concurrency &&
|
471
395
|
policy == o.policy &&
|
472
396
|
upstream_name == o.upstream_name &&
|
@@ -482,7 +406,7 @@ module PulpDockerClient
|
|
482
406
|
# Calculates hash code according to all attributes.
|
483
407
|
# @return [Integer] Hash code
|
484
408
|
def hash
|
485
|
-
[
|
409
|
+
[pulp_href, pulp_created, name, url, ssl_ca_certificate, ssl_client_certificate, ssl_client_key, ssl_validation, proxy_url, pulp_last_updated, download_concurrency, policy, upstream_name, whitelist_tags].hash
|
486
410
|
end
|
487
411
|
|
488
412
|
# Builds the object from hash
|
@@ -571,7 +495,11 @@ module PulpDockerClient
|
|
571
495
|
hash = {}
|
572
496
|
self.class.attribute_map.each_pair do |attr, param|
|
573
497
|
value = self.send(attr)
|
574
|
-
|
498
|
+
if value.nil?
|
499
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
500
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
501
|
+
end
|
502
|
+
|
575
503
|
hash[param] = _to_hash(value)
|
576
504
|
end
|
577
505
|
hash
|
@@ -6,27 +6,22 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.1
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpDockerClient
|
16
|
-
class
|
17
|
-
attr_accessor :
|
16
|
+
class DockerManifest
|
17
|
+
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
20
|
-
attr_accessor :
|
21
|
-
|
22
|
-
attr_accessor :_type
|
20
|
+
attr_accessor :pulp_created
|
23
21
|
|
24
22
|
# Artifact file representing the physical content
|
25
23
|
attr_accessor :artifact
|
26
24
|
|
27
|
-
# Path where the artifact is located relative to distributions base_path
|
28
|
-
attr_accessor :relative_path
|
29
|
-
|
30
25
|
# sha256 of the Manifest file
|
31
26
|
attr_accessor :digest
|
32
27
|
|
@@ -48,11 +43,9 @@ module PulpDockerClient
|
|
48
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
44
|
def self.attribute_map
|
50
45
|
{
|
51
|
-
:'
|
52
|
-
:'
|
53
|
-
:'_type' => :'_type',
|
46
|
+
:'pulp_href' => :'pulp_href',
|
47
|
+
:'pulp_created' => :'pulp_created',
|
54
48
|
:'artifact' => :'artifact',
|
55
|
-
:'relative_path' => :'relative_path',
|
56
49
|
:'digest' => :'digest',
|
57
50
|
:'schema_version' => :'schema_version',
|
58
51
|
:'media_type' => :'media_type',
|
@@ -65,11 +58,9 @@ module PulpDockerClient
|
|
65
58
|
# Attribute type mapping.
|
66
59
|
def self.openapi_types
|
67
60
|
{
|
68
|
-
:'
|
69
|
-
:'
|
70
|
-
:'_type' => :'String',
|
61
|
+
:'pulp_href' => :'String',
|
62
|
+
:'pulp_created' => :'DateTime',
|
71
63
|
:'artifact' => :'String',
|
72
|
-
:'relative_path' => :'String',
|
73
64
|
:'digest' => :'String',
|
74
65
|
:'schema_version' => :'Integer',
|
75
66
|
:'media_type' => :'String',
|
@@ -79,41 +70,39 @@ module PulpDockerClient
|
|
79
70
|
}
|
80
71
|
end
|
81
72
|
|
73
|
+
# List of attributes with nullable: true
|
74
|
+
def self.openapi_nullable
|
75
|
+
Set.new([
|
76
|
+
])
|
77
|
+
end
|
78
|
+
|
82
79
|
# Initializes the object
|
83
80
|
# @param [Hash] attributes Model attributes in the form of hash
|
84
81
|
def initialize(attributes = {})
|
85
82
|
if (!attributes.is_a?(Hash))
|
86
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDockerClient::
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDockerClient::DockerManifest` initialize method"
|
87
84
|
end
|
88
85
|
|
89
86
|
# check to see if the attribute exists and convert string to symbol for hash key
|
90
87
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
91
88
|
if (!self.class.attribute_map.key?(k.to_sym))
|
92
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDockerClient::
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDockerClient::DockerManifest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
93
90
|
end
|
94
91
|
h[k.to_sym] = v
|
95
92
|
}
|
96
93
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
94
|
+
if attributes.key?(:'pulp_href')
|
95
|
+
self.pulp_href = attributes[:'pulp_href']
|
99
96
|
end
|
100
97
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
103
|
-
end
|
104
|
-
|
105
|
-
if attributes.key?(:'_type')
|
106
|
-
self._type = attributes[:'_type']
|
98
|
+
if attributes.key?(:'pulp_created')
|
99
|
+
self.pulp_created = attributes[:'pulp_created']
|
107
100
|
end
|
108
101
|
|
109
102
|
if attributes.key?(:'artifact')
|
110
103
|
self.artifact = attributes[:'artifact']
|
111
104
|
end
|
112
105
|
|
113
|
-
if attributes.key?(:'relative_path')
|
114
|
-
self.relative_path = attributes[:'relative_path']
|
115
|
-
end
|
116
|
-
|
117
106
|
if attributes.key?(:'digest')
|
118
107
|
self.digest = attributes[:'digest']
|
119
108
|
end
|
@@ -147,22 +136,10 @@ module PulpDockerClient
|
|
147
136
|
# @return Array for valid properties with the reasons
|
148
137
|
def list_invalid_properties
|
149
138
|
invalid_properties = Array.new
|
150
|
-
if !@_type.nil? && @_type.to_s.length < 1
|
151
|
-
invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
|
152
|
-
end
|
153
|
-
|
154
139
|
if @artifact.nil?
|
155
140
|
invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
|
156
141
|
end
|
157
142
|
|
158
|
-
if @relative_path.nil?
|
159
|
-
invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
|
160
|
-
end
|
161
|
-
|
162
|
-
if @relative_path.to_s.length < 1
|
163
|
-
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
164
|
-
end
|
165
|
-
|
166
143
|
if @digest.nil?
|
167
144
|
invalid_properties.push('invalid value for "digest", digest cannot be nil.')
|
168
145
|
end
|
@@ -201,10 +178,7 @@ module PulpDockerClient
|
|
201
178
|
# Check to see if the all the properties in the model are valid
|
202
179
|
# @return true if the model is valid
|
203
180
|
def valid?
|
204
|
-
return false if !@_type.nil? && @_type.to_s.length < 1
|
205
181
|
return false if @artifact.nil?
|
206
|
-
return false if @relative_path.nil?
|
207
|
-
return false if @relative_path.to_s.length < 1
|
208
182
|
return false if @digest.nil?
|
209
183
|
return false if @digest.to_s.length < 1
|
210
184
|
return false if @schema_version.nil?
|
@@ -216,30 +190,6 @@ module PulpDockerClient
|
|
216
190
|
true
|
217
191
|
end
|
218
192
|
|
219
|
-
# Custom attribute writer method with validation
|
220
|
-
# @param [Object] _type Value to be assigned
|
221
|
-
def _type=(_type)
|
222
|
-
if !_type.nil? && _type.to_s.length < 1
|
223
|
-
fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
|
224
|
-
end
|
225
|
-
|
226
|
-
@_type = _type
|
227
|
-
end
|
228
|
-
|
229
|
-
# Custom attribute writer method with validation
|
230
|
-
# @param [Object] relative_path Value to be assigned
|
231
|
-
def relative_path=(relative_path)
|
232
|
-
if relative_path.nil?
|
233
|
-
fail ArgumentError, 'relative_path cannot be nil'
|
234
|
-
end
|
235
|
-
|
236
|
-
if relative_path.to_s.length < 1
|
237
|
-
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
238
|
-
end
|
239
|
-
|
240
|
-
@relative_path = relative_path
|
241
|
-
end
|
242
|
-
|
243
193
|
# Custom attribute writer method with validation
|
244
194
|
# @param [Object] digest Value to be assigned
|
245
195
|
def digest=(digest)
|
@@ -273,11 +223,9 @@ module PulpDockerClient
|
|
273
223
|
def ==(o)
|
274
224
|
return true if self.equal?(o)
|
275
225
|
self.class == o.class &&
|
276
|
-
|
277
|
-
|
278
|
-
_type == o._type &&
|
226
|
+
pulp_href == o.pulp_href &&
|
227
|
+
pulp_created == o.pulp_created &&
|
279
228
|
artifact == o.artifact &&
|
280
|
-
relative_path == o.relative_path &&
|
281
229
|
digest == o.digest &&
|
282
230
|
schema_version == o.schema_version &&
|
283
231
|
media_type == o.media_type &&
|
@@ -295,7 +243,7 @@ module PulpDockerClient
|
|
295
243
|
# Calculates hash code according to all attributes.
|
296
244
|
# @return [Integer] Hash code
|
297
245
|
def hash
|
298
|
-
[
|
246
|
+
[pulp_href, pulp_created, artifact, digest, schema_version, media_type, listed_manifests, config_blob, blobs].hash
|
299
247
|
end
|
300
248
|
|
301
249
|
# Builds the object from hash
|
@@ -384,7 +332,11 @@ module PulpDockerClient
|
|
384
332
|
hash = {}
|
385
333
|
self.class.attribute_map.each_pair do |attr, param|
|
386
334
|
value = self.send(attr)
|
387
|
-
|
335
|
+
if value.nil?
|
336
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
337
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
338
|
+
end
|
339
|
+
|
388
340
|
hash[param] = _to_hash(value)
|
389
341
|
end
|
390
342
|
hash
|