@@ -128,7 +128,6 @@ public static void main(String[] args) {
128
128
System .exit (1 );
129
129
}
130
130
131
- // [START list_instances]
132
131
/**
133
132
* Print available machine instances.
134
133
*
@@ -154,10 +153,8 @@ public static boolean printInstances(Compute compute) throws IOException {
154
153
}
155
154
return found ;
156
155
}
157
- // [END list_instances]
158
156
159
157
// [START compute_create_instance]
160
- // [START create_instances]
161
158
public static Operation startInstance (Compute compute , String instanceName ) throws IOException {
162
159
System .out .println ("================== Starting New Instance ==================" );
163
160
@@ -226,7 +223,7 @@ public static Operation startInstance(Compute compute, String instanceName) thro
226
223
Compute .Instances .Insert insert = compute .instances ().insert (PROJECT_ID , ZONE_NAME , instance );
227
224
return insert .execute ();
228
225
}
229
- // [END create_instances]
226
+
230
227
// [END compute_create_instance]
231
228
232
229
private static Operation deleteInstance (Compute compute , String instanceName ) throws Exception {
@@ -246,7 +243,6 @@ public static String getLastWordFromUrl(String url) {
246
243
}
247
244
248
245
// [START compute_wait_for_operation]
249
- // [START wait_until_complete]
250
246
/**
251
247
* Wait until {@code operation} is completed.
252
248
*
@@ -288,6 +284,5 @@ public static Operation.Error blockUntilComplete(
288
284
}
289
285
return operation == null ? null : operation .getError ();
290
286
}
291
- // [END wait_until_complete]
292
287
// [END compute_wait_for_operation]
293
288
}
0 commit comments