
                         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)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                   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 target.c                 .    [         R                  " U SS9  g )NT)
positional)r   AddTargetResourceArg)parsers    $lib/surface/deploy/targets/delete.pyArgsDelete.Args-   s    &&v$?    c                     UR                   R                  R                  5       n[        R                  " UR                  5       5      n[        R                  " 5       R                  UR                  5       U0S5        g)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   Run
Delete.Run1   sa     %%++-J		!	!*"9"9";	<B  "77		 	 	"B')KM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   &   sJ     ' -@ @ 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>r>      s    8  : F ( M ; 9 	  			 D%%++T->->-C-C%%((*MT M *Mr   