Class: Com::Vmware::Appliance::Techpreview::NtpService::NTPStatus

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::Ntp::NTPStatus`` enumerated type Defines NTP status

Constant Summary

DOWN =
NTPStatus.new('DOWN')
UNKNOWN =
NTPStatus.new('UNKNOWN')
UP =
NTPStatus.new('UP')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus) down

NTP daemon is not running.

Returns:

  • (Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus)


219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 219

class NTPStatus < 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.ntp.NTP_status',
                NTPStatus)
        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 [NTPStatus] 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
                NTPStatus.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] down
    #     @return [Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus]
    #     NTP daemon is not running.
    DOWN = NTPStatus.new('DOWN')

    # @!attribute [rw] unknown
    #     @return [Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus]
    #     Cannot retrieve NTP daemon status.
    UNKNOWN = NTPStatus.new('UNKNOWN')

    # @!attribute [rw] up
    #     @return [Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus]
    #     NTP daemon is running.
    UP = NTPStatus.new('UP')

end

- (Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus) unknown

Cannot retrieve NTP daemon status.

Returns:

  • (Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus)


219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 219

class NTPStatus < 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.ntp.NTP_status',
                NTPStatus)
        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 [NTPStatus] 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
                NTPStatus.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] down
    #     @return [Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus]
    #     NTP daemon is not running.
    DOWN = NTPStatus.new('DOWN')

    # @!attribute [rw] unknown
    #     @return [Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus]
    #     Cannot retrieve NTP daemon status.
    UNKNOWN = NTPStatus.new('UNKNOWN')

    # @!attribute [rw] up
    #     @return [Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus]
    #     NTP daemon is running.
    UP = NTPStatus.new('UP')

end

- (Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus) up

NTP daemon is running.

Returns:

  • (Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus)


219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 219

class NTPStatus < 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.ntp.NTP_status',
                NTPStatus)
        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 [NTPStatus] 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
                NTPStatus.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] down
    #     @return [Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus]
    #     NTP daemon is not running.
    DOWN = NTPStatus.new('DOWN')

    # @!attribute [rw] unknown
    #     @return [Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus]
    #     Cannot retrieve NTP daemon status.
    UNKNOWN = NTPStatus.new('UNKNOWN')

    # @!attribute [rw] up
    #     @return [Com::Vmware::Appliance::Techpreview::Ntp::NTPStatus]
    #     NTP daemon is running.
    UP = NTPStatus.new('UP')

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



225
226
227
228
229
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 225

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.appliance.techpreview.ntp.NTP_status',
        NTPStatus)
end

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

  • (NTPStatus)

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



236
237
238
239
240
241
242
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 236

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