pulp_rpm_client 3.28.0 → 3.28.1

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 (78) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -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/RpmModulemd.md +2 -0
  15. data/docs/RpmModulemdDefaults.md +2 -0
  16. data/docs/RpmModulemdDefaultsResponse.md +2 -0
  17. data/docs/RpmModulemdObsolete.md +2 -0
  18. data/docs/RpmModulemdObsoleteResponse.md +2 -0
  19. data/docs/RpmModulemdResponse.md +2 -0
  20. data/docs/RpmPackageCategoryResponse.md +2 -0
  21. data/docs/RpmPackageEnvironmentResponse.md +2 -0
  22. data/docs/RpmPackageGroupResponse.md +2 -0
  23. data/docs/RpmPackageLangpacksResponse.md +2 -0
  24. data/docs/RpmPackageResponse.md +2 -0
  25. data/docs/RpmRepoMetadataFileResponse.md +2 -0
  26. data/docs/RpmUpdateRecordResponse.md +2 -0
  27. data/lib/pulp_rpm_client/api/content_advisories_api.rb +157 -3
  28. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +151 -0
  29. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +154 -3
  30. data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +151 -0
  31. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +154 -3
  32. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +151 -0
  33. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +151 -0
  34. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +151 -0
  35. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +151 -0
  36. data/lib/pulp_rpm_client/api/content_packages_api.rb +157 -3
  37. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +151 -0
  38. data/lib/pulp_rpm_client/models/rpm_modulemd.rb +13 -1
  39. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +13 -1
  40. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +13 -1
  41. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +13 -1
  42. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +13 -1
  43. data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +13 -1
  44. data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +13 -1
  45. data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +13 -1
  46. data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +13 -1
  47. data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +13 -1
  48. data/lib/pulp_rpm_client/models/rpm_package_response.rb +13 -1
  49. data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +13 -1
  50. data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +13 -1
  51. data/lib/pulp_rpm_client/models/unset_label.rb +1 -1
  52. data/lib/pulp_rpm_client/models/unset_label_response.rb +1 -1
  53. data/lib/pulp_rpm_client/version.rb +1 -1
  54. data/spec/api/content_advisories_api_spec.rb +29 -1
  55. data/spec/api/content_distribution_trees_api_spec.rb +27 -0
  56. data/spec/api/content_modulemd_defaults_api_spec.rb +28 -1
  57. data/spec/api/content_modulemd_obsoletes_api_spec.rb +27 -0
  58. data/spec/api/content_modulemds_api_spec.rb +28 -1
  59. data/spec/api/content_packagecategories_api_spec.rb +27 -0
  60. data/spec/api/content_packageenvironments_api_spec.rb +27 -0
  61. data/spec/api/content_packagegroups_api_spec.rb +27 -0
  62. data/spec/api/content_packagelangpacks_api_spec.rb +27 -0
  63. data/spec/api/content_packages_api_spec.rb +29 -1
  64. data/spec/api/content_repo_metadata_files_api_spec.rb +27 -0
  65. data/spec/models/rpm_modulemd_defaults_response_spec.rb +6 -0
  66. data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
  67. data/spec/models/rpm_modulemd_obsolete_response_spec.rb +6 -0
  68. data/spec/models/rpm_modulemd_obsolete_spec.rb +6 -0
  69. data/spec/models/rpm_modulemd_response_spec.rb +6 -0
  70. data/spec/models/rpm_modulemd_spec.rb +6 -0
  71. data/spec/models/rpm_package_category_response_spec.rb +6 -0
  72. data/spec/models/rpm_package_environment_response_spec.rb +6 -0
  73. data/spec/models/rpm_package_group_response_spec.rb +6 -0
  74. data/spec/models/rpm_package_langpacks_response_spec.rb +6 -0
  75. data/spec/models/rpm_package_response_spec.rb +6 -0
  76. data/spec/models/rpm_repo_metadata_file_response_spec.rb +6 -0
  77. data/spec/models/rpm_update_record_response_spec.rb +6 -0
  78. metadata +79 -79
@@ -23,6 +23,7 @@ module PulpRpmClient
23
23
  # Trigger an asynchronous task to create content,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 [File] :file An uploaded file that may be turned into the content unit.
27
28
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
28
29
  # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
@@ -36,6 +37,7 @@ module PulpRpmClient
36
37
  # Trigger an asynchronous task to create content,optionally create new repository version.
37
38
  # @param [Hash] opts the optional parameters
38
39
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
40
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
39
41
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
40
42
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
41
43
  # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
@@ -67,6 +69,7 @@ module PulpRpmClient
67
69
  # form parameters
68
70
  form_params = opts[:form_params] || {}
69
71
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
72
+ form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
70
73
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
71
74
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
72
75
  form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
@@ -104,11 +107,12 @@ module PulpRpmClient
104
107
  # @option opts [Array<String>] :id__in Filter results where id is in a comma-separated list of values
105
108
  # @option opts [Integer] :limit Number of results to return per page.
106
109
  # @option opts [Integer] :offset The initial index from which to return the results.
107
- # @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;id&#x60; - Id * &#x60;-id&#x60; - Id (descending) * &#x60;updated_date&#x60; - Updated date * &#x60;-updated_date&#x60; - Updated date (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;issued_date&#x60; - Issued date * &#x60;-issued_date&#x60; - Issued date (descending) * &#x60;fromstr&#x60; - Fromstr * &#x60;-fromstr&#x60; - Fromstr (descending) * &#x60;status&#x60; - Status * &#x60;-status&#x60; - Status (descending) * &#x60;title&#x60; - Title * &#x60;-title&#x60; - Title (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;type&#x60; - Type * &#x60;-type&#x60; - Type (descending) * &#x60;severity&#x60; - Severity * &#x60;-severity&#x60; - Severity (descending) * &#x60;solution&#x60; - Solution * &#x60;-solution&#x60; - Solution (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;rights&#x60; - Rights * &#x60;-rights&#x60; - Rights (descending) * &#x60;reboot_suggested&#x60; - Reboot suggested * &#x60;-reboot_suggested&#x60; - Reboot suggested (descending) * &#x60;pushcount&#x60; - Pushcount * &#x60;-pushcount&#x60; - Pushcount (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
110
+ # @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;id&#x60; - Id * &#x60;-id&#x60; - Id (descending) * &#x60;updated_date&#x60; - Updated date * &#x60;-updated_date&#x60; - Updated date (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;issued_date&#x60; - Issued date * &#x60;-issued_date&#x60; - Issued date (descending) * &#x60;fromstr&#x60; - Fromstr * &#x60;-fromstr&#x60; - Fromstr (descending) * &#x60;status&#x60; - Status * &#x60;-status&#x60; - Status (descending) * &#x60;title&#x60; - Title * &#x60;-title&#x60; - Title (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;type&#x60; - Type * &#x60;-type&#x60; - Type (descending) * &#x60;severity&#x60; - Severity * &#x60;-severity&#x60; - Severity (descending) * &#x60;solution&#x60; - Solution * &#x60;-solution&#x60; - Solution (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;rights&#x60; - Rights * &#x60;-rights&#x60; - Rights (descending) * &#x60;reboot_suggested&#x60; - Reboot suggested * &#x60;-reboot_suggested&#x60; - Reboot suggested (descending) * &#x60;pushcount&#x60; - Pushcount * &#x60;-pushcount&#x60; - Pushcount (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
108
111
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
109
112
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
110
113
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
111
114
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
115
+ # @option opts [String] :pulp_label_select Filter labels by search string
112
116
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
113
117
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
114
118
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -137,11 +141,12 @@ module PulpRpmClient
137
141
  # @option opts [Array<String>] :id__in Filter results where id is in a comma-separated list of values
138
142
  # @option opts [Integer] :limit Number of results to return per page.
139
143
  # @option opts [Integer] :offset The initial index from which to return the results.
140
- # @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;id&#x60; - Id * &#x60;-id&#x60; - Id (descending) * &#x60;updated_date&#x60; - Updated date * &#x60;-updated_date&#x60; - Updated date (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;issued_date&#x60; - Issued date * &#x60;-issued_date&#x60; - Issued date (descending) * &#x60;fromstr&#x60; - Fromstr * &#x60;-fromstr&#x60; - Fromstr (descending) * &#x60;status&#x60; - Status * &#x60;-status&#x60; - Status (descending) * &#x60;title&#x60; - Title * &#x60;-title&#x60; - Title (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;type&#x60; - Type * &#x60;-type&#x60; - Type (descending) * &#x60;severity&#x60; - Severity * &#x60;-severity&#x60; - Severity (descending) * &#x60;solution&#x60; - Solution * &#x60;-solution&#x60; - Solution (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;rights&#x60; - Rights * &#x60;-rights&#x60; - Rights (descending) * &#x60;reboot_suggested&#x60; - Reboot suggested * &#x60;-reboot_suggested&#x60; - Reboot suggested (descending) * &#x60;pushcount&#x60; - Pushcount * &#x60;-pushcount&#x60; - Pushcount (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
144
+ # @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;id&#x60; - Id * &#x60;-id&#x60; - Id (descending) * &#x60;updated_date&#x60; - Updated date * &#x60;-updated_date&#x60; - Updated date (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;issued_date&#x60; - Issued date * &#x60;-issued_date&#x60; - Issued date (descending) * &#x60;fromstr&#x60; - Fromstr * &#x60;-fromstr&#x60; - Fromstr (descending) * &#x60;status&#x60; - Status * &#x60;-status&#x60; - Status (descending) * &#x60;title&#x60; - Title * &#x60;-title&#x60; - Title (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;type&#x60; - Type * &#x60;-type&#x60; - Type (descending) * &#x60;severity&#x60; - Severity * &#x60;-severity&#x60; - Severity (descending) * &#x60;solution&#x60; - Solution * &#x60;-solution&#x60; - Solution (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;rights&#x60; - Rights * &#x60;-rights&#x60; - Rights (descending) * &#x60;reboot_suggested&#x60; - Reboot suggested * &#x60;-reboot_suggested&#x60; - Reboot suggested (descending) * &#x60;pushcount&#x60; - Pushcount * &#x60;-pushcount&#x60; - Pushcount (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
141
145
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
142
146
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
143
147
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
144
148
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
149
+ # @option opts [String] :pulp_label_select Filter labels by search string
145
150
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
146
151
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
147
152
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -162,7 +167,7 @@ module PulpRpmClient
162
167
  if @api_client.config.debugging
163
168
  @api_client.config.logger.debug 'Calling API: ContentAdvisoriesApi.list ...'
164
169
  end
165
- allowable_values = ["-description", "-digest", "-fromstr", "-id", "-issued_date", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-pushcount", "-reboot_suggested", "-release", "-rights", "-severity", "-solution", "-status", "-summary", "-timestamp_of_interest", "-title", "-type", "-updated_date", "-upstream_id", "-version", "description", "digest", "fromstr", "id", "issued_date", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "pushcount", "reboot_suggested", "release", "rights", "severity", "solution", "status", "summary", "timestamp_of_interest", "title", "type", "updated_date", "upstream_id", "version"]
170
+ allowable_values = ["-description", "-digest", "-fromstr", "-id", "-issued_date", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pushcount", "-reboot_suggested", "-release", "-rights", "-severity", "-solution", "-status", "-summary", "-timestamp_of_interest", "-title", "-type", "-updated_date", "-upstream_id", "-version", "description", "digest", "fromstr", "id", "issued_date", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pushcount", "reboot_suggested", "release", "rights", "severity", "solution", "status", "summary", "timestamp_of_interest", "title", "type", "updated_date", "upstream_id", "version"]
166
171
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
167
172
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
168
173
  end
@@ -180,6 +185,7 @@ module PulpRpmClient
180
185
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
181
186
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
182
187
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
188
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
183
189
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
184
190
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
185
191
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -298,5 +304,153 @@ module PulpRpmClient
298
304
  end
299
305
  return data, status_code, headers
300
306
  end
307
+
308
+ # Set a label
309
+ # Set a single pulp_label on the object to a specific value or null.
310
+ # @param rpm_update_record_href [String]
311
+ # @param set_label [SetLabel]
312
+ # @param [Hash] opts the optional parameters
313
+ # @return [SetLabelResponse]
314
+ def set_label(rpm_update_record_href, set_label, opts = {})
315
+ data, _status_code, _headers = set_label_with_http_info(rpm_update_record_href, set_label, opts)
316
+ data
317
+ end
318
+
319
+ # Set a label
320
+ # Set a single pulp_label on the object to a specific value or null.
321
+ # @param rpm_update_record_href [String]
322
+ # @param set_label [SetLabel]
323
+ # @param [Hash] opts the optional parameters
324
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
325
+ def set_label_with_http_info(rpm_update_record_href, set_label, opts = {})
326
+ if @api_client.config.debugging
327
+ @api_client.config.logger.debug 'Calling API: ContentAdvisoriesApi.set_label ...'
328
+ end
329
+ # verify the required parameter 'rpm_update_record_href' is set
330
+ if @api_client.config.client_side_validation && rpm_update_record_href.nil?
331
+ fail ArgumentError, "Missing the required parameter 'rpm_update_record_href' when calling ContentAdvisoriesApi.set_label"
332
+ end
333
+ # verify the required parameter 'set_label' is set
334
+ if @api_client.config.client_side_validation && set_label.nil?
335
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentAdvisoriesApi.set_label"
336
+ end
337
+ # resource path
338
+ local_var_path = '{rpm_update_record_href}set_label/'.sub('{' + 'rpm_update_record_href' + '}', CGI.escape(rpm_update_record_href.to_s).gsub('%2F', '/'))
339
+
340
+ # query parameters
341
+ query_params = opts[:query_params] || {}
342
+
343
+ # header parameters
344
+ header_params = opts[:header_params] || {}
345
+ # HTTP header 'Accept' (if needed)
346
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
347
+ # HTTP header 'Content-Type'
348
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
349
+ if !content_type.nil?
350
+ header_params['Content-Type'] = content_type
351
+ end
352
+
353
+ # form parameters
354
+ form_params = opts[:form_params] || {}
355
+
356
+ # http body (model)
357
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
358
+
359
+ # return_type
360
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
361
+
362
+ # auth_names
363
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
364
+
365
+ new_options = opts.merge(
366
+ :operation => :"ContentAdvisoriesApi.set_label",
367
+ :header_params => header_params,
368
+ :query_params => query_params,
369
+ :form_params => form_params,
370
+ :body => post_body,
371
+ :auth_names => auth_names,
372
+ :return_type => return_type
373
+ )
374
+
375
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
376
+ if @api_client.config.debugging
377
+ @api_client.config.logger.debug "API called: ContentAdvisoriesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
378
+ end
379
+ return data, status_code, headers
380
+ end
381
+
382
+ # Unset a label
383
+ # Unset a single pulp_label on the object.
384
+ # @param rpm_update_record_href [String]
385
+ # @param unset_label [UnsetLabel]
386
+ # @param [Hash] opts the optional parameters
387
+ # @return [UnsetLabelResponse]
388
+ def unset_label(rpm_update_record_href, unset_label, opts = {})
389
+ data, _status_code, _headers = unset_label_with_http_info(rpm_update_record_href, unset_label, opts)
390
+ data
391
+ end
392
+
393
+ # Unset a label
394
+ # Unset a single pulp_label on the object.
395
+ # @param rpm_update_record_href [String]
396
+ # @param unset_label [UnsetLabel]
397
+ # @param [Hash] opts the optional parameters
398
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
399
+ def unset_label_with_http_info(rpm_update_record_href, unset_label, opts = {})
400
+ if @api_client.config.debugging
401
+ @api_client.config.logger.debug 'Calling API: ContentAdvisoriesApi.unset_label ...'
402
+ end
403
+ # verify the required parameter 'rpm_update_record_href' is set
404
+ if @api_client.config.client_side_validation && rpm_update_record_href.nil?
405
+ fail ArgumentError, "Missing the required parameter 'rpm_update_record_href' when calling ContentAdvisoriesApi.unset_label"
406
+ end
407
+ # verify the required parameter 'unset_label' is set
408
+ if @api_client.config.client_side_validation && unset_label.nil?
409
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentAdvisoriesApi.unset_label"
410
+ end
411
+ # resource path
412
+ local_var_path = '{rpm_update_record_href}unset_label/'.sub('{' + 'rpm_update_record_href' + '}', CGI.escape(rpm_update_record_href.to_s).gsub('%2F', '/'))
413
+
414
+ # query parameters
415
+ query_params = opts[:query_params] || {}
416
+
417
+ # header parameters
418
+ header_params = opts[:header_params] || {}
419
+ # HTTP header 'Accept' (if needed)
420
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
421
+ # HTTP header 'Content-Type'
422
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
423
+ if !content_type.nil?
424
+ header_params['Content-Type'] = content_type
425
+ end
426
+
427
+ # form parameters
428
+ form_params = opts[:form_params] || {}
429
+
430
+ # http body (model)
431
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
432
+
433
+ # return_type
434
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
435
+
436
+ # auth_names
437
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
438
+
439
+ new_options = opts.merge(
440
+ :operation => :"ContentAdvisoriesApi.unset_label",
441
+ :header_params => header_params,
442
+ :query_params => query_params,
443
+ :form_params => form_params,
444
+ :body => post_body,
445
+ :auth_names => auth_names,
446
+ :return_type => return_type
447
+ )
448
+
449
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
450
+ if @api_client.config.debugging
451
+ @api_client.config.logger.debug "API called: ContentAdvisoriesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
452
+ end
453
+ return data, status_code, headers
454
+ end
301
455
  end
302
456
  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_distribution_tree_href [String]
197
+ # @param set_label [SetLabel]
198
+ # @param [Hash] opts the optional parameters
199
+ # @return [SetLabelResponse]
200
+ def set_label(rpm_distribution_tree_href, set_label, opts = {})
201
+ data, _status_code, _headers = set_label_with_http_info(rpm_distribution_tree_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_distribution_tree_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_distribution_tree_href, set_label, opts = {})
212
+ if @api_client.config.debugging
213
+ @api_client.config.logger.debug 'Calling API: ContentDistributionTreesApi.set_label ...'
214
+ end
215
+ # verify the required parameter 'rpm_distribution_tree_href' is set
216
+ if @api_client.config.client_side_validation && rpm_distribution_tree_href.nil?
217
+ fail ArgumentError, "Missing the required parameter 'rpm_distribution_tree_href' when calling ContentDistributionTreesApi.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 ContentDistributionTreesApi.set_label"
222
+ end
223
+ # resource path
224
+ local_var_path = '{rpm_distribution_tree_href}set_label/'.sub('{' + 'rpm_distribution_tree_href' + '}', CGI.escape(rpm_distribution_tree_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 => :"ContentDistributionTreesApi.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: ContentDistributionTreesApi#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_distribution_tree_href [String]
271
+ # @param unset_label [UnsetLabel]
272
+ # @param [Hash] opts the optional parameters
273
+ # @return [UnsetLabelResponse]
274
+ def unset_label(rpm_distribution_tree_href, unset_label, opts = {})
275
+ data, _status_code, _headers = unset_label_with_http_info(rpm_distribution_tree_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_distribution_tree_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_distribution_tree_href, unset_label, opts = {})
286
+ if @api_client.config.debugging
287
+ @api_client.config.logger.debug 'Calling API: ContentDistributionTreesApi.unset_label ...'
288
+ end
289
+ # verify the required parameter 'rpm_distribution_tree_href' is set
290
+ if @api_client.config.client_side_validation && rpm_distribution_tree_href.nil?
291
+ fail ArgumentError, "Missing the required parameter 'rpm_distribution_tree_href' when calling ContentDistributionTreesApi.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 ContentDistributionTreesApi.unset_label"
296
+ end
297
+ # resource path
298
+ local_var_path = '{rpm_distribution_tree_href}unset_label/'.sub('{' + 'rpm_distribution_tree_href' + '}', CGI.escape(rpm_distribution_tree_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 => :"ContentDistributionTreesApi.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: ContentDistributionTreesApi#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
@@ -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