
                         R   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	rS
rSrSrSr\R$                  \R&                  \R(                  " \R*                  R,                  \R*                  R.                  5       " S S\R0                  5      5       5       5       rg)z-services groups list ancestor groups command.    )absolute_import)division)unicode_literals)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)ListAncestorGroups!   a+  List ancestor groups of a specific service.

List ancestor groups of a specific service.

## EXAMPLES

  List ancestor groups of service my-service:

 $ {command} my-service

 List ancestor groups of service my-service for a specific project '12345678':

  $ {command} my-service --project=12345678
c                    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.)help2   zE
          table(
            groupName:label=''
          )
        )
add_argumentr   add_resource_argsr   PAGE_SIZE_FLAG
SetDefaultURI_FLAGRemoveFromParserdisplay_info	AddFormat)parsers    3lib/surface/services/groups/list_ancestor_groups.pyArgsListAncestorGroups.Args4   sg    
	(>?""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[        UR                  -  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)required)IsSpecified_FOLDER_RESOURCE_TEMPLATEr   _ORGANIZATION_RESOURCE_TEMPLATEr    _PROJECT_RESOURCE_TEMPLATEr!   r	   VALUEScoreGetr   r   _SERVICE_RESOURCE_TEMPLATEr   )selfargsresource_namer!   responses        r   RunListAncestorGroups.RunE   s     !!/$++=m			.	)	)58I8IIm			)	$	$04<<?m!!&&..22D2Ag07:m.."T\\1H
 Or    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r/   __static_attributes__r1   r   r   r   r   !   s        r   r   N)r6   
__future__r   r   r   googlecloudsdk.api_lib.servicesr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.servicesr   googlecloudsdk.corer	   r&   r$   r%   r*   _GROUP_RESOURCE_TEMPLATEUniverseCompatibleHiddenReleaseTracksReleaseTrackALPHABETAListCommandr   r1   r   r   <module>rF      s    4 &  ' 8 ( < ** ( "4 * &  D%%++T->->-C-CD9)) 9 E  9r   