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**](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
|
13
15
|
|
14
|
-
> <DebSourceIndexResponse> create(deb_source_index)
|
16
|
+
> <DebSourceIndexResponse> create(deb_source_index, opts)
|
15
17
|
|
16
18
|
Create a source index
|
17
19
|
|
@@ -31,10 +33,13 @@ end
|
|
31
33
|
|
32
34
|
api_instance = PulpDebClient::ContentSourceIndicesApi.new
|
33
35
|
deb_source_index = PulpDebClient::DebSourceIndex.new({artifacts: 3.56, release: 'release_example', component: 'component_example'}) # DebSourceIndex |
|
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 source index
|
37
|
-
result = api_instance.create(deb_source_index)
|
42
|
+
result = api_instance.create(deb_source_index, opts)
|
38
43
|
p result
|
39
44
|
rescue PulpDebClient::ApiError => e
|
40
45
|
puts "Error when calling ContentSourceIndicesApi->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(<DebSourceIndexResponse>, Integer, Hash)> create_with_http_info(deb_source_index)
|
53
|
+
> <Array(<DebSourceIndexResponse>, Integer, Hash)> create_with_http_info(deb_source_index, opts)
|
49
54
|
|
50
55
|
```ruby
|
51
56
|
begin
|
52
57
|
# Create a source index
|
53
|
-
data, status_code, headers = api_instance.create_with_http_info(deb_source_index)
|
58
|
+
data, status_code, headers = api_instance.create_with_http_info(deb_source_index, opts)
|
54
59
|
p status_code # => 2xx
|
55
60
|
p headers # => { ... }
|
56
61
|
p data # => <DebSourceIndexResponse>
|
@@ -64,6 +69,7 @@ end
|
|
64
69
|
| Name | Type | Description | Notes |
|
65
70
|
| ---- | ---- | ----------- | ----- |
|
66
71
|
| **deb_source_index** | [**DebSourceIndex**](DebSourceIndex.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::ContentSourceIndicesApi.new
|
103
109
|
opts = {
|
110
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
104
111
|
component: 'component_example', # String | Filter results where component matches value
|
105
112
|
limit: 56, # Integer | Number of results to return per page.
|
106
113
|
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)
|
114
|
+
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
115
|
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
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
|
relative_path: 'relative_path_example', # String | Filter results where relative_path matches value
|
114
122
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
@@ -150,14 +158,16 @@ end
|
|
150
158
|
|
151
159
|
| Name | Type | Description | Notes |
|
152
160
|
| ---- | ---- | ----------- | ----- |
|
161
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
153
162
|
| **component** | **String** | Filter results where component matches value | [optional] |
|
154
163
|
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
155
164
|
| **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] |
|
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) * `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
166
|
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
158
167
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
159
168
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
160
169
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
170
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
161
171
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
162
172
|
| **relative_path** | **String** | Filter results where relative_path matches value | [optional] |
|
163
173
|
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
@@ -204,6 +214,7 @@ end
|
|
204
214
|
api_instance = PulpDebClient::ContentSourceIndicesApi.new
|
205
215
|
deb_source_index_href = 'deb_source_index_href_example' # String |
|
206
216
|
opts = {
|
217
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
207
218
|
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
208
219
|
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
209
220
|
}
|
@@ -240,6 +251,7 @@ end
|
|
240
251
|
| Name | Type | Description | Notes |
|
241
252
|
| ---- | ---- | ----------- | ----- |
|
242
253
|
| **deb_source_index_href** | **String** | | |
|
254
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
243
255
|
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
244
256
|
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
245
257
|
|
@@ -256,3 +268,155 @@ end
|
|
256
268
|
- **Content-Type**: Not defined
|
257
269
|
- **Accept**: application/json
|
258
270
|
|
271
|
+
|
272
|
+
## set_label
|
273
|
+
|
274
|
+
> <SetLabelResponse> set_label(deb_source_index_href, set_label, opts)
|
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::ContentSourceIndicesApi.new
|
293
|
+
deb_source_index_href = 'deb_source_index_href_example' # String |
|
294
|
+
set_label = PulpDebClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
295
|
+
opts = {
|
296
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
297
|
+
}
|
298
|
+
|
299
|
+
begin
|
300
|
+
# Set a label
|
301
|
+
result = api_instance.set_label(deb_source_index_href, set_label, opts)
|
302
|
+
p result
|
303
|
+
rescue PulpDebClient::ApiError => e
|
304
|
+
puts "Error when calling ContentSourceIndicesApi->set_label: #{e}"
|
305
|
+
end
|
306
|
+
```
|
307
|
+
|
308
|
+
#### Using the set_label_with_http_info variant
|
309
|
+
|
310
|
+
This returns an Array which contains the response data, status code and headers.
|
311
|
+
|
312
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(deb_source_index_href, set_label, opts)
|
313
|
+
|
314
|
+
```ruby
|
315
|
+
begin
|
316
|
+
# Set a label
|
317
|
+
data, status_code, headers = api_instance.set_label_with_http_info(deb_source_index_href, set_label, opts)
|
318
|
+
p status_code # => 2xx
|
319
|
+
p headers # => { ... }
|
320
|
+
p data # => <SetLabelResponse>
|
321
|
+
rescue PulpDebClient::ApiError => e
|
322
|
+
puts "Error when calling ContentSourceIndicesApi->set_label_with_http_info: #{e}"
|
323
|
+
end
|
324
|
+
```
|
325
|
+
|
326
|
+
### Parameters
|
327
|
+
|
328
|
+
| Name | Type | Description | Notes |
|
329
|
+
| ---- | ---- | ----------- | ----- |
|
330
|
+
| **deb_source_index_href** | **String** | | |
|
331
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
332
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
333
|
+
|
334
|
+
### Return type
|
335
|
+
|
336
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
337
|
+
|
338
|
+
### Authorization
|
339
|
+
|
340
|
+
[basicAuth](../README.md#basicAuth)
|
341
|
+
|
342
|
+
### HTTP request headers
|
343
|
+
|
344
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
345
|
+
- **Accept**: application/json
|
346
|
+
|
347
|
+
|
348
|
+
## unset_label
|
349
|
+
|
350
|
+
> <UnsetLabelResponse> unset_label(deb_source_index_href, unset_label, opts)
|
351
|
+
|
352
|
+
Unset a label
|
353
|
+
|
354
|
+
Unset a single pulp_label on the object.
|
355
|
+
|
356
|
+
### Examples
|
357
|
+
|
358
|
+
```ruby
|
359
|
+
require 'time'
|
360
|
+
require 'pulp_deb_client'
|
361
|
+
# setup authorization
|
362
|
+
PulpDebClient.configure do |config|
|
363
|
+
# Configure HTTP basic authorization: basicAuth
|
364
|
+
config.username = 'YOUR USERNAME'
|
365
|
+
config.password = 'YOUR PASSWORD'
|
366
|
+
end
|
367
|
+
|
368
|
+
api_instance = PulpDebClient::ContentSourceIndicesApi.new
|
369
|
+
deb_source_index_href = 'deb_source_index_href_example' # String |
|
370
|
+
unset_label = PulpDebClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
371
|
+
opts = {
|
372
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
373
|
+
}
|
374
|
+
|
375
|
+
begin
|
376
|
+
# Unset a label
|
377
|
+
result = api_instance.unset_label(deb_source_index_href, unset_label, opts)
|
378
|
+
p result
|
379
|
+
rescue PulpDebClient::ApiError => e
|
380
|
+
puts "Error when calling ContentSourceIndicesApi->unset_label: #{e}"
|
381
|
+
end
|
382
|
+
```
|
383
|
+
|
384
|
+
#### Using the unset_label_with_http_info variant
|
385
|
+
|
386
|
+
This returns an Array which contains the response data, status code and headers.
|
387
|
+
|
388
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(deb_source_index_href, unset_label, opts)
|
389
|
+
|
390
|
+
```ruby
|
391
|
+
begin
|
392
|
+
# Unset a label
|
393
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(deb_source_index_href, unset_label, opts)
|
394
|
+
p status_code # => 2xx
|
395
|
+
p headers # => { ... }
|
396
|
+
p data # => <UnsetLabelResponse>
|
397
|
+
rescue PulpDebClient::ApiError => e
|
398
|
+
puts "Error when calling ContentSourceIndicesApi->unset_label_with_http_info: #{e}"
|
399
|
+
end
|
400
|
+
```
|
401
|
+
|
402
|
+
### Parameters
|
403
|
+
|
404
|
+
| Name | Type | Description | Notes |
|
405
|
+
| ---- | ---- | ----------- | ----- |
|
406
|
+
| **deb_source_index_href** | **String** | | |
|
407
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
408
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
409
|
+
|
410
|
+
### Return type
|
411
|
+
|
412
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
413
|
+
|
414
|
+
### Authorization
|
415
|
+
|
416
|
+
[basicAuth](../README.md#basicAuth)
|
417
|
+
|
418
|
+
### HTTP request headers
|
419
|
+
|
420
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
421
|
+
- **Accept**: application/json
|
422
|
+
|
@@ -7,11 +7,13 @@ All URIs are relative to *http://localhost:24817*
|
|
7
7
|
| [**create**](ContentSourcePackagesApi.md#create) | **POST** /pulp/api/v3/content/deb/source_packages/ | Create a source package |
|
8
8
|
| [**list**](ContentSourcePackagesApi.md#list) | **GET** /pulp/api/v3/content/deb/source_packages/ | List source packages |
|
9
9
|
| [**read**](ContentSourcePackagesApi.md#read) | **GET** {deb_source_package_href} | Inspect a source package |
|
10
|
+
| [**set_label**](ContentSourcePackagesApi.md#set_label) | **POST** {deb_source_package_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentSourcePackagesApi.md#unset_label) | **POST** {deb_source_package_href}unset_label/ | Unset a label |
|
10
12
|
|
11
13
|
|
12
14
|
## create
|
13
15
|
|
14
|
-
> <AsyncOperationResponse> create(deb_source_package)
|
16
|
+
> <AsyncOperationResponse> create(deb_source_package, opts)
|
15
17
|
|
16
18
|
Create a source package
|
17
19
|
|
@@ -31,10 +33,13 @@ end
|
|
31
33
|
|
32
34
|
api_instance = PulpDebClient::ContentSourcePackagesApi.new
|
33
35
|
deb_source_package = PulpDebClient::DebSourcePackage.new({artifact: 'artifact_example'}) # DebSourcePackage |
|
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 source package
|
37
|
-
result = api_instance.create(deb_source_package)
|
42
|
+
result = api_instance.create(deb_source_package, opts)
|
38
43
|
p result
|
39
44
|
rescue PulpDebClient::ApiError => e
|
40
45
|
puts "Error when calling ContentSourcePackagesApi->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(<AsyncOperationResponse>, Integer, Hash)> create_with_http_info(deb_source_package)
|
53
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> create_with_http_info(deb_source_package, opts)
|
49
54
|
|
50
55
|
```ruby
|
51
56
|
begin
|
52
57
|
# Create a source package
|
53
|
-
data, status_code, headers = api_instance.create_with_http_info(deb_source_package)
|
58
|
+
data, status_code, headers = api_instance.create_with_http_info(deb_source_package, opts)
|
54
59
|
p status_code # => 2xx
|
55
60
|
p headers # => { ... }
|
56
61
|
p data # => <AsyncOperationResponse>
|
@@ -64,6 +69,7 @@ end
|
|
64
69
|
| Name | Type | Description | Notes |
|
65
70
|
| ---- | ---- | ----------- | ----- |
|
66
71
|
| **deb_source_package** | [**DebSourcePackage**](DebSourcePackage.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,6 +107,7 @@ end
|
|
101
107
|
|
102
108
|
api_instance = PulpDebClient::ContentSourcePackagesApi.new
|
103
109
|
opts = {
|
110
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
104
111
|
architecture: 'architecture_example', # String | Filter results where architecture matches value
|
105
112
|
binary: 'binary_example', # String | Filter results where binary matches value
|
106
113
|
build_conflicts: 'build_conflicts_example', # String | Filter results where build_conflicts matches value
|
@@ -115,12 +122,13 @@ opts = {
|
|
115
122
|
limit: 56, # Integer | Number of results to return per page.
|
116
123
|
maintainer: 'maintainer_example', # String | Filter results where maintainer matches value
|
117
124
|
offset: 56, # Integer | The initial index from which to return the results.
|
118
|
-
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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
125
|
+
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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
119
126
|
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
120
127
|
package_list: 'package_list_example', # String | Filter results where package_list matches value
|
121
128
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
122
129
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
123
130
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
131
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
124
132
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
125
133
|
relative_path: 'relative_path_example', # String | Filter results where relative_path matches value
|
126
134
|
release: 'release_example', # String | Must be a comma-separated string: \"release_href,repository_or_repository_version_href\" release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
@@ -177,6 +185,7 @@ end
|
|
177
185
|
|
178
186
|
| Name | Type | Description | Notes |
|
179
187
|
| ---- | ---- | ----------- | ----- |
|
188
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
180
189
|
| **architecture** | **String** | Filter results where architecture matches value | [optional] |
|
181
190
|
| **binary** | **String** | Filter results where binary matches value | [optional] |
|
182
191
|
| **build_conflicts** | **String** | Filter results where build_conflicts matches value | [optional] |
|
@@ -191,12 +200,13 @@ end
|
|
191
200
|
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
192
201
|
| **maintainer** | **String** | Filter results where maintainer matches value | [optional] |
|
193
202
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
194
|
-
| **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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
203
|
+
| **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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
195
204
|
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
196
205
|
| **package_list** | **String** | Filter results where package_list matches value | [optional] |
|
197
206
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
198
207
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
199
208
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
209
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
200
210
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
201
211
|
| **relative_path** | **String** | Filter results where relative_path matches value | [optional] |
|
202
212
|
| **release** | **String** | Must be a comma-separated string: \"release_href,repository_or_repository_version_href\" release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version) | [optional] |
|
@@ -258,6 +268,7 @@ end
|
|
258
268
|
api_instance = PulpDebClient::ContentSourcePackagesApi.new
|
259
269
|
deb_source_package_href = 'deb_source_package_href_example' # String |
|
260
270
|
opts = {
|
271
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
261
272
|
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
262
273
|
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
263
274
|
}
|
@@ -294,6 +305,7 @@ end
|
|
294
305
|
| Name | Type | Description | Notes |
|
295
306
|
| ---- | ---- | ----------- | ----- |
|
296
307
|
| **deb_source_package_href** | **String** | | |
|
308
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
297
309
|
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
298
310
|
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
299
311
|
|
@@ -310,3 +322,155 @@ end
|
|
310
322
|
- **Content-Type**: Not defined
|
311
323
|
- **Accept**: application/json
|
312
324
|
|
325
|
+
|
326
|
+
## set_label
|
327
|
+
|
328
|
+
> <SetLabelResponse> set_label(deb_source_package_href, set_label, opts)
|
329
|
+
|
330
|
+
Set a label
|
331
|
+
|
332
|
+
Set a single pulp_label on the object to a specific value or null.
|
333
|
+
|
334
|
+
### Examples
|
335
|
+
|
336
|
+
```ruby
|
337
|
+
require 'time'
|
338
|
+
require 'pulp_deb_client'
|
339
|
+
# setup authorization
|
340
|
+
PulpDebClient.configure do |config|
|
341
|
+
# Configure HTTP basic authorization: basicAuth
|
342
|
+
config.username = 'YOUR USERNAME'
|
343
|
+
config.password = 'YOUR PASSWORD'
|
344
|
+
end
|
345
|
+
|
346
|
+
api_instance = PulpDebClient::ContentSourcePackagesApi.new
|
347
|
+
deb_source_package_href = 'deb_source_package_href_example' # String |
|
348
|
+
set_label = PulpDebClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
349
|
+
opts = {
|
350
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
351
|
+
}
|
352
|
+
|
353
|
+
begin
|
354
|
+
# Set a label
|
355
|
+
result = api_instance.set_label(deb_source_package_href, set_label, opts)
|
356
|
+
p result
|
357
|
+
rescue PulpDebClient::ApiError => e
|
358
|
+
puts "Error when calling ContentSourcePackagesApi->set_label: #{e}"
|
359
|
+
end
|
360
|
+
```
|
361
|
+
|
362
|
+
#### Using the set_label_with_http_info variant
|
363
|
+
|
364
|
+
This returns an Array which contains the response data, status code and headers.
|
365
|
+
|
366
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(deb_source_package_href, set_label, opts)
|
367
|
+
|
368
|
+
```ruby
|
369
|
+
begin
|
370
|
+
# Set a label
|
371
|
+
data, status_code, headers = api_instance.set_label_with_http_info(deb_source_package_href, set_label, opts)
|
372
|
+
p status_code # => 2xx
|
373
|
+
p headers # => { ... }
|
374
|
+
p data # => <SetLabelResponse>
|
375
|
+
rescue PulpDebClient::ApiError => e
|
376
|
+
puts "Error when calling ContentSourcePackagesApi->set_label_with_http_info: #{e}"
|
377
|
+
end
|
378
|
+
```
|
379
|
+
|
380
|
+
### Parameters
|
381
|
+
|
382
|
+
| Name | Type | Description | Notes |
|
383
|
+
| ---- | ---- | ----------- | ----- |
|
384
|
+
| **deb_source_package_href** | **String** | | |
|
385
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
386
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
387
|
+
|
388
|
+
### Return type
|
389
|
+
|
390
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
391
|
+
|
392
|
+
### Authorization
|
393
|
+
|
394
|
+
[basicAuth](../README.md#basicAuth)
|
395
|
+
|
396
|
+
### HTTP request headers
|
397
|
+
|
398
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
399
|
+
- **Accept**: application/json
|
400
|
+
|
401
|
+
|
402
|
+
## unset_label
|
403
|
+
|
404
|
+
> <UnsetLabelResponse> unset_label(deb_source_package_href, unset_label, opts)
|
405
|
+
|
406
|
+
Unset a label
|
407
|
+
|
408
|
+
Unset a single pulp_label on the object.
|
409
|
+
|
410
|
+
### Examples
|
411
|
+
|
412
|
+
```ruby
|
413
|
+
require 'time'
|
414
|
+
require 'pulp_deb_client'
|
415
|
+
# setup authorization
|
416
|
+
PulpDebClient.configure do |config|
|
417
|
+
# Configure HTTP basic authorization: basicAuth
|
418
|
+
config.username = 'YOUR USERNAME'
|
419
|
+
config.password = 'YOUR PASSWORD'
|
420
|
+
end
|
421
|
+
|
422
|
+
api_instance = PulpDebClient::ContentSourcePackagesApi.new
|
423
|
+
deb_source_package_href = 'deb_source_package_href_example' # String |
|
424
|
+
unset_label = PulpDebClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
425
|
+
opts = {
|
426
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
427
|
+
}
|
428
|
+
|
429
|
+
begin
|
430
|
+
# Unset a label
|
431
|
+
result = api_instance.unset_label(deb_source_package_href, unset_label, opts)
|
432
|
+
p result
|
433
|
+
rescue PulpDebClient::ApiError => e
|
434
|
+
puts "Error when calling ContentSourcePackagesApi->unset_label: #{e}"
|
435
|
+
end
|
436
|
+
```
|
437
|
+
|
438
|
+
#### Using the unset_label_with_http_info variant
|
439
|
+
|
440
|
+
This returns an Array which contains the response data, status code and headers.
|
441
|
+
|
442
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(deb_source_package_href, unset_label, opts)
|
443
|
+
|
444
|
+
```ruby
|
445
|
+
begin
|
446
|
+
# Unset a label
|
447
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(deb_source_package_href, unset_label, opts)
|
448
|
+
p status_code # => 2xx
|
449
|
+
p headers # => { ... }
|
450
|
+
p data # => <UnsetLabelResponse>
|
451
|
+
rescue PulpDebClient::ApiError => e
|
452
|
+
puts "Error when calling ContentSourcePackagesApi->unset_label_with_http_info: #{e}"
|
453
|
+
end
|
454
|
+
```
|
455
|
+
|
456
|
+
### Parameters
|
457
|
+
|
458
|
+
| Name | Type | Description | Notes |
|
459
|
+
| ---- | ---- | ----------- | ----- |
|
460
|
+
| **deb_source_package_href** | **String** | | |
|
461
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
462
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
463
|
+
|
464
|
+
### Return type
|
465
|
+
|
466
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
467
|
+
|
468
|
+
### Authorization
|
469
|
+
|
470
|
+
[basicAuth](../README.md#basicAuth)
|
471
|
+
|
472
|
+
### HTTP request headers
|
473
|
+
|
474
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
475
|
+
- **Accept**: application/json
|
476
|
+
|