Skip to content

Commit 2126d1c

Browse files
authored
feat(webrisk): generate library (googleapis#7848)
1 parent 4082229 commit 2126d1c

44 files changed

Lines changed: 2780 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bazelignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ google/cloud/secretmanager/quickstart/
1919
google/cloud/spanner/quickstart/
2020
google/cloud/storage/quickstart/
2121
google/cloud/tasks/quickstart/
22+
google/cloud/webrisk/quickstart/
2223
google/cloud/workflows/quickstart/
2324
google/cloud/websecurityscanner/quickstart/

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ ignore:
2525
- "google/cloud/secretmanager"
2626
- "google/cloud/spanner/admin"
2727
- "google/cloud/tasks"
28+
- "google/cloud/webrisk"
2829
- "google/cloud/websecurityscanner"
2930
- "google/cloud/workflows"

BUILD.bazel

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,20 @@ cc_library(
306306
],
307307
)
308308

309+
cc_library(
310+
name = "experimental-webrisk",
311+
deps = [
312+
"//google/cloud/webrisk:google_cloud_cpp_webrisk",
313+
],
314+
)
315+
316+
cc_library(
317+
name = "experimental-webrisk_mocks",
318+
deps = [
319+
"//google/cloud/webrisk:google_cloud_cpp_webrisk_mocks",
320+
],
321+
)
322+
309323
cc_library(
310324
name = "experimental-websecurityscanner",
311325
deps = [

ci/etc/expected_install_directories

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@
5656
./include/google/cloud/tasks/internal
5757
./include/google/cloud/tasks/mocks
5858
./include/google/cloud/tasks/v2
59+
./include/google/cloud/webrisk
60+
./include/google/cloud/webrisk/internal
61+
./include/google/cloud/webrisk/mocks
62+
./include/google/cloud/webrisk/v1
5963
./include/google/cloud/websecurityscanner
6064
./include/google/cloud/websecurityscanner/internal
6165
./include/google/cloud/websecurityscanner/mocks
@@ -92,5 +96,6 @@
9296
./lib64/cmake/google_cloud_cpp_scheduler
9397
./lib64/cmake/google_cloud_cpp_secretmanager
9498
./lib64/cmake/google_cloud_cpp_tasks
99+
./lib64/cmake/google_cloud_cpp_webrisk
95100
./lib64/cmake/google_cloud_cpp_websecurityscanner
96101
./lib64/cmake/google_cloud_cpp_workflows

ci/etc/full_feature_list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ pubsublite
99
scheduler
1010
secretmanager
1111
tasks
12+
webrisk
1213
websecurityscanner
1314
workflows
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@com_google_googleapis//google/api:annotations_proto
2+
@com_google_googleapis//google/api:client_proto
3+
@com_google_googleapis//google/api:field_behavior_proto
4+
@com_google_googleapis//google/api:http_proto
5+
@com_google_googleapis//google/api:resource_proto
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@com_google_googleapis//google/cloud/webrisk/v1:webrisk.proto

external/googleapis/update_libraries.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ declare -A -r LIBRARIES=(
6565
["storage"]="@com_google_googleapis//google/storage/v2:storage_proto"
6666
["tasks"]="@com_google_googleapis//google/cloud/tasks/v2:tasks_proto"
6767
["texttospeech"]="@com_google_googleapis//google/cloud/texttospeech/v1:texttospeech_proto"
68+
["webrisk"]="@com_google_googleapis//google/cloud/webrisk/v1:webrisk_proto"
6869
["websecurityscanner"]="@com_google_googleapis//google/cloud/websecurityscanner/v1:websecurityscanner_proto"
6970
["workflows"]="$(
7071
printf ",%s" \

generator/generator_config.textproto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ service {
169169
retryable_status_codes: ["kInternal", "kDeadlineExceeded", "kUnavailable"]
170170
}
171171

172+
# Web Risk
173+
service {
174+
service_proto_path: "google/cloud/webrisk/v1/webrisk.proto"
175+
product_path: "google/cloud/webrisk"
176+
initial_copyright_year: "2022"
177+
retryable_status_codes: ["kDeadlineExceeded", "kUnavailable"]
178+
}
179+
172180
# Web Security Scanner
173181
service {
174182
service_proto_path: "google/cloud/websecurityscanner/v1/web_security_scanner.proto"

google/cloud/webrisk/BUILD.bazel

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
# https://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+
package(default_visibility = ["//visibility:private"])
16+
17+
licenses(["notice"]) # Apache 2.0
18+
19+
load(":google_cloud_cpp_webrisk.bzl", "google_cloud_cpp_webrisk_hdrs", "google_cloud_cpp_webrisk_srcs")
20+
21+
cc_library(
22+
name = "google_cloud_cpp_webrisk",
23+
srcs = google_cloud_cpp_webrisk_srcs,
24+
hdrs = google_cloud_cpp_webrisk_hdrs,
25+
visibility = ["//:__pkg__"],
26+
deps = [
27+
"//google/cloud:google_cloud_cpp_common",
28+
"//google/cloud:google_cloud_cpp_grpc_utils",
29+
"@com_google_googleapis//google/cloud/webrisk/v1:webrisk_cc_grpc",
30+
],
31+
)
32+
33+
load(":google_cloud_cpp_webrisk_mocks.bzl", "google_cloud_cpp_webrisk_mocks_hdrs", "google_cloud_cpp_webrisk_mocks_srcs")
34+
35+
cc_library(
36+
name = "google_cloud_cpp_webrisk_mocks",
37+
srcs = google_cloud_cpp_webrisk_mocks_srcs,
38+
hdrs = google_cloud_cpp_webrisk_mocks_hdrs,
39+
visibility = ["//:__pkg__"],
40+
deps = [
41+
":google_cloud_cpp_webrisk",
42+
"//google/cloud:google_cloud_cpp_common",
43+
"//google/cloud:google_cloud_cpp_grpc_utils",
44+
],
45+
)

0 commit comments

Comments
 (0)