class IronFunctions::AppsApi
Attributes
Public Class Methods
# File lib/iron_functions/api/apps_api.rb, line 30 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
Get information for a app. This gives more details about a app, such as statistics. @param app name of the app. @param [Hash] opts the optional parameters @return [AppWrapper]
# File lib/iron_functions/api/apps_api.rb, line 39 def apps_app_get(app, opts = {}) data, _status_code, _headers = apps_app_get_with_http_info(app, opts) return data end
Get information for a app. This gives more details about a app, such as statistics. @param app name of the app. @param [Hash] opts the optional parameters @return [Array<(AppWrapper
, Fixnum, Hash)>] AppWrapper
data, response status code and response headers
# File lib/iron_functions/api/apps_api.rb, line 49 def apps_app_get_with_http_info(app, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AppsApi.apps_app_get ..." end # verify the required parameter 'app' is set fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.apps_app_get" if app.nil? # resource path local_var_path = "/apps/{app}".sub('{format}','json').sub('{' + 'app' + '}', app.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # 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 => 'AppWrapper') if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_app_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Create/update a app. You can set app level settings here. @param app name of the app. @param body App
to post. @param [Hash] opts the optional parameters @return [AppWrapper]
# File lib/iron_functions/api/apps_api.rb, line 97 def apps_app_put(app, body, opts = {}) data, _status_code, _headers = apps_app_put_with_http_info(app, body, opts) return data end
Create/update a app. You can set app level settings here. @param app name of the app. @param body App
to post. @param [Hash] opts the optional parameters @return [Array<(AppWrapper
, Fixnum, Hash)>] AppWrapper
data, response status code and response headers
# File lib/iron_functions/api/apps_api.rb, line 108 def apps_app_put_with_http_info(app, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AppsApi.apps_app_put ..." end # verify the required parameter 'app' is set fail ArgumentError, "Missing the required parameter 'app' when calling AppsApi.apps_app_put" if app.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_app_put" if body.nil? # resource path local_var_path = "/apps/{app}".sub('{format}','json').sub('{' + 'app' + '}', app.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) 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 => 'AppWrapper') if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_app_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get all app names. Get a list of all the apps in the system. @param [Hash] opts the optional parameters @return [AppsWrapper]
# File lib/iron_functions/api/apps_api.rb, line 156 def apps_get(opts = {}) data, _status_code, _headers = apps_get_with_http_info(opts) return data end
Get all app names. Get a list of all the apps in the system. @param [Hash] opts the optional parameters @return [Array<(AppsWrapper
, Fixnum, Hash)>] AppsWrapper
data, response status code and response headers
# File lib/iron_functions/api/apps_api.rb, line 165 def apps_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AppsApi.apps_get ..." end # resource path local_var_path = "/apps".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # 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 => 'AppsWrapper') if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Post new app Insert a new app @param body App
to post. @param [Hash] opts the optional parameters @return [AppWrapper]
# File lib/iron_functions/api/apps_api.rb, line 210 def apps_post(body, opts = {}) data, _status_code, _headers = apps_post_with_http_info(body, opts) return data end
Post new app Insert a new app @param body App
to post. @param [Hash] opts the optional parameters @return [Array<(AppWrapper
, Fixnum, Hash)>] AppWrapper
data, response status code and response headers
# File lib/iron_functions/api/apps_api.rb, line 220 def apps_post_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AppsApi.apps_post ..." end # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post" if body.nil? # resource path local_var_path = "/apps".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) 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 => 'AppWrapper') if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end