lib/fog/vcloud_director/requests/compute/delete_vapp.rb in fog-maestrodev-1.15.0.20130927082724 vs lib/fog/vcloud_director/requests/compute/delete_vapp.rb in fog-maestrodev-1.18.0.20131111203459
- old
+ new
@@ -1,20 +1,29 @@
module Fog
module Compute
class VcloudDirector
class Real
-
- def delete_vapp(vapp_id)
-
+ # Delete a vApp or VM.
+ #
+ # This operation is asynchronous and returns a task that you can
+ # monitor to track the progress of the request.
+ #
+ # @param [String] id Object identifier of the vApp.
+ # @return [Excon::Response]
+ # * body<~Hash>:
+ #
+ # @raise [Fog::Compute::VcloudDirector::BadRequest]
+ #
+ # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/operations/DELETE-VApp.html
+ # @since vCloud API version 0.9
+ def delete_vapp(id)
request(
- :expects => 202,
- :method => 'DELETE',
- :parser => Fog::ToHashDocument.new,
- :path => "vApp/#{vapp_id}"
+ :expects => 202,
+ :method => 'DELETE',
+ :parser => Fog::ToHashDocument.new,
+ :path => "vApp/#{id}"
)
end
-
end
end
end
end
-