public sealed class CloudFunctionsServiceClientImpl : CloudFunctionsServiceClientCloudFunctionsService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Functions.V1Assembly
Google.Cloud.Functions.V1.dll
Remarks
A service that application uses to manipulate triggers and functions.
Constructors
CloudFunctionsServiceClientImpl(CloudFunctionsService.CloudFunctionsServiceClient, CloudFunctionsServiceSettings)
public CloudFunctionsServiceClientImpl(CloudFunctionsService.CloudFunctionsServiceClient grpcClient, CloudFunctionsServiceSettings settings)Constructs a client wrapper for the CloudFunctionsService service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description | 
grpcClient | 
        CloudFunctionsService.CloudFunctionsServiceClientThe underlying gRPC client.  | 
      
settings | 
        CloudFunctionsServiceSettingsThe base CloudFunctionsServiceSettings used within this client.  | 
      
Properties
CreateFunctionOperationsClient
public override OperationsClient CreateFunctionOperationsClient { get; }The long-running operations client for CreateFunction.
| Property Value | |
|---|---|
| Type | Description | 
Google.LongRunning.OperationsClient | 
        |
DeleteFunctionOperationsClient
public override OperationsClient DeleteFunctionOperationsClient { get; }The long-running operations client for DeleteFunction.
| Property Value | |
|---|---|
| Type | Description | 
Google.LongRunning.OperationsClient | 
        |
GrpcClient
public override CloudFunctionsService.CloudFunctionsServiceClient GrpcClient { get; }The underlying gRPC CloudFunctionsService client
| Property Value | |
|---|---|
| Type | Description | 
CloudFunctionsService.CloudFunctionsServiceClient | 
        |
UpdateFunctionOperationsClient
public override OperationsClient UpdateFunctionOperationsClient { get; }The long-running operations client for UpdateFunction.
| Property Value | |
|---|---|
| Type | Description | 
Google.LongRunning.OperationsClient | 
        |
Methods
CallFunction(CallFunctionRequest, CallSettings)
public override CallFunctionResponse CallFunction(CallFunctionRequest request, CallSettings callSettings = null)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.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        CallFunctionRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CallFunctionResponse | 
        The RPC response.  | 
      
CallFunctionAsync(CallFunctionRequest, CallSettings)
public override Task<CallFunctionResponse> CallFunctionAsync(CallFunctionRequest request, CallSettings callSettings = null)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.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        CallFunctionRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Task<CallFunctionResponse> | 
        A Task containing the RPC response.  | 
      
CreateFunction(CreateFunctionRequest, CallSettings)
public override Operation<CloudFunction, OperationMetadataV1> CreateFunction(CreateFunctionRequest request, CallSettings callSettings = null)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.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        CreateFunctionRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Google.LongRunning.Operation<CloudFunction, OperationMetadataV1> | 
        The RPC response.  | 
      
CreateFunctionAsync(CreateFunctionRequest, CallSettings)
public override Task<Operation<CloudFunction, OperationMetadataV1>> CreateFunctionAsync(CreateFunctionRequest request, CallSettings callSettings = null)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.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        CreateFunctionRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Task<Google.LongRunning.Operation<CloudFunction, OperationMetadataV1>> | 
        A Task containing the RPC response.  | 
      
DeleteFunction(DeleteFunctionRequest, CallSettings)
public override Operation<Empty, OperationMetadataV1> DeleteFunction(DeleteFunctionRequest request, CallSettings callSettings = null)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.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        DeleteFunctionRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Google.LongRunning.Operation<Empty, OperationMetadataV1> | 
        The RPC response.  | 
      
DeleteFunctionAsync(DeleteFunctionRequest, CallSettings)
public override Task<Operation<Empty, OperationMetadataV1>> DeleteFunctionAsync(DeleteFunctionRequest request, CallSettings callSettings = null)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.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        DeleteFunctionRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Task<Google.LongRunning.Operation<Empty, OperationMetadataV1>> | 
        A Task containing the RPC response.  | 
      
GenerateDownloadUrl(GenerateDownloadUrlRequest, CallSettings)
public override GenerateDownloadUrlResponse GenerateDownloadUrl(GenerateDownloadUrlRequest request, CallSettings callSettings = null)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
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GenerateDownloadUrlRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
GenerateDownloadUrlResponse | 
        The RPC response.  | 
      
GenerateDownloadUrlAsync(GenerateDownloadUrlRequest, CallSettings)
public override Task<GenerateDownloadUrlResponse> GenerateDownloadUrlAsync(GenerateDownloadUrlRequest request, CallSettings callSettings = null)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
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GenerateDownloadUrlRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Task<GenerateDownloadUrlResponse> | 
        A Task containing the RPC response.  | 
      
GenerateUploadUrl(GenerateUploadUrlRequest, CallSettings)
public override GenerateUploadUrlResponse GenerateUploadUrl(GenerateUploadUrlRequest request, CallSettings callSettings = null)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/zipx-goog-content-length-range: 0,104857600
And this header SHOULD NOT be specified:
Authorization: Bearer YOUR_TOKEN
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GenerateUploadUrlRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
GenerateUploadUrlResponse | 
        The RPC response.  | 
      
GenerateUploadUrlAsync(GenerateUploadUrlRequest, CallSettings)
public override Task<GenerateUploadUrlResponse> GenerateUploadUrlAsync(GenerateUploadUrlRequest request, CallSettings callSettings = null)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/zipx-goog-content-length-range: 0,104857600
And this header SHOULD NOT be specified:
Authorization: Bearer YOUR_TOKEN
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GenerateUploadUrlRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Task<GenerateUploadUrlResponse> | 
        A Task containing the RPC response.  | 
      
GetFunction(GetFunctionRequest, CallSettings)
public override CloudFunction GetFunction(GetFunctionRequest request, CallSettings callSettings = null)Returns a function with the given name from the requested project.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetFunctionRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CloudFunction | 
        The RPC response.  | 
      
GetFunctionAsync(GetFunctionRequest, CallSettings)
public override Task<CloudFunction> GetFunctionAsync(GetFunctionRequest request, CallSettings callSettings = null)Returns a function with the given name from the requested project.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetFunctionRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Task<CloudFunction> | 
        A Task containing the RPC response.  | 
      
GetIamPolicy(GetIamPolicyRequest, CallSettings)
public override Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)Gets the IAM access control policy for a function. Returns an empty policy if the function exists and does not have a policy set.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        Google.Cloud.Iam.V1.GetIamPolicyRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Google.Cloud.Iam.V1.Policy | 
        The RPC response.  | 
      
GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)
public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)Gets the IAM access control policy for a function. Returns an empty policy if the function exists and does not have a policy set.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        Google.Cloud.Iam.V1.GetIamPolicyRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Task<Google.Cloud.Iam.V1.Policy> | 
        A Task containing the RPC response.  | 
      
ListFunctions(ListFunctionsRequest, CallSettings)
public override PagedEnumerable<ListFunctionsResponse, CloudFunction> ListFunctions(ListFunctionsRequest request, CallSettings callSettings = null)Returns a list of functions that belong to the requested project.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        ListFunctionsRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
PagedEnumerable<ListFunctionsResponse, CloudFunction> | 
        A pageable sequence of CloudFunction resources.  | 
      
ListFunctionsAsync(ListFunctionsRequest, CallSettings)
public override PagedAsyncEnumerable<ListFunctionsResponse, CloudFunction> ListFunctionsAsync(ListFunctionsRequest request, CallSettings callSettings = null)Returns a list of functions that belong to the requested project.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        ListFunctionsRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
PagedAsyncEnumerable<ListFunctionsResponse, CloudFunction> | 
        A pageable asynchronous sequence of CloudFunction resources.  | 
      
SetIamPolicy(SetIamPolicyRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)Sets the IAM access control policy on the specified function. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        Google.Cloud.Iam.V1.SetIamPolicyRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Google.Cloud.Iam.V1.Policy | 
        The RPC response.  | 
      
SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)
public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)Sets the IAM access control policy on the specified function. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        Google.Cloud.Iam.V1.SetIamPolicyRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Task<Google.Cloud.Iam.V1.Policy> | 
        A Task containing the RPC response.  | 
      
TestIamPermissions(TestIamPermissionsRequest, CallSettings)
public override TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)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.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        Google.Cloud.Iam.V1.TestIamPermissionsRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Google.Cloud.Iam.V1.TestIamPermissionsResponse | 
        The RPC response.  | 
      
TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)
public override Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)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.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        Google.Cloud.Iam.V1.TestIamPermissionsRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Task<Google.Cloud.Iam.V1.TestIamPermissionsResponse> | 
        A Task containing the RPC response.  | 
      
UpdateFunction(UpdateFunctionRequest, CallSettings)
public override Operation<CloudFunction, OperationMetadataV1> UpdateFunction(UpdateFunctionRequest request, CallSettings callSettings = null)Updates existing function.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        UpdateFunctionRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Google.LongRunning.Operation<CloudFunction, OperationMetadataV1> | 
        The RPC response.  | 
      
UpdateFunctionAsync(UpdateFunctionRequest, CallSettings)
public override Task<Operation<CloudFunction, OperationMetadataV1>> UpdateFunctionAsync(UpdateFunctionRequest request, CallSettings callSettings = null)Updates existing function.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        UpdateFunctionRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Task<Google.LongRunning.Operation<CloudFunction, OperationMetadataV1>> | 
        A Task containing the RPC response.  |