Class: SwaggerClient::ExecutionsControllerApi
- Inherits:
-
Object
- Object
- SwaggerClient::ExecutionsControllerApi
- Defined in:
- lib/swagger_client/api/executions_controller_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_latest_executions_by_config_ids_using_get(opts = {}) ⇒ Array<Object>
Retrieves an ad-hoc collection of executions based on a number of user-supplied parameters.
-
#get_latest_executions_by_config_ids_using_get_with_http_info(opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>
Retrieves an ad-hoc collection of executions based on a number of user-supplied parameters.
-
#initialize(api_client = ApiClient.default) ⇒ ExecutionsControllerApi
constructor
A new instance of ExecutionsControllerApi.
-
#search_for_pipeline_executions_by_trigger_using_get(application, opts = {}) ⇒ Array<Object>
Search for pipeline executions using a combination of criteria.
-
#search_for_pipeline_executions_by_trigger_using_get_with_http_info(application, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>
Search for pipeline executions using a combination of criteria.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ExecutionsControllerApi
Returns a new instance of ExecutionsControllerApi.
19 20 21 |
# File 'lib/swagger_client/api/executions_controller_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/swagger_client/api/executions_controller_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#get_latest_executions_by_config_ids_using_get(opts = {}) ⇒ Array<Object>
Retrieves an ad-hoc collection of executions based on a number of user-supplied parameters. Either executionIds or pipelineConfigIds must be supplied in order to return any results. If both are supplied, an exception will be thrown.
30 31 32 33 |
# File 'lib/swagger_client/api/executions_controller_api.rb', line 30 def get_latest_executions_by_config_ids_using_get(opts = {}) data, _status_code, _headers = get_latest_executions_by_config_ids_using_get_with_http_info(opts) data end |
#get_latest_executions_by_config_ids_using_get_with_http_info(opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>
Retrieves an ad-hoc collection of executions based on a number of user-supplied parameters. Either executionIds or pipelineConfigIds must be supplied in order to return any results. If both are supplied, an exception will be thrown.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/swagger_client/api/executions_controller_api.rb', line 43 def get_latest_executions_by_config_ids_using_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExecutionsControllerApi.get_latest_executions_by_config_ids_using_get ...' end # resource path local_var_path = '/executions' # query parameters query_params = {} query_params[:'pipelineConfigIds'] = opts[:'pipeline_config_ids'] if !opts[:'pipeline_config_ids'].nil? query_params[:'executionIds'] = opts[:'execution_ids'] if !opts[:'execution_ids'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'statuses'] = opts[:'statuses'] if !opts[:'statuses'].nil? query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].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: ExecutionsControllerApi#get_latest_executions_by_config_ids_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#search_for_pipeline_executions_by_trigger_using_get(application, opts = {}) ⇒ Array<Object>
Search for pipeline executions using a combination of criteria. The returned list is sorted by buildTime (trigger time) in reverse order so that newer executions are first in the list.
98 99 100 101 |
# File 'lib/swagger_client/api/executions_controller_api.rb', line 98 def search_for_pipeline_executions_by_trigger_using_get(application, opts = {}) data, _status_code, _headers = search_for_pipeline_executions_by_trigger_using_get_with_http_info(application, opts) data end |
#search_for_pipeline_executions_by_trigger_using_get_with_http_info(application, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>
Search for pipeline executions using a combination of criteria. The returned list is sorted by buildTime (trigger time) in reverse order so that newer executions are first in the list.
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/swagger_client/api/executions_controller_api.rb', line 118 def search_for_pipeline_executions_by_trigger_using_get_with_http_info(application, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ExecutionsControllerApi.search_for_pipeline_executions_by_trigger_using_get ...' end # verify the required parameter 'application' is set if @api_client.config.client_side_validation && application.nil? fail ArgumentError, "Missing the required parameter 'application' when calling ExecutionsControllerApi.search_for_pipeline_executions_by_trigger_using_get" end # resource path local_var_path = '/applications/{application}/executions/search'.sub('{' + 'application' + '}', application.to_s) # query parameters query_params = {} query_params[:'triggerTypes'] = opts[:'trigger_types'] if !opts[:'trigger_types'].nil? query_params[:'pipelineName'] = opts[:'pipeline_name'] if !opts[:'pipeline_name'].nil? query_params[:'eventId'] = opts[:'event_id'] if !opts[:'event_id'].nil? query_params[:'trigger'] = opts[:'trigger'] if !opts[:'trigger'].nil? query_params[:'triggerTimeStartBoundary'] = opts[:'trigger_time_start_boundary'] if !opts[:'trigger_time_start_boundary'].nil? query_params[:'triggerTimeEndBoundary'] = opts[:'trigger_time_end_boundary'] if !opts[:'trigger_time_end_boundary'].nil? query_params[:'statuses'] = opts[:'statuses'] if !opts[:'statuses'].nil? query_params[:'startIndex'] = opts[:'start_index'] if !opts[:'start_index'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? query_params[:'reverse'] = opts[:'reverse'] if !opts[:'reverse'].nil? query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].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: ExecutionsControllerApi#search_for_pipeline_executions_by_trigger_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |