
    >                     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Cloud vmware operations 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 )OperationsClientzcloud vmware operations client.c                 `    t         t        |           | j                  j                  | _        y )N)superr	   __init__clientprojects_locations_operationsservice)self	__class__s    /lib/googlecloudsdk/api_lib/vmware/operations.pyr   zOperationsClient.__init__   s"    	
D*,;;<<DL    c                     |j                         }| j                  j                  |      }t        j                  | j
                  |dd      S )NnamepageSize
operations)batch_size_attributefield)RelativeNamemessages2VmwareengineProjectsLocationsOperationsListRequestr   YieldFromListr   )r   location_resourcelocationrequests       r   ListzOperationsClient.List    sR     --/HmmNN O G ##'	 r   c                     | j                   j                  |j                               }| j                  j	                  |      S )Nr   )r   1VmwareengineProjectsLocationsOperationsGetRequestr   r   Get)r   resourcer!   s      r   r%   zOperationsClient.Get+   s=    mmMM""$ N &G<<G$$r   )__name__
__module____qualname____doc__r   r"   r%   __classcell__)r   s   @r   r	   r	      s    '=	%r   r	   N)r*   
__future__r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.vmwarer   VmwareClientBaser	    r   r   <module>r1      s+    & &  ' ' .%t,, %r   