
    P                     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 cloudfunctions version v1.    )absolute_import)base_api)cloudfunctions_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 S\R(                  5      rSrU =r$ )CloudfunctionsV1
   z?Generated client library for service cloudfunctions version v1.z&https://cloudfunctions.googleapis.com/z+https://cloudfunctions.mtls.googleapis.com/cloudfunctionsz.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	        U R                  U 5      U l        g)z#Create a new cloudfunctions handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__OperationsService
operations!ProjectsLocationsFunctionsServiceprojects_locations_functionsProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Wlib/googlecloudsdk/generated_clients/apis/cloudfunctions/v1/cloudfunctions_v1_client.pyr   CloudfunctionsV1.__init__   s     
C	
D*'%)3 7+ + - ,,T2DO(,(N(Nt(TD%";;DAD((.DM    c                   d   ^  \ rS rSrSrSrU 4S jrS
S jrS \l        S
S jr	S \	l        S	r
U =r$ )"CloudfunctionsV1.OperationsService/   z*Service class for the operations resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr#   clientr%   s     r&   r   +CloudfunctionsV1.OperationsService.__init__4   s#    ..>vFdr(   c                 D    U R                  S5      nU R                  X1US9$ )aY  Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

Args:
  request: (CloudfunctionsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Getglobal_paramsGetMethodConfig
_RunMethodr#   requestr5   configs       r&   r3   &CloudfunctionsV1.OperationsService.Get9   /     ##E*f__
  8 8r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzv1/operations/{operationsId}GETzcloudfunctions.operations.getname
v1/{+name} "CloudfunctionsOperationsGetRequest	OperationF	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>+CloudfunctionsV1.OperationsService.<lambda>F   s4     6 601xH">&!r(   c                 D    U R                  S5      nU R                  X1US9$ )aS  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Args:
  request: (CloudfunctionsOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
Listr4   r6   r9   s       r&   rW   'CloudfunctionsV1.OperationsService.ListT   /     ##F+f__
  8 8r(   c                  @    [         R                  " SS/ / / SQSSSSSS	9
$ )
Nr?   zcloudfunctions.operations.list)filterr@   pageSize	pageTokenreturnPartialSuccesszv1/operationsrB   #CloudfunctionsOperationsListRequestListOperationsResponseF)
rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rS   r(   r&   rT   rU   a   s-    !7!72X%?3"r(   r.   r-   )__name__
__module____qualname____firstlineno____doc___NAMEr   r3   method_configrW   __static_attributes____classcell__r%   s   @r&   r   r*   /   s1    4E
8C8Dr(   r   c                   N  ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SrU =r$ )2CloudfunctionsV1.ProjectsLocationsFunctionsServicen   z<Service class for the projects_locations_functions resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r-   )r   r   r   r   r.   r/   s     r&   r   ;CloudfunctionsV1.ProjectsLocationsFunctionsService.__init__s   s#    >>NvVdr(   c                 D    U R                  S5      nU R                  X1US9$ )a  Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very limited traffic is allowed. For more information on the actual limits, refer to [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).

Args:
  request: (CloudfunctionsProjectsLocationsFunctionsCallRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (CallFunctionResponse) The response message.
Callr4   r6   r9   s       r&   rr   7CloudfunctionsV1.ProjectsLocationsFunctionsService.Callx   rY   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzMv1/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:callPOSTz0cloudfunctions.projects.locations.functions.callr@   zv1/{+name}:callcallFunctionRequest3CloudfunctionsProjectsLocationsFunctionsCallRequestCallFunctionResponseFrE   rQ   rS   r(   r&   rT   ;CloudfunctionsV1.ProjectsLocationsFunctionsService.<lambda>   s4    !7!7aDxH'+O1"r(   c                 D    U R                  S5      nU R                  X1US9$ )ar  Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error.

Args:
  request: (CloudfunctionsProjectsLocationsFunctionsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Creater4   r6   r9   s       r&   r{   9CloudfunctionsV1.ProjectsLocationsFunctionsService.Create   /     ##H-f__
  8 8r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N:v1/projects/{projectsId}/locations/{locationsId}/functionsru   z2cloudfunctions.projects.locations.functions.createlocationzv1/{+location}/functionscloudFunction5CloudfunctionsProjectsLocationsFunctionsCreateRequestrD   FrE   rQ   rS   r(   r&   rT   ry      s4    8#9#9NF"|L0%Q&$r(   c                 D    U R                  S5      nU R                  X1US9$ )aw  Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function.

Args:
  request: (CloudfunctionsProjectsLocationsFunctionsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Deleter4   r6   r9   s       r&   r   9CloudfunctionsV1.ProjectsLocationsFunctionsService.Delete   r}   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NHv1/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}DELETEz2cloudfunctions.projects.locations.functions.deleter@   rA   rB   5CloudfunctionsProjectsLocationsFunctionsDeleteRequestrD   FrE   rQ   rS   r(   r&   rT   ry      s4    8#9#9\FxH"Q&$r(   c                 D    U R                  S5      nU R                  X1US9$ )a	  Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within minutes after generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls.

Args:
  request: (CloudfunctionsProjectsLocationsFunctionsGenerateDownloadUrlRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GenerateDownloadUrlResponse) The response message.
GenerateDownloadUrlr4   r6   r9   s       r&   r   FCloudfunctionsV1.ProjectsLocationsFunctionsService.GenerateDownloadUrl   s0     ##$9:f__
  8 8r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz\v1/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:generateDownloadUrlru   z?cloudfunctions.projects.locations.functions.generateDownloadUrlr@   zv1/{+name}:generateDownloadUrlgenerateDownloadUrlRequestBCloudfunctionsProjectsLocationsFunctionsGenerateDownloadUrlRequestGenerateDownloadUrlResponseFrE   rQ   rS   r(   r&   rT   ry      s4    0F0FpSxH62^81r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * Source file size should not exceed 100MB limit. * No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, these two headers need to be specified: * `content-type: application/zip` * `x-goog-content-length-range: 0,104857600` And this header SHOULD NOT be specified: * `Authorization: Bearer YOUR_TOKEN`.

Args:
  request: (CloudfunctionsProjectsLocationsFunctionsGenerateUploadUrlRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GenerateUploadUrlResponse) The response message.
GenerateUploadUrlr4   r6   r9   s       r&   r   DCloudfunctionsV1.ProjectsLocationsFunctionsService.GenerateUploadUrl   s0     ##$78f__
  8 8r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzLv1/projects/{projectsId}/locations/{locationsId}/functions:generateUploadUrlru   z=cloudfunctions.projects.locations.functions.generateUploadUrlparentz(v1/{+parent}/functions:generateUploadUrlgenerateUploadUrlRequest@CloudfunctionsProjectsLocationsFunctionsGenerateUploadUrlRequestGenerateUploadUrlResponseFrE   rQ   rS   r(   r&   rT   ry      s4    h.D.D`Q zJ@0\6/r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Returns a function with the given name from the requested project.

Args:
  request: (CloudfunctionsProjectsLocationsFunctionsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (CloudFunction) The response message.
r3   r4   r6   r9   s       r&   r3   6CloudfunctionsV1.ProjectsLocationsFunctionsService.Get   r=   r(   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr   r?   z/cloudfunctions.projects.locations.functions.getr@   	versionIdrA   rB   2CloudfunctionsProjectsLocationsFunctionsGetRequestCloudFunctionFrE   rQ   rS   r(   r&   rT   ry     s6     6 6\CxH!]"N*!r(   c                 D    U R                  S5      nU R                  X1US9$ )aU  Gets the IAM access control policy for a function. Returns an empty policy if the function exists and does not have a policy set.

Args:
  request: (CloudfunctionsProjectsLocationsFunctionsGetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
GetIamPolicyr4   r6   r9   s       r&   r   ?CloudfunctionsV1.ProjectsLocationsFunctionsService.GetIamPolicy  /     ##N3f__
  8 8r(   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )NzUv1/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:getIamPolicyr?   z8cloudfunctions.projects.locations.functions.getIamPolicyresourceoptions_requestedPolicyVersionzv1/{+resource}:getIamPolicyrB   ;CloudfunctionsProjectsLocationsFunctionsGetIamPolicyRequestPolicyFrE   rQ   rS   r(   r&   rT   ry   '  s7    )?)?iL"|L673W#*r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Returns a list of functions that belong to the requested project.

Args:
  request: (CloudfunctionsProjectsLocationsFunctionsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListFunctionsResponse) The response message.
rW   r4   r6   r9   s       r&   rW   7CloudfunctionsV1.ProjectsLocationsFunctionsService.List5  rY   r(   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nr   r?   z0cloudfunctions.projects.locations.functions.listr   r\   r]   zv1/{+parent}/functionsrB   3CloudfunctionsProjectsLocationsFunctionsListRequestListFunctionsResponseFrE   rQ   rS   r(   r&   rT   ry   B  s9    !7!7ND zJ +..O2"r(   c                 D    U R                  S5      nU R                  X1US9$ )zUpdates existing function.

Args:
  request: (CloudfunctionsProjectsLocationsFunctionsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Patchr4   r6   r9   s       r&   r   8CloudfunctionsV1.ProjectsLocationsFunctionsService.PatchP  s/     ##G,f__
  8 8r(   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr   PATCHz1cloudfunctions.projects.locations.functions.patchr@   
updateMaskrA   r   4CloudfunctionsProjectsLocationsFunctionsPatchRequestrD   FrE   rQ   rS   r(   r&   rT   ry   ]  s6    ("8"8\ExH"^"%P&#r(   c                 D    U R                  S5      nU R                  X1US9$ )a/  Sets the IAM access control policy on the specified function. Replaces any existing policy.

Args:
  request: (CloudfunctionsProjectsLocationsFunctionsSetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
SetIamPolicyr4   r6   r9   s       r&   r   ?CloudfunctionsV1.ProjectsLocationsFunctionsService.SetIamPolicyk  r   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzUv1/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:setIamPolicyru   z8cloudfunctions.projects.locations.functions.setIamPolicyr   zv1/{+resource}:setIamPolicysetIamPolicyRequest;CloudfunctionsProjectsLocationsFunctionsSetIamPolicyRequestr   FrE   rQ   rS   r(   r&   rT   ry   x  s4    )?)?iL"|L3+W#*r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Tests the specified permissions against the IAM access control policy for a function. If the function does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Args:
  request: (CloudfunctionsProjectsLocationsFunctionsTestIamPermissionsRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (TestIamPermissionsResponse) The response message.
TestIamPermissionsr4   r6   r9   s       r&   r   ECloudfunctionsV1.ProjectsLocationsFunctionsService.TestIamPermissions  s0     ##$89f__
  8 8r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz[v1/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:testIamPermissionsru   z>cloudfunctions.projects.locations.functions.testIamPermissionsr   z!v1/{+resource}:testIamPermissionstestIamPermissionsRequestACloudfunctionsProjectsLocationsFunctionsTestIamPermissionsRequestTestIamPermissionsResponseFrE   rQ   rS   r(   r&   rT   ry     s4    x/E/EoR"|L91]70r(   ra   r-   )rb   rc   rd   re   rf   rg   r   rr   rh   r{   r   r   r   r3   r   rW   r   r   r   ri   rj   rk   s   @r&   r   rm   n   s    F*E
8D8F8F8)%8'#8C8"L8D8E8"L8($$r(   r   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
$ )	)CloudfunctionsV1.ProjectsLocationsServicei  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   2CloudfunctionsV1.ProjectsLocationsService.__init__  s#    55tEfMdr(   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists information about the supported locations for this service.

Args:
  request: (CloudfunctionsProjectsLocationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListLocationsResponse) The response message.
rW   r4   r6   r9   s       r&   rW   .CloudfunctionsV1.ProjectsLocationsService.List  rY   r(   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz"v1/projects/{projectsId}/locationsr?   z&cloudfunctions.projects.locations.listr@   )extraLocationTypesr[   r\   r]   zv1/{+name}/locationsrB   *CloudfunctionsProjectsLocationsListRequestListLocationsResponseFrE   rQ   rS   r(   r&   rT   2CloudfunctionsV1.ProjectsLocationsService.<lambda>  s4    !7!76:xHN,F2"r(   ra   r-   )rb   rc   rd   re   rf   rg   r   rW   rh   ri   rj   rk   s   @r&   r   r     s"    < E
8Dr(   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ ) CloudfunctionsV1.ProjectsServicei  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   )CloudfunctionsV1.ProjectsService.__init__  s#    ,,d<VDdr(   ra   )	rb   rc   rd   re   rf   rg   r   ri   rj   rk   s   @r&   r!   r     s    2E r(   r!   )r   r"   r    r   )rB   NTNNFFNNNN)rb   rc   rd   re   rf   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   r!   ri   rj   rk   s   @r&   r   r   
   s    G/5(?-(=>'(*"."+),()-6:/4<@?C	/(=(11 =~q(*A*A qf	#!8!8 #J//  r(   r   N)
rf   
__future__r   apitools.base.pyr   7googlecloudsdk.generated_clients.apis.cloudfunctions.v1r   r   BaseApiClientr   rS   r(   r&   <module>r      s'    = ' % jDx-- Dr(   