Class: Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType
- Inherits:
-
VAPI::Bindings::VapiEnum
- Object
- VAPI::Bindings::VapiEnum
- Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType
- 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::Floppy::BackingType`` enumerated type defines the valid backing types for a virtual floppy drive.
Constant Summary
- IMAGE_FILE =
BackingType.new('IMAGE_FILE')
- HOST_DEVICE =
BackingType.new('HOST_DEVICE')
- CLIENT_DEVICE =
BackingType.new('CLIENT_DEVICE')
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType) client_device
Virtual floppy drive is backed by a device on the client that is connected to the virtual machine console.
-
- (Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType) host_device
Virtual floppy drive is backed by a device on the host where the virtual machine is running.
-
- (Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType) image_file
Virtual floppy drive is backed by an image file.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
-
+ (BackingType) 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::Floppy::BackingType) client_device
Virtual floppy drive is backed by a device on the client that is connected to the virtual machine console.
3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3985 class BackingType < 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.floppy.backing_type', BackingType) 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 [BackingType] 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 BackingType.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] image_file # @return [Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType] # Virtual floppy drive is backed by an image file. IMAGE_FILE = BackingType.new('IMAGE_FILE') # @!attribute [rw] host_device # @return [Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType] # Virtual floppy drive is backed by a device on the host where the virtual machine is running. HOST_DEVICE = BackingType.new('HOST_DEVICE') # @!attribute [rw] client_device # @return [Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType] # Virtual floppy drive is backed by a device on the client that is connected to the virtual machine console. CLIENT_DEVICE = BackingType.new('CLIENT_DEVICE') end |
- (Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType) host_device
Virtual floppy drive is backed by a device on the host where the virtual machine is running.
3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3985 class BackingType < 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.floppy.backing_type', BackingType) 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 [BackingType] 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 BackingType.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] image_file # @return [Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType] # Virtual floppy drive is backed by an image file. IMAGE_FILE = BackingType.new('IMAGE_FILE') # @!attribute [rw] host_device # @return [Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType] # Virtual floppy drive is backed by a device on the host where the virtual machine is running. HOST_DEVICE = BackingType.new('HOST_DEVICE') # @!attribute [rw] client_device # @return [Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType] # Virtual floppy drive is backed by a device on the client that is connected to the virtual machine console. CLIENT_DEVICE = BackingType.new('CLIENT_DEVICE') end |
- (Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType) image_file
Virtual floppy drive is backed by an image file.
3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3985 class BackingType < 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.floppy.backing_type', BackingType) 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 [BackingType] 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 BackingType.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] image_file # @return [Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType] # Virtual floppy drive is backed by an image file. IMAGE_FILE = BackingType.new('IMAGE_FILE') # @!attribute [rw] host_device # @return [Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType] # Virtual floppy drive is backed by a device on the host where the virtual machine is running. HOST_DEVICE = BackingType.new('HOST_DEVICE') # @!attribute [rw] client_device # @return [Com::Vmware::Vcenter::Vm::Hardware::Floppy::BackingType] # Virtual floppy drive is backed by a device on the client that is connected to the virtual machine console. CLIENT_DEVICE = BackingType.new('CLIENT_DEVICE') end |
Class Method Details
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
3991 3992 3993 3994 3995 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3991 def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.vm.hardware.floppy.backing_type', BackingType) end |
+ (BackingType) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
4002 4003 4004 4005 4006 4007 4008 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 4002 def from_string(value) begin const_get(value) rescue NameError BackingType.new('UNKNOWN', value) end end |