Class: SwaggerClient::BakeControllerApi
- Inherits:
-
Object
- Object
- SwaggerClient::BakeControllerApi
- Defined in:
- lib/swagger_client/api/bake_controller_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#bake_options_using_get(cloud_provider, opts = {}) ⇒ Object
Retrieve a list of available bakery base images for a given cloud provider.
-
#bake_options_using_get1(opts = {}) ⇒ Object
Retrieve a list of available bakery base images, grouped by cloud provider.
-
#bake_options_using_get1_with_http_info(opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
Retrieve a list of available bakery base images, grouped by cloud provider.
-
#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.
-
#initialize(api_client = ApiClient.default) ⇒ BakeControllerApi
constructor
A new instance of BakeControllerApi.
-
#lookup_logs_using_get(region, status_id, opts = {}) ⇒ Object
Retrieve the logs for a given bake.
-
#lookup_logs_using_get_with_http_info(region, status_id, opts = {}) ⇒ Array<(Object, Fixnum, Hash)>
Retrieve the logs for a given bake.
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_client ⇒ Object
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
26 27 28 29 |
# File 'lib/swagger_client/api/bake_controller_api.rb', line 26 def (cloud_provider, opts = {}) data, _status_code, _headers = (cloud_provider, opts) data end |
#bake_options_using_get1(opts = {}) ⇒ Object
Retrieve a list of available bakery base images, grouped by cloud provider
77 78 79 80 |
# File 'lib/swagger_client/api/bake_controller_api.rb', line 77 def (opts = {}) data, _status_code, _headers = (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
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 (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
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 (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
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
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 |