Skip to content

Commit 038629f

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add Notebook field to finding's list of attributes
PiperOrigin-RevId: 619663717
1 parent b0665ea commit 038629f

3 files changed

Lines changed: 49 additions & 0 deletions

File tree

google/cloud/securitycenter/v1/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ proto_library(
4848
"log_entry.proto",
4949
"mitre_attack.proto",
5050
"mute_config.proto",
51+
"notebook.proto",
5152
"notification_config.proto",
5253
"notification_message.proto",
5354
"organization_settings.proto",

google/cloud/securitycenter/v1/finding.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import "google/cloud/securitycenter/v1/kubernetes.proto";
3838
import "google/cloud/securitycenter/v1/load_balancer.proto";
3939
import "google/cloud/securitycenter/v1/log_entry.proto";
4040
import "google/cloud/securitycenter/v1/mitre_attack.proto";
41+
import "google/cloud/securitycenter/v1/notebook.proto";
4142
import "google/cloud/securitycenter/v1/org_policy.proto";
4243
import "google/cloud/securitycenter/v1/process.proto";
4344
import "google/cloud/securitycenter/v1/security_marks.proto";
@@ -387,4 +388,7 @@ message Finding {
387388

388389
// The load balancers associated with the finding.
389390
repeated LoadBalancer load_balancers = 58;
391+
392+
// Notebook associated with the finding.
393+
Notebook notebook = 63;
390394
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
15+
syntax = "proto3";
16+
17+
package google.cloud.securitycenter.v1;
18+
19+
import "google/protobuf/timestamp.proto";
20+
21+
option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
22+
option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb";
23+
option java_multiple_files = true;
24+
option java_outer_classname = "NotebookProto";
25+
option java_package = "com.google.cloud.securitycenter.v1";
26+
option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
27+
option ruby_package = "Google::Cloud::SecurityCenter::V1";
28+
29+
// Represents a Jupyter notebook IPYNB file, such as a [Colab Enterprise
30+
// notebook](https://cloud.google.com/colab/docs/introduction) file, that is
31+
// associated with a finding.
32+
message Notebook {
33+
// The name of the notebook.
34+
string name = 1;
35+
36+
// The source notebook service, for example, "Colab Enterprise".
37+
string service = 2;
38+
39+
// The user ID of the latest author to modify the notebook.
40+
string last_author = 3;
41+
42+
// The most recent time the notebook was updated.
43+
google.protobuf.Timestamp notebook_update_time = 4;
44+
}

0 commit comments

Comments
 (0)