Class: Com::Vmware::Appliance::Techpreview::Networking::Proxy::TestStatus

Inherits:
VAPI::Bindings::VapiEnum
  • Object
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::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::Techpreview::Networking::Proxy::TestStatus) green

All tests were successful for given data



1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1245

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.proxy.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::Proxy::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::Proxy::TestStatus]
    #     All tests were successful for given data
    GREEN = TestStatus.new('GREEN')

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

end

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

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



1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1245

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.proxy.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::Proxy::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::Proxy::TestStatus]
    #     All tests were successful for given data
    GREEN = TestStatus.new('GREEN')

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

end

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

All tests failed for given data



1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1245

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.proxy.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::Proxy::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::Proxy::TestStatus]
    #     All tests were successful for given data
    GREEN = TestStatus.new('GREEN')

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



1251
1252
1253
1254
1255
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1251

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



1262
1263
1264
1265
1266
1267
1268
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1262

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