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
@@ -6,6 +6,8 @@ All URIs are relative to *http://localhost:24817*
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**list**](ContentPackagecategoriesApi.md#list) | **GET** /pulp/api/v3/content/rpm/packagecategories/ | List package categorys |
8
8
  | [**read**](ContentPackagecategoriesApi.md#read) | **GET** {rpm_package_category_href} | Inspect a package category |
9
+ | [**set_label**](ContentPackagecategoriesApi.md#set_label) | **POST** {rpm_package_category_href}set_label/ | Set a label |
10
+ | [**unset_label**](ContentPackagecategoriesApi.md#unset_label) | **POST** {rpm_package_category_href}unset_label/ | Unset a label |
9
11
 
10
12
 
11
13
  ## list
@@ -37,6 +39,7 @@ opts = {
37
39
  prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
38
40
  pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
39
41
  pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
42
+ pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
40
43
  q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
41
44
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
42
45
  repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
@@ -83,6 +86,7 @@ end
83
86
  | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
84
87
  | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
85
88
  | **pulp_id__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
89
+ | **pulp_label_select** | **String** | Filter labels by search string | [optional] |
86
90
  | **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
87
91
  | **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
88
92
  | **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
@@ -179,3 +183,147 @@ end
179
183
  - **Content-Type**: Not defined
180
184
  - **Accept**: application/json
181
185
 
186
+
187
+ ## set_label
188
+
189
+ > <SetLabelResponse> set_label(rpm_package_category_href, set_label)
190
+
191
+ Set a label
192
+
193
+ Set a single pulp_label on the object to a specific value or null.
194
+
195
+ ### Examples
196
+
197
+ ```ruby
198
+ require 'time'
199
+ require 'pulp_rpm_client'
200
+ # setup authorization
201
+ PulpRpmClient.configure do |config|
202
+ # Configure HTTP basic authorization: basicAuth
203
+ config.username = 'YOUR USERNAME'
204
+ config.password = 'YOUR PASSWORD'
205
+ end
206
+
207
+ api_instance = PulpRpmClient::ContentPackagecategoriesApi.new
208
+ rpm_package_category_href = 'rpm_package_category_href_example' # String |
209
+ set_label = PulpRpmClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
210
+
211
+ begin
212
+ # Set a label
213
+ result = api_instance.set_label(rpm_package_category_href, set_label)
214
+ p result
215
+ rescue PulpRpmClient::ApiError => e
216
+ puts "Error when calling ContentPackagecategoriesApi->set_label: #{e}"
217
+ end
218
+ ```
219
+
220
+ #### Using the set_label_with_http_info variant
221
+
222
+ This returns an Array which contains the response data, status code and headers.
223
+
224
+ > <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(rpm_package_category_href, set_label)
225
+
226
+ ```ruby
227
+ begin
228
+ # Set a label
229
+ data, status_code, headers = api_instance.set_label_with_http_info(rpm_package_category_href, set_label)
230
+ p status_code # => 2xx
231
+ p headers # => { ... }
232
+ p data # => <SetLabelResponse>
233
+ rescue PulpRpmClient::ApiError => e
234
+ puts "Error when calling ContentPackagecategoriesApi->set_label_with_http_info: #{e}"
235
+ end
236
+ ```
237
+
238
+ ### Parameters
239
+
240
+ | Name | Type | Description | Notes |
241
+ | ---- | ---- | ----------- | ----- |
242
+ | **rpm_package_category_href** | **String** | | |
243
+ | **set_label** | [**SetLabel**](SetLabel.md) | | |
244
+
245
+ ### Return type
246
+
247
+ [**SetLabelResponse**](SetLabelResponse.md)
248
+
249
+ ### Authorization
250
+
251
+ [basicAuth](../README.md#basicAuth)
252
+
253
+ ### HTTP request headers
254
+
255
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
256
+ - **Accept**: application/json
257
+
258
+
259
+ ## unset_label
260
+
261
+ > <UnsetLabelResponse> unset_label(rpm_package_category_href, unset_label)
262
+
263
+ Unset a label
264
+
265
+ Unset a single pulp_label on the object.
266
+
267
+ ### Examples
268
+
269
+ ```ruby
270
+ require 'time'
271
+ require 'pulp_rpm_client'
272
+ # setup authorization
273
+ PulpRpmClient.configure do |config|
274
+ # Configure HTTP basic authorization: basicAuth
275
+ config.username = 'YOUR USERNAME'
276
+ config.password = 'YOUR PASSWORD'
277
+ end
278
+
279
+ api_instance = PulpRpmClient::ContentPackagecategoriesApi.new
280
+ rpm_package_category_href = 'rpm_package_category_href_example' # String |
281
+ unset_label = PulpRpmClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
282
+
283
+ begin
284
+ # Unset a label
285
+ result = api_instance.unset_label(rpm_package_category_href, unset_label)
286
+ p result
287
+ rescue PulpRpmClient::ApiError => e
288
+ puts "Error when calling ContentPackagecategoriesApi->unset_label: #{e}"
289
+ end
290
+ ```
291
+
292
+ #### Using the unset_label_with_http_info variant
293
+
294
+ This returns an Array which contains the response data, status code and headers.
295
+
296
+ > <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(rpm_package_category_href, unset_label)
297
+
298
+ ```ruby
299
+ begin
300
+ # Unset a label
301
+ data, status_code, headers = api_instance.unset_label_with_http_info(rpm_package_category_href, unset_label)
302
+ p status_code # => 2xx
303
+ p headers # => { ... }
304
+ p data # => <UnsetLabelResponse>
305
+ rescue PulpRpmClient::ApiError => e
306
+ puts "Error when calling ContentPackagecategoriesApi->unset_label_with_http_info: #{e}"
307
+ end
308
+ ```
309
+
310
+ ### Parameters
311
+
312
+ | Name | Type | Description | Notes |
313
+ | ---- | ---- | ----------- | ----- |
314
+ | **rpm_package_category_href** | **String** | | |
315
+ | **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
316
+
317
+ ### Return type
318
+
319
+ [**UnsetLabelResponse**](UnsetLabelResponse.md)
320
+
321
+ ### Authorization
322
+
323
+ [basicAuth](../README.md#basicAuth)
324
+
325
+ ### HTTP request headers
326
+
327
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
328
+ - **Accept**: application/json
329
+
@@ -6,6 +6,8 @@ All URIs are relative to *http://localhost:24817*
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**list**](ContentPackageenvironmentsApi.md#list) | **GET** /pulp/api/v3/content/rpm/packageenvironments/ | List package environments |
8
8
  | [**read**](ContentPackageenvironmentsApi.md#read) | **GET** {rpm_package_environment_href} | Inspect a package environment |
9
+ | [**set_label**](ContentPackageenvironmentsApi.md#set_label) | **POST** {rpm_package_environment_href}set_label/ | Set a label |
10
+ | [**unset_label**](ContentPackageenvironmentsApi.md#unset_label) | **POST** {rpm_package_environment_href}unset_label/ | Unset a label |
9
11
 
10
12
 
11
13
  ## list
@@ -37,6 +39,7 @@ opts = {
37
39
  prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
38
40
  pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
39
41
  pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
42
+ pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
40
43
  q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
41
44
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
42
45
  repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
@@ -83,6 +86,7 @@ end
83
86
  | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
84
87
  | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
85
88
  | **pulp_id__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
89
+ | **pulp_label_select** | **String** | Filter labels by search string | [optional] |
86
90
  | **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
87
91
  | **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
88
92
  | **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
@@ -179,3 +183,147 @@ end
179
183
  - **Content-Type**: Not defined
180
184
  - **Accept**: application/json
181
185
 
186
+
187
+ ## set_label
188
+
189
+ > <SetLabelResponse> set_label(rpm_package_environment_href, set_label)
190
+
191
+ Set a label
192
+
193
+ Set a single pulp_label on the object to a specific value or null.
194
+
195
+ ### Examples
196
+
197
+ ```ruby
198
+ require 'time'
199
+ require 'pulp_rpm_client'
200
+ # setup authorization
201
+ PulpRpmClient.configure do |config|
202
+ # Configure HTTP basic authorization: basicAuth
203
+ config.username = 'YOUR USERNAME'
204
+ config.password = 'YOUR PASSWORD'
205
+ end
206
+
207
+ api_instance = PulpRpmClient::ContentPackageenvironmentsApi.new
208
+ rpm_package_environment_href = 'rpm_package_environment_href_example' # String |
209
+ set_label = PulpRpmClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
210
+
211
+ begin
212
+ # Set a label
213
+ result = api_instance.set_label(rpm_package_environment_href, set_label)
214
+ p result
215
+ rescue PulpRpmClient::ApiError => e
216
+ puts "Error when calling ContentPackageenvironmentsApi->set_label: #{e}"
217
+ end
218
+ ```
219
+
220
+ #### Using the set_label_with_http_info variant
221
+
222
+ This returns an Array which contains the response data, status code and headers.
223
+
224
+ > <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(rpm_package_environment_href, set_label)
225
+
226
+ ```ruby
227
+ begin
228
+ # Set a label
229
+ data, status_code, headers = api_instance.set_label_with_http_info(rpm_package_environment_href, set_label)
230
+ p status_code # => 2xx
231
+ p headers # => { ... }
232
+ p data # => <SetLabelResponse>
233
+ rescue PulpRpmClient::ApiError => e
234
+ puts "Error when calling ContentPackageenvironmentsApi->set_label_with_http_info: #{e}"
235
+ end
236
+ ```
237
+
238
+ ### Parameters
239
+
240
+ | Name | Type | Description | Notes |
241
+ | ---- | ---- | ----------- | ----- |
242
+ | **rpm_package_environment_href** | **String** | | |
243
+ | **set_label** | [**SetLabel**](SetLabel.md) | | |
244
+
245
+ ### Return type
246
+
247
+ [**SetLabelResponse**](SetLabelResponse.md)
248
+
249
+ ### Authorization
250
+
251
+ [basicAuth](../README.md#basicAuth)
252
+
253
+ ### HTTP request headers
254
+
255
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
256
+ - **Accept**: application/json
257
+
258
+
259
+ ## unset_label
260
+
261
+ > <UnsetLabelResponse> unset_label(rpm_package_environment_href, unset_label)
262
+
263
+ Unset a label
264
+
265
+ Unset a single pulp_label on the object.
266
+
267
+ ### Examples
268
+
269
+ ```ruby
270
+ require 'time'
271
+ require 'pulp_rpm_client'
272
+ # setup authorization
273
+ PulpRpmClient.configure do |config|
274
+ # Configure HTTP basic authorization: basicAuth
275
+ config.username = 'YOUR USERNAME'
276
+ config.password = 'YOUR PASSWORD'
277
+ end
278
+
279
+ api_instance = PulpRpmClient::ContentPackageenvironmentsApi.new
280
+ rpm_package_environment_href = 'rpm_package_environment_href_example' # String |
281
+ unset_label = PulpRpmClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
282
+
283
+ begin
284
+ # Unset a label
285
+ result = api_instance.unset_label(rpm_package_environment_href, unset_label)
286
+ p result
287
+ rescue PulpRpmClient::ApiError => e
288
+ puts "Error when calling ContentPackageenvironmentsApi->unset_label: #{e}"
289
+ end
290
+ ```
291
+
292
+ #### Using the unset_label_with_http_info variant
293
+
294
+ This returns an Array which contains the response data, status code and headers.
295
+
296
+ > <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(rpm_package_environment_href, unset_label)
297
+
298
+ ```ruby
299
+ begin
300
+ # Unset a label
301
+ data, status_code, headers = api_instance.unset_label_with_http_info(rpm_package_environment_href, unset_label)
302
+ p status_code # => 2xx
303
+ p headers # => { ... }
304
+ p data # => <UnsetLabelResponse>
305
+ rescue PulpRpmClient::ApiError => e
306
+ puts "Error when calling ContentPackageenvironmentsApi->unset_label_with_http_info: #{e}"
307
+ end
308
+ ```
309
+
310
+ ### Parameters
311
+
312
+ | Name | Type | Description | Notes |
313
+ | ---- | ---- | ----------- | ----- |
314
+ | **rpm_package_environment_href** | **String** | | |
315
+ | **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
316
+
317
+ ### Return type
318
+
319
+ [**UnsetLabelResponse**](UnsetLabelResponse.md)
320
+
321
+ ### Authorization
322
+
323
+ [basicAuth](../README.md#basicAuth)
324
+
325
+ ### HTTP request headers
326
+
327
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
328
+ - **Accept**: application/json
329
+
@@ -6,6 +6,8 @@ All URIs are relative to *http://localhost:24817*
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**list**](ContentPackagegroupsApi.md#list) | **GET** /pulp/api/v3/content/rpm/packagegroups/ | List package groups |
8
8
  | [**read**](ContentPackagegroupsApi.md#read) | **GET** {rpm_package_group_href} | Inspect a package group |
9
+ | [**set_label**](ContentPackagegroupsApi.md#set_label) | **POST** {rpm_package_group_href}set_label/ | Set a label |
10
+ | [**unset_label**](ContentPackagegroupsApi.md#unset_label) | **POST** {rpm_package_group_href}unset_label/ | Unset a label |
9
11
 
10
12
 
11
13
  ## list
@@ -37,6 +39,7 @@ opts = {
37
39
  prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
38
40
  pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
39
41
  pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
42
+ pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
40
43
  q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
41
44
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
42
45
  repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
@@ -83,6 +86,7 @@ end
83
86
  | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
84
87
  | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
85
88
  | **pulp_id__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
89
+ | **pulp_label_select** | **String** | Filter labels by search string | [optional] |
86
90
  | **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
87
91
  | **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
88
92
  | **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
@@ -179,3 +183,147 @@ end
179
183
  - **Content-Type**: Not defined
180
184
  - **Accept**: application/json
181
185
 
186
+
187
+ ## set_label
188
+
189
+ > <SetLabelResponse> set_label(rpm_package_group_href, set_label)
190
+
191
+ Set a label
192
+
193
+ Set a single pulp_label on the object to a specific value or null.
194
+
195
+ ### Examples
196
+
197
+ ```ruby
198
+ require 'time'
199
+ require 'pulp_rpm_client'
200
+ # setup authorization
201
+ PulpRpmClient.configure do |config|
202
+ # Configure HTTP basic authorization: basicAuth
203
+ config.username = 'YOUR USERNAME'
204
+ config.password = 'YOUR PASSWORD'
205
+ end
206
+
207
+ api_instance = PulpRpmClient::ContentPackagegroupsApi.new
208
+ rpm_package_group_href = 'rpm_package_group_href_example' # String |
209
+ set_label = PulpRpmClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
210
+
211
+ begin
212
+ # Set a label
213
+ result = api_instance.set_label(rpm_package_group_href, set_label)
214
+ p result
215
+ rescue PulpRpmClient::ApiError => e
216
+ puts "Error when calling ContentPackagegroupsApi->set_label: #{e}"
217
+ end
218
+ ```
219
+
220
+ #### Using the set_label_with_http_info variant
221
+
222
+ This returns an Array which contains the response data, status code and headers.
223
+
224
+ > <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(rpm_package_group_href, set_label)
225
+
226
+ ```ruby
227
+ begin
228
+ # Set a label
229
+ data, status_code, headers = api_instance.set_label_with_http_info(rpm_package_group_href, set_label)
230
+ p status_code # => 2xx
231
+ p headers # => { ... }
232
+ p data # => <SetLabelResponse>
233
+ rescue PulpRpmClient::ApiError => e
234
+ puts "Error when calling ContentPackagegroupsApi->set_label_with_http_info: #{e}"
235
+ end
236
+ ```
237
+
238
+ ### Parameters
239
+
240
+ | Name | Type | Description | Notes |
241
+ | ---- | ---- | ----------- | ----- |
242
+ | **rpm_package_group_href** | **String** | | |
243
+ | **set_label** | [**SetLabel**](SetLabel.md) | | |
244
+
245
+ ### Return type
246
+
247
+ [**SetLabelResponse**](SetLabelResponse.md)
248
+
249
+ ### Authorization
250
+
251
+ [basicAuth](../README.md#basicAuth)
252
+
253
+ ### HTTP request headers
254
+
255
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
256
+ - **Accept**: application/json
257
+
258
+
259
+ ## unset_label
260
+
261
+ > <UnsetLabelResponse> unset_label(rpm_package_group_href, unset_label)
262
+
263
+ Unset a label
264
+
265
+ Unset a single pulp_label on the object.
266
+
267
+ ### Examples
268
+
269
+ ```ruby
270
+ require 'time'
271
+ require 'pulp_rpm_client'
272
+ # setup authorization
273
+ PulpRpmClient.configure do |config|
274
+ # Configure HTTP basic authorization: basicAuth
275
+ config.username = 'YOUR USERNAME'
276
+ config.password = 'YOUR PASSWORD'
277
+ end
278
+
279
+ api_instance = PulpRpmClient::ContentPackagegroupsApi.new
280
+ rpm_package_group_href = 'rpm_package_group_href_example' # String |
281
+ unset_label = PulpRpmClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
282
+
283
+ begin
284
+ # Unset a label
285
+ result = api_instance.unset_label(rpm_package_group_href, unset_label)
286
+ p result
287
+ rescue PulpRpmClient::ApiError => e
288
+ puts "Error when calling ContentPackagegroupsApi->unset_label: #{e}"
289
+ end
290
+ ```
291
+
292
+ #### Using the unset_label_with_http_info variant
293
+
294
+ This returns an Array which contains the response data, status code and headers.
295
+
296
+ > <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(rpm_package_group_href, unset_label)
297
+
298
+ ```ruby
299
+ begin
300
+ # Unset a label
301
+ data, status_code, headers = api_instance.unset_label_with_http_info(rpm_package_group_href, unset_label)
302
+ p status_code # => 2xx
303
+ p headers # => { ... }
304
+ p data # => <UnsetLabelResponse>
305
+ rescue PulpRpmClient::ApiError => e
306
+ puts "Error when calling ContentPackagegroupsApi->unset_label_with_http_info: #{e}"
307
+ end
308
+ ```
309
+
310
+ ### Parameters
311
+
312
+ | Name | Type | Description | Notes |
313
+ | ---- | ---- | ----------- | ----- |
314
+ | **rpm_package_group_href** | **String** | | |
315
+ | **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
316
+
317
+ ### Return type
318
+
319
+ [**UnsetLabelResponse**](UnsetLabelResponse.md)
320
+
321
+ ### Authorization
322
+
323
+ [basicAuth](../README.md#basicAuth)
324
+
325
+ ### HTTP request headers
326
+
327
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
328
+ - **Accept**: application/json
329
+
@@ -6,6 +6,8 @@ All URIs are relative to *http://localhost:24817*
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**list**](ContentPackagelangpacksApi.md#list) | **GET** /pulp/api/v3/content/rpm/packagelangpacks/ | List package langpackss |
8
8
  | [**read**](ContentPackagelangpacksApi.md#read) | **GET** {rpm_package_langpacks_href} | Inspect a package langpacks |
9
+ | [**set_label**](ContentPackagelangpacksApi.md#set_label) | **POST** {rpm_package_langpacks_href}set_label/ | Set a label |
10
+ | [**unset_label**](ContentPackagelangpacksApi.md#unset_label) | **POST** {rpm_package_langpacks_href}unset_label/ | Unset a label |
9
11
 
10
12
 
11
13
  ## list
@@ -37,6 +39,7 @@ opts = {
37
39
  prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
38
40
  pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
39
41
  pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
42
+ pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
40
43
  q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
41
44
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
42
45
  repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
@@ -83,6 +86,7 @@ end
83
86
  | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
84
87
  | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
85
88
  | **pulp_id__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
89
+ | **pulp_label_select** | **String** | Filter labels by search string | [optional] |
86
90
  | **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
87
91
  | **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
88
92
  | **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
@@ -179,3 +183,147 @@ end
179
183
  - **Content-Type**: Not defined
180
184
  - **Accept**: application/json
181
185
 
186
+
187
+ ## set_label
188
+
189
+ > <SetLabelResponse> set_label(rpm_package_langpacks_href, set_label)
190
+
191
+ Set a label
192
+
193
+ Set a single pulp_label on the object to a specific value or null.
194
+
195
+ ### Examples
196
+
197
+ ```ruby
198
+ require 'time'
199
+ require 'pulp_rpm_client'
200
+ # setup authorization
201
+ PulpRpmClient.configure do |config|
202
+ # Configure HTTP basic authorization: basicAuth
203
+ config.username = 'YOUR USERNAME'
204
+ config.password = 'YOUR PASSWORD'
205
+ end
206
+
207
+ api_instance = PulpRpmClient::ContentPackagelangpacksApi.new
208
+ rpm_package_langpacks_href = 'rpm_package_langpacks_href_example' # String |
209
+ set_label = PulpRpmClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
210
+
211
+ begin
212
+ # Set a label
213
+ result = api_instance.set_label(rpm_package_langpacks_href, set_label)
214
+ p result
215
+ rescue PulpRpmClient::ApiError => e
216
+ puts "Error when calling ContentPackagelangpacksApi->set_label: #{e}"
217
+ end
218
+ ```
219
+
220
+ #### Using the set_label_with_http_info variant
221
+
222
+ This returns an Array which contains the response data, status code and headers.
223
+
224
+ > <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(rpm_package_langpacks_href, set_label)
225
+
226
+ ```ruby
227
+ begin
228
+ # Set a label
229
+ data, status_code, headers = api_instance.set_label_with_http_info(rpm_package_langpacks_href, set_label)
230
+ p status_code # => 2xx
231
+ p headers # => { ... }
232
+ p data # => <SetLabelResponse>
233
+ rescue PulpRpmClient::ApiError => e
234
+ puts "Error when calling ContentPackagelangpacksApi->set_label_with_http_info: #{e}"
235
+ end
236
+ ```
237
+
238
+ ### Parameters
239
+
240
+ | Name | Type | Description | Notes |
241
+ | ---- | ---- | ----------- | ----- |
242
+ | **rpm_package_langpacks_href** | **String** | | |
243
+ | **set_label** | [**SetLabel**](SetLabel.md) | | |
244
+
245
+ ### Return type
246
+
247
+ [**SetLabelResponse**](SetLabelResponse.md)
248
+
249
+ ### Authorization
250
+
251
+ [basicAuth](../README.md#basicAuth)
252
+
253
+ ### HTTP request headers
254
+
255
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
256
+ - **Accept**: application/json
257
+
258
+
259
+ ## unset_label
260
+
261
+ > <UnsetLabelResponse> unset_label(rpm_package_langpacks_href, unset_label)
262
+
263
+ Unset a label
264
+
265
+ Unset a single pulp_label on the object.
266
+
267
+ ### Examples
268
+
269
+ ```ruby
270
+ require 'time'
271
+ require 'pulp_rpm_client'
272
+ # setup authorization
273
+ PulpRpmClient.configure do |config|
274
+ # Configure HTTP basic authorization: basicAuth
275
+ config.username = 'YOUR USERNAME'
276
+ config.password = 'YOUR PASSWORD'
277
+ end
278
+
279
+ api_instance = PulpRpmClient::ContentPackagelangpacksApi.new
280
+ rpm_package_langpacks_href = 'rpm_package_langpacks_href_example' # String |
281
+ unset_label = PulpRpmClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
282
+
283
+ begin
284
+ # Unset a label
285
+ result = api_instance.unset_label(rpm_package_langpacks_href, unset_label)
286
+ p result
287
+ rescue PulpRpmClient::ApiError => e
288
+ puts "Error when calling ContentPackagelangpacksApi->unset_label: #{e}"
289
+ end
290
+ ```
291
+
292
+ #### Using the unset_label_with_http_info variant
293
+
294
+ This returns an Array which contains the response data, status code and headers.
295
+
296
+ > <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(rpm_package_langpacks_href, unset_label)
297
+
298
+ ```ruby
299
+ begin
300
+ # Unset a label
301
+ data, status_code, headers = api_instance.unset_label_with_http_info(rpm_package_langpacks_href, unset_label)
302
+ p status_code # => 2xx
303
+ p headers # => { ... }
304
+ p data # => <UnsetLabelResponse>
305
+ rescue PulpRpmClient::ApiError => e
306
+ puts "Error when calling ContentPackagelangpacksApi->unset_label_with_http_info: #{e}"
307
+ end
308
+ ```
309
+
310
+ ### Parameters
311
+
312
+ | Name | Type | Description | Notes |
313
+ | ---- | ---- | ----------- | ----- |
314
+ | **rpm_package_langpacks_href** | **String** | | |
315
+ | **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
316
+
317
+ ### Return type
318
+
319
+ [**UnsetLabelResponse**](UnsetLabelResponse.md)
320
+
321
+ ### Authorization
322
+
323
+ [basicAuth](../README.md#basicAuth)
324
+
325
+ ### HTTP request headers
326
+
327
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
328
+ - **Accept**: application/json
329
+