Sha256: 5ebf78416631c6330aca7366e43b41941ba7fe9e046e1d76f778935944c67d2f

Contents?: true

Size: 868 Bytes

Versions: 15

Compression:

Stored size: 868 Bytes

Contents

require 'fog/core/model'

module Fog
  module DNS
    class StormOnDemand
      class Zone < Fog::Model
        identity :id
        attribute :active
        attribute :delegation_checked
        attribute :delegation_status
        attribute :master
        attribute :name
        attribute :notified_serial
        attribute :region_support
        attribute :type

        def initialize(attributes={})
          super
        end

        def delegation
          requires :identity
          service.check_zone_delegation(:id => identity).body['delegation']
        end

        def destroy
          requires :identity
          service.delete_zone(:id => identity).body['deleted']
        end

        def update(options={})
          requires :identity
          service.update_zone({:id => identity}.merge!(options))
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/storm_on_demand/models/dns/zone.rb
fog-1.25.0 lib/fog/storm_on_demand/models/dns/zone.rb
nsidc-fog-1.24.1 lib/fog/storm_on_demand/models/dns/zone.rb
fog-1.24.0 lib/fog/storm_on_demand/models/dns/zone.rb
ns-fog-1.22.11 lib/fog/storm_on_demand/models/dns/zone.rb
ns-fog-1.22.10 lib/fog/storm_on_demand/models/dns/zone.rb
ns-fog-1.22.9 lib/fog/storm_on_demand/models/dns/zone.rb
ns-fog-1.22.8 lib/fog/storm_on_demand/models/dns/zone.rb
ns-fog-1.22.7 lib/fog/storm_on_demand/models/dns/zone.rb
ns-fog-1.22.6 lib/fog/storm_on_demand/models/dns/zone.rb
fog-1.23.0 lib/fog/storm_on_demand/models/dns/zone.rb
ns-fog-1.22.4 lib/fog/storm_on_demand/models/dns/zone.rb
ns-fog-1.22.3 lib/fog/storm_on_demand/models/dns/zone.rb
ns-fog-1.22.2 lib/fog/storm_on_demand/models/dns/zone.rb
fog-1.22.1 lib/fog/storm_on_demand/models/dns/zone.rb