From c32baf03aeee40bae4944e45c50e8e9bfc7cafd6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Fri, 2 Feb 2024 01:30:39 +0000 Subject: [PATCH] feat(dlp): update the API #### dlp:v2 The following keys were added: - schemas.GooglePrivacyDlpV2DataSourceType.description - schemas.GooglePrivacyDlpV2DataSourceType.id - schemas.GooglePrivacyDlpV2DataSourceType.properties.dataSource.description - schemas.GooglePrivacyDlpV2DataSourceType.properties.dataSource.readOnly - schemas.GooglePrivacyDlpV2DataSourceType.properties.dataSource.type - schemas.GooglePrivacyDlpV2DataSourceType.type - schemas.GooglePrivacyDlpV2TableDataProfile.properties.dataSourceType.$ref - schemas.GooglePrivacyDlpV2TableDataProfile.properties.dataSourceType.description The following keys were changed: - resources.projects.resources.locations.resources.dlpJobs.methods.finish.parameters.name.description --- discovery/dlp-v2.json | 20 ++++++++++++++++++-- src/apis/dlp/v2.ts | 15 ++++++++++++++- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/discovery/dlp-v2.json b/discovery/dlp-v2.json index 12998b8c4d..949138d148 100644 --- a/discovery/dlp-v2.json +++ b/discovery/dlp-v2.json @@ -2838,7 +2838,7 @@ ], "parameters": { "name": { - "description": "Required. The name of the DlpJob resource to be cancelled.", + "description": "Required. The name of the DlpJob resource to be finished.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/dlpJobs/[^/]+$", "required": true, @@ -3714,7 +3714,7 @@ } } }, - "revision": "20231210", + "revision": "20240128", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -5171,6 +5171,18 @@ }, "type": "object" }, + "GooglePrivacyDlpV2DataSourceType": { + "description": "Message used to identify the type of resource being profiled.", + "id": "GooglePrivacyDlpV2DataSourceType", + "properties": { + "dataSource": { + "description": "Output only. An identifying string to the type of resource being profiled. Current values: google/bigquery/table, google/project", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2DatastoreKey": { "description": "Record key for a finding in Cloud Datastore.", "id": "GooglePrivacyDlpV2DatastoreKey", @@ -8847,6 +8859,10 @@ "$ref": "GooglePrivacyDlpV2DataRiskLevel", "description": "The data risk level of this table." }, + "dataSourceType": { + "$ref": "GooglePrivacyDlpV2DataSourceType", + "description": "The resource type that was profiled." + }, "datasetId": { "description": "The BigQuery dataset ID.", "type": "string" diff --git a/src/apis/dlp/v2.ts b/src/apis/dlp/v2.ts index e7629b4e8b..73ffa9b53e 100644 --- a/src/apis/dlp/v2.ts +++ b/src/apis/dlp/v2.ts @@ -1117,6 +1117,15 @@ export namespace dlp_v2 { */ score?: string | null; } + /** + * Message used to identify the type of resource being profiled. + */ + export interface Schema$GooglePrivacyDlpV2DataSourceType { + /** + * Output only. An identifying string to the type of resource being profiled. Current values: google/bigquery/table, google/project + */ + dataSource?: string | null; + } /** * Record key for a finding in Cloud Datastore. */ @@ -3643,6 +3652,10 @@ export namespace dlp_v2 { * The Google Cloud project ID that owns the BigQuery dataset. */ datasetProjectId?: string | null; + /** + * The resource type that was profiled. + */ + dataSourceType?: Schema$GooglePrivacyDlpV2DataSourceType; /** * How the table is encrypted. */ @@ -13758,7 +13771,7 @@ export namespace dlp_v2 { export interface Params$Resource$Projects$Locations$Dlpjobs$Finish extends StandardParameters { /** - * Required. The name of the DlpJob resource to be cancelled. + * Required. The name of the DlpJob resource to be finished. */ name?: string;