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

public class 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 > ClientBase<BatchController.BatchControllerClient> > 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(ClientBase.ClientBaseConfiguration)

protected BatchControllerClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Operation>

The call object.

CreateBatchAsync(CreateBatchRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
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
TypeDescription
Operations.OperationsClient

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Empty>

The call object.

DeleteBatchAsync(DeleteBatchRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Empty>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Batch>

The call object.

GetBatchAsync(GetBatchRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<Batch>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<ListBatchesResponse>

The call object.

ListBatchesAsync(ListBatchesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<ListBatchesResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
BatchController.BatchControllerClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Dataproc.V1.BatchController.BatchControllerClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)