Class List Method List File List

# Class: Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode

Inherits:
  VAPI::Bindings::VapiEnum
  - Object
  - VAPI::Bindings::VapiEnum
  - Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode
  show all
Defined in:
  /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb

## Overview

``Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode`` enumerated type Defines different ipv4 modes

## Constant Summary

DHCP =

      IPv4Mode.new('DHCP')

IS_STATIC =

      IPv4Mode.new('IS_STATIC')

UNCONFIGURED =

      IPv4Mode.new('UNCONFIGURED')

## Instance Attribute Summary (collapse)

- - (Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode) dhcp

  IPv4 address is automatically assigned by a DHCP server.

- - (Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode) is_static

  IPv4 address is static.

- - (Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode) unconfigured

  The IPv4 protocol is not configured.

## Class Method Summary (collapse)

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

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

- + (IPv4Mode) from_string(value)

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

## Instance Attribute Details

### - (`Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode`) dhcp

IPv4 address is automatically assigned by a DHCP server.

Returns:

- (`Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode`)

    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
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 272

    class IPv4Mode < 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.appliance.techpreview.networking.ipv4.I_pv4_mode',
                    IPv4Mode)
            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 [IPv4Mode] 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
                    IPv4Mode.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] dhcp
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode]
        #     IPv4 address is automatically assigned by a DHCP server.
        DHCP = IPv4Mode.new('DHCP')

        # @!attribute [rw] is_static
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode]
        #     IPv4 address is static.
        IS_STATIC = IPv4Mode.new('IS_STATIC')

        # @!attribute [rw] unconfigured
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode]
        #     The IPv4 protocol is not configured.
        UNCONFIGURED = IPv4Mode.new('UNCONFIGURED')

    end

### - (`Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode`) is_static

IPv4 address is static.

Returns:

- (`Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode`)

    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
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 272

    class IPv4Mode < 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.appliance.techpreview.networking.ipv4.I_pv4_mode',
                    IPv4Mode)
            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 [IPv4Mode] 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
                    IPv4Mode.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] dhcp
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode]
        #     IPv4 address is automatically assigned by a DHCP server.
        DHCP = IPv4Mode.new('DHCP')

        # @!attribute [rw] is_static
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode]
        #     IPv4 address is static.
        IS_STATIC = IPv4Mode.new('IS_STATIC')

        # @!attribute [rw] unconfigured
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode]
        #     The IPv4 protocol is not configured.
        UNCONFIGURED = IPv4Mode.new('UNCONFIGURED')

    end

### - (`Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode`) unconfigured

The IPv4 protocol is not configured.

Returns:

- (`Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode`)

    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
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 272

    class IPv4Mode < 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.appliance.techpreview.networking.ipv4.I_pv4_mode',
                    IPv4Mode)
            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 [IPv4Mode] 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
                    IPv4Mode.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] dhcp
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode]
        #     IPv4 address is automatically assigned by a DHCP server.
        DHCP = IPv4Mode.new('DHCP')

        # @!attribute [rw] is_static
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode]
        #     IPv4 address is static.
        IS_STATIC = IPv4Mode.new('IS_STATIC')

        # @!attribute [rw] unconfigured
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Ipv4::IPv4Mode]
        #     The IPv4 protocol is not configured.
        UNCONFIGURED = IPv4Mode.new('UNCONFIGURED')

    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

    278
    279
    280
    281
    282
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 278

    def binding_type
        @binding_type ||= VAPI::Bindings::EnumType.new(
            'com.vmware.appliance.techpreview.networking.ipv4.I_pv4_mode',
            IPv4Mode)
    end

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

- (`IPv4Mode`) —

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

    289
    290
    291
    292
    293
    294
    295
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 289

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