2010-04-22 00:38:49 -04:00
|
|
|
module Fog
|
|
|
|
module Terremark
|
2010-04-25 14:42:35 -04:00
|
|
|
module Shared
|
|
|
|
module Real
|
|
|
|
|
|
|
|
# Destroy a public ip
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * public_ip_id<~Integer> - Id of public ip to destroy
|
|
|
|
#
|
|
|
|
def delete_public_ip(public_ip_id)
|
|
|
|
request(
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'DELETE',
|
|
|
|
:path => "publicIps/#{public_ip_id}"
|
|
|
|
)
|
|
|
|
end
|
2010-04-22 00:38:49 -04:00
|
|
|
|
|
|
|
end
|
|
|
|
|
2010-04-25 14:42:35 -04:00
|
|
|
module Mock
|
2010-04-22 00:38:49 -04:00
|
|
|
|
2010-04-25 14:42:35 -04:00
|
|
|
def delete_public_ip(public_ip_id)
|
2010-05-26 20:38:23 -04:00
|
|
|
Fog::Mock.not_implemented
|
2010-04-25 14:42:35 -04:00
|
|
|
end
|
2010-04-22 00:38:49 -04:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|