From 6ea9162ee2fc1852865c101d06ba5481983ec781 Mon Sep 17 00:00:00 2001 From: Gal Zahavi <38544478+galz10@users.noreply.github.com> Date: Wed, 8 Sep 2021 09:06:19 -0700 Subject: [PATCH] docs: add page management code samples (#174) --- packages/google-cloud-dialogflow-cx/README.md | 3 ++ .../linkinator.config.json | 5 +- .../samples/README.md | 54 +++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) diff --git a/packages/google-cloud-dialogflow-cx/README.md b/packages/google-cloud-dialogflow-cx/README.md index 82190f8c2e2..c6077b11dd0 100644 --- a/packages/google-cloud-dialogflow-cx/README.md +++ b/packages/google-cloud-dialogflow-cx/README.md @@ -140,10 +140,13 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-dialogflow- | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | | Create-agent | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/create-agent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/create-agent.js,samples/README.md) | +| Create-page | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/create-page.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/create-page.js,samples/README.md) | +| Delete-page | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/delete-page.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/delete-page.js,samples/README.md) | | Detect-intent-audio | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-audio.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/detect-intent-audio.js,samples/README.md) | | Detect-intent-streaming | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-streaming.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/detect-intent-streaming.js,samples/README.md) | | Detect-intent-text | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-text.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/detect-intent-text.js,samples/README.md) | | List-intents | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/list-intents.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/list-intents.js,samples/README.md) | +| List-page | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/list-page.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/list-page.js,samples/README.md) | | Quickstart | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | | Update-intent | [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/update-intent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/update-intent.js,samples/README.md) | diff --git a/packages/google-cloud-dialogflow-cx/linkinator.config.json b/packages/google-cloud-dialogflow-cx/linkinator.config.json index 29a223b6db6..940f1e732a2 100644 --- a/packages/google-cloud-dialogflow-cx/linkinator.config.json +++ b/packages/google-cloud-dialogflow-cx/linkinator.config.json @@ -3,7 +3,10 @@ "skip": [ "https://codecov.io/gh/googleapis/", "www.googleapis.com", - "img.shields.io" + "img.shields.io", + "https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/create-page.js", + "https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/delete-page.js", + "https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/list-page.js" ], "silent": true, "concurrency": 10 diff --git a/packages/google-cloud-dialogflow-cx/samples/README.md b/packages/google-cloud-dialogflow-cx/samples/README.md index cf3c915c53a..8e8d3c00e30 100644 --- a/packages/google-cloud-dialogflow-cx/samples/README.md +++ b/packages/google-cloud-dialogflow-cx/samples/README.md @@ -13,10 +13,13 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) * [Create-agent](#create-agent) + * [Create-page](#create-page) + * [Delete-page](#delete-page) * [Detect-intent-audio](#detect-intent-audio) * [Detect-intent-streaming](#detect-intent-streaming) * [Detect-intent-text](#detect-intent-text) * [List-intents](#list-intents) + * [List-page](#list-page) * [Quickstart](#quickstart) * [Update-intent](#update-intent) @@ -52,6 +55,40 @@ __Usage:__ +### Create-page + +View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/create-page.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/create-page.js,samples/README.md) + +__Usage:__ + + +`node samples/create-page.js` + + +----- + + + + +### Delete-page + +View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/delete-page.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/delete-page.js,samples/README.md) + +__Usage:__ + + +`node samples/delete-page.js` + + +----- + + + + ### Detect-intent-audio View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/detect-intent-audio.js). @@ -120,6 +157,23 @@ __Usage:__ +### List-page + +View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/list-page.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-dialogflow-cx&page=editor&open_in_editor=samples/list-page.js,samples/README.md) + +__Usage:__ + + +`node samples/list-page.js` + + +----- + + + + ### Quickstart View the [source code](https://github.com/googleapis/nodejs-dialogflow-cx/blob/main/samples/quickstart.js).