neutron_lib.objects.logapi.event_types module

class neutron_lib.objects.logapi.event_types.SecurityEvent(valid_values, **kwargs)

Bases: oslo_versionedobjects.fields.String

coerce(obj, attr, value)

This is called to coerce (if possible) a value on assignment.

This method should convert the value given into the designated type, or throw an exception if this is not possible.

Param:obj

The VersionedObject on which an attribute is being set

Param:attr

The name of the attribute being set

Param:value

The value being set

Returns

A properly-typed value

class neutron_lib.objects.logapi.event_types.SecurityEventField(**kwargs)

Bases: oslo_versionedobjects.fields.AutoTypedField

AUTO_TYPE = <neutron_lib.objects.logapi.event_types.SecurityEvent object>