
                         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)z6Command to get a policy 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)	Get   z?Get a policy on the given attachment point with the given name.EXAMPLESa$            The following command gets the IAM policy defined at the resource
          project ``123'' of kind ``denypolicies'' and id ``my-deny-policy'':

            $ {command} my-deny-policy --attachment-point=cloudresourcemanager.googleapis.com/projects/123 --kind=denypolicies
          c                     [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        g )N)flagsGetAttachmentPointFlagAddToParserGetKindFlagGetPolicyIDFlag)parsers    lib/surface/iam/policies/get.pyArgsGet.Args,   sG    	  "..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                  UR                  5      S95      nU$ )N/z%2Fzpolicies/{}/{}/{})name)apisGetClientInstancecalliope_commandReleaseTrackGetMessagesModuleattachment_pointreplacer   r
   IamPoliciesGetRequestformatkind	policy_id)selfargsclientmessagesr    results         r   RunGet.Run2   s    ##D$9$9$F$F$HIF%%d&;&;&H&H&JKH,,44S%@__  &&,?,F,Fii-9& 	:;F Mr    N)__name__
__module____qualname____firstlineno____doc__textwrapdedentdetailed_helpstaticmethodr   r+   __static_attributes__r-   r   r   r
   r
      s>     H 
//  - 0 0
	r   r
   )r2   
__future__r   r   r   r3   googlecloudsdk.api_lib.iamr   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.iamr   r   UniverseCompatibleReleaseTracksr   ALPHABETAGADescribeCommandr
   r-   r   r   <module>rB      s    = &  '  7 ( B D%%++T->->-C-C%%((*$

 * r   