Current File : //lib/python2.7/site-packages/euca2ools/commands/iam/listrolepolicies.pyo
�
��Xc@sfddlmZddlmZddlmZmZmZddlm	Z	defd��YZ
dS(i����(tArg(tPaginatedResponse(t
IAMRequestt
AS_ACCOUNTtarg_role(t
GetRolePolicytListRolePoliciescBs�eZdZedd�edddddddd�ed	d
dddddd
�eddddddd�egZdgZd�Z	d�Z
d�Zd�Zd�Z
RS(s+List one or all policies attached to a rolethelps+role owning the policies to list (required)s-ps
--policy-nametmetavartPOLICYtroute_tosdisplay a specific policys-vs	--verbosetactiont
store_truescdisplay the contents of the resulting policies (in
                        addition to their names)s--pretty-prints`when printing the contents of policies, reformat them
                        for easier readingtPolicyNamescCst|dd�S(NR
(N(R
(RtNone(tself((sK/usr/lib/python2.7/site-packages/euca2ools/commands/iam/listrolepolicies.pytmain/scCs||jd<dS(NtMarker(tparams(Rtpage((sK/usr/lib/python2.7/site-packages/euca2ools/commands/iam/listrolepolicies.pytprepare_for_page2scCs!|jd�dkr|dSdS(NtIsTruncatedttrueR(tget(Rtresponse((sK/usr/lib/python2.7/site-packages/euca2ools/commands/iam/listrolepolicies.pyt
get_next_page7scCs�|jjd�rkx�|jdg�D]?}||jdkr%|jdr[|j|�n|GHPq%q%Wn?x<|jdg�D](}|GH|jdr~|j|�q~q~WdGHdS(Ntpolicy_nameR
tverbosesIsTruncated: false(targsRtprint_policy(RtresultR((sK/usr/lib/python2.7/site-packages/euca2ools/commands/iam/listrolepolicies.pytprint_result<s

cCs^tj|d|jdd|d|jdd|jjd��}|j�}|j|�dS(NtRoleNamet
PolicyNametpretty_printtDelegateAccount(Rt
from_otherRRRRR(RRtreqR((sK/usr/lib/python2.7/site-packages/euca2ools/commands/iam/listrolepolicies.pyRNs
N(t__name__t
__module__tDESCRIPTIONRRRRtARGSt	LIST_TAGSRRRRR(((sK/usr/lib/python2.7/site-packages/euca2ools/commands/iam/listrolepolicies.pyR!s						N(trequestbuilderRtrequestbuilder.responseRteuca2ools.commands.iamRRRt$euca2ools.commands.iam.getrolepolicyRR(((sK/usr/lib/python2.7/site-packages/euca2ools/commands/iam/listrolepolicies.pyt<module>s