Class List Method List File List

# Class: Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type

Inherits:
  VAPI::Bindings::VapiEnum
  - Object
  - VAPI::Bindings::VapiEnum
  - Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type
  show all
Defined in:
  /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/boot.rb

## Overview

The ``Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type`` enumerated type defines the valid device types that may be used as bootable devices.

## Constant Summary

CDROM =

      Type.new('CDROM')

DISK =

      Type.new('DISK')

ETHERNET =

      Type.new('ETHERNET')

FLOPPY =

      Type.new('FLOPPY')

## Instance Attribute Summary (collapse)

- - (Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type) cdrom

  Virtual CD-ROM device.

- - (Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type) disk

  Virtual disk device.

- - (Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type) ethernet

  Virtual Ethernet adapter.

- - (Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type) floppy

  Virtual floppy drive.

## 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::Boot::Device::Type`) cdrom

Virtual CD-ROM device.

Returns:

- (`Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type`)

    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/boot.rb', line 244

    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.boot.device.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] cdrom
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual CD-ROM device.
        CDROM = Type.new('CDROM')

        # @!attribute [rw] disk
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual disk device.
        DISK = Type.new('DISK')

        # @!attribute [rw] ethernet
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual Ethernet adapter.
        ETHERNET = Type.new('ETHERNET')

        # @!attribute [rw] floppy
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual floppy drive.
        FLOPPY = Type.new('FLOPPY')

    end

### - (`Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type`) disk

Virtual disk device.

Returns:

- (`Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type`)

    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/boot.rb', line 244

    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.boot.device.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] cdrom
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual CD-ROM device.
        CDROM = Type.new('CDROM')

        # @!attribute [rw] disk
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual disk device.
        DISK = Type.new('DISK')

        # @!attribute [rw] ethernet
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual Ethernet adapter.
        ETHERNET = Type.new('ETHERNET')

        # @!attribute [rw] floppy
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual floppy drive.
        FLOPPY = Type.new('FLOPPY')

    end

### - (`Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type`) ethernet

Virtual Ethernet adapter.

Returns:

- (`Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type`)

    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/boot.rb', line 244

    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.boot.device.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] cdrom
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual CD-ROM device.
        CDROM = Type.new('CDROM')

        # @!attribute [rw] disk
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual disk device.
        DISK = Type.new('DISK')

        # @!attribute [rw] ethernet
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual Ethernet adapter.
        ETHERNET = Type.new('ETHERNET')

        # @!attribute [rw] floppy
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual floppy drive.
        FLOPPY = Type.new('FLOPPY')

    end

### - (`Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type`) floppy

Virtual floppy drive.

Returns:

- (`Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type`)

    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/boot.rb', line 244

    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.boot.device.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] cdrom
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual CD-ROM device.
        CDROM = Type.new('CDROM')

        # @!attribute [rw] disk
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual disk device.
        DISK = Type.new('DISK')

        # @!attribute [rw] ethernet
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual Ethernet adapter.
        ETHERNET = Type.new('ETHERNET')

        # @!attribute [rw] floppy
        #     @return [Com::Vmware::Vcenter::Vm::Hardware::Boot::Device::Type]
        #     Virtual floppy drive.
        FLOPPY = Type.new('FLOPPY')

    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

    250
    251
    252
    253
    254
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/boot.rb', line 250

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

    261
    262
    263
    264
    265
    266
    267
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/boot.rb', line 261

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