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

Commit 5b54b2e

Browse files
chore: Enable requesting numeric enums in "transport=rest" responses for services supporting this (Java, Go, Python, PHP, TypeScript, C#, and Ruby), even if they do not yet turn on REST transport (#785)
- [ ] Regenerate this pull request now. chore: disallow "transport=rest" for services where numeric enums are not confirmed to be supported (except in PHP and Java) PiperOrigin-RevId: 493113566 Source-Link: https://github.com/googleapis/googleapis/commit/758f0d1217d9c7fe398aa5efb1057ce4b6409e55 Source-Link: https://github.com/googleapis/googleapis-gen/commit/78bd8f05e1276363eb14eae70e91fe4bc20703ab Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzhiZDhmMDVlMTI3NjM2M2ViMTRlYWU3MGU5MWZlNGJjMjA3MDNhYiJ9 BEGIN_NESTED_COMMIT feat: ExcludeByHotword added as an ExclusionRule type, NEW_ZEALAND added as a LocationCategory value PiperOrigin-RevId: 487581128 Source-Link: https://github.com/googleapis/googleapis/commit/9140e5546470d945fc741f27707aa68f562088f0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/502b50e61710bca3d774cb918314cb1ef39e6fe9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTAyYjUwZTYxNzEwYmNhM2Q3NzRjYjkxODMxNGNiMWVmMzllNmZlOSJ9 END_NESTED_COMMIT
1 parent df607cc commit 5b54b2e

File tree

8 files changed

+465
-13
lines changed

8 files changed

+465
-13
lines changed

protos/google/privacy/dlp/v2/dlp.proto

+32-3
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,20 @@ message ExcludeInfoTypes {
673673
repeated InfoType info_types = 1;
674674
}
675675

676+
// The rule to exclude findings based on a hotword. For record inspection of
677+
// tables, column names are considered hotwords. An example of this is to
678+
// exclude a finding if a BigQuery column matches a specific pattern.
679+
message ExcludeByHotword {
680+
// Regular expression pattern defining what qualifies as a hotword.
681+
CustomInfoType.Regex hotword_regex = 1;
682+
683+
// Range of characters within which the entire hotword must reside.
684+
// The total length of the window cannot exceed 1000 characters.
685+
// The windowBefore property in proximity should be set to 1 if the hotword
686+
// needs to be included in a column header.
687+
CustomInfoType.DetectionRule.Proximity proximity = 2;
688+
}
689+
676690
// The rule that specifies conditions when findings of infoTypes specified in
677691
// `InspectionRuleSet` are removed from results.
678692
message ExclusionRule {
@@ -686,6 +700,10 @@ message ExclusionRule {
686700

687701
// Set of infoTypes for which findings would affect this rule.
688702
ExcludeInfoTypes exclude_info_types = 3;
703+
704+
// Drop if the hotword rule is contained in the proximate context. For
705+
// tabular data, the context includes the column name.
706+
ExcludeByHotword exclude_by_hotword = 5;
689707
}
690708

691709
// How the rule is applied, see MatchingType documentation for details.
@@ -862,7 +880,6 @@ message ByteContentItem {
862880
bytes data = 2;
863881
}
864882

865-
// Container structure for the content to inspect.
866883
message ContentItem {
867884
// Data of the item either in the byte array or UTF-8 string form, or table.
868885
oneof data_item {
@@ -1289,6 +1306,13 @@ message DeidentifyContentRequest {
12891306
InspectConfig inspect_config = 3;
12901307

12911308
// The item to de-identify. Will be treated as text.
1309+
//
1310+
// This value must be of type
1311+
// [Table][google.privacy.dlp.v2.Table] if your
1312+
// [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config]
1313+
// is a
1314+
// [RecordTransformations][google.privacy.dlp.v2.RecordTransformations]
1315+
// object.
12921316
ContentItem item = 4;
12931317

12941318
// Template to use. Any configuration directly specified in
@@ -1705,6 +1729,9 @@ message InfoTypeCategory {
17051729

17061730
// The infoType is typically used in Google internally.
17071731
INTERNAL = 40;
1732+
1733+
// The infoType is typically used in New Zealand.
1734+
NEW_ZEALAND = 41;
17081735
}
17091736

17101737
// Enum of the current industries in the category.
@@ -3716,8 +3743,9 @@ message Action {
37163743
// Create a de-identified copy of the input data.
37173744
Deidentify deidentify = 7;
37183745

3719-
// Enable email notification for project owners and editors on job's
3720-
// completion/failure.
3746+
// Sends an email when the job completes. The email goes to IAM project
3747+
// owners and technical [Essential
3748+
// Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
37213749
JobNotificationEmails job_notification_emails = 8;
37223750

37233751
// Enable Stackdriver metric dlp.googleapis.com/finding_count.
@@ -5249,6 +5277,7 @@ message TableDataProfile {
52495277
int64 table_size_bytes = 12;
52505278

52515279
// Number of rows in the table when the profile was generated.
5280+
// This will not be populated for BigLake tables.
52525281
int64 row_count = 13;
52535282

52545283
// How the table is encrypted.

protos/google/privacy/dlp/v2/storage.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ message InfoType {
3333
// creating a CustomInfoType, or one of the names listed
3434
// at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
3535
// a built-in type. When sending Cloud DLP results to Data Catalog, infoType
36-
// names should conform to the pattern `[A-Za-z0-9$-_]{1,64}`.
36+
// names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`.
3737
string name = 1;
3838

3939
// Optional version name for this InfoType.

protos/protos.d.ts

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

0 commit comments

Comments
 (0)