heat.engine.software_config_io 模块

用于处理软件配置的输入和输出定义的 API。

class heat.engine.software_config_io.IOConfig(**config)[源代码]

基类: object

单个输入或输出的配置数据的基类。

as_dict()[源代码]

返回适合持久化的字典表示形式。

name()[源代码]

返回输入或输出的名称。

class heat.engine.software_config_io.InputConfig(value=<object object>, **config)[源代码]

继承自:IOConfig

表示单个输入的配置数据的类。

as_dict()[源代码]

返回适合持久化的字典表示形式。

default()[源代码]

返回输入的默认值。

input_data()[源代码]

返回输入名称-值对。

replace_on_change()[源代码]
schema = {'default': <heat.engine.properties.Schema 对象>, 'description': <heat.engine.properties.Schema 对象>, 'name': <heat.engine.properties.Schema 对象>, 'replace_on_change': <heat.engine.properties.Schema 对象>, 'type': <heat.engine.properties.Schema 对象>}
class heat.engine.software_config_io.OutputConfig(**config)[源代码]

继承自:IOConfig

表示单个输出的配置数据的类。

error_output()[源代码]

如果输出的存在表示错误,则返回 True。

schema = {'description': <heat.engine.properties.Schema 对象>, 'error_output': <heat.engine.properties.Schema 对象>, 'name': <heat.engine.properties.Schema 对象>, 'type': <heat.engine.properties.Schema 对象>}
heat.engine.software_config_io.check_io_schema_list(io_configs)[源代码]

检查输入或输出模式列表是否具有正确的类型。

如果列表本身不是列表,或者任何成员都不是字典,则引发 TypeError。