@google-cloud/dlp 5.10.0 → 5.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +2 -2
- package/build/protos/google/privacy/dlp/v2/dlp.proto +286 -20
- package/build/protos/protos.d.ts +1830 -43
- package/build/protos/protos.js +10921 -6613
- package/build/protos/protos.json +323 -2
- package/build/src/v2/dlp_service_client.d.ts +6 -7
- package/build/src/v2/dlp_service_client.js +5 -7
- package/package.json +1 -1
package/build/protos/protos.json
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
+
"options": {
|
|
3
|
+
"syntax": "proto3"
|
|
4
|
+
},
|
|
2
5
|
"nested": {
|
|
3
6
|
"google": {
|
|
4
7
|
"nested": {
|
|
@@ -4963,6 +4966,8 @@
|
|
|
4963
4966
|
"oneof": [
|
|
4964
4967
|
"exportData",
|
|
4965
4968
|
"pubSubNotification",
|
|
4969
|
+
"publishToChronicle",
|
|
4970
|
+
"publishToScc",
|
|
4966
4971
|
"tagResources"
|
|
4967
4972
|
]
|
|
4968
4973
|
}
|
|
@@ -4976,6 +4981,14 @@
|
|
|
4976
4981
|
"type": "PubSubNotification",
|
|
4977
4982
|
"id": 2
|
|
4978
4983
|
},
|
|
4984
|
+
"publishToChronicle": {
|
|
4985
|
+
"type": "PublishToChronicle",
|
|
4986
|
+
"id": 3
|
|
4987
|
+
},
|
|
4988
|
+
"publishToScc": {
|
|
4989
|
+
"type": "PublishToSecurityCommandCenter",
|
|
4990
|
+
"id": 4
|
|
4991
|
+
},
|
|
4979
4992
|
"tagResources": {
|
|
4980
4993
|
"type": "TagResources",
|
|
4981
4994
|
"id": 8
|
|
@@ -5029,6 +5042,12 @@
|
|
|
5029
5042
|
"ERROR_CHANGED": 4
|
|
5030
5043
|
}
|
|
5031
5044
|
},
|
|
5045
|
+
"PublishToChronicle": {
|
|
5046
|
+
"fields": {}
|
|
5047
|
+
},
|
|
5048
|
+
"PublishToSecurityCommandCenter": {
|
|
5049
|
+
"fields": {}
|
|
5050
|
+
},
|
|
5032
5051
|
"TagResources": {
|
|
5033
5052
|
"fields": {
|
|
5034
5053
|
"tagConditions": {
|
|
@@ -5095,6 +5114,10 @@
|
|
|
5095
5114
|
"type": "string",
|
|
5096
5115
|
"id": 5
|
|
5097
5116
|
},
|
|
5117
|
+
"otherCloudStartingLocation": {
|
|
5118
|
+
"type": "OtherCloudDiscoveryStartingLocation",
|
|
5119
|
+
"id": 8
|
|
5120
|
+
},
|
|
5098
5121
|
"inspectTemplates": {
|
|
5099
5122
|
"rule": "repeated",
|
|
5100
5123
|
"type": "string",
|
|
@@ -5152,7 +5175,8 @@
|
|
|
5152
5175
|
"values": {
|
|
5153
5176
|
"BIG_QUERY_TABLE_TYPE_UNSPECIFIED": 0,
|
|
5154
5177
|
"BIG_QUERY_TABLE_TYPE_TABLE": 1,
|
|
5155
|
-
"BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE": 2
|
|
5178
|
+
"BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE": 2,
|
|
5179
|
+
"BIG_QUERY_TABLE_TYPE_SNAPSHOT": 3
|
|
5156
5180
|
}
|
|
5157
5181
|
},
|
|
5158
5182
|
"DataProfileUpdateFrequency": {
|
|
@@ -5204,6 +5228,10 @@
|
|
|
5204
5228
|
"type": "OrgConfig",
|
|
5205
5229
|
"id": 2
|
|
5206
5230
|
},
|
|
5231
|
+
"otherCloudStartingLocation": {
|
|
5232
|
+
"type": "OtherCloudDiscoveryStartingLocation",
|
|
5233
|
+
"id": 12
|
|
5234
|
+
},
|
|
5207
5235
|
"inspectTemplates": {
|
|
5208
5236
|
"rule": "repeated",
|
|
5209
5237
|
"type": "string",
|
|
@@ -5285,7 +5313,8 @@
|
|
|
5285
5313
|
"bigQueryTarget",
|
|
5286
5314
|
"cloudSqlTarget",
|
|
5287
5315
|
"secretsTarget",
|
|
5288
|
-
"cloudStorageTarget"
|
|
5316
|
+
"cloudStorageTarget",
|
|
5317
|
+
"otherCloudTarget"
|
|
5289
5318
|
]
|
|
5290
5319
|
}
|
|
5291
5320
|
},
|
|
@@ -5305,6 +5334,10 @@
|
|
|
5305
5334
|
"cloudStorageTarget": {
|
|
5306
5335
|
"type": "CloudStorageDiscoveryTarget",
|
|
5307
5336
|
"id": 4
|
|
5337
|
+
},
|
|
5338
|
+
"otherCloudTarget": {
|
|
5339
|
+
"type": "OtherCloudDiscoveryTarget",
|
|
5340
|
+
"id": 5
|
|
5308
5341
|
}
|
|
5309
5342
|
}
|
|
5310
5343
|
},
|
|
@@ -5956,6 +5989,257 @@
|
|
|
5956
5989
|
}
|
|
5957
5990
|
}
|
|
5958
5991
|
},
|
|
5992
|
+
"OtherCloudDiscoveryTarget": {
|
|
5993
|
+
"oneofs": {
|
|
5994
|
+
"cadence": {
|
|
5995
|
+
"oneof": [
|
|
5996
|
+
"generationCadence",
|
|
5997
|
+
"disabled"
|
|
5998
|
+
]
|
|
5999
|
+
}
|
|
6000
|
+
},
|
|
6001
|
+
"fields": {
|
|
6002
|
+
"dataSourceType": {
|
|
6003
|
+
"type": "DataSourceType",
|
|
6004
|
+
"id": 1,
|
|
6005
|
+
"options": {
|
|
6006
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
6007
|
+
}
|
|
6008
|
+
},
|
|
6009
|
+
"filter": {
|
|
6010
|
+
"type": "DiscoveryOtherCloudFilter",
|
|
6011
|
+
"id": 2,
|
|
6012
|
+
"options": {
|
|
6013
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
6014
|
+
}
|
|
6015
|
+
},
|
|
6016
|
+
"conditions": {
|
|
6017
|
+
"type": "DiscoveryOtherCloudConditions",
|
|
6018
|
+
"id": 3,
|
|
6019
|
+
"options": {
|
|
6020
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
6021
|
+
}
|
|
6022
|
+
},
|
|
6023
|
+
"generationCadence": {
|
|
6024
|
+
"type": "DiscoveryOtherCloudGenerationCadence",
|
|
6025
|
+
"id": 4
|
|
6026
|
+
},
|
|
6027
|
+
"disabled": {
|
|
6028
|
+
"type": "Disabled",
|
|
6029
|
+
"id": 5
|
|
6030
|
+
}
|
|
6031
|
+
}
|
|
6032
|
+
},
|
|
6033
|
+
"DiscoveryOtherCloudFilter": {
|
|
6034
|
+
"oneofs": {
|
|
6035
|
+
"filter": {
|
|
6036
|
+
"oneof": [
|
|
6037
|
+
"collection",
|
|
6038
|
+
"singleResource",
|
|
6039
|
+
"others"
|
|
6040
|
+
]
|
|
6041
|
+
}
|
|
6042
|
+
},
|
|
6043
|
+
"fields": {
|
|
6044
|
+
"collection": {
|
|
6045
|
+
"type": "OtherCloudResourceCollection",
|
|
6046
|
+
"id": 1
|
|
6047
|
+
},
|
|
6048
|
+
"singleResource": {
|
|
6049
|
+
"type": "OtherCloudSingleResourceReference",
|
|
6050
|
+
"id": 2
|
|
6051
|
+
},
|
|
6052
|
+
"others": {
|
|
6053
|
+
"type": "AllOtherResources",
|
|
6054
|
+
"id": 100,
|
|
6055
|
+
"options": {
|
|
6056
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
6057
|
+
}
|
|
6058
|
+
}
|
|
6059
|
+
}
|
|
6060
|
+
},
|
|
6061
|
+
"OtherCloudResourceCollection": {
|
|
6062
|
+
"oneofs": {
|
|
6063
|
+
"pattern": {
|
|
6064
|
+
"oneof": [
|
|
6065
|
+
"includeRegexes"
|
|
6066
|
+
]
|
|
6067
|
+
}
|
|
6068
|
+
},
|
|
6069
|
+
"fields": {
|
|
6070
|
+
"includeRegexes": {
|
|
6071
|
+
"type": "OtherCloudResourceRegexes",
|
|
6072
|
+
"id": 1
|
|
6073
|
+
}
|
|
6074
|
+
}
|
|
6075
|
+
},
|
|
6076
|
+
"OtherCloudResourceRegexes": {
|
|
6077
|
+
"fields": {
|
|
6078
|
+
"patterns": {
|
|
6079
|
+
"rule": "repeated",
|
|
6080
|
+
"type": "OtherCloudResourceRegex",
|
|
6081
|
+
"id": 1
|
|
6082
|
+
}
|
|
6083
|
+
}
|
|
6084
|
+
},
|
|
6085
|
+
"OtherCloudResourceRegex": {
|
|
6086
|
+
"oneofs": {
|
|
6087
|
+
"resourceRegex": {
|
|
6088
|
+
"oneof": [
|
|
6089
|
+
"amazonS3BucketRegex"
|
|
6090
|
+
]
|
|
6091
|
+
}
|
|
6092
|
+
},
|
|
6093
|
+
"fields": {
|
|
6094
|
+
"amazonS3BucketRegex": {
|
|
6095
|
+
"type": "AmazonS3BucketRegex",
|
|
6096
|
+
"id": 1
|
|
6097
|
+
}
|
|
6098
|
+
}
|
|
6099
|
+
},
|
|
6100
|
+
"AwsAccountRegex": {
|
|
6101
|
+
"fields": {
|
|
6102
|
+
"accountIdRegex": {
|
|
6103
|
+
"type": "string",
|
|
6104
|
+
"id": 1,
|
|
6105
|
+
"options": {
|
|
6106
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
6107
|
+
}
|
|
6108
|
+
}
|
|
6109
|
+
}
|
|
6110
|
+
},
|
|
6111
|
+
"AmazonS3BucketRegex": {
|
|
6112
|
+
"fields": {
|
|
6113
|
+
"awsAccountRegex": {
|
|
6114
|
+
"type": "AwsAccountRegex",
|
|
6115
|
+
"id": 1
|
|
6116
|
+
},
|
|
6117
|
+
"bucketNameRegex": {
|
|
6118
|
+
"type": "string",
|
|
6119
|
+
"id": 2,
|
|
6120
|
+
"options": {
|
|
6121
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
6122
|
+
}
|
|
6123
|
+
}
|
|
6124
|
+
}
|
|
6125
|
+
},
|
|
6126
|
+
"OtherCloudSingleResourceReference": {
|
|
6127
|
+
"oneofs": {
|
|
6128
|
+
"resource": {
|
|
6129
|
+
"oneof": [
|
|
6130
|
+
"amazonS3Bucket"
|
|
6131
|
+
]
|
|
6132
|
+
}
|
|
6133
|
+
},
|
|
6134
|
+
"fields": {
|
|
6135
|
+
"amazonS3Bucket": {
|
|
6136
|
+
"type": "AmazonS3Bucket",
|
|
6137
|
+
"id": 1
|
|
6138
|
+
}
|
|
6139
|
+
}
|
|
6140
|
+
},
|
|
6141
|
+
"AwsAccount": {
|
|
6142
|
+
"fields": {
|
|
6143
|
+
"accountId": {
|
|
6144
|
+
"type": "string",
|
|
6145
|
+
"id": 1,
|
|
6146
|
+
"options": {
|
|
6147
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
6148
|
+
}
|
|
6149
|
+
}
|
|
6150
|
+
}
|
|
6151
|
+
},
|
|
6152
|
+
"AmazonS3Bucket": {
|
|
6153
|
+
"fields": {
|
|
6154
|
+
"awsAccount": {
|
|
6155
|
+
"type": "AwsAccount",
|
|
6156
|
+
"id": 1
|
|
6157
|
+
},
|
|
6158
|
+
"bucketName": {
|
|
6159
|
+
"type": "string",
|
|
6160
|
+
"id": 2,
|
|
6161
|
+
"options": {
|
|
6162
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
6163
|
+
}
|
|
6164
|
+
}
|
|
6165
|
+
}
|
|
6166
|
+
},
|
|
6167
|
+
"DiscoveryOtherCloudConditions": {
|
|
6168
|
+
"oneofs": {
|
|
6169
|
+
"conditions": {
|
|
6170
|
+
"oneof": [
|
|
6171
|
+
"amazonS3BucketConditions"
|
|
6172
|
+
]
|
|
6173
|
+
}
|
|
6174
|
+
},
|
|
6175
|
+
"fields": {
|
|
6176
|
+
"minAge": {
|
|
6177
|
+
"type": "google.protobuf.Duration",
|
|
6178
|
+
"id": 1
|
|
6179
|
+
},
|
|
6180
|
+
"amazonS3BucketConditions": {
|
|
6181
|
+
"type": "AmazonS3BucketConditions",
|
|
6182
|
+
"id": 2
|
|
6183
|
+
}
|
|
6184
|
+
}
|
|
6185
|
+
},
|
|
6186
|
+
"AmazonS3BucketConditions": {
|
|
6187
|
+
"fields": {
|
|
6188
|
+
"bucketTypes": {
|
|
6189
|
+
"rule": "repeated",
|
|
6190
|
+
"type": "BucketType",
|
|
6191
|
+
"id": 1,
|
|
6192
|
+
"options": {
|
|
6193
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
6194
|
+
}
|
|
6195
|
+
},
|
|
6196
|
+
"objectStorageClasses": {
|
|
6197
|
+
"rule": "repeated",
|
|
6198
|
+
"type": "ObjectStorageClass",
|
|
6199
|
+
"id": 2,
|
|
6200
|
+
"options": {
|
|
6201
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
6202
|
+
}
|
|
6203
|
+
}
|
|
6204
|
+
},
|
|
6205
|
+
"nested": {
|
|
6206
|
+
"BucketType": {
|
|
6207
|
+
"values": {
|
|
6208
|
+
"TYPE_UNSPECIFIED": 0,
|
|
6209
|
+
"TYPE_ALL_SUPPORTED": 1,
|
|
6210
|
+
"TYPE_GENERAL_PURPOSE": 2
|
|
6211
|
+
}
|
|
6212
|
+
},
|
|
6213
|
+
"ObjectStorageClass": {
|
|
6214
|
+
"values": {
|
|
6215
|
+
"UNSPECIFIED": 0,
|
|
6216
|
+
"ALL_SUPPORTED_CLASSES": 1,
|
|
6217
|
+
"STANDARD": 2,
|
|
6218
|
+
"STANDARD_INFREQUENT_ACCESS": 4,
|
|
6219
|
+
"GLACIER_INSTANT_RETRIEVAL": 6,
|
|
6220
|
+
"INTELLIGENT_TIERING": 7
|
|
6221
|
+
}
|
|
6222
|
+
}
|
|
6223
|
+
}
|
|
6224
|
+
},
|
|
6225
|
+
"DiscoveryOtherCloudGenerationCadence": {
|
|
6226
|
+
"fields": {
|
|
6227
|
+
"refreshFrequency": {
|
|
6228
|
+
"type": "DataProfileUpdateFrequency",
|
|
6229
|
+
"id": 1,
|
|
6230
|
+
"options": {
|
|
6231
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
6232
|
+
}
|
|
6233
|
+
},
|
|
6234
|
+
"inspectTemplateModifiedCadence": {
|
|
6235
|
+
"type": "DiscoveryInspectTemplateModifiedCadence",
|
|
6236
|
+
"id": 2,
|
|
6237
|
+
"options": {
|
|
6238
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
6239
|
+
}
|
|
6240
|
+
}
|
|
6241
|
+
}
|
|
6242
|
+
},
|
|
5959
6243
|
"DiscoveryStartingLocation": {
|
|
5960
6244
|
"oneofs": {
|
|
5961
6245
|
"location": {
|
|
@@ -5976,6 +6260,43 @@
|
|
|
5976
6260
|
}
|
|
5977
6261
|
}
|
|
5978
6262
|
},
|
|
6263
|
+
"OtherCloudDiscoveryStartingLocation": {
|
|
6264
|
+
"oneofs": {
|
|
6265
|
+
"location": {
|
|
6266
|
+
"oneof": [
|
|
6267
|
+
"awsLocation"
|
|
6268
|
+
]
|
|
6269
|
+
}
|
|
6270
|
+
},
|
|
6271
|
+
"fields": {
|
|
6272
|
+
"awsLocation": {
|
|
6273
|
+
"type": "AwsDiscoveryStartingLocation",
|
|
6274
|
+
"id": 1
|
|
6275
|
+
}
|
|
6276
|
+
},
|
|
6277
|
+
"nested": {
|
|
6278
|
+
"AwsDiscoveryStartingLocation": {
|
|
6279
|
+
"oneofs": {
|
|
6280
|
+
"scope": {
|
|
6281
|
+
"oneof": [
|
|
6282
|
+
"accountId",
|
|
6283
|
+
"allAssetInventoryAssets"
|
|
6284
|
+
]
|
|
6285
|
+
}
|
|
6286
|
+
},
|
|
6287
|
+
"fields": {
|
|
6288
|
+
"accountId": {
|
|
6289
|
+
"type": "string",
|
|
6290
|
+
"id": 2
|
|
6291
|
+
},
|
|
6292
|
+
"allAssetInventoryAssets": {
|
|
6293
|
+
"type": "bool",
|
|
6294
|
+
"id": 3
|
|
6295
|
+
}
|
|
6296
|
+
}
|
|
6297
|
+
}
|
|
6298
|
+
}
|
|
6299
|
+
},
|
|
5979
6300
|
"AllOtherResources": {
|
|
5980
6301
|
"fields": {}
|
|
5981
6302
|
},
|
|
@@ -3,13 +3,9 @@ import type { Callback, CallOptions, Descriptors, ClientOptions, PaginationCallb
|
|
|
3
3
|
import { Transform } from 'stream';
|
|
4
4
|
import * as protos from '../../protos/protos';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* blocks or images.
|
|
10
|
-
* The service also includes methods for sensitive data redaction and
|
|
11
|
-
* scheduling of data scans on Google Cloud Platform based data sets.
|
|
12
|
-
*
|
|
6
|
+
* Sensitive Data Protection provides access to a powerful sensitive data
|
|
7
|
+
* inspection, classification, and de-identification platform that works
|
|
8
|
+
* on text, images, and Google Cloud storage repositories.
|
|
13
9
|
* To learn more about concepts and find how-to guides see
|
|
14
10
|
* https://cloud.google.com/sensitive-data-protection/docs/.
|
|
15
11
|
* @class
|
|
@@ -3593,6 +3589,7 @@ export declare class DlpServiceClient {
|
|
|
3593
3589
|
* * A restriction has the form of `{field} {operator} {value}`.
|
|
3594
3590
|
* * Supported fields/values:
|
|
3595
3591
|
* - `project_id` - The Google Cloud project ID.
|
|
3592
|
+
* - `account_id` - The AWS account ID.
|
|
3596
3593
|
* - `file_store_path` - The path like "gs://bucket".
|
|
3597
3594
|
* - `data_source_type` - The profile's data source type, like
|
|
3598
3595
|
* "google/storage/bucket".
|
|
@@ -3679,6 +3676,7 @@ export declare class DlpServiceClient {
|
|
|
3679
3676
|
* * A restriction has the form of `{field} {operator} {value}`.
|
|
3680
3677
|
* * Supported fields/values:
|
|
3681
3678
|
* - `project_id` - The Google Cloud project ID.
|
|
3679
|
+
* - `account_id` - The AWS account ID.
|
|
3682
3680
|
* - `file_store_path` - The path like "gs://bucket".
|
|
3683
3681
|
* - `data_source_type` - The profile's data source type, like
|
|
3684
3682
|
* "google/storage/bucket".
|
|
@@ -3760,6 +3758,7 @@ export declare class DlpServiceClient {
|
|
|
3760
3758
|
* * A restriction has the form of `{field} {operator} {value}`.
|
|
3761
3759
|
* * Supported fields/values:
|
|
3762
3760
|
* - `project_id` - The Google Cloud project ID.
|
|
3761
|
+
* - `account_id` - The AWS account ID.
|
|
3763
3762
|
* - `file_store_path` - The path like "gs://bucket".
|
|
3764
3763
|
* - `data_source_type` - The profile's data source type, like
|
|
3765
3764
|
* "google/storage/bucket".
|
|
@@ -27,13 +27,9 @@ const jsonProtos = require("../../protos/protos.json");
|
|
|
27
27
|
const gapicConfig = require("./dlp_service_client_config.json");
|
|
28
28
|
const version = require('../../../package.json').version;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* blocks or images.
|
|
34
|
-
* The service also includes methods for sensitive data redaction and
|
|
35
|
-
* scheduling of data scans on Google Cloud Platform based data sets.
|
|
36
|
-
*
|
|
30
|
+
* Sensitive Data Protection provides access to a powerful sensitive data
|
|
31
|
+
* inspection, classification, and de-identification platform that works
|
|
32
|
+
* on text, images, and Google Cloud storage repositories.
|
|
37
33
|
* To learn more about concepts and find how-to guides see
|
|
38
34
|
* https://cloud.google.com/sensitive-data-protection/docs/.
|
|
39
35
|
* @class
|
|
@@ -3017,6 +3013,7 @@ class DlpServiceClient {
|
|
|
3017
3013
|
* * A restriction has the form of `{field} {operator} {value}`.
|
|
3018
3014
|
* * Supported fields/values:
|
|
3019
3015
|
* - `project_id` - The Google Cloud project ID.
|
|
3016
|
+
* - `account_id` - The AWS account ID.
|
|
3020
3017
|
* - `file_store_path` - The path like "gs://bucket".
|
|
3021
3018
|
* - `data_source_type` - The profile's data source type, like
|
|
3022
3019
|
* "google/storage/bucket".
|
|
@@ -3112,6 +3109,7 @@ class DlpServiceClient {
|
|
|
3112
3109
|
* * A restriction has the form of `{field} {operator} {value}`.
|
|
3113
3110
|
* * Supported fields/values:
|
|
3114
3111
|
* - `project_id` - The Google Cloud project ID.
|
|
3112
|
+
* - `account_id` - The AWS account ID.
|
|
3115
3113
|
* - `file_store_path` - The path like "gs://bucket".
|
|
3116
3114
|
* - `data_source_type` - The profile's data source type, like
|
|
3117
3115
|
* "google/storage/bucket".
|