Skip to content

chore(compute): remove unused region tags #10043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
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
7 changes: 1 addition & 6 deletions compute/cmdline/src/main/java/ComputeEngineSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ public static void main(String[] args) {
System.exit(1);
}

// [START list_instances]
/**
* Print available machine instances.
*
Expand All @@ -154,10 +153,8 @@ public static boolean printInstances(Compute compute) throws IOException {
}
return found;
}
// [END list_instances]

// [START compute_create_instance]
// [START create_instances]
public static Operation startInstance(Compute compute, String instanceName) throws IOException {
System.out.println("================== Starting New Instance ==================");

Expand Down Expand Up @@ -226,7 +223,7 @@ public static Operation startInstance(Compute compute, String instanceName) thro
Compute.Instances.Insert insert = compute.instances().insert(PROJECT_ID, ZONE_NAME, instance);
return insert.execute();
}
// [END create_instances]

// [END compute_create_instance]

private static Operation deleteInstance(Compute compute, String instanceName) throws Exception {
Expand All @@ -246,7 +243,6 @@ public static String getLastWordFromUrl(String url) {
}

// [START compute_wait_for_operation]
// [START wait_until_complete]
/**
* Wait until {@code operation} is completed.
*
Expand Down Expand Up @@ -288,6 +284,5 @@ public static Operation.Error blockUntilComplete(
}
return operation == null ? null : operation.getError();
}
// [END wait_until_complete]
// [END compute_wait_for_operation]
}