class SwaggerClient::BuildControllerApi

Attributes

api_client[RW]

Public Class Methods

new(api_client = ApiClient.default) click to toggle source
# File lib/swagger_client/api/build_controller_api.rb, line 19
def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Public Instance Methods

get_build_masters_using_get(type, opts = {}) click to toggle source

Get build masters Deprecated, use the v3 endpoint instead @param type type @param [Hash] opts the optional parameters @return [Array<Object>]

# 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 = {}) click to toggle source

Get build masters Deprecated, use the v3 endpoint instead @param type type @param [Hash] opts the optional parameters @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers

# File lib/swagger_client/api/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 = {}) click to toggle source

Get build for build master Deprecated, use the v3 endpoint instead @param build_master buildMaster @param number number @param [Hash] opts the optional parameters @return [Hash<String, Object>]

# 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 = {}) click to toggle source

Get build for build master Deprecated, use the v3 endpoint instead @param build_master buildMaster @param number number @param [Hash] opts the optional parameters @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers

# File lib/swagger_client/api/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 = {}) click to toggle source

Get builds for build master Deprecated, use the v3 endpoint instead @param build_master buildMaster @param [Hash] opts the optional parameters @return [Array<Object>]

# 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 = {}) click to toggle source

Get builds for build master Deprecated, use the v3 endpoint instead @param build_master buildMaster @param [Hash] opts the optional parameters @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers

# File lib/swagger_client/api/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 = {}) click to toggle source

Get job config Deprecated, use the v3 endpoint instead @param build_master buildMaster @param [Hash] opts the optional parameters @return [Hash<String, Object>]

# 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 = {}) click to toggle source

Get job config Deprecated, use the v3 endpoint instead @param build_master buildMaster @param [Hash] opts the optional parameters @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers

# File lib/swagger_client/api/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 = {}) click to toggle source

Get jobs for build master Deprecated, use the v3 endpoint instead @param build_master buildMaster @param [Hash] opts the optional parameters @return [Array<Object>]

# 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 = {}) click to toggle source

Get jobs for build master Deprecated, use the v3 endpoint instead @param build_master buildMaster @param [Hash] opts the optional parameters @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers

# File lib/swagger_client/api/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 = {}) click to toggle source

Get build masters @param type type @param [Hash] opts the optional parameters @return [Array<Object>]

# 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 = {}) click to toggle source

Get build masters @param type type @param [Hash] opts the optional parameters @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers

# File lib/swagger_client/api/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 = {}) click to toggle source

Get build for build master @param build_master buildMaster @param number number @param job job @param [Hash] opts the optional parameters @return [Hash<String, Object>]

# 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 = {}) click to toggle source

Get build for build master @param build_master buildMaster @param number number @param job job @param [Hash] opts the optional parameters @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers

# File lib/swagger_client/api/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 = {}) click to toggle source

Get builds for build master @param build_master buildMaster @param job job @param [Hash] opts the optional parameters @return [Array<Object>]

# 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 = {}) click to toggle source

Get builds for build master @param build_master buildMaster @param job job @param [Hash] opts the optional parameters @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers

# File lib/swagger_client/api/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 = {}) click to toggle source

Get job config @param build_master buildMaster @param job job @param [Hash] opts the optional parameters @return [Hash<String, Object>]

# 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 = {}) click to toggle source

Get job config @param build_master buildMaster @param job job @param [Hash] opts the optional parameters @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers

# File lib/swagger_client/api/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 = {}) click to toggle source

Get jobs for build master @param build_master buildMaster @param [Hash] opts the optional parameters @return [Array<Object>]

# 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 = {}) click to toggle source

Get jobs for build master @param build_master buildMaster @param [Hash] opts the optional parameters @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers

# File lib/swagger_client/api/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