Google Cloud Dataproc v1 API - Class BatchController.BatchControllerClient (5.7.0)

public class BatchController.BatchControllerClient : ClientBase<BatchController.BatchControllerClient>

Reference documentation and code samples for the Google Cloud Dataproc v1 API class BatchController.BatchControllerClient.

Client for BatchController

Inheritance

object > ClientBase > ClientBaseBatchControllerBatchControllerClient > BatchController.BatchControllerClient

Namespace

Google.Cloud.Dataproc.V1

Assembly

Google.Cloud.Dataproc.V1.dll

Constructors

BatchControllerClient()

protected BatchControllerClient()

Protected parameterless constructor to allow creation of test doubles.

BatchControllerClient(CallInvoker)

public BatchControllerClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

BatchControllerClient(ChannelBase)

public BatchControllerClient(ChannelBase channel)

Creates a new client for BatchController

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

BatchControllerClient(ClientBaseConfiguration)

protected BatchControllerClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateBatch(CreateBatchRequest, CallOptions)

public virtual Operation CreateBatch(CreateBatchRequest request, CallOptions options)

Creates a batch workload that executes asynchronously.

Parameters
NameDescription
requestCreateBatchRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

CreateBatch(CreateBatchRequest, Metadata, DateTime?, CancellationToken)

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

Creates a batch workload that executes asynchronously.

Parameters
NameDescription
requestCreateBatchRequest

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.

CreateBatchAsync(CreateBatchRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CreateBatchAsync(CreateBatchRequest request, CallOptions options)

Creates a batch workload that executes asynchronously.

Parameters
NameDescription
requestCreateBatchRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

CreateBatchAsync(CreateBatchRequest, Metadata, DateTime?, CancellationToken)

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

Creates a batch workload that executes asynchronously.

Parameters
NameDescription
requestCreateBatchRequest

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.

CreateIAMPolicyClient()

public virtual IAMPolicy.IAMPolicyClient CreateIAMPolicyClient()

Creates a new instance of IAMPolicy.IAMPolicyClient using the same call invoker as this client.

Returns
TypeDescription
IAMPolicyIAMPolicyClient

A new IAMPolicy.IAMPolicyClient 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.

DeleteBatch(DeleteBatchRequest, CallOptions)

public virtual Empty DeleteBatch(DeleteBatchRequest request, CallOptions options)

Deletes the batch workload resource. If the batch is not in terminal state, the delete fails and the response returns FAILED_PRECONDITION.

Parameters
NameDescription
requestDeleteBatchRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteBatch(DeleteBatchRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteBatch(DeleteBatchRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the batch workload resource. If the batch is not in terminal state, the delete fails and the response returns FAILED_PRECONDITION.

Parameters
NameDescription
requestDeleteBatchRequest

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
Empty

The response received from the server.

DeleteBatchAsync(DeleteBatchRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteBatchAsync(DeleteBatchRequest request, CallOptions options)

Deletes the batch workload resource. If the batch is not in terminal state, the delete fails and the response returns FAILED_PRECONDITION.

Parameters
NameDescription
requestDeleteBatchRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

DeleteBatchAsync(DeleteBatchRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteBatchAsync(DeleteBatchRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the batch workload resource. If the batch is not in terminal state, the delete fails and the response returns FAILED_PRECONDITION.

Parameters
NameDescription
requestDeleteBatchRequest

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
AsyncUnaryCallEmpty

The call object.

GetBatch(GetBatchRequest, CallOptions)

public virtual Batch GetBatch(GetBatchRequest request, CallOptions options)

Gets the batch workload resource representation.

Parameters
NameDescription
requestGetBatchRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Batch

The response received from the server.

GetBatch(GetBatchRequest, Metadata, DateTime?, CancellationToken)

public virtual Batch GetBatch(GetBatchRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the batch workload resource representation.

Parameters
NameDescription
requestGetBatchRequest

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
Batch

The response received from the server.

GetBatchAsync(GetBatchRequest, CallOptions)

public virtual AsyncUnaryCall<Batch> GetBatchAsync(GetBatchRequest request, CallOptions options)

Gets the batch workload resource representation.

Parameters
NameDescription
requestGetBatchRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallBatch

The call object.

GetBatchAsync(GetBatchRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Batch> GetBatchAsync(GetBatchRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the batch workload resource representation.

Parameters
NameDescription
requestGetBatchRequest

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
AsyncUnaryCallBatch

The call object.

ListBatches(ListBatchesRequest, CallOptions)

public virtual ListBatchesResponse ListBatches(ListBatchesRequest request, CallOptions options)

Lists batch workloads.

Parameters
NameDescription
requestListBatchesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListBatchesResponse

The response received from the server.

ListBatches(ListBatchesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListBatchesResponse ListBatches(ListBatchesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists batch workloads.

Parameters
NameDescription
requestListBatchesRequest

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
ListBatchesResponse

The response received from the server.

ListBatchesAsync(ListBatchesRequest, CallOptions)

public virtual AsyncUnaryCall<ListBatchesResponse> ListBatchesAsync(ListBatchesRequest request, CallOptions options)

Lists batch workloads.

Parameters
NameDescription
requestListBatchesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListBatchesResponse

The call object.

ListBatchesAsync(ListBatchesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListBatchesResponse> ListBatchesAsync(ListBatchesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists batch workloads.

Parameters
NameDescription
requestListBatchesRequest

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
AsyncUnaryCallListBatchesResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override BatchController.BatchControllerClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
BatchControllerBatchControllerClient
Overrides