clients/ruby/generated/lib/swaggy_jenkins/api/blue_ocean_api.rb
# Delete queue item from an organization pipeline queue
# @param organization [String] Name of the organization
# @param pipeline [String] Name of the pipeline
# @param queue [String] Name of the queue item
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Delete queue item from an organization pipeline queue
Delete queue item from an organization pipeline queue
def delete_pipeline_queue_item_with_http_info(organization, pipeline, queue, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: BlueOceanApi.delete_pipeline_queue_item ...'
      end
      if @api_client.config.client_side_validation && organization.nil?
        fail ArgumentError, "Missing the required parameter 'organization' when calling BlueOceanApi.delete_pipeline_queue_item"
      end
      if @api_client.config.client_side_validation && pipeline.nil?
        fail ArgumentError, "Missing the required parameter 'pipeline' when calling BlueOceanApi.delete_pipeline_queue_item"
      end
      if @api_client.config.client_side_validation && queue.nil?
        fail ArgumentError, "Missing the required parameter 'queue' when calling BlueOceanApi.delete_pipeline_queue_item"
      end
      local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/queue/{queue}'.sub('{' + 'organization' + '}', CGI.escape(organization.to_s)).sub('{' + 'pipeline' + '}', CGI.escape(pipeline.to_s)).sub('{' + 'queue' + '}', CGI.escape(queue.to_s))
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type]
      auth_names = opts[:debug_auth_names] || ['jenkins_auth']
      new_options = opts.merge(
        :operation => :"BlueOceanApi.delete_pipeline_queue_item",
        :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(:DELETE, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: BlueOceanApi#delete_pipeline_queue_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def delete_pipeline_queue_item_with_http_info ( organization , pipeline , queue , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: BlueOceanApi.delete_pipeline_queue_item ...' end if @api_client . config . client_side_validation && organization . nil? fail ArgumentError , "Missing the required parameter 'organization' when calling BlueOceanApi.delete_pipeline_queue_item" end if @api_client . config . client_side_validation && pipeline . nil? fail ArgumentError , "Missing the required parameter 'pipeline' when calling BlueOceanApi.delete_pipeline_queue_item" end if @api_client . config . client_side_validation && queue . nil? fail ArgumentError , "Missing the required parameter 'queue' when calling BlueOceanApi.delete_pipeline_queue_item" end local_var_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/queue/{queue}' . sub ( '{' + 'organization' + '}' , CGI . escape ( organization . to_s ) ) . sub ( '{' + 'pipeline' + '}' , CGI . escape ( pipeline . to_s ) ) . sub ( '{' + 'queue' + '}' , CGI . escape ( queue . to_s ) ) query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] auth_names = opts [ :debug_auth_names ] || [ 'jenkins_auth' ] new_options = opts . merge ( :operation => :" BlueOceanApi.delete_pipeline_queue_item " , :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 ( :DELETE , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: BlueOceanApi#delete_pipeline_queue_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Delete queue item from an organization pipeline queue
Delete queue item from an organization pipeline queue
# verify the required parameter 'organization' is set # verify the required parameter 'pipeline' is set # verify the required parameter 'queue' is set # resource path # query parameters # header parameters # form parameters # http body (model) # return_type # auth_names
nil, response status code and response headers
nil response status code and response headers
Array<(nil, Integer, Hash)>
organization
Name of the organization
Name of the organization
pipeline
Name of the pipeline
Name of the pipeline
queue
Name of the queue item
Name of the queue item
opts
opts the optional parameters
opts the optional parameters