Sha256: 42156bdf2f7f1692442fb48c2dfbb1674b9f358303284aa5881c7634bc34fd1e

Contents?: true

Size: 427 Bytes

Versions: 2

Compression:

Stored size: 427 Bytes

Contents

module Fog
  module DNS
    class AzureRM
      class Zone < Fog::Model
        identity :name
        attribute :id
        attribute :resource_group

        def save
          requires :name
          requires :resource_group
          service.create_zone(resource_group, name)
        end

        def destroy
          service.delete_zone(name, resource_group)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-azure-rm-0.0.1 lib/fog/azurerm/models/dns/zone.rb
fog-azure-rm-0.0.0 lib/fog/azurerm/models/dns/zone.rb