
    4	                         S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  SSK
Jr  SS	KJr  S
SS.r\	R                   " \	R"                  R$                  5       " S S\	R&                  5      5       r\\l        g)z8Delete-custom-constraint command for the Org Policy CLI.    )absolute_import)division)unicode_literals)service)base)	arguments)utils)logz)      Deletes a custom constraint.
      z      To delete the custom constraint 'custom.myCustomConstraint' associated
      with the Organization '1234', run:

      $ {command} custom.myCustomConstraint --organization=1234
      )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)DeleteCustomConstraint*   zDeletes a custom constraint.c                 \    [         R                  " U 5        [         R                  " U 5        g )N)r   AddCustomConstraintArgToParser$AddOrganizationResourceFlagsToParser)parsers    4lib/surface/org_policies/delete_custom_constraint.pyArgsDeleteCustomConstraint.Args.   s    ,,V4226:    c                     [         R                  " U R                  5       5      n[        R                  " U5      nUR                  U5      n[        R                  " US5        U$ )zDeletes the custom constraint.

Args:
  args: argparse.Namespace, An object that contains the values for the
    arguments specified in the Args method.

Returns:
   If the custom constraint is deleted, then messages.GoogleProtobufEmpty.
zcustom constraint)org_policy_serviceOrgPolicyApiReleaseTrackr	   GetCustomConstraintFromArgsr   r
   DeletedResource)selfargsorg_policy_apicustom_constraint_namedelete_responses        r   RunDeleteCustomConstraint.Run3   sY     (44T5F5F5HIN">>tD$;; O.0CDr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r#   __static_attributes__r%   r   r   r   r   *   s    $; ;r   r   N)r*   
__future__r   r   r    googlecloudsdk.api_lib.orgpolicyr   r   googlecloudsdk.callioper   'googlecloudsdk.command_lib.org_policiesr   r	   googlecloudsdk.corer
   DETAILED_HELPReleaseTracksr   GADeleteCommandr   detailed_helpr%   r   r   <module>r7      sv    ? &  ' J ( = 9 #	
	
 D%%(()T//  *6 (5  $r   