Skip to content

Commit 9033f27

Browse files
authored
chore: add '_sample' suffix to samples (#242)
* chore: add '_sample' suffix to samples Change-Id: If21d21ff97c30f45305b6365fa5ed10172557606 * chore: clean up tags Change-Id: I193b2f5be0bfcd65681a66266c198fbc3f554347 * change tabular to tables Change-Id: I4dafc2374eae85a53b47e9df3e6c1bcedb67b4f7 * change tables to tabular Change-Id: I8619f42c659cdea9759727f8b2227a89b8aa6308 * change tables to tabular Change-Id: I584c9ff75f771dd27b55c697f3b085290d1a970a
1 parent 4310826 commit 9033f27

File tree

70 files changed

+140
-140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+140
-140
lines changed

ai-platform/snippets/cancel-batch-prediction-job.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
async function main(batchPredictionJobId, project, location = 'us-central1') {
20-
// [START aiplatform_cancel_batch_prediction_job]
20+
// [START aiplatform_cancel_batch_prediction_job_sample]
2121
/**
2222
* TODO(developer): Uncomment these variables before running the sample.\
2323
* (Not necessary if passing values as arguments)
@@ -51,7 +51,7 @@ async function main(batchPredictionJobId, project, location = 'us-central1') {
5151
}
5252

5353
cancelBatchPredictionJob();
54-
// [END aiplatform_cancel_batch_prediction_job]
54+
// [END aiplatform_cancel_batch_prediction_job_sample]
5555
}
5656

5757
process.on('unhandledRejection', err => {

ai-platform/snippets/cancel-custom-job.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
async function main(customJobId, project, location = 'us-central1') {
20-
// [START aiplatform_cancel_custom_job]
20+
// [START aiplatform_cancel_custom_job_sample]
2121
/**
2222
* TODO(developer): Uncomment these variables before running the sample.\
2323
*/
@@ -50,7 +50,7 @@ async function main(customJobId, project, location = 'us-central1') {
5050
console.log('Cancel custom job response:\n', response);
5151
}
5252
cancelCustomJob();
53-
// [END aiplatform_cancel_custom_job]
53+
// [END aiplatform_cancel_custom_job_sample]
5454
}
5555

5656
process.on('unhandledRejection', err => {

ai-platform/snippets/create-batch-prediction-job-text-classification.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function main(
2424
project,
2525
location = 'us-central1'
2626
) {
27-
// [START aiplatform_create_batch_prediction_job_text_classification]
27+
// [START aiplatform_create_batch_prediction_job_text_classification_sample]
2828
/**
2929
* TODO(developer): Uncomment these variables before running the sample.\
3030
* (Not necessary if passing values as arguments)
@@ -82,7 +82,7 @@ async function main(
8282
console.log(JSON.stringify(response, null, 2));
8383
}
8484
createBatchPredictionJobTextClassification();
85-
// [END aiplatform_create_batch_prediction_job_text_classification]
85+
// [END aiplatform_create_batch_prediction_job_text_classification_sample]
8686
}
8787

8888
process.on('unhandledRejection', err => {

ai-platform/snippets/create-batch-prediction-job-text-entity-extraction.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function main(
2424
project,
2525
location = 'us-central1'
2626
) {
27-
// [START aiplatform_create_batch_prediction_job_text_entity_extraction]
27+
// [START aiplatform_create_batch_prediction_job_text_entity_extraction_sample]
2828
/**
2929
* TODO(developer): Uncomment these variables before running the sample.\
3030
* (Not necessary if passing values as arguments)
@@ -82,7 +82,7 @@ async function main(
8282
console.log(JSON.stringify(response, null, 2));
8383
}
8484
createBatchPredictionJobTextEntityExtraction();
85-
// [END aiplatform_create_batch_prediction_job_text_entity_extraction]
85+
// [END aiplatform_create_batch_prediction_job_text_entity_extraction_sample]
8686
}
8787

8888
process.on('unhandledRejection', err => {

ai-platform/snippets/create-batch-prediction-job-text-sentiment-analysis.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function main(
2424
project,
2525
location = 'us-central1'
2626
) {
27-
// [START aiplatform_create_batch_prediction_job_text_sentiment_analysis]
27+
// [START aiplatform_create_batch_prediction_job_text_sentiment_analysis_sample]
2828
/**
2929
* TODO(developer): Uncomment these variables before running the sample.\
3030
* (Not necessary if passing values as arguments)
@@ -82,7 +82,7 @@ async function main(
8282
console.log(JSON.stringify(response, null, 2));
8383
}
8484
createBatchPredictionJobTextSentimentAnalysis();
85-
// [END aiplatform_create_batch_prediction_job_text_sentiment_analysis]
85+
// [END aiplatform_create_batch_prediction_job_text_sentiment_analysis_sample]
8686
}
8787

8888
process.on('unhandledRejection', err => {

ai-platform/snippets/create-batch-prediction-job-video-action-recognition.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function main(
2424
project,
2525
location = 'us-central1'
2626
) {
27-
// [START aiplatform_create_batch_prediction_job_video_action_recognition]
27+
// [START aiplatform_create_batch_prediction_job_video_action_recognition_sample]
2828
/**
2929
* TODO(developer): Uncomment these variables before running the sample.\
3030
* (Not necessary if passing values as arguments)
@@ -95,7 +95,7 @@ function main(
9595
console.log(JSON.stringify(response, null, 2));
9696
}
9797
createBatchPredictionJobVideoActionRecognition();
98-
// [END aiplatform_create_batch_prediction_job_video_action_recognition]
98+
// [END aiplatform_create_batch_prediction_job_video_action_recognition_sample]
9999
}
100100

101101
process.on('unhandledRejection', err => {

ai-platform/snippets/create-batch-prediction-job-video-classification.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function main(
2424
project,
2525
location = 'us-central1'
2626
) {
27-
// [START aiplatform_create_batch_prediction_job_video_classification]
27+
// [START aiplatform_create_batch_prediction_job_video_classification_sample]
2828
/**
2929
* TODO(developer): Uncomment these variables before running the sample.\
3030
* (Not necessary if passing values as arguments)
@@ -97,7 +97,7 @@ async function main(
9797
console.log(JSON.stringify(response, null, 2));
9898
}
9999
createBatchPredictionJobVideoClassification();
100-
// [END aiplatform_create_batch_prediction_job_video_classification]
100+
// [END aiplatform_create_batch_prediction_job_video_classification_sample]
101101
}
102102

103103
process.on('unhandledRejection', err => {

ai-platform/snippets/create-batch-prediction-job-video-object-tracking.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function main(
2424
project,
2525
location = 'us-central1'
2626
) {
27-
// [START aiplatform_create_batch_prediction_job_video_object_tracking]
27+
// [START aiplatform_create_batch_prediction_job_video_object_tracking_sample]
2828
/**
2929
* TODO(developer): Uncomment these variables before running the sample.\
3030
* (Not necessary if passing values as arguments)
@@ -93,7 +93,7 @@ async function main(
9393
console.log(JSON.stringify(response, null, 2));
9494
}
9595
createBatchPredictionJobVideoObjectTracking();
96-
// [END aiplatform_create_batch_prediction_job_video_object_tracking]
96+
// [END aiplatform_create_batch_prediction_job_video_object_tracking_sample]
9797
}
9898

9999
process.on('unhandledRejection', err => {

ai-platform/snippets/create-custom-job.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function main(
2222
project,
2323
location = 'us-central1'
2424
) {
25-
// [START aiplatform_create_custom_job]
25+
// [START aiplatform_create_custom_job_sample]
2626
/**
2727
* TODO(developer): Uncomment these variables before running the sample.\
2828
* (Not necessary if passing values as arguments)
@@ -75,7 +75,7 @@ async function main(
7575
console.log('Create custom job response:\n', JSON.stringify(response));
7676
}
7777
createCustomJob();
78-
// [END aiplatform_create_custom_job]
78+
// [END aiplatform_create_custom_job_sample]
7979
}
8080

8181
process.on('unhandledRejection', err => {

ai-platform/snippets/create-dataset-image.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
async function main(datasetDisplayName, project, location = 'us-central1') {
20-
// [START aiplatform_create_dataset_image]
20+
// [START aiplatform_create_dataset_image_sample]
2121
/**
2222
* TODO(developer): Uncomment these variables before running the sample.\
2323
* (Not necessary if passing values as arguments)
@@ -68,7 +68,7 @@ async function main(datasetDisplayName, project, location = 'us-central1') {
6868
console.log(`Labels : ${JSON.stringify(result.labels)}`);
6969
}
7070
createDatasetImage();
71-
// [END aiplatform_create_dataset_image]
71+
// [END aiplatform_create_dataset_image_sample]
7272
}
7373

7474
process.on('unhandledRejection', err => {

ai-platform/snippets/create-dataset-tabular-bigquery.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function main(
2222
project,
2323
location = 'us-central1'
2424
) {
25-
// [START aiplatform_create_dataset_tabular_bigquery]
25+
// [START aiplatform_create_dataset_tabular_bigquery_sample]
2626
/**
2727
* TODO(developer): Uncomment these variables before running the sample.\
2828
* (Not necessary if passing values as arguments)
@@ -97,7 +97,7 @@ async function main(
9797
console.log(`\tMetadata : ${JSON.stringify(result.metadata)}`);
9898
}
9999
createDatasetTabularBigquery();
100-
// [END aiplatform_create_dataset_tabular_bigquery]
100+
// [END aiplatform_create_dataset_tabular_bigquery_sample]
101101
}
102102

103103
process.on('unhandledRejection', err => {

ai-platform/snippets/create-dataset-tabular-gcs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function main(
2222
project,
2323
location = 'us-central1'
2424
) {
25-
// [START aiplatform_create_dataset_tabular_gcs]
25+
// [START aiplatform_create_dataset_tabular_gcs_sample]
2626
/**
2727
* TODO(developer): Uncomment these variables before running the sample.\
2828
* (Not necessary if passing values as arguments)
@@ -97,7 +97,7 @@ async function main(
9797
console.log(`\tMetadata : ${JSON.stringify(result.metadata)}`);
9898
}
9999
createDatasetTabularGcs();
100-
// [END aiplatform_create_dataset_tabular_gcs]
100+
// [END aiplatform_create_dataset_tabular_gcs_sample]
101101
}
102102

103103
process.on('unhandledRejection', err => {

ai-platform/snippets/create-dataset-text.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
async function main(datasetDisplayName, project, location = 'us-central1') {
20-
// [START aiplatform_create_dataset_text]
20+
// [START aiplatform_create_dataset_text_sample]
2121
/**
2222
* TODO(developer): Uncomment these variables before running the sample.\
2323
* (Not necessary if passing values as arguments)
@@ -68,7 +68,7 @@ async function main(datasetDisplayName, project, location = 'us-central1') {
6868
console.log(`Labels : ${JSON.stringify(result.labels)}`);
6969
}
7070
createDatasetText();
71-
// [END aiplatform_create_dataset_text]
71+
// [END aiplatform_create_dataset_text_sample]
7272
}
7373

7474
process.on('unhandledRejection', err => {

ai-platform/snippets/create-dataset-video.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
async function main(datasetDisplayName, project, location = 'us-central1') {
20-
// [START aiplatform_create_dataset_video]
20+
// [START aiplatform_create_dataset_video_sample]
2121
/**
2222
* TODO(developer): Uncomment these variables before running the sample.\
2323
* (Not necessary if passing values as arguments)
@@ -68,7 +68,7 @@ async function main(datasetDisplayName, project, location = 'us-central1') {
6868
console.log(`Labels : ${JSON.stringify(result.labels)}`);
6969
}
7070
createDatasetVideo();
71-
// [END aiplatform_create_dataset_video]
71+
// [END aiplatform_create_dataset_video_sample]
7272
}
7373

7474
process.on('unhandledRejection', err => {

ai-platform/snippets/create-dataset.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function main(
2222
project,
2323
location = 'us-central1'
2424
) {
25-
// [START aiplatform_create_dataset]
25+
// [START aiplatform_create_dataset_sample]
2626
/**
2727
* TODO(developer): Uncomment these variables before running the sample.\
2828
* (Not necessary if passing values as arguments)
@@ -78,7 +78,7 @@ async function main(
7878
console.log(`\tLabels : ${JSON.stringify(createDatasetResponse.labels)}`);
7979
}
8080
createDataset();
81-
// [END aiplatform_create_dataset]
81+
// [END aiplatform_create_dataset_sample]
8282
}
8383

8484
process.on('unhandledRejection', err => {

ai-platform/snippets/create-endpoint.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
async function main(endpointDisplayName, project, location = 'us-central1') {
20-
// [START aiplatform_create_endpoint]
20+
// [START aiplatform_create_endpoint_sample]
2121
/**
2222
* TODO(developer): Uncomment these variables before running the sample.\
2323
* (Not necessary if passing values as arguments)
@@ -66,7 +66,7 @@ async function main(endpointDisplayName, project, location = 'us-central1') {
6666
console.log(`\tUpdate time : ${JSON.stringify(result.updateTime)}`);
6767
}
6868
createEndpoint();
69-
// [END aiplatform_create_endpoint]
69+
// [END aiplatform_create_endpoint_sample]
7070
}
7171

7272
process.on('unhandledRejection', err => {

ai-platform/snippets/create-training-pipeline-image-classification.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function main(
2323
project,
2424
location = 'us-central1'
2525
) {
26-
// [START aiplatform_create_training_pipeline_image_classification]
26+
// [START aiplatform_create_training_pipeline_image_classification_sample]
2727
/**
2828
* TODO(developer): Uncomment these variables before running the sample.
2929
* (Not necessary if passing values as arguments)
@@ -92,7 +92,7 @@ function main(
9292
}
9393

9494
createTrainingPipelineImageClassification();
95-
// [END aiplatform_create_training_pipeline_image_classification]
95+
// [END aiplatform_create_training_pipeline_image_classification_sample]
9696
}
9797

9898
process.on('unhandledRejection', err => {

ai-platform/snippets/create-training-pipeline-image-object-detection.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function main(
2323
project,
2424
location = 'us-central1'
2525
) {
26-
// [START aiplatform_create_training_pipeline_image_object_detection]
26+
// [START aiplatform_create_training_pipeline_image_object_detection_sample]
2727
/**
2828
* TODO(developer): Uncomment these variables before running the sample.\
2929
* (Not necessary if passing values as arguments)
@@ -89,7 +89,7 @@ async function main(
8989
console.log(JSON.stringify(response, null, 2));
9090
}
9191
createTrainingPipelineImageObjectDetection();
92-
// [END aiplatform_create_training_pipeline_image_object_detection]
92+
// [END aiplatform_create_training_pipeline_image_object_detection_sample]
9393
}
9494

9595
process.on('unhandledRejection', err => {

ai-platform/snippets/create-training-pipeline-tabular-classification.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function main(
2424
project,
2525
location = 'us-central1'
2626
) {
27-
// [START aiplatform_create_training_pipeline_tables_classification]
27+
// [START aiplatform_create_training_pipeline_tabular_classification_sample]
2828
/**
2929
* TODO(developer): Uncomment these variables before running the sample.\
3030
* (Not necessary if passing values as arguments)
@@ -103,7 +103,7 @@ async function main(
103103
console.log(JSON.stringify(response, null, 2));
104104
}
105105
createTrainingPipelineTablesClassification();
106-
// [END aiplatform_create_training_pipeline_tables_classification]
106+
// [END aiplatform_create_training_pipeline_tabular_classification_sample]
107107
}
108108

109109
process.on('unhandledRejection', err => {

ai-platform/snippets/create-training-pipeline-tabular-regression.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function main(
2424
project,
2525
location = 'us-central1'
2626
) {
27-
// [START aiplatform_create_training_pipeline_tables_regression]
27+
// [START aiplatform_create_training_pipeline_tabular_regression_sample]
2828
/**
2929
* TODO(developer): Uncomment these variables before running the sample.\
3030
* (Not necessary if passing values as arguments)
@@ -128,7 +128,7 @@ async function main(
128128
console.log(JSON.stringify(response, null, 2));
129129
}
130130
createTrainingPipelineTablesRegression();
131-
// [END aiplatform_create_training_pipeline_tables_regression]
131+
// [END aiplatform_create_training_pipeline_tabular_regression_sample]
132132
}
133133

134134
process.on('unhandledRejection', err => {

ai-platform/snippets/create-training-pipeline-text-classification.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function main(
2323
project,
2424
location = 'us-central1'
2525
) {
26-
// [START aiplatform_create_training_pipeline_text_classification]
26+
// [START aiplatform_create_training_pipeline_text_classification_sample]
2727
/**
2828
* TODO(developer): Uncomment these variables before running the sample.\
2929
* (Not necessary if passing values as arguments)
@@ -84,7 +84,7 @@ async function main(
8484
console.log(JSON.stringify(response, null, 2));
8585
}
8686
createTrainingPipelineTextClassification();
87-
// [END aiplatform_create_training_pipeline_text_classification]
87+
// [END aiplatform_create_training_pipeline_text_classification_sample]
8888
}
8989

9090
process.on('unhandledRejection', err => {

ai-platform/snippets/create-training-pipeline-text-entity-extraction.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function main(
2323
project,
2424
location = 'us-central1'
2525
) {
26-
// [START aiplatform_create_training_pipeline_text_entity_extraction]
26+
// [START aiplatform_create_training_pipeline_text_entity_extraction_sample]
2727
/**
2828
* TODO(developer): Uncomment these variables before running the sample.\
2929
* (Not necessary if passing values as arguments)
@@ -82,7 +82,7 @@ async function main(
8282
console.log(JSON.stringify(response, null, 2));
8383
}
8484
createTrainingPipelineTextEntityExtraction();
85-
// [END aiplatform_create_training_pipeline_text_entity_extraction]
85+
// [END aiplatform_create_training_pipeline_text_entity_extraction_sample]
8686
}
8787

8888
process.on('unhandledRejection', err => {

0 commit comments

Comments
 (0)