Sha256: 27d380abc7678562705198717a9cb7be2fbaceaf6d0a487ef9160fbfa816c3ba

Contents?: true

Size: 685 Bytes

Versions: 14

Compression:

Stored size: 685 Bytes

Contents

module Fog
  module Compute
    class Google
      ##
      # Represents a Region resource
      #
      # @see https://developers.google.com/compute/docs/reference/latest/regions
      class Region < Fog::Model
        identity :name

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

        DOWN_STATE = "DOWN"
        UP_STATE   = "UP"

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/compute/google/models/region.rb
fog-google-0.5.5 lib/fog/compute/google/models/region.rb
fog-google-0.5.4 lib/fog/compute/google/models/region.rb
fog-google-0.5.3 lib/fog/compute/google/models/region.rb
fog-google-0.5.2 lib/fog/compute/google/models/region.rb
fog-google-0.5.1 lib/fog/compute/google/models/region.rb
fog-google-0.5.0 lib/fog/compute/google/models/region.rb
fog-google-0.4.2 lib/fog/compute/google/models/region.rb
fog-google-0.4.1 lib/fog/compute/google/models/region.rb
fog-google-0.4.0 lib/fog/compute/google/models/region.rb
fog-google-0.3.2 lib/fog/compute/google/models/region.rb
fog-google-0.3.1 lib/fog/compute/google/models/region.rb
fog-google-0.3.0 lib/fog/compute/google/models/region.rb
fog-google-0.2.0 lib/fog/compute/google/models/region.rb