Batch v1alpha API - Class BatchService.BatchServiceClient (1.0.0-alpha25)

public class BatchService.BatchServiceClient : ClientBase<BatchService.BatchServiceClient>

Reference documentation and code samples for the Batch v1alpha API class BatchService.BatchServiceClient.

Client for BatchService

Inheritance

object > ClientBase > ClientBaseBatchServiceBatchServiceClient > BatchService.BatchServiceClient

Namespace

Google.Cloud.Batch.V1Alpha

Assembly

Google.Cloud.Batch.V1Alpha.dll

Constructors

BatchServiceClient()

protected BatchServiceClient()

Protected parameterless constructor to allow creation of test doubles.

BatchServiceClient(CallInvoker)

public BatchServiceClient(CallInvoker callInvoker)

Creates a new client for BatchService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

BatchServiceClient(ChannelBase)

public BatchServiceClient(ChannelBase channel)

Creates a new client for BatchService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

BatchServiceClient(ClientBaseConfiguration)

protected BatchServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateJob(CreateJobRequest, CallOptions)

public virtual Job CreateJob(CreateJobRequest request, CallOptions options)

Create a Job.

Parameters
NameDescription
requestCreateJobRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Job

The response received from the server.

CreateJob(CreateJobRequest, Metadata, DateTime?, CancellationToken)

public virtual Job CreateJob(CreateJobRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a Job.

Parameters
NameDescription
requestCreateJobRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Job

The response received from the server.

CreateJobAsync(CreateJobRequest, CallOptions)

public virtual AsyncUnaryCall<Job> CreateJobAsync(CreateJobRequest request, CallOptions options)

Create a Job.

Parameters
NameDescription
requestCreateJobRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallJob

The call object.

CreateJobAsync(CreateJobRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Job> CreateJobAsync(CreateJobRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a Job.

Parameters
NameDescription
requestCreateJobRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallJob

The call object.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
TypeDescription
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
TypeDescription
OperationsOperationsClient

A new Operations client for the same target as this client.

CreateResourceAllowance(CreateResourceAllowanceRequest, CallOptions)

public virtual ResourceAllowance CreateResourceAllowance(CreateResourceAllowanceRequest request, CallOptions options)

Create a Resource Allowance.

Parameters
NameDescription
requestCreateResourceAllowanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ResourceAllowance

The response received from the server.

CreateResourceAllowance(CreateResourceAllowanceRequest, Metadata, DateTime?, CancellationToken)

public virtual ResourceAllowance CreateResourceAllowance(CreateResourceAllowanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a Resource Allowance.

Parameters
NameDescription
requestCreateResourceAllowanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ResourceAllowance

The response received from the server.

CreateResourceAllowanceAsync(CreateResourceAllowanceRequest, CallOptions)

public virtual AsyncUnaryCall<ResourceAllowance> CreateResourceAllowanceAsync(CreateResourceAllowanceRequest request, CallOptions options)

Create a Resource Allowance.

Parameters
NameDescription
requestCreateResourceAllowanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallResourceAllowance

The call object.

CreateResourceAllowanceAsync(CreateResourceAllowanceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ResourceAllowance> CreateResourceAllowanceAsync(CreateResourceAllowanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a Resource Allowance.

Parameters
NameDescription
requestCreateResourceAllowanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallResourceAllowance

The call object.

DeleteJob(DeleteJobRequest, CallOptions)

public virtual Operation DeleteJob(DeleteJobRequest request, CallOptions options)

Delete a Job.

Parameters
NameDescription
requestDeleteJobRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteJob(DeleteJobRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation DeleteJob(DeleteJobRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Delete a Job.

Parameters
NameDescription
requestDeleteJobRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteJobAsync(DeleteJobRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteJobAsync(DeleteJobRequest request, CallOptions options)

Delete a Job.

Parameters
NameDescription
requestDeleteJobRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteJobAsync(DeleteJobRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteJobAsync(DeleteJobRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Delete a Job.

Parameters
NameDescription
requestDeleteJobRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteResourceAllowance(DeleteResourceAllowanceRequest, CallOptions)

public virtual Operation DeleteResourceAllowance(DeleteResourceAllowanceRequest request, CallOptions options)

Delete a ResourceAllowance.

Parameters
NameDescription
requestDeleteResourceAllowanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteResourceAllowance(DeleteResourceAllowanceRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation DeleteResourceAllowance(DeleteResourceAllowanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Delete a ResourceAllowance.

Parameters
NameDescription
requestDeleteResourceAllowanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteResourceAllowanceAsync(DeleteResourceAllowanceRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteResourceAllowanceAsync(DeleteResourceAllowanceRequest request, CallOptions options)

Delete a ResourceAllowance.

Parameters
NameDescription
requestDeleteResourceAllowanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteResourceAllowanceAsync(DeleteResourceAllowanceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteResourceAllowanceAsync(DeleteResourceAllowanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Delete a ResourceAllowance.

Parameters
NameDescription
requestDeleteResourceAllowanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

GetJob(GetJobRequest, CallOptions)

public virtual Job GetJob(GetJobRequest request, CallOptions options)

Get a Job specified by its resource name.

Parameters
NameDescription
requestGetJobRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Job

The response received from the server.

GetJob(GetJobRequest, Metadata, DateTime?, CancellationToken)

public virtual Job GetJob(GetJobRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get a Job specified by its resource name.

Parameters
NameDescription
requestGetJobRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Job

The response received from the server.

GetJobAsync(GetJobRequest, CallOptions)

public virtual AsyncUnaryCall<Job> GetJobAsync(GetJobRequest request, CallOptions options)

Get a Job specified by its resource name.

Parameters
NameDescription
requestGetJobRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallJob

The call object.

GetJobAsync(GetJobRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Job> GetJobAsync(GetJobRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get a Job specified by its resource name.

Parameters
NameDescription
requestGetJobRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallJob

The call object.

GetResourceAllowance(GetResourceAllowanceRequest, CallOptions)

public virtual ResourceAllowance GetResourceAllowance(GetResourceAllowanceRequest request, CallOptions options)

Get a ResourceAllowance specified by its resource name.

Parameters
NameDescription
requestGetResourceAllowanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ResourceAllowance

The response received from the server.

GetResourceAllowance(GetResourceAllowanceRequest, Metadata, DateTime?, CancellationToken)

public virtual ResourceAllowance GetResourceAllowance(GetResourceAllowanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get a ResourceAllowance specified by its resource name.

Parameters
NameDescription
requestGetResourceAllowanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ResourceAllowance

The response received from the server.

GetResourceAllowanceAsync(GetResourceAllowanceRequest, CallOptions)

public virtual AsyncUnaryCall<ResourceAllowance> GetResourceAllowanceAsync(GetResourceAllowanceRequest request, CallOptions options)

Get a ResourceAllowance specified by its resource name.

Parameters
NameDescription
requestGetResourceAllowanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallResourceAllowance

The call object.

GetResourceAllowanceAsync(GetResourceAllowanceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ResourceAllowance> GetResourceAllowanceAsync(GetResourceAllowanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get a ResourceAllowance specified by its resource name.

Parameters
NameDescription
requestGetResourceAllowanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallResourceAllowance

The call object.

GetTask(GetTaskRequest, CallOptions)

public virtual Task GetTask(GetTaskRequest request, CallOptions options)

Return a single Task.

Parameters
NameDescription
requestGetTaskRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Task

The response received from the server.

GetTask(GetTaskRequest, Metadata, DateTime?, CancellationToken)

public virtual Task GetTask(GetTaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Return a single Task.

Parameters
NameDescription
requestGetTaskRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Task

The response received from the server.

GetTaskAsync(GetTaskRequest, CallOptions)

public virtual AsyncUnaryCall<Task> GetTaskAsync(GetTaskRequest request, CallOptions options)

Return a single Task.

Parameters
NameDescription
requestGetTaskRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTask

The call object.

GetTaskAsync(GetTaskRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Task> GetTaskAsync(GetTaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Return a single Task.

Parameters
NameDescription
requestGetTaskRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTask

The call object.

ListJobs(ListJobsRequest, CallOptions)

public virtual ListJobsResponse ListJobs(ListJobsRequest request, CallOptions options)

List all Jobs for a project within a region.

Parameters
NameDescription
requestListJobsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListJobsResponse

The response received from the server.

ListJobs(ListJobsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListJobsResponse ListJobs(ListJobsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List all Jobs for a project within a region.

Parameters
NameDescription
requestListJobsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListJobsResponse

The response received from the server.

ListJobsAsync(ListJobsRequest, CallOptions)

public virtual AsyncUnaryCall<ListJobsResponse> ListJobsAsync(ListJobsRequest request, CallOptions options)

List all Jobs for a project within a region.

Parameters
NameDescription
requestListJobsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListJobsResponse

The call object.

ListJobsAsync(ListJobsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListJobsResponse> ListJobsAsync(ListJobsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List all Jobs for a project within a region.

Parameters
NameDescription
requestListJobsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListJobsResponse

The call object.

ListResourceAllowances(ListResourceAllowancesRequest, CallOptions)

public virtual ListResourceAllowancesResponse ListResourceAllowances(ListResourceAllowancesRequest request, CallOptions options)

List all ResourceAllowances for a project within a region.

Parameters
NameDescription
requestListResourceAllowancesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListResourceAllowancesResponse

The response received from the server.

ListResourceAllowances(ListResourceAllowancesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListResourceAllowancesResponse ListResourceAllowances(ListResourceAllowancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List all ResourceAllowances for a project within a region.

Parameters
NameDescription
requestListResourceAllowancesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListResourceAllowancesResponse

The response received from the server.

ListResourceAllowancesAsync(ListResourceAllowancesRequest, CallOptions)

public virtual AsyncUnaryCall<ListResourceAllowancesResponse> ListResourceAllowancesAsync(ListResourceAllowancesRequest request, CallOptions options)

List all ResourceAllowances for a project within a region.

Parameters
NameDescription
requestListResourceAllowancesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListResourceAllowancesResponse

The call object.

ListResourceAllowancesAsync(ListResourceAllowancesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListResourceAllowancesResponse> ListResourceAllowancesAsync(ListResourceAllowancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List all ResourceAllowances for a project within a region.

Parameters
NameDescription
requestListResourceAllowancesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListResourceAllowancesResponse

The call object.

ListTasks(ListTasksRequest, CallOptions)

public virtual ListTasksResponse ListTasks(ListTasksRequest request, CallOptions options)

List Tasks associated with a job.

Parameters
NameDescription
requestListTasksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListTasksResponse

The response received from the server.

ListTasks(ListTasksRequest, Metadata, DateTime?, CancellationToken)

public virtual ListTasksResponse ListTasks(ListTasksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List Tasks associated with a job.

Parameters
NameDescription
requestListTasksRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListTasksResponse

The response received from the server.

ListTasksAsync(ListTasksRequest, CallOptions)

public virtual AsyncUnaryCall<ListTasksResponse> ListTasksAsync(ListTasksRequest request, CallOptions options)

List Tasks associated with a job.

Parameters
NameDescription
requestListTasksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListTasksResponse

The call object.

ListTasksAsync(ListTasksRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListTasksResponse> ListTasksAsync(ListTasksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

List Tasks associated with a job.

Parameters
NameDescription
requestListTasksRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListTasksResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override BatchService.BatchServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
BatchServiceBatchServiceClient
Overrides

UpdateResourceAllowance(UpdateResourceAllowanceRequest, CallOptions)

public virtual ResourceAllowance UpdateResourceAllowance(UpdateResourceAllowanceRequest request, CallOptions options)

Update a Resource Allowance.

Parameters
NameDescription
requestUpdateResourceAllowanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ResourceAllowance

The response received from the server.

UpdateResourceAllowance(UpdateResourceAllowanceRequest, Metadata, DateTime?, CancellationToken)

public virtual ResourceAllowance UpdateResourceAllowance(UpdateResourceAllowanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update a Resource Allowance.

Parameters
NameDescription
requestUpdateResourceAllowanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ResourceAllowance

The response received from the server.

UpdateResourceAllowanceAsync(UpdateResourceAllowanceRequest, CallOptions)

public virtual AsyncUnaryCall<ResourceAllowance> UpdateResourceAllowanceAsync(UpdateResourceAllowanceRequest request, CallOptions options)

Update a Resource Allowance.

Parameters
NameDescription
requestUpdateResourceAllowanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallResourceAllowance

The call object.

UpdateResourceAllowanceAsync(UpdateResourceAllowanceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ResourceAllowance> UpdateResourceAllowanceAsync(UpdateResourceAllowanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update a Resource Allowance.

Parameters
NameDescription
requestUpdateResourceAllowanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallResourceAllowance

The call object.