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', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The ID for the user.'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'description', 'desc': 'user description'}, {'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': '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'}, 'fieldname': 'email', 'desc': 'email address for the user'}), 'selector-type': 'DOT_SELECTOR', 'translation-type': 'HDICT'}, {'table-name': 'roles', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'role ID'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'role name'}), 'selector-type': 'DOT_SELECTOR', 'translation-type': 'HDICT'}, {'table-name': 'projects', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, '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'}), 'selector-type': 'DOT_SELECTOR', 'translation-type': 'HDICT'}, {'table-name': 'domains', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, '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'}), 'selector-type': 'DOT_SELECTOR', 'translation-type': 'HDICT'}]¶
-
USERS= 'users'¶
-
domains_translator= {'table-name': 'domains', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, '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'}), 'selector-type': 'DOT_SELECTOR', 'translation-type': 'HDICT'}¶
-
execute(action, action_args)¶ Overwrite ExecutionDriver.execute().
-
static
get_datasource_info()¶
-
initialize_update_methods()¶
-
projects_translator= {'table-name': 'projects', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, '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'}), 'selector-type': 'DOT_SELECTOR', 'translation-type': 'HDICT'}¶
-
roles_translator= {'table-name': 'roles', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'role ID'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'role name'}), 'selector-type': 'DOT_SELECTOR', 'translation-type': 'HDICT'}¶
-
users_translator= {'table-name': 'users', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The ID for the user.'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'description', 'desc': 'user description'}, {'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': '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'}, 'fieldname': 'email', 'desc': 'email address for the user'}), 'selector-type': 'DOT_SELECTOR', 'translation-type': 'HDICT'}¶
-
value_trans= {'translation-type': 'VALUE'}¶
-