Class List Method List File List

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

Inherits:
  VAPI::Bindings::VapiEnum
  - Object
  - VAPI::Bindings::VapiEnum
  - Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPv3Notfication
  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::SNMPv3Notfication`` enumerated type Defines SNMP v3 notification types

## Constant Summary

INFORM =

      SNMPv3Notfication.new('INFORM')

TRAP =

      SNMPv3Notfication.new('TRAP')

## Instance Attribute Summary (collapse)

- - (Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPv3Notfication) inform

  inform.

- - (Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPv3Notfication) trap

  trap.

## Class Method Summary (collapse)

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

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

- + (SNMPv3Notfication) 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::SNMPv3Notfication`) inform

inform

Returns:

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

    1190
    1191
    1192
    1193
    1194
    1195
    1196
    1197
    1198
    1199
    1200
    1201
    1202
    1203
    1204
    1205
    1206
    1207
    1208
    1209
    1210
    1211
    1212
    1213
    1214
    1215
    1216
    1217
    1218
    1219
    1220
    1221
    1222
    1223
    1224
    1225
    1226
    1227
    1228
    1229
    1230
    1231
    1232
    1233
    1234
    1235
    1236
    1237
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb', line 1190

    class SNMPv3Notfication < 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.SNM_pv3_notfication',
                    SNMPv3Notfication)
            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 [SNMPv3Notfication] 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
                    SNMPv3Notfication.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] inform
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPv3Notfication]
        #     inform
        INFORM = SNMPv3Notfication.new('INFORM')

        # @!attribute [rw] trap
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPv3Notfication]
        #     trap
        TRAP = SNMPv3Notfication.new('TRAP')

    end

### - (`Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPv3Notfication`) trap

trap

Returns:

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

    1190
    1191
    1192
    1193
    1194
    1195
    1196
    1197
    1198
    1199
    1200
    1201
    1202
    1203
    1204
    1205
    1206
    1207
    1208
    1209
    1210
    1211
    1212
    1213
    1214
    1215
    1216
    1217
    1218
    1219
    1220
    1221
    1222
    1223
    1224
    1225
    1226
    1227
    1228
    1229
    1230
    1231
    1232
    1233
    1234
    1235
    1236
    1237
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb', line 1190

    class SNMPv3Notfication < 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.SNM_pv3_notfication',
                    SNMPv3Notfication)
            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 [SNMPv3Notfication] 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
                    SNMPv3Notfication.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] inform
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPv3Notfication]
        #     inform
        INFORM = SNMPv3Notfication.new('INFORM')

        # @!attribute [rw] trap
        #     @return [Com::Vmware::Appliance::Techpreview::Monitoring::Snmp::SNMPv3Notfication]
        #     trap
        TRAP = SNMPv3Notfication.new('TRAP')

    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

    1196
    1197
    1198
    1199
    1200
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb', line 1196

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

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

- (`SNMPv3Notfication`) —

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

    1207
    1208
    1209
    1210
    1211
    1212
    1213
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/monitoring.rb', line 1207

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