class ProjectsLocationsBatches extends Resource (View source)

The "batches" collection of methods.

Typical usage is:

 $dataprocService = new Google\Service\Dataproc(...);
 $batches = $dataprocService->projects_locations_batches;

Methods

analyze(string $name, AnalyzeBatchRequest $postBody, array $optParams = [])

Analyze a Batch for possible recommendations and insights. (batches.analyze)

create(string $parent, Batch $postBody, array $optParams = [])

Creates a batch workload that executes asynchronously. (batches.create)

delete(string $name, array $optParams = [])

Deletes the batch workload resource. If the batch is not in a CANCELLED, SUCCEEDED or FAILED State, the delete operation fails and the response returns FAILED_PRECONDITION. (batches.delete)

get(string $name, array $optParams = [])

Gets the batch workload resource representation. (batches.get)

listProjectsLocationsBatches(string $parent, array $optParams = [])

Lists batch workloads. (batches.listProjectsLocationsBatches)

Details

Operation analyze(string $name, AnalyzeBatchRequest $postBody, array $optParams = [])

Analyze a Batch for possible recommendations and insights. (batches.analyze)

Parameters

string $name

Required. The fully qualified name of the batch to analyze in the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID"

AnalyzeBatchRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation create(string $parent, Batch $postBody, array $optParams = [])

Creates a batch workload that executes asynchronously. (batches.create)

Parameters

string $parent

Required. The parent resource where this batch will be created.

Batch $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

DataprocEmpty delete(string $name, array $optParams = [])

Deletes the batch workload resource. If the batch is not in a CANCELLED, SUCCEEDED or FAILED State, the delete operation fails and the response returns FAILED_PRECONDITION. (batches.delete)

Parameters

string $name

Required. The fully qualified name of the batch to retrieve in the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID"

array $optParams

Optional parameters.

Return Value

DataprocEmpty

Exceptions

Exception

Batch get(string $name, array $optParams = [])

Gets the batch workload resource representation. (batches.get)

Parameters

string $name

Required. The fully qualified name of the batch to retrieve in the format "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID"

array $optParams

Optional parameters.

Return Value

Batch

Exceptions

Exception

ListBatchesResponse listProjectsLocationsBatches(string $parent, array $optParams = [])

Lists batch workloads. (batches.listProjectsLocationsBatches)

Parameters

string $parent

Required. The parent, which owns this collection of batches.

array $optParams

Optional parameters.

Return Value

ListBatchesResponse

Exceptions

Exception