def map_query_tags(verb, params, action, options)
      response = {}
      hrefs = params[:resource_hrefs] || []
      hrefs.concat(query_by_tag(verb, params[:tags], action, options)) if params[:tags]
      response = query_by_resource(verb, hrefs, action, options) if hrefs.any?
      response
    end
def map_query_tags(verb, params, action, options)
      response = {}
      hrefs = params[:resource_hrefs] || []
      hrefs.concat(query_by_tag(verb, params[:tags], action, options)) if params[:tags]
      response = query_by_resource(verb, hrefs, action, options) if hrefs.any?
      response
    end
Convert tag query request into one or more API requests and then convert responses
 Currently only retrieving "instances" resources

 @param [Symbol] verb for HTTP REST request
 @param [Hash] params for HTTP request
 @param [String] action from request type
 @param [Hash] options augmenting or overriding default options for HTTP request

 @return [Hash] tags retrieved with resource href as key and tags array as value