# File lib/rbvmomi/vim/Folder.rb, line 46 def findByUuid uuid, type=RbVmomi::VIM::VirtualMachine, dc=nil propSpecs = { :entity => self, :uuid => uuid, :instanceUuid => false, :vmSearch => type == RbVmomi::VIM::VirtualMachine } propSpecs[:datacenter] = dc if dc x = _connection.searchIndex.FindByUuid(propSpecs) x if x.is_a? type end