Class: Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType
- Inherits:
-
VAPI::Bindings::VapiEnum
- Object
- VAPI::Bindings::VapiEnum
- Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType
- 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::Cdrom::DeviceAccessType`` enumerated type defines the valid device access types for a physical device packing of a virtual CD-ROM device.
Constant Summary
- EMULATION =
DeviceAccessType.new('EMULATION')
- PASSTHRU =
DeviceAccessType.new('PASSTHRU')
- PASSTHRU_EXCLUSIVE =
DeviceAccessType.new('PASSTHRU_EXCLUSIVE')
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType) emulation
ATAPI or SCSI device emulation.
-
- (Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType) passthru
Raw passthru device access.
-
- (Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType) passthru_exclusive
Raw passthru device access, with exclusive access to the device.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
-
+ (DeviceAccessType) 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::Cdrom::DeviceAccessType) emulation
ATAPI or SCSI device emulation.
1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1300 class DeviceAccessType < 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.cdrom.device_access_type', DeviceAccessType) 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 [DeviceAccessType] 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 DeviceAccessType.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] emulation # @return [Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType] # ATAPI or SCSI device emulation. EMULATION = DeviceAccessType.new('EMULATION') # @!attribute [rw] passthru # @return [Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType] # Raw passthru device access. PASSTHRU = DeviceAccessType.new('PASSTHRU') # @!attribute [rw] passthru_exclusive # @return [Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType] # Raw passthru device access, with exclusive access to the device. PASSTHRU_EXCLUSIVE = DeviceAccessType.new('PASSTHRU_EXCLUSIVE') end |
- (Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType) passthru
Raw passthru device access.
1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1300 class DeviceAccessType < 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.cdrom.device_access_type', DeviceAccessType) 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 [DeviceAccessType] 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 DeviceAccessType.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] emulation # @return [Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType] # ATAPI or SCSI device emulation. EMULATION = DeviceAccessType.new('EMULATION') # @!attribute [rw] passthru # @return [Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType] # Raw passthru device access. PASSTHRU = DeviceAccessType.new('PASSTHRU') # @!attribute [rw] passthru_exclusive # @return [Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType] # Raw passthru device access, with exclusive access to the device. PASSTHRU_EXCLUSIVE = DeviceAccessType.new('PASSTHRU_EXCLUSIVE') end |
- (Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType) passthru_exclusive
Raw passthru device access, with exclusive access to the device.
1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1300 class DeviceAccessType < 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.cdrom.device_access_type', DeviceAccessType) 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 [DeviceAccessType] 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 DeviceAccessType.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] emulation # @return [Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType] # ATAPI or SCSI device emulation. EMULATION = DeviceAccessType.new('EMULATION') # @!attribute [rw] passthru # @return [Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType] # Raw passthru device access. PASSTHRU = DeviceAccessType.new('PASSTHRU') # @!attribute [rw] passthru_exclusive # @return [Com::Vmware::Vcenter::Vm::Hardware::Cdrom::DeviceAccessType] # Raw passthru device access, with exclusive access to the device. PASSTHRU_EXCLUSIVE = DeviceAccessType.new('PASSTHRU_EXCLUSIVE') end |
Class Method Details
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
1306 1307 1308 1309 1310 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1306 def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.vm.hardware.cdrom.device_access_type', DeviceAccessType) end |
+ (DeviceAccessType) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
1317 1318 1319 1320 1321 1322 1323 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1317 def from_string(value) begin const_get(value) rescue NameError DeviceAccessType.new('UNKNOWN', value) end end |