
    v
                     R   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  SS	KJr  \
R                   \
R"                  " \
R$                  R&                  \
R$                  R(                  \
R$                  R*                  5       " S
 S\
R,                  5      5       5       rg)z9Command to delete a policy on the given attachment point.    )absolute_import)division)unicode_literalsN)policies)base)policies_flags)logc                   V    \ rS rSrSrS\R                  " S5      0r\S 5       r	S r
Srg)	Delete   zBDelete a policy on the given attachment point with the given name.EXAMPLESaO            The following command deletes the IAM policy defined at the resource
          project ``123'' of kind ``denypolicies'' and id ``my-deny-policy'',
          with etag ``abc'':

            $ {command} my-deny-policy --attachment-point=cloudresourcemanager.googleapis.com/projects/123 --kind=denypolicies --etag=abc
          c                 $   [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R
                  " 5       R                  U 5        g )N)flagsGetAttachmentPointFlagAddToParserGetKindFlagGetPolicyIDFlagGetEtagFlag)parsers    "lib/surface/iam/policies/delete.pyArgsDelete.Args.   s^    	  "..v6	##F+	''/	##F+    c           	         UR                   R                  5       n[        R                  " U5      n[        R                  " U5      nUR
                  R                  SS5      nSSSS.nUR                  R                  UR                  SR                  XQR                  UR                  5      UR                  S95      n[        R                  " UR                   XaR                     S	S
9  U$ )N/z%2F
denyPolicyprincipalAccessBoundaryPolicyaccessboundaryPolicy)denypoliciesprincipalaccessboundarypoliciesaccessboundarypolicieszpolicies/{}/{}/{})nameetagT)is_async)calliope_commandReleaseTrackapisGetClientInstanceGetMessagesModuleattachment_pointreplacer   r   IamPoliciesDeleteRequestformatkind	policy_idr#   r	   DeletedResourcer"   )selfargsrelease_trackclientmessagesr*   kindsresults           r   Run
Delete.Run5   s    ))668M##M2F%%m4H,,44S%@$+J"8E
 __##))$++,<ii,0NN< 	* 	F
 U99%5EMr    N)__name__
__module____qualname____firstlineno____doc__textwrapdedentdetailed_helpstaticmethodr   r8   __static_attributes__r:   r   r   r   r      s>     K 
//  	- , ,r   r   )r?   
__future__r   r   r   r@   googlecloudsdk.api_lib.iamr   r'   googlecloudsdk.callioper   googlecloudsdk.command_lib.iamr   r   googlecloudsdk.corer	   UniverseCompatibleReleaseTracksr&   ALPHABETAGADeleteCommandr   r:   r   r   <module>rP      s    @ &  '  7 ( B # D%%++T->->-C-C%%((*%T %* %r   