
                             S 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 cancel a transfer operation.    )apis)base)	name_util)logc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Cancel   zCancel a transfer operation.z)      Cancel a transfer operation.
      zM      To cancel an operation, run:

        $ {command} OPERATION-NAME
      )DESCRIPTIONEXAMPLESc                 $    U R                  SSS9  g )Nnamez6The name of the transfer operation you want to cancel.)help)add_argument)parsers    )lib/surface/transfer/operations/cancel.pyArgsCancel.Args)   s    
M  O    c                 L   [         R                  " SS5      n[         R                  " SS5      n[        R                  " UR
                  5      nUR                  R                  UR                  US95        [        R                  R                  SR                  U5      5        g )Ntransferv1)r   zSent cancel request for {})r   GetClientInstanceGetMessagesModuler   add_operation_prefixr   transferOperationsr   .StoragetransferTransferOperationsCancelRequestr   statusPrintformat)selfargsclientmessagesformatted_names        r   Run
Cancel.Run.   s    ##J5F%%j$7H33DII>N
$$?? 	@ 	!" JJ188HIr    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r%   __static_attributes__r'   r   r   r   r      s2    $

- O OJr   r   N)r,   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.transferr   googlecloudsdk.corer   UniverseCompatibleCommandr   r'   r   r   <module>r6      s@    . - ( 9 # JT\\ J Jr   