class RbVmomi::VIM::Datacenter
Copyright © 2011-2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: MIT
Public Instance Methods
Source
# File lib/rbvmomi/vim/Datacenter.rb, line 6 def find_compute_resource path hostFolder.traverse path, RbVmomi::VIM::ComputeResource end
Traverse the given inventory path
to find a ComputeResource.
Source
# File lib/rbvmomi/vim/Datacenter.rb, line 11 def find_datastore name datastore.find { |x| x.name == name } end
Find the Datastore with the given name
.
Source
# File lib/rbvmomi/vim/Datacenter.rb, line 21 def find_folder path vmFolder.traverse path, RbVmomi::VIM::Folder end
Traverse the given inventory path
to find a Folder.
Source
# File lib/rbvmomi/vim/Datacenter.rb, line 16 def find_vm path vmFolder.traverse path, RbVmomi::VIM::VirtualMachine end
Traverse the given inventory path
to find a VirtualMachine.