class Apcera::StagingPipelinesApi
Attributes
Public Class Methods
# File lib/apcera/api/staging_pipelines_api.rb, line 7 def initialize(api_client = nil) @api_client = api_client || Configuration.api_client end
Public Instance Methods
Lists all staging pipelines Lists all staging pipelines. To return a single staging pipeline specify its fully qualified name in the `fqn` query parameter. @param [Hash] opts the optional parameters @option opts [String] :fqn The fully qualified name the staging pipeline to retrieve. @option opts [String] :authorization @return [Array<StagingPipeline>]
# File lib/apcera/api/staging_pipelines_api.rb, line 17 def stagingpipelines_get(opts = {}) if Configuration.debugging Configuration.logger.debug "Calling API: StagingPipelinesApi#stagingpipelines_get ..." end # resource path path = "/stagingpipelines".sub('{format}','json') # query parameters query_params = {} query_params[:'fqn'] = opts[:'fqn'] if opts[:'fqn'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = [] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization'] # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['authorization'] result = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<StagingPipeline>') if Configuration.debugging Configuration.logger.debug "API called: StagingPipelinesApi#stagingpipelines_get. Result: #{result.inspect}" end return result end
Creates a new staging pipeline. Creates a new staging pipeline. @param [Hash] opts the optional parameters @option opts [StagingPipeline] :staging_pipeline Staging pipeline object to create. @option opts [String] :authorization @return [nil]
# File lib/apcera/api/staging_pipelines_api.rb, line 70 def stagingpipelines_post(opts = {}) if Configuration.debugging Configuration.logger.debug "Calling API: StagingPipelinesApi#stagingpipelines_post ..." end # resource path path = "/stagingpipelines".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = [] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization'] # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'staging_pipeline']) auth_names = ['authorization'] @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if Configuration.debugging Configuration.logger.debug "API called: StagingPipelinesApi#stagingpipelines_post" end return nil end
Deletes the specified staging pipeline.
@param uuid UUID of the staging pipeline. @param [Hash] opts the optional parameters @option opts [String] :authorization @return [nil]
# File lib/apcera/api/staging_pipelines_api.rb, line 229 def stagingpipelines_uuid_delete(uuid, opts = {}) if Configuration.debugging Configuration.logger.debug "Calling API: StagingPipelinesApi#stagingpipelines_uuid_delete ..." end # verify the required parameter 'uuid' is set fail "Missing the required parameter 'uuid' when calling stagingpipelines_uuid_delete" if uuid.nil? # resource path path = "/stagingpipelines/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = [] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization'] # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['authorization'] @api_client.call_api(:DELETE, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if Configuration.debugging Configuration.logger.debug "API called: StagingPipelinesApi#stagingpipelines_uuid_delete" end return nil end
Shows the specified staging pipeline.
@param uuid UUID of the staging pipeline. @param [Hash] opts the optional parameters @option opts [String] :authorization @return [nil]
# File lib/apcera/api/staging_pipelines_api.rb, line 121 def stagingpipelines_uuid_get(uuid, opts = {}) if Configuration.debugging Configuration.logger.debug "Calling API: StagingPipelinesApi#stagingpipelines_uuid_get ..." end # verify the required parameter 'uuid' is set fail "Missing the required parameter 'uuid' when calling stagingpipelines_uuid_get" if uuid.nil? # resource path path = "/stagingpipelines/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = [] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization'] # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['authorization'] @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if Configuration.debugging Configuration.logger.debug "API called: StagingPipelinesApi#stagingpipelines_uuid_get" end return nil end
Updates the specified staging pipeline.
@param uuid UUID of the staging pipeline. @param [Hash] opts the optional parameters @option opts [String] :authorization @return [nil]
# File lib/apcera/api/staging_pipelines_api.rb, line 175 def stagingpipelines_uuid_put(uuid, opts = {}) if Configuration.debugging Configuration.logger.debug "Calling API: StagingPipelinesApi#stagingpipelines_uuid_put ..." end # verify the required parameter 'uuid' is set fail "Missing the required parameter 'uuid' when calling stagingpipelines_uuid_put" if uuid.nil? # resource path path = "/stagingpipelines/{uuid}".sub('{format}','json').sub('{' + 'uuid' + '}', uuid.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = [] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) header_params[:'authorization'] = opts[:'authorization'] if opts[:'authorization'] # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['authorization'] @api_client.call_api(:PUT, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if Configuration.debugging Configuration.logger.debug "API called: StagingPipelinesApi#stagingpipelines_uuid_put" end return nil end