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.



348
349
350
351
352
353
# File 'lib/datastore.rb', line 348

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



356
357
358
# File 'lib/datastore.rb', line 356

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