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

Commit

Permalink
chore: Enable requesting numeric enums in "transport=rest" responses …
Browse files Browse the repository at this point in the history
…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://togithub.com/googleapis/googleapis/commit/758f0d1217d9c7fe398aa5efb1057ce4b6409e55

Source-Link: https://togithub.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://togithub.com/googleapis/googleapis/commit/9140e5546470d945fc741f27707aa68f562088f0

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/502b50e61710bca3d774cb918314cb1ef39e6fe9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTAyYjUwZTYxNzEwYmNhM2Q3NzRjYjkxODMxNGNiMWVmMzllNmZlOSJ9
END_NESTED_COMMIT
  • Loading branch information
gcf-owl-bot[bot] committed Jan 5, 2023
1 parent df607cc commit 5b54b2e
Show file tree
Hide file tree
Showing 8 changed files with 465 additions and 13 deletions.
35 changes: 32 additions & 3 deletions protos/google/privacy/dlp/v2/dlp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,20 @@ message ExcludeInfoTypes {
repeated InfoType info_types = 1;
}

// The rule to exclude findings based on a hotword. For record inspection of
// tables, column names are considered hotwords. An example of this is to
// exclude a finding if a BigQuery column matches a specific pattern.
message ExcludeByHotword {
// Regular expression pattern defining what qualifies as a hotword.
CustomInfoType.Regex hotword_regex = 1;

// Range of characters within which the entire hotword must reside.
// The total length of the window cannot exceed 1000 characters.
// The windowBefore property in proximity should be set to 1 if the hotword
// needs to be included in a column header.
CustomInfoType.DetectionRule.Proximity proximity = 2;
}

// The rule that specifies conditions when findings of infoTypes specified in
// `InspectionRuleSet` are removed from results.
message ExclusionRule {
Expand All @@ -686,6 +700,10 @@ message ExclusionRule {

// Set of infoTypes for which findings would affect this rule.
ExcludeInfoTypes exclude_info_types = 3;

// Drop if the hotword rule is contained in the proximate context. For
// tabular data, the context includes the column name.
ExcludeByHotword exclude_by_hotword = 5;
}

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

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

// The item to de-identify. Will be treated as text.
//
// This value must be of type
// [Table][google.privacy.dlp.v2.Table] if your
// [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config]
// is a
// [RecordTransformations][google.privacy.dlp.v2.RecordTransformations]
// object.
ContentItem item = 4;

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

// The infoType is typically used in Google internally.
INTERNAL = 40;

// The infoType is typically used in New Zealand.
NEW_ZEALAND = 41;
}

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

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

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

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

// How the table is encrypted.
Expand Down
2 changes: 1 addition & 1 deletion protos/google/privacy/dlp/v2/storage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ message InfoType {
// creating a CustomInfoType, or one of the names listed
// at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
// a built-in type. When sending Cloud DLP results to Data Catalog, infoType
// names should conform to the pattern `[A-Za-z0-9$-_]{1,64}`.
// names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`.
string name = 1;

// Optional version name for this InfoType.
Expand Down
116 changes: 113 additions & 3 deletions protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5b54b2e

Please sign in to comment.