Class: RbVmomi::VIM

Inherits:
Object
  • Object
show all
Includes:
RVC::Connection
Defined in:
lib/rvc/modules/vsan.rb,
lib/rvc/modules/spbm.rb,
lib/rvc/vim.rb

Instance Attribute Summary

Attributes included from RVC::InventoryObject

#rvc_arc, #rvc_parent

Instance Method Summary collapse

Methods included from RVC::Connection

#_connection, included

Methods included from RVC::InventoryObject

included, #ls_text, #rvc_children, #rvc_link, #rvc_path, #rvc_path_str, #rvc_relative_path, #rvc_relative_path_str, #traverse_one

Methods included from RVC::ObjectWithFields::ClassMethods

#field, #fields

Methods included from RVC::ObjectWithFields

#field, #field_properties, #perfmetrics

Constructor Details

#initialize(opts) ⇒ VIM

Returns a new instance of VIM.



2439
2440
2441
# File 'lib/rvc/modules/vsan.rb', line 2439

def initialize opts
  super opts
end

Instance Method Details

#childrenObject



30
31
32
# File 'lib/rvc/vim.rb', line 30

def children
  rootFolder.children
end

#display_infoObject



34
35
36
# File 'lib/rvc/vim.rb', line 34

def display_info
  puts serviceContent.about.fullName
end

#pbmObject



28
29
30
# File 'lib/rvc/modules/spbm.rb', line 28

def pbm
  @pbm ||= PBM.connect self, :insecure => true
end

#pbm=(x) ⇒ Object



32
33
34
# File 'lib/rvc/modules/spbm.rb', line 32

def pbm= x
  @pbm = nil
end

#spawn_additional_connectionObject



2443
2444
2445
2446
2447
2448
# File 'lib/rvc/modules/vsan.rb', line 2443

def spawn_additional_connection
  c1 = RbVmomi::VIM.new(@opts)
  c1.cookie = self.cookie
  c1.rev = self.rev
  c1
end