Class: Com::Vmware::Appliance::Vmon::Service::StartupType

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

Overview

The ``Com::Vmware::Appliance::Vmon::Service::StartupType`` enumerated type defines valid Startup Type for services managed by vMon.

Constant Summary

MANUAL =
StartupType.new('MANUAL')
AUTOMATIC =
StartupType.new('AUTOMATIC')
DISABLED =
StartupType.new('DISABLED')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Appliance::Vmon::Service::StartupType) automatic

Service Startup type is Automatic, thus during starting all services or issuing explicit start on the service will start it.



351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
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
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/vmon.rb', line 351

class StartupType < 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.vmon.service.startup_type',
                StartupType)
        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 [StartupType] 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
                StartupType.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] manual
    #     @return [Com::Vmware::Appliance::Vmon::Service::StartupType]
    #     Service Startup type is Manual, thus issuing an explicit start on the service will start it.
    MANUAL = StartupType.new('MANUAL')

    # @!attribute [rw] automatic
    #     @return [Com::Vmware::Appliance::Vmon::Service::StartupType]
    #     Service Startup type is Automatic, thus during starting all services or issuing explicit start on the service will start it.
    AUTOMATIC = StartupType.new('AUTOMATIC')

    # @!attribute [rw] disabled
    #     @return [Com::Vmware::Appliance::Vmon::Service::StartupType]
    #     Service Startup type is Disabled, thus it will not start unless the startup type changes to manual or automatic.
    DISABLED = StartupType.new('DISABLED')

end

- (Com::Vmware::Appliance::Vmon::Service::StartupType) disabled

Service Startup type is Disabled, thus it will not start unless the startup type changes to manual or automatic.



351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
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
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/vmon.rb', line 351

class StartupType < 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.vmon.service.startup_type',
                StartupType)
        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 [StartupType] 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
                StartupType.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] manual
    #     @return [Com::Vmware::Appliance::Vmon::Service::StartupType]
    #     Service Startup type is Manual, thus issuing an explicit start on the service will start it.
    MANUAL = StartupType.new('MANUAL')

    # @!attribute [rw] automatic
    #     @return [Com::Vmware::Appliance::Vmon::Service::StartupType]
    #     Service Startup type is Automatic, thus during starting all services or issuing explicit start on the service will start it.
    AUTOMATIC = StartupType.new('AUTOMATIC')

    # @!attribute [rw] disabled
    #     @return [Com::Vmware::Appliance::Vmon::Service::StartupType]
    #     Service Startup type is Disabled, thus it will not start unless the startup type changes to manual or automatic.
    DISABLED = StartupType.new('DISABLED')

end

- (Com::Vmware::Appliance::Vmon::Service::StartupType) manual

Service Startup type is Manual, thus issuing an explicit start on the service will start it.



351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
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
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/vmon.rb', line 351

class StartupType < 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.vmon.service.startup_type',
                StartupType)
        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 [StartupType] 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
                StartupType.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] manual
    #     @return [Com::Vmware::Appliance::Vmon::Service::StartupType]
    #     Service Startup type is Manual, thus issuing an explicit start on the service will start it.
    MANUAL = StartupType.new('MANUAL')

    # @!attribute [rw] automatic
    #     @return [Com::Vmware::Appliance::Vmon::Service::StartupType]
    #     Service Startup type is Automatic, thus during starting all services or issuing explicit start on the service will start it.
    AUTOMATIC = StartupType.new('AUTOMATIC')

    # @!attribute [rw] disabled
    #     @return [Com::Vmware::Appliance::Vmon::Service::StartupType]
    #     Service Startup type is Disabled, thus it will not start unless the startup type changes to manual or automatic.
    DISABLED = StartupType.new('DISABLED')

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



357
358
359
360
361
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/vmon.rb', line 357

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.appliance.vmon.service.startup_type',
        StartupType)
end

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

  • (StartupType)

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



368
369
370
371
372
373
374
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/vmon.rb', line 368

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