Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 61fd2dc

Browse files
feat: added page in TestConfig (#268)
- [ ] Regenerate this pull request now. docs: clarified wording around Cloud Storage usage PiperOrigin-RevId: 433282831 Source-Link: googleapis/googleapis@0e87dc7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1928631f3ee91488fe07b3d8188a52d10862453a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkyODYzMWYzZWU5MTQ4OGZlMDdiM2Q4MTg4YTUyZDEwODYyNDUzYSJ9
1 parent 9be0456 commit 61fd2dc

File tree

3 files changed

+54
-2
lines changed

3 files changed

+54
-2
lines changed

google/cloud/dialogflowcx_v3/types/agent.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,12 @@ class ExportAgentRequest(proto.Message):
269269
export the agent to. The format of this URI must be
270270
``gs://<bucket-name>/<object-name>``. If left unspecified,
271271
the serialized agent is returned inline.
272+
273+
Dialogflow performs a write operation for the Cloud Storage
274+
object on the caller's behalf, so your request
275+
authentication must have write permissions for the object.
276+
For more information, see `Dialogflow access
277+
control <https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage>`__.
272278
environment (str):
273279
Optional. Environment name. If not set, draft environment is
274280
assumed. Format:
@@ -329,6 +335,12 @@ class RestoreAgentRequest(proto.Message):
329335
restore agent from. The format of this URI must be
330336
``gs://<bucket-name>/<object-name>``.
331337
338+
Dialogflow performs a read operation for the Cloud Storage
339+
object on the caller's behalf, so your request
340+
authentication must have read permissions for the object.
341+
For more information, see `Dialogflow access
342+
control <https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage>`__.
343+
332344
This field is a member of `oneof`_ ``agent``.
333345
agent_content (bytes):
334346
Uncompressed raw byte content for agent.

google/cloud/dialogflowcx_v3/types/flow.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,12 @@ class ImportFlowRequest(proto.Message):
437437
import flow from. The format of this URI must be
438438
``gs://<bucket-name>/<object-name>``.
439439
440+
Dialogflow performs a read operation for the Cloud Storage
441+
object on the caller's behalf, so your request
442+
authentication must have read permissions for the object.
443+
For more information, see `Dialogflow access
444+
control <https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage>`__.
445+
440446
This field is a member of `oneof`_ ``flow``.
441447
flow_content (bytes):
442448
Uncompressed raw byte content for flow.
@@ -485,6 +491,12 @@ class ExportFlowRequest(proto.Message):
485491
export the flow to. The format of this URI must be
486492
``gs://<bucket-name>/<object-name>``. If left unspecified,
487493
the serialized flow is returned inline.
494+
495+
Dialogflow performs a write operation for the Cloud Storage
496+
object on the caller's behalf, so your request
497+
authentication must have write permissions for the object.
498+
For more information, see `Dialogflow access
499+
control <https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage>`__.
488500
include_referenced_flows (bool):
489501
Optional. Whether to export flows referenced
490502
by the specified flow.

google/cloud/dialogflowcx_v3/types/test_case.py

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,29 @@ class TestConfig(proto.Message):
162162
Session parameters to be compared when
163163
calculating differences.
164164
flow (str):
165-
Flow name. If not set, default start flow is assumed.
166-
Format:
165+
Flow name to start the test case with. Format:
167166
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``.
167+
168+
Only one of ``flow`` and ``page`` should be set to indicate
169+
the starting point of the test case. If both are set,
170+
``page`` takes precedence over ``flow``. If neither is set,
171+
the test case will start with start page on the default
172+
start flow.
173+
page (str):
174+
The [page][google.cloud.dialogflow.cx.v3.Page] to start the
175+
test case with. Format:
176+
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>``.
177+
178+
Only one of ``flow`` and ``page`` should be set to indicate
179+
the starting point of the test case. If both are set,
180+
``page`` takes precedence over ``flow``. If neither is set,
181+
the test case will start with start page on the default
182+
start flow.
168183
"""
169184

170185
tracking_parameters = proto.RepeatedField(proto.STRING, number=1,)
171186
flow = proto.Field(proto.STRING, number=2,)
187+
page = proto.Field(proto.STRING, number=3,)
172188

173189

174190
class ConversationTurn(proto.Message):
@@ -800,6 +816,12 @@ class ImportTestCasesRequest(proto.Message):
800816
import test cases from. The format of this URI must be
801817
``gs://<bucket-name>/<object-name>``.
802818
819+
Dialogflow performs a read operation for the Cloud Storage
820+
object on the caller's behalf, so your request
821+
authentication must have read permissions for the object.
822+
For more information, see `Dialogflow access
823+
control <https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage>`__.
824+
803825
This field is a member of `oneof`_ ``source``.
804826
content (bytes):
805827
Uncompressed raw byte content for test cases.
@@ -870,6 +892,12 @@ class ExportTestCasesRequest(proto.Message):
870892
``gs://<bucket-name>/<object-name>``. If unspecified, the
871893
serialized test cases is returned inline.
872894
895+
Dialogflow performs a write operation for the Cloud Storage
896+
object on the caller's behalf, so your request
897+
authentication must have write permissions for the object.
898+
For more information, see `Dialogflow access
899+
control <https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage>`__.
900+
873901
This field is a member of `oneof`_ ``destination``.
874902
data_format (google.cloud.dialogflowcx_v3.types.ExportTestCasesRequest.DataFormat):
875903
The data format of the exported test cases. If not

0 commit comments

Comments
 (0)