public class CloudFunctionsServiceClient : ClientBase<CloudFunctionsService.CloudFunctionsServiceClient>Client for CloudFunctionsService
Inheritance
Object > ClientBase > ClientBase<CloudFunctionsService.CloudFunctionsServiceClient> > CloudFunctionsService.CloudFunctionsServiceClientNamespace
Google.Cloud.Functions.V1Assembly
Google.Cloud.Functions.V1.dll
Constructors
CloudFunctionsServiceClient()
protected CloudFunctionsServiceClient()Protected parameterless constructor to allow creation of test doubles.
CloudFunctionsServiceClient(CallInvoker)
public CloudFunctionsServiceClient(CallInvoker callInvoker)Creates a new client for CloudFunctionsService that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description | 
callInvoker | 
        CallInvokerThe callInvoker to use to make remote calls.  | 
      
CloudFunctionsServiceClient(ChannelBase)
public CloudFunctionsServiceClient(ChannelBase channel)Creates a new client for CloudFunctionsService
| Parameter | |
|---|---|
| Name | Description | 
channel | 
        ChannelBaseThe channel to use to make remote calls.  | 
      
CloudFunctionsServiceClient(ClientBase.ClientBaseConfiguration)
protected CloudFunctionsServiceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description | 
configuration | 
        ClientBase.ClientBaseConfigurationThe client configuration.  | 
      
Methods
CallFunction(CallFunctionRequest, CallOptions)
public virtual CallFunctionResponse CallFunction(CallFunctionRequest request, CallOptions options)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 to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CallFunctionResponse | 
        The response received from the server.  | 
      
CallFunction(CallFunctionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual CallFunctionResponse CallFunction(CallFunctionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CallFunctionResponse | 
        The response received from the server.  | 
      
CallFunctionAsync(CallFunctionRequest, CallOptions)
public virtual AsyncUnaryCall<CallFunctionResponse> CallFunctionAsync(CallFunctionRequest request, CallOptions options)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 to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<CallFunctionResponse> | 
        The call object.  | 
      
CallFunctionAsync(CallFunctionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<CallFunctionResponse> CallFunctionAsync(CallFunctionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<CallFunctionResponse> | 
        The call object.  | 
      
CreateFunction(CreateFunctionRequest, CallOptions)
public virtual Operation CreateFunction(CreateFunctionRequest request, CallOptions options)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 to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Operation | 
        The response received from the server.  | 
      
CreateFunction(CreateFunctionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation CreateFunction(CreateFunctionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Operation | 
        The response received from the server.  | 
      
CreateFunctionAsync(CreateFunctionRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> CreateFunctionAsync(CreateFunctionRequest request, CallOptions options)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 to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<Operation> | 
        The call object.  | 
      
CreateFunctionAsync(CreateFunctionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> CreateFunctionAsync(CreateFunctionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<Operation> | 
        The call object.  | 
      
CreateOperationsClient()
public virtual Operations.OperationsClient CreateOperationsClient()Creates a new instance of Operations.OperationsClient using the same call invoker as this client.
| Returns | |
|---|---|
| Type | Description | 
Operations.OperationsClient | 
        A new Operations client for the same target as this client.  | 
      
DeleteFunction(DeleteFunctionRequest, CallOptions)
public virtual Operation DeleteFunction(DeleteFunctionRequest request, CallOptions options)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 to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Operation | 
        The response received from the server.  | 
      
DeleteFunction(DeleteFunctionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation DeleteFunction(DeleteFunctionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Operation | 
        The response received from the server.  | 
      
DeleteFunctionAsync(DeleteFunctionRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> DeleteFunctionAsync(DeleteFunctionRequest request, CallOptions options)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 to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<Operation> | 
        The call object.  | 
      
DeleteFunctionAsync(DeleteFunctionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> DeleteFunctionAsync(DeleteFunctionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<Operation> | 
        The call object.  | 
      
GenerateDownloadUrl(GenerateDownloadUrlRequest, CallOptions)
public virtual GenerateDownloadUrlResponse GenerateDownloadUrl(GenerateDownloadUrlRequest request, CallOptions options)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 to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
GenerateDownloadUrlResponse | 
        The response received from the server.  | 
      
GenerateDownloadUrl(GenerateDownloadUrlRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual GenerateDownloadUrlResponse GenerateDownloadUrl(GenerateDownloadUrlRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
GenerateDownloadUrlResponse | 
        The response received from the server.  | 
      
GenerateDownloadUrlAsync(GenerateDownloadUrlRequest, CallOptions)
public virtual AsyncUnaryCall<GenerateDownloadUrlResponse> GenerateDownloadUrlAsync(GenerateDownloadUrlRequest request, CallOptions options)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 to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<GenerateDownloadUrlResponse> | 
        The call object.  | 
      
GenerateDownloadUrlAsync(GenerateDownloadUrlRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<GenerateDownloadUrlResponse> GenerateDownloadUrlAsync(GenerateDownloadUrlRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<GenerateDownloadUrlResponse> | 
        The call object.  | 
      
GenerateUploadUrl(GenerateUploadUrlRequest, CallOptions)
public virtual GenerateUploadUrlResponse GenerateUploadUrl(GenerateUploadUrlRequest request, CallOptions options)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 to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
GenerateUploadUrlResponse | 
        The response received from the server.  | 
      
GenerateUploadUrl(GenerateUploadUrlRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual GenerateUploadUrlResponse GenerateUploadUrl(GenerateUploadUrlRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
GenerateUploadUrlResponse | 
        The response received from the server.  | 
      
GenerateUploadUrlAsync(GenerateUploadUrlRequest, CallOptions)
public virtual AsyncUnaryCall<GenerateUploadUrlResponse> GenerateUploadUrlAsync(GenerateUploadUrlRequest request, CallOptions options)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 to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<GenerateUploadUrlResponse> | 
        The call object.  | 
      
GenerateUploadUrlAsync(GenerateUploadUrlRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<GenerateUploadUrlResponse> GenerateUploadUrlAsync(GenerateUploadUrlRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<GenerateUploadUrlResponse> | 
        The call object.  | 
      
GetFunction(GetFunctionRequest, CallOptions)
public virtual CloudFunction GetFunction(GetFunctionRequest request, CallOptions options)Returns a function with the given name from the requested project.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetFunctionRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CloudFunction | 
        The response received from the server.  | 
      
GetFunction(GetFunctionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual CloudFunction GetFunction(GetFunctionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Returns a function with the given name from the requested project.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetFunctionRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CloudFunction | 
        The response received from the server.  | 
      
GetFunctionAsync(GetFunctionRequest, CallOptions)
public virtual AsyncUnaryCall<CloudFunction> GetFunctionAsync(GetFunctionRequest request, CallOptions options)Returns a function with the given name from the requested project.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetFunctionRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<CloudFunction> | 
        The call object.  | 
      
GetFunctionAsync(GetFunctionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<CloudFunction> GetFunctionAsync(GetFunctionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Returns a function with the given name from the requested project.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        GetFunctionRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<CloudFunction> | 
        The call object.  | 
      
GetIamPolicy(GetIamPolicyRequest, CallOptions)
public virtual Policy GetIamPolicy(GetIamPolicyRequest request, CallOptions options)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 | 
        GetIamPolicyRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Policy | 
        The response received from the server.  | 
      
GetIamPolicy(GetIamPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Policy GetIamPolicy(GetIamPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | 
        GetIamPolicyRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Policy | 
        The response received from the server.  | 
      
GetIamPolicyAsync(GetIamPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallOptions options)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 | 
        GetIamPolicyRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<Policy> | 
        The call object.  | 
      
GetIamPolicyAsync(GetIamPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | 
        GetIamPolicyRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<Policy> | 
        The call object.  | 
      
ListFunctions(ListFunctionsRequest, CallOptions)
public virtual ListFunctionsResponse ListFunctions(ListFunctionsRequest request, CallOptions options)Returns a list of functions that belong to the requested project.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        ListFunctionsRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ListFunctionsResponse | 
        The response received from the server.  | 
      
ListFunctions(ListFunctionsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ListFunctionsResponse ListFunctions(ListFunctionsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Returns a list of functions that belong to the requested project.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        ListFunctionsRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ListFunctionsResponse | 
        The response received from the server.  | 
      
ListFunctionsAsync(ListFunctionsRequest, CallOptions)
public virtual AsyncUnaryCall<ListFunctionsResponse> ListFunctionsAsync(ListFunctionsRequest request, CallOptions options)Returns a list of functions that belong to the requested project.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        ListFunctionsRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<ListFunctionsResponse> | 
        The call object.  | 
      
ListFunctionsAsync(ListFunctionsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListFunctionsResponse> ListFunctionsAsync(ListFunctionsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Returns a list of functions that belong to the requested project.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        ListFunctionsRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<ListFunctionsResponse> | 
        The call object.  | 
      
NewInstance(ClientBase.ClientBaseConfiguration)
protected override CloudFunctionsService.CloudFunctionsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description | 
configuration | 
        ClientBase.ClientBaseConfiguration | 
      
| Returns | |
|---|---|
| Type | Description | 
CloudFunctionsService.CloudFunctionsServiceClient | 
        |
SetIamPolicy(SetIamPolicyRequest, CallOptions)
public virtual Policy SetIamPolicy(SetIamPolicyRequest request, CallOptions options)Sets the IAM access control policy on the specified function. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        SetIamPolicyRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Policy | 
        The response received from the server.  | 
      
SetIamPolicy(SetIamPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Policy SetIamPolicy(SetIamPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Sets the IAM access control policy on the specified function. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        SetIamPolicyRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Policy | 
        The response received from the server.  | 
      
SetIamPolicyAsync(SetIamPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallOptions options)Sets the IAM access control policy on the specified function. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        SetIamPolicyRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<Policy> | 
        The call object.  | 
      
SetIamPolicyAsync(SetIamPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Sets the IAM access control policy on the specified function. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        SetIamPolicyRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<Policy> | 
        The call object.  | 
      
TestIamPermissions(TestIamPermissionsRequest, CallOptions)
public virtual TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallOptions options)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 | 
        TestIamPermissionsRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TestIamPermissionsResponse | 
        The response received from the server.  | 
      
TestIamPermissions(TestIamPermissionsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | 
        TestIamPermissionsRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TestIamPermissionsResponse | 
        The response received from the server.  | 
      
TestIamPermissionsAsync(TestIamPermissionsRequest, CallOptions)
public virtual AsyncUnaryCall<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallOptions options)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 | 
        TestIamPermissionsRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<TestIamPermissionsResponse> | 
        The call object.  | 
      
TestIamPermissionsAsync(TestIamPermissionsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))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 | 
        TestIamPermissionsRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<TestIamPermissionsResponse> | 
        The call object.  | 
      
UpdateFunction(UpdateFunctionRequest, CallOptions)
public virtual Operation UpdateFunction(UpdateFunctionRequest request, CallOptions options)Updates existing function.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        UpdateFunctionRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Operation | 
        The response received from the server.  | 
      
UpdateFunction(UpdateFunctionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation UpdateFunction(UpdateFunctionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Updates existing function.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        UpdateFunctionRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Operation | 
        The response received from the server.  | 
      
UpdateFunctionAsync(UpdateFunctionRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> UpdateFunctionAsync(UpdateFunctionRequest request, CallOptions options)Updates existing function.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        UpdateFunctionRequestThe request to send to the server.  | 
      
options | 
        CallOptionsThe options for the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<Operation> | 
        The call object.  | 
      
UpdateFunctionAsync(UpdateFunctionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> UpdateFunctionAsync(UpdateFunctionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Updates existing function.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        UpdateFunctionRequestThe request to send to the server.  | 
      
headers | 
        MetadataThe initial metadata to send with the call. This parameter is optional.  | 
      
deadline | 
        Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit.  | 
      
cancellationToken | 
        CancellationTokenAn optional token for canceling the call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
AsyncUnaryCall<Operation> | 
        The call object.  |