
                         z    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 S	\R                  5      rg
)z%Google Cloud Identity Sources client.    )absolute_import)division)unicode_literals)
list_pager)util)	arg_utilsc                   b   ^  \ rS rSrSrU 4S jr   S
S jrS rS r     SS jr	S r
S	rU =r$ )IdentitySourcesClient   zIdentity Sources client.c                 `   > [         [        U ]  5         U R                  R                  U l        g )N)superr
   __init__client0projects_locations_privateClouds_identitySourcesservice)self	__class__s    4lib/googlecloudsdk/api_lib/vmware/identitysources.pyr   IdentitySourcesClient.__init__   s"    	
/1;;OODL    c                 6   [         R                  " SU R                  R                  R                  S S9R                  [         R                  " U5      5      nU R                  R                  UUUUUUU R                  R                  UU
S9U	UU R                  R                  R                  R                  S9
nU R                  R                  UUR                  5       UR                  5       R                  5       S9nU R                  R                  U5      $ )Nprotocolc                     SU ;  $ )NPROTOCOL_UNSPECIFIED )xs    r   <lambda>.IdentitySourcesClient.Create.<locals>.<lambda>2   s
    !7q!@r   )arg_namemessage_enuminclude_filter)primaryServerUrisecondaryServerUri)
domainbaseUsersDnbaseGroupsDn
domainUserdomainPasswordr   specificDomainControllersdomainAliassslCertificatesapplianceType)identitySourceidentitySourceIdparent)r   ChoiceEnumMappermessagesIdentitySourceProtocolValueValuesEnumGetEnumForChoiceEnumNameToChoiceSpecificDomainControllersApplianceTypeValueValuesEnumVCENTERFVmwareengineProjectsLocationsPrivateCloudsIdentitySourcesCreateRequestNameParentRelativeNamer   Create)r   resourcer$   base_users_dnbase_groups_dndomain_userdomain_passwordr   primary_serverdomain_aliassecondary_serverssl_certificatesprotocol_enum_valuesourcerequests                  r   r=   IdentitySourcesClient.Create!   s    $44]]11II@ y11(;<	  ]]))!#&$"&--"I"I+/ #J #
 !(mm22OOWW * F  mmbb! --/ c G <<w''r   c                     U R                   R                  UR                  5       S9nU R                  R	                  U5      $ N)name)r1   CVmwareengineProjectsLocationsPrivateCloudsIdentitySourcesGetRequestr<   r   Getr   r>   rI   s      r   rO   IdentitySourcesClient.GetM   s?    mm__""$ ` G <<G$$r   c                     UR                  5       nU R                  R                  US9n[        R                  " U R
                  USSS9$ )N)r/   pageSizeidentitySources)batch_size_attributefield)r<   r1   DVmwareengineProjectsLocationsPrivateCloudsIdentitySourcesListRequestr   YieldFromListr   )r   r>   address_namerI   s       r   ListIdentitySourcesClient.ListS   sR    ((*Lmm`` a G ##'	 r   c                    U R                   R                  5       n/ nUb  X'l        UR                  S5        Ub  X7l        UR                  S5        Ub  XGl        UR                  S5        Ub  XWl        UR                  S5        U(       a  Xgl        UR                  S5        U R                   R                  UUR                  5       SR                  U5      S9n	U R                  R                  U	5      $ )Nr?   r@   rA   rB   rF   ,)r-   rM   
updateMask)r1   r2   r%   appendr&   r'   r(   r+   EVmwareengineProjectsLocationsPrivateCloudsIdentitySourcesPatchRequestr<   joinr   Patch)
r   r>   r?   r@   rA   rB   rF   rH   update_maskrI   s
             r   UpdateIdentitySourcesClient.Update`   s     ]]))+FK ()!*)*%'"-*+/+,mmaa""$88K( b G <<g&&r   c                     U R                   R                  UR                  5       S9nU R                  R	                  U5      $ rL   )r1   FVmwareengineProjectsLocationsPrivateCloudsIdentitySourcesDeleteRequestr<   r   DeleterP   s      r   rh   IdentitySourcesClient.Delete   s?    mmbb""$ c G <<w''r   )r   )NNN)NNNNN)__name__
__module____qualname____firstlineno____doc__r   r=   rO   rZ   rd   rh   __static_attributes____classcell__)r   s   @r   r
   r
      sH     P *(X%  "'H( (r   r
   N)rn   
__future__r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.vmwarer   $googlecloudsdk.command_lib.util.apisr   VmwareClientBaser
   r   r   r   <module>rv      s0    , &  ' ' . :n(D11 n(r   