Class: Zilla::LogsApi
- Inherits:
-
Object
- Object
- Zilla::LogsApi
- Defined in:
- lib/zilla/api/logs_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#initialize(api_client = ApiClient.default) ⇒ LogsApi
constructor
A new instance of LogsApi.
- #log_file_handler(logpath, opts = {}) ⇒ nil
-
#log_file_handler_with_http_info(logpath, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Nil, response status code and response headers.
- #log_file_list_handler(opts = {}) ⇒ nil
-
#log_file_list_handler_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>
Nil, response status code and response headers.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/zilla/api/logs_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#log_file_handler(logpath, opts = {}) ⇒ nil
26 27 28 29 |
# File 'lib/zilla/api/logs_api.rb', line 26 def log_file_handler(logpath, opts = {}) log_file_handler_with_http_info(logpath, opts) nil end |
#log_file_handler_with_http_info(logpath, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Returns nil, response status code and response headers.
34 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 74 75 76 77 78 |
# File 'lib/zilla/api/logs_api.rb', line 34 def log_file_handler_with_http_info(logpath, opts = {}) @api_client.config.logger.debug 'Calling API: LogsApi.log_file_handler ...' if @api_client.config.debugging # verify the required parameter 'logpath' is set if @api_client.config.client_side_validation && logpath.nil? raise ArgumentError, "Missing the required parameter 'logpath' when calling LogsApi.log_file_handler" end # resource path local_var_path = '/logs/{logpath}'.sub('{logpath}', CGI.escape(logpath.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( operation: :'LogsApi.log_file_handler', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LogsApi#log_file_handler\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#log_file_list_handler(opts = {}) ⇒ nil
82 83 84 85 |
# File 'lib/zilla/api/logs_api.rb', line 82 def log_file_list_handler(opts = {}) log_file_list_handler_with_http_info(opts) nil end |
#log_file_list_handler_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>
Returns nil, response status code and response headers.
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 120 121 122 123 124 125 126 127 |
# File 'lib/zilla/api/logs_api.rb', line 89 def log_file_list_handler_with_http_info(opts = {}) @api_client.config.logger.debug 'Calling API: LogsApi.log_file_list_handler ...' if @api_client.config.debugging # resource path local_var_path = '/logs/' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( operation: :'LogsApi.log_file_list_handler', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LogsApi#log_file_list_handler\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |