
    6                         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 " S S\	R                  5      r\\l        g)zDelete endpoint command.    )absolute_import)division)unicode_literalsN)activation_api)base)activation_flagsz
          Delete a firewall endpoint. Check the progress of endpoint deletion
          by using `gcloud network-security firewall-endpoints list`.

          For more examples, refer to the EXAMPLES section below.

        aM  
            To delete a firewall endpoint called `my-endpoint`, in zone
            `us-central1-a` and organization ID 1234, run:

            $ {command} my-endpoint --zone=us-central1-a --organization=1234

            OR

            $ {command} organizations/1234/locations/us-central1-a/firewallEndpoints/my-endpoint

        )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Delete0   z Delete a Firewall Plus endpoint.c                     [         R                  " U R                  5       U5        [         R                  " US5        [        R
                  R                  U5        [        R
                  R                  US5        g )N60mT)r   AddEndpointResourceReleaseTrack
AddMaxWaitr   
ASYNC_FLAGAddToParser
SetDefault)clsparsers     9lib/surface/network_security/firewall_endpoints/delete.pyArgsDelete.Args3   sQ    (()9)9);VD.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defaultz0waiting for firewall endpoint [{}] to be deletedF)operation_refmessage
has_resultmax_wait)r   Clientr   CONCEPTSfirewall_endpointParseasync_datetime	timedeltar$   DeleteEndpointRelativeNameIsSpecifiedr   WaitForOperationGetOperationRef)selfargsclientendpointis_asyncr$   	operations          r   Run
Delete.Run:   s    ""4#4#4#67F}}..446H{{H!!$--8H%%""$ & I  h''"",,Y7BII!!#
  #  r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r7   __static_attributes__r9   r   r   r   r   0   s    (- -r   r   )r>   
__future__r   r   r   r*   :googlecloudsdk.api_lib.network_security.firewall_endpointsr   googlecloudsdk.callioper   +googlecloudsdk.command_lib.network_securityr   DETAILED_HELPDeleteCommandr   detailed_helpr9   r   r   <module>rH      sM     &  '  U ( H
,#T #L % r   