[BindServiceMethod(typeof(BatchController), "BindService")]
public abstract class BatchControllerBase
Base class for server-side implementations of BatchController
Namespace
Google.Cloud.Dataproc.V1Assembly
Google.Cloud.Dataproc.V1.dll
Methods
CreateBatch(CreateBatchRequest, ServerCallContext)
public virtual Task<Operation> CreateBatch(CreateBatchRequest request, ServerCallContext context)
Creates a batch workload that executes asynchronously.
Parameters | |
---|---|
Name | Description |
request | CreateBatchRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Operation> | The response to send back to the client (wrapped by a task). |
DeleteBatch(DeleteBatchRequest, ServerCallContext)
public virtual Task<Empty> DeleteBatch(DeleteBatchRequest request, ServerCallContext context)
Deletes the batch workload resource. If the batch is not in terminal state,
the delete fails and the response returns FAILED_PRECONDITION
.
Parameters | |
---|---|
Name | Description |
request | DeleteBatchRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Empty> | The response to send back to the client (wrapped by a task). |
GetBatch(GetBatchRequest, ServerCallContext)
public virtual Task<Batch> GetBatch(GetBatchRequest request, ServerCallContext context)
Gets the batch workload resource representation.
Parameters | |
---|---|
Name | Description |
request | GetBatchRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Batch> | The response to send back to the client (wrapped by a task). |
ListBatches(ListBatchesRequest, ServerCallContext)
public virtual Task<ListBatchesResponse> ListBatches(ListBatchesRequest request, ServerCallContext context)
Lists batch workloads.
Parameters | |
---|---|
Name | Description |
request | ListBatchesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ListBatchesResponse> | The response to send back to the client (wrapped by a task). |