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

70 files changed

Lines changed: 140 additions & 140 deletions

File tree

Some content is hidden

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

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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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 => {

0 commit comments

Comments
 (0)