Class: Com::Vmware::Appliance::Networking::Dns::Servers::TestStatus

Inherits:
VAPI::Bindings::VapiEnum
  • Object
show all
Defined in:
/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb

Overview

``Com::Vmware::Appliance::Networking::Dns::Servers::TestStatus`` enumerated type Health indicator

Constant Summary

ORANGE =
TestStatus.new('ORANGE')
GREEN =
TestStatus.new('GREEN')
RED =
TestStatus.new('RED')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Appliance::Networking::Dns::Servers::TestStatus) green

All tests were successful for given data



735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 735

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.networking.dns.servers.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::Networking::Dns::Servers::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::Networking::Dns::Servers::TestStatus]
    #     All tests were successful for given data
    GREEN = TestStatus.new('GREEN')

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

end

- (Com::Vmware::Appliance::Networking::Dns::Servers::TestStatus) orange

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



735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 735

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.networking.dns.servers.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::Networking::Dns::Servers::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::Networking::Dns::Servers::TestStatus]
    #     All tests were successful for given data
    GREEN = TestStatus.new('GREEN')

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

end

- (Com::Vmware::Appliance::Networking::Dns::Servers::TestStatus) red

All tests failed for given data



735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 735

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.networking.dns.servers.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::Networking::Dns::Servers::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::Networking::Dns::Servers::TestStatus]
    #     All tests were successful for given data
    GREEN = TestStatus.new('GREEN')

    # @!attribute [rw] red
    #     @return [Com::Vmware::Appliance::Networking::Dns::Servers::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



741
742
743
744
745
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 741

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.appliance.networking.dns.servers.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



752
753
754
755
756
757
758
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 752

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