Skip to content

Commit 3efab67

Browse files
Fixed storagePoolType
1 parent df550e2 commit 3efab67

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compute/cloud-client/src/main/java/compute/disks/storagepool/CreateHyperdiskStoragePool.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ public static void main(String[] args)
3434
String zone = "us-central1-a";
3535
// Name of the storagePool you want to create.
3636
String storagePoolName = "YOUR_STORAGE_POOL_NAME";
37-
// The type of disk you want to create. This value uses the following format:
38-
// "projects/%s/zones/%s/storagePoolTypes/hyperdisk-throughput|hyperdisk-balanced"
39-
String storagePoolType = "hyperdisk-balanced";
37+
// The type of disk you want to create.
38+
// Storage types can be "hyperdisk-throughput" or "hyperdisk-balanced"
39+
String storagePoolType = String.format( "projects/%s/zones/%s/storagePoolTypes/hyperdisk-balanced",
40+
projectId, zone);
4041
// Optional: the capacity provisioning type of the storage pool.
4142
// The allowed values are advanced and standard. If not specified, the value advanced is used.
4243
String capacityProvisioningType = "advanced";

0 commit comments

Comments
 (0)