
    >                     ^   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
S.r\	R                  \	R                  " \	R                  R                   \	R                  R"                  \	R                  R$                  5       " S S\	R&                  5      5       5       r\\l        g)zDelete endpoint group command.    )absolute_import)division)unicode_literalsN)api)base)endpoint_group_flagsz
          Delete a intercept endpoint group. Check the progress of endpoint group deletion
          by using `gcloud network-security intercept-endpoint-groups list`.

          For more examples, refer to the EXAMPLES section below.

        aA  
            To delete a intercept endpoint group called `my-endpoint-group`, in project ID `my-project`, run:
            $ {command} my-endpoint-group --project=my-project --location=global

            OR

            $ {command} projects/my-project/locations/global/interceptEndpointGroups/my-endpoint-group

        )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Delete/   z"Delete a Intercept Endpoint Group.c                     [         R                  " U R                  5       U5        [         R                  " US5        [        R
                  R                  U5        [        R
                  R                  US5        g )N20mT)r   AddEndpointGroupResourceReleaseTrack
AddMaxWaitr   
ASYNC_FLAGAddToParser
SetDefault)clsparsers     @lib/surface/network_security/intercept_endpoint_groups/delete.pyArgsDelete.Args6   sV    11#2B2B2DfM## 	OO'OOvt,    c                    [         R                  " U R                  5       5      nUR                  R                  R                  5       nUR                  n[        R                  " UR                  S9nUR                  UR                  5       S9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)nameformatdefaultz7waiting for intercept endpoint group [{}] to be deletedF)operation_refmessage
has_resultmax_wait)r   Clientr   CONCEPTSintercept_endpoint_groupParseasync_datetime	timedeltar$   DeleteEndpointGroupRelativeNameIsSpecifiedr   WaitForOperationGetOperationRef)selfargsclientendpoint_groupis_asyncr$   	operations          r   Run
Delete.Run?   s    ZZ))+,F]];;AACN{{H!!$--8H**((* + I  h''"",,Y7ELL++-  # 	 	r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r7   __static_attributes__r9   r   r   r   r   /   s    
 +- -r   r   )r>   
__future__r   r   r   r*   Agooglecloudsdk.api_lib.network_security.intercept_endpoint_groupsr   googlecloudsdk.callioper   5googlecloudsdk.command_lib.network_security.interceptr   DETAILED_HELPDefaultUniverseOnlyReleaseTracksr   ALPHABETAGADeleteCommandr   detailed_helpr9   r   r   <module>rM      s    % &  '  Q ( V( T..33T5F5F5I5I'T ' 'T % r   