From 1f71e7788eb996e118767b83818227931750902e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 15 May 2021 03:12:02 +0000 Subject: [PATCH] feat: added location-aware HTTP path binding for ListIntents (#294) PiperOrigin-RevId: 373895026 Source-Link: https://github.com/googleapis/googleapis/commit/0d68bbb80a7620b69aff5ab0b497c8a396e73558 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6acf4a0a797f1082027985c55c4b14b60f673dd7 --- .../dialogflow_v2/services/intents/async_client.py | 11 ++++++++++- google/cloud/dialogflow_v2/services/intents/client.py | 11 ++++++++++- google/cloud/dialogflow_v2/types/intent.py | 11 ++++++++++- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/google/cloud/dialogflow_v2/services/intents/async_client.py b/google/cloud/dialogflow_v2/services/intents/async_client.py index 525e28976..e4667feac 100644 --- a/google/cloud/dialogflow_v2/services/intents/async_client.py +++ b/google/cloud/dialogflow_v2/services/intents/async_client.py @@ -181,7 +181,16 @@ async def list_intents( [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents]. parent (:class:`str`): Required. The agent to list all intents from. Format: - ``projects//agent``. + ``projects//agent`` or + ``projects//locations//agent``. + + Alternatively, you can specify the environment to list + intents for. Format: + ``projects//agent/environments/`` + or + ``projects//locations//agent/environments/``. + Note: training phrases of the intents will not be + returned for non-draft environment. This corresponds to the ``parent`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/google/cloud/dialogflow_v2/services/intents/client.py b/google/cloud/dialogflow_v2/services/intents/client.py index 635cb1104..996568e67 100644 --- a/google/cloud/dialogflow_v2/services/intents/client.py +++ b/google/cloud/dialogflow_v2/services/intents/client.py @@ -383,7 +383,16 @@ def list_intents( [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents]. parent (str): Required. The agent to list all intents from. Format: - ``projects//agent``. + ``projects//agent`` or + ``projects//locations//agent``. + + Alternatively, you can specify the environment to list + intents for. Format: + ``projects//agent/environments/`` + or + ``projects//locations//agent/environments/``. + Note: training phrases of the intents will not be + returned for non-draft environment. This corresponds to the ``parent`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/google/cloud/dialogflow_v2/types/intent.py b/google/cloud/dialogflow_v2/types/intent.py index 6056300c4..ef1a0b0aa 100644 --- a/google/cloud/dialogflow_v2/types/intent.py +++ b/google/cloud/dialogflow_v2/types/intent.py @@ -1009,7 +1009,16 @@ class ListIntentsRequest(proto.Message): Attributes: parent (str): Required. The agent to list all intents from. Format: - ``projects//agent``. + ``projects//agent`` or + ``projects//locations//agent``. + + Alternatively, you can specify the environment to list + intents for. Format: + ``projects//agent/environments/`` + or + ``projects//locations//agent/environments/``. + Note: training phrases of the intents will not be returned + for non-draft environment. language_code (str): Optional. The language used to access language-specific data. If not specified, the agent's default language is