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
= [{'table-name': 'organizations', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'guid'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'created_at'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'updated_at'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}, {'table-name': 'spaces', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'guid'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'created_at'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'updated_at'}, {'translator': {'in-list': True, 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT', 'parent-key': 'guid', 'parent-col-name': 'space_guid', 'table-name': 'apps', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, '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': {'translator': {'translation-type': 'VALUE'}, 'val-col': 'service_instance_guid', 'translation-type': 'LIST', 'parent-key': 'guid', 'parent-col-name': 'app_guid', 'table-name': 'service_bindings'}, 'fieldname': 'service_bindings'})}, 'fieldname': 'apps'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}, {'table-name': 'services', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, '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'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}]¶apps_translator
= {'field-translators': ({'translator': {'translation-type': 'VALUE'}, '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': {'translator': {'translation-type': 'VALUE'}, 'val-col': 'service_instance_guid', 'translation-type': 'LIST', 'parent-key': 'guid', 'parent-col-name': 'app_guid', 'table-name': 'service_bindings'}, 'fieldname': 'service_bindings'}), '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': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'guid'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'created_at'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'updated_at'}), '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': ({'translator': {'translation-type': 'VALUE'}, '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'}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'services', 'translation-type': 'HDICT'}¶spaces_translator
= {'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'guid'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'created_at'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'updated_at'}, {'translator': {'in-list': True, 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT', 'parent-key': 'guid', 'parent-col-name': 'space_guid', 'table-name': 'apps', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, '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': {'translator': {'translation-type': 'VALUE'}, 'val-col': 'service_instance_guid', 'translation-type': 'LIST', 'parent-key': 'guid', 'parent-col-name': 'app_guid', 'table-name': 'service_bindings'}, 'fieldname': 'service_bindings'})}, 'fieldname': 'apps'}), '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.