congress.datasources.keystone_driver module

congress.datasources.keystone_driver module

class congress.datasources.keystone_driver.KeystoneDriver(name='', args=None)

Bases: congress.datasources.datasource_driver.PollingDataSourceDriver, congress.datasources.datasource_driver.ExecutionDriver

ROLES = 'roles'
TENANTS = 'tenants'
TRANSLATORS = [{'translation-type': 'HDICT', 'table-name': 'users', 'selector-type': 'DOT_SELECTOR', 'field-translators': ({'fieldname': 'username', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'enabled', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'tenantId', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'email', 'translator': {'translation-type': 'VALUE'}})}, {'translation-type': 'HDICT', 'table-name': 'roles', 'selector-type': 'DOT_SELECTOR', 'field-translators': ({'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}})}, {'translation-type': 'HDICT', 'table-name': 'tenants', 'selector-type': 'DOT_SELECTOR', 'field-translators': ({'fieldname': 'enabled', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'description', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}})}]
USERS = 'users'
execute(action, action_args)

Overwrite ExecutionDriver.execute().

static get_datasource_info()
get_keystone_credentials_v2(args)
initialize_update_methods()
roles_translator = {'field-translators': ({'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}), 'selector-type': 'DOT_SELECTOR', 'table-name': 'roles', 'translation-type': 'HDICT'}
tenants_translator = {'field-translators': ({'fieldname': 'enabled', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'description', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}), 'selector-type': 'DOT_SELECTOR', 'table-name': 'tenants', 'translation-type': 'HDICT'}
users_translator = {'field-translators': ({'fieldname': 'username', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'enabled', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'tenantId', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'email', 'translator': {'translation-type': 'VALUE'}}), '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.