Skip to content

Commit 38a5417

Browse files
Google APIscopybara-github
authored andcommitted
feat: add a RegulatoryIntercept API
PiperOrigin-RevId: 438837332
1 parent 9da5e7f commit 38a5417

2 files changed

Lines changed: 154 additions & 0 deletions

File tree

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
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+
"regulatory_intercept_ack_log_entry.proto",
36+
],
37+
deps = [
38+
],
39+
)
40+
41+
java_proto_library(
42+
name = "logging_java_proto",
43+
deps = [":logging_proto"],
44+
)
45+
46+
java_grpc_library(
47+
name = "logging_java_grpc",
48+
srcs = [":logging_proto"],
49+
deps = [":logging_java_proto"],
50+
)
51+
52+
go_proto_library(
53+
name = "logging_go_proto",
54+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
55+
importpath = "google.golang.org/genproto/googleapis/cloud/assuredworkloads/regulatoryintercept/logging/v1",
56+
protos = [":logging_proto"],
57+
deps = [
58+
],
59+
)
60+
61+
moved_proto_library(
62+
name = "logging_moved_proto",
63+
srcs = [":logging_proto"],
64+
deps = [
65+
],
66+
)
67+
68+
py_proto_library(
69+
name = "logging_py_proto",
70+
deps = [":logging_moved_proto"],
71+
)
72+
73+
py_grpc_library(
74+
name = "logging_py_grpc",
75+
srcs = [":logging_moved_proto"],
76+
deps = [":logging_py_proto"],
77+
)
78+
79+
php_proto_library(
80+
name = "logging_php_proto",
81+
deps = [":logging_proto"],
82+
)
83+
84+
php_grpc_library(
85+
name = "logging_php_grpc",
86+
srcs = [":logging_proto"],
87+
deps = [":logging_php_proto"],
88+
)
89+
90+
ruby_proto_library(
91+
name = "logging_ruby_proto",
92+
deps = [":logging_proto"],
93+
)
94+
95+
ruby_grpc_library(
96+
name = "logging_ruby_grpc",
97+
srcs = [":logging_proto"],
98+
deps = [":logging_ruby_proto"],
99+
)
100+
101+
csharp_proto_library(
102+
name = "logging_csharp_proto",
103+
deps = [":logging_proto"],
104+
)
105+
106+
csharp_grpc_library(
107+
name = "logging_csharp_grpc",
108+
srcs = [":logging_proto"],
109+
deps = [":logging_csharp_proto"],
110+
)
111+
112+
cc_proto_library(
113+
name = "logging_cc_proto",
114+
deps = [":logging_proto"],
115+
)
116+
117+
cc_grpc_library(
118+
name = "logging_cc_grpc",
119+
srcs = [":logging_proto"],
120+
grpc_only = True,
121+
deps = [":logging_cc_proto"],
122+
)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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.assuredworkloads.regulatoryintercept.logging.v1;
18+
19+
option go_package = "google.golang.org/genproto/googleapis/cloud/assuredworkloads/regulatoryintercept/logging/v1;logging";
20+
option java_multiple_files = true;
21+
option java_outer_classname = "RegulatoryInterceptAckLogEntryProto";
22+
option java_package = "com.google.cloud.assuredworkloads.regulatoryintercept.logging.v1";
23+
24+
message RegulatoryInterceptAckLogEntry {
25+
// The id of the user that triggered the Regulatory Intercept.
26+
string user_id = 1;
27+
28+
// The id of the GCP resource associated with the Assured Workload applicable
29+
// to the request. Must be of the format
30+
// //cloudresourcemanager.googleapis.com/{type}/{id}
31+
string assured_workload_resource_id = 2;
32+
}

0 commit comments

Comments
 (0)