pulp_container_client 2.3.0.dev01612063510 → 2.4.0.dev01613013684
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_container_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/ContainerContainerDistribution.md +12 -8
- data/docs/ContainerContainerDistributionResponse.md +16 -12
- data/docs/DistributionsContainerApi.md +2 -0
- data/docs/PatchedcontainerContainerDistribution.md +12 -8
- 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/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 +58 -37
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +75 -54
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +53 -32
- data/lib/pulp_container_client/version.rb +1 -1
- 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 +20 -8
- data/spec/models/container_container_distribution_spec.rb +17 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +17 -5
- metadata +2 -2
@@ -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
|
@@ -144,7 +144,7 @@ module PulpContainerClient
|
|
144
144
|
end
|
145
145
|
|
146
146
|
# List repository versions
|
147
|
-
# ContainerPushRepositoryVersion represents a single container push repository version.
|
147
|
+
# 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.
|
148
148
|
# @param container_container_push_repository_href [String]
|
149
149
|
# @param [Hash] opts the optional parameters
|
150
150
|
# @option opts [String] :content content
|
@@ -173,7 +173,7 @@ module PulpContainerClient
|
|
173
173
|
end
|
174
174
|
|
175
175
|
# List repository versions
|
176
|
-
# ContainerPushRepositoryVersion represents a single container push repository version.
|
176
|
+
# 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.
|
177
177
|
# @param container_container_push_repository_href [String]
|
178
178
|
# @param [Hash] opts the optional parameters
|
179
179
|
# @option opts [String] :content content
|
@@ -382,7 +382,7 @@ module PulpContainerClient
|
|
382
382
|
end
|
383
383
|
|
384
384
|
# Inspect a repository version
|
385
|
-
# ContainerPushRepositoryVersion represents a single container push repository version.
|
385
|
+
# 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.
|
386
386
|
# @param container_container_push_repository_version_href [String]
|
387
387
|
# @param [Hash] opts the optional parameters
|
388
388
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -394,7 +394,7 @@ module PulpContainerClient
|
|
394
394
|
end
|
395
395
|
|
396
396
|
# Inspect a repository version
|
397
|
-
# ContainerPushRepositoryVersion represents a single container push repository version.
|
397
|
+
# 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.
|
398
398
|
# @param container_container_push_repository_version_href [String]
|
399
399
|
# @param [Hash] opts the optional parameters
|
400
400
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -15,52 +15,63 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
+
attr_accessor :content_guard
|
20
|
+
|
21
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
22
|
+
attr_accessor :name
|
23
|
+
|
18
24
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
25
|
attr_accessor :base_path
|
20
26
|
|
21
|
-
# The latest RepositoryVersion for this Repository will be served.
|
22
|
-
attr_accessor :repository
|
23
|
-
|
24
27
|
# RepositoryVersion to be served
|
25
28
|
attr_accessor :repository_version
|
26
29
|
|
27
|
-
|
28
|
-
attr_accessor :content_guard
|
30
|
+
attr_accessor :pulp_labels
|
29
31
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
32
|
+
# The latest RepositoryVersion for this Repository will be served.
|
33
|
+
attr_accessor :repository
|
32
34
|
|
33
|
-
|
35
|
+
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
36
|
+
attr_accessor :private
|
37
|
+
|
38
|
+
# An optional description.
|
39
|
+
attr_accessor :description
|
34
40
|
|
35
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
42
|
def self.attribute_map
|
37
43
|
{
|
38
|
-
:'base_path' => :'base_path',
|
39
|
-
:'repository' => :'repository',
|
40
|
-
:'repository_version' => :'repository_version',
|
41
44
|
:'content_guard' => :'content_guard',
|
42
45
|
:'name' => :'name',
|
43
|
-
:'
|
46
|
+
:'base_path' => :'base_path',
|
47
|
+
:'repository_version' => :'repository_version',
|
48
|
+
:'pulp_labels' => :'pulp_labels',
|
49
|
+
:'repository' => :'repository',
|
50
|
+
:'private' => :'private',
|
51
|
+
:'description' => :'description'
|
44
52
|
}
|
45
53
|
end
|
46
54
|
|
47
55
|
# Attribute type mapping.
|
48
56
|
def self.openapi_types
|
49
57
|
{
|
50
|
-
:'base_path' => :'String',
|
51
|
-
:'repository' => :'String',
|
52
|
-
:'repository_version' => :'String',
|
53
58
|
:'content_guard' => :'String',
|
54
59
|
:'name' => :'String',
|
55
|
-
:'
|
60
|
+
:'base_path' => :'String',
|
61
|
+
:'repository_version' => :'String',
|
62
|
+
:'pulp_labels' => :'Object',
|
63
|
+
:'repository' => :'String',
|
64
|
+
:'private' => :'Boolean',
|
65
|
+
:'description' => :'String'
|
56
66
|
}
|
57
67
|
end
|
58
68
|
|
59
69
|
# List of attributes with nullable: true
|
60
70
|
def self.openapi_nullable
|
61
71
|
Set.new([
|
62
|
-
:'repository',
|
63
72
|
:'repository_version',
|
73
|
+
:'repository',
|
74
|
+
:'description'
|
64
75
|
])
|
65
76
|
end
|
66
77
|
|
@@ -79,28 +90,36 @@ module PulpContainerClient
|
|
79
90
|
h[k.to_sym] = v
|
80
91
|
}
|
81
92
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
self.
|
93
|
+
if attributes.key?(:'content_guard')
|
94
|
+
self.content_guard = attributes[:'content_guard']
|
84
95
|
end
|
85
96
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
97
|
+
if attributes.key?(:'name')
|
98
|
+
self.name = attributes[:'name']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'base_path')
|
102
|
+
self.base_path = attributes[:'base_path']
|
88
103
|
end
|
89
104
|
|
90
105
|
if attributes.key?(:'repository_version')
|
91
106
|
self.repository_version = attributes[:'repository_version']
|
92
107
|
end
|
93
108
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
109
|
+
if attributes.key?(:'pulp_labels')
|
110
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
96
111
|
end
|
97
112
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
self.
|
113
|
+
if attributes.key?(:'repository')
|
114
|
+
self.repository = attributes[:'repository']
|
100
115
|
end
|
101
116
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
self.
|
117
|
+
if attributes.key?(:'private')
|
118
|
+
self.private = attributes[:'private']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.key?(:'description')
|
122
|
+
self.description = attributes[:'description']
|
104
123
|
end
|
105
124
|
end
|
106
125
|
|
@@ -108,22 +127,22 @@ module PulpContainerClient
|
|
108
127
|
# @return Array for valid properties with the reasons
|
109
128
|
def list_invalid_properties
|
110
129
|
invalid_properties = Array.new
|
111
|
-
if @base_path.nil?
|
112
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
113
|
-
end
|
114
|
-
|
115
130
|
if @name.nil?
|
116
131
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
117
132
|
end
|
118
133
|
|
134
|
+
if @base_path.nil?
|
135
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
136
|
+
end
|
137
|
+
|
119
138
|
invalid_properties
|
120
139
|
end
|
121
140
|
|
122
141
|
# Check to see if the all the properties in the model are valid
|
123
142
|
# @return true if the model is valid
|
124
143
|
def valid?
|
125
|
-
return false if @base_path.nil?
|
126
144
|
return false if @name.nil?
|
145
|
+
return false if @base_path.nil?
|
127
146
|
true
|
128
147
|
end
|
129
148
|
|
@@ -132,12 +151,14 @@ module PulpContainerClient
|
|
132
151
|
def ==(o)
|
133
152
|
return true if self.equal?(o)
|
134
153
|
self.class == o.class &&
|
135
|
-
base_path == o.base_path &&
|
136
|
-
repository == o.repository &&
|
137
|
-
repository_version == o.repository_version &&
|
138
154
|
content_guard == o.content_guard &&
|
139
155
|
name == o.name &&
|
140
|
-
|
156
|
+
base_path == o.base_path &&
|
157
|
+
repository_version == o.repository_version &&
|
158
|
+
pulp_labels == o.pulp_labels &&
|
159
|
+
repository == o.repository &&
|
160
|
+
private == o.private &&
|
161
|
+
description == o.description
|
141
162
|
end
|
142
163
|
|
143
164
|
# @see the `==` method
|
@@ -149,7 +170,7 @@ module PulpContainerClient
|
|
149
170
|
# Calculates hash code according to all attributes.
|
150
171
|
# @return [Integer] Hash code
|
151
172
|
def hash
|
152
|
-
[
|
173
|
+
[content_guard, name, base_path, repository_version, pulp_labels, repository, private, description].hash
|
153
174
|
end
|
154
175
|
|
155
176
|
# Builds the object from hash
|