diff --git a/.gitignore b/.gitignore index 783162de..5d32b237 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,3 @@ system-test/*key.json .DS_Store package-lock.json __pycache__ -.vscode diff --git a/.kokoro/samples-test.sh b/.kokoro/samples-test.sh index bdabc67b..bab7ba4e 100755 --- a/.kokoro/samples-test.sh +++ b/.kokoro/samples-test.sh @@ -15,11 +15,12 @@ # limitations under the License. set -eo pipefail + export NPM_CONFIG_PREFIX=${HOME}/.npm-global # Setup service account credentials. export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json -export GCLOUD_PROJECT=ucaip-sample-tests +export GCLOUD_PROJECT=long-door-651 cd $(dirname $0)/.. diff --git a/.kokoro/system-test.sh b/.kokoro/system-test.sh index 3103df45..8a084004 100755 --- a/.kokoro/system-test.sh +++ b/.kokoro/system-test.sh @@ -20,7 +20,7 @@ export NPM_CONFIG_PREFIX=${HOME}/.npm-global # Setup service account credentials. export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json -export GCLOUD_PROJECT=ucaip-sample-tests +export GCLOUD_PROJECT=long-door-651 cd $(dirname $0)/.. diff --git a/linkinator.config.json b/linkinator.config.json index bdfc0dc1..29a223b6 100644 --- a/linkinator.config.json +++ b/linkinator.config.json @@ -3,10 +3,7 @@ "skip": [ "https://codecov.io/gh/googleapis/", "www.googleapis.com", - "img.shields.io", - "https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/list-endpoints.js", - "https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-training-pipeline-image-classification.js", - "https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/predict-image-classification.js" + "img.shields.io" ], "silent": true, "concurrency": 10 diff --git a/samples/README.md b/samples/README.md index 7ec4c2ac..38f6f984 100644 --- a/samples/README.md +++ b/samples/README.md @@ -1,20 +1,21 @@ -[//]: # 'This README.md file is auto-generated, all changes to this file will be lost.' -[//]: # 'To regenerate it, use `python -m synthtool`.' - +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo # [AI Platform: Node.js Samples](https://github.com/googleapis/nodejs-ai-platform) [![Open in Cloud Shell][shell_img]][shell_link] + + ## Table of Contents -- [Before you begin](#before-you-begin) -- [Samples](#samples) - - [Create-training-pipeline-image-classification](#create-training-pipeline-image-classification) - - [List-endpoints](#list-endpoints) - - [Predict-image-classification](#predict-image-classification) - - [Quickstart](#quickstart) +* [Before you begin](#before-you-begin) +* [Samples](#samples) + * [Create-training-pipeline-image-classification](#create-training-pipeline-image-classification) + * [List-endpoints](#list-endpoints) + * [Predict-image-classification](#predict-image-classification) + * [Quickstart](#quickstart) ## Before you begin @@ -29,17 +30,24 @@ Before running the samples, make sure you've followed the steps outlined in ## Samples + + ### Create-training-pipeline-image-classification View the [source code](https://github.com/googleapis/nodejs-ai-platform/blob/master/samples/create-training-pipeline-image-classification.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/create-training-pipeline-image-classification.js,samples/README.md) -**Usage:** +__Usage:__ + `node samples/create-training-pipeline-image-classification.js` ---- + +----- + + + ### List-endpoints @@ -47,11 +55,16 @@ View the [source code](https://github.com/googleapis/nodejs-ai-platform/blob/mas [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/list-endpoints.js,samples/README.md) -**Usage:** +__Usage:__ + `node samples/list-endpoints.js` ---- + +----- + + + ### Predict-image-classification @@ -59,11 +72,16 @@ View the [source code](https://github.com/googleapis/nodejs-ai-platform/blob/mas [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/predict-image-classification.js,samples/README.md) -**Usage:** +__Usage:__ + `node samples/predict-image-classification.js` ---- + +----- + + + ### Quickstart @@ -71,10 +89,16 @@ View the [source code](https://github.com/googleapis/nodejs-ai-platform/blob/mas [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) -**Usage:** +__Usage:__ + `node samples/quickstart.js` + + + + + [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png [shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-ai-platform&page=editor&open_in_editor=samples/README.md [product-docs]: https://cloud.google.com/ai-platform/docs diff --git a/synth.metadata b/synth.metadata index e717c9c6..7f3ac585 100644 --- a/synth.metadata +++ b/synth.metadata @@ -3,8 +3,8 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/nodejs-ai-platform.git", - "sha": "e97531fa5a374ec9215d21aa6b9c3434490a531f" + "remote": "https://github.com/googleapis/nodejs-ai-platform.git", + "sha": "b697a38f696ab14b3a7ce9563f2ed5449eeeab4f" } }, {