Class: Com::Vmware::Appliance::Networking::Dns::Servers::MessageStatus
- Inherits:
-
VAPI::Bindings::VapiEnum
- Object
- VAPI::Bindings::VapiEnum
- Com::Vmware::Appliance::Networking::Dns::Servers::MessageStatus
- 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::MessageStatus`` enumerated type Individual test result
Constant Summary
- FAILURE =
MessageStatus.new('FAILURE')
- SUCCESS =
MessageStatus.new('SUCCESS')
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Appliance::Networking::Dns::Servers::MessageStatus) failure
message indicates the test failed.
-
- (Com::Vmware::Appliance::Networking::Dns::Servers::MessageStatus) success
message indicates that the test was successful.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
-
+ (MessageStatus) 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::Networking::Dns::Servers::MessageStatus) failure
message indicates the test failed.
797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 797 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.servers.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::Servers::MessageStatus] # message indicates the test failed. FAILURE = MessageStatus.new('FAILURE') # @!attribute [rw] success # @return [Com::Vmware::Appliance::Networking::Dns::Servers::MessageStatus] # message indicates that the test was successful. SUCCESS = MessageStatus.new('SUCCESS') end |
- (Com::Vmware::Appliance::Networking::Dns::Servers::MessageStatus) success
message indicates that the test was successful.
797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 797 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.servers.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::Servers::MessageStatus] # message indicates the test failed. FAILURE = MessageStatus.new('FAILURE') # @!attribute [rw] success # @return [Com::Vmware::Appliance::Networking::Dns::Servers::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.
803 804 805 806 807 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 803 def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.appliance.networking.dns.servers.message_status', MessageStatus) end |
+ (MessageStatus) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
814 815 816 817 818 819 820 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/networking/dns.rb', line 814 def from_string(value) begin const_get(value) rescue NameError MessageStatus.new('UNKNOWN', value) end end |