
                             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
  SSKJr  SS	KJr  \
R                   " S
 S\
R                   5      5       rg)zCommand to run transfer jobs.    )absolute_import)division)unicode_literals)operations_util)apis)base)	name_util)
propertiesc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Run   z$Run a Transfer Service transfer job.z1      Run a Transfer Service transfer job.
      z<      To run job 'foo', run:

        $ {command} foo
      )DESCRIPTIONEXAMPLESc                 F    U R                  SSS9  U R                  SSSS9  g )Nnamez$The name of the job you want to run.)helpz
--no-async
store_truezBlocks other tasks in your terminal until the transfer operation has completed. If not included, tasks will run asynchronously.)actionr   )add_argument)parsers     lib/surface/transfer/jobs/run.pyArgsRun.Args.   s6    
%KL
N	  P    c           	         [         R                  " SS5      n[         R                  " SS5      n[        R                  " UR
                  5      nUR                  R                  UR                  UUR                  [        R                  R                  R                  R                  5       S9S95      nUR                  (       a  [         R"                  " UR
                  S9  U$ )Ntransferv1)	projectId)jobNamerunTransferJobRequest)operation_name)r   GetClientInstanceGetMessagesModuler	   add_job_prefixr   transferJobsr   %StoragetransferTransferJobsRunRequestRunTransferJobRequestr
   VALUEScoreprojectGetno_asyncr   block_until_done)selfargsclientmessagesformatted_nameresults         r   r   Run.Run8   s    ##J5F%%j$7H--dii8N  $$66""*"@"@$++0088<<> #A #@ 	7 	ABF }}&&fkkBMr    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r   __static_attributes__r5   r   r   r   r      s1    ,


- P Pr   r   N)r:   
__future__r   r   r   googlecloudsdk.api_lib.transferr   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.transferr	   googlecloudsdk.corer
   UniverseCompatibleCommandr   r5   r   r   <module>rF      sG    $ &  ' ; , ( 9 * *$,, * *r   