Skip to content

Commit

Permalink
feat: Add Notebook field to finding's list of attributes
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 619663717
  • Loading branch information
Google APIs authored and Copybara-Service committed Mar 27, 2024
1 parent b0665ea commit 038629f
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions google/cloud/securitycenter/v1/BUILD.bazel
Expand Up @@ -48,6 +48,7 @@ proto_library(
"log_entry.proto",
"mitre_attack.proto",
"mute_config.proto",
"notebook.proto",
"notification_config.proto",
"notification_message.proto",
"organization_settings.proto",
Expand Down
4 changes: 4 additions & 0 deletions google/cloud/securitycenter/v1/finding.proto
Expand Up @@ -38,6 +38,7 @@ import "google/cloud/securitycenter/v1/kubernetes.proto";
import "google/cloud/securitycenter/v1/load_balancer.proto";
import "google/cloud/securitycenter/v1/log_entry.proto";
import "google/cloud/securitycenter/v1/mitre_attack.proto";
import "google/cloud/securitycenter/v1/notebook.proto";
import "google/cloud/securitycenter/v1/org_policy.proto";
import "google/cloud/securitycenter/v1/process.proto";
import "google/cloud/securitycenter/v1/security_marks.proto";
Expand Down Expand Up @@ -387,4 +388,7 @@ message Finding {

// The load balancers associated with the finding.
repeated LoadBalancer load_balancers = 58;

// Notebook associated with the finding.
Notebook notebook = 63;
}
44 changes: 44 additions & 0 deletions google/cloud/securitycenter/v1/notebook.proto
@@ -0,0 +1,44 @@
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.cloud.securitycenter.v1;

import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb";
option java_multiple_files = true;
option java_outer_classname = "NotebookProto";
option java_package = "com.google.cloud.securitycenter.v1";
option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
option ruby_package = "Google::Cloud::SecurityCenter::V1";

// Represents a Jupyter notebook IPYNB file, such as a [Colab Enterprise
// notebook](https://cloud.google.com/colab/docs/introduction) file, that is
// associated with a finding.
message Notebook {
// The name of the notebook.
string name = 1;

// The source notebook service, for example, "Colab Enterprise".
string service = 2;

// The user ID of the latest author to modify the notebook.
string last_author = 3;

// The most recent time the notebook was updated.
google.protobuf.Timestamp notebook_update_time = 4;
}

0 comments on commit 038629f

Please sign in to comment.