Sha256: 7e07092cec7b7785927f41434f062863bb835e02ca61873bb972cf0da980fd4b

Contents?: true

Size: 555 Bytes

Versions: 13

Compression:

Stored size: 555 Bytes

Contents

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

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
fog-1.22.0 lib/fog/google/models/compute/zone.rb
fog-1.21.0 lib/fog/google/models/compute/zone.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/google/models/compute/zone.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/google/models/compute/zone.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/google/models/compute/zone.rb
fog-1.20.0 lib/fog/google/models/compute/zone.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/google/models/compute/zone.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/google/models/compute/zone.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/google/models/compute/zone.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/google/models/compute/zone.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/google/models/compute/zone.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/google/models/compute/zone.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/google/models/compute/zone.rb