Class List Method List File List

# Class: Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyStatus

Inherits:
  VAPI::Bindings::VapiEnum
  - Object
  - VAPI::Bindings::VapiEnum
  - Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyStatus
  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::Proxy::ProxyStatus`` enumerated type Defines state of proxy

## Constant Summary

DISABLED =

      ProxyStatus.new('DISABLED')

ENABLED =

      ProxyStatus.new('ENABLED')

## Instance Attribute Summary (collapse)

- - (Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyStatus) disabled

  proxy configuration is disabled.

- - (Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyStatus) enabled

  proxy configuration is enabled.

## Class Method Summary (collapse)

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

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

- + (ProxyStatus) 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::Proxy::ProxyStatus`) disabled

proxy configuration is disabled

Returns:

- (`Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyStatus`)

    1364
    1365
    1366
    1367
    1368
    1369
    1370
    1371
    1372
    1373
    1374
    1375
    1376
    1377
    1378
    1379
    1380
    1381
    1382
    1383
    1384
    1385
    1386
    1387
    1388
    1389
    1390
    1391
    1392
    1393
    1394
    1395
    1396
    1397
    1398
    1399
    1400
    1401
    1402
    1403
    1404
    1405
    1406
    1407
    1408
    1409
    1410
    1411
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1364

    class ProxyStatus < 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.proxy.proxy_status',
                    ProxyStatus)
            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 [ProxyStatus] 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
                    ProxyStatus.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] disabled
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyStatus]
        #     proxy configuration is disabled
        DISABLED = ProxyStatus.new('DISABLED')

        # @!attribute [rw] enabled
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyStatus]
        #     proxy configuration is enabled
        ENABLED = ProxyStatus.new('ENABLED')

    end

### - (`Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyStatus`) enabled

proxy configuration is enabled

Returns:

- (`Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyStatus`)

    1364
    1365
    1366
    1367
    1368
    1369
    1370
    1371
    1372
    1373
    1374
    1375
    1376
    1377
    1378
    1379
    1380
    1381
    1382
    1383
    1384
    1385
    1386
    1387
    1388
    1389
    1390
    1391
    1392
    1393
    1394
    1395
    1396
    1397
    1398
    1399
    1400
    1401
    1402
    1403
    1404
    1405
    1406
    1407
    1408
    1409
    1410
    1411
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1364

    class ProxyStatus < 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.proxy.proxy_status',
                    ProxyStatus)
            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 [ProxyStatus] 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
                    ProxyStatus.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] disabled
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyStatus]
        #     proxy configuration is disabled
        DISABLED = ProxyStatus.new('DISABLED')

        # @!attribute [rw] enabled
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyStatus]
        #     proxy configuration is enabled
        ENABLED = ProxyStatus.new('ENABLED')

    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

    1370
    1371
    1372
    1373
    1374
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1370

    def binding_type
        @binding_type ||= VAPI::Bindings::EnumType.new(
            'com.vmware.appliance.techpreview.networking.proxy.proxy_status',
            ProxyStatus)
    end

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

- (`ProxyStatus`) —

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

    1381
    1382
    1383
    1384
    1385
    1386
    1387
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1381

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