Skip to content

Commit

Permalink
samples: remove unnecessary back-ticks from samples (#209)
Browse files Browse the repository at this point in the history
* removed backticks being used where a variable could just be logged.

* fix #38 Removed backticks being used where a variable could just be logged.

* fix #38

* fix #38 Joined console Logs of results, that were spread across two lines

* fix #38 making certain all logs had similar spacing

Co-authored-by: nicain <nicain.seattle@gmail.com>
Co-authored-by: Benjamin E. Coe <bencoe@google.com>
  • Loading branch information
3 people authored Oct 21, 2021
1 parent f34262b commit f0951c6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions ai-platform/snippets/cancel-custom-job.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions ai-platform/snippets/create-custom-job.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions ai-platform/snippets/delete-custom-job.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions ai-platform/snippets/delete-dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions ai-platform/snippets/delete-endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions ai-platform/snippets/delete-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f0951c6

Please sign in to comment.