Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion batch/test/advanced_creation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ async function createTemplate(projectId, templateName) {
initializeParams: {
diskSizeGb: '25',
sourceImage:
'projects/debian-cloud/global/images/family/debian-11',
'projects/debian-cloud/global/images/family/debian-13',
},
autoDelete: true,
boot: true,
Expand Down
2 changes: 1 addition & 1 deletion compute/create-instance-templates/createTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function main(projectId, templateName) {
initializeParams: {
diskSizeGb: '250',
sourceImage:
'projects/debian-cloud/global/images/family/debian-11',
'projects/debian-cloud/global/images/family/debian-13',
},
autoDelete: true,
boot: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function main(projectId, network, subnetwork, templateName) {
initializeParams: {
diskSizeGb: '250',
sourceImage:
'projects/debian-cloud/global/images/family/debian-11',
'projects/debian-cloud/global/images/family/debian-13',
},
autoDelete: true,
boot: true,
Expand Down
6 changes: 3 additions & 3 deletions compute/createInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -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-11")
* (e.g. "projects/debian-cloud/global/images/family/debian-13")
* or a private image you have access to.
* You can check the list of available public images using:
* $ gcloud compute images list
Expand All @@ -37,7 +37,7 @@ function main(
zone,
instanceName,
machineType = 'n1-standard-1',
sourceImage = 'projects/debian-cloud/global/images/family/debian-11',
sourceImage = 'projects/debian-cloud/global/images/family/debian-13',
networkName = 'global/networks/default'
) {
// [START compute_instances_create]
Expand All @@ -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-11';
// const sourceImage = 'projects/debian-cloud/global/images/family/debian-13';
// const networkName = 'global/networks/default';

const compute = require('@google-cloud/compute');
Expand Down
6 changes: 3 additions & 3 deletions compute/createInstanceFromTemplateWithOverrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -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-11")
* (like "projects/debian-cloud/global/images/family/debian-13")
* 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
Expand All @@ -37,7 +37,7 @@ function main(
instanceName,
instanceTemplateName,
machineType = 'n1-standard-2',
newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-11'
newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-13'
) {
// [START compute_instances_create_from_template_with_overrides]
/**
Expand All @@ -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-11';
// const newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-13';

const compute = require('@google-cloud/compute');

Expand Down
2 changes: 1 addition & 1 deletion compute/createInstanceWithLocalSSD.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function main(projectId, zone, instanceName) {
const imagesClient = new compute.ImagesClient();
const [newestDebian] = await imagesClient.getFromFamily({
project: 'debian-cloud',
family: 'debian-11',
family: 'debian-13',
});

// Create the disks to be included in the instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function main(
instanceName,
hostname,
machineType = 'n1-standard-1',
sourceImage = 'projects/debian-cloud/global/images/family/debian-11',
sourceImage = 'projects/debian-cloud/global/images/family/debian-13',
networkName = 'global/networks/default'
) {
// [START compute_instances_create_custom_hostname]
Expand All @@ -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-11';
// const sourceImage = 'projects/debian-cloud/global/images/family/debian-13';
// const networkName = 'global/networks/default';

const compute = require('@google-cloud/compute');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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-11',
family: 'debian-13',
});

const [response] = await instancesClient.insert({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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-11',
family: 'debian-13',
});

const [response] = await instancesClient.insert({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function main(projectId, zone, instanceName, cpuSeries, coreCount, memory) {
initializeParams: {
diskSizeGb: '64',
sourceImage:
'projects/debian-cloud/global/images/family/debian-11/',
'projects/debian-cloud/global/images/family/debian-13/',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The source image family URI should not end with a trailing slash. Standard Google Cloud resource paths do not include a trailing slash, and keeping it might lead to API resolution issues or inconsistency with other samples.

Suggested change
'projects/debian-cloud/global/images/family/debian-13/',
'projects/debian-cloud/global/images/family/debian-13',

},
autoDelete: true,
boot: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function main(projectId, zone, instanceName, cpuSeries, coreCount, memory) {
initializeParams: {
diskSizeGb: '64',
sourceImage:
'projects/debian-cloud/global/images/family/debian-11/',
'projects/debian-cloud/global/images/family/debian-13/',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The source image family URI should not end with a trailing slash. Standard Google Cloud resource paths do not include a trailing slash, and keeping it might lead to API resolution issues or inconsistency with other samples.

Suggested change
'projects/debian-cloud/global/images/family/debian-13/',
'projects/debian-cloud/global/images/family/debian-13',

},
autoDelete: true,
boot: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function main(projectId, zone, instanceName, cpuSeries, coreCount, memory) {
initializeParams: {
diskSizeGb: '64',
sourceImage:
'projects/debian-cloud/global/images/family/debian-11/',
'projects/debian-cloud/global/images/family/debian-13/',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The source image family URI should not end with a trailing slash. Standard Google Cloud resource paths do not include a trailing slash, and keeping it might lead to API resolution issues or inconsistency with other samples.

Suggested change
'projects/debian-cloud/global/images/family/debian-13/',
'projects/debian-cloud/global/images/family/debian-13',

},
autoDelete: true,
boot: true,
Expand Down
4 changes: 2 additions & 2 deletions compute/instances/preemptible/createPreemptible.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

/**
* Creates a new preemptible VM instance with Debian 11 operating system.
* Creates a new preemptible VM instance with Debian 13 operating system.
*
* @param {string} projectId - ID or number of the project you want to use.
* @param {string} zone - Name of the zone you want to use, for example: us-west3-b
Expand Down Expand Up @@ -41,7 +41,7 @@ function main(projectId, zone, instanceName) {
initializeParams: {
diskSizeGb: '64',
sourceImage:
'projects/debian-cloud/global/images/family/debian-11/',
'projects/debian-cloud/global/images/family/debian-13/',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The source image family URI should not end with a trailing slash. Standard Google Cloud resource paths do not include a trailing slash, and keeping it might lead to API resolution issues or inconsistency with other samples.

Suggested change
'projects/debian-cloud/global/images/family/debian-13/',
'projects/debian-cloud/global/images/family/debian-13',

},
autoDelete: true,
boot: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function main(projectId, zone, instanceName, deleteProtection) {
initializeParams: {
diskSizeGb: '10',
sourceImage:
'projects/debian-cloud/global/images/family/debian-11',
'projects/debian-cloud/global/images/family/debian-13',
},
autoDelete: true,
boot: true,
Expand Down
2 changes: 1 addition & 1 deletion compute/test/createInstanceTemplates.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const createInstance = async (projectId, zone, instanceName) => {
{
initializeParams: {
diskSizeGb: '250',
sourceImage: 'projects/debian-cloud/global/images/family/debian-11',
sourceImage: 'projects/debian-cloud/global/images/family/debian-13',
},
autoDelete: true,
boot: true,
Expand Down
6 changes: 3 additions & 3 deletions compute/test/createStartInstance.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ describe('create start instance tests', () => {

const [newestDebian] = await imagesClient.getFromFamily({
project: 'debian-cloud',
family: 'debian-11',
family: 'debian-13',
});

await createDisk(projectId, zone, diskName, newestDebian.selfLink);
Expand Down Expand Up @@ -163,7 +163,7 @@ describe('create start instance tests', () => {

const [newestDebian] = await imagesClient.getFromFamily({
project: 'debian-cloud',
family: 'debian-11',
family: 'debian-13',
});

let output;
Expand Down Expand Up @@ -224,7 +224,7 @@ describe('create start instance tests', () => {

const [newestDebian] = await imagesClient.getFromFamily({
project: 'debian-cloud',
family: 'debian-11',
family: 'debian-13',
});

const bootDiskName = `gcloud-test-disk-${uuid.v4().split('-')[0]}`;
Expand Down
4 changes: 2 additions & 2 deletions compute/test/disks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe('disks tests', () => {

const [newestDebian] = await imagesClient.getFromFamily({
project: 'debian-cloud',
family: 'debian-11',
family: 'debian-13',
});

await createDisk(projectId, zone, diskName, newestDebian.selfLink);
Expand All @@ -165,7 +165,7 @@ describe('disks tests', () => {

const [newestDebian] = await imagesClient.getFromFamily({
project: 'debian-cloud',
family: 'debian-11',
family: 'debian-13',
});

const [response] = await instancesClient.insert({
Expand Down
4 changes: 2 additions & 2 deletions compute/test/samples.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ describe('samples', () => {
initializeParams: {
diskSizeGb: '10',
sourceImage:
'projects/debian-cloud/global/images/family/debian-11',
'projects/debian-cloud/global/images/family/debian-13',
},
autoDelete: true,
boot: true,
Expand Down Expand Up @@ -447,7 +447,7 @@ describe('samples', () => {
initializeParams: {
diskSizeGb: '10',
sourceImage:
'projects/debian-cloud/global/images/family/debian-11',
'projects/debian-cloud/global/images/family/debian-13',
},
autoDelete: true,
boot: true,
Expand Down
2 changes: 1 addition & 1 deletion compute/test/snapshots.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ describe('snapshots tests', () => {

const [newestDebian] = await imagesClient.getFromFamily({
project: 'debian-cloud',
family: 'debian-11',
family: 'debian-13',
});

await createDisk(projectId, zone, diskName, newestDebian.selfLink);
Expand Down
2 changes: 1 addition & 1 deletion functions/v2/autoLabelInstance/test/system.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('functions_label_gce_instance', () => {
initializeParams: {
diskSizeGb: '10',
sourceImage:
'projects/debian-cloud/global/images/family/debian-11',
'projects/debian-cloud/global/images/family/debian-13',
},
boot: true,
autoDelete: true,
Expand Down
Loading