
    F                     p   S 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\R                  " S	5      S
.r\R                   " \R"                  R$                  \R"                  R&                  \R"                  R(                  5      \R*                   " S S\R,                  5      5       5       rg)z%Cancels a Cloud Deploy AutomationRun.    N)automation_run)
exceptions)base)resource_args)logz{description}z     To cancel an AutomationRun `test-run` for delivery pipeline `test-pipeline`
     in region `us-central1`, run:

      $ {command} test-run --delivery-pipeline=test-pipeline
      --region=us-central1
      )DESCRIPTIONEXAMPLESc                   p    \ rS rSrSr\r\S 5       r\	R                  " \R                  5      S 5       rSrg)Cancel'   z&Cancels a Cloud Deploy Automation Run.c                 .    [         R                  " U SS9  g )NT)
positional)r   AddAutomationRunResourceArg)parsers    ,lib/surface/deploy/automation_runs/cancel.pyArgsCancel.Args0   s    --fF    c                 &   UR                   R                  R                  5       n[        R                  R                  SR                  UR                  5       5      5        [        R                  " 5       R                  UR                  5       5      $ )NzCancelling automation run {}.
)
CONCEPTSr   Parser   statusPrintformatRelativeNameAutomationRunsClientr   )selfargsautomation_run_refs      r   Run
Cancel.Run4   ss     55;;=JJ)00++-	
 ..077'') r    N)__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpstaticmethodr   gcloud_exception CatchHTTPErrorRaiseHTTPExceptiondeploy_exceptionsHTTP_ERROR_FORMATr    __static_attributes__r"   r   r   r   r   '   sH    
 / -G G 44))

r   r   )r'   textwrap"googlecloudsdk.api_lib.clouddeployr   googlecloudsdk.api_lib.utilr   r+   googlecloudsdk.callioper   !googlecloudsdk.command_lib.deployr-   r   googlecloudsdk.corer   dedentr(   ReleaseTracksReleaseTrackALPHABETAGADefaultUniverseOnlyCreateCommandr   r"   r   r   <module>r>      s    ,  = F ( M ; # # !
 	 T..33T5F5F5I5I T  r   