heat.engine.attributes 模块¶
- class heat.engine.attributes.Attribute(attr_name, schema)[source]¶
基类:
object属性模式。
- class heat.engine.attributes.Attributes(res_name, schema, resolver)[source]¶
基类:
Mapping模拟资源属性的集合。
- static as_outputs(resource_name, resource_class, template_type='cfn')[source]¶
具有资源名称的提供程序模板的输出条目字典。
- 参数:
resource_name – 资源的逻辑名称
resource_class – 资源实现类
- 返回值:
指定 resource_class 的属性作为模板输出映射
- property cached_attrs¶
- class heat.engine.attributes.Schema(description=None, support_status=<heat.engine.support.SupportStatus object>, cache_mode='cache_local', type=None)[source]¶
基类:
Schema用于属性的简单模式类。
模式对象可以序列化为字典,遵循使用 dict() 的 HOT 输入参数模式的超集。
- BOOLEAN = '布尔值'¶
- CACHE_LOCAL = 'cache_local'¶
- CACHE_MODES = ('cache_local', 'cache_none')¶
- CACHE_NONE = 'cache_none'¶
- DESCRIPTION = 'description'¶
- INTEGER = '整数'¶
- KEYS = ('description', 'type')¶
- LIST = '列表'¶
- MAP = '映射'¶
- STRING = '字符串'¶
- TYPE = 'type'¶
- TYPES = (None, 'String', 'Map', 'List', 'Integer', 'Boolean')¶
- UNKNOWN = None¶