Class: SwaggerClient::BuildControllerApi

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ BuildControllerApi

Returns a new instance of BuildControllerApi.



19
20
21
# File 'lib/swagger_client/api/build_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/build_controller_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#get_build_masters_using_get(type, opts = {}) ⇒ Array<Object>

Get build masters Deprecated, use the v3 endpoint instead

Parameters:

  • type

    type

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

    the optional parameters

Returns:

  • (Array<Object>)


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

def get_build_masters_using_get(type, opts = {})
  data, _status_code, _headers = get_build_masters_using_get_with_http_info(type, opts)
  data
end

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

Get build masters Deprecated, use the v3 endpoint instead

Parameters:

  • type

    type

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

    the optional parameters

Returns:

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

    Array<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/build_controller_api.rb', line 37

def get_build_masters_using_get_with_http_info(type, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BuildControllerApi.get_build_masters_using_get ...'
  end
  # verify the required parameter 'type' is set
  if @api_client.config.client_side_validation && type.nil?
    fail ArgumentError, "Missing the required parameter 'type' when calling BuildControllerApi.get_build_masters_using_get"
  end
  # resource path
  local_var_path = '/v2/builds'

  # query parameters
  query_params = {}
  query_params[:'type'] = type

  # 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: BuildControllerApi#get_build_masters_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_build_using_get(build_master, number, opts = {}) ⇒ Hash<String, Object>

Get build for build master Deprecated, use the v3 endpoint instead

Parameters:

  • build_master

    buildMaster

  • number

    number

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

    the optional parameters

Returns:

  • (Hash<String, Object>)


83
84
85
86
# File 'lib/swagger_client/api/build_controller_api.rb', line 83

def get_build_using_get(build_master, number, opts = {})
  data, _status_code, _headers = get_build_using_get_with_http_info(build_master, number, opts)
  data
end

#get_build_using_get_with_http_info(build_master, number, opts = {}) ⇒ Array<(Hash<String, Object>, Fixnum, Hash)>

Get build for build master Deprecated, use the v3 endpoint instead

Parameters:

  • build_master

    buildMaster

  • number

    number

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

    the optional parameters

Returns:

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

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



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
129
130
131
132
133
134
135
136
# File 'lib/swagger_client/api/build_controller_api.rb', line 94

def get_build_using_get_with_http_info(build_master, number, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BuildControllerApi.get_build_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 BuildControllerApi.get_build_using_get"
  end
  # verify the required parameter 'number' is set
  if @api_client.config.client_side_validation && number.nil?
    fail ArgumentError, "Missing the required parameter 'number' when calling BuildControllerApi.get_build_using_get"
  end
  # resource path
  local_var_path = '/v2/builds/{buildMaster}/build/{number}/**'.sub('{' + 'buildMaster' + '}', build_master.to_s).sub('{' + 'number' + '}', number.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: BuildControllerApi#get_build_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_builds_using_get(build_master, opts = {}) ⇒ Array<Object>

Get builds for build master Deprecated, use the v3 endpoint instead

Parameters:

  • build_master

    buildMaster

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

    the optional parameters

Returns:

  • (Array<Object>)


142
143
144
145
# File 'lib/swagger_client/api/build_controller_api.rb', line 142

def get_builds_using_get(build_master, opts = {})
  data, _status_code, _headers = get_builds_using_get_with_http_info(build_master, opts)
  data
end

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

Get builds for build master Deprecated, use the v3 endpoint instead

Parameters:

  • build_master

    buildMaster

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

    the optional parameters

Returns:

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

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



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
181
182
183
184
185
186
187
188
189
190
# File 'lib/swagger_client/api/build_controller_api.rb', line 152

def get_builds_using_get_with_http_info(build_master, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BuildControllerApi.get_builds_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 BuildControllerApi.get_builds_using_get"
  end
  # resource path
  local_var_path = '/v2/builds/{buildMaster}/builds/**'.sub('{' + 'buildMaster' + '}', build_master.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: BuildControllerApi#get_builds_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_job_config_using_get(build_master, opts = {}) ⇒ Hash<String, Object>

Get job config Deprecated, use the v3 endpoint instead

Parameters:

  • build_master

    buildMaster

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

    the optional parameters

Returns:

  • (Hash<String, Object>)


196
197
198
199
# File 'lib/swagger_client/api/build_controller_api.rb', line 196

def get_job_config_using_get(build_master, opts = {})
  data, _status_code, _headers = get_job_config_using_get_with_http_info(build_master, opts)
  data
end

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

Get job config Deprecated, use the v3 endpoint instead

Parameters:

  • build_master

    buildMaster

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

    the optional parameters

Returns:

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

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



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
236
237
238
239
240
241
242
243
244
# File 'lib/swagger_client/api/build_controller_api.rb', line 206

def get_job_config_using_get_with_http_info(build_master, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BuildControllerApi.get_job_config_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 BuildControllerApi.get_job_config_using_get"
  end
  # resource path
  local_var_path = '/v2/builds/{buildMaster}/jobs/**'.sub('{' + 'buildMaster' + '}', build_master.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: BuildControllerApi#get_job_config_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_jobs_for_build_master_using_get(build_master, opts = {}) ⇒ Array<Object>

Get jobs for build master Deprecated, use the v3 endpoint instead

Parameters:

  • build_master

    buildMaster

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

    the optional parameters

Returns:

  • (Array<Object>)


250
251
252
253
# File 'lib/swagger_client/api/build_controller_api.rb', line 250

def get_jobs_for_build_master_using_get(build_master, opts = {})
  data, _status_code, _headers = get_jobs_for_build_master_using_get_with_http_info(build_master, opts)
  data
end

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

Get jobs for build master Deprecated, use the v3 endpoint instead

Parameters:

  • build_master

    buildMaster

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

    the optional parameters

Returns:

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

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



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
291
292
293
294
295
296
297
298
# File 'lib/swagger_client/api/build_controller_api.rb', line 260

def get_jobs_for_build_master_using_get_with_http_info(build_master, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BuildControllerApi.get_jobs_for_build_master_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 BuildControllerApi.get_jobs_for_build_master_using_get"
  end
  # resource path
  local_var_path = '/v2/builds/{buildMaster}/jobs'.sub('{' + 'buildMaster' + '}', build_master.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: BuildControllerApi#get_jobs_for_build_master_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#v3_get_build_masters_using_get(type, opts = {}) ⇒ Array<Object>

Get build masters

Parameters:

  • type

    type

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

    the optional parameters

Returns:

  • (Array<Object>)


303
304
305
306
# File 'lib/swagger_client/api/build_controller_api.rb', line 303

def v3_get_build_masters_using_get(type, opts = {})
  data, _status_code, _headers = v3_get_build_masters_using_get_with_http_info(type, opts)
  data
end

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

Get build masters

Parameters:

  • type

    type

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

    the optional parameters

Returns:

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

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



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
349
350
351
# File 'lib/swagger_client/api/build_controller_api.rb', line 312

def v3_get_build_masters_using_get_with_http_info(type, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BuildControllerApi.v3_get_build_masters_using_get ...'
  end
  # verify the required parameter 'type' is set
  if @api_client.config.client_side_validation && type.nil?
    fail ArgumentError, "Missing the required parameter 'type' when calling BuildControllerApi.v3_get_build_masters_using_get"
  end
  # resource path
  local_var_path = '/v3/builds'

  # query parameters
  query_params = {}
  query_params[:'type'] = type

  # 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: BuildControllerApi#v3_get_build_masters_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#v3_get_build_using_get(build_master, number, job, opts = {}) ⇒ Hash<String, Object>

Get build for build master

Parameters:

  • build_master

    buildMaster

  • number

    number

  • job

    job

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

    the optional parameters

Returns:

  • (Hash<String, Object>)


358
359
360
361
# File 'lib/swagger_client/api/build_controller_api.rb', line 358

def v3_get_build_using_get(build_master, number, job, opts = {})
  data, _status_code, _headers = v3_get_build_using_get_with_http_info(build_master, number, job, opts)
  data
end

#v3_get_build_using_get_with_http_info(build_master, number, job, opts = {}) ⇒ Array<(Hash<String, Object>, Fixnum, Hash)>

Get build for build master

Parameters:

  • build_master

    buildMaster

  • number

    number

  • job

    job

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

    the optional parameters

Returns:

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

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



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
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
# File 'lib/swagger_client/api/build_controller_api.rb', line 369

def v3_get_build_using_get_with_http_info(build_master, number, job, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BuildControllerApi.v3_get_build_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 BuildControllerApi.v3_get_build_using_get"
  end
  # verify the required parameter 'number' is set
  if @api_client.config.client_side_validation && number.nil?
    fail ArgumentError, "Missing the required parameter 'number' when calling BuildControllerApi.v3_get_build_using_get"
  end
  # verify the required parameter 'job' is set
  if @api_client.config.client_side_validation && job.nil?
    fail ArgumentError, "Missing the required parameter 'job' when calling BuildControllerApi.v3_get_build_using_get"
  end
  # resource path
  local_var_path = '/v3/builds/{buildMaster}/build/{number}'.sub('{' + 'buildMaster' + '}', build_master.to_s).sub('{' + 'number' + '}', number.to_s)

  # query parameters
  query_params = {}
  query_params[:'job'] = job

  # 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: BuildControllerApi#v3_get_build_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#v3_get_builds_using_get(build_master, job, opts = {}) ⇒ Array<Object>

Get builds for build master

Parameters:

  • build_master

    buildMaster

  • job

    job

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

    the optional parameters

Returns:

  • (Array<Object>)


422
423
424
425
# File 'lib/swagger_client/api/build_controller_api.rb', line 422

def v3_get_builds_using_get(build_master, job, opts = {})
  data, _status_code, _headers = v3_get_builds_using_get_with_http_info(build_master, job, opts)
  data
end

#v3_get_builds_using_get_with_http_info(build_master, job, opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>

Get builds for build master

Parameters:

  • build_master

    buildMaster

  • job

    job

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

    the optional parameters

Returns:

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

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



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
462
463
464
465
466
467
468
469
470
471
472
473
474
475
# File 'lib/swagger_client/api/build_controller_api.rb', line 432

def v3_get_builds_using_get_with_http_info(build_master, job, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BuildControllerApi.v3_get_builds_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 BuildControllerApi.v3_get_builds_using_get"
  end
  # verify the required parameter 'job' is set
  if @api_client.config.client_side_validation && job.nil?
    fail ArgumentError, "Missing the required parameter 'job' when calling BuildControllerApi.v3_get_builds_using_get"
  end
  # resource path
  local_var_path = '/v3/builds/{buildMaster}/builds'.sub('{' + 'buildMaster' + '}', build_master.to_s)

  # query parameters
  query_params = {}
  query_params[:'job'] = job

  # 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: BuildControllerApi#v3_get_builds_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#v3_get_job_config_using_get(build_master, job, opts = {}) ⇒ Hash<String, Object>

Get job config

Parameters:

  • build_master

    buildMaster

  • job

    job

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

    the optional parameters

Returns:

  • (Hash<String, Object>)


481
482
483
484
# File 'lib/swagger_client/api/build_controller_api.rb', line 481

def v3_get_job_config_using_get(build_master, job, opts = {})
  data, _status_code, _headers = v3_get_job_config_using_get_with_http_info(build_master, job, opts)
  data
end

#v3_get_job_config_using_get_with_http_info(build_master, job, opts = {}) ⇒ Array<(Hash<String, Object>, Fixnum, Hash)>

Get job config

Parameters:

  • build_master

    buildMaster

  • job

    job

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

    the optional parameters

Returns:

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

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



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
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
# File 'lib/swagger_client/api/build_controller_api.rb', line 491

def v3_get_job_config_using_get_with_http_info(build_master, job, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BuildControllerApi.v3_get_job_config_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 BuildControllerApi.v3_get_job_config_using_get"
  end
  # verify the required parameter 'job' is set
  if @api_client.config.client_side_validation && job.nil?
    fail ArgumentError, "Missing the required parameter 'job' when calling BuildControllerApi.v3_get_job_config_using_get"
  end
  # resource path
  local_var_path = '/v3/builds/{buildMaster}/job'.sub('{' + 'buildMaster' + '}', build_master.to_s)

  # query parameters
  query_params = {}
  query_params[:'job'] = job

  # 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: BuildControllerApi#v3_get_job_config_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#v3_get_jobs_for_build_master_using_get(build_master, opts = {}) ⇒ Array<Object>

Get jobs for build master

Parameters:

  • build_master

    buildMaster

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

    the optional parameters

Returns:

  • (Array<Object>)


539
540
541
542
# File 'lib/swagger_client/api/build_controller_api.rb', line 539

def v3_get_jobs_for_build_master_using_get(build_master, opts = {})
  data, _status_code, _headers = v3_get_jobs_for_build_master_using_get_with_http_info(build_master, opts)
  data
end

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

Get jobs for build master

Parameters:

  • build_master

    buildMaster

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

    the optional parameters

Returns:

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

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



548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
# File 'lib/swagger_client/api/build_controller_api.rb', line 548

def v3_get_jobs_for_build_master_using_get_with_http_info(build_master, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BuildControllerApi.v3_get_jobs_for_build_master_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 BuildControllerApi.v3_get_jobs_for_build_master_using_get"
  end
  # resource path
  local_var_path = '/v3/builds/{buildMaster}/jobs'.sub('{' + 'buildMaster' + '}', build_master.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: BuildControllerApi#v3_get_jobs_for_build_master_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end