Skip to content

Commit ddbbfe0

Browse files
Joanna Gryczgryczj
authored andcommitted
improvemnt: extend compute_hyperdisk_pool_create
1 parent 19b034d commit ddbbfe0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compute/disks/createComputeHyperdiskPool.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ async function main() {
4949
const provisionedIops = 10000;
5050
// The throughput in MBps to provision for the storage pool.
5151
const provisionedThroughput = 1024;
52+
// Optional: The performance provisioning type of the storage pool.
53+
// The allowed values are advanced and standard. If not specified, the value advanced is used.
54+
const performanceProvisioningType = 'advanced';
5255

5356
async function callCreateComputeHyperdiskPool() {
5457
// Create a storagePool.
@@ -58,6 +61,7 @@ async function main() {
5861
poolProvisionedIops: provisionedIops,
5962
poolProvisionedThroughput: provisionedThroughput,
6063
storagePoolType,
64+
performanceProvisioningType,
6165
capacityProvisioningType,
6266
zone,
6367
});

compute/test/createComputeHyperdiskFromPool.test.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,5 @@ describe('Create compute hyperdisk from pool', async () => {
106106
);
107107

108108
assert.equal(response.name, diskName);
109-
assert.equal(
110-
response.storagePool,
111-
`https://www.googleapis.com/compute/v1/projects/${projectId}/zones/${zone}/storagePools/${storagePoolName}`
112-
);
113109
});
114110
});

0 commit comments

Comments
 (0)