lib/rbvmomi/vim/Folder.rb
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 = @soap.searchIndex.FindByUuid(propSpecs)
    x if x.is_a? type
  end
# Retrieve a virtual machine or host by BIOS UUID.
# @param uuid [String] The UUID to find.
# @param type [Class] Return nil unless the found entity <tt>is_a? type</tt>.
# @param dc [RbVmomi::VIM::Datacenter] Restricts the query to entities in the given Datacenter.
# @return [VIM::ManagedEntity]
Retrieve a virtual machine or host by BIOS UUID.
Retrieve a virtual machine or host by BIOS UUID .
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 = @soap.searchIndex.FindByUuid(propSpecs)
    x if x.is_a? type
  end
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 = @soap . searchIndex . FindByUuid ( propSpecs ) x if x . is_a? type end
Retrieve a virtual machine or host by BIOS UUID.
Retrieve a virtual machine or host by BIOS UUID .
None
VIM::ManagedEntity
uuid
The UUID to find.
The UUID to find .
type
Return nil unless the found entity is_a. type.
Return nil unless the found entity is_a . type .
dc
Restricts the query to entities in the given Datacenter.
Restricts the query to entities in the given Datacenter .