pulp_docker_client 4.0.0b6 → 4.0.0b7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/docs/Blob.md +4 -4
- data/docs/ContentBlobsApi.md +9 -3
- data/docs/ContentManifestsApi.md +9 -3
- data/docs/ContentTagsApi.md +9 -3
- data/docs/DistributionsDockerApi.md +11 -5
- data/docs/DockerCopyApi.md +2 -2
- data/docs/DockerDistribution.md +9 -9
- data/docs/DockerRecursiveAddApi.md +1 -1
- data/docs/DockerRecursiveRemoveApi.md +1 -1
- data/docs/DockerRemote.md +1 -1
- data/docs/DockerTagApi.md +1 -1
- data/docs/DockerUntagApi.md +1 -1
- data/docs/Manifest.md +4 -4
- data/docs/RemotesDockerApi.md +13 -7
- data/docs/Tag.md +4 -4
- data/lib/pulp_docker_client/api/content_blobs_api.rb +7 -1
- data/lib/pulp_docker_client/api/content_manifests_api.rb +7 -1
- data/lib/pulp_docker_client/api/content_tags_api.rb +7 -1
- data/lib/pulp_docker_client/api/distributions_docker_api.rb +11 -5
- data/lib/pulp_docker_client/api/docker_copy_api.rb +3 -3
- data/lib/pulp_docker_client/api/docker_recursive_add_api.rb +2 -2
- data/lib/pulp_docker_client/api/docker_recursive_remove_api.rb +2 -2
- data/lib/pulp_docker_client/api/docker_tag_api.rb +2 -2
- data/lib/pulp_docker_client/api/docker_untag_api.rb +2 -2
- data/lib/pulp_docker_client/api/remotes_docker_api.rb +15 -9
- 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 +1 -1
- data/lib/pulp_docker_client/models/blob.rb +30 -30
- data/lib/pulp_docker_client/models/docker_distribution.rb +69 -69
- data/lib/pulp_docker_client/models/docker_remote.rb +2 -2
- data/lib/pulp_docker_client/models/inline_response200.rb +1 -1
- data/lib/pulp_docker_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_docker_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_docker_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_docker_client/models/inline_response2004.rb +1 -1
- data/lib/pulp_docker_client/models/manifest.rb +30 -30
- data/lib/pulp_docker_client/models/manifest_copy.rb +1 -1
- data/lib/pulp_docker_client/models/recursive_manage.rb +1 -1
- data/lib/pulp_docker_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_docker_client/models/tag.rb +30 -30
- data/lib/pulp_docker_client/models/tag_copy.rb +1 -1
- data/lib/pulp_docker_client/models/tag_image.rb +1 -1
- data/lib/pulp_docker_client/models/un_tag_image.rb +1 -1
- data/lib/pulp_docker_client/version.rb +2 -2
- data/lib/pulp_docker_client.rb +1 -1
- data/pulp_docker_client.gemspec +1 -1
- data/spec/api/content_blobs_api_spec.rb +3 -1
- data/spec/api/content_manifests_api_spec.rb +3 -1
- data/spec/api/content_tags_api_spec.rb +3 -1
- data/spec/api/distributions_docker_api_spec.rb +5 -3
- 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 +7 -5
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/blob_spec.rb +3 -3
- data/spec/models/docker_distribution_spec.rb +8 -8
- data/spec/models/docker_remote_spec.rb +1 -1
- 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/manifest_spec.rb +3 -3
- 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/tag_spec.rb +3 -3
- data/spec/models/un_tag_image_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
@@ -6,7 +6,7 @@
|
|
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.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,25 +14,25 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpDockerClient
|
16
16
|
class DockerDistribution
|
17
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
18
|
-
attr_accessor :name
|
19
|
-
|
20
17
|
# An optional content-guard.
|
21
18
|
attr_accessor :content_guard
|
22
19
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
20
|
+
# The latest RepositoryVersion for this Repository will be served.
|
21
|
+
attr_accessor :repository
|
25
22
|
|
26
|
-
|
27
|
-
attr_accessor :repository_version
|
23
|
+
attr_accessor :_href
|
28
24
|
|
29
25
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
30
26
|
attr_accessor :base_path
|
31
27
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
28
|
+
# Timestamp of creation.
|
29
|
+
attr_accessor :_created
|
34
30
|
|
35
|
-
|
31
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
32
|
+
attr_accessor :name
|
33
|
+
|
34
|
+
# RepositoryVersion to be served
|
35
|
+
attr_accessor :repository_version
|
36
36
|
|
37
37
|
# The Registry hostame:port/name/ to use with docker pull command defined by this distribution.
|
38
38
|
attr_accessor :registry_path
|
@@ -40,13 +40,13 @@ module PulpDockerClient
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
|
-
:'name' => :'name',
|
44
43
|
:'content_guard' => :'content_guard',
|
45
|
-
:'_created' => :'_created',
|
46
|
-
:'repository_version' => :'repository_version',
|
47
|
-
:'base_path' => :'base_path',
|
48
44
|
:'repository' => :'repository',
|
49
45
|
:'_href' => :'_href',
|
46
|
+
:'base_path' => :'base_path',
|
47
|
+
:'_created' => :'_created',
|
48
|
+
:'name' => :'name',
|
49
|
+
:'repository_version' => :'repository_version',
|
50
50
|
:'registry_path' => :'registry_path'
|
51
51
|
}
|
52
52
|
end
|
@@ -54,13 +54,13 @@ module PulpDockerClient
|
|
54
54
|
# Attribute type mapping.
|
55
55
|
def self.openapi_types
|
56
56
|
{
|
57
|
-
:'name' => :'String',
|
58
57
|
:'content_guard' => :'String',
|
59
|
-
:'_created' => :'DateTime',
|
60
|
-
:'repository_version' => :'String',
|
61
|
-
:'base_path' => :'String',
|
62
58
|
:'repository' => :'String',
|
63
59
|
:'_href' => :'String',
|
60
|
+
:'base_path' => :'String',
|
61
|
+
:'_created' => :'DateTime',
|
62
|
+
:'name' => :'String',
|
63
|
+
:'repository_version' => :'String',
|
64
64
|
:'registry_path' => :'String'
|
65
65
|
}
|
66
66
|
end
|
@@ -80,32 +80,32 @@ module PulpDockerClient
|
|
80
80
|
h[k.to_sym] = v
|
81
81
|
}
|
82
82
|
|
83
|
-
if attributes.key?(:'name')
|
84
|
-
self.name = attributes[:'name']
|
85
|
-
end
|
86
|
-
|
87
83
|
if attributes.key?(:'content_guard')
|
88
84
|
self.content_guard = attributes[:'content_guard']
|
89
85
|
end
|
90
86
|
|
91
|
-
if attributes.key?(:'
|
92
|
-
self.
|
87
|
+
if attributes.key?(:'repository')
|
88
|
+
self.repository = attributes[:'repository']
|
93
89
|
end
|
94
90
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
91
|
+
if attributes.key?(:'_href')
|
92
|
+
self._href = attributes[:'_href']
|
97
93
|
end
|
98
94
|
|
99
95
|
if attributes.key?(:'base_path')
|
100
96
|
self.base_path = attributes[:'base_path']
|
101
97
|
end
|
102
98
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
99
|
+
if attributes.key?(:'_created')
|
100
|
+
self._created = attributes[:'_created']
|
105
101
|
end
|
106
102
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
103
|
+
if attributes.key?(:'name')
|
104
|
+
self.name = attributes[:'name']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'repository_version')
|
108
|
+
self.repository_version = attributes[:'repository_version']
|
109
109
|
end
|
110
110
|
|
111
111
|
if attributes.key?(:'registry_path')
|
@@ -117,18 +117,6 @@ module PulpDockerClient
|
|
117
117
|
# @return Array for valid properties with the reasons
|
118
118
|
def list_invalid_properties
|
119
119
|
invalid_properties = Array.new
|
120
|
-
if @name.nil?
|
121
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
122
|
-
end
|
123
|
-
|
124
|
-
if @name.to_s.length > 255
|
125
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
|
126
|
-
end
|
127
|
-
|
128
|
-
if @name.to_s.length < 1
|
129
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
130
|
-
end
|
131
|
-
|
132
120
|
if @base_path.nil?
|
133
121
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
134
122
|
end
|
@@ -141,6 +129,18 @@ module PulpDockerClient
|
|
141
129
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
142
130
|
end
|
143
131
|
|
132
|
+
if @name.nil?
|
133
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
134
|
+
end
|
135
|
+
|
136
|
+
if @name.to_s.length > 255
|
137
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
|
138
|
+
end
|
139
|
+
|
140
|
+
if @name.to_s.length < 1
|
141
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
142
|
+
end
|
143
|
+
|
144
144
|
if !@registry_path.nil? && @registry_path.to_s.length < 1
|
145
145
|
invalid_properties.push('invalid value for "registry_path", the character length must be great than or equal to 1.')
|
146
146
|
end
|
@@ -151,34 +151,16 @@ module PulpDockerClient
|
|
151
151
|
# Check to see if the all the properties in the model are valid
|
152
152
|
# @return true if the model is valid
|
153
153
|
def valid?
|
154
|
-
return false if @name.nil?
|
155
|
-
return false if @name.to_s.length > 255
|
156
|
-
return false if @name.to_s.length < 1
|
157
154
|
return false if @base_path.nil?
|
158
155
|
return false if @base_path.to_s.length > 255
|
159
156
|
return false if @base_path.to_s.length < 1
|
157
|
+
return false if @name.nil?
|
158
|
+
return false if @name.to_s.length > 255
|
159
|
+
return false if @name.to_s.length < 1
|
160
160
|
return false if !@registry_path.nil? && @registry_path.to_s.length < 1
|
161
161
|
true
|
162
162
|
end
|
163
163
|
|
164
|
-
# Custom attribute writer method with validation
|
165
|
-
# @param [Object] name Value to be assigned
|
166
|
-
def name=(name)
|
167
|
-
if name.nil?
|
168
|
-
fail ArgumentError, 'name cannot be nil'
|
169
|
-
end
|
170
|
-
|
171
|
-
if name.to_s.length > 255
|
172
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
|
173
|
-
end
|
174
|
-
|
175
|
-
if name.to_s.length < 1
|
176
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
177
|
-
end
|
178
|
-
|
179
|
-
@name = name
|
180
|
-
end
|
181
|
-
|
182
164
|
# Custom attribute writer method with validation
|
183
165
|
# @param [Object] base_path Value to be assigned
|
184
166
|
def base_path=(base_path)
|
@@ -197,6 +179,24 @@ module PulpDockerClient
|
|
197
179
|
@base_path = base_path
|
198
180
|
end
|
199
181
|
|
182
|
+
# Custom attribute writer method with validation
|
183
|
+
# @param [Object] name Value to be assigned
|
184
|
+
def name=(name)
|
185
|
+
if name.nil?
|
186
|
+
fail ArgumentError, 'name cannot be nil'
|
187
|
+
end
|
188
|
+
|
189
|
+
if name.to_s.length > 255
|
190
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
|
191
|
+
end
|
192
|
+
|
193
|
+
if name.to_s.length < 1
|
194
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
195
|
+
end
|
196
|
+
|
197
|
+
@name = name
|
198
|
+
end
|
199
|
+
|
200
200
|
# Custom attribute writer method with validation
|
201
201
|
# @param [Object] registry_path Value to be assigned
|
202
202
|
def registry_path=(registry_path)
|
@@ -212,13 +212,13 @@ module PulpDockerClient
|
|
212
212
|
def ==(o)
|
213
213
|
return true if self.equal?(o)
|
214
214
|
self.class == o.class &&
|
215
|
-
name == o.name &&
|
216
215
|
content_guard == o.content_guard &&
|
217
|
-
_created == o._created &&
|
218
|
-
repository_version == o.repository_version &&
|
219
|
-
base_path == o.base_path &&
|
220
216
|
repository == o.repository &&
|
221
217
|
_href == o._href &&
|
218
|
+
base_path == o.base_path &&
|
219
|
+
_created == o._created &&
|
220
|
+
name == o.name &&
|
221
|
+
repository_version == o.repository_version &&
|
222
222
|
registry_path == o.registry_path
|
223
223
|
end
|
224
224
|
|
@@ -231,7 +231,7 @@ module PulpDockerClient
|
|
231
231
|
# Calculates hash code according to all attributes.
|
232
232
|
# @return [Integer] Hash code
|
233
233
|
def hash
|
234
|
-
[
|
234
|
+
[content_guard, repository, _href, base_path, _created, name, repository_version, registry_path].hash
|
235
235
|
end
|
236
236
|
|
237
237
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
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.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -54,7 +54,7 @@ module PulpDockerClient
|
|
54
54
|
# Total number of simultaneous connections.
|
55
55
|
attr_accessor :download_concurrency
|
56
56
|
|
57
|
-
#
|
57
|
+
# immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
|
58
58
|
attr_accessor :policy
|
59
59
|
|
60
60
|
# Name of the upstream repository
|
@@ -6,7 +6,7 @@
|
|
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.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,10 +22,10 @@ module PulpDockerClient
|
|
22
22
|
attr_accessor :_type
|
23
23
|
|
24
24
|
# Artifact file representing the physical content
|
25
|
-
attr_accessor :
|
25
|
+
attr_accessor :artifact
|
26
26
|
|
27
27
|
# Path where the artifact is located relative to distributions base_path
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :relative_path
|
29
29
|
|
30
30
|
# sha256 of the Manifest file
|
31
31
|
attr_accessor :digest
|
@@ -51,8 +51,8 @@ module PulpDockerClient
|
|
51
51
|
:'_href' => :'_href',
|
52
52
|
:'_created' => :'_created',
|
53
53
|
:'_type' => :'_type',
|
54
|
-
:'
|
55
|
-
:'
|
54
|
+
:'artifact' => :'artifact',
|
55
|
+
:'relative_path' => :'relative_path',
|
56
56
|
:'digest' => :'digest',
|
57
57
|
:'schema_version' => :'schema_version',
|
58
58
|
:'media_type' => :'media_type',
|
@@ -68,8 +68,8 @@ module PulpDockerClient
|
|
68
68
|
:'_href' => :'String',
|
69
69
|
:'_created' => :'DateTime',
|
70
70
|
:'_type' => :'String',
|
71
|
-
:'
|
72
|
-
:'
|
71
|
+
:'artifact' => :'String',
|
72
|
+
:'relative_path' => :'String',
|
73
73
|
:'digest' => :'String',
|
74
74
|
:'schema_version' => :'Integer',
|
75
75
|
:'media_type' => :'String',
|
@@ -106,12 +106,12 @@ module PulpDockerClient
|
|
106
106
|
self._type = attributes[:'_type']
|
107
107
|
end
|
108
108
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
109
|
+
if attributes.key?(:'artifact')
|
110
|
+
self.artifact = attributes[:'artifact']
|
111
111
|
end
|
112
112
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
113
|
+
if attributes.key?(:'relative_path')
|
114
|
+
self.relative_path = attributes[:'relative_path']
|
115
115
|
end
|
116
116
|
|
117
117
|
if attributes.key?(:'digest')
|
@@ -151,16 +151,16 @@ module PulpDockerClient
|
|
151
151
|
invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
|
152
152
|
end
|
153
153
|
|
154
|
-
if @
|
155
|
-
invalid_properties.push('invalid value for "
|
154
|
+
if @artifact.nil?
|
155
|
+
invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
|
156
156
|
end
|
157
157
|
|
158
|
-
if @
|
159
|
-
invalid_properties.push('invalid value for "
|
158
|
+
if @relative_path.nil?
|
159
|
+
invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
|
160
160
|
end
|
161
161
|
|
162
|
-
if @
|
163
|
-
invalid_properties.push('invalid value for "
|
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
164
|
end
|
165
165
|
|
166
166
|
if @digest.nil?
|
@@ -202,9 +202,9 @@ module PulpDockerClient
|
|
202
202
|
# @return true if the model is valid
|
203
203
|
def valid?
|
204
204
|
return false if !@_type.nil? && @_type.to_s.length < 1
|
205
|
-
return false if @
|
206
|
-
return false if @
|
207
|
-
return false if @
|
205
|
+
return false if @artifact.nil?
|
206
|
+
return false if @relative_path.nil?
|
207
|
+
return false if @relative_path.to_s.length < 1
|
208
208
|
return false if @digest.nil?
|
209
209
|
return false if @digest.to_s.length < 1
|
210
210
|
return false if @schema_version.nil?
|
@@ -227,17 +227,17 @@ module PulpDockerClient
|
|
227
227
|
end
|
228
228
|
|
229
229
|
# Custom attribute writer method with validation
|
230
|
-
# @param [Object]
|
231
|
-
def
|
232
|
-
if
|
233
|
-
fail ArgumentError, '
|
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
234
|
end
|
235
235
|
|
236
|
-
if
|
237
|
-
fail ArgumentError, 'invalid value for "
|
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
238
|
end
|
239
239
|
|
240
|
-
@
|
240
|
+
@relative_path = relative_path
|
241
241
|
end
|
242
242
|
|
243
243
|
# Custom attribute writer method with validation
|
@@ -276,8 +276,8 @@ module PulpDockerClient
|
|
276
276
|
_href == o._href &&
|
277
277
|
_created == o._created &&
|
278
278
|
_type == o._type &&
|
279
|
-
|
280
|
-
|
279
|
+
artifact == o.artifact &&
|
280
|
+
relative_path == o.relative_path &&
|
281
281
|
digest == o.digest &&
|
282
282
|
schema_version == o.schema_version &&
|
283
283
|
media_type == o.media_type &&
|
@@ -295,7 +295,7 @@ module PulpDockerClient
|
|
295
295
|
# Calculates hash code according to all attributes.
|
296
296
|
# @return [Integer] Hash code
|
297
297
|
def hash
|
298
|
-
[_href, _created, _type,
|
298
|
+
[_href, _created, _type, artifact, relative_path, digest, schema_version, media_type, listed_manifests, config_blob, blobs].hash
|
299
299
|
end
|
300
300
|
|
301
301
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
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.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,10 +22,10 @@ module PulpDockerClient
|
|
22
22
|
attr_accessor :_type
|
23
23
|
|
24
24
|
# Artifact file representing the physical content
|
25
|
-
attr_accessor :
|
25
|
+
attr_accessor :artifact
|
26
26
|
|
27
27
|
# Path where the artifact is located relative to distributions base_path
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :relative_path
|
29
29
|
|
30
30
|
# Tag name
|
31
31
|
attr_accessor :name
|
@@ -39,8 +39,8 @@ module PulpDockerClient
|
|
39
39
|
:'_href' => :'_href',
|
40
40
|
:'_created' => :'_created',
|
41
41
|
:'_type' => :'_type',
|
42
|
-
:'
|
43
|
-
:'
|
42
|
+
:'artifact' => :'artifact',
|
43
|
+
:'relative_path' => :'relative_path',
|
44
44
|
:'name' => :'name',
|
45
45
|
:'tagged_manifest' => :'tagged_manifest'
|
46
46
|
}
|
@@ -52,8 +52,8 @@ module PulpDockerClient
|
|
52
52
|
:'_href' => :'String',
|
53
53
|
:'_created' => :'DateTime',
|
54
54
|
:'_type' => :'String',
|
55
|
-
:'
|
56
|
-
:'
|
55
|
+
:'artifact' => :'String',
|
56
|
+
:'relative_path' => :'String',
|
57
57
|
:'name' => :'String',
|
58
58
|
:'tagged_manifest' => :'String'
|
59
59
|
}
|
@@ -86,12 +86,12 @@ module PulpDockerClient
|
|
86
86
|
self._type = attributes[:'_type']
|
87
87
|
end
|
88
88
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
89
|
+
if attributes.key?(:'artifact')
|
90
|
+
self.artifact = attributes[:'artifact']
|
91
91
|
end
|
92
92
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
93
|
+
if attributes.key?(:'relative_path')
|
94
|
+
self.relative_path = attributes[:'relative_path']
|
95
95
|
end
|
96
96
|
|
97
97
|
if attributes.key?(:'name')
|
@@ -111,16 +111,16 @@ module PulpDockerClient
|
|
111
111
|
invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
|
112
112
|
end
|
113
113
|
|
114
|
-
if @
|
115
|
-
invalid_properties.push('invalid value for "
|
114
|
+
if @artifact.nil?
|
115
|
+
invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
|
116
116
|
end
|
117
117
|
|
118
|
-
if @
|
119
|
-
invalid_properties.push('invalid value for "
|
118
|
+
if @relative_path.nil?
|
119
|
+
invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
|
120
120
|
end
|
121
121
|
|
122
|
-
if @
|
123
|
-
invalid_properties.push('invalid value for "
|
122
|
+
if @relative_path.to_s.length < 1
|
123
|
+
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
124
124
|
end
|
125
125
|
|
126
126
|
if @name.nil?
|
@@ -142,9 +142,9 @@ module PulpDockerClient
|
|
142
142
|
# @return true if the model is valid
|
143
143
|
def valid?
|
144
144
|
return false if !@_type.nil? && @_type.to_s.length < 1
|
145
|
-
return false if @
|
146
|
-
return false if @
|
147
|
-
return false if @
|
145
|
+
return false if @artifact.nil?
|
146
|
+
return false if @relative_path.nil?
|
147
|
+
return false if @relative_path.to_s.length < 1
|
148
148
|
return false if @name.nil?
|
149
149
|
return false if @name.to_s.length < 1
|
150
150
|
return false if @tagged_manifest.nil?
|
@@ -162,17 +162,17 @@ module PulpDockerClient
|
|
162
162
|
end
|
163
163
|
|
164
164
|
# Custom attribute writer method with validation
|
165
|
-
# @param [Object]
|
166
|
-
def
|
167
|
-
if
|
168
|
-
fail ArgumentError, '
|
165
|
+
# @param [Object] relative_path Value to be assigned
|
166
|
+
def relative_path=(relative_path)
|
167
|
+
if relative_path.nil?
|
168
|
+
fail ArgumentError, 'relative_path cannot be nil'
|
169
169
|
end
|
170
170
|
|
171
|
-
if
|
172
|
-
fail ArgumentError, 'invalid value for "
|
171
|
+
if relative_path.to_s.length < 1
|
172
|
+
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
173
173
|
end
|
174
174
|
|
175
|
-
@
|
175
|
+
@relative_path = relative_path
|
176
176
|
end
|
177
177
|
|
178
178
|
# Custom attribute writer method with validation
|
@@ -197,8 +197,8 @@ module PulpDockerClient
|
|
197
197
|
_href == o._href &&
|
198
198
|
_created == o._created &&
|
199
199
|
_type == o._type &&
|
200
|
-
|
201
|
-
|
200
|
+
artifact == o.artifact &&
|
201
|
+
relative_path == o.relative_path &&
|
202
202
|
name == o.name &&
|
203
203
|
tagged_manifest == o.tagged_manifest
|
204
204
|
end
|
@@ -212,7 +212,7 @@ module PulpDockerClient
|
|
212
212
|
# Calculates hash code according to all attributes.
|
213
213
|
# @return [Integer] Hash code
|
214
214
|
def hash
|
215
|
-
[_href, _created, _type,
|
215
|
+
[_href, _created, _type, artifact, relative_path, name, tagged_manifest].hash
|
216
216
|
end
|
217
217
|
|
218
218
|
# Builds the object from hash
|
@@ -6,10 +6,10 @@
|
|
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.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PulpDockerClient
|
14
|
-
VERSION = '4.0.
|
14
|
+
VERSION = '4.0.0b7'
|
15
15
|
end
|