Options specific to resources managed by Keystone (Domain, User, etc).
keystone.common.resource_options.
ResourceOption
(option_id, option_name, validator=<function _validator>, json_schema_validation=None)[source]¶Bases: object
json_schema
¶option_id
¶option_name
¶keystone.common.resource_options.
ResourceOptionRegistry
(registry_name)[source]¶Bases: object
json_schema
¶option_ids
¶option_names
¶options
¶options_by_name
¶keystone.common.resource_options.
ref_mapper_to_dict_options
(ref)[source]¶Convert the values in _resource_option_mapper to options dict.
Parameters: | ref – the DB model ref to extract options from |
---|---|
Returns: | Dict of options as expected to be returned out of to_dict in the options key. |
keystone.common.resource_options.
resource_options_ref_to_mapper
(ref, option_class)[source]¶Convert the _resource_options property-dict to options attr map.
The model must have the resource option mapper located in the
_resource_option_mapper
attribute.
The model must have the resource option registry located in the
resource_options_registry
attribute.
The option dict with key(opt_id), value(opt_value) will be pulled from
ref._resource_options
.
Parameters: |
|
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.