diff --git a/compute/createInstance.js b/compute/createInstance.js index a2c4841eb36..62ac57d3954 100644 --- a/compute/createInstance.js +++ b/compute/createInstance.js @@ -25,7 +25,7 @@ * https://cloud.google.com/sdk/gcloud/reference/compute/machine-types/list * @param {string} sourceImage - Path the the disk image you want to use for your boot * disk. This can be one of the public images - * (e.g. "projects/debian-cloud/global/images/family/debian-10") + * (e.g. "projects/debian-cloud/global/images/family/debian-11") * or a private image you have access to. * You can check the list of available public images using: * $ gcloud compute images list @@ -37,7 +37,7 @@ function main( zone, instanceName, machineType = 'n1-standard-1', - sourceImage = 'projects/debian-cloud/global/images/family/debian-10', + sourceImage = 'projects/debian-cloud/global/images/family/debian-11', networkName = 'global/networks/default' ) { // [START compute_instances_create] @@ -48,7 +48,7 @@ function main( // const zone = 'europe-central2-b' // const instanceName = 'YOUR_INSTANCE_NAME' // const machineType = 'n1-standard-1'; - // const sourceImage = 'projects/debian-cloud/global/images/family/debian-10'; + // const sourceImage = 'projects/debian-cloud/global/images/family/debian-11'; // const networkName = 'global/networks/default'; const compute = require('@google-cloud/compute'); diff --git a/compute/createInstanceFromTemplateWithOverrides.js b/compute/createInstanceFromTemplateWithOverrides.js index f4003c77178..04edb38a950 100644 --- a/compute/createInstanceFromTemplateWithOverrides.js +++ b/compute/createInstanceFromTemplateWithOverrides.js @@ -26,7 +26,7 @@ * https://cloud.google.com/sdk/gcloud/reference/compute/machine-types/list * @param {string} newDiskSourceImage - Path the the disk image you want to use for your new * disk. This can be one of the public images - * (like "projects/debian-cloud/global/images/family/debian-10") + * (like "projects/debian-cloud/global/images/family/debian-11") * or a private image you have access to. * For a list of available public images, see the documentation: * http://cloud.google.com/compute/docs/images @@ -37,7 +37,7 @@ function main( instanceName, instanceTemplateName, machineType = 'n1-standard-2', - newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-10' + newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-11' ) { // [START compute_instances_create_from_template_with_overrides] /** @@ -48,7 +48,7 @@ function main( // const instanceName = 'YOUR_INSTANCE_NAME'; // const instanceTemplateName = 'YOUR_INSTANCE_TEMPLATE_NAME'; // const machineType = 'n1-standard-1'; - // const newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-10'; + // const newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-11'; const compute = require('@google-cloud/compute'); diff --git a/compute/custom-hostname-instance/createInstanceWithCustomHostname.js b/compute/custom-hostname-instance/createInstanceWithCustomHostname.js index 35342660ba8..511189d0883 100644 --- a/compute/custom-hostname-instance/createInstanceWithCustomHostname.js +++ b/compute/custom-hostname-instance/createInstanceWithCustomHostname.js @@ -40,7 +40,7 @@ function main( instanceName, hostname, machineType = 'n1-standard-1', - sourceImage = 'projects/debian-cloud/global/images/family/debian-10', + sourceImage = 'projects/debian-cloud/global/images/family/debian-11', networkName = 'global/networks/default' ) { // [START compute_instances_create_custom_hostname] @@ -52,7 +52,7 @@ function main( // const instanceName = 'YOUR_INSTANCE_NAME' // const hostname = 'host.example.com' // const machineType = 'n1-standard-1'; - // const sourceImage = 'projects/debian-cloud/global/images/family/debian-10'; + // const sourceImage = 'projects/debian-cloud/global/images/family/debian-11'; // const networkName = 'global/networks/default'; const compute = require('@google-cloud/compute'); diff --git a/compute/disks/createComputeHyperdiskFromPool.js b/compute/disks/createComputeHyperdiskFromPool.js index 342d854bad2..47fdbbb964d 100644 --- a/compute/disks/createComputeHyperdiskFromPool.js +++ b/compute/disks/createComputeHyperdiskFromPool.js @@ -37,7 +37,7 @@ async function main() { // The name of the new disk const diskName = 'disk-name'; // The name of the storage pool - const storagePoolName = 'storage-pool-name'; + const storagePoolName = 'storage-pool-hyperdisk'; // Link to the storagePool you want to use. Use format: // https://www.googleapis.com/compute/v1/projects/{projectId}/zones/{zone}/storagePools/{storagePoolName} const storagePool = `https://www.googleapis.com/compute/v1/projects/${projectId}/zones/${zone}/storagePools/${storagePoolName}`; diff --git a/compute/instances/create-start-instance/createInstanceWithAdditionalDisk.js b/compute/instances/create-start-instance/createInstanceWithAdditionalDisk.js index abbc5404215..25f8119801a 100644 --- a/compute/instances/create-start-instance/createInstanceWithAdditionalDisk.js +++ b/compute/instances/create-start-instance/createInstanceWithAdditionalDisk.js @@ -38,7 +38,7 @@ function main(projectId, zone, instanceName) { // List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details. const [newestDebian] = await imagesClient.getFromFamily({ project: 'debian-cloud', - family: 'debian-10', + family: 'debian-11', }); const [response] = await instancesClient.insert({ diff --git a/compute/instances/create-start-instance/createInstanceWithSubnet.js b/compute/instances/create-start-instance/createInstanceWithSubnet.js index 2c16e868139..fa2164c14b4 100644 --- a/compute/instances/create-start-instance/createInstanceWithSubnet.js +++ b/compute/instances/create-start-instance/createInstanceWithSubnet.js @@ -52,7 +52,7 @@ function main( // List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details. const [newestDebian] = await imagesClient.getFromFamily({ project: 'debian-cloud', - family: 'debian-10', + family: 'debian-11', }); const [response] = await instancesClient.insert({ diff --git a/compute/instances/preventing-accidental-vm-deletion/createInstance.js b/compute/instances/preventing-accidental-vm-deletion/createInstance.js index 3d293f0c394..1cc0dea9eba 100644 --- a/compute/instances/preventing-accidental-vm-deletion/createInstance.js +++ b/compute/instances/preventing-accidental-vm-deletion/createInstance.js @@ -51,7 +51,7 @@ function main(projectId, zone, instanceName, deleteProtection) { initializeParams: { diskSizeGb: '10', sourceImage: - 'projects/debian-cloud/global/images/family/debian-10', + 'projects/debian-cloud/global/images/family/debian-11', }, autoDelete: true, boot: true, diff --git a/compute/test/createComputeHyperdiskFromPool.test.js b/compute/test/createComputeHyperdiskFromPool.test.js index afdb942131a..46a36f7652c 100644 --- a/compute/test/createComputeHyperdiskFromPool.test.js +++ b/compute/test/createComputeHyperdiskFromPool.test.js @@ -30,7 +30,7 @@ const cwd = path.join(__dirname, '..'); describe('Create compute hyperdisk from pool', async () => { const diskName = 'disk-name'; const zone = 'europe-central2-b'; - const storagePoolName = 'storage-pool-name'; + const storagePoolName = 'storage-pool-hyperdisk'; const disksClient = new DisksClient(); const storagePoolsClient = new StoragePoolsClient(); let projectId; diff --git a/compute/test/createInstanceTemplates.test.js b/compute/test/createInstanceTemplates.test.js index 93c05c03525..ea5040b1a41 100644 --- a/compute/test/createInstanceTemplates.test.js +++ b/compute/test/createInstanceTemplates.test.js @@ -34,7 +34,7 @@ const createInstance = async (projectId, zone, instanceName) => { { initializeParams: { diskSizeGb: '250', - sourceImage: 'projects/debian-cloud/global/images/family/debian-10', + sourceImage: 'projects/debian-cloud/global/images/family/debian-11', }, autoDelete: true, boot: true, diff --git a/compute/test/createStartInstance.test.js b/compute/test/createStartInstance.test.js index 2abcaf620ca..0922511cd0a 100644 --- a/compute/test/createStartInstance.test.js +++ b/compute/test/createStartInstance.test.js @@ -132,7 +132,7 @@ describe('create start instance tests', () => { const [newestDebian] = await imagesClient.getFromFamily({ project: 'debian-cloud', - family: 'debian-10', + family: 'debian-11', }); await createDisk(projectId, zone, diskName, newestDebian.selfLink); @@ -163,7 +163,7 @@ describe('create start instance tests', () => { const [newestDebian] = await imagesClient.getFromFamily({ project: 'debian-cloud', - family: 'debian-10', + family: 'debian-11', }); let output; diff --git a/compute/test/samples.test.js b/compute/test/samples.test.js index f45caa65118..e86358db006 100644 --- a/compute/test/samples.test.js +++ b/compute/test/samples.test.js @@ -269,7 +269,7 @@ describe('samples', () => { initializeParams: { diskSizeGb: '10', sourceImage: - 'projects/debian-cloud/global/images/family/debian-10', + 'projects/debian-cloud/global/images/family/debian-11', }, autoDelete: true, boot: true, @@ -447,7 +447,7 @@ describe('samples', () => { initializeParams: { diskSizeGb: '10', sourceImage: - 'projects/debian-cloud/global/images/family/debian-10', + 'projects/debian-cloud/global/images/family/debian-11', }, autoDelete: true, boot: true, diff --git a/functions/v2/autoLabelInstance/test/system.test.js b/functions/v2/autoLabelInstance/test/system.test.js index cd2be3acb63..2f5c2c670cb 100644 --- a/functions/v2/autoLabelInstance/test/system.test.js +++ b/functions/v2/autoLabelInstance/test/system.test.js @@ -47,7 +47,7 @@ describe('functions_label_gce_instance', () => { initializeParams: { diskSizeGb: '10', sourceImage: - 'projects/debian-cloud/global/images/family/debian-10', + 'projects/debian-cloud/global/images/family/debian-11', }, boot: true, autoDelete: true,