
     	                         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	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\R*                  5      rg)z5Implementation of gcloud genomics operations cancel.
    )absolute_import)division)unicode_literalsN)genomics_client)GenomicsError)base)display)flags)log)
console_io)resource_printerc                   .    \ rS rSrSr\S 5       rS rSrg)Cancel"   zCancels an operation.
  c                 0    [         R                  " U 5        g)z Register flags for this command.N)r
   AddName)parsers    )lib/surface/genomics/operations/cancel.pyArgsCancel.Args&   s     
MM&    c                    [         R                  " UR                  5      u  p#UR                  U5      n[        R
                  " 5       n[        R                  " X5      R                  5       n[        R                  " XFUS9  [        R                  " UR                  5       < SS< 3S9(       d  [        S5      eUR                  U5        [         R"                  R%                  SR'                  UR)                  5       5      5        g)a  This is what gets called when the user runs this command.

Args:
  args: an argparse namespace, All the arguments that were provided to this
    command invocation.

Raises:
  HttpException: An http error response was received while executing api
      request.
Returns:
  None
)out
zThis operation will be canceled)messagezCancel aborted by user.zCanceled [{0}].
N)r   CreateFromNamenameGetOperationioStringIOr	   	Displayer	GetFormatr   Printr   PromptContinuegetvaluer   CancelOperationr   statuswriteformatRelativeName)selfargsclientresourceopoperation_stringprint_formats          r   Run
Cancel.Run+   s     '55dii@F			X	&B{{}$$T0::<L21AB$$!!#%F.H I344
8$JJ(//0E0E0GHIr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r2   __static_attributes__r4   r   r   r   r   "   s!      Jr   r   )r9   
__future__r   r   r   r   googlecloudsdk.api_lib.genomicsr   *googlecloudsdk.api_lib.genomics.exceptionsr   googlecloudsdk.callioper   r	   #googlecloudsdk.command_lib.genomicsr
   googlecloudsdk.corer   googlecloudsdk.core.consoler   googlecloudsdk.core.resourcer   Commandr   r4   r   r   <module>rE      sB    '  ' 	 ; D ( + 5 # 2 9"JT\\ "Jr   