
    	                         S 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                  5       " S	 S
\R                  5      5       r\\l        g)zDelete attachment command.    N)attachment_api)base)attachment_flagsz
          Delete a firewall attachment. Check the progress of attachment deletion
          by using `gcloud network-security firewall-attachments list`.

          For more examples, refer to the EXAMPLES section below.

        a>  
            To delete a firewall attachment called `my-attachment`, in zone
            `us-central1-a` and project my-proj, run:

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

            $ {command} projects/my-proj/locations/us-central1-a/firewallAttachments/my-attachment

        )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Delete,   zDelete a Firewall attachment.c                     [         R                  " U R                  5       U5        [         R                  " US5        [        R
                  R                  U5        [        R
                  R                  US5        g )N60mT)r   AddAttachmentResourceReleaseTrack
AddMaxWaitr   
ASYNC_FLAGAddToParser
SetDefault)clsparsers     ;lib/surface/network_security/firewall_attachments/delete.pyArgsDelete.Args0   sQ    **3+;+;+=vF.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defaultz2waiting for firewall attachment [{}] to be deletedT)operation_refmessage
has_resultmax_wait)r   Clientr   CONCEPTSfirewall_attachmentParseasync_datetime	timedeltar!   DeleteAttachmentRelativeNameIsSpecifiedr   WaitForOperationGetOperationRef)selfargsclient
attachmentis_asyncr!   	operations          r   Run
Delete.Run7   s    ""4#4#4#67F2288:J{{H!!$--8H''$$& ( I  h''"",,Y7@VJ++-. #  r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r4   __static_attributes__r6   r   r   r	   r	   ,   s    %- -r   r	   )r;   r'   <googlecloudsdk.api_lib.network_security.firewall_attachmentsr   googlecloudsdk.callioper   +googlecloudsdk.command_lib.network_securityr   DETAILED_HELPReleaseTracksr   ALPHADeleteCommandr	   detailed_helpr6   r   r   <module>rF      sl    !  W ( H( D%%++,$T $ -$N % r   