diff --git a/ai-platform/snippets/cancel-custom-job.js b/ai-platform/snippets/cancel-custom-job.js index b4cbc7eccd..7312e347cb 100644 --- a/ai-platform/snippets/cancel-custom-job.js +++ b/ai-platform/snippets/cancel-custom-job.js @@ -47,8 +47,7 @@ async function main(customJobId, project, location = 'us-central1') { // Cancel custom job request const [response] = await jobServiceClient.cancelCustomJob(request); - console.log('Cancel custom job response'); - console.log(`${response}`); + console.log('Cancel custom job response:\n', response); } cancelCustomJob(); // [END aiplatform_cancel_custom_job] diff --git a/ai-platform/snippets/create-custom-job.js b/ai-platform/snippets/create-custom-job.js index 10db425d40..94455abdc2 100644 --- a/ai-platform/snippets/create-custom-job.js +++ b/ai-platform/snippets/create-custom-job.js @@ -72,8 +72,7 @@ async function main( // Create custom job request const [response] = await jobServiceClient.createCustomJob(request); - console.log('Create custom job response'); - console.log(`${JSON.stringify(response)}`); + console.log('Create custom job response:\n', JSON.stringify(response)); } createCustomJob(); // [END aiplatform_create_custom_job] diff --git a/ai-platform/snippets/delete-custom-job.js b/ai-platform/snippets/delete-custom-job.js index 84c08a542e..c298b689b7 100644 --- a/ai-platform/snippets/delete-custom-job.js +++ b/ai-platform/snippets/delete-custom-job.js @@ -48,8 +48,7 @@ async function main(customJobId, project, location = 'us-central1') { // Delete custom job request const [response] = await jobServiceClient.deleteCustomJob(request); - console.log('Delete custom job response'); - console.log(`${response}`); + console.log('Delete custom job response:\n', response); } setTimeout(deleteCustomJob, 60000); // [END aiplatform_delete_custom_job] diff --git a/ai-platform/snippets/delete-dataset.js b/ai-platform/snippets/delete-dataset.js index e76f0b8ea6..9771866c77 100644 --- a/ai-platform/snippets/delete-dataset.js +++ b/ai-platform/snippets/delete-dataset.js @@ -51,8 +51,7 @@ async function main(datasetId, project, location = 'us-central1') { await response.promise(); const result = response.result; - console.log('Delete dataset response :'); - console.log(`${result}`); + console.log('Delete dataset response:\n', result); } deleteDataset(); // [END aiplatform_delete_dataset] diff --git a/ai-platform/snippets/delete-endpoint.js b/ai-platform/snippets/delete-endpoint.js index 08b8cfb27b..82f9f16554 100644 --- a/ai-platform/snippets/delete-endpoint.js +++ b/ai-platform/snippets/delete-endpoint.js @@ -52,8 +52,7 @@ async function main(endpointId, project, location = 'us-central1') { await response.promise(); const result = response.result; - console.log('Delete endpoint response :'); - console.log(`${result}`); + console.log('Delete endpoint response:\n', result); } deleteEndpoint(); // [END aiplatform_delete_endpoint] diff --git a/ai-platform/snippets/delete-model.js b/ai-platform/snippets/delete-model.js index a0ba4aaf9e..4a4d524fa9 100644 --- a/ai-platform/snippets/delete-model.js +++ b/ai-platform/snippets/delete-model.js @@ -50,8 +50,7 @@ async function main(modelId, project, location = 'us-central1') { await response.promise(); const result = response.result; - console.log('Delete model response :'); - console.log(`${result}`); + console.log('Delete model response:\n', result); } deleteModel(); // [END aiplatform_delete_model]