/usr/lib/python2.6/site-packages/keystoneclient/v2_0
NameSizeModeActions
certificates.py12460644editdlrm
certificates.pyc14780644editdlrm
client.py94680644editdlrm
client.pyc86040644editdlrm
ec2.py19850644editdlrm
ec2.pyc25740644editdlrm
endpoints.py16360644editdlrm
endpoints.pyc20060644editdlrm
extensions.py10180644editdlrm
extensions.pyc13380644editdlrm
roles.py31360644editdlrm
roles.pyc39520644editdlrm
services.py17020644editdlrm
services.pyc22350644editdlrm
shell.py203130644editdlrm
shell.pyc210530644editdlrm
tenants.py62790644editdlrm
tenants.pyc64880644editdlrm
tokens.py40950644editdlrm
tokens.pyc52760644editdlrm
users.py47630644editdlrm
users.pyc56210644editdlrm
__init__.py840644editdlrm
__init__.pyc2690644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneclient/v2_0/roles.pyc (3952B)
Ńň (t_info(tself((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/roles.pyt__repr__scCs|ii|ƒS(N(tmanagertdelete(R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/roles.pyRs(t__name__t __module__t__doc__RR(((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/roles.pyRs t RoleManagercBs\eZdZeZd„Zd„Zd„Zd„Zdd„Z dd„Z dd„Z RS( s.Manager class for manipulating Keystone roles.cCs|idti|ƒdƒS(Ns/OS-KSADM/roles/%strole(t_getRtgetid(RR ((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/roles.pytget!scCs'hh|d6d6}|id|dƒS(sCreate a role.tnameR s/OS-KSADM/roles(t_create(RRtparams((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/roles.pytcreate$scCs|idti|ƒƒS(sDelete a role.s/OS-KSADM/roles/%s(t_deleteRR (RR ((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/roles.pyR)scCs|iddƒS(sList all available roles.s/OS-KSADM/rolestroles(t_list(R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/roles.pytlist-scCs^ti|ƒ}|o0ti|ƒ}d}|i|||fdƒS|id|dƒSdS(Ns/tenants/%s/users/%s/rolesRs/users/%s/roles(RR R(Rtuserttenanttuser_idt tenant_idtroute((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/roles.pytroles_for_user1s cCs‚ti|ƒ}ti|ƒ}|o6d}ti|ƒ||f}|i||ddƒSd}|i|||fddƒSdS(s–Adds a role to a user. If tenant is specified, the role is added just for that tenant, otherwise the role is added globally. s&/tenants/%s/users/%s/roles/OS-KSADM/%sR s/users/%s/roles/OS-KSADM/%sRN(RR t_updatetNone(RRR RRtrole_idRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/roles.pyt add_user_role:scCsvti|ƒ}ti|ƒ}|o0d}ti|ƒ||f}|i||ƒSd}|i|||fƒSdS(słRemoves a role from a user. If tenant is specified, the role is removed just for that tenant, otherwise the role is removed from the user's global roles. s&/tenants/%s/users/%s/roles/OS-KSADM/%ss/users/%s/roles/OS-KSADM/%sN(RR R(RRR RRRRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/roles.pytremove_user_roleJsN( RRR Rtresource_classRRRRRRR R!(((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/roles.pyR s     N(tkeystoneclientRtResourceRtManagerWithFindR (((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/roles.pyts