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
@@ -23,6 +23,7 @@ module PulpDebClient
|
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param deb_release_architecture [DebReleaseArchitecture]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
26
27
|
# @return [AsyncOperationResponse]
|
27
28
|
def create(deb_release_architecture, opts = {})
|
28
29
|
data, _status_code, _headers = create_with_http_info(deb_release_architecture, opts)
|
@@ -33,6 +34,7 @@ module PulpDebClient
|
|
33
34
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
34
35
|
# @param deb_release_architecture [DebReleaseArchitecture]
|
35
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
36
38
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
39
|
def create_with_http_info(deb_release_architecture, opts = {})
|
38
40
|
if @api_client.config.debugging
|
@@ -57,6 +59,7 @@ module PulpDebClient
|
|
57
59
|
if !content_type.nil?
|
58
60
|
header_params['Content-Type'] = content_type
|
59
61
|
end
|
62
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
60
63
|
|
61
64
|
# form parameters
|
62
65
|
form_params = opts[:form_params] || {}
|
@@ -90,15 +93,17 @@ module PulpDebClient
|
|
90
93
|
# List release architectures
|
91
94
|
# A ReleaseArchitecture represents a single dpkg architecture string. Associated artifacts: None; contains only metadata. Every ReleaseArchitecture is always associated with exactly one Release. This indicates that the release/distribution in question supports this architecture.
|
92
95
|
# @param [Hash] opts the optional parameters
|
96
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
93
97
|
# @option opts [String] :architecture Filter results where architecture matches value
|
94
98
|
# @option opts [String] :distribution Filter results where distribution matches value
|
95
99
|
# @option opts [Integer] :limit Number of results to return per page.
|
96
100
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
97
|
-
# @option opts [Array<String>] :ordering 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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
101
|
+
# @option opts [Array<String>] :ordering 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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
98
102
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
99
103
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
100
104
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
101
105
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
106
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
102
107
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
103
108
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
104
109
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -114,15 +119,17 @@ module PulpDebClient
|
|
114
119
|
# List release architectures
|
115
120
|
# A ReleaseArchitecture represents a single dpkg architecture string. Associated artifacts: None; contains only metadata. Every ReleaseArchitecture is always associated with exactly one Release. This indicates that the release/distribution in question supports this architecture.
|
116
121
|
# @param [Hash] opts the optional parameters
|
122
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
117
123
|
# @option opts [String] :architecture Filter results where architecture matches value
|
118
124
|
# @option opts [String] :distribution Filter results where distribution matches value
|
119
125
|
# @option opts [Integer] :limit Number of results to return per page.
|
120
126
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
121
|
-
# @option opts [Array<String>] :ordering 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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
127
|
+
# @option opts [Array<String>] :ordering 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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
122
128
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
123
129
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
124
130
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
125
131
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
132
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
126
133
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
127
134
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
128
135
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -134,7 +141,7 @@ module PulpDebClient
|
|
134
141
|
if @api_client.config.debugging
|
135
142
|
@api_client.config.logger.debug 'Calling API: ContentReleaseArchitecturesApi.list ...'
|
136
143
|
end
|
137
|
-
allowable_values = ["-architecture", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "architecture", "distribution", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
144
|
+
allowable_values = ["-architecture", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "architecture", "distribution", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
138
145
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
139
146
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
140
147
|
end
|
@@ -152,6 +159,7 @@ module PulpDebClient
|
|
152
159
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
153
160
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
154
161
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
162
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
155
163
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
156
164
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
157
165
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -163,6 +171,7 @@ module PulpDebClient
|
|
163
171
|
header_params = opts[:header_params] || {}
|
164
172
|
# HTTP header 'Accept' (if needed)
|
165
173
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
174
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
166
175
|
|
167
176
|
# form parameters
|
168
177
|
form_params = opts[:form_params] || {}
|
@@ -197,6 +206,7 @@ module PulpDebClient
|
|
197
206
|
# A ReleaseArchitecture represents a single dpkg architecture string. Associated artifacts: None; contains only metadata. Every ReleaseArchitecture is always associated with exactly one Release. This indicates that the release/distribution in question supports this architecture.
|
198
207
|
# @param deb_release_architecture_href [String]
|
199
208
|
# @param [Hash] opts the optional parameters
|
209
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
200
210
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
201
211
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
202
212
|
# @return [DebReleaseArchitectureResponse]
|
@@ -209,6 +219,7 @@ module PulpDebClient
|
|
209
219
|
# A ReleaseArchitecture represents a single dpkg architecture string. Associated artifacts: None; contains only metadata. Every ReleaseArchitecture is always associated with exactly one Release. This indicates that the release/distribution in question supports this architecture.
|
210
220
|
# @param deb_release_architecture_href [String]
|
211
221
|
# @param [Hash] opts the optional parameters
|
222
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
212
223
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
213
224
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
214
225
|
# @return [Array<(DebReleaseArchitectureResponse, Integer, Hash)>] DebReleaseArchitectureResponse data, response status code and response headers
|
@@ -232,6 +243,7 @@ module PulpDebClient
|
|
232
243
|
header_params = opts[:header_params] || {}
|
233
244
|
# HTTP header 'Accept' (if needed)
|
234
245
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
246
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
235
247
|
|
236
248
|
# form parameters
|
237
249
|
form_params = opts[:form_params] || {}
|
@@ -261,5 +273,159 @@ module PulpDebClient
|
|
261
273
|
end
|
262
274
|
return data, status_code, headers
|
263
275
|
end
|
276
|
+
|
277
|
+
# Set a label
|
278
|
+
# Set a single pulp_label on the object to a specific value or null.
|
279
|
+
# @param deb_release_architecture_href [String]
|
280
|
+
# @param set_label [SetLabel]
|
281
|
+
# @param [Hash] opts the optional parameters
|
282
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
283
|
+
# @return [SetLabelResponse]
|
284
|
+
def set_label(deb_release_architecture_href, set_label, opts = {})
|
285
|
+
data, _status_code, _headers = set_label_with_http_info(deb_release_architecture_href, set_label, opts)
|
286
|
+
data
|
287
|
+
end
|
288
|
+
|
289
|
+
# Set a label
|
290
|
+
# Set a single pulp_label on the object to a specific value or null.
|
291
|
+
# @param deb_release_architecture_href [String]
|
292
|
+
# @param set_label [SetLabel]
|
293
|
+
# @param [Hash] opts the optional parameters
|
294
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
295
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
296
|
+
def set_label_with_http_info(deb_release_architecture_href, set_label, opts = {})
|
297
|
+
if @api_client.config.debugging
|
298
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseArchitecturesApi.set_label ...'
|
299
|
+
end
|
300
|
+
# verify the required parameter 'deb_release_architecture_href' is set
|
301
|
+
if @api_client.config.client_side_validation && deb_release_architecture_href.nil?
|
302
|
+
fail ArgumentError, "Missing the required parameter 'deb_release_architecture_href' when calling ContentReleaseArchitecturesApi.set_label"
|
303
|
+
end
|
304
|
+
# verify the required parameter 'set_label' is set
|
305
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
306
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentReleaseArchitecturesApi.set_label"
|
307
|
+
end
|
308
|
+
# resource path
|
309
|
+
local_var_path = '{deb_release_architecture_href}set_label/'.sub('{' + 'deb_release_architecture_href' + '}', CGI.escape(deb_release_architecture_href.to_s).gsub('%2F', '/'))
|
310
|
+
|
311
|
+
# query parameters
|
312
|
+
query_params = opts[:query_params] || {}
|
313
|
+
|
314
|
+
# header parameters
|
315
|
+
header_params = opts[:header_params] || {}
|
316
|
+
# HTTP header 'Accept' (if needed)
|
317
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
318
|
+
# HTTP header 'Content-Type'
|
319
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
320
|
+
if !content_type.nil?
|
321
|
+
header_params['Content-Type'] = content_type
|
322
|
+
end
|
323
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
324
|
+
|
325
|
+
# form parameters
|
326
|
+
form_params = opts[:form_params] || {}
|
327
|
+
|
328
|
+
# http body (model)
|
329
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
330
|
+
|
331
|
+
# return_type
|
332
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
333
|
+
|
334
|
+
# auth_names
|
335
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
336
|
+
|
337
|
+
new_options = opts.merge(
|
338
|
+
:operation => :"ContentReleaseArchitecturesApi.set_label",
|
339
|
+
:header_params => header_params,
|
340
|
+
:query_params => query_params,
|
341
|
+
:form_params => form_params,
|
342
|
+
:body => post_body,
|
343
|
+
:auth_names => auth_names,
|
344
|
+
:return_type => return_type
|
345
|
+
)
|
346
|
+
|
347
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
348
|
+
if @api_client.config.debugging
|
349
|
+
@api_client.config.logger.debug "API called: ContentReleaseArchitecturesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
350
|
+
end
|
351
|
+
return data, status_code, headers
|
352
|
+
end
|
353
|
+
|
354
|
+
# Unset a label
|
355
|
+
# Unset a single pulp_label on the object.
|
356
|
+
# @param deb_release_architecture_href [String]
|
357
|
+
# @param unset_label [UnsetLabel]
|
358
|
+
# @param [Hash] opts the optional parameters
|
359
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
360
|
+
# @return [UnsetLabelResponse]
|
361
|
+
def unset_label(deb_release_architecture_href, unset_label, opts = {})
|
362
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_release_architecture_href, unset_label, opts)
|
363
|
+
data
|
364
|
+
end
|
365
|
+
|
366
|
+
# Unset a label
|
367
|
+
# Unset a single pulp_label on the object.
|
368
|
+
# @param deb_release_architecture_href [String]
|
369
|
+
# @param unset_label [UnsetLabel]
|
370
|
+
# @param [Hash] opts the optional parameters
|
371
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
372
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
373
|
+
def unset_label_with_http_info(deb_release_architecture_href, unset_label, opts = {})
|
374
|
+
if @api_client.config.debugging
|
375
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseArchitecturesApi.unset_label ...'
|
376
|
+
end
|
377
|
+
# verify the required parameter 'deb_release_architecture_href' is set
|
378
|
+
if @api_client.config.client_side_validation && deb_release_architecture_href.nil?
|
379
|
+
fail ArgumentError, "Missing the required parameter 'deb_release_architecture_href' when calling ContentReleaseArchitecturesApi.unset_label"
|
380
|
+
end
|
381
|
+
# verify the required parameter 'unset_label' is set
|
382
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
383
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentReleaseArchitecturesApi.unset_label"
|
384
|
+
end
|
385
|
+
# resource path
|
386
|
+
local_var_path = '{deb_release_architecture_href}unset_label/'.sub('{' + 'deb_release_architecture_href' + '}', CGI.escape(deb_release_architecture_href.to_s).gsub('%2F', '/'))
|
387
|
+
|
388
|
+
# query parameters
|
389
|
+
query_params = opts[:query_params] || {}
|
390
|
+
|
391
|
+
# header parameters
|
392
|
+
header_params = opts[:header_params] || {}
|
393
|
+
# HTTP header 'Accept' (if needed)
|
394
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
395
|
+
# HTTP header 'Content-Type'
|
396
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
397
|
+
if !content_type.nil?
|
398
|
+
header_params['Content-Type'] = content_type
|
399
|
+
end
|
400
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
401
|
+
|
402
|
+
# form parameters
|
403
|
+
form_params = opts[:form_params] || {}
|
404
|
+
|
405
|
+
# http body (model)
|
406
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
407
|
+
|
408
|
+
# return_type
|
409
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
410
|
+
|
411
|
+
# auth_names
|
412
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
413
|
+
|
414
|
+
new_options = opts.merge(
|
415
|
+
:operation => :"ContentReleaseArchitecturesApi.unset_label",
|
416
|
+
:header_params => header_params,
|
417
|
+
:query_params => query_params,
|
418
|
+
:form_params => form_params,
|
419
|
+
:body => post_body,
|
420
|
+
:auth_names => auth_names,
|
421
|
+
:return_type => return_type
|
422
|
+
)
|
423
|
+
|
424
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
425
|
+
if @api_client.config.debugging
|
426
|
+
@api_client.config.logger.debug "API called: ContentReleaseArchitecturesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
427
|
+
end
|
428
|
+
return data, status_code, headers
|
429
|
+
end
|
264
430
|
end
|
265
431
|
end
|
@@ -23,6 +23,7 @@ module PulpDebClient
|
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param deb_release_component [DebReleaseComponent]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
26
27
|
# @return [AsyncOperationResponse]
|
27
28
|
def create(deb_release_component, opts = {})
|
28
29
|
data, _status_code, _headers = create_with_http_info(deb_release_component, opts)
|
@@ -33,6 +34,7 @@ module PulpDebClient
|
|
33
34
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
34
35
|
# @param deb_release_component [DebReleaseComponent]
|
35
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
36
38
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
39
|
def create_with_http_info(deb_release_component, opts = {})
|
38
40
|
if @api_client.config.debugging
|
@@ -57,6 +59,7 @@ module PulpDebClient
|
|
57
59
|
if !content_type.nil?
|
58
60
|
header_params['Content-Type'] = content_type
|
59
61
|
end
|
62
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
60
63
|
|
61
64
|
# form parameters
|
62
65
|
form_params = opts[:form_params] || {}
|
@@ -90,16 +93,18 @@ module PulpDebClient
|
|
90
93
|
# List release components
|
91
94
|
# A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata.
|
92
95
|
# @param [Hash] opts the optional parameters
|
96
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
93
97
|
# @option opts [String] :component Filter results where component matches value
|
94
98
|
# @option opts [String] :distribution Filter results where distribution matches value
|
95
99
|
# @option opts [Integer] :limit Number of results to return per page.
|
96
100
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
97
|
-
# @option opts [Array<String>] :ordering 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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
101
|
+
# @option opts [Array<String>] :ordering 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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
98
102
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
99
103
|
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where ReleaseComponent contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
100
104
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
101
105
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
102
106
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
107
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
103
108
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
104
109
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
105
110
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -115,16 +120,18 @@ module PulpDebClient
|
|
115
120
|
# List release components
|
116
121
|
# A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata.
|
117
122
|
# @param [Hash] opts the optional parameters
|
123
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
118
124
|
# @option opts [String] :component Filter results where component matches value
|
119
125
|
# @option opts [String] :distribution Filter results where distribution matches value
|
120
126
|
# @option opts [Integer] :limit Number of results to return per page.
|
121
127
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
122
|
-
# @option opts [Array<String>] :ordering 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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
128
|
+
# @option opts [Array<String>] :ordering 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) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `component` - Component * `-component` - Component (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
123
129
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
124
130
|
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where ReleaseComponent contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
125
131
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
126
132
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
127
133
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
134
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
128
135
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
129
136
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
130
137
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -136,7 +143,7 @@ module PulpDebClient
|
|
136
143
|
if @api_client.config.debugging
|
137
144
|
@api_client.config.logger.debug 'Calling API: ContentReleaseComponentsApi.list ...'
|
138
145
|
end
|
139
|
-
allowable_values = ["-component", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "component", "distribution", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
146
|
+
allowable_values = ["-component", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "component", "distribution", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
140
147
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
141
148
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
142
149
|
end
|
@@ -155,6 +162,7 @@ module PulpDebClient
|
|
155
162
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
156
163
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
157
164
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
165
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
158
166
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
159
167
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
160
168
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -166,6 +174,7 @@ module PulpDebClient
|
|
166
174
|
header_params = opts[:header_params] || {}
|
167
175
|
# HTTP header 'Accept' (if needed)
|
168
176
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
177
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
169
178
|
|
170
179
|
# form parameters
|
171
180
|
form_params = opts[:form_params] || {}
|
@@ -200,6 +209,7 @@ module PulpDebClient
|
|
200
209
|
# A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata.
|
201
210
|
# @param deb_release_component_href [String]
|
202
211
|
# @param [Hash] opts the optional parameters
|
212
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
203
213
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
204
214
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
205
215
|
# @return [DebReleaseComponentResponse]
|
@@ -212,6 +222,7 @@ module PulpDebClient
|
|
212
222
|
# A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata.
|
213
223
|
# @param deb_release_component_href [String]
|
214
224
|
# @param [Hash] opts the optional parameters
|
225
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
215
226
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
216
227
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
217
228
|
# @return [Array<(DebReleaseComponentResponse, Integer, Hash)>] DebReleaseComponentResponse data, response status code and response headers
|
@@ -235,6 +246,7 @@ module PulpDebClient
|
|
235
246
|
header_params = opts[:header_params] || {}
|
236
247
|
# HTTP header 'Accept' (if needed)
|
237
248
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
249
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
238
250
|
|
239
251
|
# form parameters
|
240
252
|
form_params = opts[:form_params] || {}
|
@@ -264,5 +276,159 @@ module PulpDebClient
|
|
264
276
|
end
|
265
277
|
return data, status_code, headers
|
266
278
|
end
|
279
|
+
|
280
|
+
# Set a label
|
281
|
+
# Set a single pulp_label on the object to a specific value or null.
|
282
|
+
# @param deb_release_component_href [String]
|
283
|
+
# @param set_label [SetLabel]
|
284
|
+
# @param [Hash] opts the optional parameters
|
285
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
286
|
+
# @return [SetLabelResponse]
|
287
|
+
def set_label(deb_release_component_href, set_label, opts = {})
|
288
|
+
data, _status_code, _headers = set_label_with_http_info(deb_release_component_href, set_label, opts)
|
289
|
+
data
|
290
|
+
end
|
291
|
+
|
292
|
+
# Set a label
|
293
|
+
# Set a single pulp_label on the object to a specific value or null.
|
294
|
+
# @param deb_release_component_href [String]
|
295
|
+
# @param set_label [SetLabel]
|
296
|
+
# @param [Hash] opts the optional parameters
|
297
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
298
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
299
|
+
def set_label_with_http_info(deb_release_component_href, set_label, opts = {})
|
300
|
+
if @api_client.config.debugging
|
301
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseComponentsApi.set_label ...'
|
302
|
+
end
|
303
|
+
# verify the required parameter 'deb_release_component_href' is set
|
304
|
+
if @api_client.config.client_side_validation && deb_release_component_href.nil?
|
305
|
+
fail ArgumentError, "Missing the required parameter 'deb_release_component_href' when calling ContentReleaseComponentsApi.set_label"
|
306
|
+
end
|
307
|
+
# verify the required parameter 'set_label' is set
|
308
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
309
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentReleaseComponentsApi.set_label"
|
310
|
+
end
|
311
|
+
# resource path
|
312
|
+
local_var_path = '{deb_release_component_href}set_label/'.sub('{' + 'deb_release_component_href' + '}', CGI.escape(deb_release_component_href.to_s).gsub('%2F', '/'))
|
313
|
+
|
314
|
+
# query parameters
|
315
|
+
query_params = opts[:query_params] || {}
|
316
|
+
|
317
|
+
# header parameters
|
318
|
+
header_params = opts[:header_params] || {}
|
319
|
+
# HTTP header 'Accept' (if needed)
|
320
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
321
|
+
# HTTP header 'Content-Type'
|
322
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
323
|
+
if !content_type.nil?
|
324
|
+
header_params['Content-Type'] = content_type
|
325
|
+
end
|
326
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
327
|
+
|
328
|
+
# form parameters
|
329
|
+
form_params = opts[:form_params] || {}
|
330
|
+
|
331
|
+
# http body (model)
|
332
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
333
|
+
|
334
|
+
# return_type
|
335
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
336
|
+
|
337
|
+
# auth_names
|
338
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
339
|
+
|
340
|
+
new_options = opts.merge(
|
341
|
+
:operation => :"ContentReleaseComponentsApi.set_label",
|
342
|
+
:header_params => header_params,
|
343
|
+
:query_params => query_params,
|
344
|
+
:form_params => form_params,
|
345
|
+
:body => post_body,
|
346
|
+
:auth_names => auth_names,
|
347
|
+
:return_type => return_type
|
348
|
+
)
|
349
|
+
|
350
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
351
|
+
if @api_client.config.debugging
|
352
|
+
@api_client.config.logger.debug "API called: ContentReleaseComponentsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
353
|
+
end
|
354
|
+
return data, status_code, headers
|
355
|
+
end
|
356
|
+
|
357
|
+
# Unset a label
|
358
|
+
# Unset a single pulp_label on the object.
|
359
|
+
# @param deb_release_component_href [String]
|
360
|
+
# @param unset_label [UnsetLabel]
|
361
|
+
# @param [Hash] opts the optional parameters
|
362
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
363
|
+
# @return [UnsetLabelResponse]
|
364
|
+
def unset_label(deb_release_component_href, unset_label, opts = {})
|
365
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_release_component_href, unset_label, opts)
|
366
|
+
data
|
367
|
+
end
|
368
|
+
|
369
|
+
# Unset a label
|
370
|
+
# Unset a single pulp_label on the object.
|
371
|
+
# @param deb_release_component_href [String]
|
372
|
+
# @param unset_label [UnsetLabel]
|
373
|
+
# @param [Hash] opts the optional parameters
|
374
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
375
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
376
|
+
def unset_label_with_http_info(deb_release_component_href, unset_label, opts = {})
|
377
|
+
if @api_client.config.debugging
|
378
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseComponentsApi.unset_label ...'
|
379
|
+
end
|
380
|
+
# verify the required parameter 'deb_release_component_href' is set
|
381
|
+
if @api_client.config.client_side_validation && deb_release_component_href.nil?
|
382
|
+
fail ArgumentError, "Missing the required parameter 'deb_release_component_href' when calling ContentReleaseComponentsApi.unset_label"
|
383
|
+
end
|
384
|
+
# verify the required parameter 'unset_label' is set
|
385
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
386
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentReleaseComponentsApi.unset_label"
|
387
|
+
end
|
388
|
+
# resource path
|
389
|
+
local_var_path = '{deb_release_component_href}unset_label/'.sub('{' + 'deb_release_component_href' + '}', CGI.escape(deb_release_component_href.to_s).gsub('%2F', '/'))
|
390
|
+
|
391
|
+
# query parameters
|
392
|
+
query_params = opts[:query_params] || {}
|
393
|
+
|
394
|
+
# header parameters
|
395
|
+
header_params = opts[:header_params] || {}
|
396
|
+
# HTTP header 'Accept' (if needed)
|
397
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
398
|
+
# HTTP header 'Content-Type'
|
399
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
400
|
+
if !content_type.nil?
|
401
|
+
header_params['Content-Type'] = content_type
|
402
|
+
end
|
403
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
404
|
+
|
405
|
+
# form parameters
|
406
|
+
form_params = opts[:form_params] || {}
|
407
|
+
|
408
|
+
# http body (model)
|
409
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
410
|
+
|
411
|
+
# return_type
|
412
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
413
|
+
|
414
|
+
# auth_names
|
415
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
416
|
+
|
417
|
+
new_options = opts.merge(
|
418
|
+
:operation => :"ContentReleaseComponentsApi.unset_label",
|
419
|
+
:header_params => header_params,
|
420
|
+
:query_params => query_params,
|
421
|
+
:form_params => form_params,
|
422
|
+
:body => post_body,
|
423
|
+
:auth_names => auth_names,
|
424
|
+
:return_type => return_type
|
425
|
+
)
|
426
|
+
|
427
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
428
|
+
if @api_client.config.debugging
|
429
|
+
@api_client.config.logger.debug "API called: ContentReleaseComponentsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
430
|
+
end
|
431
|
+
return data, status_code, headers
|
432
|
+
end
|
267
433
|
end
|
268
434
|
end
|