# -*- encoding: utf-8 -*- module Fog module Vcloud class Compute class Real def configure_vm_password(vmdata) edit_uri = vmdata[:href] body = < Specifies Guest OS Customization Settings true false #{vmdata[:VirtualMachineId]} false false true false #{vmdata[:AdminPassword]} false #{vmdata[:ComputerName]} EOF request( :body => body, :expects => 202, :headers => {'Content-Type' => vmdata[:type] }, :method => 'PUT', :uri => "#{edit_uri}", :parse => true ) end end end end end