pulp_container_client 2.3.0.dev01611804271 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -10
- data/docs/ContainerContainerDistribution.md +11 -7
- data/docs/ContainerContainerDistributionResponse.md +14 -10
- data/docs/{ContentguardsContentRedirectApi.md → ContentGuardsContentRedirectApi.md} +19 -19
- data/docs/DistributionsContainerApi.md +2 -0
- data/docs/PatchedcontainerContainerDistribution.md +11 -7
- data/docs/PulpContainerNamespacesApi.md +16 -5
- data/docs/RemotesContainerApi.md +2 -0
- data/docs/RepositoriesContainerApi.md +2 -0
- data/docs/RepositoriesContainerPushApi.md +116 -2
- data/docs/RepositoriesContainerVersionsApi.md +2 -2
- data/lib/pulp_container_client.rb +1 -1
- data/lib/pulp_container_client/api/{contentguards_content_redirect_api.rb → content_guards_content_redirect_api.rb} +22 -22
- data/lib/pulp_container_client/api/distributions_container_api.rb +3 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -7
- data/lib/pulp_container_client/api/remotes_container_api.rb +3 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +3 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +147 -4
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +4 -4
- data/lib/pulp_container_client/models/container_container_distribution.rb +50 -29
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +67 -46
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +45 -24
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/{contentguards_content_redirect_api_spec.rb → content_guards_content_redirect_api_spec.rb} +6 -6
- data/spec/api/distributions_container_api_spec.rb +1 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +7 -2
- data/spec/api/remotes_container_api_spec.rb +1 -0
- data/spec/api/repositories_container_api_spec.rb +1 -0
- data/spec/api/repositories_container_push_api_spec.rb +29 -2
- data/spec/api/repositories_container_versions_api_spec.rb +2 -2
- data/spec/models/container_container_distribution_response_spec.rb +19 -7
- data/spec/models/container_container_distribution_spec.rb +17 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +17 -5
- metadata +45 -45
@@ -127,7 +127,7 @@ Name | Type | Description | Notes
|
|
127
127
|
|
128
128
|
List repository versions
|
129
129
|
|
130
|
-
ContainerPushRepositoryVersion represents a single container push repository version.
|
130
|
+
ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
|
131
131
|
|
132
132
|
### Example
|
133
133
|
|
@@ -313,7 +313,7 @@ Name | Type | Description | Notes
|
|
313
313
|
|
314
314
|
Inspect a repository version
|
315
315
|
|
316
|
-
ContainerPushRepositoryVersion represents a single container push repository version.
|
316
|
+
ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
|
317
317
|
|
318
318
|
### Example
|
319
319
|
|
@@ -61,9 +61,9 @@ require 'pulp_container_client/models/un_tag_image'
|
|
61
61
|
|
62
62
|
# APIs
|
63
63
|
require 'pulp_container_client/api/content_blobs_api'
|
64
|
+
require 'pulp_container_client/api/content_guards_content_redirect_api'
|
64
65
|
require 'pulp_container_client/api/content_manifests_api'
|
65
66
|
require 'pulp_container_client/api/content_tags_api'
|
66
|
-
require 'pulp_container_client/api/contentguards_content_redirect_api'
|
67
67
|
require 'pulp_container_client/api/distributions_container_api'
|
68
68
|
require 'pulp_container_client/api/pulp_container_namespaces_api'
|
69
69
|
require 'pulp_container_client/api/remotes_container_api'
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module PulpContainerClient
|
16
|
-
class
|
16
|
+
class ContentGuardsContentRedirectApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -36,14 +36,14 @@ module PulpContainerClient
|
|
36
36
|
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
37
37
|
def create_with_http_info(container_content_redirect_content_guard, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentGuardsContentRedirectApi.create ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'container_content_redirect_content_guard' is set
|
42
42
|
if @api_client.config.client_side_validation && container_content_redirect_content_guard.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard' when calling
|
43
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard' when calling ContentGuardsContentRedirectApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/pulp/api/v3/
|
46
|
+
local_var_path = '/pulp/api/v3/content_guards/container/content_redirect/'
|
47
47
|
|
48
48
|
# query parameters
|
49
49
|
query_params = opts[:query_params] || {}
|
@@ -78,7 +78,7 @@ module PulpContainerClient
|
|
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: ContentGuardsContentRedirectApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
@@ -100,11 +100,11 @@ module PulpContainerClient
|
|
100
100
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
101
101
|
def delete_with_http_info(container_content_redirect_content_guard_href, opts = {})
|
102
102
|
if @api_client.config.debugging
|
103
|
-
@api_client.config.logger.debug 'Calling API:
|
103
|
+
@api_client.config.logger.debug 'Calling API: ContentGuardsContentRedirectApi.delete ...'
|
104
104
|
end
|
105
105
|
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
106
106
|
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
107
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling
|
107
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentGuardsContentRedirectApi.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
110
|
local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
@@ -138,7 +138,7 @@ module PulpContainerClient
|
|
138
138
|
|
139
139
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
140
140
|
if @api_client.config.debugging
|
141
|
-
@api_client.config.logger.debug "API called:
|
141
|
+
@api_client.config.logger.debug "API called: ContentGuardsContentRedirectApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
142
|
end
|
143
143
|
return data, status_code, headers
|
144
144
|
end
|
@@ -178,10 +178,10 @@ module PulpContainerClient
|
|
178
178
|
# @return [Array<(PaginatedcontainerContentRedirectContentGuardResponseList, Integer, Hash)>] PaginatedcontainerContentRedirectContentGuardResponseList data, response status code and response headers
|
179
179
|
def list_with_http_info(opts = {})
|
180
180
|
if @api_client.config.debugging
|
181
|
-
@api_client.config.logger.debug 'Calling API:
|
181
|
+
@api_client.config.logger.debug 'Calling API: ContentGuardsContentRedirectApi.list ...'
|
182
182
|
end
|
183
183
|
# resource path
|
184
|
-
local_var_path = '/pulp/api/v3/
|
184
|
+
local_var_path = '/pulp/api/v3/content_guards/container/content_redirect/'
|
185
185
|
|
186
186
|
# query parameters
|
187
187
|
query_params = opts[:query_params] || {}
|
@@ -224,7 +224,7 @@ module PulpContainerClient
|
|
224
224
|
|
225
225
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
226
226
|
if @api_client.config.debugging
|
227
|
-
@api_client.config.logger.debug "API called:
|
227
|
+
@api_client.config.logger.debug "API called: ContentGuardsContentRedirectApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
228
228
|
end
|
229
229
|
return data, status_code, headers
|
230
230
|
end
|
@@ -248,15 +248,15 @@ module PulpContainerClient
|
|
248
248
|
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
249
249
|
def partial_update_with_http_info(container_content_redirect_content_guard_href, patchedcontainer_content_redirect_content_guard, opts = {})
|
250
250
|
if @api_client.config.debugging
|
251
|
-
@api_client.config.logger.debug 'Calling API:
|
251
|
+
@api_client.config.logger.debug 'Calling API: ContentGuardsContentRedirectApi.partial_update ...'
|
252
252
|
end
|
253
253
|
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
254
254
|
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
255
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling
|
255
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentGuardsContentRedirectApi.partial_update"
|
256
256
|
end
|
257
257
|
# verify the required parameter 'patchedcontainer_content_redirect_content_guard' is set
|
258
258
|
if @api_client.config.client_side_validation && patchedcontainer_content_redirect_content_guard.nil?
|
259
|
-
fail ArgumentError, "Missing the required parameter 'patchedcontainer_content_redirect_content_guard' when calling
|
259
|
+
fail ArgumentError, "Missing the required parameter 'patchedcontainer_content_redirect_content_guard' when calling ContentGuardsContentRedirectApi.partial_update"
|
260
260
|
end
|
261
261
|
# resource path
|
262
262
|
local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
@@ -294,7 +294,7 @@ module PulpContainerClient
|
|
294
294
|
|
295
295
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
296
296
|
if @api_client.config.debugging
|
297
|
-
@api_client.config.logger.debug "API called:
|
297
|
+
@api_client.config.logger.debug "API called: ContentGuardsContentRedirectApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
298
298
|
end
|
299
299
|
return data, status_code, headers
|
300
300
|
end
|
@@ -320,11 +320,11 @@ module PulpContainerClient
|
|
320
320
|
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
321
321
|
def read_with_http_info(container_content_redirect_content_guard_href, opts = {})
|
322
322
|
if @api_client.config.debugging
|
323
|
-
@api_client.config.logger.debug 'Calling API:
|
323
|
+
@api_client.config.logger.debug 'Calling API: ContentGuardsContentRedirectApi.read ...'
|
324
324
|
end
|
325
325
|
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
326
326
|
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
327
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling
|
327
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentGuardsContentRedirectApi.read"
|
328
328
|
end
|
329
329
|
# resource path
|
330
330
|
local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
@@ -362,7 +362,7 @@ module PulpContainerClient
|
|
362
362
|
|
363
363
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
364
364
|
if @api_client.config.debugging
|
365
|
-
@api_client.config.logger.debug "API called:
|
365
|
+
@api_client.config.logger.debug "API called: ContentGuardsContentRedirectApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
366
366
|
end
|
367
367
|
return data, status_code, headers
|
368
368
|
end
|
@@ -386,15 +386,15 @@ module PulpContainerClient
|
|
386
386
|
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
387
387
|
def update_with_http_info(container_content_redirect_content_guard_href, container_content_redirect_content_guard, opts = {})
|
388
388
|
if @api_client.config.debugging
|
389
|
-
@api_client.config.logger.debug 'Calling API:
|
389
|
+
@api_client.config.logger.debug 'Calling API: ContentGuardsContentRedirectApi.update ...'
|
390
390
|
end
|
391
391
|
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
392
392
|
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
393
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling
|
393
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentGuardsContentRedirectApi.update"
|
394
394
|
end
|
395
395
|
# verify the required parameter 'container_content_redirect_content_guard' is set
|
396
396
|
if @api_client.config.client_side_validation && container_content_redirect_content_guard.nil?
|
397
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard' when calling
|
397
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard' when calling ContentGuardsContentRedirectApi.update"
|
398
398
|
end
|
399
399
|
# resource path
|
400
400
|
local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
@@ -432,7 +432,7 @@ module PulpContainerClient
|
|
432
432
|
|
433
433
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
434
434
|
if @api_client.config.debugging
|
435
|
-
@api_client.config.logger.debug "API called:
|
435
|
+
@api_client.config.logger.debug "API called: ContentGuardsContentRedirectApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
436
436
|
end
|
437
437
|
return data, status_code, headers
|
438
438
|
end
|
@@ -161,6 +161,7 @@ module PulpContainerClient
|
|
161
161
|
# @option opts [String] :namespace__name namespace__name
|
162
162
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
163
163
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
164
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
164
165
|
# @option opts [String] :fields A list of fields to include in the response.
|
165
166
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
166
167
|
# @return [PaginatedcontainerContainerDistributionResponseList]
|
@@ -185,6 +186,7 @@ module PulpContainerClient
|
|
185
186
|
# @option opts [String] :namespace__name namespace__name
|
186
187
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
187
188
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
189
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
188
190
|
# @option opts [String] :fields A list of fields to include in the response.
|
189
191
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
190
192
|
# @return [Array<(PaginatedcontainerContainerDistributionResponseList, Integer, Hash)>] PaginatedcontainerContainerDistributionResponseList data, response status code and response headers
|
@@ -210,6 +212,7 @@ module PulpContainerClient
|
|
210
212
|
query_params[:'namespace__name'] = opts[:'namespace__name'] if !opts[:'namespace__name'].nil?
|
211
213
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
212
214
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
215
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
213
216
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
214
217
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
215
218
|
|
@@ -84,20 +84,20 @@ module PulpContainerClient
|
|
84
84
|
end
|
85
85
|
|
86
86
|
# Delete a container namespace
|
87
|
-
#
|
87
|
+
# Trigger an asynchronous delete task
|
88
88
|
# @param container_container_namespace_href [String]
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
|
-
# @return [
|
90
|
+
# @return [AsyncOperationResponse]
|
91
91
|
def delete(container_container_namespace_href, opts = {})
|
92
|
-
delete_with_http_info(container_container_namespace_href, opts)
|
93
|
-
|
92
|
+
data, _status_code, _headers = delete_with_http_info(container_container_namespace_href, opts)
|
93
|
+
data
|
94
94
|
end
|
95
95
|
|
96
96
|
# Delete a container namespace
|
97
|
-
#
|
97
|
+
# Trigger an asynchronous delete task
|
98
98
|
# @param container_container_namespace_href [String]
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
|
-
# @return [Array<(
|
100
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
101
101
|
def delete_with_http_info(container_container_namespace_href, opts = {})
|
102
102
|
if @api_client.config.debugging
|
103
103
|
@api_client.config.logger.debug 'Calling API: PulpContainerNamespacesApi.delete ...'
|
@@ -114,6 +114,8 @@ module PulpContainerClient
|
|
114
114
|
|
115
115
|
# header parameters
|
116
116
|
header_params = opts[:header_params] || {}
|
117
|
+
# HTTP header 'Accept' (if needed)
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
117
119
|
|
118
120
|
# form parameters
|
119
121
|
form_params = opts[:form_params] || {}
|
@@ -122,7 +124,7 @@ module PulpContainerClient
|
|
122
124
|
post_body = opts[:body]
|
123
125
|
|
124
126
|
# return_type
|
125
|
-
return_type = opts[:return_type]
|
127
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
126
128
|
|
127
129
|
# auth_names
|
128
130
|
auth_names = opts[:auth_names] || ['basicAuth']
|
@@ -147,6 +149,11 @@ module PulpContainerClient
|
|
147
149
|
# ViewSet for ContainerNamespaces.
|
148
150
|
# @param [Hash] opts the optional parameters
|
149
151
|
# @option opts [Integer] :limit Number of results to return per page.
|
152
|
+
# @option opts [String] :name name
|
153
|
+
# @option opts [String] :name__contains name__contains
|
154
|
+
# @option opts [String] :name__icontains name__icontains
|
155
|
+
# @option opts [String] :name__in name__in
|
156
|
+
# @option opts [String] :name__startswith name__startswith
|
150
157
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
151
158
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
152
159
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -161,6 +168,11 @@ module PulpContainerClient
|
|
161
168
|
# ViewSet for ContainerNamespaces.
|
162
169
|
# @param [Hash] opts the optional parameters
|
163
170
|
# @option opts [Integer] :limit Number of results to return per page.
|
171
|
+
# @option opts [String] :name name
|
172
|
+
# @option opts [String] :name__contains name__contains
|
173
|
+
# @option opts [String] :name__icontains name__icontains
|
174
|
+
# @option opts [String] :name__in name__in
|
175
|
+
# @option opts [String] :name__startswith name__startswith
|
164
176
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
165
177
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
166
178
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -176,6 +188,11 @@ module PulpContainerClient
|
|
176
188
|
# query parameters
|
177
189
|
query_params = opts[:query_params] || {}
|
178
190
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
191
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
192
|
+
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
193
|
+
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
194
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
195
|
+
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
179
196
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
180
197
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
181
198
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
@@ -156,6 +156,7 @@ module PulpContainerClient
|
|
156
156
|
# @option opts [String] :name__startswith name__startswith
|
157
157
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
158
158
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
159
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
159
160
|
# @option opts [String] :pulp_last_updated pulp_last_updated
|
160
161
|
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
161
162
|
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
@@ -181,6 +182,7 @@ module PulpContainerClient
|
|
181
182
|
# @option opts [String] :name__startswith name__startswith
|
182
183
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
183
184
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
185
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
184
186
|
# @option opts [String] :pulp_last_updated pulp_last_updated
|
185
187
|
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
186
188
|
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
@@ -207,6 +209,7 @@ module PulpContainerClient
|
|
207
209
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
208
210
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
209
211
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
212
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
210
213
|
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
211
214
|
query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
|
212
215
|
query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
|
@@ -442,6 +442,7 @@ module PulpContainerClient
|
|
442
442
|
# @option opts [String] :name__startswith name__startswith
|
443
443
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
444
444
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
445
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
445
446
|
# @option opts [String] :fields A list of fields to include in the response.
|
446
447
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
447
448
|
# @return [PaginatedcontainerContainerRepositoryResponseList]
|
@@ -461,6 +462,7 @@ module PulpContainerClient
|
|
461
462
|
# @option opts [String] :name__startswith name__startswith
|
462
463
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
463
464
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
465
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
464
466
|
# @option opts [String] :fields A list of fields to include in the response.
|
465
467
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
466
468
|
# @return [Array<(PaginatedcontainerContainerRepositoryResponseList, Integer, Hash)>] PaginatedcontainerContainerRepositoryResponseList data, response status code and response headers
|
@@ -481,6 +483,7 @@ module PulpContainerClient
|
|
481
483
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
482
484
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
483
485
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
486
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
484
487
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
485
488
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
486
489
|
|
@@ -20,7 +20,7 @@ module PulpContainerClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# List container push repositorys
|
23
|
-
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal
|
23
|
+
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [Integer] :limit Number of results to return per page.
|
26
26
|
# @option opts [String] :name name
|
@@ -30,6 +30,7 @@ module PulpContainerClient
|
|
30
30
|
# @option opts [String] :name__startswith name__startswith
|
31
31
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
32
32
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
33
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
33
34
|
# @option opts [String] :fields A list of fields to include in the response.
|
34
35
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
35
36
|
# @return [PaginatedcontainerContainerPushRepositoryResponseList]
|
@@ -39,7 +40,7 @@ module PulpContainerClient
|
|
39
40
|
end
|
40
41
|
|
41
42
|
# List container push repositorys
|
42
|
-
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal
|
43
|
+
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
|
43
44
|
# @param [Hash] opts the optional parameters
|
44
45
|
# @option opts [Integer] :limit Number of results to return per page.
|
45
46
|
# @option opts [String] :name name
|
@@ -49,6 +50,7 @@ module PulpContainerClient
|
|
49
50
|
# @option opts [String] :name__startswith name__startswith
|
50
51
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
51
52
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
53
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
52
54
|
# @option opts [String] :fields A list of fields to include in the response.
|
53
55
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
54
56
|
# @return [Array<(PaginatedcontainerContainerPushRepositoryResponseList, Integer, Hash)>] PaginatedcontainerContainerPushRepositoryResponseList data, response status code and response headers
|
@@ -69,6 +71,7 @@ module PulpContainerClient
|
|
69
71
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
70
72
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
71
73
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
74
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
72
75
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
73
76
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
74
77
|
|
@@ -106,7 +109,7 @@ module PulpContainerClient
|
|
106
109
|
end
|
107
110
|
|
108
111
|
# Inspect a container push repository
|
109
|
-
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal
|
112
|
+
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
|
110
113
|
# @param container_container_push_repository_href [String]
|
111
114
|
# @param [Hash] opts the optional parameters
|
112
115
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -118,7 +121,7 @@ module PulpContainerClient
|
|
118
121
|
end
|
119
122
|
|
120
123
|
# Inspect a container push repository
|
121
|
-
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal
|
124
|
+
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
|
122
125
|
# @param container_container_push_repository_href [String]
|
123
126
|
# @param [Hash] opts the optional parameters
|
124
127
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -172,5 +175,145 @@ module PulpContainerClient
|
|
172
175
|
end
|
173
176
|
return data, status_code, headers
|
174
177
|
end
|
178
|
+
|
179
|
+
# Create a Tag
|
180
|
+
# Trigger an asynchronous task to tag an image in the repository
|
181
|
+
# @param container_container_push_repository_href [String]
|
182
|
+
# @param tag_image [TagImage]
|
183
|
+
# @param [Hash] opts the optional parameters
|
184
|
+
# @return [AsyncOperationResponse]
|
185
|
+
def tag(container_container_push_repository_href, tag_image, opts = {})
|
186
|
+
data, _status_code, _headers = tag_with_http_info(container_container_push_repository_href, tag_image, opts)
|
187
|
+
data
|
188
|
+
end
|
189
|
+
|
190
|
+
# Create a Tag
|
191
|
+
# Trigger an asynchronous task to tag an image in the repository
|
192
|
+
# @param container_container_push_repository_href [String]
|
193
|
+
# @param tag_image [TagImage]
|
194
|
+
# @param [Hash] opts the optional parameters
|
195
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
196
|
+
def tag_with_http_info(container_container_push_repository_href, tag_image, opts = {})
|
197
|
+
if @api_client.config.debugging
|
198
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.tag ...'
|
199
|
+
end
|
200
|
+
# verify the required parameter 'container_container_push_repository_href' is set
|
201
|
+
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
202
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.tag"
|
203
|
+
end
|
204
|
+
# verify the required parameter 'tag_image' is set
|
205
|
+
if @api_client.config.client_side_validation && tag_image.nil?
|
206
|
+
fail ArgumentError, "Missing the required parameter 'tag_image' when calling RepositoriesContainerPushApi.tag"
|
207
|
+
end
|
208
|
+
# resource path
|
209
|
+
local_var_path = '{container_container_push_repository_href}tag/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
|
210
|
+
|
211
|
+
# query parameters
|
212
|
+
query_params = opts[:query_params] || {}
|
213
|
+
|
214
|
+
# header parameters
|
215
|
+
header_params = opts[:header_params] || {}
|
216
|
+
# HTTP header 'Accept' (if needed)
|
217
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
218
|
+
# HTTP header 'Content-Type'
|
219
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
220
|
+
|
221
|
+
# form parameters
|
222
|
+
form_params = opts[:form_params] || {}
|
223
|
+
|
224
|
+
# http body (model)
|
225
|
+
post_body = opts[:body] || @api_client.object_to_http_body(tag_image)
|
226
|
+
|
227
|
+
# return_type
|
228
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
229
|
+
|
230
|
+
# auth_names
|
231
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
232
|
+
|
233
|
+
new_options = opts.merge(
|
234
|
+
:header_params => header_params,
|
235
|
+
:query_params => query_params,
|
236
|
+
:form_params => form_params,
|
237
|
+
:body => post_body,
|
238
|
+
:auth_names => auth_names,
|
239
|
+
:return_type => return_type
|
240
|
+
)
|
241
|
+
|
242
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
243
|
+
if @api_client.config.debugging
|
244
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerPushApi#tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
245
|
+
end
|
246
|
+
return data, status_code, headers
|
247
|
+
end
|
248
|
+
|
249
|
+
# Delete a tag
|
250
|
+
# Trigger an asynchronous task to untag an image in the repository
|
251
|
+
# @param container_container_push_repository_href [String]
|
252
|
+
# @param un_tag_image [UnTagImage]
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @return [AsyncOperationResponse]
|
255
|
+
def untag(container_container_push_repository_href, un_tag_image, opts = {})
|
256
|
+
data, _status_code, _headers = untag_with_http_info(container_container_push_repository_href, un_tag_image, opts)
|
257
|
+
data
|
258
|
+
end
|
259
|
+
|
260
|
+
# Delete a tag
|
261
|
+
# Trigger an asynchronous task to untag an image in the repository
|
262
|
+
# @param container_container_push_repository_href [String]
|
263
|
+
# @param un_tag_image [UnTagImage]
|
264
|
+
# @param [Hash] opts the optional parameters
|
265
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
266
|
+
def untag_with_http_info(container_container_push_repository_href, un_tag_image, opts = {})
|
267
|
+
if @api_client.config.debugging
|
268
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.untag ...'
|
269
|
+
end
|
270
|
+
# verify the required parameter 'container_container_push_repository_href' is set
|
271
|
+
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
272
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.untag"
|
273
|
+
end
|
274
|
+
# verify the required parameter 'un_tag_image' is set
|
275
|
+
if @api_client.config.client_side_validation && un_tag_image.nil?
|
276
|
+
fail ArgumentError, "Missing the required parameter 'un_tag_image' when calling RepositoriesContainerPushApi.untag"
|
277
|
+
end
|
278
|
+
# resource path
|
279
|
+
local_var_path = '{container_container_push_repository_href}untag/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
|
280
|
+
|
281
|
+
# query parameters
|
282
|
+
query_params = opts[:query_params] || {}
|
283
|
+
|
284
|
+
# header parameters
|
285
|
+
header_params = opts[:header_params] || {}
|
286
|
+
# HTTP header 'Accept' (if needed)
|
287
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
288
|
+
# HTTP header 'Content-Type'
|
289
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
290
|
+
|
291
|
+
# form parameters
|
292
|
+
form_params = opts[:form_params] || {}
|
293
|
+
|
294
|
+
# http body (model)
|
295
|
+
post_body = opts[:body] || @api_client.object_to_http_body(un_tag_image)
|
296
|
+
|
297
|
+
# return_type
|
298
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
299
|
+
|
300
|
+
# auth_names
|
301
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
302
|
+
|
303
|
+
new_options = opts.merge(
|
304
|
+
:header_params => header_params,
|
305
|
+
:query_params => query_params,
|
306
|
+
:form_params => form_params,
|
307
|
+
:body => post_body,
|
308
|
+
:auth_names => auth_names,
|
309
|
+
:return_type => return_type
|
310
|
+
)
|
311
|
+
|
312
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
313
|
+
if @api_client.config.debugging
|
314
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerPushApi#untag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
315
|
+
end
|
316
|
+
return data, status_code, headers
|
317
|
+
end
|
175
318
|
end
|
176
319
|
end
|