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

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

Instance Attribute Summary

Attributes inherited from Fog::OpenStack::Collection

#response

Instance Method Summary collapse

Methods inherited from Fog::OpenStack::Collection

#destroy, #find_by_id, #get, #load_response

Instance Method Details

#all(options = {}) ⇒ Object



10
11
12
13
# File 'lib/fog/openstack/compute/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/openstack/compute/models/availability_zones.rb', line 15

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