lib/vcloud/core/query_runner.rb
def run(type=nil, options={})
        raise ArgumentError, "Query API :format option is not supported" if options[:format]

        if options.has_key?(:page) || options.has_key?(:pageSize)
          get_results_page(options.fetch(:page, 1), type, options) || []
        else
          get_all_results(type, options)
        end
      end
# Run a query (optionally for a particular entity type)
#
# @param type [String] Name of type to query for - default: nil
#                      See integration test of this module for examples
# @param options [Hash] options for the query API
#                       see Fog::Compute::VcloudDirector::Real for more
#                       documentation of valid options.
#                       Default: {}
# @option options [String] :filter Filter the query e.g. "name==foo"
# @option options [String] :format Unsupported - do not use
# @option options [String] :page Override automatic pagination
# @option options [String] :pageSize Override automatic pagination
# @return [Array] List of results
Run a query (optionally for a particular entity type)
Run a query ( optionally for a particular entity type )
def run(type=nil, options={})
        raise ArgumentError, "Query API :format option is not supported" if options[:format]
        if options.has_key?(:page) || options.has_key?(:pageSize)
          get_results_page(options.fetch(:page, 1), type, options) || []
        else
          get_all_results(type, options)
        end
      end
def run ( type = nil , options = { } ) raise ArgumentError , "Query API :format option is not supported" if options [ :format ] if options . has_key? ( :page ) || options . has_key? ( :pageSize ) get_results_page ( options . fetch ( :page , 1 ) , type , options ) || [ ] else get_all_results ( type , options ) end end
Run a query (optionally for a particular entity type)
Run a query ( optionally for a particular entity type )
List of results
List of results
Array
type
Name of type to query for - default: nil See integration test of this module for examples
Name of type to query for - default : nil See integration test of this module for examples
options
:pageSize Override automatic pagination
: pageSize Override automatic pagination