Class: SwaggerClient::ApplicationControllerApi

Inherits:
Object
  • Object
show all
Defined in:
lib/swagger_client/api/application_controller_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ ApplicationControllerApi

Returns a new instance of ApplicationControllerApi.



19
20
21
# File 'lib/swagger_client/api/application_controller_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/swagger_client/api/application_controller_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#cancel_pipeline_using_put(id, opts = {}) ⇒ Hash<String, Object>

Cancel pipeline

Parameters:

  • id

    id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :reason (String)

    reason

Returns:

  • (Hash<String, Object>)


27
28
29
30
# File 'lib/swagger_client/api/application_controller_api.rb', line 27

def cancel_pipeline_using_put(id, opts = {})
  data, _status_code, _headers = cancel_pipeline_using_put_with_http_info(id, opts)
  data
end

#cancel_pipeline_using_put_with_http_info(id, opts = {}) ⇒ Array<(Hash<String, Object>, Fixnum, Hash)>

Cancel pipeline

Parameters:

  • id

    id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :reason (String)

    reason

Returns:

  • (Array<(Hash<String, Object>, Fixnum, Hash)>)

    Hash<String, Object> data, response status code and response headers



37
38
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
# File 'lib/swagger_client/api/application_controller_api.rb', line 37

def cancel_pipeline_using_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.cancel_pipeline_using_put ...'
  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 ApplicationControllerApi.cancel_pipeline_using_put"
  end
  # resource path
  local_var_path = '/applications/{application}/pipelines/{id}/cancel'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}
  query_params[:'reason'] = opts[:'reason'] if !opts[:'reason'].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(:PUT, 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: ApplicationControllerApi#cancel_pipeline_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#cancel_task_using_put(id, opts = {}) ⇒ Hash<String, Object>

Cancel task

Parameters:

  • id

    id

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Hash<String, Object>)


81
82
83
84
# File 'lib/swagger_client/api/application_controller_api.rb', line 81

def cancel_task_using_put(id, opts = {})
  data, _status_code, _headers = cancel_task_using_put_with_http_info(id, opts)
  data
end

#cancel_task_using_put_with_http_info(id, opts = {}) ⇒ Array<(Hash<String, Object>, Fixnum, Hash)>

Cancel task

Parameters:

  • id

    id

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Hash<String, Object>, Fixnum, Hash)>)

    Hash<String, Object> data, response status code and response headers



90
91
92
93
94
95
96
97
98
99
100
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
# File 'lib/swagger_client/api/application_controller_api.rb', line 90

def cancel_task_using_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.cancel_task_using_put ...'
  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 ApplicationControllerApi.cancel_task_using_put"
  end
  # resource path
  local_var_path = '/applications/{application}/tasks/{id}/cancel'.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(:PUT, 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: ApplicationControllerApi#cancel_task_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_all_applications_using_get(opts = {}) ⇒ Array<Object>

Retrieve a list of applications

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :account (String)

    filters results to only include applications deployed in the specified account

  • :owner (String)

    filteres results to only include applications owned by the specified email

Returns:

  • (Array<Object>)


134
135
136
137
# File 'lib/swagger_client/api/application_controller_api.rb', line 134

def get_all_applications_using_get(opts = {})
  data, _status_code, _headers = get_all_applications_using_get_with_http_info(opts)
  data
end

#get_all_applications_using_get_with_http_info(opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>

Retrieve a list of applications

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :account (String)

    filters results to only include applications deployed in the specified account

  • :owner (String)

    filteres results to only include applications owned by the specified email

Returns:

  • (Array<(Array<Object>, Fixnum, Hash)>)

    Array<Object> data, response status code and response headers



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/swagger_client/api/application_controller_api.rb', line 144

def get_all_applications_using_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_all_applications_using_get ...'
  end
  # resource path
  local_var_path = '/applications'

  # query parameters
  query_params = {}
  query_params[:'account'] = opts[:'account'] if !opts[:'account'].nil?
  query_params[:'owner'] = opts[:'owner'] if !opts[:'owner'].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: ApplicationControllerApi#get_all_applications_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_application_history_using_get(application, opts = {}) ⇒ Array<Object>

Retrieve a list of an application’s configuration revision history

Parameters:

  • application

    application

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    limit (default to 20)

Returns:

  • (Array<Object>)


186
187
188
189
# File 'lib/swagger_client/api/application_controller_api.rb', line 186

def get_application_history_using_get(application, opts = {})
  data, _status_code, _headers = get_application_history_using_get_with_http_info(application, opts)
  data
end

#get_application_history_using_get_with_http_info(application, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>

Retrieve a list of an application&#39;s configuration revision history

Parameters:

  • application

    application

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    limit

Returns:

  • (Array<(Array<Object>, Fixnum, Hash)>)

    Array<Object> data, response status code and response headers



196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# File 'lib/swagger_client/api/application_controller_api.rb', line 196

def get_application_history_using_get_with_http_info(application, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_application_history_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 ApplicationControllerApi.get_application_history_using_get"
  end
  # resource path
  local_var_path = '/applications/{application}/history'.sub('{' + 'application' + '}', application.to_s)

  # query parameters
  query_params = {}
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].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: ApplicationControllerApi#get_application_history_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_application_using_get(application, opts = {}) ⇒ Hash<String, Object>

Retrieve an application’s details

Parameters:

  • application

    application

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (BOOLEAN)

    expand (default to true)

Returns:

  • (Hash<String, Object>)


241
242
243
244
# File 'lib/swagger_client/api/application_controller_api.rb', line 241

def get_application_using_get(application, opts = {})
  data, _status_code, _headers = get_application_using_get_with_http_info(application, opts)
  data
end

#get_application_using_get_with_http_info(application, opts = {}) ⇒ Array<(Hash<String, Object>, Fixnum, Hash)>

Retrieve an application&#39;s details

Parameters:

  • application

    application

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :expand (BOOLEAN)

    expand

Returns:

  • (Array<(Hash<String, Object>, Fixnum, Hash)>)

    Hash<String, Object> data, response status code and response headers



251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
# File 'lib/swagger_client/api/application_controller_api.rb', line 251

def get_application_using_get_with_http_info(application, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_application_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 ApplicationControllerApi.get_application_using_get"
  end
  # resource path
  local_var_path = '/applications/{application}'.sub('{' + 'application' + '}', application.to_s)

  # query parameters
  query_params = {}
  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 => 'Hash<String, Object>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ApplicationControllerApi#get_application_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_pipeline_config_using_get(application, pipeline_name, opts = {}) ⇒ Hash<String, Object>

Retrieve a pipeline configuration

Parameters:

  • application

    application

  • pipeline_name

    pipelineName

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Hash<String, Object>)


296
297
298
299
# File 'lib/swagger_client/api/application_controller_api.rb', line 296

def get_pipeline_config_using_get(application, pipeline_name, opts = {})
  data, _status_code, _headers = get_pipeline_config_using_get_with_http_info(application, pipeline_name, opts)
  data
end

#get_pipeline_config_using_get_with_http_info(application, pipeline_name, opts = {}) ⇒ Array<(Hash<String, Object>, Fixnum, Hash)>

Retrieve a pipeline configuration

Parameters:

  • application

    application

  • pipeline_name

    pipelineName

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Hash<String, Object>, Fixnum, Hash)>)

    Hash<String, Object> data, response status code and response headers



306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
# File 'lib/swagger_client/api/application_controller_api.rb', line 306

def get_pipeline_config_using_get_with_http_info(application, pipeline_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_pipeline_config_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 ApplicationControllerApi.get_pipeline_config_using_get"
  end
  # verify the required parameter 'pipeline_name' is set
  if @api_client.config.client_side_validation && pipeline_name.nil?
    fail ArgumentError, "Missing the required parameter 'pipeline_name' when calling ApplicationControllerApi.get_pipeline_config_using_get"
  end
  # resource path
  local_var_path = '/applications/{application}/pipelineConfigs/{pipelineName}'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'pipelineName' + '}', pipeline_name.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: ApplicationControllerApi#get_pipeline_config_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_pipeline_configs_for_application_using_get(application, opts = {}) ⇒ Array<Object>

Retrieve a list of an application’s pipeline configurations

Parameters:

  • application

    application

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<Object>)


353
354
355
356
# File 'lib/swagger_client/api/application_controller_api.rb', line 353

def get_pipeline_configs_for_application_using_get(application, opts = {})
  data, _status_code, _headers = get_pipeline_configs_for_application_using_get_with_http_info(application, opts)
  data
end

#get_pipeline_configs_for_application_using_get_with_http_info(application, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>

Retrieve a list of an application&#39;s pipeline configurations

Parameters:

  • application

    application

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<Object>, Fixnum, Hash)>)

    Array<Object> data, response status code and response headers



362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
# File 'lib/swagger_client/api/application_controller_api.rb', line 362

def get_pipeline_configs_for_application_using_get_with_http_info(application, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_pipeline_configs_for_application_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 ApplicationControllerApi.get_pipeline_configs_for_application_using_get"
  end
  # resource path
  local_var_path = '/applications/{application}/pipelineConfigs'.sub('{' + 'application' + '}', application.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: ApplicationControllerApi#get_pipeline_configs_for_application_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_pipelines_using_get(application, opts = {}) ⇒ Array<Object>

Retrieve a list of an application’s pipeline executions

Parameters:

  • application

    application

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    limit

  • :statuses (String)

    statuses

  • :expand (BOOLEAN)

    expand

Returns:

  • (Array<Object>)


408
409
410
411
# File 'lib/swagger_client/api/application_controller_api.rb', line 408

def get_pipelines_using_get(application, opts = {})
  data, _status_code, _headers = get_pipelines_using_get_with_http_info(application, opts)
  data
end

#get_pipelines_using_get_with_http_info(application, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>

Retrieve a list of an application&#39;s pipeline executions

Parameters:

  • application

    application

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :limit (Integer)

    limit

  • :statuses (String)

    statuses

  • :expand (BOOLEAN)

    expand

Returns:

  • (Array<(Array<Object>, Fixnum, Hash)>)

    Array<Object> data, response status code and response headers



420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
# File 'lib/swagger_client/api/application_controller_api.rb', line 420

def get_pipelines_using_get_with_http_info(application, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_pipelines_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 ApplicationControllerApi.get_pipelines_using_get"
  end
  # resource path
  local_var_path = '/applications/{application}/pipelines'.sub('{' + 'application' + '}', application.to_s)

  # query parameters
  query_params = {}
  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: ApplicationControllerApi#get_pipelines_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_strategy_config_using_get(application, strategy_name, opts = {}) ⇒ Hash<String, Object>

Retrieve a pipeline strategy configuration

Parameters:

  • application

    application

  • strategy_name

    strategyName

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Hash<String, Object>)


467
468
469
470
# File 'lib/swagger_client/api/application_controller_api.rb', line 467

def get_strategy_config_using_get(application, strategy_name, opts = {})
  data, _status_code, _headers = get_strategy_config_using_get_with_http_info(application, strategy_name, opts)
  data
end

#get_strategy_config_using_get_with_http_info(application, strategy_name, opts = {}) ⇒ Array<(Hash<String, Object>, Fixnum, Hash)>

Retrieve a pipeline strategy configuration

Parameters:

  • application

    application

  • strategy_name

    strategyName

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Hash<String, Object>, Fixnum, Hash)>)

    Hash<String, Object> data, response status code and response headers



477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
# File 'lib/swagger_client/api/application_controller_api.rb', line 477

def get_strategy_config_using_get_with_http_info(application, strategy_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_strategy_config_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 ApplicationControllerApi.get_strategy_config_using_get"
  end
  # verify the required parameter 'strategy_name' is set
  if @api_client.config.client_side_validation && strategy_name.nil?
    fail ArgumentError, "Missing the required parameter 'strategy_name' when calling ApplicationControllerApi.get_strategy_config_using_get"
  end
  # resource path
  local_var_path = '/applications/{application}/strategyConfigs/{strategyName}'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'strategyName' + '}', strategy_name.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: ApplicationControllerApi#get_strategy_config_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_strategy_configs_for_application_using_get(application, opts = {}) ⇒ Array<Object>

Retrieve a list of an application’s pipeline strategy configurations

Parameters:

  • application

    application

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<Object>)


524
525
526
527
# File 'lib/swagger_client/api/application_controller_api.rb', line 524

def get_strategy_configs_for_application_using_get(application, opts = {})
  data, _status_code, _headers = get_strategy_configs_for_application_using_get_with_http_info(application, opts)
  data
end

#get_strategy_configs_for_application_using_get_with_http_info(application, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>

Retrieve a list of an application&#39;s pipeline strategy configurations

Parameters:

  • application

    application

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<Object>, Fixnum, Hash)>)

    Array<Object> data, response status code and response headers



533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
# File 'lib/swagger_client/api/application_controller_api.rb', line 533

def get_strategy_configs_for_application_using_get_with_http_info(application, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_strategy_configs_for_application_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 ApplicationControllerApi.get_strategy_configs_for_application_using_get"
  end
  # resource path
  local_var_path = '/applications/{application}/strategyConfigs'.sub('{' + 'application' + '}', application.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: ApplicationControllerApi#get_strategy_configs_for_application_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_task_details_using_get(id, task_details_id, opts = {}) ⇒ Hash<String, Object>

Get task details

Parameters:

  • id

    id

  • task_details_id

    taskDetailsId

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :x_rate_limit_app (String)

    X-RateLimit-App

Returns:

  • (Hash<String, Object>)


578
579
580
581
# File 'lib/swagger_client/api/application_controller_api.rb', line 578

def get_task_details_using_get(id, task_details_id, opts = {})
  data, _status_code, _headers = get_task_details_using_get_with_http_info(id, task_details_id, opts)
  data
end

#get_task_details_using_get_with_http_info(id, task_details_id, opts = {}) ⇒ Array<(Hash<String, Object>, Fixnum, Hash)>

Get task details

Parameters:

  • id

    id

  • task_details_id

    taskDetailsId

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :x_rate_limit_app (String)

    X-RateLimit-App

Returns:

  • (Array<(Hash<String, Object>, Fixnum, Hash)>)

    Hash<String, Object> data, response status code and response headers



589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
# File 'lib/swagger_client/api/application_controller_api.rb', line 589

def get_task_details_using_get_with_http_info(id, task_details_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_task_details_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 ApplicationControllerApi.get_task_details_using_get"
  end
  # verify the required parameter 'task_details_id' is set
  if @api_client.config.client_side_validation && task_details_id.nil?
    fail ArgumentError, "Missing the required parameter 'task_details_id' when calling ApplicationControllerApi.get_task_details_using_get"
  end
  # resource path
  local_var_path = '/applications/{application}/tasks/{id}/details/{taskDetailsId}'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'taskDetailsId' + '}', task_details_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 => 'Hash<String, Object>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ApplicationControllerApi#get_task_details_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_task_using_get(id, opts = {}) ⇒ Hash<String, Object>

Get task

Parameters:

  • id

    id

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Hash<String, Object>)


637
638
639
640
# File 'lib/swagger_client/api/application_controller_api.rb', line 637

def get_task_using_get(id, opts = {})
  data, _status_code, _headers = get_task_using_get_with_http_info(id, opts)
  data
end

#get_task_using_get_with_http_info(id, opts = {}) ⇒ Array<(Hash<String, Object>, Fixnum, Hash)>

Get task

Parameters:

  • id

    id

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Hash<String, Object>, Fixnum, Hash)>)

    Hash<String, Object> data, response status code and response headers



646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
# File 'lib/swagger_client/api/application_controller_api.rb', line 646

def get_task_using_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_task_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 ApplicationControllerApi.get_task_using_get"
  end
  # resource path
  local_var_path = '/applications/{application}/tasks/{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: ApplicationControllerApi#get_task_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_tasks_using_get(application, opts = {}) ⇒ Array<Object>

Retrieve a list of an application’s tasks

Parameters:

  • application

    application

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    page

  • :limit (Integer)

    limit

  • :statuses (String)

    statuses

Returns:

  • (Array<Object>)


692
693
694
695
# File 'lib/swagger_client/api/application_controller_api.rb', line 692

def get_tasks_using_get(application, opts = {})
  data, _status_code, _headers = get_tasks_using_get_with_http_info(application, opts)
  data
end

#get_tasks_using_get_with_http_info(application, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>

Retrieve a list of an application&#39;s tasks

Parameters:

  • application

    application

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    page

  • :limit (Integer)

    limit

  • :statuses (String)

    statuses

Returns:

  • (Array<(Array<Object>, Fixnum, Hash)>)

    Array<Object> data, response status code and response headers



704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
# File 'lib/swagger_client/api/application_controller_api.rb', line 704

def get_tasks_using_get_with_http_info(application, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.get_tasks_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 ApplicationControllerApi.get_tasks_using_get"
  end
  # resource path
  local_var_path = '/applications/{application}/tasks'.sub('{' + 'application' + '}', application.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  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: ApplicationControllerApi#get_tasks_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#invoke_pipeline_config_using_post(application, pipeline_name, opts = {}) ⇒ HttpEntity

Invoke pipeline config

Parameters:

  • application

    application

  • pipeline_name

    pipelineName

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :trigger (Object)

    trigger

  • :user (String)

    user

Returns:



753
754
755
756
# File 'lib/swagger_client/api/application_controller_api.rb', line 753

def invoke_pipeline_config_using_post(application, pipeline_name, opts = {})
  data, _status_code, _headers = invoke_pipeline_config_using_post_with_http_info(application, pipeline_name, opts)
  data
end

#invoke_pipeline_config_using_post_with_http_info(application, pipeline_name, opts = {}) ⇒ Array<(HttpEntity, Fixnum, Hash)>

Invoke pipeline config

Parameters:

  • application

    application

  • pipeline_name

    pipelineName

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :trigger (Object)

    trigger

  • :user (String)

    user

Returns:

  • (Array<(HttpEntity, Fixnum, Hash)>)

    HttpEntity data, response status code and response headers



765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
# File 'lib/swagger_client/api/application_controller_api.rb', line 765

def invoke_pipeline_config_using_post_with_http_info(application, pipeline_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.invoke_pipeline_config_using_post ...'
  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 ApplicationControllerApi.invoke_pipeline_config_using_post"
  end
  # verify the required parameter 'pipeline_name' is set
  if @api_client.config.client_side_validation && pipeline_name.nil?
    fail ArgumentError, "Missing the required parameter 'pipeline_name' when calling ApplicationControllerApi.invoke_pipeline_config_using_post"
  end
  # resource path
  local_var_path = '/applications/{application}/pipelineConfigs/{pipelineName}'.sub('{' + 'application' + '}', application.to_s).sub('{' + 'pipelineName' + '}', pipeline_name.to_s)

  # query parameters
  query_params = {}
  query_params[:'user'] = opts[:'user'] if !opts[:'user'].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 = @api_client.object_to_http_body(opts[:'trigger'])
  auth_names = []
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'HttpEntity')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ApplicationControllerApi#invoke_pipeline_config_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#task_using_post(application, map, opts = {}) ⇒ Hash<String, Object>

Create task

Parameters:

  • application

    application

  • map

    map

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Hash<String, Object>)


814
815
816
817
# File 'lib/swagger_client/api/application_controller_api.rb', line 814

def task_using_post(application, map, opts = {})
  data, _status_code, _headers = task_using_post_with_http_info(application, map, opts)
  data
end

#task_using_post_with_http_info(application, map, opts = {}) ⇒ Array<(Hash<String, Object>, Fixnum, Hash)>

Create task

Parameters:

  • application

    application

  • map

    map

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Hash<String, Object>, Fixnum, Hash)>)

    Hash<String, Object> data, response status code and response headers



824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
# File 'lib/swagger_client/api/application_controller_api.rb', line 824

def task_using_post_with_http_info(application, map, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ApplicationControllerApi.task_using_post ...'
  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 ApplicationControllerApi.task_using_post"
  end
  # verify the required parameter 'map' is set
  if @api_client.config.client_side_validation && map.nil?
    fail ArgumentError, "Missing the required parameter 'map' when calling ApplicationControllerApi.task_using_post"
  end
  # resource path
  local_var_path = '/applications/{application}/tasks'.sub('{' + 'application' + '}', application.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 = @api_client.object_to_http_body(map)
  auth_names = []
  data, status_code, headers = @api_client.call_api(:POST, 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: ApplicationControllerApi#task_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end