Class: Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingSpec
- Inherits:
-
VAPI::Bindings::VapiStruct
- Object
- VAPI::Bindings::VapiStruct
- Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingSpec
- 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::BackingSpec`` class provides a specification of 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)
-
- (BackingSpec) initialize(ruby_values = nil, struct_value = nil)
constructor
Constructs a new instance.
Constructor Details
- (BackingSpec) initialize(ruby_values = nil, struct_value = nil)
Constructs a new instance.
1956 1957 1958 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1956 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.
1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1931 class BackingSpec < 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_spec', { 'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingType'), 'vmdk_file' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), }, BackingSpec, 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` .
1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1931 class BackingSpec < 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_spec', { 'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingType'), 'vmdk_file' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), }, BackingSpec, 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.
1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1937 def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vcenter.vm.hardware.disk.backing_spec', { 'type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Vcenter::Vm::Hardware::Disk::BackingType'), 'vmdk_file' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::StringType.instance), }, BackingSpec, false, nil) end |