Class List Method List File List

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

Inherits:
  VAPI::Bindings::VapiEnum
  - Object
  - VAPI::Bindings::VapiEnum
  - Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPSecLevel
  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::SNMPSecLevel`` enumerated type Defines SNMP decurity levels

## Constant Summary

NONE =

      SNMPSecLevel.new('NONE')

AUTH =

      SNMPSecLevel.new('AUTH')

PRIV =

      SNMPSecLevel.new('PRIV')

## Instance Attribute Summary (collapse)

- - (Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPSecLevel) auth

  auth.

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

  none.

- - (Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPSecLevel) priv

  priv.

## Class Method Summary (collapse)

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

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

- + (SNMPSecLevel) 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::SNMPSecLevel`) auth

auth

Returns:

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

    1128
    1129
    1130
    1131
    1132
    1133
    1134
    1135
    1136
    1137
    1138
    1139
    1140
    1141
    1142
    1143
    1144
    1145
    1146
    1147
    1148
    1149
    1150
    1151
    1152
    1153
    1154
    1155
    1156
    1157
    1158
    1159
    1160
    1161
    1162
    1163
    1164
    1165
    1166
    1167
    1168
    1169
    1170
    1171
    1172
    1173
    1174
    1175
    1176
    1177
    1178
    1179
    1180
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb', line 1128

    class SNMPSecLevel < 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_sec_level',
                    SNMPSecLevel)
            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 [SNMPSecLevel] 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
                    SNMPSecLevel.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] none
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPSecLevel]
        #     none
        NONE = SNMPSecLevel.new('NONE')

        # @!attribute [rw] auth
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPSecLevel]
        #     auth
        AUTH = SNMPSecLevel.new('AUTH')

        # @!attribute [rw] priv
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPSecLevel]
        #     priv
        PRIV = SNMPSecLevel.new('PRIV')

    end

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

none

Returns:

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

    1128
    1129
    1130
    1131
    1132
    1133
    1134
    1135
    1136
    1137
    1138
    1139
    1140
    1141
    1142
    1143
    1144
    1145
    1146
    1147
    1148
    1149
    1150
    1151
    1152
    1153
    1154
    1155
    1156
    1157
    1158
    1159
    1160
    1161
    1162
    1163
    1164
    1165
    1166
    1167
    1168
    1169
    1170
    1171
    1172
    1173
    1174
    1175
    1176
    1177
    1178
    1179
    1180
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb', line 1128

    class SNMPSecLevel < 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_sec_level',
                    SNMPSecLevel)
            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 [SNMPSecLevel] 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
                    SNMPSecLevel.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] none
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPSecLevel]
        #     none
        NONE = SNMPSecLevel.new('NONE')

        # @!attribute [rw] auth
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPSecLevel]
        #     auth
        AUTH = SNMPSecLevel.new('AUTH')

        # @!attribute [rw] priv
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPSecLevel]
        #     priv
        PRIV = SNMPSecLevel.new('PRIV')

    end

### - (`Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPSecLevel`) priv

priv

Returns:

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

    1128
    1129
    1130
    1131
    1132
    1133
    1134
    1135
    1136
    1137
    1138
    1139
    1140
    1141
    1142
    1143
    1144
    1145
    1146
    1147
    1148
    1149
    1150
    1151
    1152
    1153
    1154
    1155
    1156
    1157
    1158
    1159
    1160
    1161
    1162
    1163
    1164
    1165
    1166
    1167
    1168
    1169
    1170
    1171
    1172
    1173
    1174
    1175
    1176
    1177
    1178
    1179
    1180
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb', line 1128

    class SNMPSecLevel < 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_sec_level',
                    SNMPSecLevel)
            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 [SNMPSecLevel] 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
                    SNMPSecLevel.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] none
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPSecLevel]
        #     none
        NONE = SNMPSecLevel.new('NONE')

        # @!attribute [rw] auth
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPSecLevel]
        #     auth
        AUTH = SNMPSecLevel.new('AUTH')

        # @!attribute [rw] priv
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPSecLevel]
        #     priv
        PRIV = SNMPSecLevel.new('PRIV')

    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

    1134
    1135
    1136
    1137
    1138
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb', line 1134

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

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

- (`SNMPSecLevel`) —

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

    1145
    1146
    1147
    1148
    1149
    1150
    1151
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb', line 1145

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