Class List Method List File List

# Class: Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType

Inherits:
  VAPI::Bindings::VapiEnum
  - Object
  - VAPI::Bindings::VapiEnum
  - Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType
  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::Ethernet::BackingType`` enumerated type defines the valid backing types for a virtual Ethernet adapter.

## Constant Summary

STANDARD_PORTGROUP =

      BackingType.new('STANDARD_PORTGROUP')

HOST_DEVICE =

      BackingType.new('HOST_DEVICE')

DISTRIBUTED_PORTGROUP =

      BackingType.new('DISTRIBUTED_PORTGROUP')

OPAQUE_NETWORK =

      BackingType.new('OPAQUE_NETWORK')

## Instance Attribute Summary (collapse)

- - (Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType) distributed_portgroup

  Distributed virtual switch backing.

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

  Legacy host device network backing.

- - (Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType) opaque_network

  Opaque network backing.

- - (Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType) standard_portgroup

  vSphere standard portgroup network backing.

## 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::Ethernet::BackingType`) distributed_portgroup

Distributed virtual switch backing.

Returns:

- (`Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType`)

    3265
    3266
    3267
    3268
    3269
    3270
    3271
    3272
    3273
    3274
    3275
    3276
    3277
    3278
    3279
    3280
    3281
    3282
    3283
    3284
    3285
    3286
    3287
    3288
    3289
    3290
    3291
    3292
    3293
    3294
    3295
    3296
    3297
    3298
    3299
    3300
    3301
    3302
    3303
    3304
    3305
    3306
    3307
    3308
    3309
    3310
    3311
    3312
    3313
    3314
    3315
    3316
    3317
    3318
    3319
    3320
    3321
    3322
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3265

    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.ethernet.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] standard_portgroup
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     vSphere standard portgroup network backing.
        STANDARD_PORTGROUP = BackingType.new('STANDARD_PORTGROUP')

        # @!attribute [rw] host_device
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     Legacy host device network backing. Imported VMs may have virtual Ethernet adapters with this type of backing, but this type of backing cannot be used to create or to update a virtual Ethernet adapter.
        HOST_DEVICE = BackingType.new('HOST_DEVICE')

        # @!attribute [rw] distributed_portgroup
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     Distributed virtual switch backing.
        DISTRIBUTED_PORTGROUP = BackingType.new('DISTRIBUTED_PORTGROUP')

        # @!attribute [rw] opaque_network
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     Opaque network backing.
        OPAQUE_NETWORK = BackingType.new('OPAQUE_NETWORK')

    end

### - (`Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType`) host_device

Legacy host device network backing. Imported VMs may have virtual Ethernet adapters with this type of backing, but this type of backing cannot be used to create or to update a virtual Ethernet adapter.

Returns:

- (`Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType`)

    3265
    3266
    3267
    3268
    3269
    3270
    3271
    3272
    3273
    3274
    3275
    3276
    3277
    3278
    3279
    3280
    3281
    3282
    3283
    3284
    3285
    3286
    3287
    3288
    3289
    3290
    3291
    3292
    3293
    3294
    3295
    3296
    3297
    3298
    3299
    3300
    3301
    3302
    3303
    3304
    3305
    3306
    3307
    3308
    3309
    3310
    3311
    3312
    3313
    3314
    3315
    3316
    3317
    3318
    3319
    3320
    3321
    3322
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3265

    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.ethernet.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] standard_portgroup
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     vSphere standard portgroup network backing.
        STANDARD_PORTGROUP = BackingType.new('STANDARD_PORTGROUP')

        # @!attribute [rw] host_device
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     Legacy host device network backing. Imported VMs may have virtual Ethernet adapters with this type of backing, but this type of backing cannot be used to create or to update a virtual Ethernet adapter.
        HOST_DEVICE = BackingType.new('HOST_DEVICE')

        # @!attribute [rw] distributed_portgroup
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     Distributed virtual switch backing.
        DISTRIBUTED_PORTGROUP = BackingType.new('DISTRIBUTED_PORTGROUP')

        # @!attribute [rw] opaque_network
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     Opaque network backing.
        OPAQUE_NETWORK = BackingType.new('OPAQUE_NETWORK')

    end

### - (`Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType`) opaque_network

Opaque network backing.

Returns:

- (`Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType`)

    3265
    3266
    3267
    3268
    3269
    3270
    3271
    3272
    3273
    3274
    3275
    3276
    3277
    3278
    3279
    3280
    3281
    3282
    3283
    3284
    3285
    3286
    3287
    3288
    3289
    3290
    3291
    3292
    3293
    3294
    3295
    3296
    3297
    3298
    3299
    3300
    3301
    3302
    3303
    3304
    3305
    3306
    3307
    3308
    3309
    3310
    3311
    3312
    3313
    3314
    3315
    3316
    3317
    3318
    3319
    3320
    3321
    3322
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3265

    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.ethernet.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] standard_portgroup
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     vSphere standard portgroup network backing.
        STANDARD_PORTGROUP = BackingType.new('STANDARD_PORTGROUP')

        # @!attribute [rw] host_device
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     Legacy host device network backing. Imported VMs may have virtual Ethernet adapters with this type of backing, but this type of backing cannot be used to create or to update a virtual Ethernet adapter.
        HOST_DEVICE = BackingType.new('HOST_DEVICE')

        # @!attribute [rw] distributed_portgroup
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     Distributed virtual switch backing.
        DISTRIBUTED_PORTGROUP = BackingType.new('DISTRIBUTED_PORTGROUP')

        # @!attribute [rw] opaque_network
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     Opaque network backing.
        OPAQUE_NETWORK = BackingType.new('OPAQUE_NETWORK')

    end

### - (`Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType`) standard_portgroup

vSphere standard portgroup network backing.

Returns:

- (`Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType`)

    3265
    3266
    3267
    3268
    3269
    3270
    3271
    3272
    3273
    3274
    3275
    3276
    3277
    3278
    3279
    3280
    3281
    3282
    3283
    3284
    3285
    3286
    3287
    3288
    3289
    3290
    3291
    3292
    3293
    3294
    3295
    3296
    3297
    3298
    3299
    3300
    3301
    3302
    3303
    3304
    3305
    3306
    3307
    3308
    3309
    3310
    3311
    3312
    3313
    3314
    3315
    3316
    3317
    3318
    3319
    3320
    3321
    3322
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3265

    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.ethernet.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] standard_portgroup
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     vSphere standard portgroup network backing.
        STANDARD_PORTGROUP = BackingType.new('STANDARD_PORTGROUP')

        # @!attribute [rw] host_device
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     Legacy host device network backing. Imported VMs may have virtual Ethernet adapters with this type of backing, but this type of backing cannot be used to create or to update a virtual Ethernet adapter.
        HOST_DEVICE = BackingType.new('HOST_DEVICE')

        # @!attribute [rw] distributed_portgroup
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     Distributed virtual switch backing.
        DISTRIBUTED_PORTGROUP = BackingType.new('DISTRIBUTED_PORTGROUP')

        # @!attribute [rw] opaque_network
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::BackingType]
        #     Opaque network backing.
        OPAQUE_NETWORK = BackingType.new('OPAQUE_NETWORK')

    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

    3271
    3272
    3273
    3274
    3275
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3271

    def binding_type
        @binding_type ||= VAPI::Bindings::EnumType.new(
            'com.vmware.vcenter.vm.hardware.ethernet.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

    3282
    3283
    3284
    3285
    3286
    3287
    3288
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3282

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