Class: SwaggerClient::ConcourseControllerApi
- Inherits:
-
Object
- Object
- SwaggerClient::ConcourseControllerApi
- Defined in:
- lib/swagger_client/api/concourse_controller_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#initialize(api_client = ApiClient.default) ⇒ ConcourseControllerApi
constructor
A new instance of ConcourseControllerApi.
-
#jobs_using_get(build_master, team, pipeline, opts = {}) ⇒ Array<Object>
Retrieve the list of job names for a given pipeline available to triggers.
-
#jobs_using_get_with_http_info(build_master, team, pipeline, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>
Retrieve the list of job names for a given pipeline available to triggers.
-
#pipelines_using_get(build_master, team, opts = {}) ⇒ Array<Object>
Retrieve the list of pipeline names for a given team available to triggers.
-
#pipelines_using_get_with_http_info(build_master, team, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>
Retrieve the list of pipeline names for a given team available to triggers.
-
#resources_using_get(build_master, team, pipeline, opts = {}) ⇒ Array<Object>
Retrieve the list of resource names for a given pipeline available to the Concourse stage.
-
#resources_using_get_with_http_info(build_master, team, pipeline, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>
Retrieve the list of resource names for a given pipeline available to the Concourse stage.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ConcourseControllerApi
Returns a new instance of ConcourseControllerApi.
19 20 21 |
# File 'lib/swagger_client/api/concourse_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/concourse_controller_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#jobs_using_get(build_master, team, pipeline, opts = {}) ⇒ Array<Object>
Retrieve the list of job names for a given pipeline available to triggers
28 29 30 31 |
# File 'lib/swagger_client/api/concourse_controller_api.rb', line 28 def jobs_using_get(build_master, team, pipeline, opts = {}) data, _status_code, _headers = jobs_using_get_with_http_info(build_master, team, pipeline, opts) data end |
#jobs_using_get_with_http_info(build_master, team, pipeline, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>
Retrieve the list of job names for a given pipeline available to triggers
39 40 41 42 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 83 84 85 |
# File 'lib/swagger_client/api/concourse_controller_api.rb', line 39 def jobs_using_get_with_http_info(build_master, team, pipeline, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ConcourseControllerApi.jobs_using_get ...' end # verify the required parameter 'build_master' is set if @api_client.config.client_side_validation && build_master.nil? fail ArgumentError, "Missing the required parameter 'build_master' when calling ConcourseControllerApi.jobs_using_get" end # verify the required parameter 'team' is set if @api_client.config.client_side_validation && team.nil? fail ArgumentError, "Missing the required parameter 'team' when calling ConcourseControllerApi.jobs_using_get" end # verify the required parameter 'pipeline' is set if @api_client.config.client_side_validation && pipeline.nil? fail ArgumentError, "Missing the required parameter 'pipeline' when calling ConcourseControllerApi.jobs_using_get" end # resource path local_var_path = '/concourse/{buildMaster}/teams/{team}/pipelines/{pipeline}/jobs'.sub('{' + 'buildMaster' + '}', build_master.to_s).sub('{' + 'team' + '}', team.to_s).sub('{' + 'pipeline' + '}', pipeline.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 => 'Array<Object>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ConcourseControllerApi#jobs_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#pipelines_using_get(build_master, team, opts = {}) ⇒ Array<Object>
Retrieve the list of pipeline names for a given team available to triggers
91 92 93 94 |
# File 'lib/swagger_client/api/concourse_controller_api.rb', line 91 def pipelines_using_get(build_master, team, opts = {}) data, _status_code, _headers = pipelines_using_get_with_http_info(build_master, team, opts) data end |
#pipelines_using_get_with_http_info(build_master, team, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>
Retrieve the list of pipeline names for a given team available to triggers
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 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 |
# File 'lib/swagger_client/api/concourse_controller_api.rb', line 101 def pipelines_using_get_with_http_info(build_master, team, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ConcourseControllerApi.pipelines_using_get ...' end # verify the required parameter 'build_master' is set if @api_client.config.client_side_validation && build_master.nil? fail ArgumentError, "Missing the required parameter 'build_master' when calling ConcourseControllerApi.pipelines_using_get" end # verify the required parameter 'team' is set if @api_client.config.client_side_validation && team.nil? fail ArgumentError, "Missing the required parameter 'team' when calling ConcourseControllerApi.pipelines_using_get" end # resource path local_var_path = '/concourse/{buildMaster}/teams/{team}/pipelines'.sub('{' + 'buildMaster' + '}', build_master.to_s).sub('{' + 'team' + '}', team.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 => 'Array<Object>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ConcourseControllerApi#pipelines_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#resources_using_get(build_master, team, pipeline, opts = {}) ⇒ Array<Object>
Retrieve the list of resource names for a given pipeline available to the Concourse stage
150 151 152 153 |
# File 'lib/swagger_client/api/concourse_controller_api.rb', line 150 def resources_using_get(build_master, team, pipeline, opts = {}) data, _status_code, _headers = resources_using_get_with_http_info(build_master, team, pipeline, opts) data end |
#resources_using_get_with_http_info(build_master, team, pipeline, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>
Retrieve the list of resource names for a given pipeline available to the Concourse stage
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
# File 'lib/swagger_client/api/concourse_controller_api.rb', line 161 def resources_using_get_with_http_info(build_master, team, pipeline, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ConcourseControllerApi.resources_using_get ...' end # verify the required parameter 'build_master' is set if @api_client.config.client_side_validation && build_master.nil? fail ArgumentError, "Missing the required parameter 'build_master' when calling ConcourseControllerApi.resources_using_get" end # verify the required parameter 'team' is set if @api_client.config.client_side_validation && team.nil? fail ArgumentError, "Missing the required parameter 'team' when calling ConcourseControllerApi.resources_using_get" end # verify the required parameter 'pipeline' is set if @api_client.config.client_side_validation && pipeline.nil? fail ArgumentError, "Missing the required parameter 'pipeline' when calling ConcourseControllerApi.resources_using_get" end # resource path local_var_path = '/concourse/{buildMaster}/teams/{team}/pipelines/{pipeline}/resources'.sub('{' + 'buildMaster' + '}', build_master.to_s).sub('{' + 'team' + '}', team.to_s).sub('{' + 'pipeline' + '}', pipeline.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 => 'Array<Object>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ConcourseControllerApi#resources_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |