congress.datasources.keystonev3_driver module

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': '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.'}), '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 = {'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', 'table-name': 'domains', 'translation-type': 'HDICT'}
execute(action, action_args)

Overwrite ExecutionDriver.execute().

static get_datasource_info()
initialize_update_methods()
projects_translator = {'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', 'table-name': 'projects', 'translation-type': 'HDICT'}
roles_translator = {'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'role ID'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'role name'}), 'selector-type': 'DOT_SELECTOR', 'table-name': 'roles', 'translation-type': 'HDICT'}
users_translator = {'field-translators': ({'translator': {'translation-type': 'VALUE'}, '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.'}), 'selector-type': 'DOT_SELECTOR', 'table-name': 'users', 'translation-type': 'HDICT'}
value_trans = {'translation-type': 'VALUE'}
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.