
    	                     (   S 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	  SSS	.r
\R                  " \R                  R                  \R                  R                  \R                  R                  5       " S
 S\R                   5      5       r\
\l        g)z'ids endpoints delete' command.    N)base)ids_api)flags)	resourcesz0
          Delete a Cloud IDS endpoint.
        a  
          To delete an endpoint called `my-ep` in project `my-project`
          and zone `us-central1-a`, run:

          $ {command} my-ep --project=my-project --zone=us-central1-a

          OR

          $ {command} projects/myproject/locations/us-central1-a/endpoints/my-ep

    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Delete,   zDelete a Cloud IDS endpoint.c                     [         R                  " U 5        [        R                  R	                  U 5        [        R                  R                  U S5        [         R                  " U S5        g )NT60m)r   AddEndpointResourcer   
ASYNC_FLAGAddToParser
SetDefault
AddMaxWait)parsers    #lib/surface/ids/endpoints/delete.pyArgsDelete.Args1   sF    	f%OO'OOvt,	VU#    c                    UR                   R                  R                  5       nUR                  n[        R
                  " UR                  S9n[        R                  " U R                  5       5      nUR                  UR                  5       5      nU(       a  UR                  S5      (       d  SUl        U$ UR                  UR                  U5      SR                  UR                  5       5      SUS9$ )N)secondsformatdefaultz'waiting for endpoint [{}] to be deletedF)operation_refmessage
has_resultmax_wait)CONCEPTSendpointParseasync_datetime	timedeltar   r   ClientReleaseTrackDeleteEndpointRelativeNameIsSpecifiedr   WaitForOperationGetOperationRef)selfargsr!   is_asyncr   client	operations          r   Run
Delete.Run8   s    }}%%++-H{{H!!$--8H^^D--/0F%%h&;&;&=>I  h''"",,Y79@@!!#% #  r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r2   __static_attributes__r4   r   r   r
   r
   ,   s     %$ $r   r
   )r9   r$   googlecloudsdk.callioper   googlecloudsdk.api_lib.idsr   googlecloudsdk.command_lib.idsr   googlecloudsdk.corer   DETAILED_HELPReleaseTracksr'   ALPHABETAGADeleteCommandr
   detailed_helpr4   r   r   <module>rG      s    &  ( . 0 )	
	( D%%++T->->-C-C%%((*T *B % r   