Skip to content

Commit 9a67fb2

Browse files
feat(dlp): update the API
#### dlp:v2 The following keys were added: - schemas.GooglePrivacyDlpV2DataProfileAction.properties.publishToChronicle.$ref - schemas.GooglePrivacyDlpV2DataProfileAction.properties.publishToChronicle.description - schemas.GooglePrivacyDlpV2DataProfileAction.properties.publishToScc.$ref - schemas.GooglePrivacyDlpV2DataProfileAction.properties.publishToScc.description - schemas.GooglePrivacyDlpV2PublishToChronicle.description - schemas.GooglePrivacyDlpV2PublishToChronicle.id - schemas.GooglePrivacyDlpV2PublishToChronicle.type - schemas.GooglePrivacyDlpV2PublishToSecurityCommandCenter.description - schemas.GooglePrivacyDlpV2PublishToSecurityCommandCenter.id - schemas.GooglePrivacyDlpV2PublishToSecurityCommandCenter.type
1 parent 7e9677f commit 9a67fb2

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

discovery/dlp-v2.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5015,7 +5015,7 @@
50155015
}
50165016
}
50175017
},
5018-
"revision": "20240825",
5018+
"revision": "20240901",
50195019
"rootUrl": "https://dlp.googleapis.com/",
50205020
"schemas": {
50215021
"GooglePrivacyDlpV2Action": {
@@ -6525,6 +6525,14 @@
65256525
"$ref": "GooglePrivacyDlpV2PubSubNotification",
65266526
"description": "Publish a message into the Pub/Sub topic."
65276527
},
6528+
"publishToChronicle": {
6529+
"$ref": "GooglePrivacyDlpV2PublishToChronicle",
6530+
"description": "Publishes generated data profiles to Google Security Operations. For more information, see [Use Sensitive Data Protection data in context-aware analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download)."
6531+
},
6532+
"publishToScc": {
6533+
"$ref": "GooglePrivacyDlpV2PublishToSecurityCommandCenter",
6534+
"description": "Publishes findings to SCC for each data profile."
6535+
},
65286536
"tagResources": {
65296537
"$ref": "GooglePrivacyDlpV2TagResources",
65306538
"description": "Tags the profiled resources with the specified tag values."
@@ -10405,6 +10413,12 @@
1040510413
"properties": {},
1040610414
"type": "object"
1040710415
},
10416+
"GooglePrivacyDlpV2PublishToChronicle": {
10417+
"description": "Message expressing intention to publish to Google Security Operations.",
10418+
"id": "GooglePrivacyDlpV2PublishToChronicle",
10419+
"properties": {},
10420+
"type": "object"
10421+
},
1040810422
"GooglePrivacyDlpV2PublishToPubSub": {
1040910423
"description": "Publish a message into a given Pub/Sub topic when DlpJob has completed. The message contains a single field, `DlpJobName`, which is equal to the finished job's [`DlpJob.name`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.dlpJobs#DlpJob). Compatible with: Inspect, Risk",
1041010424
"id": "GooglePrivacyDlpV2PublishToPubSub",
@@ -10416,6 +10430,12 @@
1041610430
},
1041710431
"type": "object"
1041810432
},
10433+
"GooglePrivacyDlpV2PublishToSecurityCommandCenter": {
10434+
"description": "If set, a summary finding will be created/updated in SCC for each profile.",
10435+
"id": "GooglePrivacyDlpV2PublishToSecurityCommandCenter",
10436+
"properties": {},
10437+
"type": "object"
10438+
},
1041910439
"GooglePrivacyDlpV2PublishToStackdriver": {
1042010440
"description": "Enable Stackdriver metric dlp.googleapis.com/finding_count. This will publish a metric to stack driver on each infotype requested and how many findings were found for it. CustomDetectors will be bucketed as 'Custom' under the Stackdriver label 'info_type'.",
1042110441
"id": "GooglePrivacyDlpV2PublishToStackdriver",

src/apis/dlp/v2.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,14 @@ export namespace dlp_v2 {
12211221
* Export data profiles into a provided location.
12221222
*/
12231223
exportData?: Schema$GooglePrivacyDlpV2Export;
1224+
/**
1225+
* Publishes generated data profiles to Google Security Operations. For more information, see [Use Sensitive Data Protection data in context-aware analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
1226+
*/
1227+
publishToChronicle?: Schema$GooglePrivacyDlpV2PublishToChronicle;
1228+
/**
1229+
* Publishes findings to SCC for each data profile.
1230+
*/
1231+
publishToScc?: Schema$GooglePrivacyDlpV2PublishToSecurityCommandCenter;
12241232
/**
12251233
* Publish a message into the Pub/Sub topic.
12261234
*/
@@ -3673,6 +3681,10 @@ export namespace dlp_v2 {
36733681
* Publish the result summary of a DlpJob to [Security Command Center](https://cloud.google.com/security-command-center). This action is available for only projects that belong to an organization. This action publishes the count of finding instances and their infoTypes. The summary of findings are persisted in Security Command Center and are governed by [service-specific policies for Security Command Center](https://cloud.google.com/terms/service-terms). Only a single instance of this action can be specified. Compatible with: Inspect
36743682
*/
36753683
export interface Schema$GooglePrivacyDlpV2PublishSummaryToCscc {}
3684+
/**
3685+
* Message expressing intention to publish to Google Security Operations.
3686+
*/
3687+
export interface Schema$GooglePrivacyDlpV2PublishToChronicle {}
36763688
/**
36773689
* Publish a message into a given Pub/Sub topic when DlpJob has completed. The message contains a single field, `DlpJobName`, which is equal to the finished job's [`DlpJob.name`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.dlpJobs#DlpJob). Compatible with: Inspect, Risk
36783690
*/
@@ -3682,6 +3694,10 @@ export namespace dlp_v2 {
36823694
*/
36833695
topic?: string | null;
36843696
}
3697+
/**
3698+
* If set, a summary finding will be created/updated in SCC for each profile.
3699+
*/
3700+
export interface Schema$GooglePrivacyDlpV2PublishToSecurityCommandCenter {}
36853701
/**
36863702
* Enable Stackdriver metric dlp.googleapis.com/finding_count. This will publish a metric to stack driver on each infotype requested and how many findings were found for it. CustomDetectors will be bucketed as 'Custom' under the Stackdriver label 'info_type'.
36873703
*/

0 commit comments

Comments
 (0)