Class: Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType
- Inherits:
-
VAPI::Bindings::VapiEnum
- Object
- VAPI::Bindings::VapiEnum
- Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType
- 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::HostBusAdapterType`` enumerated type defines the valid types of host bus adapters that may be used for attaching a virtual storage device to a virtual machine.
Constant Summary
- IDE =
HostBusAdapterType.new('IDE')
- SCSI =
HostBusAdapterType.new('SCSI')
- SATA =
HostBusAdapterType.new('SATA')
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType) ide
Disk is attached to an IDE adapter.
-
- (Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType) sata
Disk is attached to a SATA adapter.
-
- (Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType) scsi
Disk is attached to a SCSI adapter.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
-
+ (HostBusAdapterType) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
Instance Attribute Details
- (Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType) ide
Disk is attached to an IDE adapter.
2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2213 class HostBusAdapterType < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.vm.hardware.disk.host_bus_adapter_type', HostBusAdapterType) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [HostBusAdapterType] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError HostBusAdapterType.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] ide # @return [Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType] # Disk is attached to an IDE adapter. IDE = HostBusAdapterType.new('IDE') # @!attribute [rw] scsi # @return [Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType] # Disk is attached to a SCSI adapter. SCSI = HostBusAdapterType.new('SCSI') # @!attribute [rw] sata # @return [Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType] # Disk is attached to a SATA adapter. SATA = HostBusAdapterType.new('SATA') end |
- (Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType) sata
Disk is attached to a SATA adapter.
2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2213 class HostBusAdapterType < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.vm.hardware.disk.host_bus_adapter_type', HostBusAdapterType) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [HostBusAdapterType] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError HostBusAdapterType.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] ide # @return [Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType] # Disk is attached to an IDE adapter. IDE = HostBusAdapterType.new('IDE') # @!attribute [rw] scsi # @return [Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType] # Disk is attached to a SCSI adapter. SCSI = HostBusAdapterType.new('SCSI') # @!attribute [rw] sata # @return [Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType] # Disk is attached to a SATA adapter. SATA = HostBusAdapterType.new('SATA') end |
- (Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType) scsi
Disk is attached to a SCSI adapter.
2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2213 class HostBusAdapterType < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.vm.hardware.disk.host_bus_adapter_type', HostBusAdapterType) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [HostBusAdapterType] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError HostBusAdapterType.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] ide # @return [Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType] # Disk is attached to an IDE adapter. IDE = HostBusAdapterType.new('IDE') # @!attribute [rw] scsi # @return [Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType] # Disk is attached to a SCSI adapter. SCSI = HostBusAdapterType.new('SCSI') # @!attribute [rw] sata # @return [Com::Vmware::Vcenter::Vm::Hardware::Disk::HostBusAdapterType] # Disk is attached to a SATA adapter. SATA = HostBusAdapterType.new('SATA') end |
Class Method Details
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
2219 2220 2221 2222 2223 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2219 def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.vm.hardware.disk.host_bus_adapter_type', HostBusAdapterType) end |
+ (HostBusAdapterType) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
2230 2231 2232 2233 2234 2235 2236 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 2230 def from_string(value) begin const_get(value) rescue NameError HostBusAdapterType.new('UNKNOWN', value) end end |