Class: XbimAim::DiagnosticsApi
- Inherits:
-
Object
- Object
- XbimAim::DiagnosticsApi
- Defined in:
- lib/xbim_aim/api/diagnostics_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#diagnostics_get(region, opts = {}) ⇒ nil
Returns the EntitySet Diagnostics <span style=‘font-size: 17px;’>Summary:</span>Returns the EntitySet Diagnostics.<br/>Return Type: <br/><br/>.
-
#diagnostics_get_with_http_info(region, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Returns the EntitySet Diagnostics <span style='font-size: 17px;'>Summary:</span>Returns the EntitySet Diagnostics.<br/>Return Type: <b></b><br/><br/>.
-
#initialize(api_client = ApiClient.default) ⇒ DiagnosticsApi
constructor
A new instance of DiagnosticsApi.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ DiagnosticsApi
Returns a new instance of DiagnosticsApi.
19 20 21 |
# File 'lib/xbim_aim/api/diagnostics_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/xbim_aim/api/diagnostics_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#diagnostics_get(region, opts = {}) ⇒ nil
Returns the EntitySet Diagnostics <span style=‘font-size: 17px;’>Summary:</span>Returns the EntitySet Diagnostics.<br/>Return Type: <br/><br/>
34 35 36 37 |
# File 'lib/xbim_aim/api/diagnostics_api.rb', line 34 def diagnostics_get(region, opts = {}) diagnostics_get_with_http_info(region, opts) nil end |
#diagnostics_get_with_http_info(region, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Returns the EntitySet Diagnostics <span style='font-size: 17px;'>Summary:</span>Returns the EntitySet Diagnostics.<br/>Return Type: <b></b><br/><br/>
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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/xbim_aim/api/diagnostics_api.rb', line 51 def diagnostics_get_with_http_info(region, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DiagnosticsApi.diagnostics_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 DiagnosticsApi.diagnostics_get" end # verify enum value allowable_values = ["UK", "WestEurope", "Sandbox"] if @api_client.config.client_side_validation && !allowable_values.include?(region) fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}" end # resource path local_var_path = '/{region}/aim/2.0/Diagnostics'.sub('{' + 'region' + '}', CGI.escape(region.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil? query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil? query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil? query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil? query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil? query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil? # 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] || ['oauth2'] = opts.merge( :operation => :"DiagnosticsApi.diagnostics_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 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: DiagnosticsApi#diagnostics_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |