Sha256: 57740d55392159c69463a967d5e290bbca1e3a50862a6fe658f92341814f04b9

Contents?: true

Size: 878 Bytes

Versions: 51

Compression:

Stored size: 878 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

51 entries across 51 versions & 3 rubygems

Version Path
fog-maestrodev-1.18.0.20131205181604 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.18.0.20131126122111 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.18.0.20131125111730 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.18.0.20131125083406 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.18.0.20131123105121 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.18.0.20131122203507 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.18.0.20131121075022 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.18.0.20131118164830 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.18.0.20131115184302 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.18.0.20131114200144 lib/fog/storm_on_demand/models/dns/zone.rb
gapinc-fog-1.12.1.2.1 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.18.0.20131111203459 lib/fog/storm_on_demand/models/dns/zone.rb
fog-1.18.0 lib/fog/storm_on_demand/models/dns/zone.rb
fog-1.17.0 lib/fog/storm_on_demand/models/dns/zone.rb
fog-1.16.0 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.15.0.20130927082724 lib/fog/storm_on_demand/models/dns/zone.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/storm_on_demand/models/dns/zone.rb