Method: PulpcoreClient::DistributionsOpenpgpApi#partial_update_with_http_info
- Defined in:
- lib/pulpcore_client/api/distributions_openpgp_api.rb
#partial_update_with_http_info(open_p_g_p_distribution_href, patched_open_pgp_distribution, opts = {}) ⇒ Array<(AsyncOperationResponse, Integer, Hash)>
Update an open pgp distribution Trigger an asynchronous partial update task
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 |
# File 'lib/pulpcore_client/api/distributions_openpgp_api.rb', line 267 def partial_update_with_http_info(open_p_g_p_distribution_href, patched_open_pgp_distribution, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DistributionsOpenpgpApi.partial_update ...' end # verify the required parameter 'open_p_g_p_distribution_href' is set if @api_client.config.client_side_validation && open_p_g_p_distribution_href.nil? fail ArgumentError, "Missing the required parameter 'open_p_g_p_distribution_href' when calling DistributionsOpenpgpApi.partial_update" end # verify the required parameter 'patched_open_pgp_distribution' is set if @api_client.config.client_side_validation && patched_open_pgp_distribution.nil? fail ArgumentError, "Missing the required parameter 'patched_open_pgp_distribution' when calling DistributionsOpenpgpApi.partial_update" end # resource path local_var_path = '{open_p_g_p_distribution_href}'.sub('{' + 'open_p_g_p_distribution_href' + '}', CGI.escape(open_p_g_p_distribution_href.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(patched_open_pgp_distribution) # return_type return_type = opts[:debug_return_type] || 'AsyncOperationResponse' # auth_names auth_names = opts[:debug_auth_names] || ['basicAuth'] = opts.merge( :operation => :"DistributionsOpenpgpApi.partial_update", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DistributionsOpenpgpApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |