diff --git a/compute/cloud-client/src/main/java/compute/CreateEncryptedInstance.java b/compute/cloud-client/src/main/java/compute/CreateEncryptedInstance.java index 8829834adbc..4a8d30be9c9 100644 --- a/compute/cloud-client/src/main/java/compute/CreateEncryptedInstance.java +++ b/compute/cloud-client/src/main/java/compute/CreateEncryptedInstance.java @@ -61,7 +61,7 @@ public static void createEncryptedInstance(String project, String zone, String i networkName: network interface to associate with the instance. */ String machineType = String.format("zones/%s/machineTypes/n1-standard-1", zone); String sourceImage = String - .format("projects/debian-cloud/global/images/family/%s", "debian-11"); + .format("projects/debian-cloud/global/images/family/%s", "debian-13"); long diskSizeGb = 10L; String networkName = "default"; diff --git a/compute/cloud-client/src/main/java/compute/CreateInstance.java b/compute/cloud-client/src/main/java/compute/CreateInstance.java index 6c012330f1f..b8f8c2bbd9b 100644 --- a/compute/cloud-client/src/main/java/compute/CreateInstance.java +++ b/compute/cloud-client/src/main/java/compute/CreateInstance.java @@ -57,7 +57,7 @@ public static void createInstance(String project, String zone, String instanceNa // networkName: network interface to associate with the instance. String machineType = String.format("zones/%s/machineTypes/n1-standard-1", zone); String sourceImage = String - .format("projects/debian-cloud/global/images/family/%s", "debian-11"); + .format("projects/debian-cloud/global/images/family/%s", "debian-13"); long diskSizeGb = 10L; String networkName = "default"; diff --git a/compute/cloud-client/src/main/java/compute/CreateInstanceFromTemplateWithOverrides.java b/compute/cloud-client/src/main/java/compute/CreateInstanceFromTemplateWithOverrides.java index 19c5570a3a0..1fb0445f72f 100644 --- a/compute/cloud-client/src/main/java/compute/CreateInstanceFromTemplateWithOverrides.java +++ b/compute/cloud-client/src/main/java/compute/CreateInstanceFromTemplateWithOverrides.java @@ -49,7 +49,7 @@ public static void main(String[] args) * https://cloud.google.com/sdk/gcloud/reference/compute/machine-types/list * newDiskSourceImage - Path the the disk image you want to use for your new * disk. This can be one of the public images - * (like "projects/debian-cloud/global/images/family/debian-11") + * (like "projects/debian-cloud/global/images/family/debian-13") * or a private image you have access to. * You can check the list of available public images using the doc: * http://cloud.google.com/compute/docs/images @@ -72,7 +72,7 @@ public static void createInstanceFromTemplateWithOverrides(String projectId, Str InstanceTemplatesClient instanceTemplatesClient = InstanceTemplatesClient.create()) { String machineType = "n1-standard-1"; - String newDiskSourceImage = "projects/debian-cloud/global/images/family/debian-11"; + String newDiskSourceImage = "projects/debian-cloud/global/images/family/debian-13"; // Retrieve an instance template. InstanceTemplate instanceTemplate = instanceTemplatesClient diff --git a/compute/cloud-client/src/main/java/compute/CreateInstanceTemplate.java b/compute/cloud-client/src/main/java/compute/CreateInstanceTemplate.java index e365c7379d2..33b28fe5eeb 100644 --- a/compute/cloud-client/src/main/java/compute/CreateInstanceTemplate.java +++ b/compute/cloud-client/src/main/java/compute/CreateInstanceTemplate.java @@ -54,7 +54,7 @@ public static void createInstanceTemplate(String projectId, String templateName) try (InstanceTemplatesClient instanceTemplatesClient = InstanceTemplatesClient.create()) { String machineType = "e2-standard-4"; - String sourceImage = "projects/debian-cloud/global/images/family/debian-11"; + String sourceImage = "projects/debian-cloud/global/images/family/debian-13"; // The template describes the size and source image of the boot disk // to attach to the instance. @@ -110,7 +110,7 @@ public static void createInstanceTemplateWithDiskType(String projectId, String t .setInitializeParams(AttachedDiskInitializeParams.newBuilder() .setDiskSizeGb(10) .setDiskType("pd-balanced") - .setSourceImage("projects/debian-cloud/global/images/family/debian-11").build()) + .setSourceImage("projects/debian-cloud/global/images/family/debian-13").build()) .setAutoDelete(true) .setBoot(true) .setType(AttachedDisk.Type.PERSISTENT.toString()).build(); diff --git a/compute/cloud-client/src/main/java/compute/CreateInstancesAdvanced.java b/compute/cloud-client/src/main/java/compute/CreateInstancesAdvanced.java index 379bc7d2954..0f84719f3e4 100644 --- a/compute/cloud-client/src/main/java/compute/CreateInstancesAdvanced.java +++ b/compute/cloud-client/src/main/java/compute/CreateInstancesAdvanced.java @@ -254,7 +254,7 @@ private static Instance createWithDisks(String project, String zone, String inst // [START compute_instances_create_from_image] /** - * Create a new VM instance with Debian 11 operating system. + * Create a new VM instance with Debian 13 operating system. * * @param project project ID or project number of the Cloud project you want to use. * @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 throws IOException, InterruptedException, ExecutionException, TimeoutException { try (ImagesClient imagesClient = ImagesClient.create()) { // List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details - Image image = imagesClient.getFromFamily("debian-cloud", "debian-11"); + Image image = imagesClient.getFromFamily("debian-cloud", "debian-13"); String diskType = String.format("zones/%s/diskTypes/pd-standard", zone); Vector disks = new Vector<>(); disks.add(diskFromImage(diskType, 10, true, image.getSelfLink())); @@ -301,7 +301,7 @@ public static Instance createFromCustomImage(String project, String zone, String // [START compute_instances_create_from_image_plus_empty_disk] /** - * Create a new VM instance with Debian 11 operating system and a 11 GB additional empty disk. + * Create a new VM instance with Debian 13 operating system and a 11 GB additional empty disk. * * @param project project ID or project number of the Cloud project you want to use. * @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 throws IOException, InterruptedException, ExecutionException, TimeoutException { try (ImagesClient imagesClient = ImagesClient.create()) { // List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details - Image image = imagesClient.getFromFamily("debian-cloud", "debian-11"); + Image image = imagesClient.getFromFamily("debian-cloud", "debian-13"); String diskType = String.format("zones/%s/diskTypes/pd-standard", zone); Vector disks = new Vector<>(); disks.add(diskFromImage(diskType, 10, true, image.getSelfLink())); @@ -349,7 +349,7 @@ public static Instance createFromSnapshot(String project, String zone, String in // [START compute_instances_create_from_image_plus_snapshot_disk] /** - * Create a new VM instance with Debian 11 operating system and data disk created from snapshot. + * Create a new VM instance with Debian 13 operating system and data disk created from snapshot. * * @param project project ID or project number of the Cloud project you want to use. * @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 throws IOException, InterruptedException, ExecutionException, TimeoutException { try (ImagesClient imagesClient = ImagesClient.create()) { // List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details - Image image = imagesClient.getFromFamily("debian-cloud", "debian-11"); + Image image = imagesClient.getFromFamily("debian-cloud", "debian-13"); String diskType = String.format("zones/%s/diskTypes/pd-standard", zone); Vector disks = new Vector<>(); disks.add(diskFromImage(diskType, 10, true, image.getSelfLink())); @@ -377,7 +377,7 @@ public static Instance createWithSnapshottedDataDisk(String project, String zone // [START compute_instances_create_from_image] /** - * Create a new VM instance with Debian 11 operating system in specified network and subnetwork. + * Create a new VM instance with Debian 13 operating system in specified network and subnetwork. * * @param project project ID or project number of the Cloud project you want to use. * @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 throws IOException, InterruptedException, ExecutionException, TimeoutException { try (ImagesClient imagesClient = ImagesClient.create()) { // List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details - Image image = imagesClient.getFromFamily("debian-cloud", "debian-11"); + Image image = imagesClient.getFromFamily("debian-cloud", "debian-13"); String diskType = String.format("zones/%s/diskTypes/pd-standard", zone); Vector disks = new Vector<>(); disks.add(diskFromImage(diskType, 10, true, image.getSelfLink())); diff --git a/compute/cloud-client/src/main/java/compute/CreateRegionalInstanceTemplate.java b/compute/cloud-client/src/main/java/compute/CreateRegionalInstanceTemplate.java index bda1e02df17..dc07d357b0a 100644 --- a/compute/cloud-client/src/main/java/compute/CreateRegionalInstanceTemplate.java +++ b/compute/cloud-client/src/main/java/compute/CreateRegionalInstanceTemplate.java @@ -57,7 +57,7 @@ public static void createRegionalInstanceTemplate( RegionInstanceTemplatesClient.create()) { String machineType = "n1-standard-1"; // Example machine type - String sourceImage = "projects/debian-cloud/global/images/family/debian-11"; // Example image + String sourceImage = "projects/debian-cloud/global/images/family/debian-13"; // Example image // Define the boot disk for the instance template AttachedDisk attachedDisk = AttachedDisk.newBuilder() diff --git a/compute/cloud-client/src/main/java/compute/CreateTemplateWithSubnet.java b/compute/cloud-client/src/main/java/compute/CreateTemplateWithSubnet.java index 602db9d2d57..0167a5ecc9f 100644 --- a/compute/cloud-client/src/main/java/compute/CreateTemplateWithSubnet.java +++ b/compute/cloud-client/src/main/java/compute/CreateTemplateWithSubnet.java @@ -63,7 +63,7 @@ public static void createTemplateWithSubnet(String projectId, String network, St AttachedDisk disk = AttachedDisk.newBuilder() .setInitializeParams(AttachedDiskInitializeParams.newBuilder() .setSourceImage( - String.format("projects/%s/global/images/family/%s", "debian-cloud", "debian-11")) + String.format("projects/%s/global/images/family/%s", "debian-cloud", "debian-13")) .setDiskSizeGb(250).build()) .setAutoDelete(true) .setBoot(true) diff --git a/compute/cloud-client/src/main/java/compute/CreateWithLocalSsd.java b/compute/cloud-client/src/main/java/compute/CreateWithLocalSsd.java index ea4844f6fa7..e7a17cfc6c1 100644 --- a/compute/cloud-client/src/main/java/compute/CreateWithLocalSsd.java +++ b/compute/cloud-client/src/main/java/compute/CreateWithLocalSsd.java @@ -48,7 +48,7 @@ public static void main(String[] args) createWithLocalSsd(projectId, zone, instanceName); } - // Create a new VM instance with Debian 11 operating system and SSD local disk. + // Create a new VM instance with Debian 13 operating system and SSD local disk. public static void createWithLocalSsd(String projectId, String zone, String instanceName) throws IOException, ExecutionException, InterruptedException, TimeoutException { @@ -57,7 +57,7 @@ public static void createWithLocalSsd(String projectId, String zone, String inst boolean autoDelete = true; String diskType = String.format("zones/%s/diskTypes/pd-standard", zone); // Get the latest debian image. - Image newestDebian = getImageFromFamily("debian-cloud", "debian-11"); + Image newestDebian = getImageFromFamily("debian-cloud", "debian-13"); List disks = new ArrayList<>(); // Create the disks to be included in the instance. diff --git a/compute/cloud-client/src/main/java/compute/customhostname/CreateInstanceWithCustomHostname.java b/compute/cloud-client/src/main/java/compute/customhostname/CreateInstanceWithCustomHostname.java index 03f07491a37..23f6659658b 100644 --- a/compute/cloud-client/src/main/java/compute/customhostname/CreateInstanceWithCustomHostname.java +++ b/compute/cloud-client/src/main/java/compute/customhostname/CreateInstanceWithCustomHostname.java @@ -63,7 +63,7 @@ public static void createInstanceWithCustomHostname(String projectId, String zon // * For example: global/networks/default - if you want to use the default network. String machineType = "n1-standard-1"; String sourceImage = String.format("projects/%s/global/images/family/%s", "debian-cloud", - "debian-11"); + "debian-13"); String networkName = "global/networks/default"; try (InstancesClient instancesClient = InstancesClient.create()) { diff --git a/compute/cloud-client/src/main/java/compute/custommachinetype/CreateCustomMachineType.java b/compute/cloud-client/src/main/java/compute/custommachinetype/CreateCustomMachineType.java index 0b992536ff5..e971c585210 100644 --- a/compute/cloud-client/src/main/java/compute/custommachinetype/CreateCustomMachineType.java +++ b/compute/cloud-client/src/main/java/compute/custommachinetype/CreateCustomMachineType.java @@ -70,7 +70,7 @@ public static void createInstanceWithCustomMachineType( AttachedDiskInitializeParams.newBuilder() .setSourceImage( String.format("projects/%s/global/images/family/%s", "debian-cloud", - "debian-11")) + "debian-13")) .setDiskSizeGb(10) .build() ) diff --git a/compute/cloud-client/src/main/java/compute/custommachinetype/CreateInstanceWithCustomSharedCore.java b/compute/cloud-client/src/main/java/compute/custommachinetype/CreateInstanceWithCustomSharedCore.java index 8a434b42bcf..3b3cdcce416 100644 --- a/compute/cloud-client/src/main/java/compute/custommachinetype/CreateInstanceWithCustomSharedCore.java +++ b/compute/cloud-client/src/main/java/compute/custommachinetype/CreateInstanceWithCustomSharedCore.java @@ -192,7 +192,7 @@ public static void createInstanceWithCustomSharedCore( AttachedDiskInitializeParams.newBuilder() .setSourceImage( String.format("projects/%s/global/images/family/%s", "debian-cloud", - "debian-11")) + "debian-13")) .setDiskSizeGb(10) .build() ) diff --git a/compute/cloud-client/src/main/java/compute/custommachinetype/CreateWithHelper.java b/compute/cloud-client/src/main/java/compute/custommachinetype/CreateWithHelper.java index f4b9f98c696..8d5cf8da319 100644 --- a/compute/cloud-client/src/main/java/compute/custommachinetype/CreateWithHelper.java +++ b/compute/cloud-client/src/main/java/compute/custommachinetype/CreateWithHelper.java @@ -194,7 +194,7 @@ public static void createInstanceWithCustomMachineTypeWithHelper( AttachedDiskInitializeParams.newBuilder() .setSourceImage( String.format("projects/%s/global/images/family/%s", "debian-cloud", - "debian-11")) + "debian-13")) .setDiskSizeGb(10) .build() ) diff --git a/compute/cloud-client/src/main/java/compute/custommachinetype/CreateWithoutHelper.java b/compute/cloud-client/src/main/java/compute/custommachinetype/CreateWithoutHelper.java index 133159f44c7..d937152645d 100644 --- a/compute/cloud-client/src/main/java/compute/custommachinetype/CreateWithoutHelper.java +++ b/compute/cloud-client/src/main/java/compute/custommachinetype/CreateWithoutHelper.java @@ -75,7 +75,7 @@ public static void createInstanceWithCustomMachineTypeWithoutHelper( .setSourceImage( String.format("projects/%s/global/images/family/%s", "debian-cloud", - "debian-11")) + "debian-13")) .setDiskSizeGb(10) .build() ) diff --git a/compute/cloud-client/src/main/java/compute/custommachinetype/ExtraMemoryWithoutHelper.java b/compute/cloud-client/src/main/java/compute/custommachinetype/ExtraMemoryWithoutHelper.java index f56874d4374..f6c951376d5 100644 --- a/compute/cloud-client/src/main/java/compute/custommachinetype/ExtraMemoryWithoutHelper.java +++ b/compute/cloud-client/src/main/java/compute/custommachinetype/ExtraMemoryWithoutHelper.java @@ -74,7 +74,7 @@ public static void createInstanceWithExtraMemoryWithoutHelper( AttachedDiskInitializeParams.newBuilder() .setSourceImage( String.format("projects/%s/global/images/family/%s", "debian-cloud", - "debian-11")) + "debian-13")) .setDiskSizeGb(10) .build() ) diff --git a/compute/cloud-client/src/main/java/compute/deleteprotection/CreateInstanceDeleteProtection.java b/compute/cloud-client/src/main/java/compute/deleteprotection/CreateInstanceDeleteProtection.java index 71b880e2301..224c0eb8ed1 100644 --- a/compute/cloud-client/src/main/java/compute/deleteprotection/CreateInstanceDeleteProtection.java +++ b/compute/cloud-client/src/main/java/compute/deleteprotection/CreateInstanceDeleteProtection.java @@ -54,7 +54,7 @@ public static void createInstanceDeleteProtection(String projectId, String zone, String machineType = String.format("zones/%s/machineTypes/e2-small", zone); String sourceImage = String - .format("projects/debian-cloud/global/images/family/%s", "debian-11"); + .format("projects/debian-cloud/global/images/family/%s", "debian-13"); long diskSizeGb = 10L; String networkName = "default"; diff --git a/compute/cloud-client/src/main/java/compute/images/GetImageFromFamily.java b/compute/cloud-client/src/main/java/compute/images/GetImageFromFamily.java index 45855612828..a00b4160e0e 100644 --- a/compute/cloud-client/src/main/java/compute/images/GetImageFromFamily.java +++ b/compute/cloud-client/src/main/java/compute/images/GetImageFromFamily.java @@ -31,7 +31,7 @@ public static void main(String[] args) throws IOException { // Name of the image family you want to retrieve the image from. // List of public operating system (OS) images: // https://cloud.google.com/compute/docs/images/os-details - String family = "debian-11"; + String family = "debian-13"; getImageFromFamily(projectId, family); } diff --git a/compute/cloud-client/src/main/java/compute/ipaddress/AssignStaticExternalNewVmAddress.java b/compute/cloud-client/src/main/java/compute/ipaddress/AssignStaticExternalNewVmAddress.java index 2a3e66620d3..49683150d9c 100644 --- a/compute/cloud-client/src/main/java/compute/ipaddress/AssignStaticExternalNewVmAddress.java +++ b/compute/cloud-client/src/main/java/compute/ipaddress/AssignStaticExternalNewVmAddress.java @@ -70,7 +70,7 @@ public static Instance assignStaticExternalNewVmAddress(String projectId, String // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. try (ImagesClient imagesClient = ImagesClient.create()) { - sourceImage = imagesClient.getFromFamily("debian-cloud", "debian-11").getSelfLink(); + sourceImage = imagesClient.getFromFamily("debian-cloud", "debian-13").getSelfLink(); } AttachedDisk attachedDisk = buildAttachedDisk(sourceImage, zone); diff --git a/compute/cloud-client/src/main/java/compute/preemptible/CreatePreemptibleInstance.java b/compute/cloud-client/src/main/java/compute/preemptible/CreatePreemptibleInstance.java index 2965512eb4a..a3f2b95b578 100644 --- a/compute/cloud-client/src/main/java/compute/preemptible/CreatePreemptibleInstance.java +++ b/compute/cloud-client/src/main/java/compute/preemptible/CreatePreemptibleInstance.java @@ -52,7 +52,7 @@ public static void createPremptibleInstance(String projectId, String zone, Strin throws IOException, ExecutionException, InterruptedException, TimeoutException { String machineType = String.format("zones/%s/machineTypes/e2-small", zone); - String sourceImage = "projects/debian-cloud/global/images/family/debian-11"; + String sourceImage = "projects/debian-cloud/global/images/family/debian-13"; long diskSizeGb = 10L; String networkName = "default"; diff --git a/compute/cloud-client/src/main/java/compute/reservation/ConsumeAnyMatchingReservation.java b/compute/cloud-client/src/main/java/compute/reservation/ConsumeAnyMatchingReservation.java index b8d1ac7f8f9..2a759e2545e 100644 --- a/compute/cloud-client/src/main/java/compute/reservation/ConsumeAnyMatchingReservation.java +++ b/compute/cloud-client/src/main/java/compute/reservation/ConsumeAnyMatchingReservation.java @@ -49,7 +49,7 @@ public static void main(String[] args) String machineTypeName = "n1-standard-4"; // sourceImage: path to the operating system image to mount. // * For details about images you can mount, see https://cloud.google.com/compute/docs/images - String sourceImage = "projects/debian-cloud/global/images/family/debian-11"; + String sourceImage = "projects/debian-cloud/global/images/family/debian-13"; // diskSizeGb: storage size of the boot disk to attach to the instance. long diskSizeGb = 10L; // networkName: network interface to associate with the instance. diff --git a/compute/cloud-client/src/main/java/compute/reservation/ConsumeSingleProjectReservation.java b/compute/cloud-client/src/main/java/compute/reservation/ConsumeSingleProjectReservation.java index 8f1118b4d1b..3d13f0dc741 100644 --- a/compute/cloud-client/src/main/java/compute/reservation/ConsumeSingleProjectReservation.java +++ b/compute/cloud-client/src/main/java/compute/reservation/ConsumeSingleProjectReservation.java @@ -50,7 +50,7 @@ public static void main(String[] args) String machineTypeName = "n1-standard-4"; // sourceImage: path to the operating system image to mount. // * For details about images you can mount, see https://cloud.google.com/compute/docs/images - String sourceImage = "projects/debian-cloud/global/images/family/debian-11"; + String sourceImage = "projects/debian-cloud/global/images/family/debian-13"; // diskSizeGb: storage size of the boot disk to attach to the instance. long diskSizeGb = 10L; // networkName: network interface to associate with the instance. diff --git a/compute/cloud-client/src/main/java/compute/reservation/ConsumeSpecificSharedReservation.java b/compute/cloud-client/src/main/java/compute/reservation/ConsumeSpecificSharedReservation.java index acf084798bf..888d281fc77 100644 --- a/compute/cloud-client/src/main/java/compute/reservation/ConsumeSpecificSharedReservation.java +++ b/compute/cloud-client/src/main/java/compute/reservation/ConsumeSpecificSharedReservation.java @@ -50,7 +50,7 @@ public static void main(String[] args) String machineTypeName = "n1-standard-4"; // sourceImage: path to the operating system image to mount. // * For details about images you can mount, see https://cloud.google.com/compute/docs/images - String sourceImage = "projects/debian-cloud/global/images/family/debian-11"; + String sourceImage = "projects/debian-cloud/global/images/family/debian-13"; // diskSizeGb: storage size of the boot disk to attach to the instance. long diskSizeGb = 10L; // networkName: network interface to associate with the instance. diff --git a/compute/cloud-client/src/main/java/compute/reservation/CreateInstanceWithoutConsumingReservation.java b/compute/cloud-client/src/main/java/compute/reservation/CreateInstanceWithoutConsumingReservation.java index df278717286..3aa1cfa615d 100644 --- a/compute/cloud-client/src/main/java/compute/reservation/CreateInstanceWithoutConsumingReservation.java +++ b/compute/cloud-client/src/main/java/compute/reservation/CreateInstanceWithoutConsumingReservation.java @@ -49,7 +49,7 @@ public static void main(String[] args) String machineTypeName = "n1-standard-1"; // sourceImage: path to the operating system image to mount. // * For details about images you can mount, see https://cloud.google.com/compute/docs/images - String sourceImage = "projects/debian-cloud/global/images/family/debian-11"; + String sourceImage = "projects/debian-cloud/global/images/family/debian-13"; // diskSizeGb: storage size of the boot disk to attach to the instance. long diskSizeGb = 10L; // networkName: network interface to associate with the instance. diff --git a/compute/cloud-client/src/main/java/compute/reservation/CreateTemplateWithoutConsumingReservation.java b/compute/cloud-client/src/main/java/compute/reservation/CreateTemplateWithoutConsumingReservation.java index 2857b3288bd..d6a4aadcd4d 100644 --- a/compute/cloud-client/src/main/java/compute/reservation/CreateTemplateWithoutConsumingReservation.java +++ b/compute/cloud-client/src/main/java/compute/reservation/CreateTemplateWithoutConsumingReservation.java @@ -43,7 +43,7 @@ public static void main(String[] args) // Name of the template you want to query. String templateName = "YOUR_INSTANCE_TEMPLATE_NAME"; String machineType = "e2-standard-4"; - String sourceImage = "projects/debian-cloud/global/images/family/debian-11"; + String sourceImage = "projects/debian-cloud/global/images/family/debian-13"; createTemplateWithoutConsumingReservationAsync( projectId, templateName, machineType, sourceImage); diff --git a/compute/cloud-client/src/main/java/compute/spots/CreateSpotVm.java b/compute/cloud-client/src/main/java/compute/spots/CreateSpotVm.java index ac0ba277602..5bfdf22c53e 100644 --- a/compute/cloud-client/src/main/java/compute/spots/CreateSpotVm.java +++ b/compute/cloud-client/src/main/java/compute/spots/CreateSpotVm.java @@ -50,14 +50,14 @@ public static void main(String[] args) createSpotInstance(projectId, instanceName, zone); } - // Create a new Spot VM instance with Debian 11 operating system. + // Create a new Spot VM instance with Debian 13 operating system. public static Instance createSpotInstance(String projectId, String instanceName, String zone) throws IOException, ExecutionException, InterruptedException, TimeoutException { String image; // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. try (ImagesClient imagesClient = ImagesClient.create()) { - image = imagesClient.getFromFamily("debian-cloud", "debian-11").getSelfLink(); + image = imagesClient.getFromFamily("debian-cloud", "debian-13").getSelfLink(); } AttachedDisk attachedDisk = buildAttachedDisk(image, zone); String machineTypes = String.format("zones/%s/machineTypes/%s", zone, "n1-standard-1"); diff --git a/compute/cloud-client/src/test/java/compute/InstancesAdvancedIT.java b/compute/cloud-client/src/test/java/compute/InstancesAdvancedIT.java index 105e39f2a1c..5975f9f5994 100644 --- a/compute/cloud-client/src/test/java/compute/InstancesAdvancedIT.java +++ b/compute/cloud-client/src/test/java/compute/InstancesAdvancedIT.java @@ -127,7 +127,7 @@ public static void cleanup() private static Image getActiveDebian() throws IOException { try (ImagesClient imagesClient = ImagesClient.create()) { - return imagesClient.getFromFamily("debian-cloud", "debian-11"); + return imagesClient.getFromFamily("debian-cloud", "debian-13"); } } diff --git a/compute/cloud-client/src/test/java/compute/disks/DisksFromSourceIT.java b/compute/cloud-client/src/test/java/compute/disks/DisksFromSourceIT.java index 4c06076d756..1556e6f9aa7 100644 --- a/compute/cloud-client/src/test/java/compute/disks/DisksFromSourceIT.java +++ b/compute/cloud-client/src/test/java/compute/disks/DisksFromSourceIT.java @@ -109,7 +109,7 @@ public static void setup() // Create disk from image. DEBIAN_IMAGE = null; try (ImagesClient imagesClient = ImagesClient.create()) { - DEBIAN_IMAGE = imagesClient.getFromFamily("debian-cloud", "debian-11"); + DEBIAN_IMAGE = imagesClient.getFromFamily("debian-cloud", "debian-13"); } // Create KMS Encrypted disk. diff --git a/compute/cloud-client/src/test/java/compute/disks/DisksIT.java b/compute/cloud-client/src/test/java/compute/disks/DisksIT.java index f5458eedbfd..5d76d656ae3 100644 --- a/compute/cloud-client/src/test/java/compute/disks/DisksIT.java +++ b/compute/cloud-client/src/test/java/compute/disks/DisksIT.java @@ -133,7 +133,7 @@ public static void setup() // Create disk from image. Image debianImage = null; try (ImagesClient imagesClient = ImagesClient.create()) { - debianImage = imagesClient.getFromFamily("debian-cloud", "debian-11"); + debianImage = imagesClient.getFromFamily("debian-cloud", "debian-13"); } CreateDiskFromImage.createDiskFromImage(PROJECT_ID, ZONE, DISK_NAME, DISK_TYPE, DISK_SIZE, debianImage.getSelfLink()); diff --git a/compute/cloud-client/src/test/java/compute/disks/SnapshotsIT.java b/compute/cloud-client/src/test/java/compute/disks/SnapshotsIT.java index c4680dcb8b4..59a083fc463 100644 --- a/compute/cloud-client/src/test/java/compute/disks/SnapshotsIT.java +++ b/compute/cloud-client/src/test/java/compute/disks/SnapshotsIT.java @@ -88,7 +88,7 @@ public static void setup() Image debianImage = null; try (ImagesClient imagesClient = ImagesClient.create()) { - debianImage = imagesClient.getFromFamily("debian-cloud", "debian-11"); + debianImage = imagesClient.getFromFamily("debian-cloud", "debian-13"); } // Create zonal snapshot. diff --git a/compute/cloud-client/src/test/java/compute/images/ImagesIT.java b/compute/cloud-client/src/test/java/compute/images/ImagesIT.java index 4e57ff81f84..faee0ae767c 100644 --- a/compute/cloud-client/src/test/java/compute/images/ImagesIT.java +++ b/compute/cloud-client/src/test/java/compute/images/ImagesIT.java @@ -72,7 +72,7 @@ public static void setUp() DISK_NAME = "test-disk-" + UUID.randomUUID().toString().substring(0, 8); SNAPSHOT_NAME = "test-snapshot-" + UUID.randomUUID().toString().substring(0, 8); - Image imageFromFamily = GetImageFromFamily.getImageFromFamily("debian-cloud", "debian-11"); + Image imageFromFamily = GetImageFromFamily.getImageFromFamily("debian-cloud", "debian-13"); CreateDiskFromImage.createDiskFromImage(PROJECT_ID, ZONE, DISK_NAME, String.format("zones/%s/diskTypes/pd-standard", ZONE), 20, imageFromFamily.getSelfLink()); diff --git a/compute/cloud-client/src/test/java/compute/reservation/ConsumeReservationsIT.java b/compute/cloud-client/src/test/java/compute/reservation/ConsumeReservationsIT.java index 96c8b22a4e0..784ceeaab39 100644 --- a/compute/cloud-client/src/test/java/compute/reservation/ConsumeReservationsIT.java +++ b/compute/cloud-client/src/test/java/compute/reservation/ConsumeReservationsIT.java @@ -54,7 +54,7 @@ public class ConsumeReservationsIT { private static final String INSTANCE_FOR_ANY_MATCHING = "test-instance-" + templateUUID; private static final String SPECIFIC_SHARED_INSTANCE = "test-instance-shared-" + templateUUID; private static final String MACHINE_TYPE = "n1-standard-4"; - private static final String SOURCE_IMAGE = "projects/debian-cloud/global/images/family/debian-11"; + private static final String SOURCE_IMAGE = "projects/debian-cloud/global/images/family/debian-13"; private static final String NETWORK_NAME = "default"; private static final long DISK_SIZE_GB = 10L; private static final String MIN_CPU_PLATFORM = "Intel Skylake"; diff --git a/compute/cloud-client/src/test/java/compute/reservation/WithoutConsumingReservationIT.java b/compute/cloud-client/src/test/java/compute/reservation/WithoutConsumingReservationIT.java index 763b1e2df5f..fd0c1b01f44 100644 --- a/compute/cloud-client/src/test/java/compute/reservation/WithoutConsumingReservationIT.java +++ b/compute/cloud-client/src/test/java/compute/reservation/WithoutConsumingReservationIT.java @@ -47,7 +47,7 @@ public class WithoutConsumingReservationIT { private static final String TEMPLATE_NOT_CONSUME_RESERVATION_NAME = "test-template-not-consume-" + templateUUID; private static final String MACHINE_TYPE_NAME = "n1-standard-1"; - private static final String SOURCE_IMAGE = "projects/debian-cloud/global/images/family/debian-11"; + private static final String SOURCE_IMAGE = "projects/debian-cloud/global/images/family/debian-13"; private static final String NETWORK_NAME = "default"; private static final long DISK_SIZE_GD = 10L; diff --git a/compute/cloud-client/src/test/java/compute/windows/osimage/WindowsOsImageIT.java b/compute/cloud-client/src/test/java/compute/windows/osimage/WindowsOsImageIT.java index 9ee73cd70d3..77e3391f7d3 100644 --- a/compute/cloud-client/src/test/java/compute/windows/osimage/WindowsOsImageIT.java +++ b/compute/cloud-client/src/test/java/compute/windows/osimage/WindowsOsImageIT.java @@ -70,7 +70,7 @@ private static String getBootDiskName(String instanceName) { private static boolean createInstance(String instanceName) throws IOException, InterruptedException, ExecutionException, TimeoutException { final String MACHINE_TYPE = String.format("zones/%s/machineTypes/n1-standard-1", ZONE); - final String MACHINE_FAMILY = "projects/debian-cloud/global/images/family/debian-11"; + final String MACHINE_FAMILY = "projects/debian-cloud/global/images/family/debian-13"; final long DISK_SIZE = 10L; try (InstancesClient instancesClient = InstancesClient.create()) { AttachedDisk attachedDisk = AttachedDisk.newBuilder() diff --git a/functions/v2/label-compute-instance/src/test/java/functions/AutoLabelInstanceTest.java b/functions/v2/label-compute-instance/src/test/java/functions/AutoLabelInstanceTest.java index f6cc91d860a..fff05ab026b 100644 --- a/functions/v2/label-compute-instance/src/test/java/functions/AutoLabelInstanceTest.java +++ b/functions/v2/label-compute-instance/src/test/java/functions/AutoLabelInstanceTest.java @@ -114,7 +114,7 @@ public void functionsAutoLabelInstance() throws Exception { public static void createInstance(String project, String zone, String instanceName) throws IOException, InterruptedException, ExecutionException, TimeoutException { String machineType = String.format("zones/%s/machineTypes/n1-standard-1", zone); - String sourceImage = "projects/debian-cloud/global/images/family/debian-11"; + String sourceImage = "projects/debian-cloud/global/images/family/debian-13"; long diskSizeGb = 10L; String networkName = "default";