xref: /aosp_15_r20/external/googleapis/google/cloud/securitycenter/v2/cloud_dlp_inspection.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package google.cloud.securitycenter.v2;
18
19import "google/api/resource.proto";
20
21option csharp_namespace = "Google.Cloud.SecurityCenter.V2";
22option go_package = "cloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb";
23option java_multiple_files = true;
24option java_outer_classname = "CloudDlpInspectionProto";
25option java_package = "com.google.cloud.securitycenter.v2";
26option php_namespace = "Google\\Cloud\\SecurityCenter\\V2";
27option ruby_package = "Google::Cloud::SecurityCenter::V2";
28option (google.api.resource_definition) = {
29  type: "dlp.googleapis.com/DlpJob"
30  pattern: "projects/{project}/dlpJobs/{dlp_job}"
31  pattern: "projects/{project}/locations/{location}/dlpJobs/{dlp_job}"
32};
33
34// Details about the Cloud Data Loss Prevention (Cloud DLP) [inspection
35// job](https://cloud.google.com/dlp/docs/concepts-job-triggers) that produced
36// the finding.
37message CloudDlpInspection {
38  // Name of the inspection job, for example,
39  // `projects/123/locations/europe/dlpJobs/i-8383929`.
40  string inspect_job = 1
41      [(google.api.resource_reference) = { type: "dlp.googleapis.com/DlpJob" }];
42
43  // The type of information (or
44  // *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found,
45  // for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
46  string info_type = 2;
47
48  // The number of times Cloud DLP found this infoType within this job
49  // and resource.
50  int64 info_type_count = 3;
51
52  // Whether Cloud DLP scanned the complete resource or a sampled subset.
53  bool full_scan = 4;
54}
55