Class: Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing

Inherits:
VAPI::Bindings::VapiEnum
  • Object
show all
Defined in:
/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb

Overview

The ``Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing`` enumerated type defines the valid bus sharing modes for a virtual SCSI adapter.

Constant Summary

NONE =
Sharing.new('NONE')
VIRTUAL =
Sharing.new('VIRTUAL')
PHYSICAL =
Sharing.new('PHYSICAL')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing) none

The virtual SCSI bus is not shared.



992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 992

class Sharing < 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.adapter.scsi.sharing',
                Sharing)
        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 [Sharing] 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
                Sharing.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] none
    #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing]
    #     The virtual SCSI bus is not shared.
    NONE = Sharing.new('NONE')

    # @!attribute [rw] virtual
    #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing]
    #     The virtual SCSI bus is shared between two or more virtual machines. In this case, no physical machine is involved.
    VIRTUAL = Sharing.new('VIRTUAL')

    # @!attribute [rw] physical
    #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing]
    #     The virtual SCSI bus is shared between two or more virtual machines residing on different physical hosts.
    PHYSICAL = Sharing.new('PHYSICAL')

end

- (Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing) physical

The virtual SCSI bus is shared between two or more virtual machines residing on different physical hosts.



992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 992

class Sharing < 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.adapter.scsi.sharing',
                Sharing)
        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 [Sharing] 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
                Sharing.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] none
    #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing]
    #     The virtual SCSI bus is not shared.
    NONE = Sharing.new('NONE')

    # @!attribute [rw] virtual
    #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing]
    #     The virtual SCSI bus is shared between two or more virtual machines. In this case, no physical machine is involved.
    VIRTUAL = Sharing.new('VIRTUAL')

    # @!attribute [rw] physical
    #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing]
    #     The virtual SCSI bus is shared between two or more virtual machines residing on different physical hosts.
    PHYSICAL = Sharing.new('PHYSICAL')

end

- (Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing) virtual

The virtual SCSI bus is shared between two or more virtual machines. In this case, no physical machine is involved.



992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 992

class Sharing < 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.adapter.scsi.sharing',
                Sharing)
        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 [Sharing] 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
                Sharing.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] none
    #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing]
    #     The virtual SCSI bus is not shared.
    NONE = Sharing.new('NONE')

    # @!attribute [rw] virtual
    #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing]
    #     The virtual SCSI bus is shared between two or more virtual machines. In this case, no physical machine is involved.
    VIRTUAL = Sharing.new('VIRTUAL')

    # @!attribute [rw] physical
    #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Sharing]
    #     The virtual SCSI bus is shared between two or more virtual machines residing on different physical hosts.
    PHYSICAL = Sharing.new('PHYSICAL')

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



998
999
1000
1001
1002
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 998

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.vcenter.vm.hardware.adapter.scsi.sharing',
        Sharing)
end

+ (Sharing) 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:

  • (Sharing)

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



1009
1010
1011
1012
1013
1014
1015
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 1009

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