pulp_container_client 2.24.1 → 2.24.3

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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -4
  3. data/docs/ContainerContainerDistribution.md +4 -4
  4. data/docs/ContainerContainerDistributionResponse.md +10 -10
  5. data/docs/ContainerContainerPullThroughDistribution.md +4 -4
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  7. data/docs/ContainerContainerPushRepository.md +7 -7
  8. data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
  9. data/docs/ContentBlobsApi.md +158 -0
  10. data/docs/ContentManifestsApi.md +158 -0
  11. data/docs/ContentSignaturesApi.md +158 -0
  12. data/docs/ContentTagsApi.md +158 -0
  13. data/docs/DistributionsContainerApi.md +76 -34
  14. data/docs/DistributionsPullThroughApi.md +76 -34
  15. data/docs/PatchedcontainerContainerDistribution.md +4 -4
  16. data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
  17. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  18. data/docs/PulpContainerNamespacesApi.md +40 -16
  19. data/docs/RemotesContainerApi.md +72 -32
  20. data/docs/RemotesPullThroughApi.md +72 -32
  21. data/docs/RepositoriesContainerApi.md +138 -64
  22. data/docs/RepositoriesContainerPushApi.md +80 -36
  23. data/docs/RepositoriesContainerPushVersionsApi.md +22 -10
  24. data/docs/RepositoriesContainerVersionsApi.md +22 -10
  25. data/docs/TokenApi.md +14 -5
  26. data/lib/pulp_container_client/api/content_blobs_api.rb +160 -0
  27. data/lib/pulp_container_client/api/content_manifests_api.rb +160 -0
  28. data/lib/pulp_container_client/api/content_signatures_api.rb +160 -0
  29. data/lib/pulp_container_client/api/content_tags_api.rb +160 -0
  30. data/lib/pulp_container_client/api/distributions_container_api.rb +42 -3
  31. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +42 -3
  32. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -0
  33. data/lib/pulp_container_client/api/remotes_container_api.rb +36 -0
  34. data/lib/pulp_container_client/api/remotes_pull_through_api.rb +36 -0
  35. data/lib/pulp_container_client/api/repositories_container_api.rb +63 -0
  36. data/lib/pulp_container_client/api/repositories_container_push_api.rb +39 -0
  37. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +15 -3
  38. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +15 -3
  39. data/lib/pulp_container_client/api/token_api.rb +9 -0
  40. data/lib/pulp_container_client/models/container_container_distribution.rb +22 -22
  41. data/lib/pulp_container_client/models/container_container_distribution_response.rb +49 -49
  42. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +22 -22
  43. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +49 -49
  44. data/lib/pulp_container_client/models/container_container_push_repository.rb +46 -46
  45. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +69 -69
  46. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +22 -22
  47. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +22 -22
  48. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +46 -46
  49. data/lib/pulp_container_client/models/unset_label.rb +1 -1
  50. data/lib/pulp_container_client/models/unset_label_response.rb +1 -1
  51. data/lib/pulp_container_client/version.rb +1 -1
  52. data/pulp_container_client.gemspec +0 -1
  53. data/spec/api/content_blobs_api_spec.rb +30 -0
  54. data/spec/api/content_manifests_api_spec.rb +30 -0
  55. data/spec/api/content_signatures_api_spec.rb +30 -0
  56. data/spec/api/content_tags_api_spec.rb +30 -0
  57. data/spec/api/distributions_container_api_spec.rb +14 -1
  58. data/spec/api/distributions_pull_through_api_spec.rb +14 -1
  59. data/spec/api/pulp_container_namespaces_api_spec.rb +8 -0
  60. data/spec/api/remotes_container_api_spec.rb +12 -0
  61. data/spec/api/remotes_pull_through_api_spec.rb +12 -0
  62. data/spec/api/repositories_container_api_spec.rb +21 -0
  63. data/spec/api/repositories_container_push_api_spec.rb +13 -0
  64. data/spec/api/repositories_container_push_versions_api_spec.rb +5 -1
  65. data/spec/api/repositories_container_versions_api_spec.rb +5 -1
  66. data/spec/api/token_api_spec.rb +3 -0
  67. data/spec/models/container_container_distribution_response_spec.rb +11 -11
  68. data/spec/models/container_container_distribution_spec.rb +5 -5
  69. data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
  70. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  71. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  72. data/spec/models/container_container_push_repository_spec.rb +4 -4
  73. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  74. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  75. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  76. metadata +60 -80
@@ -22,6 +22,7 @@ module PulpContainerClient
22
22
  # List manifest signatures
23
23
  # ViewSet for image signatures.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
25
26
  # @option opts [String] :digest Filter results where digest matches value
26
27
  # @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
27
28
  # @option opts [String] :key_id Filter results where key_id matches value
@@ -59,6 +60,7 @@ module PulpContainerClient
59
60
  # List manifest signatures
60
61
  # ViewSet for image signatures.
61
62
  # @param [Hash] opts the optional parameters
63
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
62
64
  # @option opts [String] :digest Filter results where digest matches value
63
65
  # @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
64
66
  # @option opts [String] :key_id Filter results where key_id matches value
@@ -134,6 +136,7 @@ module PulpContainerClient
134
136
  header_params = opts[:header_params] || {}
135
137
  # HTTP header 'Accept' (if needed)
136
138
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
139
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
137
140
 
138
141
  # form parameters
139
142
  form_params = opts[:form_params] || {}
@@ -168,6 +171,7 @@ module PulpContainerClient
168
171
  # ViewSet for image signatures.
169
172
  # @param container_manifest_signature_href [String]
170
173
  # @param [Hash] opts the optional parameters
174
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
171
175
  # @option opts [Array<String>] :fields A list of fields to include in the response.
172
176
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
173
177
  # @return [ContainerManifestSignatureResponse]
@@ -180,6 +184,7 @@ module PulpContainerClient
180
184
  # ViewSet for image signatures.
181
185
  # @param container_manifest_signature_href [String]
182
186
  # @param [Hash] opts the optional parameters
187
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
183
188
  # @option opts [Array<String>] :fields A list of fields to include in the response.
184
189
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
185
190
  # @return [Array<(ContainerManifestSignatureResponse, Integer, Hash)>] ContainerManifestSignatureResponse data, response status code and response headers
@@ -203,6 +208,7 @@ module PulpContainerClient
203
208
  header_params = opts[:header_params] || {}
204
209
  # HTTP header 'Accept' (if needed)
205
210
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
211
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
206
212
 
207
213
  # form parameters
208
214
  form_params = opts[:form_params] || {}
@@ -232,5 +238,159 @@ module PulpContainerClient
232
238
  end
233
239
  return data, status_code, headers
234
240
  end
241
+
242
+ # Set a label
243
+ # Set a single pulp_label on the object to a specific value or null.
244
+ # @param container_manifest_signature_href [String]
245
+ # @param set_label [SetLabel]
246
+ # @param [Hash] opts the optional parameters
247
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
248
+ # @return [SetLabelResponse]
249
+ def set_label(container_manifest_signature_href, set_label, opts = {})
250
+ data, _status_code, _headers = set_label_with_http_info(container_manifest_signature_href, set_label, opts)
251
+ data
252
+ end
253
+
254
+ # Set a label
255
+ # Set a single pulp_label on the object to a specific value or null.
256
+ # @param container_manifest_signature_href [String]
257
+ # @param set_label [SetLabel]
258
+ # @param [Hash] opts the optional parameters
259
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
260
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
261
+ def set_label_with_http_info(container_manifest_signature_href, set_label, opts = {})
262
+ if @api_client.config.debugging
263
+ @api_client.config.logger.debug 'Calling API: ContentSignaturesApi.set_label ...'
264
+ end
265
+ # verify the required parameter 'container_manifest_signature_href' is set
266
+ if @api_client.config.client_side_validation && container_manifest_signature_href.nil?
267
+ fail ArgumentError, "Missing the required parameter 'container_manifest_signature_href' when calling ContentSignaturesApi.set_label"
268
+ end
269
+ # verify the required parameter 'set_label' is set
270
+ if @api_client.config.client_side_validation && set_label.nil?
271
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentSignaturesApi.set_label"
272
+ end
273
+ # resource path
274
+ local_var_path = '{container_manifest_signature_href}set_label/'.sub('{' + 'container_manifest_signature_href' + '}', CGI.escape(container_manifest_signature_href.to_s).gsub('%2F', '/'))
275
+
276
+ # query parameters
277
+ query_params = opts[:query_params] || {}
278
+
279
+ # header parameters
280
+ header_params = opts[:header_params] || {}
281
+ # HTTP header 'Accept' (if needed)
282
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
283
+ # HTTP header 'Content-Type'
284
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
285
+ if !content_type.nil?
286
+ header_params['Content-Type'] = content_type
287
+ end
288
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
289
+
290
+ # form parameters
291
+ form_params = opts[:form_params] || {}
292
+
293
+ # http body (model)
294
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
295
+
296
+ # return_type
297
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
298
+
299
+ # auth_names
300
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
301
+
302
+ new_options = opts.merge(
303
+ :operation => :"ContentSignaturesApi.set_label",
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: ContentSignaturesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
315
+ end
316
+ return data, status_code, headers
317
+ end
318
+
319
+ # Unset a label
320
+ # Unset a single pulp_label on the object.
321
+ # @param container_manifest_signature_href [String]
322
+ # @param unset_label [UnsetLabel]
323
+ # @param [Hash] opts the optional parameters
324
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
325
+ # @return [UnsetLabelResponse]
326
+ def unset_label(container_manifest_signature_href, unset_label, opts = {})
327
+ data, _status_code, _headers = unset_label_with_http_info(container_manifest_signature_href, unset_label, opts)
328
+ data
329
+ end
330
+
331
+ # Unset a label
332
+ # Unset a single pulp_label on the object.
333
+ # @param container_manifest_signature_href [String]
334
+ # @param unset_label [UnsetLabel]
335
+ # @param [Hash] opts the optional parameters
336
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
337
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
338
+ def unset_label_with_http_info(container_manifest_signature_href, unset_label, opts = {})
339
+ if @api_client.config.debugging
340
+ @api_client.config.logger.debug 'Calling API: ContentSignaturesApi.unset_label ...'
341
+ end
342
+ # verify the required parameter 'container_manifest_signature_href' is set
343
+ if @api_client.config.client_side_validation && container_manifest_signature_href.nil?
344
+ fail ArgumentError, "Missing the required parameter 'container_manifest_signature_href' when calling ContentSignaturesApi.unset_label"
345
+ end
346
+ # verify the required parameter 'unset_label' is set
347
+ if @api_client.config.client_side_validation && unset_label.nil?
348
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentSignaturesApi.unset_label"
349
+ end
350
+ # resource path
351
+ local_var_path = '{container_manifest_signature_href}unset_label/'.sub('{' + 'container_manifest_signature_href' + '}', CGI.escape(container_manifest_signature_href.to_s).gsub('%2F', '/'))
352
+
353
+ # query parameters
354
+ query_params = opts[:query_params] || {}
355
+
356
+ # header parameters
357
+ header_params = opts[:header_params] || {}
358
+ # HTTP header 'Accept' (if needed)
359
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
360
+ # HTTP header 'Content-Type'
361
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
362
+ if !content_type.nil?
363
+ header_params['Content-Type'] = content_type
364
+ end
365
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
366
+
367
+ # form parameters
368
+ form_params = opts[:form_params] || {}
369
+
370
+ # http body (model)
371
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
372
+
373
+ # return_type
374
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
375
+
376
+ # auth_names
377
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
378
+
379
+ new_options = opts.merge(
380
+ :operation => :"ContentSignaturesApi.unset_label",
381
+ :header_params => header_params,
382
+ :query_params => query_params,
383
+ :form_params => form_params,
384
+ :body => post_body,
385
+ :auth_names => auth_names,
386
+ :return_type => return_type
387
+ )
388
+
389
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
390
+ if @api_client.config.debugging
391
+ @api_client.config.logger.debug "API called: ContentSignaturesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
392
+ end
393
+ return data, status_code, headers
394
+ end
235
395
  end
236
396
  end
@@ -22,6 +22,7 @@ module PulpContainerClient
22
22
  # List tags
23
23
  # ViewSet for Tag.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
25
26
  # @option opts [Array<String>] :digest Multiple values may be separated by commas.
26
27
  # @option opts [Integer] :limit Number of results to return per page.
27
28
  # @option opts [Array<String>] :media_type * &#x60;application/vnd.docker.distribution.manifest.v1+json&#x60; - application/vnd.docker.distribution.manifest.v1+json * &#x60;application/vnd.docker.distribution.manifest.v2+json&#x60; - application/vnd.docker.distribution.manifest.v2+json * &#x60;application/vnd.docker.distribution.manifest.list.v2+json&#x60; - application/vnd.docker.distribution.manifest.list.v2+json * &#x60;application/vnd.oci.image.manifest.v1+json&#x60; - application/vnd.oci.image.manifest.v1+json * &#x60;application/vnd.oci.image.index.v1+json&#x60; - application/vnd.oci.image.index.v1+json
@@ -49,6 +50,7 @@ module PulpContainerClient
49
50
  # List tags
50
51
  # ViewSet for Tag.
51
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
52
54
  # @option opts [Array<String>] :digest Multiple values may be separated by commas.
53
55
  # @option opts [Integer] :limit Number of results to return per page.
54
56
  # @option opts [Array<String>] :media_type * &#x60;application/vnd.docker.distribution.manifest.v1+json&#x60; - application/vnd.docker.distribution.manifest.v1+json * &#x60;application/vnd.docker.distribution.manifest.v2+json&#x60; - application/vnd.docker.distribution.manifest.v2+json * &#x60;application/vnd.docker.distribution.manifest.list.v2+json&#x60; - application/vnd.docker.distribution.manifest.list.v2+json * &#x60;application/vnd.oci.image.manifest.v1+json&#x60; - application/vnd.oci.image.manifest.v1+json * &#x60;application/vnd.oci.image.index.v1+json&#x60; - application/vnd.oci.image.index.v1+json
@@ -108,6 +110,7 @@ module PulpContainerClient
108
110
  header_params = opts[:header_params] || {}
109
111
  # HTTP header 'Accept' (if needed)
110
112
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
113
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
111
114
 
112
115
  # form parameters
113
116
  form_params = opts[:form_params] || {}
@@ -142,6 +145,7 @@ module PulpContainerClient
142
145
  # ViewSet for Tag.
143
146
  # @param container_tag_href [String]
144
147
  # @param [Hash] opts the optional parameters
148
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
145
149
  # @option opts [Array<String>] :fields A list of fields to include in the response.
146
150
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
147
151
  # @return [ContainerTagResponse]
@@ -154,6 +158,7 @@ module PulpContainerClient
154
158
  # ViewSet for Tag.
155
159
  # @param container_tag_href [String]
156
160
  # @param [Hash] opts the optional parameters
161
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
157
162
  # @option opts [Array<String>] :fields A list of fields to include in the response.
158
163
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
159
164
  # @return [Array<(ContainerTagResponse, Integer, Hash)>] ContainerTagResponse data, response status code and response headers
@@ -177,6 +182,7 @@ module PulpContainerClient
177
182
  header_params = opts[:header_params] || {}
178
183
  # HTTP header 'Accept' (if needed)
179
184
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
185
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
180
186
 
181
187
  # form parameters
182
188
  form_params = opts[:form_params] || {}
@@ -206,5 +212,159 @@ module PulpContainerClient
206
212
  end
207
213
  return data, status_code, headers
208
214
  end
215
+
216
+ # Set a label
217
+ # Set a single pulp_label on the object to a specific value or null.
218
+ # @param container_tag_href [String]
219
+ # @param set_label [SetLabel]
220
+ # @param [Hash] opts the optional parameters
221
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
222
+ # @return [SetLabelResponse]
223
+ def set_label(container_tag_href, set_label, opts = {})
224
+ data, _status_code, _headers = set_label_with_http_info(container_tag_href, set_label, opts)
225
+ data
226
+ end
227
+
228
+ # Set a label
229
+ # Set a single pulp_label on the object to a specific value or null.
230
+ # @param container_tag_href [String]
231
+ # @param set_label [SetLabel]
232
+ # @param [Hash] opts the optional parameters
233
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
234
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
235
+ def set_label_with_http_info(container_tag_href, set_label, opts = {})
236
+ if @api_client.config.debugging
237
+ @api_client.config.logger.debug 'Calling API: ContentTagsApi.set_label ...'
238
+ end
239
+ # verify the required parameter 'container_tag_href' is set
240
+ if @api_client.config.client_side_validation && container_tag_href.nil?
241
+ fail ArgumentError, "Missing the required parameter 'container_tag_href' when calling ContentTagsApi.set_label"
242
+ end
243
+ # verify the required parameter 'set_label' is set
244
+ if @api_client.config.client_side_validation && set_label.nil?
245
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentTagsApi.set_label"
246
+ end
247
+ # resource path
248
+ local_var_path = '{container_tag_href}set_label/'.sub('{' + 'container_tag_href' + '}', CGI.escape(container_tag_href.to_s).gsub('%2F', '/'))
249
+
250
+ # query parameters
251
+ query_params = opts[:query_params] || {}
252
+
253
+ # header parameters
254
+ header_params = opts[:header_params] || {}
255
+ # HTTP header 'Accept' (if needed)
256
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
257
+ # HTTP header 'Content-Type'
258
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
259
+ if !content_type.nil?
260
+ header_params['Content-Type'] = content_type
261
+ end
262
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
263
+
264
+ # form parameters
265
+ form_params = opts[:form_params] || {}
266
+
267
+ # http body (model)
268
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
269
+
270
+ # return_type
271
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
272
+
273
+ # auth_names
274
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
275
+
276
+ new_options = opts.merge(
277
+ :operation => :"ContentTagsApi.set_label",
278
+ :header_params => header_params,
279
+ :query_params => query_params,
280
+ :form_params => form_params,
281
+ :body => post_body,
282
+ :auth_names => auth_names,
283
+ :return_type => return_type
284
+ )
285
+
286
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
287
+ if @api_client.config.debugging
288
+ @api_client.config.logger.debug "API called: ContentTagsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
289
+ end
290
+ return data, status_code, headers
291
+ end
292
+
293
+ # Unset a label
294
+ # Unset a single pulp_label on the object.
295
+ # @param container_tag_href [String]
296
+ # @param unset_label [UnsetLabel]
297
+ # @param [Hash] opts the optional parameters
298
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
299
+ # @return [UnsetLabelResponse]
300
+ def unset_label(container_tag_href, unset_label, opts = {})
301
+ data, _status_code, _headers = unset_label_with_http_info(container_tag_href, unset_label, opts)
302
+ data
303
+ end
304
+
305
+ # Unset a label
306
+ # Unset a single pulp_label on the object.
307
+ # @param container_tag_href [String]
308
+ # @param unset_label [UnsetLabel]
309
+ # @param [Hash] opts the optional parameters
310
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
311
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
312
+ def unset_label_with_http_info(container_tag_href, unset_label, opts = {})
313
+ if @api_client.config.debugging
314
+ @api_client.config.logger.debug 'Calling API: ContentTagsApi.unset_label ...'
315
+ end
316
+ # verify the required parameter 'container_tag_href' is set
317
+ if @api_client.config.client_side_validation && container_tag_href.nil?
318
+ fail ArgumentError, "Missing the required parameter 'container_tag_href' when calling ContentTagsApi.unset_label"
319
+ end
320
+ # verify the required parameter 'unset_label' is set
321
+ if @api_client.config.client_side_validation && unset_label.nil?
322
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentTagsApi.unset_label"
323
+ end
324
+ # resource path
325
+ local_var_path = '{container_tag_href}unset_label/'.sub('{' + 'container_tag_href' + '}', CGI.escape(container_tag_href.to_s).gsub('%2F', '/'))
326
+
327
+ # query parameters
328
+ query_params = opts[:query_params] || {}
329
+
330
+ # header parameters
331
+ header_params = opts[:header_params] || {}
332
+ # HTTP header 'Accept' (if needed)
333
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
334
+ # HTTP header 'Content-Type'
335
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
336
+ if !content_type.nil?
337
+ header_params['Content-Type'] = content_type
338
+ end
339
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
340
+
341
+ # form parameters
342
+ form_params = opts[:form_params] || {}
343
+
344
+ # http body (model)
345
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
346
+
347
+ # return_type
348
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
349
+
350
+ # auth_names
351
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
352
+
353
+ new_options = opts.merge(
354
+ :operation => :"ContentTagsApi.unset_label",
355
+ :header_params => header_params,
356
+ :query_params => query_params,
357
+ :form_params => form_params,
358
+ :body => post_body,
359
+ :auth_names => auth_names,
360
+ :return_type => return_type
361
+ )
362
+
363
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
364
+ if @api_client.config.debugging
365
+ @api_client.config.logger.debug "API called: ContentTagsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
366
+ end
367
+ return data, status_code, headers
368
+ end
209
369
  end
210
370
  end