pulp_container_client 2.24.1 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -4
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +14 -14
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
- data/docs/ContainerContainerPushRepository.md +2 -2
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/ContentBlobsApi.md +146 -0
- data/docs/ContentManifestsApi.md +146 -0
- data/docs/ContentSignaturesApi.md +146 -0
- data/docs/ContentTagsApi.md +146 -0
- data/docs/DistributionsContainerApi.md +6 -4
- data/docs/DistributionsPullThroughApi.md +6 -4
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +2 -2
- data/lib/pulp_container_client/api/content_blobs_api.rb +148 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +148 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +148 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +148 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +6 -3
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +6 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +54 -54
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +69 -69
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +54 -54
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +69 -69
- data/lib/pulp_container_client/models/container_container_push_repository.rb +12 -12
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -55
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +47 -47
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +47 -47
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +12 -12
- data/lib/pulp_container_client/models/unset_label.rb +1 -1
- data/lib/pulp_container_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +26 -0
- data/spec/api/content_manifests_api_spec.rb +26 -0
- data/spec/api/content_signatures_api_spec.rb +26 -0
- data/spec/api/content_tags_api_spec.rb +26 -0
- data/spec/api/distributions_container_api_spec.rb +2 -1
- data/spec/api/distributions_pull_through_api_spec.rb +2 -1
- data/spec/models/container_container_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- data/spec/models/container_container_push_repository_spec.rb +2 -2
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
- metadata +2 -2
@@ -209,5 +209,153 @@ module PulpContainerClient
|
|
209
209
|
end
|
210
210
|
return data, status_code, headers
|
211
211
|
end
|
212
|
+
|
213
|
+
# Set a label
|
214
|
+
# Set a single pulp_label on the object to a specific value or null.
|
215
|
+
# @param container_manifest_href [String]
|
216
|
+
# @param set_label [SetLabel]
|
217
|
+
# @param [Hash] opts the optional parameters
|
218
|
+
# @return [SetLabelResponse]
|
219
|
+
def set_label(container_manifest_href, set_label, opts = {})
|
220
|
+
data, _status_code, _headers = set_label_with_http_info(container_manifest_href, set_label, opts)
|
221
|
+
data
|
222
|
+
end
|
223
|
+
|
224
|
+
# Set a label
|
225
|
+
# Set a single pulp_label on the object to a specific value or null.
|
226
|
+
# @param container_manifest_href [String]
|
227
|
+
# @param set_label [SetLabel]
|
228
|
+
# @param [Hash] opts the optional parameters
|
229
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
230
|
+
def set_label_with_http_info(container_manifest_href, set_label, opts = {})
|
231
|
+
if @api_client.config.debugging
|
232
|
+
@api_client.config.logger.debug 'Calling API: ContentManifestsApi.set_label ...'
|
233
|
+
end
|
234
|
+
# verify the required parameter 'container_manifest_href' is set
|
235
|
+
if @api_client.config.client_side_validation && container_manifest_href.nil?
|
236
|
+
fail ArgumentError, "Missing the required parameter 'container_manifest_href' when calling ContentManifestsApi.set_label"
|
237
|
+
end
|
238
|
+
# verify the required parameter 'set_label' is set
|
239
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
240
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentManifestsApi.set_label"
|
241
|
+
end
|
242
|
+
# resource path
|
243
|
+
local_var_path = '{container_manifest_href}set_label/'.sub('{' + 'container_manifest_href' + '}', CGI.escape(container_manifest_href.to_s).gsub('%2F', '/'))
|
244
|
+
|
245
|
+
# query parameters
|
246
|
+
query_params = opts[:query_params] || {}
|
247
|
+
|
248
|
+
# header parameters
|
249
|
+
header_params = opts[:header_params] || {}
|
250
|
+
# HTTP header 'Accept' (if needed)
|
251
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
252
|
+
# HTTP header 'Content-Type'
|
253
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
254
|
+
if !content_type.nil?
|
255
|
+
header_params['Content-Type'] = content_type
|
256
|
+
end
|
257
|
+
|
258
|
+
# form parameters
|
259
|
+
form_params = opts[:form_params] || {}
|
260
|
+
|
261
|
+
# http body (model)
|
262
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
263
|
+
|
264
|
+
# return_type
|
265
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
266
|
+
|
267
|
+
# auth_names
|
268
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
269
|
+
|
270
|
+
new_options = opts.merge(
|
271
|
+
:operation => :"ContentManifestsApi.set_label",
|
272
|
+
:header_params => header_params,
|
273
|
+
:query_params => query_params,
|
274
|
+
:form_params => form_params,
|
275
|
+
:body => post_body,
|
276
|
+
:auth_names => auth_names,
|
277
|
+
:return_type => return_type
|
278
|
+
)
|
279
|
+
|
280
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
281
|
+
if @api_client.config.debugging
|
282
|
+
@api_client.config.logger.debug "API called: ContentManifestsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
283
|
+
end
|
284
|
+
return data, status_code, headers
|
285
|
+
end
|
286
|
+
|
287
|
+
# Unset a label
|
288
|
+
# Unset a single pulp_label on the object.
|
289
|
+
# @param container_manifest_href [String]
|
290
|
+
# @param unset_label [UnsetLabel]
|
291
|
+
# @param [Hash] opts the optional parameters
|
292
|
+
# @return [UnsetLabelResponse]
|
293
|
+
def unset_label(container_manifest_href, unset_label, opts = {})
|
294
|
+
data, _status_code, _headers = unset_label_with_http_info(container_manifest_href, unset_label, opts)
|
295
|
+
data
|
296
|
+
end
|
297
|
+
|
298
|
+
# Unset a label
|
299
|
+
# Unset a single pulp_label on the object.
|
300
|
+
# @param container_manifest_href [String]
|
301
|
+
# @param unset_label [UnsetLabel]
|
302
|
+
# @param [Hash] opts the optional parameters
|
303
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
304
|
+
def unset_label_with_http_info(container_manifest_href, unset_label, opts = {})
|
305
|
+
if @api_client.config.debugging
|
306
|
+
@api_client.config.logger.debug 'Calling API: ContentManifestsApi.unset_label ...'
|
307
|
+
end
|
308
|
+
# verify the required parameter 'container_manifest_href' is set
|
309
|
+
if @api_client.config.client_side_validation && container_manifest_href.nil?
|
310
|
+
fail ArgumentError, "Missing the required parameter 'container_manifest_href' when calling ContentManifestsApi.unset_label"
|
311
|
+
end
|
312
|
+
# verify the required parameter 'unset_label' is set
|
313
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
314
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentManifestsApi.unset_label"
|
315
|
+
end
|
316
|
+
# resource path
|
317
|
+
local_var_path = '{container_manifest_href}unset_label/'.sub('{' + 'container_manifest_href' + '}', CGI.escape(container_manifest_href.to_s).gsub('%2F', '/'))
|
318
|
+
|
319
|
+
# query parameters
|
320
|
+
query_params = opts[:query_params] || {}
|
321
|
+
|
322
|
+
# header parameters
|
323
|
+
header_params = opts[:header_params] || {}
|
324
|
+
# HTTP header 'Accept' (if needed)
|
325
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
326
|
+
# HTTP header 'Content-Type'
|
327
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
328
|
+
if !content_type.nil?
|
329
|
+
header_params['Content-Type'] = content_type
|
330
|
+
end
|
331
|
+
|
332
|
+
# form parameters
|
333
|
+
form_params = opts[:form_params] || {}
|
334
|
+
|
335
|
+
# http body (model)
|
336
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
337
|
+
|
338
|
+
# return_type
|
339
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
340
|
+
|
341
|
+
# auth_names
|
342
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
343
|
+
|
344
|
+
new_options = opts.merge(
|
345
|
+
:operation => :"ContentManifestsApi.unset_label",
|
346
|
+
:header_params => header_params,
|
347
|
+
:query_params => query_params,
|
348
|
+
:form_params => form_params,
|
349
|
+
:body => post_body,
|
350
|
+
:auth_names => auth_names,
|
351
|
+
:return_type => return_type
|
352
|
+
)
|
353
|
+
|
354
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
355
|
+
if @api_client.config.debugging
|
356
|
+
@api_client.config.logger.debug "API called: ContentManifestsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
357
|
+
end
|
358
|
+
return data, status_code, headers
|
359
|
+
end
|
212
360
|
end
|
213
361
|
end
|
@@ -232,5 +232,153 @@ module PulpContainerClient
|
|
232
232
|
end
|
233
233
|
return data, status_code, headers
|
234
234
|
end
|
235
|
+
|
236
|
+
# Set a label
|
237
|
+
# Set a single pulp_label on the object to a specific value or null.
|
238
|
+
# @param container_manifest_signature_href [String]
|
239
|
+
# @param set_label [SetLabel]
|
240
|
+
# @param [Hash] opts the optional parameters
|
241
|
+
# @return [SetLabelResponse]
|
242
|
+
def set_label(container_manifest_signature_href, set_label, opts = {})
|
243
|
+
data, _status_code, _headers = set_label_with_http_info(container_manifest_signature_href, set_label, opts)
|
244
|
+
data
|
245
|
+
end
|
246
|
+
|
247
|
+
# Set a label
|
248
|
+
# Set a single pulp_label on the object to a specific value or null.
|
249
|
+
# @param container_manifest_signature_href [String]
|
250
|
+
# @param set_label [SetLabel]
|
251
|
+
# @param [Hash] opts the optional parameters
|
252
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
253
|
+
def set_label_with_http_info(container_manifest_signature_href, set_label, opts = {})
|
254
|
+
if @api_client.config.debugging
|
255
|
+
@api_client.config.logger.debug 'Calling API: ContentSignaturesApi.set_label ...'
|
256
|
+
end
|
257
|
+
# verify the required parameter 'container_manifest_signature_href' is set
|
258
|
+
if @api_client.config.client_side_validation && container_manifest_signature_href.nil?
|
259
|
+
fail ArgumentError, "Missing the required parameter 'container_manifest_signature_href' when calling ContentSignaturesApi.set_label"
|
260
|
+
end
|
261
|
+
# verify the required parameter 'set_label' is set
|
262
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
263
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentSignaturesApi.set_label"
|
264
|
+
end
|
265
|
+
# resource path
|
266
|
+
local_var_path = '{container_manifest_signature_href}set_label/'.sub('{' + 'container_manifest_signature_href' + '}', CGI.escape(container_manifest_signature_href.to_s).gsub('%2F', '/'))
|
267
|
+
|
268
|
+
# query parameters
|
269
|
+
query_params = opts[:query_params] || {}
|
270
|
+
|
271
|
+
# header parameters
|
272
|
+
header_params = opts[:header_params] || {}
|
273
|
+
# HTTP header 'Accept' (if needed)
|
274
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
275
|
+
# HTTP header 'Content-Type'
|
276
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
277
|
+
if !content_type.nil?
|
278
|
+
header_params['Content-Type'] = content_type
|
279
|
+
end
|
280
|
+
|
281
|
+
# form parameters
|
282
|
+
form_params = opts[:form_params] || {}
|
283
|
+
|
284
|
+
# http body (model)
|
285
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
286
|
+
|
287
|
+
# return_type
|
288
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
289
|
+
|
290
|
+
# auth_names
|
291
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
292
|
+
|
293
|
+
new_options = opts.merge(
|
294
|
+
:operation => :"ContentSignaturesApi.set_label",
|
295
|
+
:header_params => header_params,
|
296
|
+
:query_params => query_params,
|
297
|
+
:form_params => form_params,
|
298
|
+
:body => post_body,
|
299
|
+
:auth_names => auth_names,
|
300
|
+
:return_type => return_type
|
301
|
+
)
|
302
|
+
|
303
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
304
|
+
if @api_client.config.debugging
|
305
|
+
@api_client.config.logger.debug "API called: ContentSignaturesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
306
|
+
end
|
307
|
+
return data, status_code, headers
|
308
|
+
end
|
309
|
+
|
310
|
+
# Unset a label
|
311
|
+
# Unset a single pulp_label on the object.
|
312
|
+
# @param container_manifest_signature_href [String]
|
313
|
+
# @param unset_label [UnsetLabel]
|
314
|
+
# @param [Hash] opts the optional parameters
|
315
|
+
# @return [UnsetLabelResponse]
|
316
|
+
def unset_label(container_manifest_signature_href, unset_label, opts = {})
|
317
|
+
data, _status_code, _headers = unset_label_with_http_info(container_manifest_signature_href, unset_label, opts)
|
318
|
+
data
|
319
|
+
end
|
320
|
+
|
321
|
+
# Unset a label
|
322
|
+
# Unset a single pulp_label on the object.
|
323
|
+
# @param container_manifest_signature_href [String]
|
324
|
+
# @param unset_label [UnsetLabel]
|
325
|
+
# @param [Hash] opts the optional parameters
|
326
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
327
|
+
def unset_label_with_http_info(container_manifest_signature_href, unset_label, opts = {})
|
328
|
+
if @api_client.config.debugging
|
329
|
+
@api_client.config.logger.debug 'Calling API: ContentSignaturesApi.unset_label ...'
|
330
|
+
end
|
331
|
+
# verify the required parameter 'container_manifest_signature_href' is set
|
332
|
+
if @api_client.config.client_side_validation && container_manifest_signature_href.nil?
|
333
|
+
fail ArgumentError, "Missing the required parameter 'container_manifest_signature_href' when calling ContentSignaturesApi.unset_label"
|
334
|
+
end
|
335
|
+
# verify the required parameter 'unset_label' is set
|
336
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
337
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentSignaturesApi.unset_label"
|
338
|
+
end
|
339
|
+
# resource path
|
340
|
+
local_var_path = '{container_manifest_signature_href}unset_label/'.sub('{' + 'container_manifest_signature_href' + '}', CGI.escape(container_manifest_signature_href.to_s).gsub('%2F', '/'))
|
341
|
+
|
342
|
+
# query parameters
|
343
|
+
query_params = opts[:query_params] || {}
|
344
|
+
|
345
|
+
# header parameters
|
346
|
+
header_params = opts[:header_params] || {}
|
347
|
+
# HTTP header 'Accept' (if needed)
|
348
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
349
|
+
# HTTP header 'Content-Type'
|
350
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
351
|
+
if !content_type.nil?
|
352
|
+
header_params['Content-Type'] = content_type
|
353
|
+
end
|
354
|
+
|
355
|
+
# form parameters
|
356
|
+
form_params = opts[:form_params] || {}
|
357
|
+
|
358
|
+
# http body (model)
|
359
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
360
|
+
|
361
|
+
# return_type
|
362
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
363
|
+
|
364
|
+
# auth_names
|
365
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
366
|
+
|
367
|
+
new_options = opts.merge(
|
368
|
+
:operation => :"ContentSignaturesApi.unset_label",
|
369
|
+
:header_params => header_params,
|
370
|
+
:query_params => query_params,
|
371
|
+
:form_params => form_params,
|
372
|
+
:body => post_body,
|
373
|
+
:auth_names => auth_names,
|
374
|
+
:return_type => return_type
|
375
|
+
)
|
376
|
+
|
377
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
378
|
+
if @api_client.config.debugging
|
379
|
+
@api_client.config.logger.debug "API called: ContentSignaturesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
380
|
+
end
|
381
|
+
return data, status_code, headers
|
382
|
+
end
|
235
383
|
end
|
236
384
|
end
|
@@ -206,5 +206,153 @@ module PulpContainerClient
|
|
206
206
|
end
|
207
207
|
return data, status_code, headers
|
208
208
|
end
|
209
|
+
|
210
|
+
# Set a label
|
211
|
+
# Set a single pulp_label on the object to a specific value or null.
|
212
|
+
# @param container_tag_href [String]
|
213
|
+
# @param set_label [SetLabel]
|
214
|
+
# @param [Hash] opts the optional parameters
|
215
|
+
# @return [SetLabelResponse]
|
216
|
+
def set_label(container_tag_href, set_label, opts = {})
|
217
|
+
data, _status_code, _headers = set_label_with_http_info(container_tag_href, set_label, opts)
|
218
|
+
data
|
219
|
+
end
|
220
|
+
|
221
|
+
# Set a label
|
222
|
+
# Set a single pulp_label on the object to a specific value or null.
|
223
|
+
# @param container_tag_href [String]
|
224
|
+
# @param set_label [SetLabel]
|
225
|
+
# @param [Hash] opts the optional parameters
|
226
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
227
|
+
def set_label_with_http_info(container_tag_href, set_label, opts = {})
|
228
|
+
if @api_client.config.debugging
|
229
|
+
@api_client.config.logger.debug 'Calling API: ContentTagsApi.set_label ...'
|
230
|
+
end
|
231
|
+
# verify the required parameter 'container_tag_href' is set
|
232
|
+
if @api_client.config.client_side_validation && container_tag_href.nil?
|
233
|
+
fail ArgumentError, "Missing the required parameter 'container_tag_href' when calling ContentTagsApi.set_label"
|
234
|
+
end
|
235
|
+
# verify the required parameter 'set_label' is set
|
236
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
237
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentTagsApi.set_label"
|
238
|
+
end
|
239
|
+
# resource path
|
240
|
+
local_var_path = '{container_tag_href}set_label/'.sub('{' + 'container_tag_href' + '}', CGI.escape(container_tag_href.to_s).gsub('%2F', '/'))
|
241
|
+
|
242
|
+
# query parameters
|
243
|
+
query_params = opts[:query_params] || {}
|
244
|
+
|
245
|
+
# header parameters
|
246
|
+
header_params = opts[:header_params] || {}
|
247
|
+
# HTTP header 'Accept' (if needed)
|
248
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
249
|
+
# HTTP header 'Content-Type'
|
250
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
251
|
+
if !content_type.nil?
|
252
|
+
header_params['Content-Type'] = content_type
|
253
|
+
end
|
254
|
+
|
255
|
+
# form parameters
|
256
|
+
form_params = opts[:form_params] || {}
|
257
|
+
|
258
|
+
# http body (model)
|
259
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
260
|
+
|
261
|
+
# return_type
|
262
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
263
|
+
|
264
|
+
# auth_names
|
265
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
266
|
+
|
267
|
+
new_options = opts.merge(
|
268
|
+
:operation => :"ContentTagsApi.set_label",
|
269
|
+
:header_params => header_params,
|
270
|
+
:query_params => query_params,
|
271
|
+
:form_params => form_params,
|
272
|
+
:body => post_body,
|
273
|
+
:auth_names => auth_names,
|
274
|
+
:return_type => return_type
|
275
|
+
)
|
276
|
+
|
277
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
278
|
+
if @api_client.config.debugging
|
279
|
+
@api_client.config.logger.debug "API called: ContentTagsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
280
|
+
end
|
281
|
+
return data, status_code, headers
|
282
|
+
end
|
283
|
+
|
284
|
+
# Unset a label
|
285
|
+
# Unset a single pulp_label on the object.
|
286
|
+
# @param container_tag_href [String]
|
287
|
+
# @param unset_label [UnsetLabel]
|
288
|
+
# @param [Hash] opts the optional parameters
|
289
|
+
# @return [UnsetLabelResponse]
|
290
|
+
def unset_label(container_tag_href, unset_label, opts = {})
|
291
|
+
data, _status_code, _headers = unset_label_with_http_info(container_tag_href, unset_label, opts)
|
292
|
+
data
|
293
|
+
end
|
294
|
+
|
295
|
+
# Unset a label
|
296
|
+
# Unset a single pulp_label on the object.
|
297
|
+
# @param container_tag_href [String]
|
298
|
+
# @param unset_label [UnsetLabel]
|
299
|
+
# @param [Hash] opts the optional parameters
|
300
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
301
|
+
def unset_label_with_http_info(container_tag_href, unset_label, opts = {})
|
302
|
+
if @api_client.config.debugging
|
303
|
+
@api_client.config.logger.debug 'Calling API: ContentTagsApi.unset_label ...'
|
304
|
+
end
|
305
|
+
# verify the required parameter 'container_tag_href' is set
|
306
|
+
if @api_client.config.client_side_validation && container_tag_href.nil?
|
307
|
+
fail ArgumentError, "Missing the required parameter 'container_tag_href' when calling ContentTagsApi.unset_label"
|
308
|
+
end
|
309
|
+
# verify the required parameter 'unset_label' is set
|
310
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
311
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentTagsApi.unset_label"
|
312
|
+
end
|
313
|
+
# resource path
|
314
|
+
local_var_path = '{container_tag_href}unset_label/'.sub('{' + 'container_tag_href' + '}', CGI.escape(container_tag_href.to_s).gsub('%2F', '/'))
|
315
|
+
|
316
|
+
# query parameters
|
317
|
+
query_params = opts[:query_params] || {}
|
318
|
+
|
319
|
+
# header parameters
|
320
|
+
header_params = opts[:header_params] || {}
|
321
|
+
# HTTP header 'Accept' (if needed)
|
322
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
323
|
+
# HTTP header 'Content-Type'
|
324
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
325
|
+
if !content_type.nil?
|
326
|
+
header_params['Content-Type'] = content_type
|
327
|
+
end
|
328
|
+
|
329
|
+
# form parameters
|
330
|
+
form_params = opts[:form_params] || {}
|
331
|
+
|
332
|
+
# http body (model)
|
333
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
334
|
+
|
335
|
+
# return_type
|
336
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
337
|
+
|
338
|
+
# auth_names
|
339
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
340
|
+
|
341
|
+
new_options = opts.merge(
|
342
|
+
:operation => :"ContentTagsApi.unset_label",
|
343
|
+
:header_params => header_params,
|
344
|
+
:query_params => query_params,
|
345
|
+
:form_params => form_params,
|
346
|
+
:body => post_body,
|
347
|
+
:auth_names => auth_names,
|
348
|
+
:return_type => return_type
|
349
|
+
)
|
350
|
+
|
351
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
352
|
+
if @api_client.config.debugging
|
353
|
+
@api_client.config.logger.debug "API called: ContentTagsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
354
|
+
end
|
355
|
+
return data, status_code, headers
|
356
|
+
end
|
209
357
|
end
|
210
358
|
end
|
@@ -231,6 +231,7 @@ module PulpContainerClient
|
|
231
231
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
232
232
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
233
233
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
234
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
234
235
|
# @option opts [Integer] :limit Number of results to return per page.
|
235
236
|
# @option opts [String] :name Filter results where name matches value
|
236
237
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -243,7 +244,7 @@ module PulpContainerClient
|
|
243
244
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
244
245
|
# @option opts [String] :namespace__name
|
245
246
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
246
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
247
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
247
248
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
248
249
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
249
250
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -267,6 +268,7 @@ module PulpContainerClient
|
|
267
268
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
268
269
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
269
270
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
271
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
270
272
|
# @option opts [Integer] :limit Number of results to return per page.
|
271
273
|
# @option opts [String] :name Filter results where name matches value
|
272
274
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -279,7 +281,7 @@ module PulpContainerClient
|
|
279
281
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
280
282
|
# @option opts [String] :namespace__name
|
281
283
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
282
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
284
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
283
285
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
284
286
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
285
287
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -295,7 +297,7 @@ module PulpContainerClient
|
|
295
297
|
if @api_client.config.debugging
|
296
298
|
@api_client.config.logger.debug 'Calling API: DistributionsContainerApi.list ...'
|
297
299
|
end
|
298
|
-
allowable_values = ["-base_path", "-description", "-hidden", "-name", "-pk", "-private", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "description", "hidden", "name", "pk", "private", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
300
|
+
allowable_values = ["-base_path", "-checkpoint", "-description", "-hidden", "-name", "-pk", "-private", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "checkpoint", "description", "hidden", "name", "pk", "private", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
299
301
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
300
302
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
301
303
|
end
|
@@ -308,6 +310,7 @@ module PulpContainerClient
|
|
308
310
|
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
309
311
|
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
310
312
|
query_params[:'base_path__in'] = @api_client.build_collection_param(opts[:'base_path__in'], :csv) if !opts[:'base_path__in'].nil?
|
313
|
+
query_params[:'checkpoint'] = opts[:'checkpoint'] if !opts[:'checkpoint'].nil?
|
311
314
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
312
315
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
313
316
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
@@ -231,6 +231,7 @@ module PulpContainerClient
|
|
231
231
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
232
232
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
233
233
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
234
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
234
235
|
# @option opts [Integer] :limit Number of results to return per page.
|
235
236
|
# @option opts [String] :name Filter results where name matches value
|
236
237
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -242,7 +243,7 @@ module PulpContainerClient
|
|
242
243
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
243
244
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
244
245
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
245
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
246
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
246
247
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
247
248
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
248
249
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -266,6 +267,7 @@ module PulpContainerClient
|
|
266
267
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
267
268
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
268
269
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
270
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
269
271
|
# @option opts [Integer] :limit Number of results to return per page.
|
270
272
|
# @option opts [String] :name Filter results where name matches value
|
271
273
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -277,7 +279,7 @@ module PulpContainerClient
|
|
277
279
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
278
280
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
279
281
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
280
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
282
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
281
283
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
282
284
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
283
285
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -293,7 +295,7 @@ module PulpContainerClient
|
|
293
295
|
if @api_client.config.debugging
|
294
296
|
@api_client.config.logger.debug 'Calling API: DistributionsPullThroughApi.list ...'
|
295
297
|
end
|
296
|
-
allowable_values = ["-base_path", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
298
|
+
allowable_values = ["-base_path", "-checkpoint", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "checkpoint", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
297
299
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
298
300
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
299
301
|
end
|
@@ -306,6 +308,7 @@ module PulpContainerClient
|
|
306
308
|
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
307
309
|
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
308
310
|
query_params[:'base_path__in'] = @api_client.build_collection_param(opts[:'base_path__in'], :csv) if !opts[:'base_path__in'].nil?
|
311
|
+
query_params[:'checkpoint'] = opts[:'checkpoint'] if !opts[:'checkpoint'].nil?
|
309
312
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
310
313
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
311
314
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|