Skip to content

Commit 9140e55

Browse files
Google APIscopybara-github
authored andcommitted
feat: ExcludeByHotword added as an ExclusionRule type, NEW_ZEALAND added as a LocationCategory value
PiperOrigin-RevId: 487581128
1 parent 675e60c commit 9140e55

2 files changed

Lines changed: 33 additions & 4 deletions

File tree

google/privacy/dlp/v2/dlp.proto

Lines changed: 32 additions & 3 deletions
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.

google/privacy/dlp/v2/storage.proto

Lines changed: 1 addition & 1 deletion
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.

0 commit comments

Comments
 (0)