Class: SwaggerClient::BakeControllerApi

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ BakeControllerApi

Returns a new instance of BakeControllerApi.



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

def api_client
  @api_client
end

Instance Method Details

#bake_options_using_get(cloud_provider, opts = {}) ⇒ Object

Retrieve a list of available bakery base images for a given cloud provider

Parameters:

  • cloud_provider

    cloudProvider

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

    the optional parameters

Returns:

  • (Object)


26
27
28
29
# File 'lib/swagger_client/api/bake_controller_api.rb', line 26

def bake_options_using_get(cloud_provider, opts = {})
  data, _status_code, _headers = bake_options_using_get_with_http_info(cloud_provider, opts)
  data
end

#bake_options_using_get1(opts = {}) ⇒ Object

Retrieve a list of available bakery base images, grouped by cloud provider

Parameters:

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

    the optional parameters

Returns:

  • (Object)


77
78
79
80
# File 'lib/swagger_client/api/bake_controller_api.rb', line 77

def bake_options_using_get1(opts = {})
  data, _status_code, _headers = bake_options_using_get1_with_http_info(opts)
  data
end

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

Retrieve a list of available bakery base images, grouped by cloud provider

Parameters:

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

    the optional parameters

Returns:

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

    Object data, response status code and response headers



85
86
87
88
89
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
# File 'lib/swagger_client/api/bake_controller_api.rb', line 85

def bake_options_using_get1_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BakeControllerApi.bake_options_using_get1 ...'
  end
  # resource path
  local_var_path = '/bakery/options'

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

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

Retrieve a list of available bakery base images for a given cloud provider

Parameters:

  • cloud_provider

    cloudProvider

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

    the optional parameters

Returns:

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

    Object data, response status code and response headers



35
36
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
# File 'lib/swagger_client/api/bake_controller_api.rb', line 35

def bake_options_using_get_with_http_info(cloud_provider, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BakeControllerApi.bake_options_using_get ...'
  end
  # verify the required parameter 'cloud_provider' is set
  if @api_client.config.client_side_validation && cloud_provider.nil?
    fail ArgumentError, "Missing the required parameter 'cloud_provider' when calling BakeControllerApi.bake_options_using_get"
  end
  # resource path
  local_var_path = '/bakery/options/{cloudProvider}'.sub('{' + 'cloudProvider' + '}', cloud_provider.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 => 'Object')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BakeControllerApi#bake_options_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#lookup_logs_using_get(region, status_id, opts = {}) ⇒ Object

Retrieve the logs for a given bake

Parameters:

  • region

    region

  • status_id

    statusId

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

    the optional parameters

Returns:

  • (Object)


125
126
127
128
# File 'lib/swagger_client/api/bake_controller_api.rb', line 125

def lookup_logs_using_get(region, status_id, opts = {})
  data, _status_code, _headers = lookup_logs_using_get_with_http_info(region, status_id, opts)
  data
end

#lookup_logs_using_get_with_http_info(region, status_id, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>

Retrieve the logs for a given bake

Parameters:

  • region

    region

  • status_id

    statusId

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

    the optional parameters

Returns:

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

    Object data, response status code and response headers



135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/swagger_client/api/bake_controller_api.rb', line 135

def lookup_logs_using_get_with_http_info(region, status_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: BakeControllerApi.lookup_logs_using_get ...'
  end
  # verify the required parameter 'region' is set
  if @api_client.config.client_side_validation && region.nil?
    fail ArgumentError, "Missing the required parameter 'region' when calling BakeControllerApi.lookup_logs_using_get"
  end
  # verify the required parameter 'status_id' is set
  if @api_client.config.client_side_validation && status_id.nil?
    fail ArgumentError, "Missing the required parameter 'status_id' when calling BakeControllerApi.lookup_logs_using_get"
  end
  # resource path
  local_var_path = '/bakery/logs/{region}/{statusId}'.sub('{' + 'region' + '}', region.to_s).sub('{' + 'statusId' + '}', status_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 => 'Object')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: BakeControllerApi#lookup_logs_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end