Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

Commit 1f71e77

Browse files
feat: added location-aware HTTP path binding for ListIntents (#294)
PiperOrigin-RevId: 373895026 Source-Link: googleapis/googleapis@0d68bbb Source-Link: https://github.com/googleapis/googleapis-gen/commit/6acf4a0a797f1082027985c55c4b14b60f673dd7
1 parent a9f970c commit 1f71e77

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

google/cloud/dialogflow_v2/services/intents/async_client.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,16 @@ async def list_intents(
181181
[Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
182182
parent (:class:`str`):
183183
Required. The agent to list all intents from. Format:
184-
``projects/<Project ID>/agent``.
184+
``projects/<Project ID>/agent`` or
185+
``projects/<Project ID>/locations/<Location ID>/agent``.
186+
187+
Alternatively, you can specify the environment to list
188+
intents for. Format:
189+
``projects/<Project ID>/agent/environments/<Environment ID>``
190+
or
191+
``projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>``.
192+
Note: training phrases of the intents will not be
193+
returned for non-draft environment.
185194
186195
This corresponds to the ``parent`` field
187196
on the ``request`` instance; if ``request`` is provided, this

google/cloud/dialogflow_v2/services/intents/client.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,16 @@ def list_intents(
383383
[Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
384384
parent (str):
385385
Required. The agent to list all intents from. Format:
386-
``projects/<Project ID>/agent``.
386+
``projects/<Project ID>/agent`` or
387+
``projects/<Project ID>/locations/<Location ID>/agent``.
388+
389+
Alternatively, you can specify the environment to list
390+
intents for. Format:
391+
``projects/<Project ID>/agent/environments/<Environment ID>``
392+
or
393+
``projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>``.
394+
Note: training phrases of the intents will not be
395+
returned for non-draft environment.
387396
388397
This corresponds to the ``parent`` field
389398
on the ``request`` instance; if ``request`` is provided, this

google/cloud/dialogflow_v2/types/intent.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,16 @@ class ListIntentsRequest(proto.Message):
10091009
Attributes:
10101010
parent (str):
10111011
Required. The agent to list all intents from. Format:
1012-
``projects/<Project ID>/agent``.
1012+
``projects/<Project ID>/agent`` or
1013+
``projects/<Project ID>/locations/<Location ID>/agent``.
1014+
1015+
Alternatively, you can specify the environment to list
1016+
intents for. Format:
1017+
``projects/<Project ID>/agent/environments/<Environment ID>``
1018+
or
1019+
``projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>``.
1020+
Note: training phrases of the intents will not be returned
1021+
for non-draft environment.
10131022
language_code (str):
10141023
Optional. The language used to access language-specific
10151024
data. If not specified, the agent's default language is

0 commit comments

Comments
 (0)