Skip to content

Commit c2c5ee9

Browse files
Add names for new Hyperdisk types (#10235)
* Add names for new Hyperdisk types The list of disk type names in this sample is missing the 2 new disk types: Hyperdisk ML and Hyperdisk Balanced High Availability * fix: line length lint issue --------- Co-authored-by: Jennifer Davis <sigje@google.com>
1 parent 532d893 commit c2c5ee9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compute/cloud-client/src/main/java/compute/disks/CreateHyperdisk.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ public static void main(String[] args)
3636
// Name of the disk you want to create.
3737
String diskName = "YOUR_DISK_NAME";
3838
// The type of disk you want to create. This value uses the following format:
39-
// "zones/{zone}/diskTypes/(hyperdisk-balanced|hyperdisk-extreme|hyperdisk-throughput)".
39+
// "zones/{zone}/diskTypes/{disktype}".
40+
// disktype is one of hyperdisk-balanced, hyperdisk-extreme, hyperdisk-throughput
41+
// hyperdisk-ml, hyperdisk-balanced-high-availability
4042
// For example: "zones/us-west3-b/diskTypes/hyperdisk-balanced"
4143
String diskType = String.format("zones/%s/diskTypes/hyperdisk-balanced", zone);
4244
// Size of the new disk in gigabytes.
@@ -96,4 +98,4 @@ public static Disk createHyperdisk(String projectId, String zone, String diskNam
9698
}
9799
}
98100
}
99-
// [END compute_hyperdisk_create]
101+
// [END compute_hyperdisk_create]

0 commit comments

Comments
 (0)