diff --git a/cloud-language/snippets/automl/automlNaturalLanguageDataset.js b/cloud-language/snippets/automl/automlNaturalLanguageDataset.js index 3cbd69b502..9fdde633fa 100755 --- a/cloud-language/snippets/automl/automlNaturalLanguageDataset.js +++ b/cloud-language/snippets/automl/automlNaturalLanguageDataset.js @@ -20,7 +20,7 @@ * https://cloud.google.com/natural-language/automl/docs/ */ -`use strict`; +'use strict'; async function createDataset( projectId, @@ -135,7 +135,9 @@ async function getDataset(projectId, computeRegion, datasetId) { const datasetFullId = client.datasetPath(projectId, computeRegion, datasetId); // Get complete detail of the dataset. - const [dataset] = await client.getDataset({name: datasetFullId}); + const [dataset] = await client.getDataset({ + name: datasetFullId, + }); // Display the dataset information. console.log(`Dataset name: ${dataset.name}`); console.log(`Dataset id: ${dataset.name.split('/').pop(-1)}`); @@ -241,7 +243,9 @@ async function deleteDataset(projectId, computeRegion, datasetId) { const datasetFullId = client.datasetPath(projectId, computeRegion, datasetId); // Delete a dataset. - const [operation] = await client.deleteDataset({name: datasetFullId}); + const [operation] = await client.deleteDataset({ + name: datasetFullId, + }); const response = await operation.promise(); // The final result of the operation. if (response[2].done === true) console.log('Dataset deleted.'); diff --git a/cloud-language/snippets/automl/automlNaturalLanguageModel.js b/cloud-language/snippets/automl/automlNaturalLanguageModel.js index 616ef708f6..74010e0ebd 100755 --- a/cloud-language/snippets/automl/automlNaturalLanguageModel.js +++ b/cloud-language/snippets/automl/automlNaturalLanguageModel.js @@ -20,7 +20,7 @@ * https://cloud.google.com/natural-language/automl/docs/ */ -`use strict`; +'use strict'; async function createModel(projectId, computeRegion, datasetId, modelName) { // [START automl_language_createModel] @@ -180,7 +180,9 @@ async function getModel(projectId, computeRegion, modelId) { const modelFullId = client.modelPath(projectId, computeRegion, modelId); // Get complete detail of the model. - const [model] = await client.getModel({name: modelFullId}); + const [model] = await client.getModel({ + name: modelFullId, + }); // Display the model information. console.log(`Model name: ${model.name}`); @@ -398,7 +400,9 @@ async function deleteModel(projectId, computeRegion, modelId) { const modelFullId = client.modelPath(projectId, computeRegion, modelId); // Delete a model. - const [operation] = client.deleteModel({name: modelFullId}); + const [operation] = client.deleteModel({ + name: modelFullId, + }); const response = await operation.promise(); // The final result of the operation. if (response[2].done === true) console.log('Model deleted.'); diff --git a/cloud-language/snippets/automl/automlNaturalLanguagePredict.js b/cloud-language/snippets/automl/automlNaturalLanguagePredict.js index 6c8d469bf5..ca5a064803 100755 --- a/cloud-language/snippets/automl/automlNaturalLanguagePredict.js +++ b/cloud-language/snippets/automl/automlNaturalLanguagePredict.js @@ -20,7 +20,7 @@ * https://cloud.google.com/natural-language/automl/docs/ */ -`use strict`; +'use strict'; async function predict(projectId, computeRegion, modelId, filePath) { // [START automl_language_predict]