1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/google/models/compute/zone.rb
Carlos Sanchez 4c2736d0c2 [google][compute] Update to API v1
Simplify attachment of boot disk, get_as_boot_disk no longer needed
Add missing Disk.get_object method
Allow setting deviceName when attaching a disk
Add disks mocks
2013-12-19 21:37:46 +01:00

26 lines
555 B
Ruby

require 'fog/core/model'
module Fog
module Compute
class Google
class Zone < Fog::Model
identity :name
attribute :description
attribute :status
attribute :maintenance_windows, :aliases => 'maintenanceWindows'
attribute :begin_time, :aliases => 'beginTime'
attribute :end_time, :aliases => 'endTime'
attribute :quotas
attribute :region
attribute :self_link, :aliases => 'selfLink'
def up?
self.status == "UP"
end
end
end
end
end