
    4	                         d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ ddl
mZ dd	lmZ d
ddZ e	j                   e	j"                  j$                         G d de	j&                               Zee_        y)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                   &    e Zd ZdZed        Zd Zy)DeleteCustomConstraintzDeletes a custom constraint.c                 X    t        j                  |        t        j                  |        y )N)r   AddCustomConstraintArgToParser$AddOrganizationResourceFlagsToParser)parsers    4lib/surface/org_policies/delete_custom_constraint.pyArgszDeleteCustomConstraint.Args.   s    ,,V4226:    c                     t        j                  | j                               }t        j                  |      }|j                  |      }t        j                  |d       |S )a  Deletes 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   RunzDeleteCustomConstraint.Run3   sY     (44T5F5F5HIN">>tD$;; O.0CDr   N)__name__
__module____qualname____doc__staticmethodr   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>r2      sx    ? &  ' J ( = 9 #	
	
 D%%(()T//  *6 (5  $r   