Sha256: 922b7d9cf7491d76257092d057309fe03c9811b9f1445789e00fd9fa6eccbad6

Contents?: true

Size: 929 Bytes

Versions: 41

Compression:

Stored size: 929 Bytes

Contents

module Fog
  module DNS
    class Google
      ##
      # Represents a Change resource
      #
      # @see https://developers.google.com/cloud-dns/api/v1/changes
      class Change < Fog::Model
        identity :id

        attribute :kind
        attribute :start_time, :aliases => "startTime"
        attribute :status
        attribute :additions
        attribute :deletions

        DONE_STATE    = "done".freeze
        PENDING_STATE = "pending".freeze

        ##
        # Checks if the change operation is pending
        #
        # @return [Boolean] True if the change operation is pending; False otherwise
        def pending?
          status == PENDING_STATE
        end

        ##
        # Checks if the change operation is done
        #
        # @return [Boolean] True if the change operation is done; False otherwise
        def ready?
          status == DONE_STATE
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
fog-google-1.24.1 lib/fog/dns/google/models/change.rb
fog-google-1.24.0 lib/fog/dns/google/models/change.rb
fog-google-1.23.0 lib/fog/dns/google/models/change.rb
fog-google-1.22.0 lib/fog/dns/google/models/change.rb
fog-google-1.21.1 lib/fog/dns/google/models/change.rb
fog-google-1.21.0 lib/fog/dns/google/models/change.rb
fog-google-1.20.0 lib/fog/dns/google/models/change.rb
fog-google-1.19.0 lib/fog/dns/google/models/change.rb
fog-google-1.18.0 lib/fog/dns/google/models/change.rb
fog-google-1.17.0 lib/fog/dns/google/models/change.rb
fog-google-1.16.1 lib/fog/dns/google/models/change.rb
fog-google-1.16.0 lib/fog/dns/google/models/change.rb
fog-google-1.15.0 lib/fog/dns/google/models/change.rb
fog-google-1.14.0 lib/fog/dns/google/models/change.rb
gitlab-fog-google-1.14.0 lib/fog/dns/google/models/change.rb
fog-google-1.13.0 lib/fog/dns/google/models/change.rb
gitlab-fog-google-1.13.0 lib/fog/dns/google/models/change.rb
fog-google-1.12.1 lib/fog/dns/google/models/change.rb
fog-google-1.12.0 lib/fog/dns/google/models/change.rb
fog-google-1.11.0 lib/fog/dns/google/models/change.rb