Class: Com::Vmware::Appliance::Networking::Dns::Hostname::MessageStatus

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::Hostname::MessageStatus`` enumerated type Individual test result

Constant Summary

FAILURE =
MessageStatus.new('FAILURE')
SUCCESS =
MessageStatus.new('SUCCESS')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Appliance::Networking::Dns::Hostname::MessageStatus) failure

message indicates the test failed.



373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 373

class MessageStatus < 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.hostname.message_status',
                MessageStatus)
        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 [MessageStatus] 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
                MessageStatus.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] failure
    #     @return [Com::Vmware::Appliance::Networking::Dns::Hostname::MessageStatus]
    #     message indicates the test failed.
    FAILURE = MessageStatus.new('FAILURE')

    # @!attribute [rw] success
    #     @return [Com::Vmware::Appliance::Networking::Dns::Hostname::MessageStatus]
    #     message indicates that the test was successful.
    SUCCESS = MessageStatus.new('SUCCESS')

end

- (Com::Vmware::Appliance::Networking::Dns::Hostname::MessageStatus) success

message indicates that the test was successful.



373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 373

class MessageStatus < 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.hostname.message_status',
                MessageStatus)
        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 [MessageStatus] 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
                MessageStatus.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] failure
    #     @return [Com::Vmware::Appliance::Networking::Dns::Hostname::MessageStatus]
    #     message indicates the test failed.
    FAILURE = MessageStatus.new('FAILURE')

    # @!attribute [rw] success
    #     @return [Com::Vmware::Appliance::Networking::Dns::Hostname::MessageStatus]
    #     message indicates that the test was successful.
    SUCCESS = MessageStatus.new('SUCCESS')

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



379
380
381
382
383
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 379

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.appliance.networking.dns.hostname.message_status',
        MessageStatus)
end

+ (MessageStatus) 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:

  • (MessageStatus)

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



390
391
392
393
394
395
396
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 390

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