
                             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	d
Z ej                  ej                  j                         G d dej                               Zy)z'vmware nodes list command.    )absolute_import)division)unicode_literals)NodesClient)base)flagszH
        List nodes in a VMware Engine private cloud's cluster.
        a  
        To list nodes in the `my-private-cloud` private cloud and `my-cluster` cluster:

          $ {command} --location=us-west2-a --project=my-project --private-cloud=my-private-cloud --cluster=my-cluster

          Or:

          $ {command} --private-cloud=my-private-cloud --cluster=my-cluster

        In the second example, the project and location are taken from gcloud properties core/project and compute/zone.
  )DESCRIPTIONEXAMPLESc                   *    e Zd ZdZeZed        Zd Zy)ListzCList nodes in a Google Cloud VMware Engine private cloud's cluster.c                 d    t        j                  |        | j                  j                  d       y)z Register flags for this command.ztable(name.segment(-1):label=NAME,name.segment(-7):label=LOCATION,name.segment(-5):label=PRIVATE_CLOUD,name.segment(-3):label=CLUSTER,state,nodeTypeId,fqdn,internalIp)N)r   AddClusterArgToParserdisplay_info	AddFormat)parsers    8lib/surface/vmware/private_clouds/clusters/nodes/list.pyArgsz	List.Args1   s+     
'
!!	    c                     |j                   j                  j                         }t               }|j	                  |      S )N)CONCEPTSclusterParser   r   )selfargsr   clients       r   RunzList.Run>   s0    mm##))+G]F;;wr   N)	__name__
__module____qualname____doc__DETAILED_HELPdetailed_helpstaticmethodr   r    r   r   r   r   +   s!    K-
 
 r   r   N)r    
__future__r   r   r   #googlecloudsdk.api_lib.vmware.nodesr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   r!   ReleaseTracksReleaseTrackGAListCommandr   r$   r   r   <module>r-      sg    " &  ' ; ( 3
	$ D%%(() 4   * r   