Class: VMware::HostSystem

Inherits:
ManagedEntity show all
Defined in:
lib/vmware/objects/host_system.rb

Instance Attribute Summary

Attributes inherited from ManagedEntity

#object_reference

Instance Method Summary collapse

Methods inherited from ManagedEntity

#[], #initialize, #properties

Constructor Details

This class inherits a constructor from VMware::ManagedEntity

Instance Method Details

#datastoresObject



9
10
11
12
13
# File 'lib/vmware/objects/host_system.rb', line 9

def datastores
  self["datastore"].collect do |datastore|
    @session.managed_object_wrapper_factory("Datastore", datastore)
  end
end

#networksObject



3
4
5
6
7
# File 'lib/vmware/objects/host_system.rb', line 3

def networks
  self["network"].collect do |network|
    @session.managed_object_wrapper_factory("Network", network)
  end
end

#vmsObject



15
16
17
18
19
# File 'lib/vmware/objects/host_system.rb', line 15

def vms
  self["vm"].collect do |vm|
    @session.managed_object_wrapper_factory("VirtualMachine", vm)
  end
end