heat.engine.translation.
Translation
(properties=None)[source]¶Bases: object
Mechanism for translating one properties to other.
Mechanism allows to handle properties - update deprecated/hidden properties to new, resolve values, remove unnecessary. It uses list of TranslationRule objects as rules for translation.
heat.engine.translation.
TranslationRule
(properties, rule, translation_path, value=None, value_name=None, value_path=None, client_plugin=None, finder=None, entity=None, custom_value_path=None)[source]¶Bases: object
Translating mechanism one properties to another.
Mechanism uses list of rules, each defines by this class, and can be executed. Working principe: during resource creating after properties defining resource take list of rules, specified by method translation_rules, which should be overloaded for each resource, if it’s needed, and execute each rule using translate_properties method. Next operations are allowed:
ADD
= 'Add'¶DELETE
= 'Delete'¶REPLACE
= 'Replace'¶RESOLVE
= 'Resolve'¶RULE_KEYS
= ('Add', 'Replace', 'Delete', 'Resolve')¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.