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
@@ -29,6 +29,7 @@ module PulpRpmClient
29
29
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
30
30
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
31
31
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
32
+ # @option opts [String] :pulp_label_select Filter labels by search string
32
33
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
33
34
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
34
35
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -51,6 +52,7 @@ module PulpRpmClient
51
52
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
52
53
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
53
54
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
55
+ # @option opts [String] :pulp_label_select Filter labels by search string
54
56
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
55
57
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
56
58
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -78,6 +80,7 @@ module PulpRpmClient
78
80
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
79
81
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
80
82
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
83
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
81
84
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
82
85
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
83
86
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -187,5 +190,153 @@ module PulpRpmClient
187
190
  end
188
191
  return data, status_code, headers
189
192
  end
193
+
194
+ # Set a label
195
+ # Set a single pulp_label on the object to a specific value or null.
196
+ # @param rpm_package_langpacks_href [String]
197
+ # @param set_label [SetLabel]
198
+ # @param [Hash] opts the optional parameters
199
+ # @return [SetLabelResponse]
200
+ def set_label(rpm_package_langpacks_href, set_label, opts = {})
201
+ data, _status_code, _headers = set_label_with_http_info(rpm_package_langpacks_href, set_label, opts)
202
+ data
203
+ end
204
+
205
+ # Set a label
206
+ # Set a single pulp_label on the object to a specific value or null.
207
+ # @param rpm_package_langpacks_href [String]
208
+ # @param set_label [SetLabel]
209
+ # @param [Hash] opts the optional parameters
210
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
211
+ def set_label_with_http_info(rpm_package_langpacks_href, set_label, opts = {})
212
+ if @api_client.config.debugging
213
+ @api_client.config.logger.debug 'Calling API: ContentPackagelangpacksApi.set_label ...'
214
+ end
215
+ # verify the required parameter 'rpm_package_langpacks_href' is set
216
+ if @api_client.config.client_side_validation && rpm_package_langpacks_href.nil?
217
+ fail ArgumentError, "Missing the required parameter 'rpm_package_langpacks_href' when calling ContentPackagelangpacksApi.set_label"
218
+ end
219
+ # verify the required parameter 'set_label' is set
220
+ if @api_client.config.client_side_validation && set_label.nil?
221
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentPackagelangpacksApi.set_label"
222
+ end
223
+ # resource path
224
+ local_var_path = '{rpm_package_langpacks_href}set_label/'.sub('{' + 'rpm_package_langpacks_href' + '}', CGI.escape(rpm_package_langpacks_href.to_s).gsub('%2F', '/'))
225
+
226
+ # query parameters
227
+ query_params = opts[:query_params] || {}
228
+
229
+ # header parameters
230
+ header_params = opts[:header_params] || {}
231
+ # HTTP header 'Accept' (if needed)
232
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
233
+ # HTTP header 'Content-Type'
234
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
235
+ if !content_type.nil?
236
+ header_params['Content-Type'] = content_type
237
+ end
238
+
239
+ # form parameters
240
+ form_params = opts[:form_params] || {}
241
+
242
+ # http body (model)
243
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
244
+
245
+ # return_type
246
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
247
+
248
+ # auth_names
249
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
250
+
251
+ new_options = opts.merge(
252
+ :operation => :"ContentPackagelangpacksApi.set_label",
253
+ :header_params => header_params,
254
+ :query_params => query_params,
255
+ :form_params => form_params,
256
+ :body => post_body,
257
+ :auth_names => auth_names,
258
+ :return_type => return_type
259
+ )
260
+
261
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
262
+ if @api_client.config.debugging
263
+ @api_client.config.logger.debug "API called: ContentPackagelangpacksApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
264
+ end
265
+ return data, status_code, headers
266
+ end
267
+
268
+ # Unset a label
269
+ # Unset a single pulp_label on the object.
270
+ # @param rpm_package_langpacks_href [String]
271
+ # @param unset_label [UnsetLabel]
272
+ # @param [Hash] opts the optional parameters
273
+ # @return [UnsetLabelResponse]
274
+ def unset_label(rpm_package_langpacks_href, unset_label, opts = {})
275
+ data, _status_code, _headers = unset_label_with_http_info(rpm_package_langpacks_href, unset_label, opts)
276
+ data
277
+ end
278
+
279
+ # Unset a label
280
+ # Unset a single pulp_label on the object.
281
+ # @param rpm_package_langpacks_href [String]
282
+ # @param unset_label [UnsetLabel]
283
+ # @param [Hash] opts the optional parameters
284
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
285
+ def unset_label_with_http_info(rpm_package_langpacks_href, unset_label, opts = {})
286
+ if @api_client.config.debugging
287
+ @api_client.config.logger.debug 'Calling API: ContentPackagelangpacksApi.unset_label ...'
288
+ end
289
+ # verify the required parameter 'rpm_package_langpacks_href' is set
290
+ if @api_client.config.client_side_validation && rpm_package_langpacks_href.nil?
291
+ fail ArgumentError, "Missing the required parameter 'rpm_package_langpacks_href' when calling ContentPackagelangpacksApi.unset_label"
292
+ end
293
+ # verify the required parameter 'unset_label' is set
294
+ if @api_client.config.client_side_validation && unset_label.nil?
295
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentPackagelangpacksApi.unset_label"
296
+ end
297
+ # resource path
298
+ local_var_path = '{rpm_package_langpacks_href}unset_label/'.sub('{' + 'rpm_package_langpacks_href' + '}', CGI.escape(rpm_package_langpacks_href.to_s).gsub('%2F', '/'))
299
+
300
+ # query parameters
301
+ query_params = opts[:query_params] || {}
302
+
303
+ # header parameters
304
+ header_params = opts[:header_params] || {}
305
+ # HTTP header 'Accept' (if needed)
306
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
307
+ # HTTP header 'Content-Type'
308
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
309
+ if !content_type.nil?
310
+ header_params['Content-Type'] = content_type
311
+ end
312
+
313
+ # form parameters
314
+ form_params = opts[:form_params] || {}
315
+
316
+ # http body (model)
317
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
318
+
319
+ # return_type
320
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
321
+
322
+ # auth_names
323
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
324
+
325
+ new_options = opts.merge(
326
+ :operation => :"ContentPackagelangpacksApi.unset_label",
327
+ :header_params => header_params,
328
+ :query_params => query_params,
329
+ :form_params => form_params,
330
+ :body => post_body,
331
+ :auth_names => auth_names,
332
+ :return_type => return_type
333
+ )
334
+
335
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
336
+ if @api_client.config.debugging
337
+ @api_client.config.logger.debug "API called: ContentPackagelangpacksApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
338
+ end
339
+ return data, status_code, headers
340
+ end
190
341
  end
191
342
  end
@@ -23,6 +23,7 @@ module PulpRpmClient
23
23
  # Trigger an asynchronous task to create an RPM package,optionally create new repository version.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
26
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
26
27
  # @option opts [String] :artifact Artifact file representing the physical content
27
28
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
28
29
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -38,6 +39,7 @@ module PulpRpmClient
38
39
  # Trigger an asynchronous task to create an RPM package,optionally create new repository version.
39
40
  # @param [Hash] opts the optional parameters
40
41
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
42
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
41
43
  # @option opts [String] :artifact Artifact file representing the physical content
42
44
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
43
45
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -75,6 +77,7 @@ module PulpRpmClient
75
77
  # form parameters
76
78
  form_params = opts[:form_params] || {}
77
79
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
80
+ form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
78
81
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
79
82
  form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
80
83
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
@@ -129,13 +132,14 @@ module PulpRpmClient
129
132
  # @option opts [String] :name__ne Filter results where name not equal to value
130
133
  # @option opts [String] :name__startswith Filter results where name starts with value
131
134
  # @option opts [Integer] :offset The initial index from which to return the results.
132
- # @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;epoch&#x60; - Epoch * &#x60;-epoch&#x60; - Epoch (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;arch&#x60; - Arch * &#x60;-arch&#x60; - Arch (descending) * &#x60;evr&#x60; - Evr * &#x60;-evr&#x60; - Evr (descending) * &#x60;pkgId&#x60; - Pkgid * &#x60;-pkgId&#x60; - Pkgid (descending) * &#x60;checksum_type&#x60; - Checksum type * &#x60;-checksum_type&#x60; - Checksum type (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;changelogs&#x60; - Changelogs * &#x60;-changelogs&#x60; - Changelogs (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;requires&#x60; - Requires * &#x60;-requires&#x60; - Requires (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;obsoletes&#x60; - Obsoletes * &#x60;-obsoletes&#x60; - Obsoletes (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;supplements&#x60; - Supplements * &#x60;-supplements&#x60; - Supplements (descending) * &#x60;location_base&#x60; - Location base * &#x60;-location_base&#x60; - Location base (descending) * &#x60;location_href&#x60; - Location href * &#x60;-location_href&#x60; - Location href (descending) * &#x60;rpm_buildhost&#x60; - Rpm buildhost * &#x60;-rpm_buildhost&#x60; - Rpm buildhost (descending) * &#x60;rpm_group&#x60; - Rpm group * &#x60;-rpm_group&#x60; - Rpm group (descending) * &#x60;rpm_license&#x60; - Rpm license * &#x60;-rpm_license&#x60; - Rpm license (descending) * &#x60;rpm_packager&#x60; - Rpm packager * &#x60;-rpm_packager&#x60; - Rpm packager (descending) * &#x60;rpm_sourcerpm&#x60; - Rpm sourcerpm * &#x60;-rpm_sourcerpm&#x60; - Rpm sourcerpm (descending) * &#x60;rpm_vendor&#x60; - Rpm vendor * &#x60;-rpm_vendor&#x60; - Rpm vendor (descending) * &#x60;rpm_header_start&#x60; - Rpm header start * &#x60;-rpm_header_start&#x60; - Rpm header start (descending) * &#x60;rpm_header_end&#x60; - Rpm header end * &#x60;-rpm_header_end&#x60; - Rpm header end (descending) * &#x60;size_archive&#x60; - Size archive * &#x60;-size_archive&#x60; - Size archive (descending) * &#x60;size_installed&#x60; - Size installed * &#x60;-size_installed&#x60; - Size installed (descending) * &#x60;size_package&#x60; - Size package * &#x60;-size_package&#x60; - Size package (descending) * &#x60;time_build&#x60; - Time build * &#x60;-time_build&#x60; - Time build (descending) * &#x60;time_file&#x60; - Time file * &#x60;-time_file&#x60; - Time file (descending) * &#x60;is_modular&#x60; - Is modular * &#x60;-is_modular&#x60; - Is modular (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;epoch&#x60; - Epoch * &#x60;-epoch&#x60; - Epoch (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;arch&#x60; - Arch * &#x60;-arch&#x60; - Arch (descending) * &#x60;evr&#x60; - Evr * &#x60;-evr&#x60; - Evr (descending) * &#x60;pkgId&#x60; - Pkgid * &#x60;-pkgId&#x60; - Pkgid (descending) * &#x60;checksum_type&#x60; - Checksum type * &#x60;-checksum_type&#x60; - Checksum type (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;changelogs&#x60; - Changelogs * &#x60;-changelogs&#x60; - Changelogs (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;requires&#x60; - Requires * &#x60;-requires&#x60; - Requires (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;obsoletes&#x60; - Obsoletes * &#x60;-obsoletes&#x60; - Obsoletes (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;supplements&#x60; - Supplements * &#x60;-supplements&#x60; - Supplements (descending) * &#x60;location_base&#x60; - Location base * &#x60;-location_base&#x60; - Location base (descending) * &#x60;location_href&#x60; - Location href * &#x60;-location_href&#x60; - Location href (descending) * &#x60;rpm_buildhost&#x60; - Rpm buildhost * &#x60;-rpm_buildhost&#x60; - Rpm buildhost (descending) * &#x60;rpm_group&#x60; - Rpm group * &#x60;-rpm_group&#x60; - Rpm group (descending) * &#x60;rpm_license&#x60; - Rpm license * &#x60;-rpm_license&#x60; - Rpm license (descending) * &#x60;rpm_packager&#x60; - Rpm packager * &#x60;-rpm_packager&#x60; - Rpm packager (descending) * &#x60;rpm_sourcerpm&#x60; - Rpm sourcerpm * &#x60;-rpm_sourcerpm&#x60; - Rpm sourcerpm (descending) * &#x60;rpm_vendor&#x60; - Rpm vendor * &#x60;-rpm_vendor&#x60; - Rpm vendor (descending) * &#x60;rpm_header_start&#x60; - Rpm header start * &#x60;-rpm_header_start&#x60; - Rpm header start (descending) * &#x60;rpm_header_end&#x60; - Rpm header end * &#x60;-rpm_header_end&#x60; - Rpm header end (descending) * &#x60;size_archive&#x60; - Size archive * &#x60;-size_archive&#x60; - Size archive (descending) * &#x60;size_installed&#x60; - Size installed * &#x60;-size_installed&#x60; - Size installed (descending) * &#x60;size_package&#x60; - Size package * &#x60;-size_package&#x60; - Size package (descending) * &#x60;time_build&#x60; - Time build * &#x60;-time_build&#x60; - Time build (descending) * &#x60;time_file&#x60; - Time file * &#x60;-time_file&#x60; - Time file (descending) * &#x60;is_modular&#x60; - Is modular * &#x60;-is_modular&#x60; - Is modular (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
133
136
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
134
137
  # @option opts [String] :pkg_id Filter results where pkgId matches value
135
138
  # @option opts [Array<String>] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
136
139
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
137
140
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
138
141
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
142
+ # @option opts [String] :pulp_label_select Filter labels by search string
139
143
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
140
144
  # @option opts [String] :release Filter results where release matches value
141
145
  # @option opts [String] :release__contains Filter results where release contains value
@@ -179,13 +183,14 @@ module PulpRpmClient
179
183
  # @option opts [String] :name__ne Filter results where name not equal to value
180
184
  # @option opts [String] :name__startswith Filter results where name starts with value
181
185
  # @option opts [Integer] :offset The initial index from which to return the results.
182
- # @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;epoch&#x60; - Epoch * &#x60;-epoch&#x60; - Epoch (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;arch&#x60; - Arch * &#x60;-arch&#x60; - Arch (descending) * &#x60;evr&#x60; - Evr * &#x60;-evr&#x60; - Evr (descending) * &#x60;pkgId&#x60; - Pkgid * &#x60;-pkgId&#x60; - Pkgid (descending) * &#x60;checksum_type&#x60; - Checksum type * &#x60;-checksum_type&#x60; - Checksum type (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;changelogs&#x60; - Changelogs * &#x60;-changelogs&#x60; - Changelogs (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;requires&#x60; - Requires * &#x60;-requires&#x60; - Requires (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;obsoletes&#x60; - Obsoletes * &#x60;-obsoletes&#x60; - Obsoletes (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;supplements&#x60; - Supplements * &#x60;-supplements&#x60; - Supplements (descending) * &#x60;location_base&#x60; - Location base * &#x60;-location_base&#x60; - Location base (descending) * &#x60;location_href&#x60; - Location href * &#x60;-location_href&#x60; - Location href (descending) * &#x60;rpm_buildhost&#x60; - Rpm buildhost * &#x60;-rpm_buildhost&#x60; - Rpm buildhost (descending) * &#x60;rpm_group&#x60; - Rpm group * &#x60;-rpm_group&#x60; - Rpm group (descending) * &#x60;rpm_license&#x60; - Rpm license * &#x60;-rpm_license&#x60; - Rpm license (descending) * &#x60;rpm_packager&#x60; - Rpm packager * &#x60;-rpm_packager&#x60; - Rpm packager (descending) * &#x60;rpm_sourcerpm&#x60; - Rpm sourcerpm * &#x60;-rpm_sourcerpm&#x60; - Rpm sourcerpm (descending) * &#x60;rpm_vendor&#x60; - Rpm vendor * &#x60;-rpm_vendor&#x60; - Rpm vendor (descending) * &#x60;rpm_header_start&#x60; - Rpm header start * &#x60;-rpm_header_start&#x60; - Rpm header start (descending) * &#x60;rpm_header_end&#x60; - Rpm header end * &#x60;-rpm_header_end&#x60; - Rpm header end (descending) * &#x60;size_archive&#x60; - Size archive * &#x60;-size_archive&#x60; - Size archive (descending) * &#x60;size_installed&#x60; - Size installed * &#x60;-size_installed&#x60; - Size installed (descending) * &#x60;size_package&#x60; - Size package * &#x60;-size_package&#x60; - Size package (descending) * &#x60;time_build&#x60; - Time build * &#x60;-time_build&#x60; - Time build (descending) * &#x60;time_file&#x60; - Time file * &#x60;-time_file&#x60; - Time file (descending) * &#x60;is_modular&#x60; - Is modular * &#x60;-is_modular&#x60; - Is modular (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
186
+ # @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;epoch&#x60; - Epoch * &#x60;-epoch&#x60; - Epoch (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;arch&#x60; - Arch * &#x60;-arch&#x60; - Arch (descending) * &#x60;evr&#x60; - Evr * &#x60;-evr&#x60; - Evr (descending) * &#x60;pkgId&#x60; - Pkgid * &#x60;-pkgId&#x60; - Pkgid (descending) * &#x60;checksum_type&#x60; - Checksum type * &#x60;-checksum_type&#x60; - Checksum type (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;changelogs&#x60; - Changelogs * &#x60;-changelogs&#x60; - Changelogs (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;requires&#x60; - Requires * &#x60;-requires&#x60; - Requires (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;obsoletes&#x60; - Obsoletes * &#x60;-obsoletes&#x60; - Obsoletes (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;supplements&#x60; - Supplements * &#x60;-supplements&#x60; - Supplements (descending) * &#x60;location_base&#x60; - Location base * &#x60;-location_base&#x60; - Location base (descending) * &#x60;location_href&#x60; - Location href * &#x60;-location_href&#x60; - Location href (descending) * &#x60;rpm_buildhost&#x60; - Rpm buildhost * &#x60;-rpm_buildhost&#x60; - Rpm buildhost (descending) * &#x60;rpm_group&#x60; - Rpm group * &#x60;-rpm_group&#x60; - Rpm group (descending) * &#x60;rpm_license&#x60; - Rpm license * &#x60;-rpm_license&#x60; - Rpm license (descending) * &#x60;rpm_packager&#x60; - Rpm packager * &#x60;-rpm_packager&#x60; - Rpm packager (descending) * &#x60;rpm_sourcerpm&#x60; - Rpm sourcerpm * &#x60;-rpm_sourcerpm&#x60; - Rpm sourcerpm (descending) * &#x60;rpm_vendor&#x60; - Rpm vendor * &#x60;-rpm_vendor&#x60; - Rpm vendor (descending) * &#x60;rpm_header_start&#x60; - Rpm header start * &#x60;-rpm_header_start&#x60; - Rpm header start (descending) * &#x60;rpm_header_end&#x60; - Rpm header end * &#x60;-rpm_header_end&#x60; - Rpm header end (descending) * &#x60;size_archive&#x60; - Size archive * &#x60;-size_archive&#x60; - Size archive (descending) * &#x60;size_installed&#x60; - Size installed * &#x60;-size_installed&#x60; - Size installed (descending) * &#x60;size_package&#x60; - Size package * &#x60;-size_package&#x60; - Size package (descending) * &#x60;time_build&#x60; - Time build * &#x60;-time_build&#x60; - Time build (descending) * &#x60;time_file&#x60; - Time file * &#x60;-time_file&#x60; - Time file (descending) * &#x60;is_modular&#x60; - Is modular * &#x60;-is_modular&#x60; - Is modular (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
183
187
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
184
188
  # @option opts [String] :pkg_id Filter results where pkgId matches value
185
189
  # @option opts [Array<String>] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
186
190
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
187
191
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
188
192
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
193
+ # @option opts [String] :pulp_label_select Filter labels by search string
189
194
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
190
195
  # @option opts [String] :release Filter results where release matches value
191
196
  # @option opts [String] :release__contains Filter results where release contains value
@@ -210,7 +215,7 @@ module PulpRpmClient
210
215
  if @api_client.config.client_side_validation && opts[:'checksum_type'] && !allowable_values.include?(opts[:'checksum_type'])
211
216
  fail ArgumentError, "invalid value for \"checksum_type\", must be one of #{allowable_values}"
212
217
  end
213
- allowable_values = ["-arch", "-changelogs", "-checksum_type", "-conflicts", "-description", "-enhances", "-epoch", "-evr", "-files", "-is_modular", "-location_base", "-location_href", "-name", "-obsoletes", "-pk", "-pkgId", "-provides", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-recommends", "-release", "-requires", "-rpm_buildhost", "-rpm_group", "-rpm_header_end", "-rpm_header_start", "-rpm_license", "-rpm_packager", "-rpm_sourcerpm", "-rpm_vendor", "-size_archive", "-size_installed", "-size_package", "-suggests", "-summary", "-supplements", "-time_build", "-time_file", "-timestamp_of_interest", "-upstream_id", "-url", "-version", "arch", "changelogs", "checksum_type", "conflicts", "description", "enhances", "epoch", "evr", "files", "is_modular", "location_base", "location_href", "name", "obsoletes", "pk", "pkgId", "provides", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "recommends", "release", "requires", "rpm_buildhost", "rpm_group", "rpm_header_end", "rpm_header_start", "rpm_license", "rpm_packager", "rpm_sourcerpm", "rpm_vendor", "size_archive", "size_installed", "size_package", "suggests", "summary", "supplements", "time_build", "time_file", "timestamp_of_interest", "upstream_id", "url", "version"]
218
+ allowable_values = ["-arch", "-changelogs", "-checksum_type", "-conflicts", "-description", "-enhances", "-epoch", "-evr", "-files", "-is_modular", "-location_base", "-location_href", "-name", "-obsoletes", "-pk", "-pkgId", "-provides", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-recommends", "-release", "-requires", "-rpm_buildhost", "-rpm_group", "-rpm_header_end", "-rpm_header_start", "-rpm_license", "-rpm_packager", "-rpm_sourcerpm", "-rpm_vendor", "-size_archive", "-size_installed", "-size_package", "-suggests", "-summary", "-supplements", "-time_build", "-time_file", "-timestamp_of_interest", "-upstream_id", "-url", "-version", "arch", "changelogs", "checksum_type", "conflicts", "description", "enhances", "epoch", "evr", "files", "is_modular", "location_base", "location_href", "name", "obsoletes", "pk", "pkgId", "provides", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "recommends", "release", "requires", "rpm_buildhost", "rpm_group", "rpm_header_end", "rpm_header_start", "rpm_license", "rpm_packager", "rpm_sourcerpm", "rpm_vendor", "size_archive", "size_installed", "size_package", "suggests", "summary", "supplements", "time_build", "time_file", "timestamp_of_interest", "upstream_id", "url", "version"]
214
219
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
215
220
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
216
221
  end
@@ -245,6 +250,7 @@ module PulpRpmClient
245
250
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
246
251
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
247
252
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
253
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
248
254
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
249
255
  query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
250
256
  query_params[:'release__contains'] = opts[:'release__contains'] if !opts[:'release__contains'].nil?
@@ -363,5 +369,153 @@ module PulpRpmClient
363
369
  end
364
370
  return data, status_code, headers
365
371
  end
372
+
373
+ # Set a label
374
+ # Set a single pulp_label on the object to a specific value or null.
375
+ # @param rpm_package_href [String]
376
+ # @param set_label [SetLabel]
377
+ # @param [Hash] opts the optional parameters
378
+ # @return [SetLabelResponse]
379
+ def set_label(rpm_package_href, set_label, opts = {})
380
+ data, _status_code, _headers = set_label_with_http_info(rpm_package_href, set_label, opts)
381
+ data
382
+ end
383
+
384
+ # Set a label
385
+ # Set a single pulp_label on the object to a specific value or null.
386
+ # @param rpm_package_href [String]
387
+ # @param set_label [SetLabel]
388
+ # @param [Hash] opts the optional parameters
389
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
390
+ def set_label_with_http_info(rpm_package_href, set_label, opts = {})
391
+ if @api_client.config.debugging
392
+ @api_client.config.logger.debug 'Calling API: ContentPackagesApi.set_label ...'
393
+ end
394
+ # verify the required parameter 'rpm_package_href' is set
395
+ if @api_client.config.client_side_validation && rpm_package_href.nil?
396
+ fail ArgumentError, "Missing the required parameter 'rpm_package_href' when calling ContentPackagesApi.set_label"
397
+ end
398
+ # verify the required parameter 'set_label' is set
399
+ if @api_client.config.client_side_validation && set_label.nil?
400
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentPackagesApi.set_label"
401
+ end
402
+ # resource path
403
+ local_var_path = '{rpm_package_href}set_label/'.sub('{' + 'rpm_package_href' + '}', CGI.escape(rpm_package_href.to_s).gsub('%2F', '/'))
404
+
405
+ # query parameters
406
+ query_params = opts[:query_params] || {}
407
+
408
+ # header parameters
409
+ header_params = opts[:header_params] || {}
410
+ # HTTP header 'Accept' (if needed)
411
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
412
+ # HTTP header 'Content-Type'
413
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
414
+ if !content_type.nil?
415
+ header_params['Content-Type'] = content_type
416
+ end
417
+
418
+ # form parameters
419
+ form_params = opts[:form_params] || {}
420
+
421
+ # http body (model)
422
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
423
+
424
+ # return_type
425
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
426
+
427
+ # auth_names
428
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
429
+
430
+ new_options = opts.merge(
431
+ :operation => :"ContentPackagesApi.set_label",
432
+ :header_params => header_params,
433
+ :query_params => query_params,
434
+ :form_params => form_params,
435
+ :body => post_body,
436
+ :auth_names => auth_names,
437
+ :return_type => return_type
438
+ )
439
+
440
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
441
+ if @api_client.config.debugging
442
+ @api_client.config.logger.debug "API called: ContentPackagesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
443
+ end
444
+ return data, status_code, headers
445
+ end
446
+
447
+ # Unset a label
448
+ # Unset a single pulp_label on the object.
449
+ # @param rpm_package_href [String]
450
+ # @param unset_label [UnsetLabel]
451
+ # @param [Hash] opts the optional parameters
452
+ # @return [UnsetLabelResponse]
453
+ def unset_label(rpm_package_href, unset_label, opts = {})
454
+ data, _status_code, _headers = unset_label_with_http_info(rpm_package_href, unset_label, opts)
455
+ data
456
+ end
457
+
458
+ # Unset a label
459
+ # Unset a single pulp_label on the object.
460
+ # @param rpm_package_href [String]
461
+ # @param unset_label [UnsetLabel]
462
+ # @param [Hash] opts the optional parameters
463
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
464
+ def unset_label_with_http_info(rpm_package_href, unset_label, opts = {})
465
+ if @api_client.config.debugging
466
+ @api_client.config.logger.debug 'Calling API: ContentPackagesApi.unset_label ...'
467
+ end
468
+ # verify the required parameter 'rpm_package_href' is set
469
+ if @api_client.config.client_side_validation && rpm_package_href.nil?
470
+ fail ArgumentError, "Missing the required parameter 'rpm_package_href' when calling ContentPackagesApi.unset_label"
471
+ end
472
+ # verify the required parameter 'unset_label' is set
473
+ if @api_client.config.client_side_validation && unset_label.nil?
474
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentPackagesApi.unset_label"
475
+ end
476
+ # resource path
477
+ local_var_path = '{rpm_package_href}unset_label/'.sub('{' + 'rpm_package_href' + '}', CGI.escape(rpm_package_href.to_s).gsub('%2F', '/'))
478
+
479
+ # query parameters
480
+ query_params = opts[:query_params] || {}
481
+
482
+ # header parameters
483
+ header_params = opts[:header_params] || {}
484
+ # HTTP header 'Accept' (if needed)
485
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
486
+ # HTTP header 'Content-Type'
487
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
488
+ if !content_type.nil?
489
+ header_params['Content-Type'] = content_type
490
+ end
491
+
492
+ # form parameters
493
+ form_params = opts[:form_params] || {}
494
+
495
+ # http body (model)
496
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
497
+
498
+ # return_type
499
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
500
+
501
+ # auth_names
502
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
503
+
504
+ new_options = opts.merge(
505
+ :operation => :"ContentPackagesApi.unset_label",
506
+ :header_params => header_params,
507
+ :query_params => query_params,
508
+ :form_params => form_params,
509
+ :body => post_body,
510
+ :auth_names => auth_names,
511
+ :return_type => return_type
512
+ )
513
+
514
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
515
+ if @api_client.config.debugging
516
+ @api_client.config.logger.debug "API called: ContentPackagesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
517
+ end
518
+ return data, status_code, headers
519
+ end
366
520
  end
367
521
  end
@@ -29,6 +29,7 @@ module PulpRpmClient
29
29
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
30
30
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
31
31
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
32
+ # @option opts [String] :pulp_label_select Filter labels by search string
32
33
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
33
34
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
34
35
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -51,6 +52,7 @@ module PulpRpmClient
51
52
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
52
53
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
53
54
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
55
+ # @option opts [String] :pulp_label_select Filter labels by search string
54
56
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
55
57
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
56
58
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -78,6 +80,7 @@ module PulpRpmClient
78
80
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
79
81
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
80
82
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
83
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
81
84
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
82
85
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
83
86
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -187,5 +190,153 @@ module PulpRpmClient
187
190
  end
188
191
  return data, status_code, headers
189
192
  end
193
+
194
+ # Set a label
195
+ # Set a single pulp_label on the object to a specific value or null.
196
+ # @param rpm_repo_metadata_file_href [String]
197
+ # @param set_label [SetLabel]
198
+ # @param [Hash] opts the optional parameters
199
+ # @return [SetLabelResponse]
200
+ def set_label(rpm_repo_metadata_file_href, set_label, opts = {})
201
+ data, _status_code, _headers = set_label_with_http_info(rpm_repo_metadata_file_href, set_label, opts)
202
+ data
203
+ end
204
+
205
+ # Set a label
206
+ # Set a single pulp_label on the object to a specific value or null.
207
+ # @param rpm_repo_metadata_file_href [String]
208
+ # @param set_label [SetLabel]
209
+ # @param [Hash] opts the optional parameters
210
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
211
+ def set_label_with_http_info(rpm_repo_metadata_file_href, set_label, opts = {})
212
+ if @api_client.config.debugging
213
+ @api_client.config.logger.debug 'Calling API: ContentRepoMetadataFilesApi.set_label ...'
214
+ end
215
+ # verify the required parameter 'rpm_repo_metadata_file_href' is set
216
+ if @api_client.config.client_side_validation && rpm_repo_metadata_file_href.nil?
217
+ fail ArgumentError, "Missing the required parameter 'rpm_repo_metadata_file_href' when calling ContentRepoMetadataFilesApi.set_label"
218
+ end
219
+ # verify the required parameter 'set_label' is set
220
+ if @api_client.config.client_side_validation && set_label.nil?
221
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentRepoMetadataFilesApi.set_label"
222
+ end
223
+ # resource path
224
+ local_var_path = '{rpm_repo_metadata_file_href}set_label/'.sub('{' + 'rpm_repo_metadata_file_href' + '}', CGI.escape(rpm_repo_metadata_file_href.to_s).gsub('%2F', '/'))
225
+
226
+ # query parameters
227
+ query_params = opts[:query_params] || {}
228
+
229
+ # header parameters
230
+ header_params = opts[:header_params] || {}
231
+ # HTTP header 'Accept' (if needed)
232
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
233
+ # HTTP header 'Content-Type'
234
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
235
+ if !content_type.nil?
236
+ header_params['Content-Type'] = content_type
237
+ end
238
+
239
+ # form parameters
240
+ form_params = opts[:form_params] || {}
241
+
242
+ # http body (model)
243
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
244
+
245
+ # return_type
246
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
247
+
248
+ # auth_names
249
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
250
+
251
+ new_options = opts.merge(
252
+ :operation => :"ContentRepoMetadataFilesApi.set_label",
253
+ :header_params => header_params,
254
+ :query_params => query_params,
255
+ :form_params => form_params,
256
+ :body => post_body,
257
+ :auth_names => auth_names,
258
+ :return_type => return_type
259
+ )
260
+
261
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
262
+ if @api_client.config.debugging
263
+ @api_client.config.logger.debug "API called: ContentRepoMetadataFilesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
264
+ end
265
+ return data, status_code, headers
266
+ end
267
+
268
+ # Unset a label
269
+ # Unset a single pulp_label on the object.
270
+ # @param rpm_repo_metadata_file_href [String]
271
+ # @param unset_label [UnsetLabel]
272
+ # @param [Hash] opts the optional parameters
273
+ # @return [UnsetLabelResponse]
274
+ def unset_label(rpm_repo_metadata_file_href, unset_label, opts = {})
275
+ data, _status_code, _headers = unset_label_with_http_info(rpm_repo_metadata_file_href, unset_label, opts)
276
+ data
277
+ end
278
+
279
+ # Unset a label
280
+ # Unset a single pulp_label on the object.
281
+ # @param rpm_repo_metadata_file_href [String]
282
+ # @param unset_label [UnsetLabel]
283
+ # @param [Hash] opts the optional parameters
284
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
285
+ def unset_label_with_http_info(rpm_repo_metadata_file_href, unset_label, opts = {})
286
+ if @api_client.config.debugging
287
+ @api_client.config.logger.debug 'Calling API: ContentRepoMetadataFilesApi.unset_label ...'
288
+ end
289
+ # verify the required parameter 'rpm_repo_metadata_file_href' is set
290
+ if @api_client.config.client_side_validation && rpm_repo_metadata_file_href.nil?
291
+ fail ArgumentError, "Missing the required parameter 'rpm_repo_metadata_file_href' when calling ContentRepoMetadataFilesApi.unset_label"
292
+ end
293
+ # verify the required parameter 'unset_label' is set
294
+ if @api_client.config.client_side_validation && unset_label.nil?
295
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentRepoMetadataFilesApi.unset_label"
296
+ end
297
+ # resource path
298
+ local_var_path = '{rpm_repo_metadata_file_href}unset_label/'.sub('{' + 'rpm_repo_metadata_file_href' + '}', CGI.escape(rpm_repo_metadata_file_href.to_s).gsub('%2F', '/'))
299
+
300
+ # query parameters
301
+ query_params = opts[:query_params] || {}
302
+
303
+ # header parameters
304
+ header_params = opts[:header_params] || {}
305
+ # HTTP header 'Accept' (if needed)
306
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
307
+ # HTTP header 'Content-Type'
308
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
309
+ if !content_type.nil?
310
+ header_params['Content-Type'] = content_type
311
+ end
312
+
313
+ # form parameters
314
+ form_params = opts[:form_params] || {}
315
+
316
+ # http body (model)
317
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
318
+
319
+ # return_type
320
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
321
+
322
+ # auth_names
323
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
324
+
325
+ new_options = opts.merge(
326
+ :operation => :"ContentRepoMetadataFilesApi.unset_label",
327
+ :header_params => header_params,
328
+ :query_params => query_params,
329
+ :form_params => form_params,
330
+ :body => post_body,
331
+ :auth_names => auth_names,
332
+ :return_type => return_type
333
+ )
334
+
335
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
336
+ if @api_client.config.debugging
337
+ @api_client.config.logger.debug "API called: ContentRepoMetadataFilesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
338
+ end
339
+ return data, status_code, headers
340
+ end
190
341
  end
191
342
  end