2010-09-08 18:00:47 -04:00
|
|
|
module Fog
|
2011-06-16 19:28:54 -04:00
|
|
|
module Compute
|
|
|
|
class Slicehost
|
2010-09-08 18:00:47 -04:00
|
|
|
class Real
|
|
|
|
|
2010-12-10 11:56:49 -05:00
|
|
|
# Delete a given slice
|
2010-09-08 18:00:47 -04:00
|
|
|
# ==== Parameters
|
2010-12-10 11:56:49 -05:00
|
|
|
# * slice_id<~Integer> - Id of slice to delete
|
2010-09-08 18:00:47 -04:00
|
|
|
#
|
|
|
|
# ==== Returns
|
2010-12-10 11:56:49 -05:00
|
|
|
# * response<~Excon::Response>: - HTTP status code is the return value
|
2010-09-08 18:00:47 -04:00
|
|
|
def delete_slice(slice_id)
|
|
|
|
request(
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'DELETE',
|
|
|
|
:path => "slices/#{slice_id}.xml"
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|