Skip to content

Commit ea70f4a

Browse files
chore(compute): add new region tags (#9992)
1 parent 5471cab commit ea70f4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compute/cmdline/src/main/java/ComputeEngineSample.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ public static boolean printInstances(Compute compute) throws IOException {
156156
}
157157
// [END list_instances]
158158

159+
// [START compute_create_instance]
159160
// [START create_instances]
160161
public static Operation startInstance(Compute compute, String instanceName) throws IOException {
161162
System.out.println("================== Starting New Instance ==================");
@@ -226,6 +227,7 @@ public static Operation startInstance(Compute compute, String instanceName) thro
226227
return insert.execute();
227228
}
228229
// [END create_instances]
230+
// [END compute_create_instance]
229231

230232
private static Operation deleteInstance(Compute compute, String instanceName) throws Exception {
231233
System.out.println(
@@ -243,6 +245,7 @@ public static String getLastWordFromUrl(String url) {
243245
return url;
244246
}
245247

248+
// [START compute_wait_for_operation]
246249
// [START wait_until_complete]
247250
/**
248251
* Wait until {@code operation} is completed.
@@ -286,4 +289,5 @@ public static Operation.Error blockUntilComplete(
286289
return operation == null ? null : operation.getError();
287290
}
288291
// [END wait_until_complete]
292+
// [END compute_wait_for_operation]
289293
}

0 commit comments

Comments
 (0)