Class List Method List File List

# Class: Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPPrivProto

Inherits:
  VAPI::Bindings::VapiEnum
  - Object
  - VAPI::Bindings::VapiEnum
  - Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPPrivProto
  show all
Defined in:
  /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb

## Overview

``Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPPrivProto`` enumerated type Defines SNMP privacy protocols

## Constant Summary

AE_S128 =

      SNMPPrivProto.new('AE_S128')

NONE =

      SNMPPrivProto.new('NONE')

## Instance Attribute Summary (collapse)

- - (Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPPrivProto) ae_s128

  AES128.

- - (Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPPrivProto) none

  NONE.

## Class Method Summary (collapse)

- + (VAPI::Bindings::EnumType) binding_type

  Holds (gets or creates) the binding type metadata for this enumeration type.

- + (SNMPPrivProto) from_string(value)

  Converts from a string value (perhaps off the wire) to an instance of this enum type.

## Instance Attribute Details

### - (`Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPPrivProto`) ae_s128

AES128

Returns:

- (`Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPPrivProto`)

    1068
    1069
    1070
    1071
    1072
    1073
    1074
    1075
    1076
    1077
    1078
    1079
    1080
    1081
    1082
    1083
    1084
    1085
    1086
    1087
    1088
    1089
    1090
    1091
    1092
    1093
    1094
    1095
    1096
    1097
    1098
    1099
    1100
    1101
    1102
    1103
    1104
    1105
    1106
    1107
    1108
    1109
    1110
    1111
    1112
    1113
    1114
    1115
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb', line 1068

    class SNMPPrivProto < 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.monitoring.snmp.SNMP_priv_proto',
                    SNMPPrivProto)
            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 [SNMPPrivProto] 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
                    SNMPPrivProto.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] ae_s128
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPPrivProto]
        #     AES128
        AE_S128 = SNMPPrivProto.new('AE_S128')

        # @!attribute [rw] none
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPPrivProto]
        #     NONE
        NONE = SNMPPrivProto.new('NONE')

    end

### - (`Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPPrivProto`) none

NONE

Returns:

- (`Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPPrivProto`)

    1068
    1069
    1070
    1071
    1072
    1073
    1074
    1075
    1076
    1077
    1078
    1079
    1080
    1081
    1082
    1083
    1084
    1085
    1086
    1087
    1088
    1089
    1090
    1091
    1092
    1093
    1094
    1095
    1096
    1097
    1098
    1099
    1100
    1101
    1102
    1103
    1104
    1105
    1106
    1107
    1108
    1109
    1110
    1111
    1112
    1113
    1114
    1115
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb', line 1068

    class SNMPPrivProto < 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.monitoring.snmp.SNMP_priv_proto',
                    SNMPPrivProto)
            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 [SNMPPrivProto] 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
                    SNMPPrivProto.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] ae_s128
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPPrivProto]
        #     AES128
        AE_S128 = SNMPPrivProto.new('AE_S128')

        # @!attribute [rw] none
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPPrivProto]
        #     NONE
        NONE = SNMPPrivProto.new('NONE')

    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

    1074
    1075
    1076
    1077
    1078
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb', line 1074

    def binding_type
        @binding_type ||= VAPI::Bindings::EnumType.new(
            'com.vmware.appliance.techpreview.monitoring.snmp.SNMP_priv_proto',
            SNMPPrivProto)
    end

### + (`SNMPPrivProto`) 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:

- (`SNMPPrivProto`) —

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

    1085
    1086
    1087
    1088
    1089
    1090
    1091
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb', line 1085

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