@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/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/PACKAGE NAME?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [5.12.0](https://github.com/googleapis/google-cloud-node/compare/dlp-v5.11.0...dlp-v5.12.0) (2024-10-30)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* [dlp] discovery of BigQuery snapshots ([#5757](https://github.com/googleapis/google-cloud-node/issues/5757)) ([3f262fc](https://github.com/googleapis/google-cloud-node/commit/3f262fc59aa6054bd22f6868e76e7c686a9444a3))
|
|
13
|
+
|
|
14
|
+
## [5.11.0](https://github.com/googleapis/google-cloud-node/compare/dlp-v5.10.0...dlp-v5.11.0) (2024-09-24)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* [dlp] action for publishing data profiles to SecOps (formelly known as Chronicle) ([#5691](https://github.com/googleapis/google-cloud-node/issues/5691)) ([106d029](https://github.com/googleapis/google-cloud-node/commit/106d029eacd05fc890dffd1169a19d4596d93c54))
|
|
20
|
+
|
|
7
21
|
## [5.10.0](https://github.com/googleapis/google-cloud-node/compare/dlp-v5.9.0...dlp-v5.10.0) (2024-08-19)
|
|
8
22
|
|
|
9
23
|
|
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
|
|
|
44
44
|
1. [Select or create a Cloud Platform project][projects].
|
|
45
45
|
1. [Enable billing for your project][billing].
|
|
46
46
|
1. [Enable the Cloud Data Loss Prevention API][enable_api].
|
|
47
|
-
1. [Set up authentication
|
|
47
|
+
1. [Set up authentication][auth] so you can access the
|
|
48
48
|
API from your local workstation.
|
|
49
49
|
|
|
50
50
|
### Installing the client library
|
|
@@ -250,4 +250,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
|
|
|
250
250
|
[projects]: https://console.cloud.google.com/project
|
|
251
251
|
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
|
|
252
252
|
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=dlp.googleapis.com
|
|
253
|
-
[auth]: https://cloud.google.com/docs/authentication/
|
|
253
|
+
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
|
|
@@ -47,13 +47,9 @@ option (google.api.resource_definition) = {
|
|
|
47
47
|
pattern: "organizations/{organization}/locations/{location}"
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
//
|
|
53
|
-
// blocks or images.
|
|
54
|
-
// The service also includes methods for sensitive data redaction and
|
|
55
|
-
// scheduling of data scans on Google Cloud Platform based data sets.
|
|
56
|
-
//
|
|
50
|
+
// Sensitive Data Protection provides access to a powerful sensitive data
|
|
51
|
+
// inspection, classification, and de-identification platform that works
|
|
52
|
+
// on text, images, and Google Cloud storage repositories.
|
|
57
53
|
// To learn more about concepts and find how-to guides see
|
|
58
54
|
// https://cloud.google.com/sensitive-data-protection/docs/.
|
|
59
55
|
service DlpService {
|
|
@@ -4897,6 +4893,12 @@ message DataProfileAction {
|
|
|
4897
4893
|
ERROR_CHANGED = 4;
|
|
4898
4894
|
}
|
|
4899
4895
|
|
|
4896
|
+
// Message expressing intention to publish to Google Security Operations.
|
|
4897
|
+
message PublishToChronicle {}
|
|
4898
|
+
|
|
4899
|
+
// If set, a summary finding will be created/updated in SCC for each profile.
|
|
4900
|
+
message PublishToSecurityCommandCenter {}
|
|
4901
|
+
|
|
4900
4902
|
// If set, attaches the [tags]
|
|
4901
4903
|
// (https://cloud.google.com/resource-manager/docs/tags/tags-overview)
|
|
4902
4904
|
// provided to profiled resources. Tags support [access
|
|
@@ -4959,6 +4961,15 @@ message DataProfileAction {
|
|
|
4959
4961
|
// Publish a message into the Pub/Sub topic.
|
|
4960
4962
|
PubSubNotification pub_sub_notification = 2;
|
|
4961
4963
|
|
|
4964
|
+
// Publishes generated data profiles to Google Security Operations.
|
|
4965
|
+
// For more information, see [Use Sensitive Data Protection data in
|
|
4966
|
+
// context-aware
|
|
4967
|
+
// analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
|
|
4968
|
+
PublishToChronicle publish_to_chronicle = 3;
|
|
4969
|
+
|
|
4970
|
+
// Publishes findings to SCC for each data profile.
|
|
4971
|
+
PublishToSecurityCommandCenter publish_to_scc = 4;
|
|
4972
|
+
|
|
4962
4973
|
// Tags the profiled resources with the specified tag values.
|
|
4963
4974
|
TagResources tag_resources = 8;
|
|
4964
4975
|
}
|
|
@@ -4980,6 +4991,9 @@ message DataProfileJobConfig {
|
|
|
4980
4991
|
// that are profiled, and the Cloud DLP API must be enabled.
|
|
4981
4992
|
string project_id = 5;
|
|
4982
4993
|
|
|
4994
|
+
// Must be set only when scanning other clouds.
|
|
4995
|
+
OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8;
|
|
4996
|
+
|
|
4983
4997
|
// Detection logic for profile generation.
|
|
4984
4998
|
//
|
|
4985
4999
|
// Not all template features are used by profiles. FindingLimits,
|
|
@@ -5033,8 +5047,8 @@ message BigQueryTableTypes {
|
|
|
5033
5047
|
repeated BigQueryTableType types = 1;
|
|
5034
5048
|
}
|
|
5035
5049
|
|
|
5036
|
-
// Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW,
|
|
5037
|
-
//
|
|
5050
|
+
// Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW, and
|
|
5051
|
+
// non-BigLake external tables are not supported.
|
|
5038
5052
|
enum BigQueryTableTypeCollection {
|
|
5039
5053
|
// Unused.
|
|
5040
5054
|
BIG_QUERY_COLLECTION_UNSPECIFIED = 0;
|
|
@@ -5052,8 +5066,8 @@ enum BigQueryTableTypeCollection {
|
|
|
5052
5066
|
BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES = 2;
|
|
5053
5067
|
}
|
|
5054
5068
|
|
|
5055
|
-
// Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW,
|
|
5056
|
-
//
|
|
5069
|
+
// Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW, and
|
|
5070
|
+
// non-BigLake external tables are not supported.
|
|
5057
5071
|
enum BigQueryTableType {
|
|
5058
5072
|
// Unused.
|
|
5059
5073
|
BIG_QUERY_TABLE_TYPE_UNSPECIFIED = 0;
|
|
@@ -5063,6 +5077,9 @@ enum BigQueryTableType {
|
|
|
5063
5077
|
|
|
5064
5078
|
// A table that references data stored in Cloud Storage.
|
|
5065
5079
|
BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE = 2;
|
|
5080
|
+
|
|
5081
|
+
// A snapshot of a BigQuery table.
|
|
5082
|
+
BIG_QUERY_TABLE_TYPE_SNAPSHOT = 3;
|
|
5066
5083
|
}
|
|
5067
5084
|
|
|
5068
5085
|
// How frequently data profiles can be updated. New options can be added at a
|
|
@@ -5144,6 +5161,9 @@ message DiscoveryConfig {
|
|
|
5144
5161
|
// Only set when the parent is an org.
|
|
5145
5162
|
OrgConfig org_config = 2;
|
|
5146
5163
|
|
|
5164
|
+
// Must be set only when scanning other clouds.
|
|
5165
|
+
OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12;
|
|
5166
|
+
|
|
5147
5167
|
// Detection logic for profile generation.
|
|
5148
5168
|
//
|
|
5149
5169
|
// Not all template features are used by Discovery. FindingLimits,
|
|
@@ -5210,6 +5230,10 @@ message DiscoveryTarget {
|
|
|
5210
5230
|
// Cloud Storage target for Discovery. The first target to match a table
|
|
5211
5231
|
// will be the one applied.
|
|
5212
5232
|
CloudStorageDiscoveryTarget cloud_storage_target = 4;
|
|
5233
|
+
|
|
5234
|
+
// Other clouds target for discovery. The first target to match a resource
|
|
5235
|
+
// will be the one applied.
|
|
5236
|
+
OtherCloudDiscoveryTarget other_cloud_target = 5;
|
|
5213
5237
|
}
|
|
5214
5238
|
}
|
|
5215
5239
|
|
|
@@ -5821,6 +5845,208 @@ message DiscoveryFileStoreConditions {
|
|
|
5821
5845
|
}
|
|
5822
5846
|
}
|
|
5823
5847
|
|
|
5848
|
+
// Target used to match against for discovery of resources from other clouds.
|
|
5849
|
+
// An [AWS connector in Security Command Center
|
|
5850
|
+
// (Enterprise](https://cloud.google.com/security-command-center/docs/connect-scc-to-aws)
|
|
5851
|
+
// is required to use this feature.
|
|
5852
|
+
message OtherCloudDiscoveryTarget {
|
|
5853
|
+
// Required. The type of data profiles generated by this discovery target.
|
|
5854
|
+
// Supported values are:
|
|
5855
|
+
// * aws/s3/bucket
|
|
5856
|
+
DataSourceType data_source_type = 1 [(google.api.field_behavior) = REQUIRED];
|
|
5857
|
+
|
|
5858
|
+
// Required. The resources that the discovery cadence applies to. The
|
|
5859
|
+
// first target with a matching filter will be the one to apply to a resource.
|
|
5860
|
+
DiscoveryOtherCloudFilter filter = 2 [(google.api.field_behavior) = REQUIRED];
|
|
5861
|
+
|
|
5862
|
+
// Optional. In addition to matching the filter, these conditions must be true
|
|
5863
|
+
// before a profile is generated.
|
|
5864
|
+
DiscoveryOtherCloudConditions conditions = 3
|
|
5865
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
5866
|
+
|
|
5867
|
+
// Type of cadence.
|
|
5868
|
+
oneof cadence {
|
|
5869
|
+
// How often and when to update data profiles. New resources that match both
|
|
5870
|
+
// the filter and conditions are scanned as quickly as possible depending on
|
|
5871
|
+
// system capacity.
|
|
5872
|
+
DiscoveryOtherCloudGenerationCadence generation_cadence = 4;
|
|
5873
|
+
|
|
5874
|
+
// Disable profiling for resources that match this filter.
|
|
5875
|
+
Disabled disabled = 5;
|
|
5876
|
+
}
|
|
5877
|
+
}
|
|
5878
|
+
|
|
5879
|
+
// Determines which resources from the other cloud will have profiles generated.
|
|
5880
|
+
// Includes the ability to filter by resource names.
|
|
5881
|
+
message DiscoveryOtherCloudFilter {
|
|
5882
|
+
// Whether the filter applies to a specific set of resources or all
|
|
5883
|
+
// other resources. The first filter to match will be applied, regardless of
|
|
5884
|
+
// the condition. Defaults to `others` if none is set.
|
|
5885
|
+
oneof filter {
|
|
5886
|
+
// A collection of resources for this filter to apply to.
|
|
5887
|
+
OtherCloudResourceCollection collection = 1;
|
|
5888
|
+
|
|
5889
|
+
// The resource to scan. Configs using this filter can only have one target
|
|
5890
|
+
// (the target with this single resource reference).
|
|
5891
|
+
OtherCloudSingleResourceReference single_resource = 2;
|
|
5892
|
+
|
|
5893
|
+
// Optional. Catch-all. This should always be the last target in the list
|
|
5894
|
+
// because anything above it will apply first. Should only appear once in a
|
|
5895
|
+
// configuration. If none is specified, a default one will be added
|
|
5896
|
+
// automatically.
|
|
5897
|
+
AllOtherResources others = 100 [(google.api.field_behavior) = OPTIONAL];
|
|
5898
|
+
}
|
|
5899
|
+
}
|
|
5900
|
+
|
|
5901
|
+
// Match resources using regex filters.
|
|
5902
|
+
message OtherCloudResourceCollection {
|
|
5903
|
+
// The first filter containing a pattern that matches a resource will be used.
|
|
5904
|
+
oneof pattern {
|
|
5905
|
+
// A collection of regular expressions to match a resource against.
|
|
5906
|
+
OtherCloudResourceRegexes include_regexes = 1;
|
|
5907
|
+
}
|
|
5908
|
+
}
|
|
5909
|
+
|
|
5910
|
+
// A collection of regular expressions to determine what resources to match
|
|
5911
|
+
// against.
|
|
5912
|
+
message OtherCloudResourceRegexes {
|
|
5913
|
+
// A group of regular expression patterns to match against one or more
|
|
5914
|
+
// resources.
|
|
5915
|
+
// Maximum of 100 entries. The sum of all regular expression's length can't
|
|
5916
|
+
// exceed 10 KiB.
|
|
5917
|
+
repeated OtherCloudResourceRegex patterns = 1;
|
|
5918
|
+
}
|
|
5919
|
+
|
|
5920
|
+
// A pattern to match against one or more resources. At least one pattern must
|
|
5921
|
+
// be specified. Regular expressions use RE2
|
|
5922
|
+
// [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
|
|
5923
|
+
// under the google/re2 repository on GitHub.
|
|
5924
|
+
message OtherCloudResourceRegex {
|
|
5925
|
+
// The type of resource regex to use.
|
|
5926
|
+
oneof resource_regex {
|
|
5927
|
+
// Regex for Amazon S3 buckets.
|
|
5928
|
+
AmazonS3BucketRegex amazon_s3_bucket_regex = 1;
|
|
5929
|
+
}
|
|
5930
|
+
}
|
|
5931
|
+
|
|
5932
|
+
// AWS account regex.
|
|
5933
|
+
message AwsAccountRegex {
|
|
5934
|
+
// Optional. Regex to test the AWS account ID against.
|
|
5935
|
+
// If empty, all accounts match.
|
|
5936
|
+
string account_id_regex = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
5937
|
+
}
|
|
5938
|
+
|
|
5939
|
+
// Amazon S3 bucket regex.
|
|
5940
|
+
message AmazonS3BucketRegex {
|
|
5941
|
+
// The AWS account regex.
|
|
5942
|
+
AwsAccountRegex aws_account_regex = 1;
|
|
5943
|
+
|
|
5944
|
+
// Optional. Regex to test the bucket name against.
|
|
5945
|
+
// If empty, all buckets match.
|
|
5946
|
+
string bucket_name_regex = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
5947
|
+
}
|
|
5948
|
+
|
|
5949
|
+
// Identifies a single resource, like a single Amazon S3 bucket.
|
|
5950
|
+
message OtherCloudSingleResourceReference {
|
|
5951
|
+
// The resource to scan.
|
|
5952
|
+
oneof resource {
|
|
5953
|
+
// Amazon S3 bucket.
|
|
5954
|
+
AmazonS3Bucket amazon_s3_bucket = 1;
|
|
5955
|
+
}
|
|
5956
|
+
}
|
|
5957
|
+
|
|
5958
|
+
// AWS account.
|
|
5959
|
+
message AwsAccount {
|
|
5960
|
+
// Required. AWS account ID.
|
|
5961
|
+
string account_id = 1 [(google.api.field_behavior) = REQUIRED];
|
|
5962
|
+
}
|
|
5963
|
+
|
|
5964
|
+
// Amazon S3 bucket.
|
|
5965
|
+
message AmazonS3Bucket {
|
|
5966
|
+
// The AWS account.
|
|
5967
|
+
AwsAccount aws_account = 1;
|
|
5968
|
+
|
|
5969
|
+
// Required. The bucket name.
|
|
5970
|
+
string bucket_name = 2 [(google.api.field_behavior) = REQUIRED];
|
|
5971
|
+
}
|
|
5972
|
+
|
|
5973
|
+
// Requirements that must be true before a resource is profiled for the first
|
|
5974
|
+
// time.
|
|
5975
|
+
message DiscoveryOtherCloudConditions {
|
|
5976
|
+
// Minimum age a resource must be before Cloud DLP can profile it. Value must
|
|
5977
|
+
// be 1 hour or greater.
|
|
5978
|
+
google.protobuf.Duration min_age = 1;
|
|
5979
|
+
|
|
5980
|
+
// The conditions to apply.
|
|
5981
|
+
oneof conditions {
|
|
5982
|
+
// Amazon S3 bucket conditions.
|
|
5983
|
+
AmazonS3BucketConditions amazon_s3_bucket_conditions = 2;
|
|
5984
|
+
}
|
|
5985
|
+
}
|
|
5986
|
+
|
|
5987
|
+
// Amazon S3 bucket conditions.
|
|
5988
|
+
message AmazonS3BucketConditions {
|
|
5989
|
+
// Supported Amazon S3 bucket types.
|
|
5990
|
+
// Defaults to TYPE_ALL_SUPPORTED.
|
|
5991
|
+
enum BucketType {
|
|
5992
|
+
// Unused.
|
|
5993
|
+
TYPE_UNSPECIFIED = 0;
|
|
5994
|
+
|
|
5995
|
+
// All supported classes.
|
|
5996
|
+
TYPE_ALL_SUPPORTED = 1;
|
|
5997
|
+
|
|
5998
|
+
// A general purpose Amazon S3 bucket.
|
|
5999
|
+
TYPE_GENERAL_PURPOSE = 2;
|
|
6000
|
+
}
|
|
6001
|
+
|
|
6002
|
+
// Supported Amazon S3 object storage classes.
|
|
6003
|
+
// Defaults to ALL_SUPPORTED_CLASSES.
|
|
6004
|
+
enum ObjectStorageClass {
|
|
6005
|
+
// Unused.
|
|
6006
|
+
UNSPECIFIED = 0;
|
|
6007
|
+
|
|
6008
|
+
// All supported classes.
|
|
6009
|
+
ALL_SUPPORTED_CLASSES = 1;
|
|
6010
|
+
|
|
6011
|
+
// Standard object class.
|
|
6012
|
+
STANDARD = 2;
|
|
6013
|
+
|
|
6014
|
+
// Standard - infrequent access object class.
|
|
6015
|
+
STANDARD_INFREQUENT_ACCESS = 4;
|
|
6016
|
+
|
|
6017
|
+
// Glacier - instant retrieval object class.
|
|
6018
|
+
GLACIER_INSTANT_RETRIEVAL = 6;
|
|
6019
|
+
|
|
6020
|
+
// Objects in the S3 Intelligent-Tiering access tiers.
|
|
6021
|
+
INTELLIGENT_TIERING = 7;
|
|
6022
|
+
}
|
|
6023
|
+
|
|
6024
|
+
// Optional. Bucket types that should be profiled.
|
|
6025
|
+
// Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
|
|
6026
|
+
repeated BucketType bucket_types = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
6027
|
+
|
|
6028
|
+
// Optional. Object classes that should be profiled.
|
|
6029
|
+
// Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
|
|
6030
|
+
repeated ObjectStorageClass object_storage_classes = 2
|
|
6031
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
6032
|
+
}
|
|
6033
|
+
|
|
6034
|
+
// How often existing resources should have their profiles refreshed.
|
|
6035
|
+
// New resources are scanned as quickly as possible depending on system
|
|
6036
|
+
// capacity.
|
|
6037
|
+
message DiscoveryOtherCloudGenerationCadence {
|
|
6038
|
+
// Optional. Frequency to update profiles regardless of whether the underlying
|
|
6039
|
+
// resource has changes. Defaults to never.
|
|
6040
|
+
DataProfileUpdateFrequency refresh_frequency = 1
|
|
6041
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
6042
|
+
|
|
6043
|
+
// Optional. Governs when to update data profiles when the inspection rules
|
|
6044
|
+
// defined by the `InspectTemplate` change.
|
|
6045
|
+
// If not set, changing the template will not cause a data profile to update.
|
|
6046
|
+
DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2
|
|
6047
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
6048
|
+
}
|
|
6049
|
+
|
|
5824
6050
|
// The location to begin a discovery scan. Denotes an organization ID or folder
|
|
5825
6051
|
// ID within an organization.
|
|
5826
6052
|
message DiscoveryStartingLocation {
|
|
@@ -5834,6 +6060,31 @@ message DiscoveryStartingLocation {
|
|
|
5834
6060
|
}
|
|
5835
6061
|
}
|
|
5836
6062
|
|
|
6063
|
+
// The other cloud starting location for discovery.
|
|
6064
|
+
message OtherCloudDiscoveryStartingLocation {
|
|
6065
|
+
// The AWS starting location for discovery.
|
|
6066
|
+
message AwsDiscoveryStartingLocation {
|
|
6067
|
+
// The scope of this starting location.
|
|
6068
|
+
oneof scope {
|
|
6069
|
+
// The AWS account ID that this discovery config applies to.
|
|
6070
|
+
// Within an AWS organization, you can find the AWS account ID inside an
|
|
6071
|
+
// AWS account ARN. Example:
|
|
6072
|
+
// arn:{partition}:organizations::{management_account_id}:account/{org_id}/{account_id}
|
|
6073
|
+
string account_id = 2;
|
|
6074
|
+
|
|
6075
|
+
// All AWS assets stored in Asset Inventory that didn't match other AWS
|
|
6076
|
+
// discovery configs.
|
|
6077
|
+
bool all_asset_inventory_assets = 3;
|
|
6078
|
+
}
|
|
6079
|
+
}
|
|
6080
|
+
|
|
6081
|
+
// The other cloud starting location for discovery.
|
|
6082
|
+
oneof location {
|
|
6083
|
+
// The AWS starting location for discovery.
|
|
6084
|
+
AwsDiscoveryStartingLocation aws_location = 1;
|
|
6085
|
+
}
|
|
6086
|
+
}
|
|
6087
|
+
|
|
5837
6088
|
// Match discovery resources not covered by any other filter.
|
|
5838
6089
|
message AllOtherResources {}
|
|
5839
6090
|
|
|
@@ -6946,7 +7197,7 @@ message ProjectDataProfile {
|
|
|
6946
7197
|
// The resource name of the profile.
|
|
6947
7198
|
string name = 1;
|
|
6948
7199
|
|
|
6949
|
-
// Project ID that was profiled.
|
|
7200
|
+
// Project ID or account that was profiled.
|
|
6950
7201
|
string project_id = 2;
|
|
6951
7202
|
|
|
6952
7203
|
// The last time the profile was generated.
|
|
@@ -7049,13 +7300,14 @@ message TableDataProfile {
|
|
|
7049
7300
|
// locations.
|
|
7050
7301
|
string dataset_location = 29;
|
|
7051
7302
|
|
|
7052
|
-
// If the resource is BigQuery, the
|
|
7303
|
+
// If the resource is BigQuery, the dataset ID.
|
|
7053
7304
|
string dataset_id = 25;
|
|
7054
7305
|
|
|
7055
|
-
//
|
|
7306
|
+
// The table ID.
|
|
7056
7307
|
string table_id = 26;
|
|
7057
7308
|
|
|
7058
|
-
// The resource
|
|
7309
|
+
// The Cloud Asset Inventory resource that was profiled in order to generate
|
|
7310
|
+
// this TableDataProfile.
|
|
7059
7311
|
// https://cloud.google.com/apis/design/resource_names#full_resource_name
|
|
7060
7312
|
string full_resource = 3;
|
|
7061
7313
|
|
|
@@ -7314,15 +7566,15 @@ message ColumnDataProfile {
|
|
|
7314
7566
|
// The Google Cloud project ID that owns the profiled resource.
|
|
7315
7567
|
string dataset_project_id = 19;
|
|
7316
7568
|
|
|
7317
|
-
//
|
|
7569
|
+
// If supported, the location where the dataset's data is stored.
|
|
7318
7570
|
// See https://cloud.google.com/bigquery/docs/locations for supported
|
|
7319
|
-
// locations.
|
|
7571
|
+
// BigQuery locations.
|
|
7320
7572
|
string dataset_location = 20;
|
|
7321
7573
|
|
|
7322
|
-
// The BigQuery dataset ID.
|
|
7574
|
+
// The BigQuery dataset ID, if the resource profiled is a BigQuery table.
|
|
7323
7575
|
string dataset_id = 21;
|
|
7324
7576
|
|
|
7325
|
-
// The
|
|
7577
|
+
// The table ID.
|
|
7326
7578
|
string table_id = 22;
|
|
7327
7579
|
|
|
7328
7580
|
// The name of the column.
|
|
@@ -7364,6 +7616,7 @@ message ColumnDataProfile {
|
|
|
7364
7616
|
// The profile for a file store.
|
|
7365
7617
|
//
|
|
7366
7618
|
// * Cloud Storage: maps 1:1 with a bucket.
|
|
7619
|
+
// * Amazon S3: maps 1:1 with a bucket.
|
|
7367
7620
|
message FileStoreDataProfile {
|
|
7368
7621
|
option (google.api.resource) = {
|
|
7369
7622
|
type: "dlp.googleapis.com/FileStoreDataProfile"
|
|
@@ -7396,12 +7649,15 @@ message FileStoreDataProfile {
|
|
|
7396
7649
|
string project_data_profile = 3;
|
|
7397
7650
|
|
|
7398
7651
|
// The Google Cloud project ID that owns the resource.
|
|
7652
|
+
// For Amazon S3 buckets, this is the AWS Account Id.
|
|
7399
7653
|
string project_id = 4;
|
|
7400
7654
|
|
|
7401
7655
|
// The location of the file store.
|
|
7402
7656
|
//
|
|
7403
7657
|
// * Cloud Storage:
|
|
7404
7658
|
// https://cloud.google.com/storage/docs/locations#available-locations
|
|
7659
|
+
// * Amazon S3:
|
|
7660
|
+
// https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints
|
|
7405
7661
|
string file_store_location = 5;
|
|
7406
7662
|
|
|
7407
7663
|
// For resources that have multiple storage locations, these are those
|
|
@@ -7419,10 +7675,14 @@ message FileStoreDataProfile {
|
|
|
7419
7675
|
// The file store path.
|
|
7420
7676
|
//
|
|
7421
7677
|
// * Cloud Storage: `gs://{bucket}`
|
|
7678
|
+
// * Amazon S3: `s3://{bucket}`
|
|
7422
7679
|
string file_store_path = 6;
|
|
7423
7680
|
|
|
7424
7681
|
// The resource name of the resource profiled.
|
|
7425
7682
|
// https://cloud.google.com/apis/design/resource_names#full_resource_name
|
|
7683
|
+
//
|
|
7684
|
+
// Example format of an S3 bucket full resource name:
|
|
7685
|
+
// `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}`
|
|
7426
7686
|
string full_resource = 24;
|
|
7427
7687
|
|
|
7428
7688
|
// The snapshot of the configurations used to generate the profile.
|
|
@@ -7599,6 +7859,7 @@ message ListFileStoreDataProfilesRequest {
|
|
|
7599
7859
|
// * A restriction has the form of `{field} {operator} {value}`.
|
|
7600
7860
|
// * Supported fields/values:
|
|
7601
7861
|
// - `project_id` - The Google Cloud project ID.
|
|
7862
|
+
// - `account_id` - The AWS account ID.
|
|
7602
7863
|
// - `file_store_path` - The path like "gs://bucket".
|
|
7603
7864
|
// - `data_source_type` - The profile's data source type, like
|
|
7604
7865
|
// "google/storage/bucket".
|
|
@@ -7995,7 +8256,12 @@ message DeleteTableDataProfileRequest {
|
|
|
7995
8256
|
// Message used to identify the type of resource being profiled.
|
|
7996
8257
|
message DataSourceType {
|
|
7997
8258
|
// Output only. An identifying string to the type of resource being profiled.
|
|
7998
|
-
// Current values:
|
|
8259
|
+
// Current values:
|
|
8260
|
+
//
|
|
8261
|
+
// * google/bigquery/table
|
|
8262
|
+
// * google/project
|
|
8263
|
+
// * google/sql/table
|
|
8264
|
+
// * google/gcs/bucket
|
|
7999
8265
|
string data_source = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
8000
8266
|
}
|
|
8001
8267
|
|