Method: Fog::OpenStack::Compute::Snapshots#all

Defined in:
lib/fog/openstack/compute/models/snapshots.rb

#all(options = {}) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fog/openstack/compute/models/snapshots.rb', line 10

def all(options = {})
  if !options.kind_of?(Hash)
    if options
      Fog::Logger.deprecation('Calling OpenStack[:compute].snapshots.all(true) is deprecated, use .snapshots.all')
    else
      Fog::Logger.deprecation('Calling OpenStack[:compute].snapshots.all(false) is deprecated, use .snapshots.summary')
    end
    load_response(service.list_snapshots(options), 'snapshots')
  else
    load_response(service.list_snapshots_detail(options), 'snapshots')
  end
end