
    
                        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
  \R                  " \R                  R                  \R                  R                  \R                  R                  5       " S S\R                   5      5       rg	)
zDeletes an AlloyDB user.    )api_util)base)flags)
properties)
console_ioc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Delete   z+Deletes an AlloyDB user in a given cluster.z{description}zo      To delete an user, run:

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

Args:
  parser: argparse.Parser, Parser object for command line inputs
FN)r   AddUsername
AddCluster	AddRegion)parsers    #lib/surface/alloydb/users/delete.pyArgsDelete.Args*   s.     
f	VU#	OOF    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                  UR                  S9nSn[        R                   " US9(       d  gUR#                  UR%                  5       S9nUR&                  R)                  U5      $ )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.users)
projectsIdlocationsId
clustersIdusersIdz2User will be deleted from cluster upon completion.)messageN)name)r   AlloyDBClientReleaseTrackalloydb_clientalloydb_messagesresource_parserCreater   VALUEScoreproject	GetOrFailregionclusterusernamer   PromptContinue2AlloydbProjectsLocationsClustersUsersDeleteRequestRelativeName!projects_locations_clusters_usersr	   )selfargsclientr   r    user_refprompt_messagereqs           r   Run
Delete.Run5   s     ##D$5$5$78F**N..%%,,3$$))11;;KK<< - H JN$$^<

M
M""$ N C ;;BB3GGr    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r4   __static_attributes__r6   r   r   r	   r	      s2     4 %
-  Hr   r	   N)r;   googlecloudsdk.api_lib.alloydbr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.alloydbr   googlecloudsdk.corer   googlecloudsdk.core.consoler   ReleaseTracksr   ALPHABETAGADeleteCommandr	   r6   r   r   <module>rI      su    
 4 ( 4 * 2 T..33T5F5F5I5I3HT 3H3Hr   