pulp_rpm_client 3.28.0 → 3.29.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.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -4
  3. data/docs/ContentAdvisoriesApi.md +152 -2
  4. data/docs/ContentDistributionTreesApi.md +148 -0
  5. data/docs/ContentModulemdDefaultsApi.md +150 -2
  6. data/docs/ContentModulemdObsoletesApi.md +148 -0
  7. data/docs/ContentModulemdsApi.md +150 -2
  8. data/docs/ContentPackagecategoriesApi.md +148 -0
  9. data/docs/ContentPackageenvironmentsApi.md +148 -0
  10. data/docs/ContentPackagegroupsApi.md +148 -0
  11. data/docs/ContentPackagelangpacksApi.md +148 -0
  12. data/docs/ContentPackagesApi.md +152 -2
  13. data/docs/ContentRepoMetadataFilesApi.md +148 -0
  14. data/docs/LayoutEnum.md +15 -0
  15. data/docs/PatchedrpmRpmRepository.md +3 -1
  16. data/docs/RpmModulemd.md +2 -0
  17. data/docs/RpmModulemdDefaults.md +2 -0
  18. data/docs/RpmModulemdDefaultsResponse.md +2 -0
  19. data/docs/RpmModulemdObsolete.md +2 -0
  20. data/docs/RpmModulemdObsoleteResponse.md +2 -0
  21. data/docs/RpmModulemdResponse.md +2 -0
  22. data/docs/RpmPackageCategoryResponse.md +2 -0
  23. data/docs/RpmPackageEnvironmentResponse.md +2 -0
  24. data/docs/RpmPackageGroupResponse.md +2 -0
  25. data/docs/RpmPackageLangpacksResponse.md +2 -0
  26. data/docs/RpmPackageResponse.md +2 -0
  27. data/docs/RpmRepoMetadataFileResponse.md +2 -0
  28. data/docs/RpmRpmPublication.md +3 -1
  29. data/docs/RpmRpmPublicationResponse.md +3 -1
  30. data/docs/RpmRpmRepository.md +3 -1
  31. data/docs/RpmRpmRepositoryResponse.md +3 -1
  32. data/docs/RpmUpdateRecordResponse.md +2 -0
  33. data/lib/pulp_rpm_client/api/content_advisories_api.rb +157 -3
  34. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +151 -0
  35. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +154 -3
  36. data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +151 -0
  37. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +154 -3
  38. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +151 -0
  39. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +151 -0
  40. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +151 -0
  41. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +151 -0
  42. data/lib/pulp_rpm_client/api/content_packages_api.rb +157 -3
  43. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +151 -0
  44. data/lib/pulp_rpm_client/models/layout_enum.rb +40 -0
  45. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +16 -5
  46. data/lib/pulp_rpm_client/models/rpm_modulemd.rb +13 -1
  47. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +13 -1
  48. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +13 -1
  49. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +13 -1
  50. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +13 -1
  51. data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +13 -1
  52. data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +13 -1
  53. data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +13 -1
  54. data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +13 -1
  55. data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +13 -1
  56. data/lib/pulp_rpm_client/models/rpm_package_response.rb +13 -1
  57. data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +13 -1
  58. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +15 -4
  59. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +15 -4
  60. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +16 -5
  61. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +16 -5
  62. data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +13 -1
  63. data/lib/pulp_rpm_client/models/unset_label.rb +1 -1
  64. data/lib/pulp_rpm_client/models/unset_label_response.rb +1 -1
  65. data/lib/pulp_rpm_client/version.rb +1 -1
  66. data/lib/pulp_rpm_client.rb +1 -0
  67. data/spec/api/content_advisories_api_spec.rb +29 -1
  68. data/spec/api/content_distribution_trees_api_spec.rb +27 -0
  69. data/spec/api/content_modulemd_defaults_api_spec.rb +28 -1
  70. data/spec/api/content_modulemd_obsoletes_api_spec.rb +27 -0
  71. data/spec/api/content_modulemds_api_spec.rb +28 -1
  72. data/spec/api/content_packagecategories_api_spec.rb +27 -0
  73. data/spec/api/content_packageenvironments_api_spec.rb +27 -0
  74. data/spec/api/content_packagegroups_api_spec.rb +27 -0
  75. data/spec/api/content_packagelangpacks_api_spec.rb +27 -0
  76. data/spec/api/content_packages_api_spec.rb +29 -1
  77. data/spec/api/content_repo_metadata_files_api_spec.rb +27 -0
  78. data/spec/models/layout_enum_spec.rb +30 -0
  79. data/spec/models/patchedrpm_rpm_repository_spec.rb +6 -0
  80. data/spec/models/rpm_modulemd_defaults_response_spec.rb +6 -0
  81. data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
  82. data/spec/models/rpm_modulemd_obsolete_response_spec.rb +6 -0
  83. data/spec/models/rpm_modulemd_obsolete_spec.rb +6 -0
  84. data/spec/models/rpm_modulemd_response_spec.rb +6 -0
  85. data/spec/models/rpm_modulemd_spec.rb +6 -0
  86. data/spec/models/rpm_package_category_response_spec.rb +6 -0
  87. data/spec/models/rpm_package_environment_response_spec.rb +6 -0
  88. data/spec/models/rpm_package_group_response_spec.rb +6 -0
  89. data/spec/models/rpm_package_langpacks_response_spec.rb +6 -0
  90. data/spec/models/rpm_package_response_spec.rb +6 -0
  91. data/spec/models/rpm_repo_metadata_file_response_spec.rb +6 -0
  92. data/spec/models/rpm_rpm_publication_response_spec.rb +6 -0
  93. data/spec/models/rpm_rpm_publication_spec.rb +6 -0
  94. data/spec/models/rpm_rpm_repository_response_spec.rb +6 -0
  95. data/spec/models/rpm_rpm_repository_spec.rb +6 -0
  96. data/spec/models/rpm_update_record_response_spec.rb +6 -0
  97. metadata +83 -79
@@ -94,11 +94,12 @@ module PulpRpmClient
94
94
  # @option opts [String] :_module Filter results where module matches value
95
95
  # @option opts [Array<String>] :module__in Filter results where module is in a comma-separated list of values
96
96
  # @option opts [Integer] :offset The initial index from which to return the results.
97
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;module&#x60; - Module * &#x60;-module&#x60; - Module (descending) * &#x60;stream&#x60; - Stream * &#x60;-stream&#x60; - Stream (descending) * &#x60;profiles&#x60; - Profiles * &#x60;-profiles&#x60; - Profiles (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;snippet&#x60; - Snippet * &#x60;-snippet&#x60; - Snippet (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
97
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;module&#x60; - Module * &#x60;-module&#x60; - Module (descending) * &#x60;stream&#x60; - Stream * &#x60;-stream&#x60; - Stream (descending) * &#x60;profiles&#x60; - Profiles * &#x60;-profiles&#x60; - Profiles (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;snippet&#x60; - Snippet * &#x60;-snippet&#x60; - Snippet (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
98
98
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
99
99
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
100
100
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
101
101
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
102
+ # @option opts [String] :pulp_label_select Filter labels by search string
102
103
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
103
104
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
104
105
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -121,11 +122,12 @@ module PulpRpmClient
121
122
  # @option opts [String] :_module Filter results where module matches value
122
123
  # @option opts [Array<String>] :module__in Filter results where module is in a comma-separated list of values
123
124
  # @option opts [Integer] :offset The initial index from which to return the results.
124
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;module&#x60; - Module * &#x60;-module&#x60; - Module (descending) * &#x60;stream&#x60; - Stream * &#x60;-stream&#x60; - Stream (descending) * &#x60;profiles&#x60; - Profiles * &#x60;-profiles&#x60; - Profiles (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;snippet&#x60; - Snippet * &#x60;-snippet&#x60; - Snippet (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
125
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;module&#x60; - Module * &#x60;-module&#x60; - Module (descending) * &#x60;stream&#x60; - Stream * &#x60;-stream&#x60; - Stream (descending) * &#x60;profiles&#x60; - Profiles * &#x60;-profiles&#x60; - Profiles (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;snippet&#x60; - Snippet * &#x60;-snippet&#x60; - Snippet (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
125
126
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
126
127
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
127
128
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
128
129
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
130
+ # @option opts [String] :pulp_label_select Filter labels by search string
129
131
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
130
132
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
131
133
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -140,7 +142,7 @@ module PulpRpmClient
140
142
  if @api_client.config.debugging
141
143
  @api_client.config.logger.debug 'Calling API: ContentModulemdDefaultsApi.list ...'
142
144
  end
143
- allowable_values = ["-digest", "-module", "-pk", "-profiles", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-snippet", "-stream", "-timestamp_of_interest", "-upstream_id", "digest", "module", "pk", "profiles", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "snippet", "stream", "timestamp_of_interest", "upstream_id"]
145
+ allowable_values = ["-digest", "-module", "-pk", "-profiles", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-snippet", "-stream", "-timestamp_of_interest", "-upstream_id", "digest", "module", "pk", "profiles", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "snippet", "stream", "timestamp_of_interest", "upstream_id"]
144
146
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
145
147
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
146
148
  end
@@ -158,6 +160,7 @@ module PulpRpmClient
158
160
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
159
161
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
160
162
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
163
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
161
164
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
162
165
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
163
166
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -270,5 +273,153 @@ module PulpRpmClient
270
273
  end
271
274
  return data, status_code, headers
272
275
  end
276
+
277
+ # Set a label
278
+ # Set a single pulp_label on the object to a specific value or null.
279
+ # @param rpm_modulemd_defaults_href [String]
280
+ # @param set_label [SetLabel]
281
+ # @param [Hash] opts the optional parameters
282
+ # @return [SetLabelResponse]
283
+ def set_label(rpm_modulemd_defaults_href, set_label, opts = {})
284
+ data, _status_code, _headers = set_label_with_http_info(rpm_modulemd_defaults_href, set_label, opts)
285
+ data
286
+ end
287
+
288
+ # Set a label
289
+ # Set a single pulp_label on the object to a specific value or null.
290
+ # @param rpm_modulemd_defaults_href [String]
291
+ # @param set_label [SetLabel]
292
+ # @param [Hash] opts the optional parameters
293
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
294
+ def set_label_with_http_info(rpm_modulemd_defaults_href, set_label, opts = {})
295
+ if @api_client.config.debugging
296
+ @api_client.config.logger.debug 'Calling API: ContentModulemdDefaultsApi.set_label ...'
297
+ end
298
+ # verify the required parameter 'rpm_modulemd_defaults_href' is set
299
+ if @api_client.config.client_side_validation && rpm_modulemd_defaults_href.nil?
300
+ fail ArgumentError, "Missing the required parameter 'rpm_modulemd_defaults_href' when calling ContentModulemdDefaultsApi.set_label"
301
+ end
302
+ # verify the required parameter 'set_label' is set
303
+ if @api_client.config.client_side_validation && set_label.nil?
304
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentModulemdDefaultsApi.set_label"
305
+ end
306
+ # resource path
307
+ local_var_path = '{rpm_modulemd_defaults_href}set_label/'.sub('{' + 'rpm_modulemd_defaults_href' + '}', CGI.escape(rpm_modulemd_defaults_href.to_s).gsub('%2F', '/'))
308
+
309
+ # query parameters
310
+ query_params = opts[:query_params] || {}
311
+
312
+ # header parameters
313
+ header_params = opts[:header_params] || {}
314
+ # HTTP header 'Accept' (if needed)
315
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
316
+ # HTTP header 'Content-Type'
317
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
318
+ if !content_type.nil?
319
+ header_params['Content-Type'] = content_type
320
+ end
321
+
322
+ # form parameters
323
+ form_params = opts[:form_params] || {}
324
+
325
+ # http body (model)
326
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
327
+
328
+ # return_type
329
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
330
+
331
+ # auth_names
332
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
333
+
334
+ new_options = opts.merge(
335
+ :operation => :"ContentModulemdDefaultsApi.set_label",
336
+ :header_params => header_params,
337
+ :query_params => query_params,
338
+ :form_params => form_params,
339
+ :body => post_body,
340
+ :auth_names => auth_names,
341
+ :return_type => return_type
342
+ )
343
+
344
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
345
+ if @api_client.config.debugging
346
+ @api_client.config.logger.debug "API called: ContentModulemdDefaultsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
347
+ end
348
+ return data, status_code, headers
349
+ end
350
+
351
+ # Unset a label
352
+ # Unset a single pulp_label on the object.
353
+ # @param rpm_modulemd_defaults_href [String]
354
+ # @param unset_label [UnsetLabel]
355
+ # @param [Hash] opts the optional parameters
356
+ # @return [UnsetLabelResponse]
357
+ def unset_label(rpm_modulemd_defaults_href, unset_label, opts = {})
358
+ data, _status_code, _headers = unset_label_with_http_info(rpm_modulemd_defaults_href, unset_label, opts)
359
+ data
360
+ end
361
+
362
+ # Unset a label
363
+ # Unset a single pulp_label on the object.
364
+ # @param rpm_modulemd_defaults_href [String]
365
+ # @param unset_label [UnsetLabel]
366
+ # @param [Hash] opts the optional parameters
367
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
368
+ def unset_label_with_http_info(rpm_modulemd_defaults_href, unset_label, opts = {})
369
+ if @api_client.config.debugging
370
+ @api_client.config.logger.debug 'Calling API: ContentModulemdDefaultsApi.unset_label ...'
371
+ end
372
+ # verify the required parameter 'rpm_modulemd_defaults_href' is set
373
+ if @api_client.config.client_side_validation && rpm_modulemd_defaults_href.nil?
374
+ fail ArgumentError, "Missing the required parameter 'rpm_modulemd_defaults_href' when calling ContentModulemdDefaultsApi.unset_label"
375
+ end
376
+ # verify the required parameter 'unset_label' is set
377
+ if @api_client.config.client_side_validation && unset_label.nil?
378
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentModulemdDefaultsApi.unset_label"
379
+ end
380
+ # resource path
381
+ local_var_path = '{rpm_modulemd_defaults_href}unset_label/'.sub('{' + 'rpm_modulemd_defaults_href' + '}', CGI.escape(rpm_modulemd_defaults_href.to_s).gsub('%2F', '/'))
382
+
383
+ # query parameters
384
+ query_params = opts[:query_params] || {}
385
+
386
+ # header parameters
387
+ header_params = opts[:header_params] || {}
388
+ # HTTP header 'Accept' (if needed)
389
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
390
+ # HTTP header 'Content-Type'
391
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
392
+ if !content_type.nil?
393
+ header_params['Content-Type'] = content_type
394
+ end
395
+
396
+ # form parameters
397
+ form_params = opts[:form_params] || {}
398
+
399
+ # http body (model)
400
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
401
+
402
+ # return_type
403
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
404
+
405
+ # auth_names
406
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
407
+
408
+ new_options = opts.merge(
409
+ :operation => :"ContentModulemdDefaultsApi.unset_label",
410
+ :header_params => header_params,
411
+ :query_params => query_params,
412
+ :form_params => form_params,
413
+ :body => post_body,
414
+ :auth_names => auth_names,
415
+ :return_type => return_type
416
+ )
417
+
418
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
419
+ if @api_client.config.debugging
420
+ @api_client.config.logger.debug "API called: ContentModulemdDefaultsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
421
+ end
422
+ return data, status_code, headers
423
+ end
273
424
  end
274
425
  end
@@ -97,6 +97,7 @@ module PulpRpmClient
97
97
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
98
98
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
99
99
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
100
+ # @option opts [String] :pulp_label_select Filter labels by search string
100
101
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
101
102
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
102
103
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -119,6 +120,7 @@ module PulpRpmClient
119
120
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
120
121
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
121
122
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
123
+ # @option opts [String] :pulp_label_select Filter labels by search string
122
124
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
123
125
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
124
126
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -146,6 +148,7 @@ module PulpRpmClient
146
148
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
147
149
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
148
150
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
151
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
149
152
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
150
153
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
151
154
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -255,5 +258,153 @@ module PulpRpmClient
255
258
  end
256
259
  return data, status_code, headers
257
260
  end
261
+
262
+ # Set a label
263
+ # Set a single pulp_label on the object to a specific value or null.
264
+ # @param rpm_modulemd_obsolete_href [String]
265
+ # @param set_label [SetLabel]
266
+ # @param [Hash] opts the optional parameters
267
+ # @return [SetLabelResponse]
268
+ def set_label(rpm_modulemd_obsolete_href, set_label, opts = {})
269
+ data, _status_code, _headers = set_label_with_http_info(rpm_modulemd_obsolete_href, set_label, opts)
270
+ data
271
+ end
272
+
273
+ # Set a label
274
+ # Set a single pulp_label on the object to a specific value or null.
275
+ # @param rpm_modulemd_obsolete_href [String]
276
+ # @param set_label [SetLabel]
277
+ # @param [Hash] opts the optional parameters
278
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
279
+ def set_label_with_http_info(rpm_modulemd_obsolete_href, set_label, opts = {})
280
+ if @api_client.config.debugging
281
+ @api_client.config.logger.debug 'Calling API: ContentModulemdObsoletesApi.set_label ...'
282
+ end
283
+ # verify the required parameter 'rpm_modulemd_obsolete_href' is set
284
+ if @api_client.config.client_side_validation && rpm_modulemd_obsolete_href.nil?
285
+ fail ArgumentError, "Missing the required parameter 'rpm_modulemd_obsolete_href' when calling ContentModulemdObsoletesApi.set_label"
286
+ end
287
+ # verify the required parameter 'set_label' is set
288
+ if @api_client.config.client_side_validation && set_label.nil?
289
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentModulemdObsoletesApi.set_label"
290
+ end
291
+ # resource path
292
+ local_var_path = '{rpm_modulemd_obsolete_href}set_label/'.sub('{' + 'rpm_modulemd_obsolete_href' + '}', CGI.escape(rpm_modulemd_obsolete_href.to_s).gsub('%2F', '/'))
293
+
294
+ # query parameters
295
+ query_params = opts[:query_params] || {}
296
+
297
+ # header parameters
298
+ header_params = opts[:header_params] || {}
299
+ # HTTP header 'Accept' (if needed)
300
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
301
+ # HTTP header 'Content-Type'
302
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
303
+ if !content_type.nil?
304
+ header_params['Content-Type'] = content_type
305
+ end
306
+
307
+ # form parameters
308
+ form_params = opts[:form_params] || {}
309
+
310
+ # http body (model)
311
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
312
+
313
+ # return_type
314
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
315
+
316
+ # auth_names
317
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
318
+
319
+ new_options = opts.merge(
320
+ :operation => :"ContentModulemdObsoletesApi.set_label",
321
+ :header_params => header_params,
322
+ :query_params => query_params,
323
+ :form_params => form_params,
324
+ :body => post_body,
325
+ :auth_names => auth_names,
326
+ :return_type => return_type
327
+ )
328
+
329
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
330
+ if @api_client.config.debugging
331
+ @api_client.config.logger.debug "API called: ContentModulemdObsoletesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
332
+ end
333
+ return data, status_code, headers
334
+ end
335
+
336
+ # Unset a label
337
+ # Unset a single pulp_label on the object.
338
+ # @param rpm_modulemd_obsolete_href [String]
339
+ # @param unset_label [UnsetLabel]
340
+ # @param [Hash] opts the optional parameters
341
+ # @return [UnsetLabelResponse]
342
+ def unset_label(rpm_modulemd_obsolete_href, unset_label, opts = {})
343
+ data, _status_code, _headers = unset_label_with_http_info(rpm_modulemd_obsolete_href, unset_label, opts)
344
+ data
345
+ end
346
+
347
+ # Unset a label
348
+ # Unset a single pulp_label on the object.
349
+ # @param rpm_modulemd_obsolete_href [String]
350
+ # @param unset_label [UnsetLabel]
351
+ # @param [Hash] opts the optional parameters
352
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
353
+ def unset_label_with_http_info(rpm_modulemd_obsolete_href, unset_label, opts = {})
354
+ if @api_client.config.debugging
355
+ @api_client.config.logger.debug 'Calling API: ContentModulemdObsoletesApi.unset_label ...'
356
+ end
357
+ # verify the required parameter 'rpm_modulemd_obsolete_href' is set
358
+ if @api_client.config.client_side_validation && rpm_modulemd_obsolete_href.nil?
359
+ fail ArgumentError, "Missing the required parameter 'rpm_modulemd_obsolete_href' when calling ContentModulemdObsoletesApi.unset_label"
360
+ end
361
+ # verify the required parameter 'unset_label' is set
362
+ if @api_client.config.client_side_validation && unset_label.nil?
363
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentModulemdObsoletesApi.unset_label"
364
+ end
365
+ # resource path
366
+ local_var_path = '{rpm_modulemd_obsolete_href}unset_label/'.sub('{' + 'rpm_modulemd_obsolete_href' + '}', CGI.escape(rpm_modulemd_obsolete_href.to_s).gsub('%2F', '/'))
367
+
368
+ # query parameters
369
+ query_params = opts[:query_params] || {}
370
+
371
+ # header parameters
372
+ header_params = opts[:header_params] || {}
373
+ # HTTP header 'Accept' (if needed)
374
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
375
+ # HTTP header 'Content-Type'
376
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
377
+ if !content_type.nil?
378
+ header_params['Content-Type'] = content_type
379
+ end
380
+
381
+ # form parameters
382
+ form_params = opts[:form_params] || {}
383
+
384
+ # http body (model)
385
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
386
+
387
+ # return_type
388
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
389
+
390
+ # auth_names
391
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
392
+
393
+ new_options = opts.merge(
394
+ :operation => :"ContentModulemdObsoletesApi.unset_label",
395
+ :header_params => header_params,
396
+ :query_params => query_params,
397
+ :form_params => form_params,
398
+ :body => post_body,
399
+ :auth_names => auth_names,
400
+ :return_type => return_type
401
+ )
402
+
403
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
404
+ if @api_client.config.debugging
405
+ @api_client.config.logger.debug "API called: ContentModulemdObsoletesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
406
+ end
407
+ return data, status_code, headers
408
+ end
258
409
  end
259
410
  end
@@ -98,11 +98,12 @@ module PulpRpmClient
98
98
  # @option opts [String] :name Filter results where name matches value
99
99
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
100
100
  # @option opts [Integer] :offset The initial index from which to return the results.
101
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;stream&#x60; - Stream * &#x60;-stream&#x60; - Stream (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;context&#x60; - Context * &#x60;-context&#x60; - Context (descending) * &#x60;arch&#x60; - Arch * &#x60;-arch&#x60; - Arch (descending) * &#x60;static_context&#x60; - Static context * &#x60;-static_context&#x60; - Static context (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;artifacts&#x60; - Artifacts * &#x60;-artifacts&#x60; - Artifacts (descending) * &#x60;profiles&#x60; - Profiles * &#x60;-profiles&#x60; - Profiles (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;snippet&#x60; - Snippet * &#x60;-snippet&#x60; - Snippet (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
101
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;stream&#x60; - Stream * &#x60;-stream&#x60; - Stream (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;context&#x60; - Context * &#x60;-context&#x60; - Context (descending) * &#x60;arch&#x60; - Arch * &#x60;-arch&#x60; - Arch (descending) * &#x60;static_context&#x60; - Static context * &#x60;-static_context&#x60; - Static context (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;artifacts&#x60; - Artifacts * &#x60;-artifacts&#x60; - Artifacts (descending) * &#x60;profiles&#x60; - Profiles * &#x60;-profiles&#x60; - Profiles (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;snippet&#x60; - Snippet * &#x60;-snippet&#x60; - Snippet (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
102
102
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
103
103
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
104
104
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
105
105
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
106
+ # @option opts [String] :pulp_label_select Filter labels by search string
106
107
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
107
108
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
108
109
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -131,11 +132,12 @@ module PulpRpmClient
131
132
  # @option opts [String] :name Filter results where name matches value
132
133
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
133
134
  # @option opts [Integer] :offset The initial index from which to return the results.
134
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;stream&#x60; - Stream * &#x60;-stream&#x60; - Stream (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;context&#x60; - Context * &#x60;-context&#x60; - Context (descending) * &#x60;arch&#x60; - Arch * &#x60;-arch&#x60; - Arch (descending) * &#x60;static_context&#x60; - Static context * &#x60;-static_context&#x60; - Static context (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;artifacts&#x60; - Artifacts * &#x60;-artifacts&#x60; - Artifacts (descending) * &#x60;profiles&#x60; - Profiles * &#x60;-profiles&#x60; - Profiles (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;snippet&#x60; - Snippet * &#x60;-snippet&#x60; - Snippet (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
135
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;stream&#x60; - Stream * &#x60;-stream&#x60; - Stream (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;context&#x60; - Context * &#x60;-context&#x60; - Context (descending) * &#x60;arch&#x60; - Arch * &#x60;-arch&#x60; - Arch (descending) * &#x60;static_context&#x60; - Static context * &#x60;-static_context&#x60; - Static context (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;artifacts&#x60; - Artifacts * &#x60;-artifacts&#x60; - Artifacts (descending) * &#x60;profiles&#x60; - Profiles * &#x60;-profiles&#x60; - Profiles (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;snippet&#x60; - Snippet * &#x60;-snippet&#x60; - Snippet (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
135
136
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
136
137
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
137
138
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
138
139
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
140
+ # @option opts [String] :pulp_label_select Filter labels by search string
139
141
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
140
142
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
141
143
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -152,7 +154,7 @@ module PulpRpmClient
152
154
  if @api_client.config.debugging
153
155
  @api_client.config.logger.debug 'Calling API: ContentModulemdsApi.list ...'
154
156
  end
155
- allowable_values = ["-arch", "-artifacts", "-context", "-dependencies", "-description", "-digest", "-name", "-pk", "-profiles", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-snippet", "-static_context", "-stream", "-timestamp_of_interest", "-upstream_id", "-version", "arch", "artifacts", "context", "dependencies", "description", "digest", "name", "pk", "profiles", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "snippet", "static_context", "stream", "timestamp_of_interest", "upstream_id", "version"]
157
+ allowable_values = ["-arch", "-artifacts", "-context", "-dependencies", "-description", "-digest", "-name", "-pk", "-profiles", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-snippet", "-static_context", "-stream", "-timestamp_of_interest", "-upstream_id", "-version", "arch", "artifacts", "context", "dependencies", "description", "digest", "name", "pk", "profiles", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "snippet", "static_context", "stream", "timestamp_of_interest", "upstream_id", "version"]
156
158
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
157
159
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
158
160
  end
@@ -174,6 +176,7 @@ module PulpRpmClient
174
176
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
175
177
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
176
178
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
179
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
177
180
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
178
181
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
179
182
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -288,5 +291,153 @@ module PulpRpmClient
288
291
  end
289
292
  return data, status_code, headers
290
293
  end
294
+
295
+ # Set a label
296
+ # Set a single pulp_label on the object to a specific value or null.
297
+ # @param rpm_modulemd_href [String]
298
+ # @param set_label [SetLabel]
299
+ # @param [Hash] opts the optional parameters
300
+ # @return [SetLabelResponse]
301
+ def set_label(rpm_modulemd_href, set_label, opts = {})
302
+ data, _status_code, _headers = set_label_with_http_info(rpm_modulemd_href, set_label, opts)
303
+ data
304
+ end
305
+
306
+ # Set a label
307
+ # Set a single pulp_label on the object to a specific value or null.
308
+ # @param rpm_modulemd_href [String]
309
+ # @param set_label [SetLabel]
310
+ # @param [Hash] opts the optional parameters
311
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
312
+ def set_label_with_http_info(rpm_modulemd_href, set_label, opts = {})
313
+ if @api_client.config.debugging
314
+ @api_client.config.logger.debug 'Calling API: ContentModulemdsApi.set_label ...'
315
+ end
316
+ # verify the required parameter 'rpm_modulemd_href' is set
317
+ if @api_client.config.client_side_validation && rpm_modulemd_href.nil?
318
+ fail ArgumentError, "Missing the required parameter 'rpm_modulemd_href' when calling ContentModulemdsApi.set_label"
319
+ end
320
+ # verify the required parameter 'set_label' is set
321
+ if @api_client.config.client_side_validation && set_label.nil?
322
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentModulemdsApi.set_label"
323
+ end
324
+ # resource path
325
+ local_var_path = '{rpm_modulemd_href}set_label/'.sub('{' + 'rpm_modulemd_href' + '}', CGI.escape(rpm_modulemd_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
+
340
+ # form parameters
341
+ form_params = opts[:form_params] || {}
342
+
343
+ # http body (model)
344
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
345
+
346
+ # return_type
347
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
348
+
349
+ # auth_names
350
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
351
+
352
+ new_options = opts.merge(
353
+ :operation => :"ContentModulemdsApi.set_label",
354
+ :header_params => header_params,
355
+ :query_params => query_params,
356
+ :form_params => form_params,
357
+ :body => post_body,
358
+ :auth_names => auth_names,
359
+ :return_type => return_type
360
+ )
361
+
362
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
363
+ if @api_client.config.debugging
364
+ @api_client.config.logger.debug "API called: ContentModulemdsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
365
+ end
366
+ return data, status_code, headers
367
+ end
368
+
369
+ # Unset a label
370
+ # Unset a single pulp_label on the object.
371
+ # @param rpm_modulemd_href [String]
372
+ # @param unset_label [UnsetLabel]
373
+ # @param [Hash] opts the optional parameters
374
+ # @return [UnsetLabelResponse]
375
+ def unset_label(rpm_modulemd_href, unset_label, opts = {})
376
+ data, _status_code, _headers = unset_label_with_http_info(rpm_modulemd_href, unset_label, opts)
377
+ data
378
+ end
379
+
380
+ # Unset a label
381
+ # Unset a single pulp_label on the object.
382
+ # @param rpm_modulemd_href [String]
383
+ # @param unset_label [UnsetLabel]
384
+ # @param [Hash] opts the optional parameters
385
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
386
+ def unset_label_with_http_info(rpm_modulemd_href, unset_label, opts = {})
387
+ if @api_client.config.debugging
388
+ @api_client.config.logger.debug 'Calling API: ContentModulemdsApi.unset_label ...'
389
+ end
390
+ # verify the required parameter 'rpm_modulemd_href' is set
391
+ if @api_client.config.client_side_validation && rpm_modulemd_href.nil?
392
+ fail ArgumentError, "Missing the required parameter 'rpm_modulemd_href' when calling ContentModulemdsApi.unset_label"
393
+ end
394
+ # verify the required parameter 'unset_label' is set
395
+ if @api_client.config.client_side_validation && unset_label.nil?
396
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentModulemdsApi.unset_label"
397
+ end
398
+ # resource path
399
+ local_var_path = '{rpm_modulemd_href}unset_label/'.sub('{' + 'rpm_modulemd_href' + '}', CGI.escape(rpm_modulemd_href.to_s).gsub('%2F', '/'))
400
+
401
+ # query parameters
402
+ query_params = opts[:query_params] || {}
403
+
404
+ # header parameters
405
+ header_params = opts[:header_params] || {}
406
+ # HTTP header 'Accept' (if needed)
407
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
408
+ # HTTP header 'Content-Type'
409
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
410
+ if !content_type.nil?
411
+ header_params['Content-Type'] = content_type
412
+ end
413
+
414
+ # form parameters
415
+ form_params = opts[:form_params] || {}
416
+
417
+ # http body (model)
418
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
419
+
420
+ # return_type
421
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
422
+
423
+ # auth_names
424
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
425
+
426
+ new_options = opts.merge(
427
+ :operation => :"ContentModulemdsApi.unset_label",
428
+ :header_params => header_params,
429
+ :query_params => query_params,
430
+ :form_params => form_params,
431
+ :body => post_body,
432
+ :auth_names => auth_names,
433
+ :return_type => return_type
434
+ )
435
+
436
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
437
+ if @api_client.config.debugging
438
+ @api_client.config.logger.debug "API called: ContentModulemdsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
439
+ end
440
+ return data, status_code, headers
441
+ end
291
442
  end
292
443
  end