Class List Method List File List

# Class: Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type

Inherits:
  VAPI::Bindings::VapiEnum
  - Object
  - VAPI::Bindings::VapiEnum
  - Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type
  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::Type`` enumerated type defines the valid emulation types for a virtual SCSI adapter.

## Constant Summary

BUSLOGIC =

      Type.new('BUSLOGIC')

LSILOGIC =

      Type.new('LSILOGIC')

LSILOGICSAS =

      Type.new('LSILOGICSAS')

PVSCSI =

      Type.new('PVSCSI')

## Instance Attribute Summary (collapse)

- - (Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type) buslogic

  BusLogic host bus adapter.

- - (Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type) lsilogic

  LSI Logic host bus adapter.

- - (Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type) lsilogicsas

  LSI Logic SAS 1068 host bus adapter.

- - (Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type) pvscsi

  Paravirtualized host bus adapter.

## Class Method Summary (collapse)

- + (VAPI::Bindings::EnumType) binding_type

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

- + (Type) 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::Adapter::Scsi::Type`) buslogic

BusLogic host bus adapter.

Returns:

- (`Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type`)

    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 922

    class Type < 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.type',
                    Type)
            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 [Type] 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
                    Type.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] buslogic
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     BusLogic host bus adapter.
        BUSLOGIC = Type.new('BUSLOGIC')

        # @!attribute [rw] lsilogic
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     LSI Logic host bus adapter.
        LSILOGIC = Type.new('LSILOGIC')

        # @!attribute [rw] lsilogicsas
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     LSI Logic SAS 1068 host bus adapter.
        LSILOGICSAS = Type.new('LSILOGICSAS')

        # @!attribute [rw] pvscsi
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     Paravirtualized host bus adapter.
        PVSCSI = Type.new('PVSCSI')

    end

### - (`Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type`) lsilogic

LSI Logic host bus adapter.

Returns:

- (`Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type`)

    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 922

    class Type < 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.type',
                    Type)
            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 [Type] 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
                    Type.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] buslogic
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     BusLogic host bus adapter.
        BUSLOGIC = Type.new('BUSLOGIC')

        # @!attribute [rw] lsilogic
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     LSI Logic host bus adapter.
        LSILOGIC = Type.new('LSILOGIC')

        # @!attribute [rw] lsilogicsas
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     LSI Logic SAS 1068 host bus adapter.
        LSILOGICSAS = Type.new('LSILOGICSAS')

        # @!attribute [rw] pvscsi
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     Paravirtualized host bus adapter.
        PVSCSI = Type.new('PVSCSI')

    end

### - (`Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type`) lsilogicsas

LSI Logic SAS 1068 host bus adapter.

Returns:

- (`Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type`)

    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 922

    class Type < 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.type',
                    Type)
            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 [Type] 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
                    Type.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] buslogic
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     BusLogic host bus adapter.
        BUSLOGIC = Type.new('BUSLOGIC')

        # @!attribute [rw] lsilogic
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     LSI Logic host bus adapter.
        LSILOGIC = Type.new('LSILOGIC')

        # @!attribute [rw] lsilogicsas
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     LSI Logic SAS 1068 host bus adapter.
        LSILOGICSAS = Type.new('LSILOGICSAS')

        # @!attribute [rw] pvscsi
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     Paravirtualized host bus adapter.
        PVSCSI = Type.new('PVSCSI')

    end

### - (`Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type`) pvscsi

Paravirtualized host bus adapter.

Returns:

- (`Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type`)

    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 922

    class Type < 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.type',
                    Type)
            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 [Type] 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
                    Type.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] buslogic
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     BusLogic host bus adapter.
        BUSLOGIC = Type.new('BUSLOGIC')

        # @!attribute [rw] lsilogic
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     LSI Logic host bus adapter.
        LSILOGIC = Type.new('LSILOGIC')

        # @!attribute [rw] lsilogicsas
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     LSI Logic SAS 1068 host bus adapter.
        LSILOGICSAS = Type.new('LSILOGICSAS')

        # @!attribute [rw] pvscsi
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Adapter::Scsi::Type]
        #     Paravirtualized host bus adapter.
        PVSCSI = Type.new('PVSCSI')

    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

    928
    929
    930
    931
    932
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 928

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

### + (`Type`) 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:

- (`Type`) —

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

    939
    940
    941
    942
    943
    944
    945
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 939

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