
                         .   S 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"                  R&                  5       " S S\R(                  5      5       5       5       rg)z1services groups list descendant services command.    )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)ListDescendantServices   a  List descendant services of a specific service and group.

List descendant services of a specific service and group.

## EXAMPLES

 List descendant services of service my-service and group my-group:

 $ {command} my-service my-group

 List descendant services 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   zG
          table(
            serviceName:label=''
          )
        )
add_argumentr   add_resource_argsr   PAGE_SIZE_FLAG
SetDefaultURI_FLAGRemoveFromParserdisplay_info	AddFormat)parsers    7lib/surface/services/groups/list_descendant_services.pyArgsListDescendantServices.Args2   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      5      n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{}/{})IsSpecified_FOLDER_RESOURCEr   _ORGANIZATION_RESOURCEr   _PROJECT_RESOURCEr   r   VALUEScoreGetr   r   format_SERVICE_RESOURCEr   _GROUP_RESOURCEr   )selfargsresource_namer   responses        r   RunListDescendantServices.RunE   s     !!&4m			.	)	),t/@/@@m			)	$	$'$,,6m!!&&..22D2Ag''1m22,o

.J	
H Or    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r/   __static_attributes__r1   r   r   r   r      s        $r   r   N)r6   googlecloudsdk.api_lib.servicesr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.servicesr   googlecloudsdk.corer   r$   r"   r#   r)   r*   UniverseCompatibleHiddenReleaseTracksReleaseTrackALPHABETAListCommandr   r1   r   r   <module>rD      s    8 8 ( < *!  + !  D%%++T->->-C-CD=T-- = E  =r   