keystone.api.roles module

class keystone.api.roles.RoleAPI(blueprint_url_prefix='', api_url_prefix='', default_mediatype='application/json', decorators=None, errors=None)[source]

Bases: APIBase

resource_mapping = [resource_map(resource=<class 'keystone.api.roles.RoleImplicationListResource'>, url='/roles/<string:prior_role_id>/implies', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/implied_roles', status='stable', path_vars={'prior_role_id': 'https://docs.openstack.org/api/openstack-identity/3/param/role_id'})), resource_map(resource=<class 'keystone.api.roles.RoleImplicationResource'>, url='/roles/<string:prior_role_id>/implies/<string:implied_role_id>', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/implied_role', status='stable', path_vars={'prior_role_id': 'https://docs.openstack.org/api/openstack-identity/3/param/role_id', 'implied_role_id': 'https://docs.openstack.org/api/openstack-identity/3/param/role_id'}))]
resources = [<class 'keystone.api.roles.RoleResource'>]
class keystone.api.roles.RoleImplicationListResource[source]

Bases: Resource

get(prior_role_id)[source]

List Implied Roles.

GET/HEAD /v3/roles/{prior_role_id}/implies

methods: t.ClassVar[t.Optional[t.Collection[str]]] = {'GET'}

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

class keystone.api.roles.RoleImplicationResource[source]

Bases: Resource

delete(prior_role_id, implied_role_id)[source]

Delete implied role.

DELETE /v3/roles/{prior_role_id}/implies/{implied_role_id}

get(prior_role_id, implied_role_id)[source]

Get implied role.

GET/HEAD /v3/roles/{prior_role_id}/implies/{implied_role_id}

head(prior_role_id, implied_role_id=None)[source]
methods: t.ClassVar[t.Optional[t.Collection[str]]] = {'DELETE', 'GET', 'HEAD', 'PUT'}

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

put(prior_role_id, implied_role_id)[source]

Create implied role.

PUT /v3/roles/{prior_role_id}/implies/{implied_role_id}

class keystone.api.roles.RoleResource[source]

Bases: ResourceBase

collection_key = 'roles'
delete(role_id)[source]

Delete role.

DELETE /v3/roles/{role_id}

get(role_id=None)[source]

Get role or list roles.

GET/HEAD /v3/roles GET/HEAD /v3/roles/{role_id}

get_member_from_driver
member_key = 'role'
methods: t.ClassVar[t.Optional[t.Collection[str]]] = {'DELETE', 'GET', 'PATCH', 'POST'}

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

patch(role_id)[source]

Update role.

PATCH /v3/roles/{role_id}

post()[source]

Create role.

POST /v3/roles