Class: Com::Vmware::Vcenter::Vm::Hardware::Parallel::BackingType

Inherits:
VAPI::Bindings::VapiEnum
  • Object
show all
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::Parallel::BackingType`` enumerated type defines the valid backing types for a virtual parallel port.

Constant Summary

FILE =
BackingType.new('FILE')
HOST_DEVICE =
BackingType.new('HOST_DEVICE')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Vcenter::Vm::Hardware::Parallel::BackingType) file

Virtual parallel port is backed by a file.



4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 4925

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.parallel.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] file
    #     @return [Com::Vmware::Vcenter::Vm::Hardware::Parallel::BackingType]
    #     Virtual parallel port is backed by a file.
    FILE = BackingType.new('FILE')

    # @!attribute [rw] host_device
    #     @return [Com::Vmware::Vcenter::Vm::Hardware::Parallel::BackingType]
    #     Virtual parallel port is backed by a device on the host where the virtual machine is running.
    HOST_DEVICE = BackingType.new('HOST_DEVICE')

end

- (Com::Vmware::Vcenter::Vm::Hardware::Parallel::BackingType) host_device

Virtual parallel port is backed by a device on the host where the virtual machine is running.



4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 4925

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.parallel.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] file
    #     @return [Com::Vmware::Vcenter::Vm::Hardware::Parallel::BackingType]
    #     Virtual parallel port is backed by a file.
    FILE = BackingType.new('FILE')

    # @!attribute [rw] host_device
    #     @return [Com::Vmware::Vcenter::Vm::Hardware::Parallel::BackingType]
    #     Virtual parallel port is backed by a device on the host where the virtual machine is running.
    HOST_DEVICE = BackingType.new('HOST_DEVICE')

end

Class Method Details

+ (VAPI::Bindings::EnumType) binding_type

Holds (gets or creates) the binding type metadata for this enumeration type.

Returns:

  • (VAPI::Bindings::EnumType)

    the binding type



4931
4932
4933
4934
4935
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 4931

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.vcenter.vm.hardware.parallel.backing_type',
        BackingType)
end

+ (BackingType) from_string(value)

Converts from a string value (perhaps off the wire) to an instance of this enum type.

Parameters:

  • value (String)

    the actual value of the enum instance

Returns:

  • (BackingType)

    the instance found for the value, otherwise an unknown instance will be built for the value



4942
4943
4944
4945
4946
4947
4948
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 4942

def from_string(value)
    begin
        const_get(value)
    rescue NameError
        BackingType.new('UNKNOWN', value)
    end
end