The congress.datasources.keystonev3_driver Module

class 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 = [{‘table-name’: ‘users’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The ID for the user.’}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘username, unique within domain’}, {‘fieldname’: ‘enabled’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘user is enabled or not’}, {‘fieldname’: ‘default_project_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘ID of the default project for the user’}, {‘fieldname’: ‘domain_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The ID of the domain for the user.’})}, {‘table-name’: ‘roles’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘role ID’}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘role name’})}, {‘table-name’: ‘projects’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘enabled’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘project is enabled or not’}, {‘fieldname’: ‘description’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘project description’}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘project name’}, {‘fieldname’: ‘domain_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The ID of the domain for the project’}, {‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘ID for the project’})}, {‘table-name’: ‘domains’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘enabled’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘domain is enabled or disabled’}, {‘fieldname’: ‘description’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘domain description’}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘domain name’}, {‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘domain ID’})}]
USERS = ‘users’
domains_translator = {‘table-name’: ‘domains’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘enabled’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘domain is enabled or disabled’}, {‘fieldname’: ‘description’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘domain description’}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘domain name’}, {‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘domain ID’})}
execute(action, action_args)

Overwrite ExecutionDriver.execute().

static get_datasource_info()
initialize_update_methods()
projects_translator = {‘table-name’: ‘projects’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘enabled’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘project is enabled or not’}, {‘fieldname’: ‘description’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘project description’}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘project name’}, {‘fieldname’: ‘domain_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The ID of the domain for the project’}, {‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘ID for the project’})}
roles_translator = {‘table-name’: ‘roles’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘role ID’}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘role name’})}
users_translator = {‘table-name’: ‘users’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The ID for the user.’}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘username, unique within domain’}, {‘fieldname’: ‘enabled’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘user is enabled or not’}, {‘fieldname’: ‘default_project_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘ID of the default project for the user’}, {‘fieldname’: ‘domain_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The ID of the domain for the user.’})}
value_trans = {‘translation-type’: ‘VALUE’}