congress.datasources.heatv1_driver module¶
- 
class 
congress.datasources.heatv1_driver.HeatV1Driver(name='', args=None)¶ Bases:
congress.datasources.datasource_driver.PollingDataSourceDriver,congress.datasources.datasource_driver.ExecutionDriver- 
DEPLOYMENTS= 'deployments'¶ 
- 
DEPLOYMENT_OUTPUT_VALUES= 'deployment_output_values'¶ 
- 
EVENTS= 'events'¶ 
- 
EVENTS_LINKS= 'events_links'¶ 
- 
RESOURCES= 'resources'¶ 
- 
RESOURCES_LINKS= 'resources_links'¶ 
- 
STACKS= 'stacks'¶ 
- 
STACKS_LINKS= 'stacks_links'¶ 
- 
TRANSLATORS= [{'translation-type': 'HDICT', 'table-name': 'stacks', 'selector-type': 'DOT_SELECTOR', 'field-translators': ({'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'stack_name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'description', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'creation_time', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'updated_time', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'stack_status', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'stack_status_reason', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'stack_owner', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'parent', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'links', 'translator': {'translation-type': 'HDICT', 'table-name': 'stacks_links', 'parent-key': 'id', 'selector-type': 'DICT_SELECTOR', 'in-list': True, 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}})}, {'translation-type': 'HDICT', 'table-name': 'deployments', 'selector-type': 'DOT_SELECTOR', 'field-translators': ({'fieldname': 'status', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'server_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'config_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'action', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'status_reason', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'output_values', 'translator': {'translation-type': 'HDICT', 'table-name': 'deployment_output_values', 'parent-key': 'id', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'fieldname': 'deploy_stdout', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'deploy_stderr', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'deploy_status_code', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'result', 'translator': {'translation-type': 'VALUE'}})}})}, {'translation-type': 'HDICT', 'table-name': 'resources', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'fieldname': 'physical_resource_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'logical_resource_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'stack_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_type', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'creation_time', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'updated_time', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_status', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_status_reason', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'links', 'translator': {'translation-type': 'HDICT', 'table-name': 'resources_links', 'parent-key': 'physical_resource_id', 'selector-type': 'DICT_SELECTOR', 'in-list': True, 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}})}, {'translation-type': 'HDICT', 'table-name': 'events', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'physical_resource_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'logical_resource_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'stack_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'event_time', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_status', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_status_reason', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'links', 'translator': {'translation-type': 'HDICT', 'table-name': 'events_links', 'parent-key': 'id', 'selector-type': 'DICT_SELECTOR', 'in-list': True, 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}})}]¶ 
- 
deployments_output_values_translator= {'field-translators': ({'fieldname': 'deploy_stdout', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'deploy_stderr', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'deploy_status_code', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'result', 'translator': {'translation-type': 'VALUE'}}), 'parent-key': 'id', 'selector-type': 'DICT_SELECTOR', 'table-name': 'deployment_output_values', 'translation-type': 'HDICT'}¶ 
- 
events_links_translator= {'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}}), 'in-list': True, 'parent-key': 'id', 'selector-type': 'DICT_SELECTOR', 'table-name': 'events_links', 'translation-type': 'HDICT'}¶ 
- 
events_translator= {'field-translators': ({'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'physical_resource_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'logical_resource_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'stack_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'event_time', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_status', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_status_reason', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'links', 'translator': {'translation-type': 'HDICT', 'table-name': 'events_links', 'parent-key': 'id', 'selector-type': 'DICT_SELECTOR', 'in-list': True, 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'events', 'translation-type': 'HDICT'}¶ 
- 
execute(action, action_args)¶ Overwrite ExecutionDriver.execute().
- 
static 
get_datasource_info()¶ 
- 
initialize_update_methods()¶ 
- 
resources_links_translator= {'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}}), 'in-list': True, 'parent-key': 'physical_resource_id', 'selector-type': 'DICT_SELECTOR', 'table-name': 'resources_links', 'translation-type': 'HDICT'}¶ 
- 
resources_translator= {'field-translators': ({'fieldname': 'physical_resource_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'logical_resource_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'stack_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_type', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'creation_time', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'updated_time', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_status', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'resource_status_reason', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'links', 'translator': {'translation-type': 'HDICT', 'table-name': 'resources_links', 'parent-key': 'physical_resource_id', 'selector-type': 'DICT_SELECTOR', 'in-list': True, 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'resources', 'translation-type': 'HDICT'}¶ 
- 
software_deployment_translator= {'field-translators': ({'fieldname': 'status', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'server_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'config_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'action', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'status_reason', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'output_values', 'translator': {'translation-type': 'HDICT', 'table-name': 'deployment_output_values', 'parent-key': 'id', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'fieldname': 'deploy_stdout', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'deploy_stderr', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'deploy_status_code', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'result', 'translator': {'translation-type': 'VALUE'}})}}), 'selector-type': 'DOT_SELECTOR', 'table-name': 'deployments', 'translation-type': 'HDICT'}¶ 
- 
stacks_links_translator= {'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}}), 'in-list': True, 'parent-key': 'id', 'selector-type': 'DICT_SELECTOR', 'table-name': 'stacks_links', 'translation-type': 'HDICT'}¶ 
- 
stacks_translator= {'field-translators': ({'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'stack_name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'description', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'creation_time', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'updated_time', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'stack_status', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'stack_status_reason', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'stack_owner', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'parent', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'links', 'translator': {'translation-type': 'HDICT', 'table-name': 'stacks_links', 'parent-key': 'id', 'selector-type': 'DICT_SELECTOR', 'in-list': True, 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}}), 'selector-type': 'DOT_SELECTOR', 'table-name': 'stacks', 'translation-type': 'HDICT'}¶ 
- 
value_trans= {'translation-type': 'VALUE'}¶ 
-