Ë
    €ÏÀ	  ã                   óL  — 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 dd	lmZ dd
lmZ dZdZ e	j$                  e	j&                  j(                  e	j&                  j*                  e	j&                  j,                  «       G d„ de	j.                  «      «       Zy)zHCommand to list all admin clusters in the Anthos clusters on VMware API.é    )Úabsolute_import)Údivision)Úunicode_literals)Úvmware_admin_clusters)Úbase)Úparser_arguments)Ú	constants)Úflags)Úlogzd
To list all admin clusters managed in location ``us-west1'', run:

$ {command} --location=us-west1
z²
To include admin clusters that are not enrolled with the Anthos On-Prem API, run:

$ gcloud container fleet memberships list --filter='endpoint.onPremCluster.adminCluster=true'
c                   óZ   ‡ — e Zd ZdZdeiZedej                  fd„«       Z	d„ Z
ˆ fd„Zˆ xZS )ÚListz%List Anthos on VMware admin clusters.ÚEXAMPLESÚparserc                 ó‚   — | j                   j                  t        j                  «       t	        j
                  | d«       y)zzGathers command line arguments for the list command.

    Args:
      parser: The argparse parser to add the flag to.
    z'to list Anthos on VMware admin clustersN)Údisplay_infoÚ	AddFormatr	   ÚVMWARE_ADMIN_CLUSTERS_FORMATr
   ÚAddLocationResourceArg)r   s    ú3lib/surface/container/vmware/admin_clusters/list.pyÚArgsz	List.Args1   s2   € ð ×Ñ×!Ñ!¤)×"HÑ"HÔIÜ	× Ñ  Ø!JõLó    c                 óL   — t        j                  «       }|j                  |«      S )z«Runs the list command.

    Args:
      args: Arguments received from command line.

    Returns:
      protorpc.message.Message, The resources listed by the service.
    )ÚapisÚAdminClustersClientr   )ÚselfÚargsÚclients      r   ÚRunzList.Run<   s!   € ô ×%Ñ%Ó'€FØ;‰;tÓÐr   c                 ór   •— t         t        |   |«       t        j                  j                  t        «       y )N)Úsuperr   ÚEpilogr   ÚstatusÚPrintÚ_EPILOG)r   Úresources_were_displayedÚ	__class__s     €r   r!   zList.EpilogH   s%   ø€ Ü	Œ$ÑÐ5Ô6Ü‡JJ×Ñ”WÕr   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	_EXAMPLESÚdetailed_helpÚstaticmethodr   ÚArgumentInterceptorr   r   r!   Ú__classcell__)r&   s   @r   r   r   )   sD   ø„ ñ .à˜yÐ)€-àðLÐ#×7Ñ7ò Ló ðLò
÷ð r   r   N)r*   Ú
__future__r   r   r   Ú*googlecloudsdk.api_lib.container.gkeonpremr   r   Úgooglecloudsdk.callioper   r   Ú+googlecloudsdk.command_lib.container.vmwarer	   r
   Úgooglecloudsdk.corer   r+   r$   ÚReleaseTracksÚReleaseTrackÚALPHAÚBETAÚGAÚListCommandr   © r   r   Ú<module>r<      s   ðñ Oå &Ý Ý 'å TÝ (Ý 4Ý AÝ =Ý #ð€	ð€ð €×ÑØ×Ñ×Ñ˜T×.Ñ.×3Ñ3°T×5FÑ5F×5IÑ5Ióôˆ4×Ñó óñr   