def get_entities(entity_type, resource_name, options = {})
      params = {}
      SEARCH_ARGUMENTS.each { |k, v| params[k] = options[v] if options[v] }

      ns_prefix = build_namespace_prefix(options[:namespace])
      response = handle_exception do
        rest_client[ns_prefix + resource_name]
          .get({ 'params' => params }.merge(@headers))
      end
      format_response(options[:as] || @as, response.body, entity_type)
    end
def get_entities(entity_type, resource_name, options = {})
      params = {}
      SEARCH_ARGUMENTS.each { |k, v| params[k] = options[v] if options[v] }

      ns_prefix = build_namespace_prefix(options[:namespace])
      response = handle_exception do
        rest_client[ns_prefix + resource_name]
          .get({ 'params' => params }.merge(@headers))
      end
      format_response(options[:as] || @as, response.body, entity_type)
    end
Accepts the following options:
   :namespace (string) - the namespace of the entity.
   :label_selector (string) - a selector to restrict the list of returned objects by labels.
   :field_selector (string) - a selector to restrict the list of returned objects by fields.
   :limit (integer) - a maximum number of items to return in each response
   :continue (string) - a token used to retrieve the next chunk of entities
   :as (:raw|:ros) - defaults to :ros
     :raw - return the raw response body as a string
     :ros - return a collection of RecursiveOpenStruct objects