Class: Fog::Compute::OpenStack::AvailabilityZones

Inherits:
OpenStack::Collection show all
Defined in:
lib/fog/compute/openstack/models/availability_zones.rb

Instance Attribute Summary

Attributes inherited from OpenStack::Collection

#response

Instance Method Summary collapse

Methods inherited from OpenStack::Collection

#destroy, #find_by_id, #get, #load_response

Instance Method Details

#all(options = {}) ⇒ Object



10
11
12
13
# File 'lib/fog/compute/openstack/models/availability_zones.rb', line 10

def all(options = {})
  data = service.list_zones_detailed(options)
  load_response(data, 'availabilityZoneInfo')
end

#summary(options = {}) ⇒ Object



15
16
17
18
# File 'lib/fog/compute/openstack/models/availability_zones.rb', line 15

def summary(options = {})
  data = service.list_zones(options)
  load_response(data, 'availabilityZoneInfo')
end