
                         n    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  G d dej                        Z
y	)
z#VMware Engine cluster nodes client.    )absolute_import)division)unicode_literals)
list_pager)utilc                   .     e Zd ZdZ fdZd Zd Z xZS )NodesClientz"cloud vmware cluster nodes client.c                 `    t         t        |           | j                  j                  | _        y )N)superr	   __init__client/projects_locations_privateClouds_clusters_nodesservice)self	__class__s    *lib/googlecloudsdk/api_lib/vmware/nodes.pyr   zNodesClient.__init__   s!    	+t%';;NNDL    c                     |j                         }| j                  j                  |      }t        j                  | j
                  |dd      S )N)parentpageSizenodes)batch_size_attributefield)RelativeNamemessagesBVmwareengineProjectsLocationsPrivateCloudsClustersNodesListRequestr   YieldFromListr   )r   cluster_resourceclusterrequests       r   ListzNodesClient.List    sP    ++-Gmm^^ _ G##'	 r   c                     | j                   j                  |j                               }| j                  j	                  |      S )N)name)r   AVmwareengineProjectsLocationsPrivateCloudsClustersNodesGetRequestr   r   Get)r   resourcer    s      r   r%   zNodesClient.Get*   s=    mm]]""$ ^ &G<<G$$r   )__name__
__module____qualname____doc__r   r!   r%   __classcell__)r   s   @r   r	   r	      s    *O%r   r	   N)r*   
__future__r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.vmwarer   VmwareClientBaser	    r   r   <module>r1      s+    * &  ' ' .%$'' %r   