pulp_deb_client 3.5.1 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +32 -4
- data/docs/ContentGenericContentsApi.md +166 -2
- data/docs/ContentInstallerFileIndicesApi.md +170 -6
- data/docs/ContentInstallerPackagesApi.md +166 -2
- data/docs/ContentPackageIndicesApi.md +170 -6
- data/docs/ContentPackageReleaseComponentsApi.md +170 -6
- data/docs/ContentPackagesApi.md +166 -2
- data/docs/ContentReleaseArchitecturesApi.md +170 -6
- data/docs/ContentReleaseComponentsApi.md +170 -6
- data/docs/ContentReleaseFilesApi.md +170 -6
- data/docs/ContentReleasesApi.md +170 -6
- data/docs/ContentSourceIndicesApi.md +170 -6
- data/docs/ContentSourcePackagesApi.md +170 -6
- data/docs/ContentSourceReleaseComponentsApi.md +170 -6
- data/docs/DebAptDistribution.md +3 -1
- data/docs/DebAptDistributionResponse.md +3 -1
- data/docs/DebAptPublication.md +2 -0
- data/docs/DebAptPublicationResponse.md +2 -0
- data/docs/DebCopyApi.md +8 -4
- 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 +76 -34
- data/docs/PatcheddebAptDistribution.md +3 -1
- data/docs/PublicationsAptApi.md +44 -18
- data/docs/PublicationsVerbatimApi.md +44 -18
- data/docs/RemotesAptApi.md +72 -32
- data/docs/RepositoriesAptApi.md +88 -40
- data/docs/RepositoriesAptVersionsApi.md +22 -10
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +172 -3
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +172 -3
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_packages_api.rb +172 -3
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_release_components_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_release_files_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_releases_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +169 -3
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +169 -3
- data/lib/pulp_deb_client/api/deb_copy_api.rb +3 -0
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +42 -3
- data/lib/pulp_deb_client/api/publications_apt_api.rb +30 -3
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +30 -3
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +36 -0
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +42 -0
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +15 -3
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +14 -5
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +14 -5
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +10 -1
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +10 -1
- 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/patcheddeb_apt_distribution.rb +14 -5
- 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 +34 -1
- data/spec/api/content_installer_file_indices_api_spec.rb +33 -1
- data/spec/api/content_installer_packages_api_spec.rb +34 -1
- data/spec/api/content_package_indices_api_spec.rb +33 -1
- data/spec/api/content_package_release_components_api_spec.rb +33 -1
- data/spec/api/content_packages_api_spec.rb +34 -1
- data/spec/api/content_release_architectures_api_spec.rb +33 -1
- data/spec/api/content_release_components_api_spec.rb +33 -1
- data/spec/api/content_release_files_api_spec.rb +33 -1
- data/spec/api/content_releases_api_spec.rb +33 -1
- data/spec/api/content_source_indices_api_spec.rb +33 -1
- data/spec/api/content_source_packages_api_spec.rb +33 -1
- data/spec/api/content_source_release_components_api_spec.rb +33 -1
- data/spec/api/deb_copy_api_spec.rb +1 -0
- data/spec/api/distributions_apt_api_spec.rb +14 -1
- data/spec/api/publications_apt_api_spec.rb +10 -1
- data/spec/api/publications_verbatim_api_spec.rb +10 -1
- data/spec/api/remotes_apt_api_spec.rb +12 -0
- data/spec/api/repositories_apt_api_spec.rb +14 -0
- data/spec/api/repositories_apt_versions_api_spec.rb +5 -1
- data/spec/models/deb_apt_distribution_response_spec.rb +6 -0
- data/spec/models/deb_apt_distribution_spec.rb +6 -0
- data/spec/models/deb_apt_publication_response_spec.rb +6 -0
- data/spec/models/deb_apt_publication_spec.rb +6 -0
- 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
- data/spec/models/patcheddeb_apt_distribution_spec.rb +6 -0
- metadata +76 -96
@@ -7,11 +7,13 @@ All URIs are relative to *http://localhost:24817*
|
|
7
7
|
| [**create**](ContentPackageReleaseComponentsApi.md#create) | **POST** /pulp/api/v3/content/deb/package_release_components/ | Create a package release component |
|
8
8
|
| [**list**](ContentPackageReleaseComponentsApi.md#list) | **GET** /pulp/api/v3/content/deb/package_release_components/ | List package release components |
|
9
9
|
| [**read**](ContentPackageReleaseComponentsApi.md#read) | **GET** {deb_package_release_component_href} | Inspect a package release component |
|
10
|
+
| [**set_label**](ContentPackageReleaseComponentsApi.md#set_label) | **POST** {deb_package_release_component_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentPackageReleaseComponentsApi.md#unset_label) | **POST** {deb_package_release_component_href}unset_label/ | Unset a label |
|
10
12
|
|
11
13
|
|
12
14
|
## create
|
13
15
|
|
14
|
-
> <DebPackageReleaseComponentResponse> create(deb_package_release_component)
|
16
|
+
> <DebPackageReleaseComponentResponse> create(deb_package_release_component, opts)
|
15
17
|
|
16
18
|
Create a package release component
|
17
19
|
|
@@ -31,10 +33,13 @@ end
|
|
31
33
|
|
32
34
|
api_instance = PulpDebClient::ContentPackageReleaseComponentsApi.new
|
33
35
|
deb_package_release_component = PulpDebClient::DebPackageReleaseComponent.new({package: 'package_example', release_component: 'release_component_example'}) # DebPackageReleaseComponent |
|
36
|
+
opts = {
|
37
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
38
|
+
}
|
34
39
|
|
35
40
|
begin
|
36
41
|
# Create a package release component
|
37
|
-
result = api_instance.create(deb_package_release_component)
|
42
|
+
result = api_instance.create(deb_package_release_component, opts)
|
38
43
|
p result
|
39
44
|
rescue PulpDebClient::ApiError => e
|
40
45
|
puts "Error when calling ContentPackageReleaseComponentsApi->create: #{e}"
|
@@ -45,12 +50,12 @@ end
|
|
45
50
|
|
46
51
|
This returns an Array which contains the response data, status code and headers.
|
47
52
|
|
48
|
-
> <Array(<DebPackageReleaseComponentResponse>, Integer, Hash)> create_with_http_info(deb_package_release_component)
|
53
|
+
> <Array(<DebPackageReleaseComponentResponse>, Integer, Hash)> create_with_http_info(deb_package_release_component, opts)
|
49
54
|
|
50
55
|
```ruby
|
51
56
|
begin
|
52
57
|
# Create a package release component
|
53
|
-
data, status_code, headers = api_instance.create_with_http_info(deb_package_release_component)
|
58
|
+
data, status_code, headers = api_instance.create_with_http_info(deb_package_release_component, opts)
|
54
59
|
p status_code # => 2xx
|
55
60
|
p headers # => { ... }
|
56
61
|
p data # => <DebPackageReleaseComponentResponse>
|
@@ -64,6 +69,7 @@ end
|
|
64
69
|
| Name | Type | Description | Notes |
|
65
70
|
| ---- | ---- | ----------- | ----- |
|
66
71
|
| **deb_package_release_component** | [**DebPackageReleaseComponent**](DebPackageReleaseComponent.md) | | |
|
72
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
67
73
|
|
68
74
|
### Return type
|
69
75
|
|
@@ -101,14 +107,16 @@ end
|
|
101
107
|
|
102
108
|
api_instance = PulpDebClient::ContentPackageReleaseComponentsApi.new
|
103
109
|
opts = {
|
110
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
104
111
|
limit: 56, # Integer | Number of results to return per page.
|
105
112
|
offset: 56, # Integer | The initial index from which to return the results.
|
106
|
-
ordering: ['-pk'], # 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) * `pk` - Pk * `-pk` - Pk (descending)
|
113
|
+
ordering: ['-pk'], # 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) * `pk` - Pk * `-pk` - Pk (descending)
|
107
114
|
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
108
115
|
package: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Filter results where package matches value
|
109
116
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
110
117
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
111
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
|
112
120
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
113
121
|
release_component: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Filter results where release_component matches value
|
114
122
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
@@ -149,14 +157,16 @@ end
|
|
149
157
|
|
150
158
|
| Name | Type | Description | Notes |
|
151
159
|
| ---- | ---- | ----------- | ----- |
|
160
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
152
161
|
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
153
162
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
154
|
-
| **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) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
163
|
+
| **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) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
155
164
|
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
156
165
|
| **package** | **String** | Filter results where package matches value | [optional] |
|
157
166
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
158
167
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
159
168
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
169
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
160
170
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
161
171
|
| **release_component** | **String** | Filter results where release_component matches value | [optional] |
|
162
172
|
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
@@ -202,6 +212,7 @@ end
|
|
202
212
|
api_instance = PulpDebClient::ContentPackageReleaseComponentsApi.new
|
203
213
|
deb_package_release_component_href = 'deb_package_release_component_href_example' # String |
|
204
214
|
opts = {
|
215
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
205
216
|
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
206
217
|
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
207
218
|
}
|
@@ -238,6 +249,7 @@ end
|
|
238
249
|
| Name | Type | Description | Notes |
|
239
250
|
| ---- | ---- | ----------- | ----- |
|
240
251
|
| **deb_package_release_component_href** | **String** | | |
|
252
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
241
253
|
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
242
254
|
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
243
255
|
|
@@ -254,3 +266,155 @@ end
|
|
254
266
|
- **Content-Type**: Not defined
|
255
267
|
- **Accept**: application/json
|
256
268
|
|
269
|
+
|
270
|
+
## set_label
|
271
|
+
|
272
|
+
> <SetLabelResponse> set_label(deb_package_release_component_href, set_label, opts)
|
273
|
+
|
274
|
+
Set a label
|
275
|
+
|
276
|
+
Set a single pulp_label on the object to a specific value or null.
|
277
|
+
|
278
|
+
### Examples
|
279
|
+
|
280
|
+
```ruby
|
281
|
+
require 'time'
|
282
|
+
require 'pulp_deb_client'
|
283
|
+
# setup authorization
|
284
|
+
PulpDebClient.configure do |config|
|
285
|
+
# Configure HTTP basic authorization: basicAuth
|
286
|
+
config.username = 'YOUR USERNAME'
|
287
|
+
config.password = 'YOUR PASSWORD'
|
288
|
+
end
|
289
|
+
|
290
|
+
api_instance = PulpDebClient::ContentPackageReleaseComponentsApi.new
|
291
|
+
deb_package_release_component_href = 'deb_package_release_component_href_example' # String |
|
292
|
+
set_label = PulpDebClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
293
|
+
opts = {
|
294
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
295
|
+
}
|
296
|
+
|
297
|
+
begin
|
298
|
+
# Set a label
|
299
|
+
result = api_instance.set_label(deb_package_release_component_href, set_label, opts)
|
300
|
+
p result
|
301
|
+
rescue PulpDebClient::ApiError => e
|
302
|
+
puts "Error when calling ContentPackageReleaseComponentsApi->set_label: #{e}"
|
303
|
+
end
|
304
|
+
```
|
305
|
+
|
306
|
+
#### Using the set_label_with_http_info variant
|
307
|
+
|
308
|
+
This returns an Array which contains the response data, status code and headers.
|
309
|
+
|
310
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(deb_package_release_component_href, set_label, opts)
|
311
|
+
|
312
|
+
```ruby
|
313
|
+
begin
|
314
|
+
# Set a label
|
315
|
+
data, status_code, headers = api_instance.set_label_with_http_info(deb_package_release_component_href, set_label, opts)
|
316
|
+
p status_code # => 2xx
|
317
|
+
p headers # => { ... }
|
318
|
+
p data # => <SetLabelResponse>
|
319
|
+
rescue PulpDebClient::ApiError => e
|
320
|
+
puts "Error when calling ContentPackageReleaseComponentsApi->set_label_with_http_info: #{e}"
|
321
|
+
end
|
322
|
+
```
|
323
|
+
|
324
|
+
### Parameters
|
325
|
+
|
326
|
+
| Name | Type | Description | Notes |
|
327
|
+
| ---- | ---- | ----------- | ----- |
|
328
|
+
| **deb_package_release_component_href** | **String** | | |
|
329
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
330
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
331
|
+
|
332
|
+
### Return type
|
333
|
+
|
334
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
335
|
+
|
336
|
+
### Authorization
|
337
|
+
|
338
|
+
[basicAuth](../README.md#basicAuth)
|
339
|
+
|
340
|
+
### HTTP request headers
|
341
|
+
|
342
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
343
|
+
- **Accept**: application/json
|
344
|
+
|
345
|
+
|
346
|
+
## unset_label
|
347
|
+
|
348
|
+
> <UnsetLabelResponse> unset_label(deb_package_release_component_href, unset_label, opts)
|
349
|
+
|
350
|
+
Unset a label
|
351
|
+
|
352
|
+
Unset a single pulp_label on the object.
|
353
|
+
|
354
|
+
### Examples
|
355
|
+
|
356
|
+
```ruby
|
357
|
+
require 'time'
|
358
|
+
require 'pulp_deb_client'
|
359
|
+
# setup authorization
|
360
|
+
PulpDebClient.configure do |config|
|
361
|
+
# Configure HTTP basic authorization: basicAuth
|
362
|
+
config.username = 'YOUR USERNAME'
|
363
|
+
config.password = 'YOUR PASSWORD'
|
364
|
+
end
|
365
|
+
|
366
|
+
api_instance = PulpDebClient::ContentPackageReleaseComponentsApi.new
|
367
|
+
deb_package_release_component_href = 'deb_package_release_component_href_example' # String |
|
368
|
+
unset_label = PulpDebClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
369
|
+
opts = {
|
370
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
371
|
+
}
|
372
|
+
|
373
|
+
begin
|
374
|
+
# Unset a label
|
375
|
+
result = api_instance.unset_label(deb_package_release_component_href, unset_label, opts)
|
376
|
+
p result
|
377
|
+
rescue PulpDebClient::ApiError => e
|
378
|
+
puts "Error when calling ContentPackageReleaseComponentsApi->unset_label: #{e}"
|
379
|
+
end
|
380
|
+
```
|
381
|
+
|
382
|
+
#### Using the unset_label_with_http_info variant
|
383
|
+
|
384
|
+
This returns an Array which contains the response data, status code and headers.
|
385
|
+
|
386
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(deb_package_release_component_href, unset_label, opts)
|
387
|
+
|
388
|
+
```ruby
|
389
|
+
begin
|
390
|
+
# Unset a label
|
391
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(deb_package_release_component_href, unset_label, opts)
|
392
|
+
p status_code # => 2xx
|
393
|
+
p headers # => { ... }
|
394
|
+
p data # => <UnsetLabelResponse>
|
395
|
+
rescue PulpDebClient::ApiError => e
|
396
|
+
puts "Error when calling ContentPackageReleaseComponentsApi->unset_label_with_http_info: #{e}"
|
397
|
+
end
|
398
|
+
```
|
399
|
+
|
400
|
+
### Parameters
|
401
|
+
|
402
|
+
| Name | Type | Description | Notes |
|
403
|
+
| ---- | ---- | ----------- | ----- |
|
404
|
+
| **deb_package_release_component_href** | **String** | | |
|
405
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
406
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
407
|
+
|
408
|
+
### Return type
|
409
|
+
|
410
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
411
|
+
|
412
|
+
### Authorization
|
413
|
+
|
414
|
+
[basicAuth](../README.md#basicAuth)
|
415
|
+
|
416
|
+
### HTTP request headers
|
417
|
+
|
418
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
419
|
+
- **Accept**: application/json
|
420
|
+
|
data/docs/ContentPackagesApi.md
CHANGED
@@ -7,6 +7,8 @@ All URIs are relative to *http://localhost:24817*
|
|
7
7
|
| [**create**](ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/deb/packages/ | Create a package |
|
8
8
|
| [**list**](ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/deb/packages/ | List packages |
|
9
9
|
| [**read**](ContentPackagesApi.md#read) | **GET** {deb_package_href} | Inspect a package |
|
10
|
+
| [**set_label**](ContentPackagesApi.md#set_label) | **POST** {deb_package_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentPackagesApi.md#unset_label) | **POST** {deb_package_href}unset_label/ | Unset a label |
|
10
12
|
|
11
13
|
|
12
14
|
## create
|
@@ -31,7 +33,9 @@ end
|
|
31
33
|
|
32
34
|
api_instance = PulpDebClient::ContentPackagesApi.new
|
33
35
|
opts = {
|
36
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
34
37
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
38
|
+
pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
35
39
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
36
40
|
relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path
|
37
41
|
file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
|
@@ -72,7 +76,9 @@ end
|
|
72
76
|
|
73
77
|
| Name | Type | Description | Notes |
|
74
78
|
| ---- | ---- | ----------- | ----- |
|
79
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
75
80
|
| **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
|
81
|
+
| **pulp_labels** | [**Hash<String, String>**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
|
76
82
|
| **artifact** | **String** | Artifact file representing the physical content | [optional] |
|
77
83
|
| **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | [optional] |
|
78
84
|
| **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
|
@@ -117,6 +123,7 @@ end
|
|
117
123
|
|
118
124
|
api_instance = PulpDebClient::ContentPackagesApi.new
|
119
125
|
opts = {
|
126
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
120
127
|
architecture: 'architecture_example', # String | Filter results where architecture matches value
|
121
128
|
auto_built_package: 'auto_built_package_example', # String | Filter results where auto_built_package matches value
|
122
129
|
build_essential: true, # Boolean | Filter results where build_essential matches value * `True` - yes * `False` - no
|
@@ -127,7 +134,7 @@ opts = {
|
|
127
134
|
maintainer: 'maintainer_example', # String | Filter results where maintainer matches value
|
128
135
|
multi_arch: 'allowed', # String | Filter results where multi_arch matches value * `no` - no * `same` - same * `foreign` - foreign * `allowed` - allowed
|
129
136
|
offset: 56, # Integer | The initial index from which to return the results.
|
130
|
-
ordering: ['-architecture'], # 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) * `package` - Package * `-package` - Package (descending) * `source` - Source * `-source` - Source (descending) * `version` - Version * `-version` - Version (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `section` - Section * `-section` - Section (descending) * `priority` - Priority * `-priority` - Priority (descending) * `origin` - Origin * `-origin` - Origin (descending) * `tag` - Tag * `-tag` - Tag (descending) * `bugs` - Bugs * `-bugs` - Bugs (descending) * `essential` - Essential * `-essential` - Essential (descending) * `build_essential` - Build essential * `-build_essential` - Build essential (descending) * `installed_size` - Installed size * `-installed_size` - Installed size (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `original_maintainer` - Original maintainer * `-original_maintainer` - Original maintainer (descending) * `description` - Description * `-description` - Description (descending) * `description_md5` - Description md5 * `-description_md5` - Description md5 (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `built_using` - Built using * `-built_using` - Built using (descending) * `auto_built_package` - Auto built package * `-auto_built_package` - Auto built package (descending) * `multi_arch` - Multi arch * `-multi_arch` - Multi arch (descending) * `breaks` - Breaks * `-breaks` - Breaks (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `depends` - Depends * `-depends` - Depends (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `pre_depends` - Pre depends * `-pre_depends` - Pre depends (descending) * `provides` - Provides * `-provides` - Provides (descending) * `replaces` - Replaces * `-replaces` - Replaces (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `custom_fields` - Custom fields * `-custom_fields` - Custom fields (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
137
|
+
ordering: ['-architecture'], # 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) * `package` - Package * `-package` - Package (descending) * `source` - Source * `-source` - Source (descending) * `version` - Version * `-version` - Version (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `section` - Section * `-section` - Section (descending) * `priority` - Priority * `-priority` - Priority (descending) * `origin` - Origin * `-origin` - Origin (descending) * `tag` - Tag * `-tag` - Tag (descending) * `bugs` - Bugs * `-bugs` - Bugs (descending) * `essential` - Essential * `-essential` - Essential (descending) * `build_essential` - Build essential * `-build_essential` - Build essential (descending) * `installed_size` - Installed size * `-installed_size` - Installed size (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `original_maintainer` - Original maintainer * `-original_maintainer` - Original maintainer (descending) * `description` - Description * `-description` - Description (descending) * `description_md5` - Description md5 * `-description_md5` - Description md5 (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `built_using` - Built using * `-built_using` - Built using (descending) * `auto_built_package` - Auto built package * `-auto_built_package` - Auto built package (descending) * `multi_arch` - Multi arch * `-multi_arch` - Multi arch (descending) * `breaks` - Breaks * `-breaks` - Breaks (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `depends` - Depends * `-depends` - Depends (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `pre_depends` - Pre depends * `-pre_depends` - Pre depends (descending) * `provides` - Provides * `-provides` - Provides (descending) * `replaces` - Replaces * `-replaces` - Replaces (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `custom_fields` - Custom fields * `-custom_fields` - Custom fields (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
131
138
|
origin: 'origin_example', # String | Filter results where origin matches value
|
132
139
|
original_maintainer: 'original_maintainer_example', # String | Filter results where original_maintainer matches value
|
133
140
|
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
@@ -144,6 +151,7 @@ opts = {
|
|
144
151
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
145
152
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
146
153
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
154
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
147
155
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
148
156
|
relative_path: 'relative_path_example', # String | Filter results where relative_path matches value
|
149
157
|
release: 'release_example', # String | Must be a comma-separated string: \"release_href,repository_or_repository_version_href\" release_href: Filter results where Package in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
@@ -191,6 +199,7 @@ end
|
|
191
199
|
|
192
200
|
| Name | Type | Description | Notes |
|
193
201
|
| ---- | ---- | ----------- | ----- |
|
202
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
194
203
|
| **architecture** | **String** | Filter results where architecture matches value | [optional] |
|
195
204
|
| **auto_built_package** | **String** | Filter results where auto_built_package matches value | [optional] |
|
196
205
|
| **build_essential** | **Boolean** | Filter results where build_essential matches value * `True` - yes * `False` - no | [optional] |
|
@@ -201,7 +210,7 @@ end
|
|
201
210
|
| **maintainer** | **String** | Filter results where maintainer matches value | [optional] |
|
202
211
|
| **multi_arch** | **String** | Filter results where multi_arch matches value * `no` - no * `same` - same * `foreign` - foreign * `allowed` - allowed | [optional] |
|
203
212
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
204
|
-
| **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) * `package` - Package * `-package` - Package (descending) * `source` - Source * `-source` - Source (descending) * `version` - Version * `-version` - Version (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `section` - Section * `-section` - Section (descending) * `priority` - Priority * `-priority` - Priority (descending) * `origin` - Origin * `-origin` - Origin (descending) * `tag` - Tag * `-tag` - Tag (descending) * `bugs` - Bugs * `-bugs` - Bugs (descending) * `essential` - Essential * `-essential` - Essential (descending) * `build_essential` - Build essential * `-build_essential` - Build essential (descending) * `installed_size` - Installed size * `-installed_size` - Installed size (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `original_maintainer` - Original maintainer * `-original_maintainer` - Original maintainer (descending) * `description` - Description * `-description` - Description (descending) * `description_md5` - Description md5 * `-description_md5` - Description md5 (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `built_using` - Built using * `-built_using` - Built using (descending) * `auto_built_package` - Auto built package * `-auto_built_package` - Auto built package (descending) * `multi_arch` - Multi arch * `-multi_arch` - Multi arch (descending) * `breaks` - Breaks * `-breaks` - Breaks (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `depends` - Depends * `-depends` - Depends (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `pre_depends` - Pre depends * `-pre_depends` - Pre depends (descending) * `provides` - Provides * `-provides` - Provides (descending) * `replaces` - Replaces * `-replaces` - Replaces (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `custom_fields` - Custom fields * `-custom_fields` - Custom fields (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
213
|
+
| **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) * `package` - Package * `-package` - Package (descending) * `source` - Source * `-source` - Source (descending) * `version` - Version * `-version` - Version (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `section` - Section * `-section` - Section (descending) * `priority` - Priority * `-priority` - Priority (descending) * `origin` - Origin * `-origin` - Origin (descending) * `tag` - Tag * `-tag` - Tag (descending) * `bugs` - Bugs * `-bugs` - Bugs (descending) * `essential` - Essential * `-essential` - Essential (descending) * `build_essential` - Build essential * `-build_essential` - Build essential (descending) * `installed_size` - Installed size * `-installed_size` - Installed size (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `original_maintainer` - Original maintainer * `-original_maintainer` - Original maintainer (descending) * `description` - Description * `-description` - Description (descending) * `description_md5` - Description md5 * `-description_md5` - Description md5 (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `built_using` - Built using * `-built_using` - Built using (descending) * `auto_built_package` - Auto built package * `-auto_built_package` - Auto built package (descending) * `multi_arch` - Multi arch * `-multi_arch` - Multi arch (descending) * `breaks` - Breaks * `-breaks` - Breaks (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `depends` - Depends * `-depends` - Depends (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `pre_depends` - Pre depends * `-pre_depends` - Pre depends (descending) * `provides` - Provides * `-provides` - Provides (descending) * `replaces` - Replaces * `-replaces` - Replaces (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `custom_fields` - Custom fields * `-custom_fields` - Custom fields (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
205
214
|
| **origin** | **String** | Filter results where origin matches value | [optional] |
|
206
215
|
| **original_maintainer** | **String** | Filter results where original_maintainer matches value | [optional] |
|
207
216
|
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
@@ -218,6 +227,7 @@ end
|
|
218
227
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
219
228
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
220
229
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
230
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
221
231
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
222
232
|
| **relative_path** | **String** | Filter results where relative_path matches value | [optional] |
|
223
233
|
| **release** | **String** | Must be a comma-separated string: \"release_href,repository_or_repository_version_href\" release_href: Filter results where Package in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version) | [optional] |
|
@@ -270,6 +280,7 @@ end
|
|
270
280
|
api_instance = PulpDebClient::ContentPackagesApi.new
|
271
281
|
deb_package_href = 'deb_package_href_example' # String |
|
272
282
|
opts = {
|
283
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
273
284
|
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
274
285
|
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
275
286
|
}
|
@@ -306,6 +317,7 @@ end
|
|
306
317
|
| Name | Type | Description | Notes |
|
307
318
|
| ---- | ---- | ----------- | ----- |
|
308
319
|
| **deb_package_href** | **String** | | |
|
320
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
309
321
|
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
310
322
|
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
311
323
|
|
@@ -322,3 +334,155 @@ end
|
|
322
334
|
- **Content-Type**: Not defined
|
323
335
|
- **Accept**: application/json
|
324
336
|
|
337
|
+
|
338
|
+
## set_label
|
339
|
+
|
340
|
+
> <SetLabelResponse> set_label(deb_package_href, set_label, opts)
|
341
|
+
|
342
|
+
Set a label
|
343
|
+
|
344
|
+
Set a single pulp_label on the object to a specific value or null.
|
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::ContentPackagesApi.new
|
359
|
+
deb_package_href = 'deb_package_href_example' # String |
|
360
|
+
set_label = PulpDebClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
361
|
+
opts = {
|
362
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
363
|
+
}
|
364
|
+
|
365
|
+
begin
|
366
|
+
# Set a label
|
367
|
+
result = api_instance.set_label(deb_package_href, set_label, opts)
|
368
|
+
p result
|
369
|
+
rescue PulpDebClient::ApiError => e
|
370
|
+
puts "Error when calling ContentPackagesApi->set_label: #{e}"
|
371
|
+
end
|
372
|
+
```
|
373
|
+
|
374
|
+
#### Using the set_label_with_http_info variant
|
375
|
+
|
376
|
+
This returns an Array which contains the response data, status code and headers.
|
377
|
+
|
378
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(deb_package_href, set_label, opts)
|
379
|
+
|
380
|
+
```ruby
|
381
|
+
begin
|
382
|
+
# Set a label
|
383
|
+
data, status_code, headers = api_instance.set_label_with_http_info(deb_package_href, set_label, opts)
|
384
|
+
p status_code # => 2xx
|
385
|
+
p headers # => { ... }
|
386
|
+
p data # => <SetLabelResponse>
|
387
|
+
rescue PulpDebClient::ApiError => e
|
388
|
+
puts "Error when calling ContentPackagesApi->set_label_with_http_info: #{e}"
|
389
|
+
end
|
390
|
+
```
|
391
|
+
|
392
|
+
### Parameters
|
393
|
+
|
394
|
+
| Name | Type | Description | Notes |
|
395
|
+
| ---- | ---- | ----------- | ----- |
|
396
|
+
| **deb_package_href** | **String** | | |
|
397
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
398
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
399
|
+
|
400
|
+
### Return type
|
401
|
+
|
402
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
403
|
+
|
404
|
+
### Authorization
|
405
|
+
|
406
|
+
[basicAuth](../README.md#basicAuth)
|
407
|
+
|
408
|
+
### HTTP request headers
|
409
|
+
|
410
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
411
|
+
- **Accept**: application/json
|
412
|
+
|
413
|
+
|
414
|
+
## unset_label
|
415
|
+
|
416
|
+
> <UnsetLabelResponse> unset_label(deb_package_href, unset_label, opts)
|
417
|
+
|
418
|
+
Unset a label
|
419
|
+
|
420
|
+
Unset a single pulp_label on the object.
|
421
|
+
|
422
|
+
### Examples
|
423
|
+
|
424
|
+
```ruby
|
425
|
+
require 'time'
|
426
|
+
require 'pulp_deb_client'
|
427
|
+
# setup authorization
|
428
|
+
PulpDebClient.configure do |config|
|
429
|
+
# Configure HTTP basic authorization: basicAuth
|
430
|
+
config.username = 'YOUR USERNAME'
|
431
|
+
config.password = 'YOUR PASSWORD'
|
432
|
+
end
|
433
|
+
|
434
|
+
api_instance = PulpDebClient::ContentPackagesApi.new
|
435
|
+
deb_package_href = 'deb_package_href_example' # String |
|
436
|
+
unset_label = PulpDebClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
437
|
+
opts = {
|
438
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
439
|
+
}
|
440
|
+
|
441
|
+
begin
|
442
|
+
# Unset a label
|
443
|
+
result = api_instance.unset_label(deb_package_href, unset_label, opts)
|
444
|
+
p result
|
445
|
+
rescue PulpDebClient::ApiError => e
|
446
|
+
puts "Error when calling ContentPackagesApi->unset_label: #{e}"
|
447
|
+
end
|
448
|
+
```
|
449
|
+
|
450
|
+
#### Using the unset_label_with_http_info variant
|
451
|
+
|
452
|
+
This returns an Array which contains the response data, status code and headers.
|
453
|
+
|
454
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(deb_package_href, unset_label, opts)
|
455
|
+
|
456
|
+
```ruby
|
457
|
+
begin
|
458
|
+
# Unset a label
|
459
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(deb_package_href, unset_label, opts)
|
460
|
+
p status_code # => 2xx
|
461
|
+
p headers # => { ... }
|
462
|
+
p data # => <UnsetLabelResponse>
|
463
|
+
rescue PulpDebClient::ApiError => e
|
464
|
+
puts "Error when calling ContentPackagesApi->unset_label_with_http_info: #{e}"
|
465
|
+
end
|
466
|
+
```
|
467
|
+
|
468
|
+
### Parameters
|
469
|
+
|
470
|
+
| Name | Type | Description | Notes |
|
471
|
+
| ---- | ---- | ----------- | ----- |
|
472
|
+
| **deb_package_href** | **String** | | |
|
473
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
474
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
475
|
+
|
476
|
+
### Return type
|
477
|
+
|
478
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
479
|
+
|
480
|
+
### Authorization
|
481
|
+
|
482
|
+
[basicAuth](../README.md#basicAuth)
|
483
|
+
|
484
|
+
### HTTP request headers
|
485
|
+
|
486
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
487
|
+
- **Accept**: application/json
|
488
|
+
|