
    B                     ^   d Z ddlmZ ddlmZ ddlmZ ddlZddlmZ ddlm	Z	 ddl
mZ d	d
dZe	j                   e	j                  e	j                  j                   e	j                  j"                  e	j                  j$                         G d de	j&                                      Zee_        y)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                   &    e Zd ZdZed        Zd Zy)Deletez"Delete a Mirroring Endpoint Group.c                     t        j                  | j                         |       t        j                  |d       t        j
                  j                  |       t        j
                  j                  |d       y )N20mT)r   AddEndpointGroupResourceReleaseTrack
AddMaxWaitr   
ASYNC_FLAGAddToParser
SetDefault)clsparsers     @lib/surface/network_security/mirroring_endpoint_groups/delete.pyArgszDelete.Args5   sV    11#2B2B2DfM## 	OO'OOvt,    c                    t        j                  | j                               }|j                  j                  j                         }|j                  }t        j                  |j                        }|j                  |j                               }|r|j                  d      sd|_        |S |j                  |j                  |      dj                  |j                               d|      S )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   Runz
Delete.Run>   s    ZZ))+,F]];;AACN{{H!!$--8H**((* + I  h'"",,Y7ELL++-  # 	 	r   N)__name__
__module____qualname____doc__classmethodr   r5    r   r   r   r   /   s     +- -r   r   )r9   
__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_helpr;   r   r   <module>rH      s    % &  '  Q ( L( D%%++T->->-C-C%%((*'T '* 'T % r   