2010-12-09 14:14:48 -05:00
|
|
|
module Fog
|
|
|
|
module Slicehost
|
2010-12-21 18:24:14 -05:00
|
|
|
class DNS
|
2010-12-09 14:14:48 -05:00
|
|
|
class Real
|
|
|
|
|
|
|
|
# Delete a zone from Slicehost's DNS
|
|
|
|
# ==== Parameters
|
|
|
|
# * zone_id<~Integer> - Id of zone to delete
|
|
|
|
#
|
|
|
|
# ==== Returns
|
2010-12-10 11:56:49 -05:00
|
|
|
# * response<~Excon::Response>: - HTTP status code will be result
|
2010-12-09 14:14:48 -05:00
|
|
|
def delete_zone(zone_id)
|
|
|
|
request(
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'DELETE',
|
|
|
|
:path => "zones/#{zone_id}.xml"
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
class Mock
|
|
|
|
|
|
|
|
def delete_zone(zone_id)
|
|
|
|
Fog::Mock.not_implemented
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|