Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
updated comments
  • Loading branch information
Sita04 authored Sep 19, 2022
commit a9b2da662ad8ffe6e824007a3418395593340203
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ public class CreateWithContainerNoMounting {
public static void main(String[] args)
throws IOException, ExecutionException, InterruptedException, TimeoutException {
// TODO(developer): Replace these variables before running the sample.
// projectId: project ID or project number of the Cloud project you want to use.
// Project ID or project number of the Cloud project you want to use.
String projectId = "YOUR_PROJECT_ID";

// region: name of the region you want to use to run the job. Regions that are
// Name of the region you want to use to run the job. Regions that are
// available for Batch are listed on: https://cloud.google.com/batch/docs/get-started#locations
String region = "europe-central2";

// jobName: the name of the job that will be created.
// The name of the job that will be created.
// It needs to be unique for each project and region pair.
String jobName = "JOB_NAME";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ public class CreateWithScriptNoMounting {
public static void main(String[] args)
throws IOException, ExecutionException, InterruptedException, TimeoutException {
// TODO(developer): Replace these variables before running the sample.
// projectId: project ID or project number of the Cloud project you want to use.
// Project ID or project number of the Cloud project you want to use.
String projectId = "YOUR_PROJECT_ID";

// region: name of the region you want to use to run the job. Regions that are
// Name of the region you want to use to run the job. Regions that are
// available for Batch are listed on: https://cloud.google.com/batch/docs/get-started#locations
String region = "europe-central2";

// jobName: the name of the job that will be created.
// The name of the job that will be created.
// It needs to be unique for each project and region pair.
String jobName = "JOB_NAME";

Expand Down
6 changes: 3 additions & 3 deletions samples/snippets/src/main/java/DeleteJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ public class DeleteJob {
public static void main(String[] args)
throws IOException, ExecutionException, InterruptedException, TimeoutException {
// TODO(developer): Replace these variables before running the sample.
// projectId: project ID or project number of the Cloud project you want to use.
// Project ID or project number of the Cloud project you want to use.
String projectId = "YOUR_PROJECT_ID";

// region: name of the region hosts the job.
// Name of the region hosts the job.
String region = "europe-central2";

// jobName: the name of the job that you want to delete.
// The name of the job that you want to delete.
String jobName = "JOB_NAME";

deleteJob(projectId, region, jobName);
Expand Down
6 changes: 3 additions & 3 deletions samples/snippets/src/main/java/GetJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ public class GetJob {

public static void main(String[] args) throws IOException {
// TODO(developer): Replace these variables before running the sample.
// projectId: project ID or project number of the Cloud project you want to use.
// Project ID or project number of the Cloud project you want to use.
String projectId = "YOUR_PROJECT_ID";

// region: name of the region hosts the job.
// Name of the region hosts the job.
String region = "europe-central2";

// jobName: the name of the job you want to retrieve information about.
// The name of the job you want to retrieve information about.
String jobName = "JOB_NAME";

getJob(projectId, region, jobName);
Expand Down
4 changes: 2 additions & 2 deletions samples/snippets/src/main/java/ListJobs.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public class ListJobs {

public static void main(String[] args) throws IOException {
// TODO(developer): Replace these variables before running the sample.
// projectId: project ID or project number of the Cloud project you want to use.
// Project ID or project number of the Cloud project you want to use.
String projectId = "YOUR_PROJECT_ID";

// region: name of the region hosting the jobs.
// Name of the region hosting the jobs.
String region = "europe-central2";

listJobs(projectId, region);
Expand Down