
    o                     j    S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  Sr
 " S	 S
\5      rg)z Cloud vmware sddc API utilities.    )absolute_import)division)unicode_literals)apis)waiter)	resourcesv1alpha1c                   N    \ rS rSrSr\4S jr\S 5       r\S 5       r	S	S jr
Srg)
VmwareClientBase   z*Base class for vwmare API client wrappers.c                     [         R                  " SU5      U l        [         R                  " SU5      U l        S U l        U R                  R                  U l        g )Nsddc)	r   GetClientInstance_clientGetMessagesModule	_messagesserviceclientprojects_locations_operationsoperations_service)selfapi_versions     .lib/googlecloudsdk/api_lib/vmware/sddc/util.py__init__VmwareClientBase.__init__   sC    ))&+>DL++FK@DNDL"kkGGD    c                     U R                   $ N)r   r   s    r   r   VmwareClientBase.client%   s    <<r   c                     U R                   $ r   )r   r   s    r   messagesVmwareClientBase.messages)   s    >>r   c                 &   [         R                  R                  UR                  SS9nU(       a!  [        R
                  " U R                  5      nO+[        R                  " U R                  U R                  5      n[        R                  " XTU5      $ )Nz"sddc.projects.locations.operations)
collection)
r   REGISTRYParsenamer   CloudOperationPollerNoResourcesr   CloudOperationPollerr   WaitFor)r   	operationmessage	is_deleteoperation_refpollers         r   WaitForOperation!VmwareClientBase.WaitForOperation-   sr    &&,,#G - IM55d6M6MNf**4<<+/+B+BDf>>&99r   )r   r   r   r   N)F)__name__
__module____qualname____firstlineno____doc___DEFAULT_API_VERSIONr   propertyr   r"   r1   __static_attributes__ r   r   r   r      s;    2!5 H    :r   r   N)r7   
__future__r   r   r   googlecloudsdk.api_lib.utilr   r   googlecloudsdk.corer   r8   objectr   r;   r   r   <module>r@      s.    ' &  ' , . )! :v :r   