lib/fog/vcloud_director/requests/compute/post_consolidate_vm_vapp_template.rb
module Fog
module Compute
class VcloudDirector
class Real
# Consolidate VM snapshots.
#
# 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 VM.
# @return [Excon::Response]
# * body<~Hash>:
#
# @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/operations/POST-ConsolidateVm-vAppTemplate.html
# @since vCloud API version 1.5
def post_consolidate_vm_vapp_template(id)
request(
:expects => 202,
:method => 'POST',
:parser => Fog::ToHashDocument.new,
:path => "vAppTemplate/#{id}/action/consolidate"
)
end
end
end
end
end