Class: Com::Vmware::Appliance::Techpreview::System::Update::AutoUpdateNotification

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

Overview

``Com::Vmware::Appliance::Techpreview::System::Update::AutoUpdateNotification`` enumerated type Defines state for automatic update notification

Constant Summary

DISABLED =
AutoUpdateNotification.new('DISABLED')
ENABLED =
AutoUpdateNotification.new('ENABLED')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Appliance::Techpreview::System::Update::AutoUpdateNotification) disabled

Automatic update notification is disabled. Disable periodically query the configured url for updates.



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
272
273
274
275
276
277
278
279
280
281
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/system.rb', line 234

class AutoUpdateNotification < 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.system.update.auto_update_notification',
                AutoUpdateNotification)
        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 [AutoUpdateNotification] 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
                AutoUpdateNotification.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::System::Update::AutoUpdateNotification]
    #     Automatic update notification is disabled. Disable periodically query the configured url for updates.
    DISABLED = AutoUpdateNotification.new('DISABLED')

    # @!attribute [rw] enabled
    #     @return [Com::Vmware::Appliance::Techpreview::System::Update::AutoUpdateNotification]
    #     Automatic update notification is enabled. Enable periodically query the configured url for updates.
    ENABLED = AutoUpdateNotification.new('ENABLED')

end

- (Com::Vmware::Appliance::Techpreview::System::Update::AutoUpdateNotification) enabled

Automatic update notification is enabled. Enable periodically query the configured url for updates.



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
272
273
274
275
276
277
278
279
280
281
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/system.rb', line 234

class AutoUpdateNotification < 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.system.update.auto_update_notification',
                AutoUpdateNotification)
        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 [AutoUpdateNotification] 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
                AutoUpdateNotification.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::System::Update::AutoUpdateNotification]
    #     Automatic update notification is disabled. Disable periodically query the configured url for updates.
    DISABLED = AutoUpdateNotification.new('DISABLED')

    # @!attribute [rw] enabled
    #     @return [Com::Vmware::Appliance::Techpreview::System::Update::AutoUpdateNotification]
    #     Automatic update notification is enabled. Enable periodically query the configured url for updates.
    ENABLED = AutoUpdateNotification.new('ENABLED')

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



240
241
242
243
244
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/system.rb', line 240

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.appliance.techpreview.system.update.auto_update_notification',
        AutoUpdateNotification)
end

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

  • (AutoUpdateNotification)

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



251
252
253
254
255
256
257
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/system.rb', line 251

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