pulp_deb_client 3.5.1 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +31 -4
- data/docs/ContentGenericContentsApi.md +152 -2
- data/docs/ContentInstallerFileIndicesApi.md +150 -2
- data/docs/ContentInstallerPackagesApi.md +152 -2
- data/docs/ContentPackageIndicesApi.md +150 -2
- data/docs/ContentPackageReleaseComponentsApi.md +150 -2
- data/docs/ContentPackagesApi.md +152 -2
- data/docs/ContentReleaseArchitecturesApi.md +150 -2
- data/docs/ContentReleaseComponentsApi.md +150 -2
- data/docs/ContentReleaseFilesApi.md +150 -2
- data/docs/ContentReleasesApi.md +150 -2
- data/docs/ContentSourceIndicesApi.md +150 -2
- data/docs/ContentSourcePackagesApi.md +150 -2
- data/docs/ContentSourceReleaseComponentsApi.md +150 -2
- data/docs/DebGenericContentResponse.md +2 -0
- data/docs/DebInstallerFileIndex.md +2 -0
- data/docs/DebInstallerFileIndexResponse.md +2 -0
- data/docs/DebInstallerPackageResponse.md +2 -0
- data/docs/DebPackageIndex.md +2 -0
- data/docs/DebPackageIndexResponse.md +2 -0
- data/docs/DebPackageReleaseComponent.md +2 -0
- data/docs/DebPackageReleaseComponentResponse.md +2 -0
- data/docs/DebPackageResponse.md +2 -0
- data/docs/DebRelease.md +2 -0
- data/docs/DebReleaseArchitecture.md +2 -0
- data/docs/DebReleaseArchitectureResponse.md +2 -0
- data/docs/DebReleaseComponent.md +2 -0
- data/docs/DebReleaseComponentResponse.md +2 -0
- data/docs/DebReleaseFile.md +2 -0
- data/docs/DebReleaseFileResponse.md +2 -0
- data/docs/DebReleaseResponse.md +2 -0
- data/docs/DebSourceIndex.md +2 -0
- data/docs/DebSourceIndexResponse.md +2 -0
- data/docs/DebSourcePackage.md +2 -0
- data/docs/DebSourcePackageReleaseComponent.md +2 -0
- data/docs/DebSourcePackageReleaseComponentResponse.md +2 -0
- data/docs/DebSourcePackageResponse.md +2 -0
- data/docs/DistributionsAptApi.md +4 -2
- data/docs/PublicationsAptApi.md +4 -2
- data/docs/PublicationsVerbatimApi.md +4 -2
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +157 -3
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +157 -3
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_packages_api.rb +157 -3
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_release_components_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_release_files_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_releases_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +154 -3
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +154 -3
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +6 -3
- data/lib/pulp_deb_client/api/publications_apt_api.rb +6 -3
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +6 -3
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +13 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_index.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_package_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_component.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_file.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_release_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_index.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +13 -1
- data/lib/pulp_deb_client/models/unset_label.rb +1 -1
- data/lib/pulp_deb_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_deb_client/version.rb +1 -1
- data/pulp_deb_client.gemspec +0 -1
- data/spec/api/content_generic_contents_api_spec.rb +29 -1
- data/spec/api/content_installer_file_indices_api_spec.rb +28 -1
- data/spec/api/content_installer_packages_api_spec.rb +29 -1
- data/spec/api/content_package_indices_api_spec.rb +28 -1
- data/spec/api/content_package_release_components_api_spec.rb +28 -1
- data/spec/api/content_packages_api_spec.rb +29 -1
- data/spec/api/content_release_architectures_api_spec.rb +28 -1
- data/spec/api/content_release_components_api_spec.rb +28 -1
- data/spec/api/content_release_files_api_spec.rb +28 -1
- data/spec/api/content_releases_api_spec.rb +28 -1
- data/spec/api/content_source_indices_api_spec.rb +28 -1
- data/spec/api/content_source_packages_api_spec.rb +28 -1
- data/spec/api/content_source_release_components_api_spec.rb +28 -1
- data/spec/api/distributions_apt_api_spec.rb +2 -1
- data/spec/api/publications_apt_api_spec.rb +2 -1
- data/spec/api/publications_verbatim_api_spec.rb +2 -1
- data/spec/models/deb_generic_content_response_spec.rb +6 -0
- data/spec/models/deb_installer_file_index_response_spec.rb +6 -0
- data/spec/models/deb_installer_file_index_spec.rb +6 -0
- data/spec/models/deb_installer_package_response_spec.rb +6 -0
- data/spec/models/deb_package_index_response_spec.rb +6 -0
- data/spec/models/deb_package_index_spec.rb +6 -0
- data/spec/models/deb_package_release_component_response_spec.rb +6 -0
- data/spec/models/deb_package_release_component_spec.rb +6 -0
- data/spec/models/deb_package_response_spec.rb +6 -0
- data/spec/models/deb_release_architecture_response_spec.rb +6 -0
- data/spec/models/deb_release_architecture_spec.rb +6 -0
- data/spec/models/deb_release_component_response_spec.rb +6 -0
- data/spec/models/deb_release_component_spec.rb +6 -0
- data/spec/models/deb_release_file_response_spec.rb +6 -0
- data/spec/models/deb_release_file_spec.rb +6 -0
- data/spec/models/deb_release_response_spec.rb +6 -0
- data/spec/models/deb_release_spec.rb +6 -0
- data/spec/models/deb_source_index_response_spec.rb +6 -0
- data/spec/models/deb_source_index_spec.rb +6 -0
- data/spec/models/deb_source_package_release_component_response_spec.rb +6 -0
- data/spec/models/deb_source_package_release_component_spec.rb +6 -0
- data/spec/models/deb_source_package_response_spec.rb +6 -0
- data/spec/models/deb_source_package_spec.rb +6 -0
- metadata +73 -93
@@ -94,11 +94,12 @@ module PulpDebClient
|
|
94
94
|
# @option opts [String] :component Filter results where component matches value
|
95
95
|
# @option opts [Integer] :limit Number of results to return per page.
|
96
96
|
# @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) * `component` - Component * `-component` - Component (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
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) * `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) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
98
98
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
99
99
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
100
100
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
101
101
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
102
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
102
103
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
103
104
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
104
105
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
@@ -120,11 +121,12 @@ module PulpDebClient
|
|
120
121
|
# @option opts [String] :component Filter results where component matches value
|
121
122
|
# @option opts [Integer] :limit Number of results to return per page.
|
122
123
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
123
|
-
# @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) * `component` - Component * `-component` - Component (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
124
|
+
# @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) * `component` - Component * `-component` - Component (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
124
125
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
125
126
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
126
127
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
127
128
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
129
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
128
130
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
129
131
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
130
132
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
@@ -138,7 +140,7 @@ module PulpDebClient
|
|
138
140
|
if @api_client.config.debugging
|
139
141
|
@api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.list ...'
|
140
142
|
end
|
141
|
-
allowable_values = ["-architecture", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "component", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
|
143
|
+
allowable_values = ["-architecture", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "component", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
|
142
144
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
143
145
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
144
146
|
end
|
@@ -156,6 +158,7 @@ module PulpDebClient
|
|
156
158
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
157
159
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
158
160
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
161
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
159
162
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
160
163
|
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
161
164
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
@@ -267,5 +270,153 @@ module PulpDebClient
|
|
267
270
|
end
|
268
271
|
return data, status_code, headers
|
269
272
|
end
|
273
|
+
|
274
|
+
# Set a label
|
275
|
+
# Set a single pulp_label on the object to a specific value or null.
|
276
|
+
# @param deb_installer_file_index_href [String]
|
277
|
+
# @param set_label [SetLabel]
|
278
|
+
# @param [Hash] opts the optional parameters
|
279
|
+
# @return [SetLabelResponse]
|
280
|
+
def set_label(deb_installer_file_index_href, set_label, opts = {})
|
281
|
+
data, _status_code, _headers = set_label_with_http_info(deb_installer_file_index_href, set_label, opts)
|
282
|
+
data
|
283
|
+
end
|
284
|
+
|
285
|
+
# Set a label
|
286
|
+
# Set a single pulp_label on the object to a specific value or null.
|
287
|
+
# @param deb_installer_file_index_href [String]
|
288
|
+
# @param set_label [SetLabel]
|
289
|
+
# @param [Hash] opts the optional parameters
|
290
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
291
|
+
def set_label_with_http_info(deb_installer_file_index_href, set_label, opts = {})
|
292
|
+
if @api_client.config.debugging
|
293
|
+
@api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.set_label ...'
|
294
|
+
end
|
295
|
+
# verify the required parameter 'deb_installer_file_index_href' is set
|
296
|
+
if @api_client.config.client_side_validation && deb_installer_file_index_href.nil?
|
297
|
+
fail ArgumentError, "Missing the required parameter 'deb_installer_file_index_href' when calling ContentInstallerFileIndicesApi.set_label"
|
298
|
+
end
|
299
|
+
# verify the required parameter 'set_label' is set
|
300
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
301
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentInstallerFileIndicesApi.set_label"
|
302
|
+
end
|
303
|
+
# resource path
|
304
|
+
local_var_path = '{deb_installer_file_index_href}set_label/'.sub('{' + 'deb_installer_file_index_href' + '}', CGI.escape(deb_installer_file_index_href.to_s).gsub('%2F', '/'))
|
305
|
+
|
306
|
+
# query parameters
|
307
|
+
query_params = opts[:query_params] || {}
|
308
|
+
|
309
|
+
# header parameters
|
310
|
+
header_params = opts[:header_params] || {}
|
311
|
+
# HTTP header 'Accept' (if needed)
|
312
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
313
|
+
# HTTP header 'Content-Type'
|
314
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
315
|
+
if !content_type.nil?
|
316
|
+
header_params['Content-Type'] = content_type
|
317
|
+
end
|
318
|
+
|
319
|
+
# form parameters
|
320
|
+
form_params = opts[:form_params] || {}
|
321
|
+
|
322
|
+
# http body (model)
|
323
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
324
|
+
|
325
|
+
# return_type
|
326
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
327
|
+
|
328
|
+
# auth_names
|
329
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
330
|
+
|
331
|
+
new_options = opts.merge(
|
332
|
+
:operation => :"ContentInstallerFileIndicesApi.set_label",
|
333
|
+
:header_params => header_params,
|
334
|
+
:query_params => query_params,
|
335
|
+
:form_params => form_params,
|
336
|
+
:body => post_body,
|
337
|
+
:auth_names => auth_names,
|
338
|
+
:return_type => return_type
|
339
|
+
)
|
340
|
+
|
341
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
342
|
+
if @api_client.config.debugging
|
343
|
+
@api_client.config.logger.debug "API called: ContentInstallerFileIndicesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
344
|
+
end
|
345
|
+
return data, status_code, headers
|
346
|
+
end
|
347
|
+
|
348
|
+
# Unset a label
|
349
|
+
# Unset a single pulp_label on the object.
|
350
|
+
# @param deb_installer_file_index_href [String]
|
351
|
+
# @param unset_label [UnsetLabel]
|
352
|
+
# @param [Hash] opts the optional parameters
|
353
|
+
# @return [UnsetLabelResponse]
|
354
|
+
def unset_label(deb_installer_file_index_href, unset_label, opts = {})
|
355
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_installer_file_index_href, unset_label, opts)
|
356
|
+
data
|
357
|
+
end
|
358
|
+
|
359
|
+
# Unset a label
|
360
|
+
# Unset a single pulp_label on the object.
|
361
|
+
# @param deb_installer_file_index_href [String]
|
362
|
+
# @param unset_label [UnsetLabel]
|
363
|
+
# @param [Hash] opts the optional parameters
|
364
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
365
|
+
def unset_label_with_http_info(deb_installer_file_index_href, unset_label, opts = {})
|
366
|
+
if @api_client.config.debugging
|
367
|
+
@api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.unset_label ...'
|
368
|
+
end
|
369
|
+
# verify the required parameter 'deb_installer_file_index_href' is set
|
370
|
+
if @api_client.config.client_side_validation && deb_installer_file_index_href.nil?
|
371
|
+
fail ArgumentError, "Missing the required parameter 'deb_installer_file_index_href' when calling ContentInstallerFileIndicesApi.unset_label"
|
372
|
+
end
|
373
|
+
# verify the required parameter 'unset_label' is set
|
374
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
375
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentInstallerFileIndicesApi.unset_label"
|
376
|
+
end
|
377
|
+
# resource path
|
378
|
+
local_var_path = '{deb_installer_file_index_href}unset_label/'.sub('{' + 'deb_installer_file_index_href' + '}', CGI.escape(deb_installer_file_index_href.to_s).gsub('%2F', '/'))
|
379
|
+
|
380
|
+
# query parameters
|
381
|
+
query_params = opts[:query_params] || {}
|
382
|
+
|
383
|
+
# header parameters
|
384
|
+
header_params = opts[:header_params] || {}
|
385
|
+
# HTTP header 'Accept' (if needed)
|
386
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
387
|
+
# HTTP header 'Content-Type'
|
388
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
389
|
+
if !content_type.nil?
|
390
|
+
header_params['Content-Type'] = content_type
|
391
|
+
end
|
392
|
+
|
393
|
+
# form parameters
|
394
|
+
form_params = opts[:form_params] || {}
|
395
|
+
|
396
|
+
# http body (model)
|
397
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
398
|
+
|
399
|
+
# return_type
|
400
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
401
|
+
|
402
|
+
# auth_names
|
403
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
404
|
+
|
405
|
+
new_options = opts.merge(
|
406
|
+
:operation => :"ContentInstallerFileIndicesApi.unset_label",
|
407
|
+
:header_params => header_params,
|
408
|
+
:query_params => query_params,
|
409
|
+
:form_params => form_params,
|
410
|
+
:body => post_body,
|
411
|
+
:auth_names => auth_names,
|
412
|
+
:return_type => return_type
|
413
|
+
)
|
414
|
+
|
415
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
416
|
+
if @api_client.config.debugging
|
417
|
+
@api_client.config.logger.debug "API called: ContentInstallerFileIndicesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
418
|
+
end
|
419
|
+
return data, status_code, headers
|
420
|
+
end
|
270
421
|
end
|
271
422
|
end
|
@@ -23,6 +23,7 @@ module PulpDebClient
|
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
26
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
26
27
|
# @option opts [String] :artifact Artifact file representing the physical content
|
27
28
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|
28
29
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
@@ -38,6 +39,7 @@ module PulpDebClient
|
|
38
39
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
39
40
|
# @param [Hash] opts the optional parameters
|
40
41
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
42
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
41
43
|
# @option opts [String] :artifact Artifact file representing the physical content
|
42
44
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|
43
45
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
@@ -75,6 +77,7 @@ module PulpDebClient
|
|
75
77
|
# form parameters
|
76
78
|
form_params = opts[:form_params] || {}
|
77
79
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
80
|
+
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
78
81
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
79
82
|
form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
80
83
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
@@ -120,7 +123,7 @@ module PulpDebClient
|
|
120
123
|
# @option opts [String] :maintainer Filter results where maintainer matches value
|
121
124
|
# @option opts [String] :multi_arch Filter results where multi_arch matches value * `no` - no * `same` - same * `foreign` - foreign * `allowed` - allowed
|
122
125
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
123
|
-
# @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) * `package` - Package * `-package` - Package (descending) * `source` - Source * `-source` - Source (descending) * `version` - Version * `-version` - Version (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `section` - Section * `-section` - Section (descending) * `priority` - Priority * `-priority` - Priority (descending) * `origin` - Origin * `-origin` - Origin (descending) * `tag` - Tag * `-tag` - Tag (descending) * `bugs` - Bugs * `-bugs` - Bugs (descending) * `essential` - Essential * `-essential` - Essential (descending) * `build_essential` - Build essential * `-build_essential` - Build essential (descending) * `installed_size` - Installed size * `-installed_size` - Installed size (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `original_maintainer` - Original maintainer * `-original_maintainer` - Original maintainer (descending) * `description` - Description * `-description` - Description (descending) * `description_md5` - Description md5 * `-description_md5` - Description md5 (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `built_using` - Built using * `-built_using` - Built using (descending) * `auto_built_package` - Auto built package * `-auto_built_package` - Auto built package (descending) * `multi_arch` - Multi arch * `-multi_arch` - Multi arch (descending) * `breaks` - Breaks * `-breaks` - Breaks (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `depends` - Depends * `-depends` - Depends (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `pre_depends` - Pre depends * `-pre_depends` - Pre depends (descending) * `provides` - Provides * `-provides` - Provides (descending) * `replaces` - Replaces * `-replaces` - Replaces (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `custom_fields` - Custom fields * `-custom_fields` - Custom fields (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
126
|
+
# @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) * `package` - Package * `-package` - Package (descending) * `source` - Source * `-source` - Source (descending) * `version` - Version * `-version` - Version (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `section` - Section * `-section` - Section (descending) * `priority` - Priority * `-priority` - Priority (descending) * `origin` - Origin * `-origin` - Origin (descending) * `tag` - Tag * `-tag` - Tag (descending) * `bugs` - Bugs * `-bugs` - Bugs (descending) * `essential` - Essential * `-essential` - Essential (descending) * `build_essential` - Build essential * `-build_essential` - Build essential (descending) * `installed_size` - Installed size * `-installed_size` - Installed size (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `original_maintainer` - Original maintainer * `-original_maintainer` - Original maintainer (descending) * `description` - Description * `-description` - Description (descending) * `description_md5` - Description md5 * `-description_md5` - Description md5 (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `built_using` - Built using * `-built_using` - Built using (descending) * `auto_built_package` - Auto built package * `-auto_built_package` - Auto built package (descending) * `multi_arch` - Multi arch * `-multi_arch` - Multi arch (descending) * `breaks` - Breaks * `-breaks` - Breaks (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `depends` - Depends * `-depends` - Depends (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `pre_depends` - Pre depends * `-pre_depends` - Pre depends (descending) * `provides` - Provides * `-provides` - Provides (descending) * `replaces` - Replaces * `-replaces` - Replaces (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `custom_fields` - Custom fields * `-custom_fields` - Custom fields (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
124
127
|
# @option opts [String] :origin Filter results where origin matches value
|
125
128
|
# @option opts [String] :original_maintainer Filter results where original_maintainer matches value
|
126
129
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
@@ -129,6 +132,7 @@ module PulpDebClient
|
|
129
132
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
130
133
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
131
134
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
135
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
132
136
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
133
137
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
134
138
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -159,7 +163,7 @@ module PulpDebClient
|
|
159
163
|
# @option opts [String] :maintainer Filter results where maintainer matches value
|
160
164
|
# @option opts [String] :multi_arch Filter results where multi_arch matches value * `no` - no * `same` - same * `foreign` - foreign * `allowed` - allowed
|
161
165
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
162
|
-
# @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) * `package` - Package * `-package` - Package (descending) * `source` - Source * `-source` - Source (descending) * `version` - Version * `-version` - Version (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `section` - Section * `-section` - Section (descending) * `priority` - Priority * `-priority` - Priority (descending) * `origin` - Origin * `-origin` - Origin (descending) * `tag` - Tag * `-tag` - Tag (descending) * `bugs` - Bugs * `-bugs` - Bugs (descending) * `essential` - Essential * `-essential` - Essential (descending) * `build_essential` - Build essential * `-build_essential` - Build essential (descending) * `installed_size` - Installed size * `-installed_size` - Installed size (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `original_maintainer` - Original maintainer * `-original_maintainer` - Original maintainer (descending) * `description` - Description * `-description` - Description (descending) * `description_md5` - Description md5 * `-description_md5` - Description md5 (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `built_using` - Built using * `-built_using` - Built using (descending) * `auto_built_package` - Auto built package * `-auto_built_package` - Auto built package (descending) * `multi_arch` - Multi arch * `-multi_arch` - Multi arch (descending) * `breaks` - Breaks * `-breaks` - Breaks (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `depends` - Depends * `-depends` - Depends (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `pre_depends` - Pre depends * `-pre_depends` - Pre depends (descending) * `provides` - Provides * `-provides` - Provides (descending) * `replaces` - Replaces * `-replaces` - Replaces (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `custom_fields` - Custom fields * `-custom_fields` - Custom fields (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
166
|
+
# @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) * `package` - Package * `-package` - Package (descending) * `source` - Source * `-source` - Source (descending) * `version` - Version * `-version` - Version (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `section` - Section * `-section` - Section (descending) * `priority` - Priority * `-priority` - Priority (descending) * `origin` - Origin * `-origin` - Origin (descending) * `tag` - Tag * `-tag` - Tag (descending) * `bugs` - Bugs * `-bugs` - Bugs (descending) * `essential` - Essential * `-essential` - Essential (descending) * `build_essential` - Build essential * `-build_essential` - Build essential (descending) * `installed_size` - Installed size * `-installed_size` - Installed size (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `original_maintainer` - Original maintainer * `-original_maintainer` - Original maintainer (descending) * `description` - Description * `-description` - Description (descending) * `description_md5` - Description md5 * `-description_md5` - Description md5 (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `built_using` - Built using * `-built_using` - Built using (descending) * `auto_built_package` - Auto built package * `-auto_built_package` - Auto built package (descending) * `multi_arch` - Multi arch * `-multi_arch` - Multi arch (descending) * `breaks` - Breaks * `-breaks` - Breaks (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `depends` - Depends * `-depends` - Depends (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `pre_depends` - Pre depends * `-pre_depends` - Pre depends (descending) * `provides` - Provides * `-provides` - Provides (descending) * `replaces` - Replaces * `-replaces` - Replaces (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `custom_fields` - Custom fields * `-custom_fields` - Custom fields (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
163
167
|
# @option opts [String] :origin Filter results where origin matches value
|
164
168
|
# @option opts [String] :original_maintainer Filter results where original_maintainer matches value
|
165
169
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
@@ -168,6 +172,7 @@ module PulpDebClient
|
|
168
172
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
169
173
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
170
174
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
175
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
171
176
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
172
177
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
173
178
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -188,7 +193,7 @@ module PulpDebClient
|
|
188
193
|
if @api_client.config.client_side_validation && opts[:'multi_arch'] && !allowable_values.include?(opts[:'multi_arch'])
|
189
194
|
fail ArgumentError, "invalid value for \"multi_arch\", must be one of #{allowable_values}"
|
190
195
|
end
|
191
|
-
allowable_values = ["-architecture", "-auto_built_package", "-breaks", "-bugs", "-build_essential", "-built_using", "-conflicts", "-custom_fields", "-depends", "-description", "-description_md5", "-enhances", "-essential", "-homepage", "-installed_size", "-maintainer", "-multi_arch", "-origin", "-original_maintainer", "-package", "-pk", "-pre_depends", "-priority", "-provides", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-recommends", "-relative_path", "-replaces", "-section", "-sha256", "-source", "-suggests", "-tag", "-timestamp_of_interest", "-upstream_id", "-version", "architecture", "auto_built_package", "breaks", "bugs", "build_essential", "built_using", "conflicts", "custom_fields", "depends", "description", "description_md5", "enhances", "essential", "homepage", "installed_size", "maintainer", "multi_arch", "origin", "original_maintainer", "package", "pk", "pre_depends", "priority", "provides", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "recommends", "relative_path", "replaces", "section", "sha256", "source", "suggests", "tag", "timestamp_of_interest", "upstream_id", "version"]
|
196
|
+
allowable_values = ["-architecture", "-auto_built_package", "-breaks", "-bugs", "-build_essential", "-built_using", "-conflicts", "-custom_fields", "-depends", "-description", "-description_md5", "-enhances", "-essential", "-homepage", "-installed_size", "-maintainer", "-multi_arch", "-origin", "-original_maintainer", "-package", "-pk", "-pre_depends", "-priority", "-provides", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-recommends", "-relative_path", "-replaces", "-section", "-sha256", "-source", "-suggests", "-tag", "-timestamp_of_interest", "-upstream_id", "-version", "architecture", "auto_built_package", "breaks", "bugs", "build_essential", "built_using", "conflicts", "custom_fields", "depends", "description", "description_md5", "enhances", "essential", "homepage", "installed_size", "maintainer", "multi_arch", "origin", "original_maintainer", "package", "pk", "pre_depends", "priority", "provides", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "recommends", "relative_path", "replaces", "section", "sha256", "source", "suggests", "tag", "timestamp_of_interest", "upstream_id", "version"]
|
192
197
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
193
198
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
194
199
|
end
|
@@ -216,6 +221,7 @@ module PulpDebClient
|
|
216
221
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
217
222
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
218
223
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
224
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
219
225
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
220
226
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
221
227
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -330,5 +336,153 @@ module PulpDebClient
|
|
330
336
|
end
|
331
337
|
return data, status_code, headers
|
332
338
|
end
|
339
|
+
|
340
|
+
# Set a label
|
341
|
+
# Set a single pulp_label on the object to a specific value or null.
|
342
|
+
# @param deb_installer_package_href [String]
|
343
|
+
# @param set_label [SetLabel]
|
344
|
+
# @param [Hash] opts the optional parameters
|
345
|
+
# @return [SetLabelResponse]
|
346
|
+
def set_label(deb_installer_package_href, set_label, opts = {})
|
347
|
+
data, _status_code, _headers = set_label_with_http_info(deb_installer_package_href, set_label, opts)
|
348
|
+
data
|
349
|
+
end
|
350
|
+
|
351
|
+
# Set a label
|
352
|
+
# Set a single pulp_label on the object to a specific value or null.
|
353
|
+
# @param deb_installer_package_href [String]
|
354
|
+
# @param set_label [SetLabel]
|
355
|
+
# @param [Hash] opts the optional parameters
|
356
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
357
|
+
def set_label_with_http_info(deb_installer_package_href, set_label, opts = {})
|
358
|
+
if @api_client.config.debugging
|
359
|
+
@api_client.config.logger.debug 'Calling API: ContentInstallerPackagesApi.set_label ...'
|
360
|
+
end
|
361
|
+
# verify the required parameter 'deb_installer_package_href' is set
|
362
|
+
if @api_client.config.client_side_validation && deb_installer_package_href.nil?
|
363
|
+
fail ArgumentError, "Missing the required parameter 'deb_installer_package_href' when calling ContentInstallerPackagesApi.set_label"
|
364
|
+
end
|
365
|
+
# verify the required parameter 'set_label' is set
|
366
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
367
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentInstallerPackagesApi.set_label"
|
368
|
+
end
|
369
|
+
# resource path
|
370
|
+
local_var_path = '{deb_installer_package_href}set_label/'.sub('{' + 'deb_installer_package_href' + '}', CGI.escape(deb_installer_package_href.to_s).gsub('%2F', '/'))
|
371
|
+
|
372
|
+
# query parameters
|
373
|
+
query_params = opts[:query_params] || {}
|
374
|
+
|
375
|
+
# header parameters
|
376
|
+
header_params = opts[:header_params] || {}
|
377
|
+
# HTTP header 'Accept' (if needed)
|
378
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
379
|
+
# HTTP header 'Content-Type'
|
380
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
381
|
+
if !content_type.nil?
|
382
|
+
header_params['Content-Type'] = content_type
|
383
|
+
end
|
384
|
+
|
385
|
+
# form parameters
|
386
|
+
form_params = opts[:form_params] || {}
|
387
|
+
|
388
|
+
# http body (model)
|
389
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
390
|
+
|
391
|
+
# return_type
|
392
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
393
|
+
|
394
|
+
# auth_names
|
395
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
396
|
+
|
397
|
+
new_options = opts.merge(
|
398
|
+
:operation => :"ContentInstallerPackagesApi.set_label",
|
399
|
+
:header_params => header_params,
|
400
|
+
:query_params => query_params,
|
401
|
+
:form_params => form_params,
|
402
|
+
:body => post_body,
|
403
|
+
:auth_names => auth_names,
|
404
|
+
:return_type => return_type
|
405
|
+
)
|
406
|
+
|
407
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
408
|
+
if @api_client.config.debugging
|
409
|
+
@api_client.config.logger.debug "API called: ContentInstallerPackagesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
410
|
+
end
|
411
|
+
return data, status_code, headers
|
412
|
+
end
|
413
|
+
|
414
|
+
# Unset a label
|
415
|
+
# Unset a single pulp_label on the object.
|
416
|
+
# @param deb_installer_package_href [String]
|
417
|
+
# @param unset_label [UnsetLabel]
|
418
|
+
# @param [Hash] opts the optional parameters
|
419
|
+
# @return [UnsetLabelResponse]
|
420
|
+
def unset_label(deb_installer_package_href, unset_label, opts = {})
|
421
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_installer_package_href, unset_label, opts)
|
422
|
+
data
|
423
|
+
end
|
424
|
+
|
425
|
+
# Unset a label
|
426
|
+
# Unset a single pulp_label on the object.
|
427
|
+
# @param deb_installer_package_href [String]
|
428
|
+
# @param unset_label [UnsetLabel]
|
429
|
+
# @param [Hash] opts the optional parameters
|
430
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
431
|
+
def unset_label_with_http_info(deb_installer_package_href, unset_label, opts = {})
|
432
|
+
if @api_client.config.debugging
|
433
|
+
@api_client.config.logger.debug 'Calling API: ContentInstallerPackagesApi.unset_label ...'
|
434
|
+
end
|
435
|
+
# verify the required parameter 'deb_installer_package_href' is set
|
436
|
+
if @api_client.config.client_side_validation && deb_installer_package_href.nil?
|
437
|
+
fail ArgumentError, "Missing the required parameter 'deb_installer_package_href' when calling ContentInstallerPackagesApi.unset_label"
|
438
|
+
end
|
439
|
+
# verify the required parameter 'unset_label' is set
|
440
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
441
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentInstallerPackagesApi.unset_label"
|
442
|
+
end
|
443
|
+
# resource path
|
444
|
+
local_var_path = '{deb_installer_package_href}unset_label/'.sub('{' + 'deb_installer_package_href' + '}', CGI.escape(deb_installer_package_href.to_s).gsub('%2F', '/'))
|
445
|
+
|
446
|
+
# query parameters
|
447
|
+
query_params = opts[:query_params] || {}
|
448
|
+
|
449
|
+
# header parameters
|
450
|
+
header_params = opts[:header_params] || {}
|
451
|
+
# HTTP header 'Accept' (if needed)
|
452
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
453
|
+
# HTTP header 'Content-Type'
|
454
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
455
|
+
if !content_type.nil?
|
456
|
+
header_params['Content-Type'] = content_type
|
457
|
+
end
|
458
|
+
|
459
|
+
# form parameters
|
460
|
+
form_params = opts[:form_params] || {}
|
461
|
+
|
462
|
+
# http body (model)
|
463
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
464
|
+
|
465
|
+
# return_type
|
466
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
467
|
+
|
468
|
+
# auth_names
|
469
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
470
|
+
|
471
|
+
new_options = opts.merge(
|
472
|
+
:operation => :"ContentInstallerPackagesApi.unset_label",
|
473
|
+
:header_params => header_params,
|
474
|
+
:query_params => query_params,
|
475
|
+
:form_params => form_params,
|
476
|
+
:body => post_body,
|
477
|
+
:auth_names => auth_names,
|
478
|
+
:return_type => return_type
|
479
|
+
)
|
480
|
+
|
481
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
482
|
+
if @api_client.config.debugging
|
483
|
+
@api_client.config.logger.debug "API called: ContentInstallerPackagesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
484
|
+
end
|
485
|
+
return data, status_code, headers
|
486
|
+
end
|
333
487
|
end
|
334
488
|
end
|