Ë
    €Ï‘  ã                   ó˜   — d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 e	j                   G d„ d	e	j                  «      «       Zy
)z8Command to monitor the last operation of a transfer job.é    )Úabsolute_import)Údivision)Úunicode_literals)Ú	jobs_util)Úoperations_util)Úbasec                   ó0   — e Zd ZdZdddœZed„ «       Zd„ Zy)ÚMonitorzBTrack 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                 ó*   — | j                  dd¬«       y )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ÚArgszMonitor.Args2   s   € à
×ÑØð@ð õ Aó    c                 ól   — t        j                  |j                  «      }t        j                  |«       y )N)r   Úblock_until_operation_createdr   r   Údisplay_monitoring_view)ÚselfÚargsÚoperation_names      r   ÚRunzMonitor.Run9   s$   € Ü×<Ñ<¸T¿Y¹YÓG€NÜ×+Ñ+¨NÕ;r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Údetailed_helpÚstaticmethodr   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Ý ;Ý (ð ×Ñô <ˆdl‰ló  <ó ñ <r   