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
= {'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'}), 'parent-key': 'id', 'selector-type': 'DICT_SELECTOR', 'table-name': 'deployment_output_values', 'translation-type': 'HDICT'}¶events_links_translator
= {'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'href'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'rel'}), 'in-list': True, 'parent-key': 'id', 'selector-type': 'DICT_SELECTOR', 'table-name': 'events_links', 'translation-type': 'HDICT'}¶events_translator
= {'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', 'table-name': 'events', 'translation-type': 'HDICT'}¶execute
(action, action_args)¶Overwrite ExecutionDriver.execute().
get_datasource_info
()¶initialize_update_methods
()¶resources_links_translator
= {'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'href'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'rel'}), 'in-list': True, 'parent-key': 'physical_resource_id', 'selector-type': 'DICT_SELECTOR', 'table-name': 'resources_links', 'translation-type': 'HDICT'}¶resources_translator
= {'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', 'table-name': 'resources', 'translation-type': 'HDICT'}¶software_deployment_translator
= {'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', 'table-name': 'deployments', 'translation-type': 'HDICT'}¶stacks_links_translator
= {'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'href'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'rel'}), 'in-list': True, 'parent-key': 'id', 'selector-type': 'DICT_SELECTOR', 'table-name': 'stacks_links', 'translation-type': 'HDICT'}¶stacks_translator
= {'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', 'table-name': 'stacks', 'translation-type': 'HDICT'}¶value_trans
= {'translation-type': 'VALUE'}¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.