1// Copyright 2022 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.sensitiveaction.logging.v1; 18 19import "google/cloud/securitycenter/v1/access.proto"; 20import "google/protobuf/timestamp.proto"; 21 22option csharp_namespace = "Google.Cloud.SensitiveAction.Logging.V1"; 23option go_package = "cloud.google.com/go/sensitiveaction/logging/apiv1/loggingpb;loggingpb"; 24option java_multiple_files = true; 25option java_outer_classname = "SensitiveActionPayloadProto"; 26option java_package = "com.google.cloud.sensitiveaction.logging.v1"; 27option php_namespace = "Google\\Cloud\\SensitiveAction\\Logging\\V1"; 28option ruby_package = "Google::Cloud::SensitiveAction::Logging::V1"; 29 30// Payload proto for sensitiveaction.googleapis.com/action 31// Platform Log event that describes a sensitive action 32message SensitiveAction { 33 // Used to reference a specific Cloud Logging LogEntry. 34 message SourceLogId { 35 // The GCP resource (organization, folder, or project) that the LogEntry 36 // came from. 37 string resource_container = 1; 38 39 // The timestamp of the LogEntry. 40 google.protobuf.Timestamp log_time = 2; 41 42 // The insert_id of the LogEntry. 43 string insert_id = 3; 44 45 // A link to the Cloud Logging dashboard with a query for the LogEntry. 46 string query_uri = 4; 47 } 48 49 // The type of action (eg. "change_organization_policy"). 50 string action_type = 1; 51 52 // The time this action was detected. 53 google.protobuf.Timestamp action_time = 2; 54 55 // GCP resources that are involved in the action. 56 repeated string affected_resources = 3; 57 58 // Cloud Logging entries that were used to identify the action. 59 repeated SourceLogId source_log_ids = 4; 60 61 // Link to documentation where you can learn more about sensitive actions. 62 string learn_more_uri = 5; 63 64 // Access details associated to the sensitive action. 65 google.cloud.securitycenter.v1.Access access = 6; 66} 67