Bases: FieldType
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.
The VersionedObject on which an attribute is being set
The name of the attribute being set
The value being set
A properly-typed value
This is called to deserialize a value.
This method should deserialize a value from the form given by to_primitive() to the designated type.
The VersionedObject on which the value is to be set
The name of the attribute which will hold the value
The serialized form of the value
The natural form of the value
This is called to serialize a value.
This method should serialize a value to the form expected by from_primitive().
The VersionedObject on which the value is set
The name of the attribute holding the value
The natural form of the value
The serialized form of the value
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.