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