Sha256: 24dee9a975ecfbafa1286054f4adfb8fcaf279c0d3df2331b924fa1dd5f56e90
Contents?: true
Size: 1.33 KB
Versions: 3
Compression:
Stored size: 1.33 KB
Contents
require 'fog/vcloud_director/generators/compute/reconfigure_vm' module Fog module Compute class VcloudDirector class Real # Updates VM configuration. # # 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. # @param [Hash] options # # @option options [String] :name Change the VM's name [required]. # @option options [String] :description VM description # # @return [Excon::Response] # * body<~Hash>: # * :Tasks<~Hash>: # * :Task<~Hash>: # # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/operations/POST-ReconfigureVm.html # @since vCloud API version 5.1 def post_reconfigure_vm(id, current, options) request( :body => Fog::Generators::Compute::VcloudDirector::ReconfigureVm.generate_xml(current, options), :expects => 202, :headers => {'Content-Type' => 'application/vnd.vmware.vcloud.vm+xml'}, :method => 'POST', :parser => Fog::ToHashDocument.new, :path => "vApp/#{id}/action/reconfigureVm" ) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems