Sha256: 9d22392b59aa67ca741b76d485f39b3eebd00afe94bd93d57470932cbdf1ed8a

Contents?: true

Size: 535 Bytes

Versions: 41

Compression:

Stored size: 535 Bytes

Contents

module Fog
  module Compute
    class Google
      class Zone < Fog::Model
        identity :name

        attribute :creation_timestamp, :aliases => "creationTimestamp"
        attribute :deprecated
        attribute :description
        attribute :id
        attribute :kind
        attribute :region
        attribute :self_link, :aliases => "selfLink"
        attribute :status

        UP_STATE = "UP".freeze
        DOWN_STATE = "DOWN".freeze

        def up?
          status == UP_STATE
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
fog-google-1.0.0 lib/fog/compute/google/models/zone.rb