congress.datasources.cloudfoundryv2_driver.
CloudFoundryV2Driver
(name='', args=None)¶Bases: congress.datasources.datasource_driver.PollingDataSourceDriver
, congress.datasources.datasource_driver.ExecutionDriver
APPS
= 'apps'¶ORGANIZATIONS
= 'organizations'¶SERVICES
= 'services'¶SERVICE_BINDINGS
= 'service_bindings'¶SPACES
= 'spaces'¶TRANSLATORS
= [{'translation-type': 'HDICT', 'table-name': 'organizations', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'fieldname': 'guid', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'created_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'updated_at', 'translator': {'translation-type': 'VALUE'}})}, {'translation-type': 'HDICT', 'table-name': 'spaces', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'fieldname': 'guid', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'created_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'updated_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'apps', 'translator': {'translation-type': 'HDICT', 'table-name': 'apps', 'in-list': True, 'parent-key': 'guid', 'parent-col-name': 'space_guid', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'fieldname': 'guid', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'buildpack', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'command', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'console', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'debug', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'detected_buildpack', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'detected_start_command', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'disk_quota', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'docker_image', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'environment_json', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'health_check_timeout', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'instances', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'memory', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'package_state', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'package_updated_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'production', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'staging_failed_reason', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'staging_task_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'state', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'version', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'created_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'updated_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'service_bindings', 'translator': {'translation-type': 'LIST', 'table-name': 'service_bindings', 'parent-key': 'guid', 'parent-col-name': 'app_guid', 'val-col': 'service_instance_guid', 'translator': {'translation-type': 'VALUE'}}})}})}, {'translation-type': 'HDICT', 'table-name': 'services', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'fieldname': 'guid', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'space_guid', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'bound_app_count', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'last_operation', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'service_plan_name', 'translator': {'translation-type': 'VALUE'}})}]¶apps_translator
= {'field-translators': ({'fieldname': 'guid', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'buildpack', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'command', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'console', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'debug', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'detected_buildpack', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'detected_start_command', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'disk_quota', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'docker_image', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'environment_json', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'health_check_timeout', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'instances', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'memory', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'package_state', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'package_updated_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'production', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'staging_failed_reason', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'staging_task_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'state', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'version', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'created_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'updated_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'service_bindings', 'translator': {'translation-type': 'LIST', 'table-name': 'service_bindings', 'parent-key': 'guid', 'parent-col-name': 'app_guid', 'val-col': 'service_instance_guid', 'translator': {'translation-type': 'VALUE'}}}), 'in-list': True, 'parent-col-name': 'space_guid', 'parent-key': 'guid', 'selector-type': 'DICT_SELECTOR', 'table-name': 'apps', 'translation-type': 'HDICT'}¶execute
(action, action_args)¶Overwrite ExecutionDriver.execute().
get_datasource_info
()¶organizations_translator
= {'field-translators': ({'fieldname': 'guid', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'created_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'updated_at', 'translator': {'translation-type': 'VALUE'}}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'organizations', 'translation-type': 'HDICT'}¶service_bindings_translator
= {'parent-col-name': 'app_guid', 'parent-key': 'guid', 'table-name': 'service_bindings', 'translation-type': 'LIST', 'translator': {'translation-type': 'VALUE'}, 'val-col': 'service_instance_guid'}¶services_translator
= {'field-translators': ({'fieldname': 'guid', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'space_guid', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'bound_app_count', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'last_operation', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'service_plan_name', 'translator': {'translation-type': 'VALUE'}}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'services', 'translation-type': 'HDICT'}¶spaces_translator
= {'field-translators': ({'fieldname': 'guid', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'created_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'updated_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'apps', 'translator': {'translation-type': 'HDICT', 'table-name': 'apps', 'in-list': True, 'parent-key': 'guid', 'parent-col-name': 'space_guid', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'fieldname': 'guid', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'buildpack', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'command', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'console', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'debug', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'detected_buildpack', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'detected_start_command', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'disk_quota', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'docker_image', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'environment_json', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'health_check_timeout', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'instances', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'memory', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'package_state', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'package_updated_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'production', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'staging_failed_reason', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'staging_task_id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'state', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'version', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'created_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'updated_at', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'service_bindings', 'translator': {'translation-type': 'LIST', 'table-name': 'service_bindings', 'parent-key': 'guid', 'parent-col-name': 'app_guid', 'val-col': 'service_instance_guid', 'translator': {'translation-type': 'VALUE'}}})}}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'spaces', 'translation-type': 'HDICT'}¶update_from_datasource
()¶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.