Package com.google.cloud.batch.v1
@Generated("by gapic-generator-java")
package com.google.cloud.batch.v1
A client to Batch API
The interfaces provided are listed below, along with usage samples.
======================= BatchServiceClient =======================
Service Description: Google Batch Service. The service manages user submitted batch jobs and allocates Google Compute Engine VM instances to run the jobs.
Sample for BatchServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BatchServiceClient batchServiceClient = BatchServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Job job = Job.newBuilder().build();
String jobId = "jobId101296568";
Job response = batchServiceClient.createJob(parent, job, jobId);
}
-
ClassesClassDescriptionService Description: Google Batch Service.Settings class to configure an instance of
BatchServiceClient.Builder for BatchServiceSettings.