
    v
                        S r SSKJr  SSKJr  SSKJr  SSKJr  Sr	\R                  " \R                  R                  \R                  R                  \R                  R                  5       " S S\R                  5      5       rg	)
'Lists AlloyDB users in a given cluster.    )api_util)base)flags)
propertieszq
    table(
        name,
        userType:label="USER_TYPE",
        databaseRoles:label="DATABASE_ROLES"
    )
c                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
List!   r   z{description}z_      To list users, run:

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

Args:
  parser: argparse.Parser, Parser object for command line inputs
FN)r   	AddRegion
AddClusterdisplay_info	AddFormat_USER_FORMAT)parsers    !lib/surface/alloydb/users/list.pyArgs	List.Args0   s4     
OOF	VU#
!!,/    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[         R                  " UR                  UR!                  UR#                  5       S9SUR$                  UR&                  SS9n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
clustersId)parentuserspageSize)fieldlimit
batch_sizebatch_size_attribute)r   AlloyDBClientReleaseTrackalloydb_clientalloydb_messagesresource_parserCreater   VALUEScoreproject	GetOrFailregioncluster YieldFromListHandlingUnreachable!projects_locations_clusters_users0AlloydbProjectsLocationsClustersUsersListRequestRelativeNamer    	page_size)selfargsclientr%   r&   cluster_refresults          r   RunList.Run;   s     ##D$5$5$78F**N..((//-$$))11;;KK<<	 0 K 6688II++- 	J 	
 jj>>'	F Mr    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r9   __static_attributes__r;   r   r   r	   r	   !   s1     0 %
- 0 0r   r	   N)r@   googlecloudsdk.api_lib.alloydbr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.alloydbr   googlecloudsdk.corer   r   ReleaseTracksr$   ALPHABETAGAListCommandr	   r;   r   r   <module>rM      sv    . 4 ( 4 * T..33T5F5F5I5I64 66r   