Skip to content

Commit

Permalink
improvemnt: extend compute_hyperdisk_pool_create
Browse files Browse the repository at this point in the history
  • Loading branch information
gryczj committed Sep 26, 2024
1 parent 19b034d commit ddbbfe0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions compute/disks/createComputeHyperdiskPool.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ async function main() {
const provisionedIops = 10000;
// The throughput in MBps to provision for the storage pool.
const provisionedThroughput = 1024;
// Optional: The performance provisioning type of the storage pool.
// The allowed values are advanced and standard. If not specified, the value advanced is used.
const performanceProvisioningType = 'advanced';

async function callCreateComputeHyperdiskPool() {
// Create a storagePool.
Expand All @@ -58,6 +61,7 @@ async function main() {
poolProvisionedIops: provisionedIops,
poolProvisionedThroughput: provisionedThroughput,
storagePoolType,
performanceProvisioningType,
capacityProvisioningType,
zone,
});
Expand Down
4 changes: 0 additions & 4 deletions compute/test/createComputeHyperdiskFromPool.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,5 @@ describe('Create compute hyperdisk from pool', async () => {
);

assert.equal(response.name, diskName);
assert.equal(
response.storagePool,
`https://www.googleapis.com/compute/v1/projects/${projectId}/zones/${zone}/storagePools/${storagePoolName}`
);
});
});

0 comments on commit ddbbfe0

Please sign in to comment.