Class List Method List File List

# Class: Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus

Inherits:
  VAPI::Bindings::VapiEnum
  - Object
  - VAPI::Bindings::VapiEnum
  - Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus
  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::Routes::TestStatus`` enumerated type Health indicator

## Constant Summary

ORANGE =

      TestStatus.new('ORANGE')

GREEN =

      TestStatus.new('GREEN')

RED =

      TestStatus.new('RED')

## Instance Attribute Summary (collapse)

- - (Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus) green

  All tests were successful for given data.

- - (Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus) orange

  In case data has more than one test, this indicates not all tests were successful.

- - (Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus) red

  All tests failed for given data.

## Class Method Summary (collapse)

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

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

- + (TestStatus) 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::Routes::TestStatus`) green

All tests were successful for given data

Returns:

- (`Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus`)

    1759
    1760
    1761
    1762
    1763
    1764
    1765
    1766
    1767
    1768
    1769
    1770
    1771
    1772
    1773
    1774
    1775
    1776
    1777
    1778
    1779
    1780
    1781
    1782
    1783
    1784
    1785
    1786
    1787
    1788
    1789
    1790
    1791
    1792
    1793
    1794
    1795
    1796
    1797
    1798
    1799
    1800
    1801
    1802
    1803
    1804
    1805
    1806
    1807
    1808
    1809
    1810
    1811
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1759

    class TestStatus < 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.routes.test_status',
                    TestStatus)
            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 [TestStatus] 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
                    TestStatus.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] orange
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus]
        #     In case data has more than one test, this indicates not all tests were successful
        ORANGE = TestStatus.new('ORANGE')

        # @!attribute [rw] green
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus]
        #     All tests were successful for given data
        GREEN = TestStatus.new('GREEN')

        # @!attribute [rw] red
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus]
        #     All tests failed for given data
        RED = TestStatus.new('RED')

    end

### - (`Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus`) orange

In case data has more than one test, this indicates not all tests were successful

Returns:

- (`Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus`)

    1759
    1760
    1761
    1762
    1763
    1764
    1765
    1766
    1767
    1768
    1769
    1770
    1771
    1772
    1773
    1774
    1775
    1776
    1777
    1778
    1779
    1780
    1781
    1782
    1783
    1784
    1785
    1786
    1787
    1788
    1789
    1790
    1791
    1792
    1793
    1794
    1795
    1796
    1797
    1798
    1799
    1800
    1801
    1802
    1803
    1804
    1805
    1806
    1807
    1808
    1809
    1810
    1811
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1759

    class TestStatus < 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.routes.test_status',
                    TestStatus)
            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 [TestStatus] 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
                    TestStatus.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] orange
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus]
        #     In case data has more than one test, this indicates not all tests were successful
        ORANGE = TestStatus.new('ORANGE')

        # @!attribute [rw] green
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus]
        #     All tests were successful for given data
        GREEN = TestStatus.new('GREEN')

        # @!attribute [rw] red
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus]
        #     All tests failed for given data
        RED = TestStatus.new('RED')

    end

### - (`Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus`) red

All tests failed for given data

Returns:

- (`Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus`)

    1759
    1760
    1761
    1762
    1763
    1764
    1765
    1766
    1767
    1768
    1769
    1770
    1771
    1772
    1773
    1774
    1775
    1776
    1777
    1778
    1779
    1780
    1781
    1782
    1783
    1784
    1785
    1786
    1787
    1788
    1789
    1790
    1791
    1792
    1793
    1794
    1795
    1796
    1797
    1798
    1799
    1800
    1801
    1802
    1803
    1804
    1805
    1806
    1807
    1808
    1809
    1810
    1811
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1759

    class TestStatus < 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.routes.test_status',
                    TestStatus)
            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 [TestStatus] 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
                    TestStatus.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] orange
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus]
        #     In case data has more than one test, this indicates not all tests were successful
        ORANGE = TestStatus.new('ORANGE')

        # @!attribute [rw] green
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus]
        #     All tests were successful for given data
        GREEN = TestStatus.new('GREEN')

        # @!attribute [rw] red
        #     @return [Com::Vmware::Appliance::Techpreview::Networking::Routes::TestStatus]
        #     All tests failed for given data
        RED = TestStatus.new('RED')

    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

    1765
    1766
    1767
    1768
    1769
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1765

    def binding_type
        @binding_type ||= VAPI::Bindings::EnumType.new(
            'com.vmware.appliance.techpreview.networking.routes.test_status',
            TestStatus)
    end

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

- (`TestStatus`) —

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

    1776
    1777
    1778
    1779
    1780
    1781
    1782
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1776

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