
    [                        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r
SrS	rS
rSr\R                  \R                   " \R"                  R$                  \R"                  R&                  5       " S S\R(                  5      5       5       rg)z.services groups list expanded members command.    N)serviceusage)base)common_flags)
propertieszprojects/%sz
folders/%szorganizations/%szservices/%sz	groups/%sc                   .    \ rS rSrSr\S 5       rS rSrg)ListExpandedMembers   a{  List expanded members of a specific service and group.

List expanded members of a specific service and group.

## EXAMPLES

 List expanded members of service my-service and group my-group:

 $ {command} my-service my-group

 List expanded members of service my-service and group my-group
 for a specific project '12345678':

  $ {command} my-service my-group --project=12345678
c                 $   U R                  SSS9  U R                  SSS9  [        R                  " U 5        [        R                  R                  U S5        [        R                  R                  U 5        U R                  R                  S5        g )NservicezName of the service.)helpgroupz/Service group name, for example "dependencies".2   z@
          table(
            Name:label=''
          )
        )
add_argumentr   add_resource_argsr   PAGE_SIZE_FLAG
SetDefaultURI_FLAGRemoveFromParserdisplay_info	AddFormat)parsers    4lib/surface/services/groups/list_expanded_members.pyArgsListExpandedMembers.Args1   s    
	(>?
G   ""6*""62. 	MM""6*
!! #     c                    UR                  S5      (       a  [        UR                  -  nOUR                  S5      (       a  [        UR                  -  nOdUR                  S5      (       a  [
        UR                  -  nO:[        R                  R                  R                  R                  SS9n[
        U-  n[        R                  " USR                  [        UR                  -  [         UR"                  -  5      UR$                  S9n/ n[&        R(                  " SS	/5      nU H  nUR+                  U" US
95        M     U$ )zRun command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.

Returns:
  Resource name and its parent name.
folderorganizationprojectT)requiredz{}/{})	page_sizeServicename)r#   )IsSpecified_FOLDER_RESOURCEr   _ORGANIZATION_RESOURCEr   _PROJECT_RESOURCEr   r   VALUEScoreGetr   r   format_SERVICE_RESOURCEr   _GROUP_RESOURCEr   r!   collections
namedtupleappend)selfargsresource_namer   responseservice_namesresultsr   s           r   RunListExpandedMembers.RunD   s    !!&4m			.	)	),t/@/@@m			)	$	$'$,,6m!!&&..22D2Ag''1m//,o

.J	
 ..H M$$Y9G701 r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r7   __static_attributes__r9   r   r   r   r      s        $r   r   )r>   r.   googlecloudsdk.api_lib.servicesr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.servicesr   googlecloudsdk.corer   r'   r%   r&   r,   r-   UniverseCompatibleReleaseTracksReleaseTrackALPHABETAListCommandr   r9   r   r   <module>rK      s    5  8 ( < *!  + !  D%%++T->->-C-CDB$** B E Br   