Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fafd03f

Browse files
Google APIscopybara-github
authored andcommitted
feat: release SensitiveAction Cloud Logging payload to v1
PiperOrigin-RevId: 476083958
1 parent 210422e commit fafd03f

File tree

2 files changed

+193
-0
lines changed

2 files changed

+193
-0
lines changed
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# This file was automatically generated by BuildFileGenerator
2+
3+
##############################################################################
4+
# Common
5+
##############################################################################
6+
load("@rules_proto//proto:defs.bzl", "proto_library")
7+
8+
##############################################################################
9+
# Java
10+
##############################################################################
11+
load(
12+
"@com_google_googleapis_imports//:imports.bzl",
13+
"cc_grpc_library",
14+
"cc_proto_library",
15+
"csharp_grpc_library",
16+
"csharp_proto_library",
17+
"go_proto_library",
18+
"java_grpc_library",
19+
"java_proto_library",
20+
"moved_proto_library",
21+
"php_grpc_library",
22+
"php_proto_library",
23+
"py_grpc_library",
24+
"py_proto_library",
25+
"ruby_grpc_library",
26+
"ruby_proto_library",
27+
)
28+
29+
# This is an API workspace, having public visibility by default makes perfect sense.
30+
package(default_visibility = ["//visibility:public"])
31+
32+
proto_library(
33+
name = "logging_proto",
34+
srcs = [
35+
"sensitive_action_payload.proto",
36+
],
37+
deps = [
38+
"//google/cloud/securitycenter/v1:securitycenter_proto",
39+
"@com_google_protobuf//:timestamp_proto",
40+
],
41+
)
42+
43+
java_proto_library(
44+
name = "logging_java_proto",
45+
deps = [":logging_proto"],
46+
)
47+
48+
java_grpc_library(
49+
name = "logging_java_grpc",
50+
srcs = [":logging_proto"],
51+
deps = [":logging_java_proto"],
52+
)
53+
54+
go_proto_library(
55+
name = "logging_go_proto",
56+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
57+
importpath = "google.golang.org/genproto/googleapis/cloud/sensitiveaction/logging/v1",
58+
protos = [":logging_proto"],
59+
deps = [
60+
"//google/cloud/securitycenter/v1:securitycenter_go_proto",
61+
],
62+
)
63+
64+
moved_proto_library(
65+
name = "logging_moved_proto",
66+
srcs = [":logging_proto"],
67+
deps = [
68+
"//google/cloud/securitycenter/v1:securitycenter_proto",
69+
"@com_google_protobuf//:timestamp_proto",
70+
],
71+
)
72+
73+
py_proto_library(
74+
name = "logging_py_proto",
75+
deps = [":logging_moved_proto"],
76+
)
77+
78+
py_grpc_library(
79+
name = "logging_py_grpc",
80+
srcs = [":logging_moved_proto"],
81+
deps = [":logging_py_proto"],
82+
)
83+
84+
php_proto_library(
85+
name = "logging_php_proto",
86+
deps = [":logging_proto"],
87+
)
88+
89+
php_grpc_library(
90+
name = "logging_php_grpc",
91+
srcs = [":logging_proto"],
92+
deps = [":logging_php_proto"],
93+
)
94+
95+
ruby_proto_library(
96+
name = "logging_ruby_proto",
97+
deps = [":logging_proto"],
98+
)
99+
100+
ruby_grpc_library(
101+
name = "logging_ruby_grpc",
102+
srcs = [":logging_proto"],
103+
deps = [":logging_ruby_proto"],
104+
)
105+
106+
csharp_proto_library(
107+
name = "logging_csharp_proto",
108+
deps = [":logging_proto"],
109+
)
110+
111+
csharp_grpc_library(
112+
name = "logging_csharp_grpc",
113+
srcs = [":logging_proto"],
114+
deps = [":logging_csharp_proto"],
115+
)
116+
117+
cc_proto_library(
118+
name = "logging_cc_proto",
119+
deps = [":logging_proto"],
120+
)
121+
122+
cc_grpc_library(
123+
name = "logging_cc_grpc",
124+
srcs = [":logging_proto"],
125+
grpc_only = True,
126+
deps = [":logging_cc_proto"],
127+
)
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
15+
syntax = "proto3";
16+
17+
package google.cloud.sensitiveaction.logging.v1;
18+
19+
import "google/cloud/securitycenter/v1/access.proto";
20+
import "google/protobuf/timestamp.proto";
21+
22+
option csharp_namespace = "Google.Cloud.SensitiveAction.Logging.V1";
23+
option go_package = "google.golang.org/genproto/googleapis/cloud/sensitiveaction/logging/v1;logging";
24+
option java_multiple_files = true;
25+
option java_outer_classname = "SensitiveActionPayloadProto";
26+
option java_package = "com.google.cloud.sensitiveaction.logging.v1";
27+
option php_namespace = "Google\\Cloud\\SensitiveAction\\Logging\\V1";
28+
option 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
32+
message 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+
}

0 commit comments

Comments
 (0)