/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/shell.pyc (21053B)
Ñò ƒd?„ƒZe idd d@ded dAƒe idBd dCd&dd dDƒe id$d d%d&ed dEƒdF„ƒƒƒZ e idd dGd dHƒe idBd dCd&dd dIƒe id$d d%d dJƒe id=d d d dKƒdL„ƒƒƒƒZ!e id=d d d dMƒdN„ƒZ"e idOd dPded dQƒe idd dRd dSƒe idBd dTd dUƒdV„ƒƒƒZ#dW„Z$e idXd dYd dZƒd[„ƒZ%e idXd dYd d\ƒd]„ƒZ&d^„Z'e id_d d`d daƒdb„ƒZ(e idd dcded ddƒde„ƒZ)e id_d d`d dfƒdg„ƒZ*e idhdidjd dded dkƒe idldmdnd d`ded doƒe idd d d d dpƒe idd eiƒdq„ƒƒƒƒZ+e idhdidjd dded dkƒe idldmdnd d`ded doƒe idd d d d dpƒe idd eiƒdr„ƒƒƒƒZ,e idhdid dd dsƒe idjd eiƒe idd d d d dtƒe idd eiƒdu„ƒƒƒƒZ-e idid dvd dwƒe idjd eiƒe id d dxd dyƒe idd eiƒdz„ƒƒƒƒZ.e idid dvd d{ƒe idjd eiƒe id|d d}ded d~ƒd„ƒƒƒZ/e idid dvd d{ƒe idjd eiƒd€„ƒƒZ0e idid dvd d{ƒe idjd eiƒe id|d d}ded d~ƒd„ƒƒƒZ1e id‚d dƒd&dd d„ƒed…„ƒƒZ2e id‚d dƒded d†ƒe id‡d dˆd&d‰d dŠƒe id‹d&d‰d eiƒe idŒd dd dŽƒe idd dd d‘ƒed’„ƒƒƒƒƒƒZ3d“„Z4e id”d d•d d–d&d—ƒe id‚d˜d™d dYded dšƒe id›d dœded dƒe idžd dŸd d ƒe id¡d d¢d d£ƒd¤„ƒƒƒƒƒZ5e id¥d d¦d d§ƒd¨„ƒZ6e id©d dªd&d«d d¬ƒed­„ƒƒZ7dS(®s This module is deprecated as of the 1.7.0 release in favor of python-openstackclient and may be removed in the 2.0.0 release. Bug fixes are welcome, but new features should be exposed to the CLI by python-openstackclient after being added to the python-keystoneclient library. iÿÿÿÿN(tstrutils(t_(tutils(tclientcs.tdƒ‰‡‡fd†}ˆi|_|S(Ns¹Configuration error: Client configured to run without a service catalog. Run the client using --os-auth-url or OS_AUTH_URL, instead of --os-endpoint or OS_SERVICE_ENDPOINT, for example.cs*|iƒptˆƒ‚nˆ||ƒS(N(thas_service_catalogt Exception(tkctargs(tmsgtf(sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytwrapped/s (Rt__doc__(R R ((RR sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytrequire_service_catalog*s  s--tenants --tenant-idtmetavarsthelps*Tenant; lists all users if not specified.s --tenant_idcCsj|ioti|i|iƒi}nd}|iid|ƒ}ti|ddddgddƒdS(s List users.t tenant_idtidtnametenabledtemailtorder_byN( ttenantRt find_resourcettenantsRtNonetuserstlistt print_list(RRRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pyt do_user_list:s  tuserssName or ID of user to display.cCs,ti|i|iƒ}ti|iƒdS(sDisplay user details.N(RRRRt print_dictt_info(RRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pyt do_user_getHss--names trequiredsNew user name (must be unique).sNew user default tenant.s--passstdesttpasswdtnargst?tconsts3New user password; required for some auth backends.s--emailssNew user email address.s --enableds tdefaults-Initial user enabled status. Default is true.c Cs¹|ioti|i|iƒi}n|io |i}nd}|i}|itjoti ƒ}n|i i |i ||i d|dti|iƒƒ}ti|iƒdS(sCreate new user.RRN(RRRRRRRR#tASK_FOR_PASSWORDtprompt_for_passwordRtcreateRRRtbool_from_stringRRR(RRRt new_passwdR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_user_createOs    sDesired new user name.sDesired new email address.sEnable or disable user.sName or ID of user to update.cCsèh}|io|i|dsDesired new password.s&Name or ID of user to update password.cCsoti|i|iƒ}|ip tiƒ}|djotdƒ}ti |ƒn|ii ||ƒdS(sUpdate user password.sD Please specify password using the --pass option or using the promptN( RRRRR#R)RRtsystexittupdate_password(RRRR,R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_user_password_update‰s   s--current-passwordst currentpasswdsWCurrent password, Defaults to the password as set by --os-password or env[OS_PASSWORD].s--new-password st newpasswdcCsá|i}|idj o |i}n|djotitdƒƒ}n|i}xS|djoEtitdƒƒ}titdƒƒ}||jo |}qXqXW|ii||ƒ|i|jotdƒGHndS(sUpdate own password.sCurrent Password: sNew Password: sRepeat New Password: sWYou should update the password you are using to authenticate to match your new passwordN(t os_passwordR7RtgetpassRR8Rtupdate_own_password(RRR7R8tpasswd1tpasswd2((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_password_update˜s      sName or ID of user to delete.cCs,ti|i|iƒ}|ii|ƒdS(s Delete user.N(RRRRtdelete(RRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_user_delete¸scCs2|iiƒ}ti|dddgddƒdS(sList all tenants.RRRRN(RRRR(RRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_tenant_list¿sRs Name or ID of tenant to display.cCs,ti|i|iƒ}ti|iƒdS(sDisplay tenant details.N(RRRRRR(RRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pyt do_tenant_getÅss s!New tenant name (must be unique).s --descriptionss+Description of new tenant. Default is none.s/Initial tenant enabled status. Default is true.cCsD|ii|id|idti|iƒƒ}ti|i ƒdS(sCreate new tenant.t descriptionRN( RR*RRCRR+RRRR(RRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_tenant_createÍs s sDesired new name of tenant.s"Desired new description of tenant.sEnable or disable tenant.sName or ID of tenant to update.cCsÊti|i|iƒ}h}|io|ih|id6ƒn|idj o|ih|id6ƒn|io$|iht i |iƒd6ƒn|hjot dƒGHdS|i|dS(s0Update tenant name, description, enabled status.RRCRs)Tenant not updated, no arguments present.N( RRRRRR/RCRRRR+R(RRRR0((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_tenant_updateÛs   $  sName or ID of tenant to delete.cCs,ti|i|iƒ}|ii|ƒdS(sDelete tenant.N(RRRRR?(RRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_tenant_deleteôss--typesskService type (one of: identity, compute, network, image, object-store, or other service identifier string).ss%Name of new service (must be unique).ssDescription of service.cCs5|ii|i|i|iƒ}ti|iƒdS(sAdd service to Service Catalog.N(tservicesR*RttypeRCRRR(RRtservice((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_service_createüs  cCs5|iiƒ}ti|ddddgddƒdS(s%List all services in Service Catalog.RRRHRCRN(RGRRR(RRRG((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_service_list sRIs s!Name or ID of service to display.cCs,ti|i|iƒ}ti|iƒdS(s%Display service from Service Catalog.N(RRRGRIRR(RRRI((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_service_getss Name or ID of service to delete.cCs/ti|i|iƒ}|ii|iƒdS(s$Delete service from Service Catalog.N(RRRGRIR?R(RRRI((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_service_deletescCs/|iiƒ}ti|ddgddƒdS(sList all roles.RRRN(trolesRRR(RRRN((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pyt do_role_list"strolessName or ID of role to display.cCs,ti|i|iƒ}ti|iƒdS(sDisplay role details.N(RRRNRPRR(RRRP((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pyt do_role_get(ss sName of new role.cCs)|ii|iƒ}ti|iƒdS(sCreate new role.N(RNR*RRRR(RRRP((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_role_create/ssName or ID of role to delete.cCs,ti|i|iƒ}|ii|ƒdS(s Delete role.N(RRRNRPR?(RRRP((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_role_delete7ss--users --user-ids --user_idsName or ID of user.s--roles --role-ids --role_idsName or ID of role.sName or ID of tenant.cCsti|i|iƒ}ti|i|iƒ}|ioti|i|iƒ}n|io |i}nd}|ii |||ƒdS(sAdd role to user.N( RRRRRNRPRRRRt add_user_role(RRRRPR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_user_role_add>s    cCsti|i|iƒ}ti|i|iƒ}|ioti|i|iƒ}n|io |i}nd}|ii |||ƒdS(sRemove role from user.N( RRRRRNRPRRRRtremove_user_role(RRRRPR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_user_role_removeRs    s%List roles granted to specified user.s,List only roles granted on specified tenant.cCsö|ioti|i|iƒi}n!|io |i}n |i}|ioti|i|iƒi}n!|i o |i }n |i }|i i d|d|ƒ}x |D]}||_ ||_q´Wti |ddddgddƒdS( sList roles granted to a user.RRRRtuser_idRRN(RRRRRRtauth_tenant_idRRRXt auth_user_idRNtroles_for_userR(RRRRXRNRP((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_user_role_listfs"          s s_User ID for which to create credentials. If not specified, the authenticated user will be used.s sfTenant ID for which to create credentials. If not specified, the authenticated tenant ID will be used.cCsc|ip|i|_n|ip|i|_n|ii|i|iƒ}ti|iƒdS(s6Create EC2-compatible credentials for user per tenant.N( RRYRXRZtec2R*RRR(RRt credentials((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_ec2_credentials_createˆs  sUser ID.s--accesss s Access Key.cCsT|ip|i|_n|ii|i|iƒ}|oti|iƒndS(s#Display EC2-compatible credentials.N(RXRZR]tgettaccessRRR(RRtcred((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_ec2_credentials_getœs  cCs¤|ip|i|_n|ii|iƒ}xU|D]M}y%t|ii|iƒdƒ|_Wq6t j o|i|_q6Xq6Wt i |dddgƒdS(s+List EC2-compatible credentials for a user.RRRatsecretN( RXRZR]RtgetattrRR`RRRRR(RRR^Rb((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_ec2_credentials_listªs %cCsm|ip|i|_ny(|ii|i|iƒtdƒGHWn$tj o}tdƒ|GHnXdS(s"Delete EC2-compatible credentials.sCredential has been deleted.sUnable to delete credential: %sN(RXRZR]R?RaRR(RRR1((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_ec2_credentials_delete¼s s --servicessService type to return.cCs€|iid|iƒ}xati|ƒD]P\}}t|ƒdjo1tdƒ|GHx|D]}ti|ƒq]Wq(q(WdS(s3List service catalog, possibly filtered by service.t service_typeis Service: %sN( tservice_catalogt get_endpointsRItsixt iteritemsR.RRR(RRt endpointsRItservice_endpointstep((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pyt do_catalogÌs sService type to select.s--endpoint-typest publicURLsEndpoint type to select.s--endpoint_types--attrss)Service attribute to match for selection.s--valuessValue of attribute to match.cCs±h|id6|id6}|io/|io%|ih|id6|id6ƒn%|ip |iotdƒGHdS|ii|}ti h|d|i|if6ƒdS(s?Find endpoint filtered by a specific attribute or service type.Rht endpoint_typetattrt filter_values!Both --attr and --value required.Ns%s.%s( RIRrRstvalueR/RRiturl_forRR(RRR0turl((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_endpoint_getÙs   % cCs5|iiƒ}ti|ddddddgƒdS(s"List configured service endpoints.Rtregiont publicurlt internalurltadminurlt service_idN(RmRRR(RRRm((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_endpoint_listõs  s--regionssEndpoint region.t regionOnes --service-ids --service_ids/Name or ID of service associated with endpoint.s --publicurls sPublic URL endpoint.s --adminurls sAdmin URL endpoint.s --internalurlssInternal URL endpoint.cCsYti|i|iƒi}|ii|i||i|i |i ƒ}ti |i ƒdS(s0Create a new endpoint associated with a service.N( RRRGRIRRmR*RyRzR|R{RR(RRR}tendpoint((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_endpoint_createýs  Rs sID of endpoint to delete.cCsGy"|ii|iƒtdƒGHWntj otdƒGHnXdS(sDelete a service endpoint.sEndpoint has been deleted.sUnable to delete endpoint.N(RmR?RRR(RR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pytdo_endpoint_deletes s--wraps is7Wrap PKI tokens to a specified length, or 0 to disable.cCs)ti|iiƒdt|iƒƒdS(sDisplay the current user token.twrapN(RRRit get_tokentintRƒ(RR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pyt do_token_gets(8R targparseR:R3t oslo_utilsRRktkeystoneclient.i18nRtkeystoneclientRtkeystoneclient.v2_0RtClientt CLIENT_CLASStobjectR(R targtSUPPRESSRR tTrueR-R2tFalseR6R>R@RARBRRDRERFRJRKRLRMRORQRRRSRURWR\R_RcRfRgRpRxR~RR‚R†(((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/v2_0/shell.pyts       $ $ !- $    $$  *  ***  $       $