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.
- checksums.yaml +4 -4
- data/README.md +26 -4
- data/docs/ContentAdvisoriesApi.md +152 -2
- data/docs/ContentDistributionTreesApi.md +148 -0
- data/docs/ContentModulemdDefaultsApi.md +150 -2
- data/docs/ContentModulemdObsoletesApi.md +148 -0
- data/docs/ContentModulemdsApi.md +150 -2
- data/docs/ContentPackagecategoriesApi.md +148 -0
- data/docs/ContentPackageenvironmentsApi.md +148 -0
- data/docs/ContentPackagegroupsApi.md +148 -0
- data/docs/ContentPackagelangpacksApi.md +148 -0
- data/docs/ContentPackagesApi.md +152 -2
- data/docs/ContentRepoMetadataFilesApi.md +148 -0
- data/docs/RpmModulemd.md +2 -0
- data/docs/RpmModulemdDefaults.md +2 -0
- data/docs/RpmModulemdDefaultsResponse.md +2 -0
- data/docs/RpmModulemdObsolete.md +2 -0
- data/docs/RpmModulemdObsoleteResponse.md +2 -0
- data/docs/RpmModulemdResponse.md +2 -0
- data/docs/RpmPackageCategoryResponse.md +2 -0
- data/docs/RpmPackageEnvironmentResponse.md +2 -0
- data/docs/RpmPackageGroupResponse.md +2 -0
- data/docs/RpmPackageLangpacksResponse.md +2 -0
- data/docs/RpmPackageResponse.md +2 -0
- data/docs/RpmRepoMetadataFileResponse.md +2 -0
- data/docs/RpmUpdateRecordResponse.md +2 -0
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +157 -3
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +154 -3
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +154 -3
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +157 -3
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +151 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +13 -1
- data/lib/pulp_rpm_client/models/unset_label.rb +1 -1
- data/lib/pulp_rpm_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/api/content_advisories_api_spec.rb +29 -1
- data/spec/api/content_distribution_trees_api_spec.rb +27 -0
- data/spec/api/content_modulemd_defaults_api_spec.rb +28 -1
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +27 -0
- data/spec/api/content_modulemds_api_spec.rb +28 -1
- data/spec/api/content_packagecategories_api_spec.rb +27 -0
- data/spec/api/content_packageenvironments_api_spec.rb +27 -0
- data/spec/api/content_packagegroups_api_spec.rb +27 -0
- data/spec/api/content_packagelangpacks_api_spec.rb +27 -0
- data/spec/api/content_packages_api_spec.rb +29 -1
- data/spec/api/content_repo_metadata_files_api_spec.rb +27 -0
- data/spec/models/rpm_modulemd_defaults_response_spec.rb +6 -0
- data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
- data/spec/models/rpm_modulemd_obsolete_response_spec.rb +6 -0
- data/spec/models/rpm_modulemd_obsolete_spec.rb +6 -0
- data/spec/models/rpm_modulemd_response_spec.rb +6 -0
- data/spec/models/rpm_modulemd_spec.rb +6 -0
- data/spec/models/rpm_package_category_response_spec.rb +6 -0
- data/spec/models/rpm_package_environment_response_spec.rb +6 -0
- data/spec/models/rpm_package_group_response_spec.rb +6 -0
- data/spec/models/rpm_package_langpacks_response_spec.rb +6 -0
- data/spec/models/rpm_package_response_spec.rb +6 -0
- data/spec/models/rpm_repo_metadata_file_response_spec.rb +6 -0
- data/spec/models/rpm_update_record_response_spec.rb +6 -0
- metadata +79 -79
@@ -7,6 +7,8 @@ All URIs are relative to *http://localhost:24817*
|
|
7
7
|
| [**create**](ContentModulemdDefaultsApi.md#create) | **POST** /pulp/api/v3/content/rpm/modulemd_defaults/ | Create a modulemd defaults |
|
8
8
|
| [**list**](ContentModulemdDefaultsApi.md#list) | **GET** /pulp/api/v3/content/rpm/modulemd_defaults/ | List modulemd defaultss |
|
9
9
|
| [**read**](ContentModulemdDefaultsApi.md#read) | **GET** {rpm_modulemd_defaults_href} | Inspect a modulemd defaults |
|
10
|
+
| [**set_label**](ContentModulemdDefaultsApi.md#set_label) | **POST** {rpm_modulemd_defaults_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentModulemdDefaultsApi.md#unset_label) | **POST** {rpm_modulemd_defaults_href}unset_label/ | Unset a label |
|
10
12
|
|
11
13
|
|
12
14
|
## create
|
@@ -105,11 +107,12 @@ opts = {
|
|
105
107
|
_module: '_module_example', # String | Filter results where module matches value
|
106
108
|
module__in: ['inner_example'], # Array<String> | Filter results where module is in a comma-separated list of values
|
107
109
|
offset: 56, # Integer | The initial index from which to return the results.
|
108
|
-
ordering: ['-digest'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `module` - Module * `-module` - Module (descending) * `stream` - Stream * `-stream` - Stream (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `digest` - Digest * `-digest` - Digest (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
110
|
+
ordering: ['-digest'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `module` - Module * `-module` - Module (descending) * `stream` - Stream * `-stream` - Stream (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `digest` - Digest * `-digest` - Digest (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
109
111
|
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
110
112
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
111
113
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
112
114
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
115
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
113
116
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
114
117
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
115
118
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
@@ -156,11 +159,12 @@ end
|
|
156
159
|
| **_module** | **String** | Filter results where module matches value | [optional] |
|
157
160
|
| **module__in** | [**Array<String>**](String.md) | Filter results where module is in a comma-separated list of values | [optional] |
|
158
161
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
159
|
-
| **ordering** | [**Array<String>**](String.md) | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `module` - Module * `-module` - Module (descending) * `stream` - Stream * `-stream` - Stream (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `digest` - Digest * `-digest` - Digest (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
162
|
+
| **ordering** | [**Array<String>**](String.md) | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `module` - Module * `-module` - Module (descending) * `stream` - Stream * `-stream` - Stream (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `digest` - Digest * `-digest` - Digest (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
160
163
|
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
161
164
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
162
165
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
163
166
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
167
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
164
168
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
165
169
|
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
166
170
|
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
@@ -260,3 +264,147 @@ end
|
|
260
264
|
- **Content-Type**: Not defined
|
261
265
|
- **Accept**: application/json
|
262
266
|
|
267
|
+
|
268
|
+
## set_label
|
269
|
+
|
270
|
+
> <SetLabelResponse> set_label(rpm_modulemd_defaults_href, set_label)
|
271
|
+
|
272
|
+
Set a label
|
273
|
+
|
274
|
+
Set a single pulp_label on the object to a specific value or null.
|
275
|
+
|
276
|
+
### Examples
|
277
|
+
|
278
|
+
```ruby
|
279
|
+
require 'time'
|
280
|
+
require 'pulp_rpm_client'
|
281
|
+
# setup authorization
|
282
|
+
PulpRpmClient.configure do |config|
|
283
|
+
# Configure HTTP basic authorization: basicAuth
|
284
|
+
config.username = 'YOUR USERNAME'
|
285
|
+
config.password = 'YOUR PASSWORD'
|
286
|
+
end
|
287
|
+
|
288
|
+
api_instance = PulpRpmClient::ContentModulemdDefaultsApi.new
|
289
|
+
rpm_modulemd_defaults_href = 'rpm_modulemd_defaults_href_example' # String |
|
290
|
+
set_label = PulpRpmClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
291
|
+
|
292
|
+
begin
|
293
|
+
# Set a label
|
294
|
+
result = api_instance.set_label(rpm_modulemd_defaults_href, set_label)
|
295
|
+
p result
|
296
|
+
rescue PulpRpmClient::ApiError => e
|
297
|
+
puts "Error when calling ContentModulemdDefaultsApi->set_label: #{e}"
|
298
|
+
end
|
299
|
+
```
|
300
|
+
|
301
|
+
#### Using the set_label_with_http_info variant
|
302
|
+
|
303
|
+
This returns an Array which contains the response data, status code and headers.
|
304
|
+
|
305
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(rpm_modulemd_defaults_href, set_label)
|
306
|
+
|
307
|
+
```ruby
|
308
|
+
begin
|
309
|
+
# Set a label
|
310
|
+
data, status_code, headers = api_instance.set_label_with_http_info(rpm_modulemd_defaults_href, set_label)
|
311
|
+
p status_code # => 2xx
|
312
|
+
p headers # => { ... }
|
313
|
+
p data # => <SetLabelResponse>
|
314
|
+
rescue PulpRpmClient::ApiError => e
|
315
|
+
puts "Error when calling ContentModulemdDefaultsApi->set_label_with_http_info: #{e}"
|
316
|
+
end
|
317
|
+
```
|
318
|
+
|
319
|
+
### Parameters
|
320
|
+
|
321
|
+
| Name | Type | Description | Notes |
|
322
|
+
| ---- | ---- | ----------- | ----- |
|
323
|
+
| **rpm_modulemd_defaults_href** | **String** | | |
|
324
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
325
|
+
|
326
|
+
### Return type
|
327
|
+
|
328
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
329
|
+
|
330
|
+
### Authorization
|
331
|
+
|
332
|
+
[basicAuth](../README.md#basicAuth)
|
333
|
+
|
334
|
+
### HTTP request headers
|
335
|
+
|
336
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
337
|
+
- **Accept**: application/json
|
338
|
+
|
339
|
+
|
340
|
+
## unset_label
|
341
|
+
|
342
|
+
> <UnsetLabelResponse> unset_label(rpm_modulemd_defaults_href, unset_label)
|
343
|
+
|
344
|
+
Unset a label
|
345
|
+
|
346
|
+
Unset a single pulp_label on the object.
|
347
|
+
|
348
|
+
### Examples
|
349
|
+
|
350
|
+
```ruby
|
351
|
+
require 'time'
|
352
|
+
require 'pulp_rpm_client'
|
353
|
+
# setup authorization
|
354
|
+
PulpRpmClient.configure do |config|
|
355
|
+
# Configure HTTP basic authorization: basicAuth
|
356
|
+
config.username = 'YOUR USERNAME'
|
357
|
+
config.password = 'YOUR PASSWORD'
|
358
|
+
end
|
359
|
+
|
360
|
+
api_instance = PulpRpmClient::ContentModulemdDefaultsApi.new
|
361
|
+
rpm_modulemd_defaults_href = 'rpm_modulemd_defaults_href_example' # String |
|
362
|
+
unset_label = PulpRpmClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
363
|
+
|
364
|
+
begin
|
365
|
+
# Unset a label
|
366
|
+
result = api_instance.unset_label(rpm_modulemd_defaults_href, unset_label)
|
367
|
+
p result
|
368
|
+
rescue PulpRpmClient::ApiError => e
|
369
|
+
puts "Error when calling ContentModulemdDefaultsApi->unset_label: #{e}"
|
370
|
+
end
|
371
|
+
```
|
372
|
+
|
373
|
+
#### Using the unset_label_with_http_info variant
|
374
|
+
|
375
|
+
This returns an Array which contains the response data, status code and headers.
|
376
|
+
|
377
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(rpm_modulemd_defaults_href, unset_label)
|
378
|
+
|
379
|
+
```ruby
|
380
|
+
begin
|
381
|
+
# Unset a label
|
382
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(rpm_modulemd_defaults_href, unset_label)
|
383
|
+
p status_code # => 2xx
|
384
|
+
p headers # => { ... }
|
385
|
+
p data # => <UnsetLabelResponse>
|
386
|
+
rescue PulpRpmClient::ApiError => e
|
387
|
+
puts "Error when calling ContentModulemdDefaultsApi->unset_label_with_http_info: #{e}"
|
388
|
+
end
|
389
|
+
```
|
390
|
+
|
391
|
+
### Parameters
|
392
|
+
|
393
|
+
| Name | Type | Description | Notes |
|
394
|
+
| ---- | ---- | ----------- | ----- |
|
395
|
+
| **rpm_modulemd_defaults_href** | **String** | | |
|
396
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
397
|
+
|
398
|
+
### Return type
|
399
|
+
|
400
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
401
|
+
|
402
|
+
### Authorization
|
403
|
+
|
404
|
+
[basicAuth](../README.md#basicAuth)
|
405
|
+
|
406
|
+
### HTTP request headers
|
407
|
+
|
408
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
409
|
+
- **Accept**: application/json
|
410
|
+
|
@@ -7,6 +7,8 @@ All URIs are relative to *http://localhost:24817*
|
|
7
7
|
| [**create**](ContentModulemdObsoletesApi.md#create) | **POST** /pulp/api/v3/content/rpm/modulemd_obsoletes/ | Create a modulemd obsolete |
|
8
8
|
| [**list**](ContentModulemdObsoletesApi.md#list) | **GET** /pulp/api/v3/content/rpm/modulemd_obsoletes/ | List modulemd obsoletes |
|
9
9
|
| [**read**](ContentModulemdObsoletesApi.md#read) | **GET** {rpm_modulemd_obsolete_href} | Inspect a modulemd obsolete |
|
10
|
+
| [**set_label**](ContentModulemdObsoletesApi.md#set_label) | **POST** {rpm_modulemd_obsolete_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentModulemdObsoletesApi.md#unset_label) | **POST** {rpm_modulemd_obsolete_href}unset_label/ | Unset a label |
|
10
12
|
|
11
13
|
|
12
14
|
## create
|
@@ -108,6 +110,7 @@ opts = {
|
|
108
110
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
109
111
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
110
112
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
113
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
111
114
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
112
115
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
113
116
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
@@ -154,6 +157,7 @@ end
|
|
154
157
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
155
158
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
156
159
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
160
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
157
161
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
158
162
|
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
159
163
|
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
@@ -250,3 +254,147 @@ end
|
|
250
254
|
- **Content-Type**: Not defined
|
251
255
|
- **Accept**: application/json
|
252
256
|
|
257
|
+
|
258
|
+
## set_label
|
259
|
+
|
260
|
+
> <SetLabelResponse> set_label(rpm_modulemd_obsolete_href, set_label)
|
261
|
+
|
262
|
+
Set a label
|
263
|
+
|
264
|
+
Set a single pulp_label on the object to a specific value or null.
|
265
|
+
|
266
|
+
### Examples
|
267
|
+
|
268
|
+
```ruby
|
269
|
+
require 'time'
|
270
|
+
require 'pulp_rpm_client'
|
271
|
+
# setup authorization
|
272
|
+
PulpRpmClient.configure do |config|
|
273
|
+
# Configure HTTP basic authorization: basicAuth
|
274
|
+
config.username = 'YOUR USERNAME'
|
275
|
+
config.password = 'YOUR PASSWORD'
|
276
|
+
end
|
277
|
+
|
278
|
+
api_instance = PulpRpmClient::ContentModulemdObsoletesApi.new
|
279
|
+
rpm_modulemd_obsolete_href = 'rpm_modulemd_obsolete_href_example' # String |
|
280
|
+
set_label = PulpRpmClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
281
|
+
|
282
|
+
begin
|
283
|
+
# Set a label
|
284
|
+
result = api_instance.set_label(rpm_modulemd_obsolete_href, set_label)
|
285
|
+
p result
|
286
|
+
rescue PulpRpmClient::ApiError => e
|
287
|
+
puts "Error when calling ContentModulemdObsoletesApi->set_label: #{e}"
|
288
|
+
end
|
289
|
+
```
|
290
|
+
|
291
|
+
#### Using the set_label_with_http_info variant
|
292
|
+
|
293
|
+
This returns an Array which contains the response data, status code and headers.
|
294
|
+
|
295
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(rpm_modulemd_obsolete_href, set_label)
|
296
|
+
|
297
|
+
```ruby
|
298
|
+
begin
|
299
|
+
# Set a label
|
300
|
+
data, status_code, headers = api_instance.set_label_with_http_info(rpm_modulemd_obsolete_href, set_label)
|
301
|
+
p status_code # => 2xx
|
302
|
+
p headers # => { ... }
|
303
|
+
p data # => <SetLabelResponse>
|
304
|
+
rescue PulpRpmClient::ApiError => e
|
305
|
+
puts "Error when calling ContentModulemdObsoletesApi->set_label_with_http_info: #{e}"
|
306
|
+
end
|
307
|
+
```
|
308
|
+
|
309
|
+
### Parameters
|
310
|
+
|
311
|
+
| Name | Type | Description | Notes |
|
312
|
+
| ---- | ---- | ----------- | ----- |
|
313
|
+
| **rpm_modulemd_obsolete_href** | **String** | | |
|
314
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
315
|
+
|
316
|
+
### Return type
|
317
|
+
|
318
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
319
|
+
|
320
|
+
### Authorization
|
321
|
+
|
322
|
+
[basicAuth](../README.md#basicAuth)
|
323
|
+
|
324
|
+
### HTTP request headers
|
325
|
+
|
326
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
327
|
+
- **Accept**: application/json
|
328
|
+
|
329
|
+
|
330
|
+
## unset_label
|
331
|
+
|
332
|
+
> <UnsetLabelResponse> unset_label(rpm_modulemd_obsolete_href, unset_label)
|
333
|
+
|
334
|
+
Unset a label
|
335
|
+
|
336
|
+
Unset a single pulp_label on the object.
|
337
|
+
|
338
|
+
### Examples
|
339
|
+
|
340
|
+
```ruby
|
341
|
+
require 'time'
|
342
|
+
require 'pulp_rpm_client'
|
343
|
+
# setup authorization
|
344
|
+
PulpRpmClient.configure do |config|
|
345
|
+
# Configure HTTP basic authorization: basicAuth
|
346
|
+
config.username = 'YOUR USERNAME'
|
347
|
+
config.password = 'YOUR PASSWORD'
|
348
|
+
end
|
349
|
+
|
350
|
+
api_instance = PulpRpmClient::ContentModulemdObsoletesApi.new
|
351
|
+
rpm_modulemd_obsolete_href = 'rpm_modulemd_obsolete_href_example' # String |
|
352
|
+
unset_label = PulpRpmClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
353
|
+
|
354
|
+
begin
|
355
|
+
# Unset a label
|
356
|
+
result = api_instance.unset_label(rpm_modulemd_obsolete_href, unset_label)
|
357
|
+
p result
|
358
|
+
rescue PulpRpmClient::ApiError => e
|
359
|
+
puts "Error when calling ContentModulemdObsoletesApi->unset_label: #{e}"
|
360
|
+
end
|
361
|
+
```
|
362
|
+
|
363
|
+
#### Using the unset_label_with_http_info variant
|
364
|
+
|
365
|
+
This returns an Array which contains the response data, status code and headers.
|
366
|
+
|
367
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(rpm_modulemd_obsolete_href, unset_label)
|
368
|
+
|
369
|
+
```ruby
|
370
|
+
begin
|
371
|
+
# Unset a label
|
372
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(rpm_modulemd_obsolete_href, unset_label)
|
373
|
+
p status_code # => 2xx
|
374
|
+
p headers # => { ... }
|
375
|
+
p data # => <UnsetLabelResponse>
|
376
|
+
rescue PulpRpmClient::ApiError => e
|
377
|
+
puts "Error when calling ContentModulemdObsoletesApi->unset_label_with_http_info: #{e}"
|
378
|
+
end
|
379
|
+
```
|
380
|
+
|
381
|
+
### Parameters
|
382
|
+
|
383
|
+
| Name | Type | Description | Notes |
|
384
|
+
| ---- | ---- | ----------- | ----- |
|
385
|
+
| **rpm_modulemd_obsolete_href** | **String** | | |
|
386
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
387
|
+
|
388
|
+
### Return type
|
389
|
+
|
390
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
391
|
+
|
392
|
+
### Authorization
|
393
|
+
|
394
|
+
[basicAuth](../README.md#basicAuth)
|
395
|
+
|
396
|
+
### HTTP request headers
|
397
|
+
|
398
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
399
|
+
- **Accept**: application/json
|
400
|
+
|
data/docs/ContentModulemdsApi.md
CHANGED
@@ -7,6 +7,8 @@ All URIs are relative to *http://localhost:24817*
|
|
7
7
|
| [**create**](ContentModulemdsApi.md#create) | **POST** /pulp/api/v3/content/rpm/modulemds/ | Create a modulemd |
|
8
8
|
| [**list**](ContentModulemdsApi.md#list) | **GET** /pulp/api/v3/content/rpm/modulemds/ | List modulemds |
|
9
9
|
| [**read**](ContentModulemdsApi.md#read) | **GET** {rpm_modulemd_href} | Inspect a modulemd |
|
10
|
+
| [**set_label**](ContentModulemdsApi.md#set_label) | **POST** {rpm_modulemd_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentModulemdsApi.md#unset_label) | **POST** {rpm_modulemd_href}unset_label/ | Unset a label |
|
10
12
|
|
11
13
|
|
12
14
|
## create
|
@@ -109,11 +111,12 @@ opts = {
|
|
109
111
|
name: 'name_example', # String | Filter results where name matches value
|
110
112
|
name__in: ['inner_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
111
113
|
offset: 56, # Integer | The initial index from which to return the results.
|
112
|
-
ordering: ['-arch'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `stream` - Stream * `-stream` - Stream (descending) * `version` - Version * `-version` - Version (descending) * `context` - Context * `-context` - Context (descending) * `arch` - Arch * `-arch` - Arch (descending) * `static_context` - Static context * `-static_context` - Static context (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `artifacts` - Artifacts * `-artifacts` - Artifacts (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `description` - Description * `-description` - Description (descending) * `digest` - Digest * `-digest` - Digest (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
114
|
+
ordering: ['-arch'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `stream` - Stream * `-stream` - Stream (descending) * `version` - Version * `-version` - Version (descending) * `context` - Context * `-context` - Context (descending) * `arch` - Arch * `-arch` - Arch (descending) * `static_context` - Static context * `-static_context` - Static context (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `artifacts` - Artifacts * `-artifacts` - Artifacts (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `description` - Description * `-description` - Description (descending) * `digest` - Digest * `-digest` - Digest (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
113
115
|
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
114
116
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
115
117
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
116
118
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
119
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
117
120
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
118
121
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
119
122
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
@@ -166,11 +169,12 @@ end
|
|
166
169
|
| **name** | **String** | Filter results where name matches value | [optional] |
|
167
170
|
| **name__in** | [**Array<String>**](String.md) | Filter results where name is in a comma-separated list of values | [optional] |
|
168
171
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
169
|
-
| **ordering** | [**Array<String>**](String.md) | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `stream` - Stream * `-stream` - Stream (descending) * `version` - Version * `-version` - Version (descending) * `context` - Context * `-context` - Context (descending) * `arch` - Arch * `-arch` - Arch (descending) * `static_context` - Static context * `-static_context` - Static context (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `artifacts` - Artifacts * `-artifacts` - Artifacts (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `description` - Description * `-description` - Description (descending) * `digest` - Digest * `-digest` - Digest (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
172
|
+
| **ordering** | [**Array<String>**](String.md) | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `stream` - Stream * `-stream` - Stream (descending) * `version` - Version * `-version` - Version (descending) * `context` - Context * `-context` - Context (descending) * `arch` - Arch * `-arch` - Arch (descending) * `static_context` - Static context * `-static_context` - Static context (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `artifacts` - Artifacts * `-artifacts` - Artifacts (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `description` - Description * `-description` - Description (descending) * `digest` - Digest * `-digest` - Digest (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
170
173
|
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
171
174
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
172
175
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
173
176
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
177
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
174
178
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
175
179
|
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
176
180
|
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
@@ -272,3 +276,147 @@ end
|
|
272
276
|
- **Content-Type**: Not defined
|
273
277
|
- **Accept**: application/json
|
274
278
|
|
279
|
+
|
280
|
+
## set_label
|
281
|
+
|
282
|
+
> <SetLabelResponse> set_label(rpm_modulemd_href, set_label)
|
283
|
+
|
284
|
+
Set a label
|
285
|
+
|
286
|
+
Set a single pulp_label on the object to a specific value or null.
|
287
|
+
|
288
|
+
### Examples
|
289
|
+
|
290
|
+
```ruby
|
291
|
+
require 'time'
|
292
|
+
require 'pulp_rpm_client'
|
293
|
+
# setup authorization
|
294
|
+
PulpRpmClient.configure do |config|
|
295
|
+
# Configure HTTP basic authorization: basicAuth
|
296
|
+
config.username = 'YOUR USERNAME'
|
297
|
+
config.password = 'YOUR PASSWORD'
|
298
|
+
end
|
299
|
+
|
300
|
+
api_instance = PulpRpmClient::ContentModulemdsApi.new
|
301
|
+
rpm_modulemd_href = 'rpm_modulemd_href_example' # String |
|
302
|
+
set_label = PulpRpmClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
303
|
+
|
304
|
+
begin
|
305
|
+
# Set a label
|
306
|
+
result = api_instance.set_label(rpm_modulemd_href, set_label)
|
307
|
+
p result
|
308
|
+
rescue PulpRpmClient::ApiError => e
|
309
|
+
puts "Error when calling ContentModulemdsApi->set_label: #{e}"
|
310
|
+
end
|
311
|
+
```
|
312
|
+
|
313
|
+
#### Using the set_label_with_http_info variant
|
314
|
+
|
315
|
+
This returns an Array which contains the response data, status code and headers.
|
316
|
+
|
317
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(rpm_modulemd_href, set_label)
|
318
|
+
|
319
|
+
```ruby
|
320
|
+
begin
|
321
|
+
# Set a label
|
322
|
+
data, status_code, headers = api_instance.set_label_with_http_info(rpm_modulemd_href, set_label)
|
323
|
+
p status_code # => 2xx
|
324
|
+
p headers # => { ... }
|
325
|
+
p data # => <SetLabelResponse>
|
326
|
+
rescue PulpRpmClient::ApiError => e
|
327
|
+
puts "Error when calling ContentModulemdsApi->set_label_with_http_info: #{e}"
|
328
|
+
end
|
329
|
+
```
|
330
|
+
|
331
|
+
### Parameters
|
332
|
+
|
333
|
+
| Name | Type | Description | Notes |
|
334
|
+
| ---- | ---- | ----------- | ----- |
|
335
|
+
| **rpm_modulemd_href** | **String** | | |
|
336
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
337
|
+
|
338
|
+
### Return type
|
339
|
+
|
340
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
341
|
+
|
342
|
+
### Authorization
|
343
|
+
|
344
|
+
[basicAuth](../README.md#basicAuth)
|
345
|
+
|
346
|
+
### HTTP request headers
|
347
|
+
|
348
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
349
|
+
- **Accept**: application/json
|
350
|
+
|
351
|
+
|
352
|
+
## unset_label
|
353
|
+
|
354
|
+
> <UnsetLabelResponse> unset_label(rpm_modulemd_href, unset_label)
|
355
|
+
|
356
|
+
Unset a label
|
357
|
+
|
358
|
+
Unset a single pulp_label on the object.
|
359
|
+
|
360
|
+
### Examples
|
361
|
+
|
362
|
+
```ruby
|
363
|
+
require 'time'
|
364
|
+
require 'pulp_rpm_client'
|
365
|
+
# setup authorization
|
366
|
+
PulpRpmClient.configure do |config|
|
367
|
+
# Configure HTTP basic authorization: basicAuth
|
368
|
+
config.username = 'YOUR USERNAME'
|
369
|
+
config.password = 'YOUR PASSWORD'
|
370
|
+
end
|
371
|
+
|
372
|
+
api_instance = PulpRpmClient::ContentModulemdsApi.new
|
373
|
+
rpm_modulemd_href = 'rpm_modulemd_href_example' # String |
|
374
|
+
unset_label = PulpRpmClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
375
|
+
|
376
|
+
begin
|
377
|
+
# Unset a label
|
378
|
+
result = api_instance.unset_label(rpm_modulemd_href, unset_label)
|
379
|
+
p result
|
380
|
+
rescue PulpRpmClient::ApiError => e
|
381
|
+
puts "Error when calling ContentModulemdsApi->unset_label: #{e}"
|
382
|
+
end
|
383
|
+
```
|
384
|
+
|
385
|
+
#### Using the unset_label_with_http_info variant
|
386
|
+
|
387
|
+
This returns an Array which contains the response data, status code and headers.
|
388
|
+
|
389
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(rpm_modulemd_href, unset_label)
|
390
|
+
|
391
|
+
```ruby
|
392
|
+
begin
|
393
|
+
# Unset a label
|
394
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(rpm_modulemd_href, unset_label)
|
395
|
+
p status_code # => 2xx
|
396
|
+
p headers # => { ... }
|
397
|
+
p data # => <UnsetLabelResponse>
|
398
|
+
rescue PulpRpmClient::ApiError => e
|
399
|
+
puts "Error when calling ContentModulemdsApi->unset_label_with_http_info: #{e}"
|
400
|
+
end
|
401
|
+
```
|
402
|
+
|
403
|
+
### Parameters
|
404
|
+
|
405
|
+
| Name | Type | Description | Notes |
|
406
|
+
| ---- | ---- | ----------- | ----- |
|
407
|
+
| **rpm_modulemd_href** | **String** | | |
|
408
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
409
|
+
|
410
|
+
### Return type
|
411
|
+
|
412
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
413
|
+
|
414
|
+
### Authorization
|
415
|
+
|
416
|
+
[basicAuth](../README.md#basicAuth)
|
417
|
+
|
418
|
+
### HTTP request headers
|
419
|
+
|
420
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
421
|
+
- **Accept**: application/json
|
422
|
+
|