Sha256: 5e5b8a942897e6a1628e1b72229eeb8aacdbd36555083436dab813459fe3e414

Contents?: true

Size: 1.44 KB

Versions: 15

Compression:

Stored size: 1.44 KB

Contents

require 'fog/core/model'

module Fog
  module DNS
    class StormOnDemand
      class Record < Fog::Model
        identity :id
        attribute :adminEmail
        attribute :expiry
        attribute :fullData
        attribute :minimum
        attribute :name
        attribute :nameserver
        attribute :port
        attribute :prio
        attribute :rdata
        attribute :refreshInterval
        attribute :regionOverrides
        attribute :retry
        attribute :serial
        attribute :target
        attribute :ttl
        attribute :type
        attribute :weight
        attribute :zone_id

        def initialize(attributes={})
          super
        end

        def destroy
          requires :identity
          service.delete_record(:id => identity)
          true
        end

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

        def create_region(options)
          requires :identity
          service.create_record_region({:record_id => identity}.merge!(options))
          true
        end

        def delete_region(options)
          requires :identity
          service.delete_record_region({:record_id => identity}.merge!(options))
        end

        def update_region(options)
          requires :identity
          service.update_record_region({:record_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/record.rb
fog-1.25.0 lib/fog/storm_on_demand/models/dns/record.rb
nsidc-fog-1.24.1 lib/fog/storm_on_demand/models/dns/record.rb
fog-1.24.0 lib/fog/storm_on_demand/models/dns/record.rb
ns-fog-1.22.11 lib/fog/storm_on_demand/models/dns/record.rb
ns-fog-1.22.10 lib/fog/storm_on_demand/models/dns/record.rb
ns-fog-1.22.9 lib/fog/storm_on_demand/models/dns/record.rb
ns-fog-1.22.8 lib/fog/storm_on_demand/models/dns/record.rb
ns-fog-1.22.7 lib/fog/storm_on_demand/models/dns/record.rb
ns-fog-1.22.6 lib/fog/storm_on_demand/models/dns/record.rb
fog-1.23.0 lib/fog/storm_on_demand/models/dns/record.rb
ns-fog-1.22.4 lib/fog/storm_on_demand/models/dns/record.rb
ns-fog-1.22.3 lib/fog/storm_on_demand/models/dns/record.rb
ns-fog-1.22.2 lib/fog/storm_on_demand/models/dns/record.rb
fog-1.22.1 lib/fog/storm_on_demand/models/dns/record.rb