Class: RbVmomi::VIM::HostSystem
- Inherits:
-
Object
- Object
- RbVmomi::VIM::HostSystem
- Defined in:
- lib/rbvmomi/vim/HostSystem.rb
Instance Method Summary collapse
- #cli_info_fetcher ⇒ Object
- #create_dynamic_managed_object(inst) ⇒ Object
- #direct? ⇒ Boolean
- #dti ⇒ Object
- #dtm ⇒ Object
- #esxcli ⇒ Object
- #mme ⇒ Object
Instance Method Details
#cli_info_fetcher ⇒ Object
21 22 23 24 25 26 |
# File 'lib/rbvmomi/vim/HostSystem.rb', line 21 def cli_info_fetcher # XXX there can be more than one return @cached_cli_info_fetcher if @cached_cli_info_fetcher inst = dtm.DynamicTypeMgrQueryMoInstances.find { |x| x.moType == 'vim.CLIInfo' } @cached_cli_info_fetcher = create_dynamic_managed_object inst end |
#create_dynamic_managed_object(inst) ⇒ Object
16 17 18 19 |
# File 'lib/rbvmomi/vim/HostSystem.rb', line 16 def create_dynamic_managed_object inst wsdlName = dti.managedTypeInfo.find { |x| x.name == inst.moType }.wsdlName _connection.type(wsdlName).new(_connection, inst.id) end |
#direct? ⇒ Boolean
32 33 34 |
# File 'lib/rbvmomi/vim/HostSystem.rb', line 32 def direct? @ref == 'ha-host' end |
#dti ⇒ Object
12 13 14 |
# File 'lib/rbvmomi/vim/HostSystem.rb', line 12 def dti @cached_dti ||= dtm.DynamicTypeMgrQueryTypeInfo end |
#dtm ⇒ Object
8 9 10 |
# File 'lib/rbvmomi/vim/HostSystem.rb', line 8 def dtm @cached_dtm ||= RetrieveDynamicTypeManager() end |
#esxcli ⇒ Object
4 5 6 |
# File 'lib/rbvmomi/vim/HostSystem.rb', line 4 def esxcli @cached_esxcli ||= VIM::EsxcliNamespace.root(self) end |
#mme ⇒ Object
28 29 30 |
# File 'lib/rbvmomi/vim/HostSystem.rb', line 28 def mme @cached_mme ||= RetrieveManagedMethodExecuter() end |