
                             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	 S
\R                  5      rg)zAThe `gcloud compute shared-vpc associated-projects list` command.    )absolute_import)division)unicode_literals)xpn_api)base)flags)utilc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	List   z?List the associated service projects of the given host project.EXAMPLESaY  
          If `service-project1` and `service-project2` are associated service
          projects of the shared VPC host project `host-project`,

            $ {command} host-project

          yields the output

            RESOURCE_ID         RESOURCE_TYPE
            service-project1    PROJECT
            service-project2    PROJECT
      c                     [         R                  " S5      R                  U 5        U R                  R	                  [
        R                  5        g )Nzget associated projects for)r   GetProjectIdArgumentAddToParserdisplay_info	AddFormatcommand_lib_utilXPN_RESOURCE_ID_FORMAT)parsers    :lib/surface/compute/shared_vpc/associated_projects/list.pyArgs	List.Args.   s8    	%''2{6':
!!"2"I"IJ    c                 (   [         R                  " U R                  5       5      nUR                  R                  R
                  nUR                  UR                  5      nU Vs/ s H!  nUR                  UR                  :X  d  M  UPM#     sn$ s  snf )N)
r   GetXpnClientReleaseTrackmessagesXpnResourceIdTypeValueValuesEnumListEnabledResourcesprojecttypePROJECT)selfargs
xpn_client	xpn_types	resourcesresources         r   RunList.Run4   s{    %%d&7&7&9:J##11EEI//=I%. 0YMMY... Y 0 0 0s   $BB N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r*   __static_attributes__r,   r   r   r   r      s1    G 
-  K K
0r   r   N)r1   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   &googlecloudsdk.command_lib.compute.xpnr   r	   r   ListCommandr   r,   r   r   <module>r:      s2    H &  ' 2 ( 8 K04 0r   