
                             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                  5       " S S\	R                   5      5       r\\l        g)z'ids operations wait' command.    )absolute_import)division)unicode_literalsN)ids_api)base)flagsz?
          Wait for a Cloud IDS operation to complete.
        aA  
          To get a description of an operation called `my-operation` in
          project `my-project` and zone `us-central1-a`, run:

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

          OR

          $ {command} projects/myproject/locations/us-central1-a/operations/my-operation
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Wait-   z+Wait for a Cloud IDS operation to complete.c                 ^    [         R                  " U 5        [         R                  " U S5        g )N60m)r   AddOperationResource
AddMaxWait)parsers    "lib/surface/ids/operations/wait.pyArgs	Wait.Args1   s     	v&	VU#    c                     UR                   R                  R                  5       n[        R                  " UR
                  S9n[        R                  " U R                  5       5      nUR                  USSUS9$ )N)secondsz!Waiting for operation to completeF)operation_refmessage
has_resultmax_wait)
CONCEPTS	operationParsedatetime	timedeltar   r   ClientReleaseTrackWaitForOperation)selfargsr   r   clients        r   RunWait.Run6   si    ''--/I!!$--8H^^D--/0F""3	 #  r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r(   __static_attributes__r*   r   r   r   r   -   s    3$ $	r   r   )r/   
__future__r   r   r   r    googlecloudsdk.api_lib.idsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.idsr   DETAILED_HELPReleaseTracksr#   ALPHACommandr   detailed_helpr*   r   r   <module>r;      sp    % &  '  . ( 0			& D%%++,4<<  -( # r   