
    a                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z7Generated client library for connectgateway version v1.    )absolute_import)base_api)connectgateway_v1_messagesc                      ^  \ rS rSrSr\rSrSrSr	S/r
SrSrS	rS
rS rSrSr     SU 4S jjr " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      rSrU =r$ )ConnectgatewayV1
   z?Generated client library for service connectgateway version v1.z&https://connectgateway.googleapis.com/z+https://connectgateway.mtls.googleapis.com/connectgatewayz.https://www.googleapis.com/auth/cloud-platformv1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                    > U=(       d    U R                   n[        [        U ]  XX4UXgUU	U
US9  U R	                  U 5      U l        U R                  U 5      U l        U R                  U 5      U l	        g)z#Create a new connectgateway handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)
BASE_URLsuperr   __init__#ProjectsLocationsMembershipsServiceprojects_locations_membershipsProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Wlib/googlecloudsdk/generated_clients/apis/connectgateway/v1/connectgateway_v1_client.pyr   ConnectgatewayV1.__init__   sz     
C	
D*'%)3 7+ + - +/*R*RSW*XD'";;DAD((.DM    c                   J   ^  \ rS rSrSrSrU 4S jrSS jrS \l        Sr	U =r
$ )	4ConnectgatewayV1.ProjectsLocationsMembershipsService.   z>Service class for the projects_locations_memberships resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr!   clientr#   s     r$   r   =ConnectgatewayV1.ProjectsLocationsMembershipsService.__init__3   s$    @@$PQWXdr&   c                 D    U R                  S5      nU R                  X1US9$ )ar  GenerateCredentials provides connection information that allows a user to access the specified membership using Connect Gateway.

Args:
  request: (ConnectgatewayProjectsLocationsMembershipsGenerateCredentialsRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GenerateCredentialsResponse) The response message.
GenerateCredentials)global_params)GetMethodConfig
_RunMethod)r!   requestr2   configs       r$   r1   HConnectgatewayV1.ProjectsLocationsMembershipsService.GenerateCredentials8   s0     ##$9:f__
  8 8r&   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz`v1/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}:generateCredentialsGETzAconnectgateway.projects.locations.memberships.generateCredentialsname)forceUseAgentimpersonatedServiceAccountkubernetesNamespaceoperatingSystemversionzv1/{+name}:generateCredentials DConnectgatewayProjectsLocationsMembershipsGenerateCredentialsRequestGenerateCredentialsResponseF)	flat_pathhttp_method	method_idordered_paramspath_paramsquery_paramsrelative_pathrequest_fieldrequest_type_nameresponse_type_namesupports_download)r   ApiMethodInfo r&   r$   <lambda>=ConnectgatewayV1.ProjectsLocationsMembershipsService.<lambda>E   s4    0F0FtUxHy6`81r&   r,   r+   )__name__
__module____qualname____firstlineno____doc___NAMEr   r1   method_config__static_attributes____classcell__r#   s   @r$   r   r(   .   s#    H,E
8)%%r&   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ ))ConnectgatewayV1.ProjectsLocationsServiceS   z2Service class for the projects_locations resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r+   )r   r   r   r   r,   r-   s     r$   r   2ConnectgatewayV1.ProjectsLocationsService.__init__X   s#    55tEfMdr&   rR   	rS   rT   rU   rV   rW   rX   r   rZ   r[   r\   s   @r$   r   r^   S   s    < E r&   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ ) ConnectgatewayV1.ProjectsService]   z(Service class for the projects resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r+   )r   r   r   r   r,   r-   s     r$   r   )ConnectgatewayV1.ProjectsService.__init__b   s#    ,,d<VDdr&   rR   rb   r\   s   @r$   r   rd   ]   s    2E r&   r   )r    r   r   )r@   NTNNFFNNNN)rS   rT   rU   rV   rW   messagesMESSAGES_MODULEr   MTLS_BASE_URL_PACKAGE_SCOPES_VERSION
_CLIENT_ID_CLIENT_SECRET_USER_AGENT_CLIENT_CLASS_NAME_URL_VERSION_API_KEYr   r   BaseApiServicer   r   r   rZ   r[   r\   s   @r$   r   r   
   s    G/5(?-(=>'(*"."+),()-6:/4<@?C	/&#H,C,C #J!8!8 //  r&   r   N)
rW   
__future__r   apitools.base.pyr   7googlecloudsdk.generated_clients.apis.connectgateway.v1r   rh   BaseApiClientr   rO   r&   r$   <module>ry      s'    = ' % j[x-- [r&   