
                         p   d Z ddlZddlmZ ddlmZ ddlmZ ddl	mZ
 ddl	mZ ddl	mZ d ej                  d	      d
Z ej                  ej                   j"                  ej                   j$                  ej                   j&                        ej(                   G d dej*                                      Zy)z1Deletes a Gcloud Deploy delivery target resource.    N)client_util)
exceptions)base)resource_args)target_utilz{description}z        To delete a target called 'test-target' in region 'us-central1', run:

          $ {command} test-target --region=us-central1
        )DESCRIPTIONEXAMPLESc                   h    e Zd ZdZeZed        Z ej                  e
j                        d        Zy)DeletezDeletes a Cloud Deploy target.c                 2    t        j                  | d       y )NT)
positional)r   AddTargetResourceArg)parsers    $lib/surface/deploy/targets/delete.pyArgszDelete.Args-   s    &&v$?    c                     |j                   j                  j                         }t        j                  |j                               }t        j                         j                  |j                         |id       y)zEntry point of the export command.

    Args:
      args: argparse.Namespace, An object that contains the values for the
        arguments specified in the .Args() method.
    z Deleted Cloud Deploy target: {}.N)	CONCEPTStargetParser   DeleteTargetRelativeNamer   OperationsClientCheckOperationStatus)selfargs
target_refops       r   Runz
Delete.Run1   sa     %%++-J		!	!*"9"9";	<B  "77		 	 	"B')KMr   N)__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpstaticmethodr   gcloud_exception CatchHTTPErrorRaiseHTTPExceptiondeploy_exceptionsHTTP_ERROR_FORMATr    r   r   r   r   &   sM     ' -@ @ 544))
M
Mr   r   )r#   textwrap"googlecloudsdk.api_lib.clouddeployr   googlecloudsdk.api_lib.utilr   r'   googlecloudsdk.callioper   !googlecloudsdk.command_lib.deployr)   r   r   dedentr$   ReleaseTracksReleaseTrackALPHABETAGADefaultUniverseOnlyDeleteCommandr   r+   r   r   <module>r9      s    8  : F ( M ; 9 	  			 D%%++T->->-C-C%%((*MT M *Mr   