
    ~                     \   S 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
KJr  SSKJr  SSKJr  \	R$                  " \	R&                  R(                  \	R&                  R*                  \	R&                  R,                  5       " S S\	R.                  5      5       rg)zDeletes a AlloyDB cluster.    )absolute_import)division)unicode_literals)api_util)cluster_operations)base)flags)log)
properties)	resources)
console_ioc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Delete    z,Delete an AlloyDB cluster in a given region.z{description}za        To delete a cluster, run:

          $ {command} my-cluster --region=us-central1
        )DESCRIPTIONEXAMPLESc                     [         R                  R                  U 5        [        R                  " U 5        [        R
                  " U 5        [        R                  " U 5        g)zmSpecifies additional command flags.

Args:
  parser: argparse.Parser: Parser object for command line inputs.
N)r   
ASYNC_FLAGAddToParserr	   	AddRegion
AddClusterAddForce)parsers    &lib/surface/alloydb/clusters/delete.pyArgsDelete.Args0   s<     	OO'	OOF	V	NN6    c                 ,   [         R                  " U R                  5       5      nUR                  nUR                  nUR
                  R                  S[        R                  R                  R                  R                  UR                  UR                  S9nSn[        R                  " US9(       d  gUR!                  UR#                  5       UR$                  S9nUR&                  R)                  U5      n[*        R,                  R/                  UR0                  SS9n	[2        R4                  R7                  S	R9                  U	R;                  5       5      5        UR<                  (       d'  [>        R@                  " U	S
U R                  5       S5        U$ )zConstructs and sends request.

Args:
  args: argparse.Namespace, An object that contains the values for the
      arguments specified in the .Args() method.

Returns:
  ProcessHttpResponse of the request made.
z#alloydb.projects.locations.clusters)
projectsIdlocationsId
clustersIdzAAll of the cluster data will be lost when the cluster is deleted.)messageN)nameforcez%alloydb.projects.locations.operations)
collectionzOperation ID: {}zDeleting clusterF)!r   AlloyDBClientReleaseTrackalloydb_clientalloydb_messagesresource_parserCreater   VALUEScoreproject	GetOrFailregionclusterr   PromptContinue-AlloydbProjectsLocationsClustersDeleteRequestRelativeNamer$   projects_locations_clustersr   r   REGISTRYParseRelativeNamer#   r
   statusPrintformatNameasync_r   Await)
selfargsclientr(   r)   cluster_refprompt_messagereqopop_refs
             r   Run
Delete.Run<   sK    ##D$5$5$78F**N..((//-$$))11;;KKDLL 0 :K 	L $$^<

H
H%%'tzz I ;C		3	3	:	:3	?B11
C 2 EFJJ'..v{{}=>;;v'94;L;L;N$&Ir    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   rF   __static_attributes__rH   r   r   r   r       s1     5 		- 	 	 r   r   N)rM   
__future__r   r   r   googlecloudsdk.api_lib.alloydbr   r   googlecloudsdk.callioper   "googlecloudsdk.command_lib.alloydbr	   googlecloudsdk.corer
   r   r   googlecloudsdk.core.consoler   ReleaseTracksr'   ALPHABETAGADeleteCommandr   rH   r   r   <module>r\      s    ! '  ' 3 = ( 4 # * ) 2 D%%++T->->-C-C%%((*:T :*:r   