
    3                     V    S 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.    )
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>/   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)r.   CVmwareengineProjectsLocationsPrivateCloudsIdentitySourcesGetRequestr9   r   Getr   r;   rF   s      r   rL   IdentitySourcesClient.GetJ   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)r9   r.   DVmwareengineProjectsLocationsPrivateCloudsIdentitySourcesListRequestr   YieldFromListr   )r   r;   address_namerF   s       r   ListIdentitySourcesClient.ListP   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=   r>   r?   rC   ,)r*   rJ   
updateMask)r.   r/   r"   appendr#   r$   r%   r(   EVmwareengineProjectsLocationsPrivateCloudsIdentitySourcesPatchRequestr9   joinr   Patch)
r   r;   r<   r=   r>   r?   rC   rE   update_maskrF   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      $ rI   )r.   FVmwareengineProjectsLocationsPrivateCloudsIdentitySourcesDeleteRequestr9   r   DeleterM   s      r   re   IdentitySourcesClient.Delete   s?    mmbb""$ c G <<w''r   )r   )NNN)NNNNN)__name__
__module____qualname____firstlineno____doc__r   r:   rL   rW   ra   re   __static_attributes____classcell__)r   s   @r   r   r      sH     P *(X%  "'H( (r   r   N)	rk   apitools.base.pyr   googlecloudsdk.api_lib.vmwarer   $googlecloudsdk.command_lib.util.apisr   VmwareClientBaser   r   r   r   <module>rr      s)    , ( . :n(D11 n(r   