pulp_deb_client 3.5.1 → 3.5.2
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 +31 -4
- data/docs/ContentGenericContentsApi.md +152 -2
- data/docs/ContentInstallerFileIndicesApi.md +150 -2
- data/docs/ContentInstallerPackagesApi.md +152 -2
- data/docs/ContentPackageIndicesApi.md +150 -2
- data/docs/ContentPackageReleaseComponentsApi.md +150 -2
- data/docs/ContentPackagesApi.md +152 -2
- data/docs/ContentReleaseArchitecturesApi.md +150 -2
- data/docs/ContentReleaseComponentsApi.md +150 -2
- data/docs/ContentReleaseFilesApi.md +150 -2
- data/docs/ContentReleasesApi.md +150 -2
- data/docs/ContentSourceIndicesApi.md +150 -2
- data/docs/ContentSourcePackagesApi.md +150 -2
- data/docs/ContentSourceReleaseComponentsApi.md +150 -2
- data/docs/DebGenericContentResponse.md +2 -0
- data/docs/DebInstallerFileIndex.md +2 -0
- data/docs/DebInstallerFileIndexResponse.md +2 -0
- data/docs/DebInstallerPackageResponse.md +2 -0
- data/docs/DebPackageIndex.md +2 -0
- data/docs/DebPackageIndexResponse.md +2 -0
- data/docs/DebPackageReleaseComponent.md +2 -0
- data/docs/DebPackageReleaseComponentResponse.md +2 -0
- data/docs/DebPackageResponse.md +2 -0
- data/docs/DebRelease.md +2 -0
- data/docs/DebReleaseArchitecture.md +2 -0
- data/docs/DebReleaseArchitectureResponse.md +2 -0
- data/docs/DebReleaseComponent.md +2 -0
- data/docs/DebReleaseComponentResponse.md +2 -0
- data/docs/DebReleaseFile.md +2 -0
- data/docs/DebReleaseFileResponse.md +2 -0
- data/docs/DebReleaseResponse.md +2 -0
- data/docs/DebSourceIndex.md +2 -0
- data/docs/DebSourceIndexResponse.md +2 -0
- data/docs/DebSourcePackage.md +2 -0
- data/docs/DebSourcePackageReleaseComponent.md +2 -0
- data/docs/DebSourcePackageReleaseComponentResponse.md +2 -0
- data/docs/DebSourcePackageResponse.md +2 -0
- data/docs/DistributionsAptApi.md +4 -2
- data/docs/PublicationsAptApi.md +4 -2
- data/docs/PublicationsVerbatimApi.md +4 -2
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +157 -3
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +157 -3
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_packages_api.rb +157 -3
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_release_components_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_release_files_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_releases_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +154 -3
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +6 -3
- data/lib/pulp_deb_client/api/publications_apt_api.rb +6 -3
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +6 -3
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +13 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_index.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_component.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_file.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_index.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +13 -1
- data/lib/pulp_deb_client/models/unset_label.rb +1 -1
- data/lib/pulp_deb_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_deb_client/version.rb +1 -1
- data/pulp_deb_client.gemspec +0 -1
- data/spec/api/content_generic_contents_api_spec.rb +29 -1
- data/spec/api/content_installer_file_indices_api_spec.rb +28 -1
- data/spec/api/content_installer_packages_api_spec.rb +29 -1
- data/spec/api/content_package_indices_api_spec.rb +28 -1
- data/spec/api/content_package_release_components_api_spec.rb +28 -1
- data/spec/api/content_packages_api_spec.rb +29 -1
- data/spec/api/content_release_architectures_api_spec.rb +28 -1
- data/spec/api/content_release_components_api_spec.rb +28 -1
- data/spec/api/content_release_files_api_spec.rb +28 -1
- data/spec/api/content_releases_api_spec.rb +28 -1
- data/spec/api/content_source_indices_api_spec.rb +28 -1
- data/spec/api/content_source_packages_api_spec.rb +28 -1
- data/spec/api/content_source_release_components_api_spec.rb +28 -1
- data/spec/api/distributions_apt_api_spec.rb +2 -1
- data/spec/api/publications_apt_api_spec.rb +2 -1
- data/spec/api/publications_verbatim_api_spec.rb +2 -1
- data/spec/models/deb_generic_content_response_spec.rb +6 -0
- data/spec/models/deb_installer_file_index_response_spec.rb +6 -0
- data/spec/models/deb_installer_file_index_spec.rb +6 -0
- data/spec/models/deb_installer_package_response_spec.rb +6 -0
- data/spec/models/deb_package_index_response_spec.rb +6 -0
- data/spec/models/deb_package_index_spec.rb +6 -0
- data/spec/models/deb_package_release_component_response_spec.rb +6 -0
- data/spec/models/deb_package_release_component_spec.rb +6 -0
- data/spec/models/deb_package_response_spec.rb +6 -0
- data/spec/models/deb_release_architecture_response_spec.rb +6 -0
- data/spec/models/deb_release_architecture_spec.rb +6 -0
- data/spec/models/deb_release_component_response_spec.rb +6 -0
- data/spec/models/deb_release_component_spec.rb +6 -0
- data/spec/models/deb_release_file_response_spec.rb +6 -0
- data/spec/models/deb_release_file_spec.rb +6 -0
- data/spec/models/deb_release_response_spec.rb +6 -0
- data/spec/models/deb_release_spec.rb +6 -0
- data/spec/models/deb_source_index_response_spec.rb +6 -0
- data/spec/models/deb_source_index_spec.rb +6 -0
- data/spec/models/deb_source_package_release_component_response_spec.rb +6 -0
- data/spec/models/deb_source_package_release_component_spec.rb +6 -0
- data/spec/models/deb_source_package_response_spec.rb +6 -0
- data/spec/models/deb_source_package_spec.rb +6 -0
- metadata +73 -93
@@ -7,6 +7,8 @@ All URIs are relative to *http://localhost:24817*
|
|
7
7
|
| [**create**](ContentReleaseFilesApi.md#create) | **POST** /pulp/api/v3/content/deb/release_files/ | Create a release file |
|
8
8
|
| [**list**](ContentReleaseFilesApi.md#list) | **GET** /pulp/api/v3/content/deb/release_files/ | List release files |
|
9
9
|
| [**read**](ContentReleaseFilesApi.md#read) | **GET** {deb_release_file_href} | Inspect a release file |
|
10
|
+
| [**set_label**](ContentReleaseFilesApi.md#set_label) | **POST** {deb_release_file_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentReleaseFilesApi.md#unset_label) | **POST** {deb_release_file_href}unset_label/ | Unset a label |
|
10
12
|
|
11
13
|
|
12
14
|
## create
|
@@ -104,11 +106,12 @@ opts = {
|
|
104
106
|
codename: 'codename_example', # String | Filter results where codename matches value
|
105
107
|
limit: 56, # Integer | Number of results to return per page.
|
106
108
|
offset: 56, # Integer | The initial index from which to return the results.
|
107
|
-
ordering: ['-architectures'], # 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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `components` - Components * `-components` - Components (descending) * `architectures` - Architectures * `-architectures` - Architectures (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
109
|
+
ordering: ['-architectures'], # 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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `components` - Components * `-components` - Components (descending) * `architectures` - Architectures * `-architectures` - Architectures (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
108
110
|
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
109
111
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
110
112
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
111
113
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
114
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
112
115
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
113
116
|
relative_path: 'relative_path_example', # String | Filter results where relative_path matches value
|
114
117
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
@@ -154,11 +157,12 @@ end
|
|
154
157
|
| **codename** | **String** | Filter results where codename matches value | [optional] |
|
155
158
|
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
156
159
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
157
|
-
| **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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `components` - Components * `-components` - Components (descending) * `architectures` - Architectures * `-architectures` - Architectures (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
160
|
+
| **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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `components` - Components * `-components` - Components (descending) * `architectures` - Architectures * `-architectures` - Architectures (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
158
161
|
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
159
162
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
160
163
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
161
164
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
165
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
162
166
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
163
167
|
| **relative_path** | **String** | Filter results where relative_path matches value | [optional] |
|
164
168
|
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
@@ -258,3 +262,147 @@ end
|
|
258
262
|
- **Content-Type**: Not defined
|
259
263
|
- **Accept**: application/json
|
260
264
|
|
265
|
+
|
266
|
+
## set_label
|
267
|
+
|
268
|
+
> <SetLabelResponse> set_label(deb_release_file_href, set_label)
|
269
|
+
|
270
|
+
Set a label
|
271
|
+
|
272
|
+
Set a single pulp_label on the object to a specific value or null.
|
273
|
+
|
274
|
+
### Examples
|
275
|
+
|
276
|
+
```ruby
|
277
|
+
require 'time'
|
278
|
+
require 'pulp_deb_client'
|
279
|
+
# setup authorization
|
280
|
+
PulpDebClient.configure do |config|
|
281
|
+
# Configure HTTP basic authorization: basicAuth
|
282
|
+
config.username = 'YOUR USERNAME'
|
283
|
+
config.password = 'YOUR PASSWORD'
|
284
|
+
end
|
285
|
+
|
286
|
+
api_instance = PulpDebClient::ContentReleaseFilesApi.new
|
287
|
+
deb_release_file_href = 'deb_release_file_href_example' # String |
|
288
|
+
set_label = PulpDebClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
289
|
+
|
290
|
+
begin
|
291
|
+
# Set a label
|
292
|
+
result = api_instance.set_label(deb_release_file_href, set_label)
|
293
|
+
p result
|
294
|
+
rescue PulpDebClient::ApiError => e
|
295
|
+
puts "Error when calling ContentReleaseFilesApi->set_label: #{e}"
|
296
|
+
end
|
297
|
+
```
|
298
|
+
|
299
|
+
#### Using the set_label_with_http_info variant
|
300
|
+
|
301
|
+
This returns an Array which contains the response data, status code and headers.
|
302
|
+
|
303
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(deb_release_file_href, set_label)
|
304
|
+
|
305
|
+
```ruby
|
306
|
+
begin
|
307
|
+
# Set a label
|
308
|
+
data, status_code, headers = api_instance.set_label_with_http_info(deb_release_file_href, set_label)
|
309
|
+
p status_code # => 2xx
|
310
|
+
p headers # => { ... }
|
311
|
+
p data # => <SetLabelResponse>
|
312
|
+
rescue PulpDebClient::ApiError => e
|
313
|
+
puts "Error when calling ContentReleaseFilesApi->set_label_with_http_info: #{e}"
|
314
|
+
end
|
315
|
+
```
|
316
|
+
|
317
|
+
### Parameters
|
318
|
+
|
319
|
+
| Name | Type | Description | Notes |
|
320
|
+
| ---- | ---- | ----------- | ----- |
|
321
|
+
| **deb_release_file_href** | **String** | | |
|
322
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
323
|
+
|
324
|
+
### Return type
|
325
|
+
|
326
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
327
|
+
|
328
|
+
### Authorization
|
329
|
+
|
330
|
+
[basicAuth](../README.md#basicAuth)
|
331
|
+
|
332
|
+
### HTTP request headers
|
333
|
+
|
334
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
335
|
+
- **Accept**: application/json
|
336
|
+
|
337
|
+
|
338
|
+
## unset_label
|
339
|
+
|
340
|
+
> <UnsetLabelResponse> unset_label(deb_release_file_href, unset_label)
|
341
|
+
|
342
|
+
Unset a label
|
343
|
+
|
344
|
+
Unset a single pulp_label on the object.
|
345
|
+
|
346
|
+
### Examples
|
347
|
+
|
348
|
+
```ruby
|
349
|
+
require 'time'
|
350
|
+
require 'pulp_deb_client'
|
351
|
+
# setup authorization
|
352
|
+
PulpDebClient.configure do |config|
|
353
|
+
# Configure HTTP basic authorization: basicAuth
|
354
|
+
config.username = 'YOUR USERNAME'
|
355
|
+
config.password = 'YOUR PASSWORD'
|
356
|
+
end
|
357
|
+
|
358
|
+
api_instance = PulpDebClient::ContentReleaseFilesApi.new
|
359
|
+
deb_release_file_href = 'deb_release_file_href_example' # String |
|
360
|
+
unset_label = PulpDebClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
361
|
+
|
362
|
+
begin
|
363
|
+
# Unset a label
|
364
|
+
result = api_instance.unset_label(deb_release_file_href, unset_label)
|
365
|
+
p result
|
366
|
+
rescue PulpDebClient::ApiError => e
|
367
|
+
puts "Error when calling ContentReleaseFilesApi->unset_label: #{e}"
|
368
|
+
end
|
369
|
+
```
|
370
|
+
|
371
|
+
#### Using the unset_label_with_http_info variant
|
372
|
+
|
373
|
+
This returns an Array which contains the response data, status code and headers.
|
374
|
+
|
375
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(deb_release_file_href, unset_label)
|
376
|
+
|
377
|
+
```ruby
|
378
|
+
begin
|
379
|
+
# Unset a label
|
380
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(deb_release_file_href, unset_label)
|
381
|
+
p status_code # => 2xx
|
382
|
+
p headers # => { ... }
|
383
|
+
p data # => <UnsetLabelResponse>
|
384
|
+
rescue PulpDebClient::ApiError => e
|
385
|
+
puts "Error when calling ContentReleaseFilesApi->unset_label_with_http_info: #{e}"
|
386
|
+
end
|
387
|
+
```
|
388
|
+
|
389
|
+
### Parameters
|
390
|
+
|
391
|
+
| Name | Type | Description | Notes |
|
392
|
+
| ---- | ---- | ----------- | ----- |
|
393
|
+
| **deb_release_file_href** | **String** | | |
|
394
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
395
|
+
|
396
|
+
### Return type
|
397
|
+
|
398
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
399
|
+
|
400
|
+
### Authorization
|
401
|
+
|
402
|
+
[basicAuth](../README.md#basicAuth)
|
403
|
+
|
404
|
+
### HTTP request headers
|
405
|
+
|
406
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
407
|
+
- **Accept**: application/json
|
408
|
+
|
data/docs/ContentReleasesApi.md
CHANGED
@@ -7,6 +7,8 @@ All URIs are relative to *http://localhost:24817*
|
|
7
7
|
| [**create**](ContentReleasesApi.md#create) | **POST** /pulp/api/v3/content/deb/releases/ | Create a release |
|
8
8
|
| [**list**](ContentReleasesApi.md#list) | **GET** /pulp/api/v3/content/deb/releases/ | List releases |
|
9
9
|
| [**read**](ContentReleasesApi.md#read) | **GET** {deb_release_href} | Inspect a release |
|
10
|
+
| [**set_label**](ContentReleasesApi.md#set_label) | **POST** {deb_release_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentReleasesApi.md#unset_label) | **POST** {deb_release_href}unset_label/ | Unset a label |
|
10
12
|
|
11
13
|
|
12
14
|
## create
|
@@ -106,13 +108,14 @@ opts = {
|
|
106
108
|
label: 'label_example', # String | Filter results where label matches value
|
107
109
|
limit: 56, # Integer | Number of results to return per page.
|
108
110
|
offset: 56, # Integer | The initial index from which to return the results.
|
109
|
-
ordering: ['-codename'], # 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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `version` - Version * `-version` - Version (descending) * `origin` - Origin * `-origin` - Origin (descending) * `label` - Label * `-label` - Label (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
111
|
+
ordering: ['-codename'], # 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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `version` - Version * `-version` - Version (descending) * `origin` - Origin * `-origin` - Origin (descending) * `label` - Label * `-label` - Label (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
110
112
|
origin: 'origin_example', # String | Filter results where origin matches value
|
111
113
|
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
112
114
|
package: 'package_example', # String | Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
113
115
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
114
116
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
115
117
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
118
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
116
119
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
117
120
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
118
121
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
@@ -159,13 +162,14 @@ end
|
|
159
162
|
| **label** | **String** | Filter results where label matches value | [optional] |
|
160
163
|
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
161
164
|
| **offset** | **Integer** | The initial index from which to return the results. | [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) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `version` - Version * `-version` - Version (descending) * `origin` - Origin * `-origin` - Origin (descending) * `label` - Label * `-label` - Label (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
165
|
+
| **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) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `version` - Version * `-version` - Version (descending) * `origin` - Origin * `-origin` - Origin (descending) * `label` - Label * `-label` - Label (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
163
166
|
| **origin** | **String** | Filter results where origin matches value | [optional] |
|
164
167
|
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
165
168
|
| **package** | **String** | Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version) | [optional] |
|
166
169
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
167
170
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
168
171
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
172
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
169
173
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
170
174
|
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
171
175
|
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
@@ -264,3 +268,147 @@ end
|
|
264
268
|
- **Content-Type**: Not defined
|
265
269
|
- **Accept**: application/json
|
266
270
|
|
271
|
+
|
272
|
+
## set_label
|
273
|
+
|
274
|
+
> <SetLabelResponse> set_label(deb_release_href, set_label)
|
275
|
+
|
276
|
+
Set a label
|
277
|
+
|
278
|
+
Set a single pulp_label on the object to a specific value or null.
|
279
|
+
|
280
|
+
### Examples
|
281
|
+
|
282
|
+
```ruby
|
283
|
+
require 'time'
|
284
|
+
require 'pulp_deb_client'
|
285
|
+
# setup authorization
|
286
|
+
PulpDebClient.configure do |config|
|
287
|
+
# Configure HTTP basic authorization: basicAuth
|
288
|
+
config.username = 'YOUR USERNAME'
|
289
|
+
config.password = 'YOUR PASSWORD'
|
290
|
+
end
|
291
|
+
|
292
|
+
api_instance = PulpDebClient::ContentReleasesApi.new
|
293
|
+
deb_release_href = 'deb_release_href_example' # String |
|
294
|
+
set_label = PulpDebClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
295
|
+
|
296
|
+
begin
|
297
|
+
# Set a label
|
298
|
+
result = api_instance.set_label(deb_release_href, set_label)
|
299
|
+
p result
|
300
|
+
rescue PulpDebClient::ApiError => e
|
301
|
+
puts "Error when calling ContentReleasesApi->set_label: #{e}"
|
302
|
+
end
|
303
|
+
```
|
304
|
+
|
305
|
+
#### Using the set_label_with_http_info variant
|
306
|
+
|
307
|
+
This returns an Array which contains the response data, status code and headers.
|
308
|
+
|
309
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(deb_release_href, set_label)
|
310
|
+
|
311
|
+
```ruby
|
312
|
+
begin
|
313
|
+
# Set a label
|
314
|
+
data, status_code, headers = api_instance.set_label_with_http_info(deb_release_href, set_label)
|
315
|
+
p status_code # => 2xx
|
316
|
+
p headers # => { ... }
|
317
|
+
p data # => <SetLabelResponse>
|
318
|
+
rescue PulpDebClient::ApiError => e
|
319
|
+
puts "Error when calling ContentReleasesApi->set_label_with_http_info: #{e}"
|
320
|
+
end
|
321
|
+
```
|
322
|
+
|
323
|
+
### Parameters
|
324
|
+
|
325
|
+
| Name | Type | Description | Notes |
|
326
|
+
| ---- | ---- | ----------- | ----- |
|
327
|
+
| **deb_release_href** | **String** | | |
|
328
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
329
|
+
|
330
|
+
### Return type
|
331
|
+
|
332
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
333
|
+
|
334
|
+
### Authorization
|
335
|
+
|
336
|
+
[basicAuth](../README.md#basicAuth)
|
337
|
+
|
338
|
+
### HTTP request headers
|
339
|
+
|
340
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
341
|
+
- **Accept**: application/json
|
342
|
+
|
343
|
+
|
344
|
+
## unset_label
|
345
|
+
|
346
|
+
> <UnsetLabelResponse> unset_label(deb_release_href, unset_label)
|
347
|
+
|
348
|
+
Unset a label
|
349
|
+
|
350
|
+
Unset a single pulp_label on the object.
|
351
|
+
|
352
|
+
### Examples
|
353
|
+
|
354
|
+
```ruby
|
355
|
+
require 'time'
|
356
|
+
require 'pulp_deb_client'
|
357
|
+
# setup authorization
|
358
|
+
PulpDebClient.configure do |config|
|
359
|
+
# Configure HTTP basic authorization: basicAuth
|
360
|
+
config.username = 'YOUR USERNAME'
|
361
|
+
config.password = 'YOUR PASSWORD'
|
362
|
+
end
|
363
|
+
|
364
|
+
api_instance = PulpDebClient::ContentReleasesApi.new
|
365
|
+
deb_release_href = 'deb_release_href_example' # String |
|
366
|
+
unset_label = PulpDebClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
367
|
+
|
368
|
+
begin
|
369
|
+
# Unset a label
|
370
|
+
result = api_instance.unset_label(deb_release_href, unset_label)
|
371
|
+
p result
|
372
|
+
rescue PulpDebClient::ApiError => e
|
373
|
+
puts "Error when calling ContentReleasesApi->unset_label: #{e}"
|
374
|
+
end
|
375
|
+
```
|
376
|
+
|
377
|
+
#### Using the unset_label_with_http_info variant
|
378
|
+
|
379
|
+
This returns an Array which contains the response data, status code and headers.
|
380
|
+
|
381
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(deb_release_href, unset_label)
|
382
|
+
|
383
|
+
```ruby
|
384
|
+
begin
|
385
|
+
# Unset a label
|
386
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(deb_release_href, unset_label)
|
387
|
+
p status_code # => 2xx
|
388
|
+
p headers # => { ... }
|
389
|
+
p data # => <UnsetLabelResponse>
|
390
|
+
rescue PulpDebClient::ApiError => e
|
391
|
+
puts "Error when calling ContentReleasesApi->unset_label_with_http_info: #{e}"
|
392
|
+
end
|
393
|
+
```
|
394
|
+
|
395
|
+
### Parameters
|
396
|
+
|
397
|
+
| Name | Type | Description | Notes |
|
398
|
+
| ---- | ---- | ----------- | ----- |
|
399
|
+
| **deb_release_href** | **String** | | |
|
400
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
401
|
+
|
402
|
+
### Return type
|
403
|
+
|
404
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
405
|
+
|
406
|
+
### Authorization
|
407
|
+
|
408
|
+
[basicAuth](../README.md#basicAuth)
|
409
|
+
|
410
|
+
### HTTP request headers
|
411
|
+
|
412
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
413
|
+
- **Accept**: application/json
|
414
|
+
|
@@ -7,6 +7,8 @@ All URIs are relative to *http://localhost:24817*
|
|
7
7
|
| [**create**](ContentSourceIndicesApi.md#create) | **POST** /pulp/api/v3/content/deb/source_indices/ | Create a source index |
|
8
8
|
| [**list**](ContentSourceIndicesApi.md#list) | **GET** /pulp/api/v3/content/deb/source_indices/ | List SourceIndices |
|
9
9
|
| [**read**](ContentSourceIndicesApi.md#read) | **GET** {deb_source_index_href} | Inspect a source index |
|
10
|
+
| [**set_label**](ContentSourceIndicesApi.md#set_label) | **POST** {deb_source_index_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentSourceIndicesApi.md#unset_label) | **POST** {deb_source_index_href}unset_label/ | Unset a label |
|
10
12
|
|
11
13
|
|
12
14
|
## create
|
@@ -104,11 +106,12 @@ opts = {
|
|
104
106
|
component: 'component_example', # String | Filter results where component matches value
|
105
107
|
limit: 56, # Integer | Number of results to return per page.
|
106
108
|
offset: 56, # Integer | The initial index from which to return the results.
|
107
|
-
ordering: ['-component'], # 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) * `component` - Component * `-component` - Component (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
109
|
+
ordering: ['-component'], # 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) * `component` - Component * `-component` - Component (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
108
110
|
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
109
111
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
110
112
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
111
113
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
114
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
112
115
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
113
116
|
relative_path: 'relative_path_example', # String | Filter results where relative_path matches value
|
114
117
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
@@ -153,11 +156,12 @@ end
|
|
153
156
|
| **component** | **String** | Filter results where component matches value | [optional] |
|
154
157
|
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
155
158
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
156
|
-
| **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) * `component` - Component * `-component` - Component (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending) | [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) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `component` - Component * `-component` - Component (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
157
160
|
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
158
161
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
159
162
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
160
163
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
164
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
161
165
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
162
166
|
| **relative_path** | **String** | Filter results where relative_path matches value | [optional] |
|
163
167
|
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
@@ -256,3 +260,147 @@ end
|
|
256
260
|
- **Content-Type**: Not defined
|
257
261
|
- **Accept**: application/json
|
258
262
|
|
263
|
+
|
264
|
+
## set_label
|
265
|
+
|
266
|
+
> <SetLabelResponse> set_label(deb_source_index_href, set_label)
|
267
|
+
|
268
|
+
Set a label
|
269
|
+
|
270
|
+
Set a single pulp_label on the object to a specific value or null.
|
271
|
+
|
272
|
+
### Examples
|
273
|
+
|
274
|
+
```ruby
|
275
|
+
require 'time'
|
276
|
+
require 'pulp_deb_client'
|
277
|
+
# setup authorization
|
278
|
+
PulpDebClient.configure do |config|
|
279
|
+
# Configure HTTP basic authorization: basicAuth
|
280
|
+
config.username = 'YOUR USERNAME'
|
281
|
+
config.password = 'YOUR PASSWORD'
|
282
|
+
end
|
283
|
+
|
284
|
+
api_instance = PulpDebClient::ContentSourceIndicesApi.new
|
285
|
+
deb_source_index_href = 'deb_source_index_href_example' # String |
|
286
|
+
set_label = PulpDebClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
287
|
+
|
288
|
+
begin
|
289
|
+
# Set a label
|
290
|
+
result = api_instance.set_label(deb_source_index_href, set_label)
|
291
|
+
p result
|
292
|
+
rescue PulpDebClient::ApiError => e
|
293
|
+
puts "Error when calling ContentSourceIndicesApi->set_label: #{e}"
|
294
|
+
end
|
295
|
+
```
|
296
|
+
|
297
|
+
#### Using the set_label_with_http_info variant
|
298
|
+
|
299
|
+
This returns an Array which contains the response data, status code and headers.
|
300
|
+
|
301
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(deb_source_index_href, set_label)
|
302
|
+
|
303
|
+
```ruby
|
304
|
+
begin
|
305
|
+
# Set a label
|
306
|
+
data, status_code, headers = api_instance.set_label_with_http_info(deb_source_index_href, set_label)
|
307
|
+
p status_code # => 2xx
|
308
|
+
p headers # => { ... }
|
309
|
+
p data # => <SetLabelResponse>
|
310
|
+
rescue PulpDebClient::ApiError => e
|
311
|
+
puts "Error when calling ContentSourceIndicesApi->set_label_with_http_info: #{e}"
|
312
|
+
end
|
313
|
+
```
|
314
|
+
|
315
|
+
### Parameters
|
316
|
+
|
317
|
+
| Name | Type | Description | Notes |
|
318
|
+
| ---- | ---- | ----------- | ----- |
|
319
|
+
| **deb_source_index_href** | **String** | | |
|
320
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
321
|
+
|
322
|
+
### Return type
|
323
|
+
|
324
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
325
|
+
|
326
|
+
### Authorization
|
327
|
+
|
328
|
+
[basicAuth](../README.md#basicAuth)
|
329
|
+
|
330
|
+
### HTTP request headers
|
331
|
+
|
332
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
333
|
+
- **Accept**: application/json
|
334
|
+
|
335
|
+
|
336
|
+
## unset_label
|
337
|
+
|
338
|
+
> <UnsetLabelResponse> unset_label(deb_source_index_href, unset_label)
|
339
|
+
|
340
|
+
Unset a label
|
341
|
+
|
342
|
+
Unset a single pulp_label on the object.
|
343
|
+
|
344
|
+
### Examples
|
345
|
+
|
346
|
+
```ruby
|
347
|
+
require 'time'
|
348
|
+
require 'pulp_deb_client'
|
349
|
+
# setup authorization
|
350
|
+
PulpDebClient.configure do |config|
|
351
|
+
# Configure HTTP basic authorization: basicAuth
|
352
|
+
config.username = 'YOUR USERNAME'
|
353
|
+
config.password = 'YOUR PASSWORD'
|
354
|
+
end
|
355
|
+
|
356
|
+
api_instance = PulpDebClient::ContentSourceIndicesApi.new
|
357
|
+
deb_source_index_href = 'deb_source_index_href_example' # String |
|
358
|
+
unset_label = PulpDebClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
359
|
+
|
360
|
+
begin
|
361
|
+
# Unset a label
|
362
|
+
result = api_instance.unset_label(deb_source_index_href, unset_label)
|
363
|
+
p result
|
364
|
+
rescue PulpDebClient::ApiError => e
|
365
|
+
puts "Error when calling ContentSourceIndicesApi->unset_label: #{e}"
|
366
|
+
end
|
367
|
+
```
|
368
|
+
|
369
|
+
#### Using the unset_label_with_http_info variant
|
370
|
+
|
371
|
+
This returns an Array which contains the response data, status code and headers.
|
372
|
+
|
373
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(deb_source_index_href, unset_label)
|
374
|
+
|
375
|
+
```ruby
|
376
|
+
begin
|
377
|
+
# Unset a label
|
378
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(deb_source_index_href, unset_label)
|
379
|
+
p status_code # => 2xx
|
380
|
+
p headers # => { ... }
|
381
|
+
p data # => <UnsetLabelResponse>
|
382
|
+
rescue PulpDebClient::ApiError => e
|
383
|
+
puts "Error when calling ContentSourceIndicesApi->unset_label_with_http_info: #{e}"
|
384
|
+
end
|
385
|
+
```
|
386
|
+
|
387
|
+
### Parameters
|
388
|
+
|
389
|
+
| Name | Type | Description | Notes |
|
390
|
+
| ---- | ---- | ----------- | ----- |
|
391
|
+
| **deb_source_index_href** | **String** | | |
|
392
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
393
|
+
|
394
|
+
### Return type
|
395
|
+
|
396
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
397
|
+
|
398
|
+
### Authorization
|
399
|
+
|
400
|
+
[basicAuth](../README.md#basicAuth)
|
401
|
+
|
402
|
+
### HTTP request headers
|
403
|
+
|
404
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
405
|
+
- **Accept**: application/json
|
406
|
+
|