mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
40 lines
869 B
Ruby
40 lines
869 B
Ruby
module Fog
|
|
module Terremark
|
|
class Real
|
|
|
|
# Destroy a vapp
|
|
#
|
|
# ==== Parameters
|
|
# * vapp_id<~Integer> - Id of vapp to destroy
|
|
#
|
|
# ==== Returns
|
|
# * response<~Excon::Response>:
|
|
# * body<~Hash>:
|
|
|
|
# FIXME
|
|
|
|
# * 'CatalogItems'<~Array>
|
|
# * 'href'<~String> - linke to item
|
|
# * 'name'<~String> - name of item
|
|
# * 'type'<~String> - type of item
|
|
# * 'description'<~String> - Description of catalog
|
|
# * 'name'<~String> - Name of catalog
|
|
def delete_vapp(vapp_id)
|
|
request(
|
|
:expects => 202,
|
|
:method => 'DELETE',
|
|
:path => "vApp/#{vapp_id}"
|
|
)
|
|
end
|
|
|
|
end
|
|
|
|
class Mock
|
|
|
|
def delete_vapp(vapp_id)
|
|
raise MockNotImplemented.new("Contributions welcome!")
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|