
    v	                     4   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddl	mZ ej                   ej                  ej                  j                  ej                  j                          G d	 d
ej"                                      Zddde_        y)zCommand for listing spokes.    )absolute_import)division)unicode_literals)networkconnectivity_api)base)flags)utilc                   &    e Zd ZdZed        Zd Zy)ListzVList spokes.

  Retrieve and display a list of all spokes in the specified project.
  c                     t         j                  j                  |        t        j                  | d       t        j
                  | dd       | j                  j                  t        j                         y )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Argsz	List.Args$   sZ     	MM""6* 
v|4	uF !!$"2"23    c                     t        j                  | j                               }|j                  j                  j                         }|j                  ||j                  d |j                        S )N)release_track)limitfilter_expression	page_size)	r   SpokesClientReleaseTrackCONCEPTSregionParser   r   r   )selfargsclient
region_refs       r   RunzList.Run1   s`    $11'')+F%%++-J;;jj..	  " "r   N)__name__
__module____qualname____doc__staticmethodr   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)r,   
__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   