Skip to content

Commit 241b160

Browse files
committed
docs(compute-samples): added disk type
1 parent 555d04e commit 241b160

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compute/cloud-client/src/main/java/compute/CreateInstanceTemplate.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public static void createInstanceTemplate(String projectId, String templateName)
5959
AttachedDisk attachedDisk = AttachedDisk.newBuilder()
6060
.setInitializeParams(AttachedDiskInitializeParams.newBuilder()
6161
.setSourceImage(sourceImage)
62+
.setDiskType("pd-standard")
6263
.setDiskSizeGb(250).build())
6364
.setAutoDelete(true)
6465
.setBoot(true).build();
@@ -96,7 +97,7 @@ public static void createInstanceTemplate(String projectId, String templateName)
9697
return;
9798
}
9899
System.out
99-
.printf("Instance Template Operation Status %s: %s", templateName, response.getStatus());
100+
.printf("Instance Template Operation Status %s: %s \n", templateName, response.getStatus());
100101
}
101102
}
102103
}

0 commit comments

Comments
 (0)