ó
    €ÏÑ	  ã                   ó|  • 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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,Deletes a Gcloud Deploy Automation resource.é    N)Úclient_util)Ú
exceptions)Úbase)Úautomation_util)Úresource_args)Ú
console_ioz{description}zÝ        To delete an automation `test-automation` for delivery pipeline `test-pipeline`, in region `us-central1`, run:

          $ {command} test-automation --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)ÚDeleteé%   z"Deletes a Cloud Deploy Automation.c                 ó.   • [         R                  " U SS9  g )NT)Ú
positional)r   ÚAddAutomationResourceArg)Úparsers    Ú(lib/surface/deploy/automations/delete.pyÚArgsÚDelete.Args.   s   € ä×*Ò*¨6¸dÓCó    c                 ó(  • [         R                  " SSS9  UR                  R                  R	                  5       n[
        R                  " UR                  5       5      n[        R                  " 5       R                  UR                  5       U0S5        g)z Entry point of the delete command.

Args:
  args: argparse.Namespace, An object that contains the values for the
    arguments specified in the .Args() method.
z6Once an automation is deleted, it cannot be recovered.T)Úprompt_stringÚcancel_on_noz$Deleted Cloud Deploy automation: {}.N)r   ÚPromptContinueÚCONCEPTSÚ
automationÚParser   ÚDeleteAutomationÚRelativeNamer   ÚOperationsClientÚCheckOperationStatus)ÚselfÚargsÚautomation_refÚops       r   ÚRunÚ
Delete.Run2   sv   € ô ×ÒØNØòð —]‘]×-Ñ-×3Ñ3Ó5€NÜ	×	)Ò	)¨.×*EÑ*EÓ*GÓ	H€BÜ× Ò Ó"×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   † ñ
 +à €-àñDó ðDð ×4Ò4Ø×)Ñ)óñóór   r   )r,   ÚtextwrapÚ"googlecloudsdk.api_lib.clouddeployr   Úgooglecloudsdk.api_lib.utilr   r0   Úgooglecloudsdk.callioper   Ú!googlecloudsdk.command_lib.deployr   r2   r   Úgooglecloudsdk.core.consoler   Údedentr-   ÚReleaseTracksÚReleaseTrackÚALPHAÚBETAÚGAÚDefaultUniverseOnlyÚDeleteCommandr   r'   r   r   Ú<module>rC      s¦   ðñ 3ã å :Ý FÝ (Ý =Ý MÝ ;Ý 2ð #Ø—’ð !ó ñ€ð ×ÒØ×Ñ×Ñ˜T×.Ñ.×3Ñ3°T×5FÑ5F×5IÑ5Ióð ×ÑôˆT×Ñó ó óñr   