lib/ruby-linstor-client/api/developers_api.rb
# Lists nodes registered to the controller
# Returns an array of all nodes registered to Linstor. 
# @param [Hash] opts the optional parameters
# @option opts [Array<String>] :nodes Filter only for the specified nodes, if not specified, no filtering.
# @option opts [Array<String>] :props filter by given properties, full property path
# @option opts [Integer] :offset number of records to skip for pagination
# @option opts [Integer] :limit maximum number of records to return
# @return [Array<(Array<Node>, Integer, Hash)>] Array<Node> data, response status code and response headers
Lists nodes registered to the controller
Returns an array of all nodes registered to Linstor.
Lists nodes registered to the controller Returns an array of all nodes registered to Linstor .
def node_list_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: DevelopersApi.node_list ...'
      end
      if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
        fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DevelopersApi.node_list, must be greater than or equal to 0.'
      end
      if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 50
        fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DevelopersApi.node_list, must be smaller than or equal to 50.'
      end
      if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
        fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DevelopersApi.node_list, must be greater than or equal to 0.'
      end
      local_var_path = '/v1/nodes'
      query_params = opts[:query_params] || {}
      query_params[:'nodes'] = @api_client.build_collection_param(opts[:'nodes'], :multi) if !opts[:'nodes'].nil?
      query_params[:'props'] = @api_client.build_collection_param(opts[:'props'], :multi) if !opts[:'props'].nil?
      query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
      query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type] || 'Array<Node>'
      auth_names = opts[:debug_auth_names] || []
      new_options = opts.merge(
        :operation => :"DevelopersApi.node_list",
        :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, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: DevelopersApi#node_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def node_list_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: DevelopersApi.node_list ...' end if @api_client . config . client_side_validation && ! opts [ :' offset ' ] . nil? && opts [ :' offset ' ] < 0 fail ArgumentError , 'invalid value for "opts[:"offset"]" when calling DevelopersApi.node_list, must be greater than or equal to 0.' end if @api_client . config . client_side_validation && ! opts [ :' limit ' ] . nil? && opts [ :' limit ' ] > 50 fail ArgumentError , 'invalid value for "opts[:"limit"]" when calling DevelopersApi.node_list, must be smaller than or equal to 50.' end if @api_client . config . client_side_validation && ! opts [ :' limit ' ] . nil? && opts [ :' limit ' ] < 0 fail ArgumentError , 'invalid value for "opts[:"limit"]" when calling DevelopersApi.node_list, must be greater than or equal to 0.' end local_var_path = '/v1/nodes' query_params = opts [ :query_params ] || { } query_params [ :' nodes ' ] = @api_client . build_collection_param ( opts [ :' nodes ' ] , :multi ) if ! opts [ :' nodes ' ] . nil? query_params [ :' props ' ] = @api_client . build_collection_param ( opts [ :' props ' ] , :multi ) if ! opts [ :' props ' ] . nil? query_params [ :' offset ' ] = opts [ :' offset ' ] if ! opts [ :' offset ' ] . nil? query_params [ :' limit ' ] = opts [ :' limit ' ] if ! opts [ :' limit ' ] . nil? header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] || 'Array<Node>' auth_names = opts [ :debug_auth_names ] || [ ] new_options = opts . merge ( :operation => :" DevelopersApi.node_list " , :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 , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: DevelopersApi#node_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Lists nodes registered to the controller
Returns an array of all nodes registered to Linstor.
Lists nodes registered to the controller Returns an array of all nodes registered to Linstor .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
Array data, response status code and response headers
Array data response status code and response headers
Array<(Array<Node>, Integer, Hash)>
opts
:limit maximum number of records to return
: limit maximum number of records to return
opts the optional parameters
opts the optional parameters