From 4139410a6b2a3ce9df083c3d97f98498cefbfd78 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 7 Jul 2020 09:56:15 -0700 Subject: [PATCH] feat: add Location parent to Environment resource PiperOrigin-RevId: 320004023 --- google/cloud/dialogflow/v2beta1/environment.proto | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/google/cloud/dialogflow/v2beta1/environment.proto b/google/cloud/dialogflow/v2beta1/environment.proto index da1c4b28..7132910b 100644 --- a/google/cloud/dialogflow/v2beta1/environment.proto +++ b/google/cloud/dialogflow/v2beta1/environment.proto @@ -56,6 +56,7 @@ message Environment { option (google.api.resource) = { type: "dialogflow.googleapis.com/Environment" pattern: "projects/{project}/agent/environments/{environment}" + pattern: "projects/{project}/locations/{location}/agent/environments/{environment}" }; // Represents an environment state. When an environment is pointed to a new @@ -78,8 +79,10 @@ message Environment { } // Output only. The unique identifier of this agent environment. - // Format: `projects//agent/environments/`. - // For Environment ID, "-" is reserved for 'draft' environment. + // Format: + // - `projects//agent/environments/` + // - `projects//locations//agent/environments/` string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The developer-provided description for this environment. @@ -102,7 +105,10 @@ message Environment { // The request message for [Environments.ListEnvironments][google.cloud.dialogflow.v2beta1.Environments.ListEnvironments]. message ListEnvironmentsRequest { // Required. The agent to list all environments from. - // Format: `projects//agent`. + // Format: + // - `projects//agent` + // - `projects//locations//agent string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = {