Skip to content

Commit 6d28b74

Browse files
feat: added support for comparing between versions docs: clarified security settings API reference (#201)
* feat: added support for comparing between versions docs: clarified security settings API reference PiperOrigin-RevId: 407624272 Source-Link: googleapis/googleapis@eb773f2 Source-Link: googleapis/googleapis-gen@e69f86b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTY5Zjg2YjViYmMyZWQ3NzdhNWQ5N2I2NWMwODBjNDY0NWVhMDJiOCJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: nicain <[email protected]>
1 parent 4ab5006 commit 6d28b74

File tree

11 files changed

+1168
-2
lines changed

11 files changed

+1168
-2
lines changed

packages/google-cloud-dialogflow-cx/linkinator.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"img.shields.io"
77
],
88
"silent": true,
9-
"concurrency": 5
9+
"concurrency": 10
1010
}

packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/security_settings.proto

+11-1
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ message SecuritySettings {
245245
// [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
246246
// template to define inspect base settings.
247247
//
248+
// The `DLP Inspect Templates Reader` role is needed on the Dialogflow
249+
// service identity service account (has the form
250+
251+
// for your agent's project.
252+
//
248253
// If empty, we use the default DLP inspect config.
249254
//
250255
// The template name will have one of the following formats:
@@ -261,6 +266,11 @@ message SecuritySettings {
261266
// [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
262267
// template to define de-identification configuration for the content.
263268
//
269+
// The `DLP De-identify Templates Reader` role is needed on the Dialogflow
270+
// service identity service account (has the form
271+
272+
// for your agent's project.
273+
//
264274
// If empty, Dialogflow replaces sensitive info with `[redacted]` text.
265275
//
266276
// The template name will have one of the following formats:
@@ -281,7 +291,7 @@ message SecuritySettings {
281291
// Retains data in interaction logging for the specified number of days.
282292
// This does not apply to Cloud logging, which is owned by the user - not
283293
// Dialogflow.
284-
// User must Set a value lower than Dialogflow's default 30d TTL. Setting a
294+
// User must set a value lower than Dialogflow's default 365d TTL. Setting a
285295
// value higher than that has no effect.
286296
// A missing value or setting to 0 also means we use Dialogflow's default
287297
// TTL.

packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/version.proto

+56
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,15 @@ service Versions {
121121
metadata_type: "google.protobuf.Struct"
122122
};
123123
}
124+
125+
// Compares the specified base version with target version.
126+
rpc CompareVersions(CompareVersionsRequest) returns (CompareVersionsResponse) {
127+
option (google.api.http) = {
128+
post: "/v3beta1/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions"
129+
body: "*"
130+
};
131+
option (google.api.method_signature) = "base_version";
132+
}
124133
}
125134

126135
// Metadata associated with the long running operation for
@@ -281,3 +290,50 @@ message LoadVersionRequest {
281290
// will not be overridden (i.e. intents, entities, webhooks).
282291
bool allow_override_agent_resources = 2;
283292
}
293+
294+
// The request message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersions].
295+
message CompareVersionsRequest {
296+
// Required. Name of the base flow version to compare with the target version. Use
297+
// version ID `0` to indicate the draft version of the specified flow.
298+
//
299+
// Format: `projects/<Project ID>/locations/<Location ID>/agents/
300+
// <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
301+
string base_version = 1 [
302+
(google.api.field_behavior) = REQUIRED,
303+
(google.api.resource_reference) = {
304+
type: "dialogflow.googleapis.com/Version"
305+
}
306+
];
307+
308+
// Required. Name of the target flow version to compare with the
309+
// base version. Use version ID `0` to indicate the draft version of the
310+
// specified flow. Format: `projects/<Project ID>/locations/<Location
311+
// ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
312+
string target_version = 2 [
313+
(google.api.field_behavior) = REQUIRED,
314+
(google.api.resource_reference) = {
315+
type: "dialogflow.googleapis.com/Version"
316+
}
317+
];
318+
319+
// The language to compare the flow versions for.
320+
//
321+
// If not specified, the agent's default language is used.
322+
// [Many
323+
// languages](https://cloud.google.com/dialogflow/docs/reference/language) are
324+
// supported. Note: languages must be enabled in the agent before they can be
325+
// used.
326+
string language_code = 3;
327+
}
328+
329+
// The response message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersions].
330+
message CompareVersionsResponse {
331+
// JSON representation of the base version content.
332+
string base_version_content_json = 1;
333+
334+
// JSON representation of the target version content.
335+
string target_version_content_json = 2;
336+
337+
// The timestamp when the two version compares.
338+
google.protobuf.Timestamp compare_time = 3;
339+
}

packages/google-cloud-dialogflow-cx/protos/protos.d.ts

+225
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)