mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
26 lines
502 B
Ruby
26 lines
502 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
|
||
|
|
||
|
def up?
|
||
|
self.status == "UP"
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|