Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Commit 30f2457

Browse files
authored
chore: update region tags that were missing _preview (#1525)
* chore: fix owlbot configs, regenerate * Apply suggestions from code review * WIP - two different ways * don't overwrite handwritten methods * change to sync file read * chore: periodic regen * run postprocessor * upgrade dependencies to node 18 * Revert "upgrade dependencies to node 18" This reverts commit b7ca3fc. * periodic regeneration + update to node 18 on autogen branch * fix lint errors * more lint fixes * chore: update region tags that were missing _preview
1 parent d522222 commit 30f2457

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

samples/jobs/cancelJob.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
function main(projectId = 'my-project-id', jobId = 'existing-job-id') {
20-
// [START bigquery_cancel_job]
20+
// [START bigquery_cancel_job_preview]
2121
// Import the Google Cloud client library
2222
const {BigQueryClient} = require('@google-cloud/bigquery');
2323
const bigqueryClient = new BigQueryClient();
@@ -40,7 +40,7 @@ function main(projectId = 'my-project-id', jobId = 'existing-job-id') {
4040

4141
console.log(response.job.status);
4242
}
43-
// [END bigquery_cancel_job]
43+
// [END bigquery_cancel_job_preview]
4444
cancelJob();
4545
}
4646
main(...process.argv.slice(2));

samples/jobs/createJob.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'use strict';
1616

1717
function main(projectId = 'my-project') {
18-
// [START bigquery_create_job]
18+
// [START bigquery_create_job_preview]
1919
// Import the Google Cloud client library and create a client
2020
const {BigQueryClient} = require('@google-cloud/bigquery');
2121
const {setInterval} = require('node:timers/promises');
@@ -69,7 +69,7 @@ function main(projectId = 'my-project') {
6969
}
7070
}
7171
}
72-
// [END bigquery_create_job]
72+
// [END bigquery_create_job_preview]
7373
createJob();
7474
}
7575
main(...process.argv.slice(2));

samples/jobs/getJob.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
function main(projectId = 'my_project', jobId = 'existing-job-id') {
20-
// [START bigquery_get_job]
20+
// [START bigquery_get_job_preview]
2121
// Import the Google Cloud client library
2222
const {BigQueryClient} = require('@google-cloud/bigquery');
2323
const bigquery = new BigQueryClient();
@@ -40,7 +40,7 @@ function main(projectId = 'my_project', jobId = 'existing-job-id') {
4040

4141
console.log(`Job ${job.id} status: ${job.status.state}`);
4242
}
43-
// [END bigquery_get_job]
43+
// [END bigquery_get_job_preview]
4444
getJob();
4545
}
4646
main(...process.argv.slice(2));

samples/jobs/listJobs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
function main(projectId = 'my_project') {
20-
// [START bigquery_list_jobs]
20+
// [START bigquery_list_jobs_preview]
2121
// Import the Google Cloud client library
2222
const {BigQueryClient} = require('@google-cloud/bigquery');
2323
const bigquery = new BigQueryClient();
@@ -38,7 +38,7 @@ function main(projectId = 'my_project') {
3838
i++;
3939
}
4040
}
41-
// [END bigquery_list_jobs]
41+
// [END bigquery_list_jobs_preview]
4242
listJobs();
4343
}
4444
main(...process.argv.slice(2));

samples/models/createModel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function main(
1919
datasetId = 'my_dataset',
2020
modelId = 'my_model',
2121
) {
22-
// [START bigquery_create_model]
22+
// [START bigquery_create_model_preview]
2323
// Import the Google Cloud client library
2424
const {setInterval} = require('node:timers/promises');
2525
const {BigQueryClient} = require('@google-cloud/bigquery');
@@ -85,6 +85,6 @@ function main(
8585
console.log(`Model ${modelId} created.`);
8686
}
8787
createModel();
88-
// [END bigquery_create_model]
88+
// [END bigquery_create_model_preview]
8989
}
9090
main(...process.argv.slice(2));

samples/models/deleteModel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function main(
1919
datasetId = 'my_dataset',
2020
modelId = 'my_model',
2121
) {
22-
// [START bigquery_delete_model]
22+
// [START bigquery_delete_model_preview]
2323
// Import the Google Cloud client library
2424
const {BigQueryClient} = require('@google-cloud/bigquery');
2525

@@ -45,7 +45,7 @@ function main(
4545

4646
console.log(`Model ${modelId} deleted.`);
4747
}
48-
// [END bigquery_delete_model]
48+
// [END bigquery_delete_model_preview]
4949
deleteModel();
5050
}
5151
main(...process.argv.slice(2));

samples/models/getModel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function main(
1919
datasetId = 'my_dataset',
2020
modelId = 'my_existing_model',
2121
) {
22-
// [START bigquery_get_model]
22+
// [START bigquery_get_model_preview]
2323
// Import the Google Cloud client library
2424
const {BigQueryClient} = require('@google-cloud/bigquery');
2525

@@ -45,7 +45,7 @@ function main(
4545
console.log('Model:');
4646
console.log(model);
4747
}
48-
// [END bigquery_get_model]
48+
// [END bigquery_get_model_preview]
4949
getModel();
5050
}
5151
main(...process.argv.slice(2));

samples/models/listModels.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'use strict';
1616

1717
function main(projectId = 'my_project', datasetId = 'my_dataset') {
18-
// [START bigquery_list_models]
18+
// [START bigquery_list_models_preview]
1919

2020
// Import the Google Cloud client library
2121
const {BigQueryClient} = require('@google-cloud/bigquery');
@@ -44,7 +44,7 @@ function main(projectId = 'my_project', datasetId = 'my_dataset') {
4444
console.log(`No models found in dataset ${datasetId}.`);
4545
}
4646
}
47-
// [END bigquery_list_models]
47+
// [END bigquery_list_models_preview]
4848
listModels();
4949
}
5050

samples/models/listModelsStreaming.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// usage: node listModelsStreaming.js <DATASET_ID>
2121

2222
function main(projectId = 'my_project', datasetId = 'my_dataset') {
23-
// [START bigquery_list_models_streaming]
23+
// [START bigquery_list_models_streaming_preview]
2424

2525
// Import the Google Cloud client library
2626
const {BigQueryClient} = require('@google-cloud/bigquery');
@@ -56,7 +56,7 @@ function main(projectId = 'my_project', datasetId = 'my_dataset') {
5656
});
5757
}
5858

59-
// [END bigquery_list_models_streaming]
59+
// [END bigquery_list_models_streaming_preview]
6060
listModels();
6161
}
6262

samples/models/updateModel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function main(
1919
datasetId = 'my_datset',
2020
modelId = 'my_model',
2121
) {
22-
// [START bigquery_update_model_description]
22+
// [START bigquery_update_model_description_preview]
2323
// Import the Google Cloud client library
2424
const {BigQueryClient} = require('@google-cloud/bigquery');
2525

@@ -56,7 +56,7 @@ function main(
5656

5757
console.log(`${modelId} description: ${model.description}`);
5858
}
59-
// [END bigquery_update_model_description]
59+
// [END bigquery_update_model_description_preview]
6060
updateModel();
6161
}
6262

0 commit comments

Comments
 (0)