
                         F   S r SSKJr  SSKJr  SSKJr  SSKrSSKJr  SSK	J
r
  SSKJr  \
R                  \
R                  " \
R                   R"                  \
R                   R$                  \
R                   R&                  5       " S	 S
\
R(                  5      5       5       rg)z;Command to list the policies on the given attachment point.    )absolute_import)division)unicode_literalsN)policies)base)policies_flagsc                   V    \ rS rSrSrS\R                  " S5      0r\S 5       r	S r
Srg)	List   z0List the policies on the given attachment point.EXAMPLESz          The following command lists the IAM policy defined at the resource
          project ``123'' of kind ``denypolicies'':

            $ {command} --attachment-point=cloudresourcemanager.googleapis.com/projects/123 --kind=denypolicies
          c                    [         R                  R                  U 5        [        R                  " 5       R                  U 5        [        R                  " 5       R                  U 5        [        R                  " 5       R                  U 5        g )N)r   URI_FLAGRemoveFromParserflagsGetPageTokenFlagAddToParserGetAttachmentPointFlagGetKindFlag)parsers     lib/surface/iam/policies/list.pyArgs	List.Args,   sY    MM""6*	((0	  "..v6	##F+    c                    [         R                  " UR                  R                  5       5      n[         R                  " UR                  R                  5       5      nUR
                  R                  SS5      nUR                  R                  UR                  SR                  XAR                  5      UR                  UR                  S95      nU$ )N/z%2Fzpolicies/{}/{})parentpageSize	pageToken)apisGetClientInstancecalliope_commandReleaseTrackGetMessagesModuleattachment_pointreplacer   ListPoliciesIamPoliciesListPoliciesRequestformatkind	page_size
page_token)selfargsclientmessagesr$   results         r   RunList.Run4   s    ##D$9$9$F$F$HIF%%d&;&;&H&H&JKH,,44S%@__))//#**+;YYG^^oo 	0 	'(F
 Mr    N)__name__
__module____qualname____firstlineno____doc__textwrapdedentdetailed_helpstaticmethodr   r1   __static_attributes__r3   r   r   r
   r
      s=     9 
//  - , ,r   r
   )r8   
__future__r   r   r   r9   googlecloudsdk.api_lib.iamr   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.iamr   r   UniverseCompatibleReleaseTracksr"   ALPHABETAGAListCommandr
   r3   r   r   <module>rH      s    B &  '  7 ( B D%%++T->->-C-C%%((* 4  *  r   