neutron_lib.objects.logapi.event_types module¶
- class neutron_lib.objects.logapi.event_types.SecurityEvent(valid_values, **kwargs)¶
Bases:
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(nullable: bool = False, default: ~oslo_versionedobjects.fields.T | type[~oslo_versionedobjects.fields.UnspecifiedDefault] = <class 'oslo_versionedobjects.fields.UnspecifiedDefault'>, read_only: bool = False)¶
Bases:
AutoTypedField- AUTO_TYPE: FieldType[T] = <neutron_lib.objects.logapi.event_types.SecurityEvent object>¶