congress.datasources.keystonev3_driver.KeystoneV3Driver(name='', args=None)¶Bases: congress.datasources.datasource_driver.PollingDataSourceDriver, congress.datasources.datasource_driver.ExecutionDriver
DOMAINS = 'domains'¶PROJECTS = 'projects'¶ROLES = 'roles'¶TRANSLATORS = [{'translation-type': 'HDICT', 'table-name': 'users', 'selector-type': 'DOT_SELECTOR', 'field-translators': ({'fieldname': 'id', 'desc': 'The ID for the user.', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'desc': 'username, unique within domain', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'enabled', 'desc': 'user is enabled or not', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'default_project_id', 'desc': 'ID of the default project for the user', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'domain_id', 'desc': 'The ID of the domain for the user.', 'translator': {'translation-type': 'VALUE'}})}, {'translation-type': 'HDICT', 'table-name': 'roles', 'selector-type': 'DOT_SELECTOR', 'field-translators': ({'fieldname': 'id', 'desc': 'role ID', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'desc': 'role name', 'translator': {'translation-type': 'VALUE'}})}, {'translation-type': 'HDICT', 'table-name': 'projects', 'selector-type': 'DOT_SELECTOR', 'field-translators': ({'fieldname': 'enabled', 'desc': 'project is enabled or not', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'description', 'desc': 'project description', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'desc': 'project name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'domain_id', 'desc': 'The ID of the domain for the project', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'id', 'desc': 'ID for the project', 'translator': {'translation-type': 'VALUE'}})}, {'translation-type': 'HDICT', 'table-name': 'domains', 'selector-type': 'DOT_SELECTOR', 'field-translators': ({'fieldname': 'enabled', 'desc': 'domain is enabled or disabled', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'description', 'desc': 'domain description', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'desc': 'domain name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'id', 'desc': 'domain ID', 'translator': {'translation-type': 'VALUE'}})}]¶USERS = 'users'¶domains_translator = {'field-translators': ({'fieldname': 'enabled', 'desc': 'domain is enabled or disabled', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'description', 'desc': 'domain description', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'desc': 'domain name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'id', 'desc': 'domain ID', 'translator': {'translation-type': 'VALUE'}}), 'selector-type': 'DOT_SELECTOR', 'table-name': 'domains', 'translation-type': 'HDICT'}¶execute(action, action_args)¶Overwrite ExecutionDriver.execute().
get_datasource_info()¶initialize_update_methods()¶projects_translator = {'field-translators': ({'fieldname': 'enabled', 'desc': 'project is enabled or not', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'description', 'desc': 'project description', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'desc': 'project name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'domain_id', 'desc': 'The ID of the domain for the project', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'id', 'desc': 'ID for the project', 'translator': {'translation-type': 'VALUE'}}), 'selector-type': 'DOT_SELECTOR', 'table-name': 'projects', 'translation-type': 'HDICT'}¶roles_translator = {'field-translators': ({'fieldname': 'id', 'desc': 'role ID', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'desc': 'role name', 'translator': {'translation-type': 'VALUE'}}), 'selector-type': 'DOT_SELECTOR', 'table-name': 'roles', 'translation-type': 'HDICT'}¶users_translator = {'field-translators': ({'fieldname': 'id', 'desc': 'The ID for the user.', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'desc': 'username, unique within domain', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'enabled', 'desc': 'user is enabled or not', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'default_project_id', 'desc': 'ID of the default project for the user', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'domain_id', 'desc': 'The ID of the domain for the user.', 'translator': {'translation-type': 'VALUE'}}), 'selector-type': 'DOT_SELECTOR', 'table-name': 'users', '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.