@@ -254,7 +254,7 @@ private static Instance createWithDisks(String project, String zone, String inst
254
254
// [START compute_instances_create_from_image]
255
255
256
256
/**
257
- * Create a new VM instance with Debian 10 operating system.
257
+ * Create a new VM instance with Debian 11 operating system.
258
258
*
259
259
* @param project project ID or project number of the Cloud project you want to use.
260
260
* @param zone name of the zone to create the instance in. For example: "us-west3-b"
@@ -265,7 +265,7 @@ public static Instance createFromPublicImage(String project, String zone, String
265
265
throws IOException , InterruptedException , ExecutionException , TimeoutException {
266
266
try (ImagesClient imagesClient = ImagesClient .create ()) {
267
267
// List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details
268
- Image image = imagesClient .getFromFamily ("debian-cloud" , "debian-10 " );
268
+ Image image = imagesClient .getFromFamily ("debian-cloud" , "debian-11 " );
269
269
String diskType = String .format ("zones/%s/diskTypes/pd-standard" , zone );
270
270
Vector <AttachedDisk > disks = new Vector <>();
271
271
disks .add (diskFromImage (diskType , 10 , true , image .getSelfLink ()));
@@ -301,7 +301,7 @@ public static Instance createFromCustomImage(String project, String zone, String
301
301
// [START compute_instances_create_from_image_plus_empty_disk]
302
302
303
303
/**
304
- * Create a new VM instance with Debian 10 operating system and a 11 GB additional empty disk.
304
+ * Create a new VM instance with Debian 11 operating system and a 11 GB additional empty disk.
305
305
*
306
306
* @param project project ID or project number of the Cloud project you want to use.
307
307
* @param zone name of the zone to create the instance in. For example: "us-west3-b"
@@ -312,7 +312,7 @@ public static Instance createWithAdditionalDisk(String project, String zone, Str
312
312
throws IOException , InterruptedException , ExecutionException , TimeoutException {
313
313
try (ImagesClient imagesClient = ImagesClient .create ()) {
314
314
// List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details
315
- Image image = imagesClient .getFromFamily ("debian-cloud" , "debian-10 " );
315
+ Image image = imagesClient .getFromFamily ("debian-cloud" , "debian-11 " );
316
316
String diskType = String .format ("zones/%s/diskTypes/pd-standard" , zone );
317
317
Vector <AttachedDisk > disks = new Vector <>();
318
318
disks .add (diskFromImage (diskType , 10 , true , image .getSelfLink ()));
@@ -349,7 +349,7 @@ public static Instance createFromSnapshot(String project, String zone, String in
349
349
// [START compute_instances_create_from_image_plus_snapshot_disk]
350
350
351
351
/**
352
- * Create a new VM instance with Debian 10 operating system and data disk created from snapshot.
352
+ * Create a new VM instance with Debian 11 operating system and data disk created from snapshot.
353
353
*
354
354
* @param project project ID or project number of the Cloud project you want to use.
355
355
* @param zone name of the zone to create the instance in. For example: "us-west3-b"
@@ -363,7 +363,7 @@ public static Instance createWithSnapshottedDataDisk(String project, String zone
363
363
throws IOException , InterruptedException , ExecutionException , TimeoutException {
364
364
try (ImagesClient imagesClient = ImagesClient .create ()) {
365
365
// List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details
366
- Image image = imagesClient .getFromFamily ("debian-cloud" , "debian-10 " );
366
+ Image image = imagesClient .getFromFamily ("debian-cloud" , "debian-11 " );
367
367
String diskType = String .format ("zones/%s/diskTypes/pd-standard" , zone );
368
368
Vector <AttachedDisk > disks = new Vector <>();
369
369
disks .add (diskFromImage (diskType , 10 , true , image .getSelfLink ()));
@@ -377,7 +377,7 @@ public static Instance createWithSnapshottedDataDisk(String project, String zone
377
377
// [START compute_instances_create_from_image]
378
378
379
379
/**
380
- * Create a new VM instance with Debian 10 operating system in specified network and subnetwork.
380
+ * Create a new VM instance with Debian 11 operating system in specified network and subnetwork.
381
381
*
382
382
* @param project project ID or project number of the Cloud project you want to use.
383
383
* @param zone name of the zone to create the instance in. For example: "us-west3-b"
@@ -394,7 +394,7 @@ public static Instance createWithSubnetwork(String project, String zone, String
394
394
throws IOException , InterruptedException , ExecutionException , TimeoutException {
395
395
try (ImagesClient imagesClient = ImagesClient .create ()) {
396
396
// List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details
397
- Image image = imagesClient .getFromFamily ("debian-cloud" , "debian-10 " );
397
+ Image image = imagesClient .getFromFamily ("debian-cloud" , "debian-11 " );
398
398
String diskType = String .format ("zones/%s/diskTypes/pd-standard" , zone );
399
399
Vector <AttachedDisk > disks = new Vector <>();
400
400
disks .add (diskFromImage (diskType , 10 , true , image .getSelfLink ()));
0 commit comments