Skip to content

Commit 626df52

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
feat: added support for DLP templates; expose Locations service to get/list avaliable locations of Dialogflow products
PiperOrigin-RevId: 389939863
1 parent 114b141 commit 626df52

File tree

2 files changed

+60
-6
lines changed

2 files changed

+60
-6
lines changed

google/cloud/dialogflow/cx/v3/dialogflow_v3.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ documentation:
5757
5858
For more information, see the
5959
[Dialogflow documentation](https://cloud.google.com/dialogflow/docs).
60+
rules:
61+
- selector: google.cloud.location.Locations.GetLocation
62+
description: Gets information about a location.
63+
64+
- selector: google.cloud.location.Locations.ListLocations
65+
description: Lists information about the supported locations for this service.
6066

6167
backend:
6268
rules:
@@ -94,11 +100,19 @@ backend:
94100
deadline: 60.0
95101
- selector: 'google.cloud.dialogflow.cx.v3.Webhooks.*'
96102
deadline: 60.0
103+
- selector: google.cloud.location.Locations.GetLocation
104+
deadline: 60.0
105+
- selector: google.cloud.location.Locations.ListLocations
106+
deadline: 60.0
97107
- selector: 'google.longrunning.Operations.*'
98108
deadline: 60.0
99109

100110
http:
101111
rules:
112+
- selector: google.cloud.location.Locations.GetLocation
113+
get: '/v3/{name=projects/*/locations/*}'
114+
- selector: google.cloud.location.Locations.ListLocations
115+
get: '/v3/{name=projects/*}/locations'
102116
- selector: google.longrunning.Operations.CancelOperation
103117
post: '/v3/{name=projects/*/operations/*}:cancel'
104118
additional_bindings:
@@ -184,6 +198,16 @@ authentication:
184198
canonical_scopes: |-
185199
https://www.googleapis.com/auth/cloud-platform,
186200
https://www.googleapis.com/auth/dialogflow
201+
- selector: google.cloud.location.Locations.GetLocation
202+
oauth:
203+
canonical_scopes: |-
204+
https://www.googleapis.com/auth/cloud-platform,
205+
https://www.googleapis.com/auth/dialogflow
206+
- selector: google.cloud.location.Locations.ListLocations
207+
oauth:
208+
canonical_scopes: |-
209+
https://www.googleapis.com/auth/cloud-platform,
210+
https://www.googleapis.com/auth/dialogflow
187211
- selector: 'google.longrunning.Operations.*'
188212
oauth:
189213
canonical_scopes: |-

google/cloud/dialogflow/cx/v3/security_settings.proto

+36-6
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ option java_multiple_files = true;
3131
option java_outer_classname = "SecuritySettingsProto";
3232
option java_package = "com.google.cloud.dialogflow.cx.v3";
3333
option objc_class_prefix = "DF";
34+
option (google.api.resource_definition) = {
35+
type: "dlp.googleapis.com/InspectTemplate"
36+
pattern: "organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}"
37+
pattern: "projects/{project}/locations/{location}/inspectTemplates/{inspect_template}"
38+
};
39+
option (google.api.resource_definition) = {
40+
type: "dlp.googleapis.com/DeidentifyTemplate"
41+
pattern: "organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}"
42+
pattern: "projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}"
43+
};
3444

3545
// Service for managing security settings for Dialogflow.
3646
service SecuritySettingsService {
@@ -234,11 +244,31 @@ message SecuritySettings {
234244
// If empty, we use the default DLP inspect config.
235245
//
236246
// The template name will have one of the following formats:
237-
// `projects/<Project ID>/inspectTemplates/<Template ID>` OR
238247
// `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
239-
// ID>` OR
240-
// `organizations/<Organization ID>/inspectTemplates/<Template ID>`
241-
string inspect_template = 9;
248+
// ID>` OR `organizations/<Organization ID>/locations/<Location
249+
// ID>/inspectTemplates/<Template ID>`
250+
//
251+
// Note: `inspect_template` must be located in the same region as the
252+
// `SecuritySettings`.
253+
string inspect_template = 9 [(google.api.resource_reference) = {
254+
type: "dlp.googleapis.com/InspectTemplate"
255+
}];
256+
257+
// [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
258+
// template to define de-identification configuration for the content.
259+
//
260+
// If empty, Dialogflow replaces sensitive info with `[redacted]` text.
261+
//
262+
// The template name will have one of the following formats:
263+
// `projects/<Project ID>/locations/<Location
264+
// ID>/deidentifyTemplates/<Template ID>` OR `organizations/<Organization
265+
// ID>/locations/<Location ID>/deidentifyTemplates/<Template ID>`
266+
//
267+
// Note: `deidentify_template` must be located in the same region as the
268+
// `SecuritySettings`.
269+
string deidentify_template = 17 [(google.api.resource_reference) = {
270+
type: "dlp.googleapis.com/DeidentifyTemplate"
271+
}];
242272

243273
// Specifies how data is retained. Note that even if the data is
244274
// purged due to retention policy, we may still hold it in backup storage for
@@ -259,10 +289,10 @@ message SecuritySettings {
259289
// List of types of data to remove when retention settings triggers purge.
260290
repeated PurgeDataType purge_data_types = 8;
261291

262-
// Optional. Controls conversation exporting settings to Insights after conversation is
292+
// Controls conversation exporting settings to Insights after conversation is
263293
// completed.
264294
//
265295
// If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
266296
// Insights export is disabled no matter what you configure here.
267-
InsightsExportSettings insights_export_settings = 13 [(google.api.field_behavior) = OPTIONAL];
297+
InsightsExportSettings insights_export_settings = 13;
268298
}

0 commit comments

Comments
 (0)