
                             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
S.r\R                  " \R                  R                   5       " S S\R"                  5      5       rg)z/private connection peering routes list command.    )absolute_import)division)unicode_literals)$PrivateConnectionPeeringRoutesClient)base)flags)resource_projectorz\
          Lists the private connection routes exchanged over a peering connection.
        a  
          To list all the peering routes of private connection called `my-private-connection` in project `my-project` and region `us-west1`, run:

            $ {command} --private-connection=my-private-connection --location=us-west1 --project=my-project

          Or:

            $ {command} --private-connection=my-private-connection

          In the last example, the project and the location are taken from gcloud properties core/project and compute/region, respectively.
        )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)List.   z4List Google Cloud private connection peering routes.c                 f    [         R                  " U 5        U R                  R                  S5        g)z Register flags for this command.z        table(
            dest_range,
            type,
            next_hop_region,
            status,
            direction)
    N)r   AddPrivateConnectionToParserdisplay_info	AddFormat)parsers    5lib/surface/vmware/private_connections/routes/list.pyArgs	List.Args4   s+     
&&v.
!! # 	    c              #     #    UR                   R                  R                  5       n[        5       nUR	                  U5      nS nU H<  n[
        R                  " U5      nU" US   UR                  SS5      5      US'   Uv   M>     g 7f)Nc                 0    U(       a  U S:X  a  ggU S:X  a  gg)z?Create customized status field based on direction and imported.INCOMINGacceptedzaccepted by peerzrejected by configzrejected by peer config )	directionimporteds     r   _TransformStatus"List.Run.<locals>._TransformStatusF   s!    	
"!	j	 #&r   r   r   Fstatus)CONCEPTSprivate_connectionParser   r   r	   MakeSerializableget)selfargsprivateconnectionclientitemsr   itemroutes           r   RunList.RunA   s     88>>@13FKK)*E'  11$7e(

eii
E:eHo k s   BBr   N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r.   __static_attributes__r   r   r   r   r   .   s!    <-
	 
	r   r   N)r4   
__future__r   r   r   5googlecloudsdk.api_lib.vmware.privateconnectionroutesr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   googlecloudsdk.core.resourcer	   r5   ReleaseTracksReleaseTrackGAListCommandr   r   r   r   <module>rB      sh    6 &  ' f ( 3 ;	
	( D%%(()'4 ' *'r   