Class: Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode

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

Overview

``Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode`` enumerated type Defines different timsync modes

Constant Summary

DISABLED =
TimeSyncMode.new('DISABLED')
NTP =
TimeSyncMode.new('NTP')
HOST =
TimeSyncMode.new('HOST')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode) disabled

Time synchronization is disabled.



981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 981

class TimeSyncMode < 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.timesync.time_sync_mode',
                TimeSyncMode)
        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 [TimeSyncMode] 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
                TimeSyncMode.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] disabled
    #     @return [Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode]
    #     Time synchronization is disabled.
    DISABLED = TimeSyncMode.new('DISABLED')

    # @!attribute [rw] ntp
    #     @return [Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode]
    #     NTP-based time synchronization.
    NTP = TimeSyncMode.new('NTP')

    # @!attribute [rw] host
    #     @return [Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode]
    #     VMware Tool-based time synchronization.
    HOST = TimeSyncMode.new('HOST')

end

- (Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode) host

VMware Tool-based time synchronization.



981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 981

class TimeSyncMode < 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.timesync.time_sync_mode',
                TimeSyncMode)
        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 [TimeSyncMode] 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
                TimeSyncMode.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] disabled
    #     @return [Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode]
    #     Time synchronization is disabled.
    DISABLED = TimeSyncMode.new('DISABLED')

    # @!attribute [rw] ntp
    #     @return [Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode]
    #     NTP-based time synchronization.
    NTP = TimeSyncMode.new('NTP')

    # @!attribute [rw] host
    #     @return [Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode]
    #     VMware Tool-based time synchronization.
    HOST = TimeSyncMode.new('HOST')

end

- (Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode) ntp

NTP-based time synchronization.



981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 981

class TimeSyncMode < 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.timesync.time_sync_mode',
                TimeSyncMode)
        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 [TimeSyncMode] 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
                TimeSyncMode.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] disabled
    #     @return [Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode]
    #     Time synchronization is disabled.
    DISABLED = TimeSyncMode.new('DISABLED')

    # @!attribute [rw] ntp
    #     @return [Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode]
    #     NTP-based time synchronization.
    NTP = TimeSyncMode.new('NTP')

    # @!attribute [rw] host
    #     @return [Com::Vmware::Appliance::Techpreview::Timesync::TimeSyncMode]
    #     VMware Tool-based time synchronization.
    HOST = TimeSyncMode.new('HOST')

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



987
988
989
990
991
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 987

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.appliance.techpreview.timesync.time_sync_mode',
        TimeSyncMode)
end

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

  • (TimeSyncMode)

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



998
999
1000
1001
1002
1003
1004
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 998

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