Class: Com::Vmware::Appliance::Techpreview::ServicesService::ServiceOps

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::Services::ServiceOps`` enumerated type Defines service operations

Constant Summary

CONTROL =
ServiceOps.new('CONTROL')
STATUS =
ServiceOps.new('STATUS')
STOP =
ServiceOps.new('STOP')
RESTART =
ServiceOps.new('RESTART')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Appliance::Techpreview::Services::ServiceOps) control

The service accepts arbitrary commands and arguments.

Returns:

  • (Com::Vmware::Appliance::Techpreview::Services::ServiceOps)


598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 598

class ServiceOps < 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.services.service_ops',
                ServiceOps)
        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 [ServiceOps] 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
                ServiceOps.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] control
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service accepts arbitrary commands and arguments.
    CONTROL = ServiceOps.new('CONTROL')

    # @!attribute [rw] status
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service status can be generated.
    STATUS = ServiceOps.new('STATUS')

    # @!attribute [rw] stop
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service can be stopped.
    STOP = ServiceOps.new('STOP')

    # @!attribute [rw] restart
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service can be started or restarted.
    RESTART = ServiceOps.new('RESTART')

end

- (Com::Vmware::Appliance::Techpreview::Services::ServiceOps) restart

The service can be started or restarted.

Returns:

  • (Com::Vmware::Appliance::Techpreview::Services::ServiceOps)


598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 598

class ServiceOps < 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.services.service_ops',
                ServiceOps)
        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 [ServiceOps] 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
                ServiceOps.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] control
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service accepts arbitrary commands and arguments.
    CONTROL = ServiceOps.new('CONTROL')

    # @!attribute [rw] status
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service status can be generated.
    STATUS = ServiceOps.new('STATUS')

    # @!attribute [rw] stop
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service can be stopped.
    STOP = ServiceOps.new('STOP')

    # @!attribute [rw] restart
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service can be started or restarted.
    RESTART = ServiceOps.new('RESTART')

end

- (Com::Vmware::Appliance::Techpreview::Services::ServiceOps) status

The service status can be generated.

Returns:

  • (Com::Vmware::Appliance::Techpreview::Services::ServiceOps)


598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 598

class ServiceOps < 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.services.service_ops',
                ServiceOps)
        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 [ServiceOps] 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
                ServiceOps.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] control
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service accepts arbitrary commands and arguments.
    CONTROL = ServiceOps.new('CONTROL')

    # @!attribute [rw] status
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service status can be generated.
    STATUS = ServiceOps.new('STATUS')

    # @!attribute [rw] stop
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service can be stopped.
    STOP = ServiceOps.new('STOP')

    # @!attribute [rw] restart
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service can be started or restarted.
    RESTART = ServiceOps.new('RESTART')

end

- (Com::Vmware::Appliance::Techpreview::Services::ServiceOps) stop

The service can be stopped.

Returns:

  • (Com::Vmware::Appliance::Techpreview::Services::ServiceOps)


598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 598

class ServiceOps < 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.services.service_ops',
                ServiceOps)
        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 [ServiceOps] 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
                ServiceOps.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] control
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service accepts arbitrary commands and arguments.
    CONTROL = ServiceOps.new('CONTROL')

    # @!attribute [rw] status
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service status can be generated.
    STATUS = ServiceOps.new('STATUS')

    # @!attribute [rw] stop
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service can be stopped.
    STOP = ServiceOps.new('STOP')

    # @!attribute [rw] restart
    #     @return [Com::Vmware::Appliance::Techpreview::Services::ServiceOps]
    #     The service can be started or restarted.
    RESTART = ServiceOps.new('RESTART')

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



604
605
606
607
608
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 604

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.appliance.techpreview.services.service_ops',
        ServiceOps)
end

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

  • (ServiceOps)

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



615
616
617
618
619
620
621
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 615

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