Class: Com::Vmware::Vcenter::Vm::Hardware::Cdrom::HostBusAdapterType
- Inherits:
-
VAPI::Bindings::VapiEnum
- Object
- VAPI::Bindings::VapiEnum
- Com::Vmware::Vcenter::Vm::Hardware::Cdrom::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::Cdrom::HostBusAdapterType`` enumerated type defines the valid types of host bus adapters that may be used for attaching a Cdrom to a virtual machine.
Constant Summary
- IDE =
HostBusAdapterType.new('IDE')
- SATA =
HostBusAdapterType.new('SATA')
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Vcenter::Vm::Hardware::Cdrom::HostBusAdapterType) ide
Cdrom is attached to an IDE adapter.
-
- (Com::Vmware::Vcenter::Vm::Hardware::Cdrom::HostBusAdapterType) sata
Cdrom is attached to a SATA 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::Cdrom::HostBusAdapterType) ide
Cdrom is attached to an IDE adapter.
1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1175 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.cdrom.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::Cdrom::HostBusAdapterType] # Cdrom is attached to an IDE adapter. IDE = HostBusAdapterType.new('IDE') # @!attribute [rw] sata # @return [Com::Vmware::Vcenter::Vm::Hardware::Cdrom::HostBusAdapterType] # Cdrom is attached to a SATA adapter. SATA = HostBusAdapterType.new('SATA') end |
- (Com::Vmware::Vcenter::Vm::Hardware::Cdrom::HostBusAdapterType) sata
Cdrom is attached to a SATA adapter.
1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1175 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.cdrom.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::Cdrom::HostBusAdapterType] # Cdrom is attached to an IDE adapter. IDE = HostBusAdapterType.new('IDE') # @!attribute [rw] sata # @return [Com::Vmware::Vcenter::Vm::Hardware::Cdrom::HostBusAdapterType] # Cdrom 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.
1181 1182 1183 1184 1185 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1181 def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.vm.hardware.cdrom.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.
1192 1193 1194 1195 1196 1197 1198 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1192 def from_string(value) begin const_get(value) rescue NameError HostBusAdapterType.new('UNKNOWN', value) end end |