Class: VCenterDriver::StoragePod

Inherits:
Storage
  • Object
show all
Defined in:
lib/datastore.rb

Overview

Class StoragePod

Constant Summary

Constants inherited from Storage

VCenterDriver::Storage::CURLBIN

Instance Attribute Summary

Attributes inherited from Storage

#item

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Storage

#create_directory, #create_virtual_disk, disk_or_iso?, exists_one_by_ref_dc_and_type?, get_image_import_template, get_one_image_ds_by_ref_and_dc, #monitor, #obtain_dc, #obtain_fm, #obtain_vdm, #to_one, #to_one_template

Methods included from Memoize

#[], #[]=, #clear, #clear_all

Constructor Details

#initialize(item, _vi_client = nil) ⇒ StoragePod

Returns a new instance of StoragePod.



361
362
363
364
365
366
# File 'lib/datastore.rb', line 361

def initialize(item, _vi_client = nil)
    check_item(item, RbVmomi::VIM::StoragePod)
    @item = item

    super()
end

Class Method Details

.new_from_ref(ref, vi_client) ⇒ Object

This is never cached



369
370
371
# File 'lib/datastore.rb', line 369

def self.new_from_ref(ref, vi_client)
    new(RbVmomi::VIM::StoragePod.new(vi_client.vim, ref), vi_client)
end