
    B                     ^   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 mirroring endpoint group. Check the progress of endpoint group deletion
          by using `gcloud network-security mirroring-endpoint-groups list`.

          For more examples, refer to the EXAMPLES section below.

        aA  
            To delete a mirroring 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/mirroringEndpointGroups/my-endpoint-group

        )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Delete/   z"Delete a Mirroring 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/mirroring_endpoint_groups/delete.pyArgsDelete.Args5   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 mirroring endpoint group [{}] to be deletedF)operation_refmessage
has_resultmax_wait)r   Clientr   CONCEPTSmirroring_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.mirroring_endpoint_groupsr   googlecloudsdk.callioper   +googlecloudsdk.command_lib.network_securityr   DETAILED_HELPDefaultUniverseOnlyReleaseTracksr   ALPHABETAGADeleteCommandr   detailed_helpr9   r   r   <module>rM      s    % &  '  Q ( L( D%%++T->->-C-C%%((*'T '* 'T % r   