1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/dns/models/bluebox/zone.rb

54 lines
1 KiB
Ruby

require 'fog/core/model'
require 'fog/dns/models/bluebox/records'
module Fog
module Bluebox
class DNS
class Zone < Fog::Model
identity :id
attribute :name
attribute :serial
attribute :ttl
attribute :retry
attribute :expires
attribute :record_count, :aliases => 'record-count'
attribute :refresh
attribute :minimum
def initialize(attributes = {})
super(attributes)
end
def destroy
raise Fog::Errors::Error.new('Not implemented')
end
def records
@records ||= begin
Fog::Bluebox::DNS::Records.new(
:zone => self,
:connection => connection
)
end
end
def nameservers
[
'ns1.blueblxgrid.com',
'ns2.blueblxgrid.com',
'ns3.blueblxgrid.com'
]
end
def save
raise Fog::Errors::Error.new('Not implemented')
end
end
end
end
end