Class: Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingInfo
- Inherits:
-
VAPI::Bindings::VapiStruct
- Object
- VAPI::Bindings::VapiStruct
- Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingInfo
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb
Overview
The ``Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingInfo`` class contains information about the physical resource backing a virtual disk.
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingType) type
Backing type for the virtual disk.
-
- (String) vmdk_file
Path of the VMDK file backing the virtual disk.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::StructType) binding_type
Holds (gets or creates) the binding type metadata for this structure type.
Instance Method Summary (collapse)
-
- (BackingInfo) initialize(ruby_values = nil, struct_value = nil)
constructor
Constructs a new instance.
Constructor Details
- (BackingInfo) initialize(ruby_values = nil, struct_value = nil)
Constructs a new instance.
1917 1918 1919 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1917 def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end |
Instance Attribute Details
- (Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingType) type
Backing type for the virtual disk.
1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1892 class BackingInfo < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vcenter.vm.hardware.disk.backing_info', { 'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingType'), 'vmdk_file' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), }, BackingInfo, false, nil) end end attr_accessor :type, :vmdk_file # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end end |
- (String) vmdk_file
Path of the VMDK file backing the virtual disk. This field is optional and it is only relevant when the value of ``type`` is :attr:`Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingType.VMDK_FILE` .
1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1892 class BackingInfo < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vcenter.vm.hardware.disk.backing_info', { 'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingType'), 'vmdk_file' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), }, BackingInfo, false, nil) end end attr_accessor :type, :vmdk_file # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end end |
Class Method Details
+ (VAPI::Bindings::StructType) binding_type
Holds (gets or creates) the binding type metadata for this structure type.
1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1898 def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vcenter.vm.hardware.disk.backing_info', { 'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingType'), 'vmdk_file' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), }, BackingInfo, false, nil) end |