The 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
= [{'selector-type': 'DOT_SELECTOR', 'table-name': 'stacks', 'translation-type': 'HDICT', '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': {'selector-type': 'DICT_SELECTOR', 'table-name': 'stacks_links', 'parent-key': 'id', 'in-list': True, 'translation-type': 'HDICT', 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}})}, {'selector-type': 'DOT_SELECTOR', 'table-name': 'deployments', 'translation-type': 'HDICT', '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': {'selector-type': 'DICT_SELECTOR', 'table-name': 'deployment_output_values', 'parent-key': 'id', 'translation-type': 'HDICT', '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': 'DICT_SELECTOR', 'table-name': 'resources', 'translation-type': 'HDICT', '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': {'selector-type': 'DICT_SELECTOR', 'table-name': 'resources_links', 'parent-key': 'physical_resource_id', 'in-list': True, 'translation-type': 'HDICT', 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}})}, {'selector-type': 'DICT_SELECTOR', 'table-name': 'events', 'translation-type': 'HDICT', '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': {'selector-type': 'DICT_SELECTOR', 'table-name': 'events_links', 'parent-key': 'id', 'in-list': True, 'translation-type': 'HDICT', 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}})}]¶
-
deployments_output_values_translator
= {'selector-type': 'DICT_SELECTOR', 'table-name': 'deployment_output_values', 'parent-key': 'id', 'translation-type': 'HDICT', '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'}})}¶
-
events_links_translator
= {'selector-type': 'DICT_SELECTOR', 'table-name': 'events_links', 'parent-key': 'id', 'in-list': True, 'translation-type': 'HDICT', 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}¶
-
events_translator
= {'selector-type': 'DICT_SELECTOR', 'table-name': 'events', 'translation-type': 'HDICT', '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': {'selector-type': 'DICT_SELECTOR', 'table-name': 'events_links', 'parent-key': 'id', 'in-list': True, 'translation-type': 'HDICT', 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}})}¶
-
execute
(action, action_args)¶ Overwrite ExecutionDriver.execute().
-
static
get_datasource_info
()¶
-
initialize_update_methods
()¶
-
resources_links_translator
= {'selector-type': 'DICT_SELECTOR', 'table-name': 'resources_links', 'parent-key': 'physical_resource_id', 'in-list': True, 'translation-type': 'HDICT', 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}¶
-
resources_translator
= {'selector-type': 'DICT_SELECTOR', 'table-name': 'resources', 'translation-type': 'HDICT', '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': {'selector-type': 'DICT_SELECTOR', 'table-name': 'resources_links', 'parent-key': 'physical_resource_id', 'in-list': True, 'translation-type': 'HDICT', 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}})}¶
-
software_deployment_translator
= {'selector-type': 'DOT_SELECTOR', 'table-name': 'deployments', 'translation-type': 'HDICT', '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': {'selector-type': 'DICT_SELECTOR', 'table-name': 'deployment_output_values', 'parent-key': 'id', 'translation-type': 'HDICT', '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'}})}})}¶
-
stacks_links_translator
= {'selector-type': 'DICT_SELECTOR', 'table-name': 'stacks_links', 'parent-key': 'id', 'in-list': True, 'translation-type': 'HDICT', 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}¶
-
stacks_translator
= {'selector-type': 'DOT_SELECTOR', 'table-name': 'stacks', 'translation-type': 'HDICT', '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': {'selector-type': 'DICT_SELECTOR', 'table-name': 'stacks_links', 'parent-key': 'id', 'in-list': True, 'translation-type': 'HDICT', 'field-translators': ({'fieldname': 'href', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'rel', 'translator': {'translation-type': 'VALUE'}})}})}¶
-
value_trans
= {'translation-type': 'VALUE'}¶
-