From 849710195387337a7d5b13817d5c7478d09c9a28 Mon Sep 17 00:00:00 2001 From: Gal Zahavi <38544478+galz10@users.noreply.github.com> Date: Fri, 3 Sep 2021 11:05:41 -0700 Subject: [PATCH] docs(samples): add region tags to update intent sample (#382) * Update update_intent.py * Update update_intent.py --- samples/snippets/update_intent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/snippets/update_intent.py b/samples/snippets/update_intent.py index 906ed84e4..5c9e0692a 100644 --- a/samples/snippets/update_intent.py +++ b/samples/snippets/update_intent.py @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +# [START dialogflow_es_update_intent] + from google.cloud.dialogflow_v2 import IntentsClient from google.protobuf import field_mask_pb2 @@ -26,3 +28,4 @@ def update_intent(project_id, intent_id, display_name): update_mask = field_mask_pb2.FieldMask(paths=["display_name"]) response = intents_client.update_intent(intent=intent, update_mask=update_mask) return response +# [END dialogflow_es_update_intent]