
                             S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  \	R                   " S S	\	R                  5      5       rg
)z8Command to monitor the last operation of a transfer job.    )absolute_import)division)unicode_literals)	jobs_util)operations_util)basec                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Monitor   zBTrack progress in real time for a transfer job's latest operation.zO      Track progress in real time for a transfer job's latest operation.
      a=        To monitor a job, run:

        $ {command} JOB-NAME

      If you're looking for recent error details, use the "Operation name"
      returned by this command as input to the "operations describe" command:

        $ {command} JOB-NAME

        $ {grandparent_command} operations describe OPERATION-NAME
      )DESCRIPTIONEXAMPLESc                 $    U R                  SSS9  g )Nnamez\The name of the job you want to monitor (you'll see details for the job's latest operation).)help)add_argument)parsers    $lib/surface/transfer/jobs/monitor.pyArgsMonitor.Args2   s    
@  A    c                 p    [         R                  " UR                  5      n[        R                  " U5        g )N)r   block_until_operation_createdr   r   display_monitoring_view)selfargsoperation_names      r   RunMonitor.Run9   s$    <<TYYGN++N;r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r   __static_attributes__r   r   r   r
   r
      s1    J

-( A A<r   r
   N)r$   
__future__r   r   r   googlecloudsdk.api_lib.transferr   r   googlecloudsdk.callioper   UniverseCompatibleCommandr
   r   r   r   <module>r-      sA    ? &  ' 5 ; (  <dll  <  <r   