2010-12-10 17:33:36 -05:00
|
|
|
module Fog
|
|
|
|
module Linode
|
2010-12-21 18:11:29 -05:00
|
|
|
class DNS
|
2010-12-10 17:33:36 -05:00
|
|
|
class Real
|
|
|
|
|
|
|
|
# Delete the given domain from the list Linode hosts
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * domain_id<~Integer>: id of domain to delete
|
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Excon::Response>:
|
|
|
|
# * body<~Hash>:
|
|
|
|
# * DATA<~Hash>:
|
|
|
|
# TODO: docs
|
|
|
|
def domain_delete(domain_id)
|
|
|
|
request(
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
|
|
|
:query => { :api_action => 'domain.delete', :domainId => domain_id }
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
class Mock
|
|
|
|
|
2010-12-11 11:32:41 -05:00
|
|
|
def domain_delete(domain_id)
|
2010-12-10 17:33:36 -05:00
|
|
|
Fog::Mock.not_implemented
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|