
    v	                     4   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  \R                  \R                  " \R                  R                  \R                  R                   5       " S	 S
\R"                  5      5       5       rSSS.\l        g)zCommand for listing spokes.    )absolute_import)division)unicode_literals)networkconnectivity_api)base)flags)utilc                   .    \ rS rSrSr\S 5       rS rSrg)List   zRList spokes.

Retrieve and display a list of all spokes in the specified project.
c                     [         R                  R                  U 5        [        R                  " U S5        [        R
                  " U SSS9  U R                  R                  [        R                  5        g )Nz
to displayTF)supports_region_wildcardhide_global_arg)
r   URI_FLAGRemoveFromParserr   AddRegionResourceArgAddRegionGroupdisplay_info	AddFormatr	   LIST_FORMAT)parsers    /lib/surface/network_connectivity/spokes/list.pyArgs	List.Args$   sZ     	MM""6* 
v|4	uF !!$"2"23    c                     [         R                  " U R                  5       S9nUR                  R                  R                  5       nUR                  UUR                  S UR                  S9$ )N)release_track)limitfilter_expression	page_size)	r   SpokesClientReleaseTrackCONCEPTSregionParser   r   r    )selfargsclient
region_refs       r   RunList.Run1   s`    $11'')+F%%++-J;;jj..	  " "r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r*   __static_attributes__r,   r   r   r   r      s     
 
4 
4"r   r   z   To list all spokes in the ``us-central1'' region, run:

        $ {command} --region=us-central1

  To list all spokes in all regions, run:

        $ {command}
  z   This command uses the networkconnectivity/v1 API. The full documentation
  for this API can be found at:
  https://cloud.google.com/network-connectivity/docs/reference/networkconnectivity/rest
  )EXAMPLESzAPI REFERENCEN)r1   
__future__r   r   r   +googlecloudsdk.api_lib.network_connectivityr   googlecloudsdk.callioper   /googlecloudsdk.command_lib.network_connectivityr   r	   DefaultUniverseOnlyReleaseTracksr"   BETAGAListCommandr   detailed_helpr,   r   r   <module>r?      s     " &  ' O ( A @ D%%**D,=,=,@,@A"4 " B "@		 r   