pulp_docker_client 4.0.0b5 → 4.0.0b6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -14
- data/docs/ContentBlobsApi.md +24 -20
- data/docs/ContentManifestsApi.md +12 -6
- data/docs/{ContentManifestTagsApi.md → ContentTagsApi.md} +40 -34
- data/docs/DistributionsDockerApi.md +4 -4
- data/docs/DockerCopyApi.md +114 -0
- data/docs/DockerDistribution.md +9 -9
- data/docs/DockerRecursiveAddApi.md +61 -0
- data/docs/DockerRecursiveRemoveApi.md +61 -0
- data/docs/DockerTagApi.md +61 -0
- data/docs/DockerUntagApi.md +61 -0
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +4 -4
- data/docs/InlineResponse2002.md +4 -4
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/ManifestCopy.md +25 -0
- data/docs/RecursiveManage.md +19 -0
- data/docs/RemotesDockerApi.md +4 -4
- data/docs/{ManifestTag.md → Tag.md} +2 -2
- data/docs/TagCopy.md +23 -0
- data/docs/TagImage.md +21 -0
- data/docs/UnTagImage.md +19 -0
- data/git_push.sh +10 -7
- data/lib/pulp_docker_client/api/content_blobs_api.rb +35 -29
- data/lib/pulp_docker_client/api/content_manifests_api.rb +21 -12
- data/lib/pulp_docker_client/api/{content_manifest_tags_api.rb → content_tags_api.rb} +59 -50
- data/lib/pulp_docker_client/api/distributions_docker_api.rb +12 -12
- data/lib/pulp_docker_client/api/docker_copy_api.rb +146 -0
- data/lib/pulp_docker_client/api/docker_recursive_add_api.rb +84 -0
- data/lib/pulp_docker_client/api/docker_recursive_remove_api.rb +84 -0
- data/lib/pulp_docker_client/api/docker_tag_api.rb +84 -0
- data/lib/pulp_docker_client/api/docker_untag_api.rb +84 -0
- data/lib/pulp_docker_client/api/remotes_docker_api.rb +13 -13
- data/lib/pulp_docker_client/api_client.rb +77 -62
- data/lib/pulp_docker_client/api_error.rb +1 -1
- data/lib/pulp_docker_client/configuration.rb +13 -21
- data/lib/pulp_docker_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_docker_client/models/blob.rb +1 -1
- data/lib/pulp_docker_client/models/docker_distribution.rb +37 -37
- data/lib/pulp_docker_client/models/docker_remote.rb +1 -1
- data/lib/pulp_docker_client/models/inline_response200.rb +11 -11
- data/lib/pulp_docker_client/models/inline_response2001.rb +12 -12
- data/lib/pulp_docker_client/models/inline_response2002.rb +12 -12
- data/lib/pulp_docker_client/models/inline_response2003.rb +11 -11
- data/lib/pulp_docker_client/models/inline_response2004.rb +11 -11
- data/lib/pulp_docker_client/models/manifest.rb +1 -1
- data/lib/pulp_docker_client/models/manifest_copy.rb +268 -0
- data/lib/pulp_docker_client/models/recursive_manage.rb +214 -0
- data/lib/pulp_docker_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_docker_client/models/{manifest_tag.rb → tag.rb} +4 -4
- data/lib/pulp_docker_client/models/tag_copy.rb +234 -0
- data/lib/pulp_docker_client/models/tag_image.rb +270 -0
- data/lib/pulp_docker_client/models/un_tag_image.rb +236 -0
- data/lib/pulp_docker_client/version.rb +2 -2
- data/lib/pulp_docker_client.rb +13 -3
- data/pulp_docker_client.gemspec +3 -9
- data/spec/api/content_blobs_api_spec.rb +12 -10
- data/spec/api/content_manifests_api_spec.rb +7 -4
- data/spec/api/{content_manifest_tags_api_spec.rb → content_tags_api_spec.rb} +22 -19
- data/spec/api/distributions_docker_api_spec.rb +3 -3
- data/spec/api/docker_copy_api_spec.rb +57 -0
- data/spec/api/docker_recursive_add_api_spec.rb +46 -0
- data/spec/api/docker_recursive_remove_api_spec.rb +46 -0
- data/spec/api/docker_tag_api_spec.rb +46 -0
- data/spec/api/docker_untag_api_spec.rb +46 -0
- data/spec/api/remotes_docker_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +1 -39
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/blob_spec.rb +1 -1
- data/spec/models/docker_distribution_spec.rb +7 -7
- data/spec/models/docker_remote_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +4 -4
- data/spec/models/inline_response2002_spec.rb +4 -4
- data/spec/models/inline_response2003_spec.rb +4 -4
- data/spec/models/inline_response2004_spec.rb +4 -4
- data/spec/models/inline_response200_spec.rb +4 -4
- data/spec/models/manifest_copy_spec.rb +69 -0
- data/spec/models/manifest_spec.rb +1 -1
- data/spec/models/recursive_manage_spec.rb +47 -0
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/tag_copy_spec.rb +59 -0
- data/spec/models/tag_image_spec.rb +53 -0
- data/spec/models/{manifest_tag_spec.rb → tag_spec.rb} +7 -7
- data/spec/models/un_tag_image_spec.rb +47 -0
- data/spec/spec_helper.rb +1 -1
- metadata +54 -141
- data/Gemfile.lock +0 -79
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.1.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,8 +14,7 @@ require 'date'
|
|
14
14
|
require 'json'
|
15
15
|
require 'logger'
|
16
16
|
require 'tempfile'
|
17
|
-
require '
|
18
|
-
require 'uri'
|
17
|
+
require 'faraday'
|
19
18
|
|
20
19
|
module PulpDockerClient
|
21
20
|
class ApiClient
|
@@ -47,26 +46,46 @@ module PulpDockerClient
|
|
47
46
|
# @return [Array<(Object, Integer, Hash)>] an array of 3 elements:
|
48
47
|
# the data deserialized from response body (could be nil), response status code and response headers.
|
49
48
|
def call_api(http_method, path, opts = {})
|
50
|
-
|
51
|
-
|
49
|
+
ssl_options = {
|
50
|
+
:ca_file => @config.ssl_ca_file,
|
51
|
+
:verify => @config.ssl_verify,
|
52
|
+
:verify_mode => @config.ssl_verify_mode,
|
53
|
+
:client_cert => @config.ssl_client_cert,
|
54
|
+
:client_key => @config.ssl_client_key
|
55
|
+
}
|
52
56
|
|
53
|
-
|
54
|
-
|
57
|
+
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
|
58
|
+
conn.basic_auth(config.username, config.password)
|
59
|
+
if opts[:header_params]["Content-Type"] == "multipart/form-data"
|
60
|
+
conn.request :multipart
|
61
|
+
conn.request :url_encoded
|
62
|
+
end
|
63
|
+
conn.adapter(Faraday.default_adapter)
|
55
64
|
end
|
56
65
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
66
|
+
begin
|
67
|
+
response = connection.public_send(http_method.to_sym.downcase) do |req|
|
68
|
+
build_request(http_method, path, req, opts)
|
69
|
+
end
|
70
|
+
|
71
|
+
if @config.debugging
|
72
|
+
@config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
|
73
|
+
end
|
74
|
+
|
75
|
+
unless response.success?
|
76
|
+
if response.status == 0
|
77
|
+
# Errors from libcurl will be made visible here
|
78
|
+
fail ApiError.new(:code => 0,
|
79
|
+
:message => response.return_message)
|
80
|
+
else
|
81
|
+
fail ApiError.new(:code => response.status,
|
82
|
+
:response_headers => response.headers,
|
83
|
+
:response_body => response.body),
|
84
|
+
response.reason_phrase
|
85
|
+
end
|
69
86
|
end
|
87
|
+
rescue Faraday::TimeoutError
|
88
|
+
fail ApiError.new('Connection timed out')
|
70
89
|
end
|
71
90
|
|
72
91
|
if opts[:return_type]
|
@@ -74,7 +93,7 @@ module PulpDockerClient
|
|
74
93
|
else
|
75
94
|
data = nil
|
76
95
|
end
|
77
|
-
return data, response.
|
96
|
+
return data, response.status, response.headers
|
78
97
|
end
|
79
98
|
|
80
99
|
# Builds the HTTP request
|
@@ -86,7 +105,7 @@ module PulpDockerClient
|
|
86
105
|
# @option opts [Hash] :form_params Query parameters
|
87
106
|
# @option opts [Object] :body HTTP body (JSON/XML)
|
88
107
|
# @return [Typhoeus::Request] A Typhoeus Request
|
89
|
-
def build_request(http_method, path, opts = {})
|
108
|
+
def build_request(http_method, path, request, opts = {})
|
90
109
|
url = build_request_url(path)
|
91
110
|
http_method = http_method.to_sym.downcase
|
92
111
|
|
@@ -96,25 +115,15 @@ module PulpDockerClient
|
|
96
115
|
|
97
116
|
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
98
117
|
|
99
|
-
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
|
100
|
-
_verify_ssl_host = @config.verify_ssl_host ? 2 : 0
|
101
|
-
|
102
118
|
req_opts = {
|
103
119
|
:method => http_method,
|
104
120
|
:headers => header_params,
|
105
121
|
:params => query_params,
|
106
122
|
:params_encoding => @config.params_encoding,
|
107
123
|
:timeout => @config.timeout,
|
108
|
-
:ssl_verifypeer => @config.verify_ssl,
|
109
|
-
:ssl_verifyhost => _verify_ssl_host,
|
110
|
-
:sslcert => @config.cert_file,
|
111
|
-
:sslkey => @config.key_file,
|
112
124
|
:verbose => @config.debugging
|
113
125
|
}
|
114
126
|
|
115
|
-
# set custom cert, if provided
|
116
|
-
req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert
|
117
|
-
|
118
127
|
if [:post, :patch, :put, :delete].include?(http_method)
|
119
128
|
req_body = build_request_body(header_params, form_params, opts[:body])
|
120
129
|
req_opts.update :body => req_body
|
@@ -122,12 +131,46 @@ module PulpDockerClient
|
|
122
131
|
@config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
|
123
132
|
end
|
124
133
|
end
|
125
|
-
|
126
|
-
request =
|
134
|
+
request.headers = header_params
|
135
|
+
request.body = req_body
|
136
|
+
request.url url
|
137
|
+
request.params = query_params
|
127
138
|
download_file(request) if opts[:return_type] == 'File'
|
128
139
|
request
|
129
140
|
end
|
130
141
|
|
142
|
+
# Builds the HTTP request body
|
143
|
+
#
|
144
|
+
# @param [Hash] header_params Header parameters
|
145
|
+
# @param [Hash] form_params Query parameters
|
146
|
+
# @param [Object] body HTTP body (JSON/XML)
|
147
|
+
# @return [String] HTTP body data in the form of string
|
148
|
+
def build_request_body(header_params, form_params, body)
|
149
|
+
# http form
|
150
|
+
if header_params['Content-Type'] == 'application/x-www-form-urlencoded'
|
151
|
+
data = URI.encode_www_form(form_params)
|
152
|
+
elsif header_params['Content-Type'] == 'multipart/form-data'
|
153
|
+
data = {}
|
154
|
+
form_params.each do |key, value|
|
155
|
+
case value
|
156
|
+
when ::File, ::Tempfile
|
157
|
+
# TODO hardcode to application/octet-stream, need better way to detect content type
|
158
|
+
data[key] = Faraday::UploadIO.new(value.path, 'application/octet-stream', value.path)
|
159
|
+
when ::Array, nil
|
160
|
+
# let Faraday handle Array and nil parameters
|
161
|
+
data[key] = value
|
162
|
+
else
|
163
|
+
data[key] = value.to_s
|
164
|
+
end
|
165
|
+
end
|
166
|
+
elsif body
|
167
|
+
data = body.is_a?(String) ? body : body.to_json
|
168
|
+
else
|
169
|
+
data = nil
|
170
|
+
end
|
171
|
+
data
|
172
|
+
end
|
173
|
+
|
131
174
|
# Check if the given MIME is a JSON MIME.
|
132
175
|
# JSON MIME examples:
|
133
176
|
# application/json
|
@@ -262,35 +305,7 @@ module PulpDockerClient
|
|
262
305
|
def build_request_url(path)
|
263
306
|
# Add leading and trailing slashes to path
|
264
307
|
path = "/#{path}".gsub(/\/+/, '/')
|
265
|
-
|
266
|
-
end
|
267
|
-
|
268
|
-
# Builds the HTTP request body
|
269
|
-
#
|
270
|
-
# @param [Hash] header_params Header parameters
|
271
|
-
# @param [Hash] form_params Query parameters
|
272
|
-
# @param [Object] body HTTP body (JSON/XML)
|
273
|
-
# @return [String] HTTP body data in the form of string
|
274
|
-
def build_request_body(header_params, form_params, body)
|
275
|
-
# http form
|
276
|
-
if header_params['Content-Type'] == 'application/x-www-form-urlencoded' ||
|
277
|
-
header_params['Content-Type'] == 'multipart/form-data'
|
278
|
-
data = {}
|
279
|
-
form_params.each do |key, value|
|
280
|
-
case value
|
281
|
-
when ::File, ::Array, nil
|
282
|
-
# let typhoeus handle File, Array and nil parameters
|
283
|
-
data[key] = value
|
284
|
-
else
|
285
|
-
data[key] = value.to_s
|
286
|
-
end
|
287
|
-
end
|
288
|
-
elsif body
|
289
|
-
data = body.is_a?(String) ? body : body.to_json
|
290
|
-
else
|
291
|
-
data = nil
|
292
|
-
end
|
293
|
-
data
|
308
|
+
@config.base_url + path
|
294
309
|
end
|
295
310
|
|
296
311
|
# Update hearder and query params based on authentication settings.
|
@@ -6,12 +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.
|
9
|
+
OpenAPI Generator version: 4.1.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require 'uri'
|
14
|
-
|
15
13
|
module PulpDockerClient
|
16
14
|
class Configuration
|
17
15
|
# Defines url scheme
|
@@ -88,33 +86,28 @@ module PulpDockerClient
|
|
88
86
|
# @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
|
89
87
|
#
|
90
88
|
# @return [true, false]
|
91
|
-
attr_accessor :
|
89
|
+
attr_accessor :ssl_verify
|
92
90
|
|
93
91
|
### TLS/SSL setting
|
94
|
-
#
|
95
|
-
# Default to true.
|
92
|
+
# Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html)
|
96
93
|
#
|
97
94
|
# @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
|
98
95
|
#
|
99
|
-
|
100
|
-
attr_accessor :verify_ssl_host
|
96
|
+
attr_accessor :ssl_verify_mode
|
101
97
|
|
102
98
|
### TLS/SSL setting
|
103
99
|
# Set this to customize the certificate file to verify the peer.
|
104
100
|
#
|
105
101
|
# @return [String] the path to the certificate file
|
106
|
-
|
107
|
-
# @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code:
|
108
|
-
# https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145
|
109
|
-
attr_accessor :ssl_ca_cert
|
102
|
+
attr_accessor :ssl_ca_file
|
110
103
|
|
111
104
|
### TLS/SSL setting
|
112
105
|
# Client certificate file (for client certificate)
|
113
|
-
attr_accessor :
|
106
|
+
attr_accessor :ssl_client_cert
|
114
107
|
|
115
108
|
### TLS/SSL setting
|
116
109
|
# Client private key file (for client certificate)
|
117
|
-
attr_accessor :
|
110
|
+
attr_accessor :ssl_client_key
|
118
111
|
|
119
112
|
# Set this to customize parameters encoding of array parameter with multi collectionFormat.
|
120
113
|
# Default to nil.
|
@@ -135,11 +128,11 @@ module PulpDockerClient
|
|
135
128
|
@api_key_prefix = {}
|
136
129
|
@timeout = 0
|
137
130
|
@client_side_validation = true
|
138
|
-
@
|
139
|
-
@
|
140
|
-
@
|
141
|
-
@
|
142
|
-
@
|
131
|
+
@ssl_verify = true
|
132
|
+
@ssl_verify_mode = nil
|
133
|
+
@ssl_ca_file = nil
|
134
|
+
@ssl_client_cert = nil
|
135
|
+
@ssl_client_key = nil
|
143
136
|
@debugging = false
|
144
137
|
@inject_format = false
|
145
138
|
@force_ending_format = false
|
@@ -174,8 +167,7 @@ module PulpDockerClient
|
|
174
167
|
end
|
175
168
|
|
176
169
|
def base_url
|
177
|
-
|
178
|
-
URI.encode(url)
|
170
|
+
"#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
|
179
171
|
end
|
180
172
|
|
181
173
|
# Gets API key (with prefix if set).
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.1.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,39 +14,39 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpDockerClient
|
16
16
|
class DockerDistribution
|
17
|
-
#
|
18
|
-
attr_accessor :
|
19
|
-
|
20
|
-
# The latest RepositoryVersion for this Repository will be served.
|
21
|
-
attr_accessor :repository
|
22
|
-
|
23
|
-
# Timestamp of creation.
|
24
|
-
attr_accessor :_created
|
17
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
18
|
+
attr_accessor :name
|
25
19
|
|
26
20
|
# An optional content-guard.
|
27
21
|
attr_accessor :content_guard
|
28
22
|
|
29
|
-
|
23
|
+
# Timestamp of creation.
|
24
|
+
attr_accessor :_created
|
30
25
|
|
31
|
-
#
|
32
|
-
attr_accessor :
|
26
|
+
# RepositoryVersion to be served
|
27
|
+
attr_accessor :repository_version
|
33
28
|
|
34
29
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
35
30
|
attr_accessor :base_path
|
36
31
|
|
32
|
+
# The latest RepositoryVersion for this Repository will be served.
|
33
|
+
attr_accessor :repository
|
34
|
+
|
35
|
+
attr_accessor :_href
|
36
|
+
|
37
37
|
# The Registry hostame:port/name/ to use with docker pull command defined by this distribution.
|
38
38
|
attr_accessor :registry_path
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
|
+
:'name' => :'name',
|
44
|
+
:'content_guard' => :'content_guard',
|
45
|
+
:'_created' => :'_created',
|
43
46
|
:'repository_version' => :'repository_version',
|
47
|
+
:'base_path' => :'base_path',
|
44
48
|
:'repository' => :'repository',
|
45
|
-
:'_created' => :'_created',
|
46
|
-
:'content_guard' => :'content_guard',
|
47
49
|
:'_href' => :'_href',
|
48
|
-
:'name' => :'name',
|
49
|
-
:'base_path' => :'base_path',
|
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
|
+
:'content_guard' => :'String',
|
59
|
+
:'_created' => :'DateTime',
|
57
60
|
:'repository_version' => :'String',
|
61
|
+
:'base_path' => :'String',
|
58
62
|
:'repository' => :'String',
|
59
|
-
:'_created' => :'DateTime',
|
60
|
-
:'content_guard' => :'String',
|
61
63
|
:'_href' => :'String',
|
62
|
-
:'name' => :'String',
|
63
|
-
:'base_path' => :'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?(:'
|
84
|
-
self.
|
83
|
+
if attributes.key?(:'name')
|
84
|
+
self.name = attributes[:'name']
|
85
85
|
end
|
86
86
|
|
87
|
-
if attributes.key?(:'
|
88
|
-
self.
|
87
|
+
if attributes.key?(:'content_guard')
|
88
|
+
self.content_guard = attributes[:'content_guard']
|
89
89
|
end
|
90
90
|
|
91
91
|
if attributes.key?(:'_created')
|
92
92
|
self._created = attributes[:'_created']
|
93
93
|
end
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
95
|
+
if attributes.key?(:'repository_version')
|
96
|
+
self.repository_version = attributes[:'repository_version']
|
97
97
|
end
|
98
98
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
99
|
+
if attributes.key?(:'base_path')
|
100
|
+
self.base_path = attributes[:'base_path']
|
101
101
|
end
|
102
102
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
103
|
+
if attributes.key?(:'repository')
|
104
|
+
self.repository = attributes[:'repository']
|
105
105
|
end
|
106
106
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
107
|
+
if attributes.key?(:'_href')
|
108
|
+
self._href = attributes[:'_href']
|
109
109
|
end
|
110
110
|
|
111
111
|
if attributes.key?(:'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
|
+
content_guard == o.content_guard &&
|
217
|
+
_created == o._created &&
|
215
218
|
repository_version == o.repository_version &&
|
219
|
+
base_path == o.base_path &&
|
216
220
|
repository == o.repository &&
|
217
|
-
_created == o._created &&
|
218
|
-
content_guard == o.content_guard &&
|
219
221
|
_href == o._href &&
|
220
|
-
name == o.name &&
|
221
|
-
base_path == o.base_path &&
|
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
|
+
[name, content_guard, _created, repository_version, base_path, repository, _href, 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.
|
9
|
+
OpenAPI Generator version: 4.1.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,20 +14,20 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpDockerClient
|
16
16
|
class InlineResponse200
|
17
|
+
attr_accessor :count
|
18
|
+
|
17
19
|
attr_accessor :_next
|
18
20
|
|
19
21
|
attr_accessor :previous
|
20
22
|
|
21
|
-
attr_accessor :count
|
22
|
-
|
23
23
|
attr_accessor :results
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
|
+
:'count' => :'count',
|
28
29
|
:'_next' => :'next',
|
29
30
|
:'previous' => :'previous',
|
30
|
-
:'count' => :'count',
|
31
31
|
:'results' => :'results'
|
32
32
|
}
|
33
33
|
end
|
@@ -35,9 +35,9 @@ module PulpDockerClient
|
|
35
35
|
# Attribute type mapping.
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
|
+
:'count' => :'Integer',
|
38
39
|
:'_next' => :'String',
|
39
40
|
:'previous' => :'String',
|
40
|
-
:'count' => :'Integer',
|
41
41
|
:'results' => :'Array<Blob>'
|
42
42
|
}
|
43
43
|
end
|
@@ -57,6 +57,10 @@ module PulpDockerClient
|
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
59
59
|
|
60
|
+
if attributes.key?(:'count')
|
61
|
+
self.count = attributes[:'count']
|
62
|
+
end
|
63
|
+
|
60
64
|
if attributes.key?(:'_next')
|
61
65
|
self._next = attributes[:'_next']
|
62
66
|
end
|
@@ -65,10 +69,6 @@ module PulpDockerClient
|
|
65
69
|
self.previous = attributes[:'previous']
|
66
70
|
end
|
67
71
|
|
68
|
-
if attributes.key?(:'count')
|
69
|
-
self.count = attributes[:'count']
|
70
|
-
end
|
71
|
-
|
72
72
|
if attributes.key?(:'results')
|
73
73
|
if (value = attributes[:'results']).is_a?(Array)
|
74
74
|
self.results = value
|
@@ -104,9 +104,9 @@ module PulpDockerClient
|
|
104
104
|
def ==(o)
|
105
105
|
return true if self.equal?(o)
|
106
106
|
self.class == o.class &&
|
107
|
+
count == o.count &&
|
107
108
|
_next == o._next &&
|
108
109
|
previous == o.previous &&
|
109
|
-
count == o.count &&
|
110
110
|
results == o.results
|
111
111
|
end
|
112
112
|
|
@@ -119,7 +119,7 @@ module PulpDockerClient
|
|
119
119
|
# Calculates hash code according to all attributes.
|
120
120
|
# @return [Integer] Hash code
|
121
121
|
def hash
|
122
|
-
[_next, previous,
|
122
|
+
[count, _next, previous, results].hash
|
123
123
|
end
|
124
124
|
|
125
125
|
# 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.
|
9
|
+
OpenAPI Generator version: 4.1.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,20 +14,20 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpDockerClient
|
16
16
|
class InlineResponse2001
|
17
|
+
attr_accessor :count
|
18
|
+
|
17
19
|
attr_accessor :_next
|
18
20
|
|
19
21
|
attr_accessor :previous
|
20
22
|
|
21
|
-
attr_accessor :count
|
22
|
-
|
23
23
|
attr_accessor :results
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
|
+
:'count' => :'count',
|
28
29
|
:'_next' => :'next',
|
29
30
|
:'previous' => :'previous',
|
30
|
-
:'count' => :'count',
|
31
31
|
:'results' => :'results'
|
32
32
|
}
|
33
33
|
end
|
@@ -35,10 +35,10 @@ module PulpDockerClient
|
|
35
35
|
# Attribute type mapping.
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
|
+
:'count' => :'Integer',
|
38
39
|
:'_next' => :'String',
|
39
40
|
:'previous' => :'String',
|
40
|
-
:'
|
41
|
-
:'results' => :'Array<ManifestTag>'
|
41
|
+
:'results' => :'Array<Manifest>'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -57,6 +57,10 @@ module PulpDockerClient
|
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
59
59
|
|
60
|
+
if attributes.key?(:'count')
|
61
|
+
self.count = attributes[:'count']
|
62
|
+
end
|
63
|
+
|
60
64
|
if attributes.key?(:'_next')
|
61
65
|
self._next = attributes[:'_next']
|
62
66
|
end
|
@@ -65,10 +69,6 @@ module PulpDockerClient
|
|
65
69
|
self.previous = attributes[:'previous']
|
66
70
|
end
|
67
71
|
|
68
|
-
if attributes.key?(:'count')
|
69
|
-
self.count = attributes[:'count']
|
70
|
-
end
|
71
|
-
|
72
72
|
if attributes.key?(:'results')
|
73
73
|
if (value = attributes[:'results']).is_a?(Array)
|
74
74
|
self.results = value
|
@@ -104,9 +104,9 @@ module PulpDockerClient
|
|
104
104
|
def ==(o)
|
105
105
|
return true if self.equal?(o)
|
106
106
|
self.class == o.class &&
|
107
|
+
count == o.count &&
|
107
108
|
_next == o._next &&
|
108
109
|
previous == o.previous &&
|
109
|
-
count == o.count &&
|
110
110
|
results == o.results
|
111
111
|
end
|
112
112
|
|
@@ -119,7 +119,7 @@ module PulpDockerClient
|
|
119
119
|
# Calculates hash code according to all attributes.
|
120
120
|
# @return [Integer] Hash code
|
121
121
|
def hash
|
122
|
-
[_next, previous,
|
122
|
+
[count, _next, previous, results].hash
|
123
123
|
end
|
124
124
|
|
125
125
|
# Builds the object from hash
|