class SwaggerClient::ProjectControllerApi
Attributes
Public Class Methods
# File lib/swagger_client/api/project_controller_api.rb, line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
Get all pipelines for project @param id id @param [Hash] opts the optional parameters @option opts [Integer] :limit limit (default to 5) @option opts [String] :statuses statuses @return [Array<Object>]
# File lib/swagger_client/api/project_controller_api.rb, line 28 def all_pipelines_for_project_using_get(id, opts = {}) data, _status_code, _headers = all_pipelines_for_project_using_get_with_http_info(id, opts) data end
Get all pipelines for project @param id id @param [Hash] opts the optional parameters @option opts [Integer] :limit limit @option opts [String] :statuses statuses @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
# File lib/swagger_client/api/project_controller_api.rb, line 39 def all_pipelines_for_project_using_get_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectControllerApi.all_pipelines_for_project_using_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling ProjectControllerApi.all_pipelines_for_project_using_get" end # resource path local_var_path = '/projects/{id}/pipelines'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'statuses'] = opts[:'statuses'] if !opts[:'statuses'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<Object>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectControllerApi#all_pipelines_for_project_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get all projects @param [Hash] opts the optional parameters @return [Array<Object>]
# File lib/swagger_client/api/project_controller_api.rb, line 83 def all_using_get3(opts = {}) data, _status_code, _headers = all_using_get3_with_http_info(opts) data end
Get all projects @param [Hash] opts the optional parameters @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
# File lib/swagger_client/api/project_controller_api.rb, line 91 def all_using_get3_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectControllerApi.all_using_get3 ...' end # resource path local_var_path = '/projects' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params['Authorization'] ='Bearer ya29.GlxVB5lA5AJlwIUipnEz7gX9dNGyh4ebnROxQXl1jalz9TDvBxSQHuBVYis-LY7UkLm5futbUKNTLtyKVTR3fCyeUbYZFByEygJ7n2L2x73jTN40tgfdJ6HShFjCvg' # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<Object>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectControllerApi#all_using_get3\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get a project's clusters @param id id @param [Hash] opts the optional parameters @option opts [String] :x_rate_limit_app X-RateLimit-App @return [Array<Object>]
# File lib/swagger_client/api/project_controller_api.rb, line 132 def get_clusters_using_get3(id, opts = {}) data, _status_code, _headers = get_clusters_using_get3_with_http_info(id, opts) data end
Get a project's clusters @param id id @param [Hash] opts the optional parameters @option opts [String] :x_rate_limit_app X-RateLimit-App @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
# File lib/swagger_client/api/project_controller_api.rb, line 142 def get_clusters_using_get3_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectControllerApi.get_clusters_using_get3 ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling ProjectControllerApi.get_clusters_using_get3" end # resource path local_var_path = '/projects/{id}/clusters'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<Object>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectControllerApi#get_clusters_using_get3\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get a project @param id id @param [Hash] opts the optional parameters @return [Hash<String, Object>]
# File lib/swagger_client/api/project_controller_api.rb, line 186 def get_using_get1(id, opts = {}) data, _status_code, _headers = get_using_get1_with_http_info(id, opts) data end
Get a project @param id id @param [Hash] opts the optional parameters @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
# File lib/swagger_client/api/project_controller_api.rb, line 195 def get_using_get1_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectControllerApi.get_using_get1 ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling ProjectControllerApi.get_using_get1" end # resource path local_var_path = '/projects/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Hash<String, Object>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectControllerApi#get_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end