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,11 +6,11 @@
|
|
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 '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module PulpDockerClient
|
16
16
|
class ContentBlobsApi
|
@@ -19,8 +19,8 @@ module PulpDockerClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Create a
|
23
|
-
# Create a new
|
22
|
+
# Create a blob
|
23
|
+
# Create a new Blob from a request.
|
24
24
|
# @param data [Blob]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [Blob]
|
@@ -29,8 +29,8 @@ module PulpDockerClient
|
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
# Create a
|
33
|
-
# Create a new
|
32
|
+
# Create a blob
|
33
|
+
# Create a new Blob from a request.
|
34
34
|
# @param data [Blob]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(Blob, Integer, Hash)>] Blob data, response status code and response headers
|
@@ -83,30 +83,34 @@ module PulpDockerClient
|
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
85
|
|
86
|
-
# List
|
87
|
-
# ViewSet for
|
86
|
+
# List blobs
|
87
|
+
# ViewSet for Blobs.
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
89
|
# @option opts [String] :digest Filter results where digest matches value
|
90
|
+
# @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
|
90
91
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
91
92
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
92
93
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
93
|
-
# @option opts [
|
94
|
-
# @option opts [Integer] :
|
94
|
+
# @option opts [String] :media_type
|
95
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
96
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
95
97
|
# @return [InlineResponse200]
|
96
98
|
def list(opts = {})
|
97
99
|
data, _status_code, _headers = list_with_http_info(opts)
|
98
100
|
data
|
99
101
|
end
|
100
102
|
|
101
|
-
# List
|
102
|
-
# ViewSet for
|
103
|
+
# List blobs
|
104
|
+
# ViewSet for Blobs.
|
103
105
|
# @param [Hash] opts the optional parameters
|
104
106
|
# @option opts [String] :digest Filter results where digest matches value
|
107
|
+
# @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
|
105
108
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
106
109
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
107
110
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
108
|
-
# @option opts [
|
109
|
-
# @option opts [Integer] :
|
111
|
+
# @option opts [String] :media_type
|
112
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
113
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
110
114
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
111
115
|
def list_with_http_info(opts = {})
|
112
116
|
if @api_client.config.debugging
|
@@ -118,11 +122,13 @@ module PulpDockerClient
|
|
118
122
|
# query parameters
|
119
123
|
query_params = opts[:query_params] || {}
|
120
124
|
query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
|
125
|
+
query_params[:'digest__in'] = opts[:'digest__in'] if !opts[:'digest__in'].nil?
|
121
126
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
122
127
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
123
128
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
124
|
-
query_params[:'
|
125
|
-
query_params[:'
|
129
|
+
query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
|
130
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
131
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
126
132
|
|
127
133
|
# header parameters
|
128
134
|
header_params = opts[:header_params] || {}
|
@@ -157,31 +163,31 @@ module PulpDockerClient
|
|
157
163
|
return data, status_code, headers
|
158
164
|
end
|
159
165
|
|
160
|
-
# Inspect a
|
161
|
-
# ViewSet for
|
162
|
-
# @param
|
166
|
+
# Inspect a blob
|
167
|
+
# ViewSet for Blobs.
|
168
|
+
# @param blob_href [String] URI of Blob. e.g.: /pulp/api/v3/content/docker/blobs/1/
|
163
169
|
# @param [Hash] opts the optional parameters
|
164
170
|
# @return [Blob]
|
165
|
-
def read(
|
166
|
-
data, _status_code, _headers = read_with_http_info(
|
171
|
+
def read(blob_href, opts = {})
|
172
|
+
data, _status_code, _headers = read_with_http_info(blob_href, opts)
|
167
173
|
data
|
168
174
|
end
|
169
175
|
|
170
|
-
# Inspect a
|
171
|
-
# ViewSet for
|
172
|
-
# @param
|
176
|
+
# Inspect a blob
|
177
|
+
# ViewSet for Blobs.
|
178
|
+
# @param blob_href [String] URI of Blob. e.g.: /pulp/api/v3/content/docker/blobs/1/
|
173
179
|
# @param [Hash] opts the optional parameters
|
174
180
|
# @return [Array<(Blob, Integer, Hash)>] Blob data, response status code and response headers
|
175
|
-
def read_with_http_info(
|
181
|
+
def read_with_http_info(blob_href, opts = {})
|
176
182
|
if @api_client.config.debugging
|
177
183
|
@api_client.config.logger.debug 'Calling API: ContentBlobsApi.read ...'
|
178
184
|
end
|
179
|
-
# verify the required parameter '
|
180
|
-
if @api_client.config.client_side_validation &&
|
181
|
-
fail ArgumentError, "Missing the required parameter '
|
185
|
+
# verify the required parameter 'blob_href' is set
|
186
|
+
if @api_client.config.client_side_validation && blob_href.nil?
|
187
|
+
fail ArgumentError, "Missing the required parameter 'blob_href' when calling ContentBlobsApi.read"
|
182
188
|
end
|
183
189
|
# resource path
|
184
|
-
local_var_path = '{
|
190
|
+
local_var_path = '{blob_href}'.sub('{' + 'blob_href' + '}', CGI.escape(blob_href.to_s).gsub('%2F', '/'))
|
185
191
|
|
186
192
|
# query parameters
|
187
193
|
query_params = opts[:query_params] || {}
|
@@ -6,11 +6,11 @@
|
|
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 '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module PulpDockerClient
|
16
16
|
class ContentManifestsApi
|
@@ -86,12 +86,15 @@ module PulpDockerClient
|
|
86
86
|
# List manifests
|
87
87
|
# ViewSet for Manifest.
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :digest Filter results where digest matches value
|
90
|
+
# @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
|
89
91
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
90
92
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
91
93
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
92
|
-
# @option opts [
|
93
|
-
# @option opts [Integer] :
|
94
|
-
# @
|
94
|
+
# @option opts [String] :media_type
|
95
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
96
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
97
|
+
# @return [InlineResponse2001]
|
95
98
|
def list(opts = {})
|
96
99
|
data, _status_code, _headers = list_with_http_info(opts)
|
97
100
|
data
|
@@ -100,12 +103,15 @@ module PulpDockerClient
|
|
100
103
|
# List manifests
|
101
104
|
# ViewSet for Manifest.
|
102
105
|
# @param [Hash] opts the optional parameters
|
106
|
+
# @option opts [String] :digest Filter results where digest matches value
|
107
|
+
# @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
|
103
108
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
104
109
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
105
110
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
106
|
-
# @option opts [
|
107
|
-
# @option opts [Integer] :
|
108
|
-
# @
|
111
|
+
# @option opts [String] :media_type
|
112
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
113
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
114
|
+
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
109
115
|
def list_with_http_info(opts = {})
|
110
116
|
if @api_client.config.debugging
|
111
117
|
@api_client.config.logger.debug 'Calling API: ContentManifestsApi.list ...'
|
@@ -115,11 +121,14 @@ module PulpDockerClient
|
|
115
121
|
|
116
122
|
# query parameters
|
117
123
|
query_params = opts[:query_params] || {}
|
124
|
+
query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
|
125
|
+
query_params[:'digest__in'] = opts[:'digest__in'] if !opts[:'digest__in'].nil?
|
118
126
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
119
127
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
120
128
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
121
|
-
query_params[:'
|
122
|
-
query_params[:'
|
129
|
+
query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
|
130
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
131
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
123
132
|
|
124
133
|
# header parameters
|
125
134
|
header_params = opts[:header_params] || {}
|
@@ -133,7 +142,7 @@ module PulpDockerClient
|
|
133
142
|
post_body = opts[:body]
|
134
143
|
|
135
144
|
# return_type
|
136
|
-
return_type = opts[:return_type] || '
|
145
|
+
return_type = opts[:return_type] || 'InlineResponse2001'
|
137
146
|
|
138
147
|
# auth_names
|
139
148
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -178,7 +187,7 @@ module PulpDockerClient
|
|
178
187
|
fail ArgumentError, "Missing the required parameter 'manifest_href' when calling ContentManifestsApi.read"
|
179
188
|
end
|
180
189
|
# resource path
|
181
|
-
local_var_path = '{manifest_href}'.sub('{' + 'manifest_href' + '}', manifest_href.to_s)
|
190
|
+
local_var_path = '{manifest_href}'.sub('{' + 'manifest_href' + '}', CGI.escape(manifest_href.to_s).gsub('%2F', '/'))
|
182
191
|
|
183
192
|
# query parameters
|
184
193
|
query_params = opts[:query_params] || {}
|
@@ -6,44 +6,44 @@
|
|
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 '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module PulpDockerClient
|
16
|
-
class
|
16
|
+
class ContentTagsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Create a
|
23
|
-
# Create a new
|
24
|
-
# @param data [
|
22
|
+
# Create a tag
|
23
|
+
# Create a new Tag from a request.
|
24
|
+
# @param data [Tag]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [Tag]
|
27
27
|
def create(data, opts = {})
|
28
28
|
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
# Create a
|
33
|
-
# Create a new
|
34
|
-
# @param data [
|
32
|
+
# Create a tag
|
33
|
+
# Create a new Tag from a request.
|
34
|
+
# @param data [Tag]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentTagsApi.create ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'data' is set
|
42
42
|
if @api_client.config.client_side_validation && data.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
43
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ContentTagsApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/pulp/api/v3/content/docker/
|
46
|
+
local_var_path = '/pulp/api/v3/content/docker/tags/'
|
47
47
|
|
48
48
|
# query parameters
|
49
49
|
query_params = opts[:query_params] || {}
|
@@ -62,7 +62,7 @@ module PulpDockerClient
|
|
62
62
|
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'Tag'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -78,51 +78,60 @@ module PulpDockerClient
|
|
78
78
|
|
79
79
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
80
|
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called:
|
81
|
+
@api_client.config.logger.debug "API called: ContentTagsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
85
|
|
86
|
-
# List
|
87
|
-
# ViewSet for
|
86
|
+
# List tags
|
87
|
+
# ViewSet for Tag.
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
89
|
# @option opts [String] :name Filter results where name matches value
|
90
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
90
91
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
91
92
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
92
93
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
93
|
-
# @option opts [
|
94
|
-
# @option opts [
|
95
|
-
# @
|
94
|
+
# @option opts [String] :media_type
|
95
|
+
# @option opts [String] :digest Multiple values may be separated by commas.
|
96
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
97
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
|
+
# @return [InlineResponse2002]
|
96
99
|
def list(opts = {})
|
97
100
|
data, _status_code, _headers = list_with_http_info(opts)
|
98
101
|
data
|
99
102
|
end
|
100
103
|
|
101
|
-
# List
|
102
|
-
# ViewSet for
|
104
|
+
# List tags
|
105
|
+
# ViewSet for Tag.
|
103
106
|
# @param [Hash] opts the optional parameters
|
104
107
|
# @option opts [String] :name Filter results where name matches value
|
108
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
105
109
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
106
110
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
107
111
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
108
|
-
# @option opts [
|
109
|
-
# @option opts [
|
110
|
-
# @
|
112
|
+
# @option opts [String] :media_type
|
113
|
+
# @option opts [String] :digest Multiple values may be separated by commas.
|
114
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
115
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
116
|
+
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
111
117
|
def list_with_http_info(opts = {})
|
112
118
|
if @api_client.config.debugging
|
113
|
-
@api_client.config.logger.debug 'Calling API:
|
119
|
+
@api_client.config.logger.debug 'Calling API: ContentTagsApi.list ...'
|
114
120
|
end
|
115
121
|
# resource path
|
116
|
-
local_var_path = '/pulp/api/v3/content/docker/
|
122
|
+
local_var_path = '/pulp/api/v3/content/docker/tags/'
|
117
123
|
|
118
124
|
# query parameters
|
119
125
|
query_params = opts[:query_params] || {}
|
120
126
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
127
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
121
128
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
122
129
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
123
130
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
124
|
-
query_params[:'
|
125
|
-
query_params[:'
|
131
|
+
query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
|
132
|
+
query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
|
133
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
134
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
126
135
|
|
127
136
|
# header parameters
|
128
137
|
header_params = opts[:header_params] || {}
|
@@ -136,7 +145,7 @@ module PulpDockerClient
|
|
136
145
|
post_body = opts[:body]
|
137
146
|
|
138
147
|
# return_type
|
139
|
-
return_type = opts[:return_type] || '
|
148
|
+
return_type = opts[:return_type] || 'InlineResponse2002'
|
140
149
|
|
141
150
|
# auth_names
|
142
151
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -152,36 +161,36 @@ module PulpDockerClient
|
|
152
161
|
|
153
162
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
154
163
|
if @api_client.config.debugging
|
155
|
-
@api_client.config.logger.debug "API called:
|
164
|
+
@api_client.config.logger.debug "API called: ContentTagsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
156
165
|
end
|
157
166
|
return data, status_code, headers
|
158
167
|
end
|
159
168
|
|
160
|
-
# Inspect a
|
161
|
-
# ViewSet for
|
162
|
-
# @param
|
169
|
+
# Inspect a tag
|
170
|
+
# ViewSet for Tag.
|
171
|
+
# @param tag_href [String] URI of Tag. e.g.: /pulp/api/v3/content/docker/tags/1/
|
163
172
|
# @param [Hash] opts the optional parameters
|
164
|
-
# @return [
|
165
|
-
def read(
|
166
|
-
data, _status_code, _headers = read_with_http_info(
|
173
|
+
# @return [Tag]
|
174
|
+
def read(tag_href, opts = {})
|
175
|
+
data, _status_code, _headers = read_with_http_info(tag_href, opts)
|
167
176
|
data
|
168
177
|
end
|
169
178
|
|
170
|
-
# Inspect a
|
171
|
-
# ViewSet for
|
172
|
-
# @param
|
179
|
+
# Inspect a tag
|
180
|
+
# ViewSet for Tag.
|
181
|
+
# @param tag_href [String] URI of Tag. e.g.: /pulp/api/v3/content/docker/tags/1/
|
173
182
|
# @param [Hash] opts the optional parameters
|
174
|
-
# @return [Array<(
|
175
|
-
def read_with_http_info(
|
183
|
+
# @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
|
184
|
+
def read_with_http_info(tag_href, opts = {})
|
176
185
|
if @api_client.config.debugging
|
177
|
-
@api_client.config.logger.debug 'Calling API:
|
186
|
+
@api_client.config.logger.debug 'Calling API: ContentTagsApi.read ...'
|
178
187
|
end
|
179
|
-
# verify the required parameter '
|
180
|
-
if @api_client.config.client_side_validation &&
|
181
|
-
fail ArgumentError, "Missing the required parameter '
|
188
|
+
# verify the required parameter 'tag_href' is set
|
189
|
+
if @api_client.config.client_side_validation && tag_href.nil?
|
190
|
+
fail ArgumentError, "Missing the required parameter 'tag_href' when calling ContentTagsApi.read"
|
182
191
|
end
|
183
192
|
# resource path
|
184
|
-
local_var_path = '{
|
193
|
+
local_var_path = '{tag_href}'.sub('{' + 'tag_href' + '}', CGI.escape(tag_href.to_s).gsub('%2F', '/'))
|
185
194
|
|
186
195
|
# query parameters
|
187
196
|
query_params = opts[:query_params] || {}
|
@@ -198,7 +207,7 @@ module PulpDockerClient
|
|
198
207
|
post_body = opts[:body]
|
199
208
|
|
200
209
|
# return_type
|
201
|
-
return_type = opts[:return_type] || '
|
210
|
+
return_type = opts[:return_type] || 'Tag'
|
202
211
|
|
203
212
|
# auth_names
|
204
213
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -214,7 +223,7 @@ module PulpDockerClient
|
|
214
223
|
|
215
224
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
216
225
|
if @api_client.config.debugging
|
217
|
-
@api_client.config.logger.debug "API called:
|
226
|
+
@api_client.config.logger.debug "API called: ContentTagsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
218
227
|
end
|
219
228
|
return data, status_code, headers
|
220
229
|
end
|
@@ -6,11 +6,11 @@
|
|
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 '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module PulpDockerClient
|
16
16
|
class DistributionsDockerApi
|
@@ -107,7 +107,7 @@ module PulpDockerClient
|
|
107
107
|
fail ArgumentError, "Missing the required parameter 'docker_distribution_href' when calling DistributionsDockerApi.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
|
-
local_var_path = '{docker_distribution_href}'.sub('{' + 'docker_distribution_href' + '}', docker_distribution_href.to_s)
|
110
|
+
local_var_path = '{docker_distribution_href}'.sub('{' + 'docker_distribution_href' + '}', CGI.escape(docker_distribution_href.to_s).gsub('%2F', '/'))
|
111
111
|
|
112
112
|
# query parameters
|
113
113
|
query_params = opts[:query_params] || {}
|
@@ -154,8 +154,8 @@ module PulpDockerClient
|
|
154
154
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
155
155
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
156
156
|
# @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
|
157
|
-
# @option opts [Integer] :
|
158
|
-
# @option opts [Integer] :
|
157
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
158
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
159
159
|
# @return [InlineResponse2003]
|
160
160
|
def list(opts = {})
|
161
161
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -171,8 +171,8 @@ module PulpDockerClient
|
|
171
171
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
172
172
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
173
173
|
# @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
|
174
|
-
# @option opts [Integer] :
|
175
|
-
# @option opts [Integer] :
|
174
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
175
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
176
176
|
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
177
177
|
def list_with_http_info(opts = {})
|
178
178
|
if @api_client.config.debugging
|
@@ -189,8 +189,8 @@ module PulpDockerClient
|
|
189
189
|
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
190
190
|
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
191
191
|
query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
|
192
|
-
query_params[:'
|
193
|
-
query_params[:'
|
192
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
193
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
194
194
|
|
195
195
|
# header parameters
|
196
196
|
header_params = opts[:header_params] || {}
|
@@ -255,7 +255,7 @@ module PulpDockerClient
|
|
255
255
|
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsDockerApi.partial_update"
|
256
256
|
end
|
257
257
|
# resource path
|
258
|
-
local_var_path = '{docker_distribution_href}'.sub('{' + 'docker_distribution_href' + '}', docker_distribution_href.to_s)
|
258
|
+
local_var_path = '{docker_distribution_href}'.sub('{' + 'docker_distribution_href' + '}', CGI.escape(docker_distribution_href.to_s).gsub('%2F', '/'))
|
259
259
|
|
260
260
|
# query parameters
|
261
261
|
query_params = opts[:query_params] || {}
|
@@ -319,7 +319,7 @@ module PulpDockerClient
|
|
319
319
|
fail ArgumentError, "Missing the required parameter 'docker_distribution_href' when calling DistributionsDockerApi.read"
|
320
320
|
end
|
321
321
|
# resource path
|
322
|
-
local_var_path = '{docker_distribution_href}'.sub('{' + 'docker_distribution_href' + '}', docker_distribution_href.to_s)
|
322
|
+
local_var_path = '{docker_distribution_href}'.sub('{' + 'docker_distribution_href' + '}', CGI.escape(docker_distribution_href.to_s).gsub('%2F', '/'))
|
323
323
|
|
324
324
|
# query parameters
|
325
325
|
query_params = opts[:query_params] || {}
|
@@ -387,7 +387,7 @@ module PulpDockerClient
|
|
387
387
|
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsDockerApi.update"
|
388
388
|
end
|
389
389
|
# resource path
|
390
|
-
local_var_path = '{docker_distribution_href}'.sub('{' + 'docker_distribution_href' + '}', docker_distribution_href.to_s)
|
390
|
+
local_var_path = '{docker_distribution_href}'.sub('{' + 'docker_distribution_href' + '}', CGI.escape(docker_distribution_href.to_s).gsub('%2F', '/'))
|
391
391
|
|
392
392
|
# query parameters
|
393
393
|
query_params = opts[:query_params] || {}
|