NoneBases: oslo_versionedobjects.fields.BooleanField
NoneBases: oslo_versionedobjects.fields.DateTimeField
NoneBases: oslo_versionedobjects.fields.EnumField
NoneBases: oslo_versionedobjects.fields.FieldType
FlexibleDict.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
NoneBases: oslo_versionedobjects.fields.AutoTypedField
NoneBases: oslo_versionedobjects.fields.IntegerField
NoneBases: oslo_versionedobjects.fields.ListOfObjectsField
NoneBases: oslo_versionedobjects.fields.ListOfStringsField
NoneBases: oslo_versionedobjects.fields.FieldType
MACAddress.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
NoneBases: oslo_versionedobjects.fields.AutoTypedField
NoneBases: oslo_versionedobjects.fields.Enum
NoneBases: oslo_versionedobjects.fields.BaseEnumField
NoneBases: oslo_versionedobjects.fields.Enum
NoneBases: oslo_versionedobjects.fields.BaseEnumField
NoneBases: oslo_versionedobjects.fields.ObjectField
NoneBases: oslo_versionedobjects.fields.String
StringAcceptsCallable.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
NoneBases: oslo_versionedobjects.fields.StringField
NoneBases: oslo_versionedobjects.fields.StringField
Custom StringField object that allows for functions as default
In some cases we need to allow for dynamic defaults based on configuration options, this StringField object allows for a function to be passed as a default, and will only process it at the point the field is coerced
NoneBases: oslo_versionedobjects.fields.UUIDField
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.