Skip to content

Commit 7a8b988

Browse files
Google APIscopybara-github
authored andcommitted
docs: Publish Scan Run logging proto for documentation
PiperOrigin-RevId: 470878694
1 parent 284389e commit 7a8b988

File tree

2 files changed

+78
-3
lines changed

2 files changed

+78
-3
lines changed

google/cloud/websecurityscanner/v1/BUILD.bazel

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# This file was automatically generated by BuildFileGenerator
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
3+
4+
# Most of the manual changes to this file will be overwritten.
5+
# It's **only** allowed to change the following rule attribute values:
6+
# - names of *_gapic_assembly_* rules
7+
# - certain parameters of *_gapic_library rules, including but not limited to:
8+
# * extra_protoc_parameters
9+
# * extra_protoc_file_parameters
10+
# The complete list of preserved parameters can be found in the source code.
211

312
# This is an API workspace, having public visibility by default makes perfect sense.
413
package(default_visibility = ["//visibility:public"])
@@ -20,6 +29,7 @@ proto_library(
2029
"scan_config_error.proto",
2130
"scan_run.proto",
2231
"scan_run_error_trace.proto",
32+
"scan_run_log.proto",
2333
"scan_run_warning_trace.proto",
2434
"web_security_scanner.proto",
2535
],
@@ -68,13 +78,16 @@ java_grpc_library(
6878
java_gapic_library(
6979
name = "websecurityscanner_java_gapic",
7080
srcs = [":websecurityscanner_proto_with_info"],
81+
gapic_yaml = None,
7182
grpc_service_config = "websecurityscanner_grpc_service_config.json",
83+
service_yaml = "websecurityscanner_v1.yaml",
7284
test_deps = [
7385
":websecurityscanner_java_grpc",
7486
],
7587
transport = "grpc+rest",
7688
deps = [
7789
":websecurityscanner_java_proto",
90+
"//google/api:api_java_proto",
7891
],
7992
)
8093

@@ -126,6 +139,7 @@ go_gapic_library(
126139
srcs = [":websecurityscanner_proto_with_info"],
127140
grpc_service_config = "websecurityscanner_grpc_service_config.json",
128141
importpath = "cloud.google.com/go/websecurityscanner/apiv1;websecurityscanner",
142+
metadata = True,
129143
service_yaml = "websecurityscanner_v1.yaml",
130144
transport = "grpc+rest",
131145
deps = [
@@ -145,6 +159,7 @@ go_gapic_assembly_pkg(
145159
name = "gapi-cloud-websecurityscanner-v1-go",
146160
deps = [
147161
":websecurityscanner_go_gapic",
162+
":websecurityscanner_go_gapic_srcjar-metadata.srcjar",
148163
":websecurityscanner_go_gapic_srcjar-test.srcjar",
149164
":websecurityscanner_go_proto",
150165
],
@@ -164,6 +179,9 @@ py_gapic_library(
164179
name = "websecurityscanner_py_gapic",
165180
srcs = [":websecurityscanner_proto"],
166181
grpc_service_config = "websecurityscanner_grpc_service_config.json",
182+
service_yaml = "websecurityscanner_v1.yaml",
183+
deps = [
184+
],
167185
)
168186

169187
py_test(
@@ -210,6 +228,7 @@ php_gapic_library(
210228
name = "websecurityscanner_php_gapic",
211229
srcs = [":websecurityscanner_proto_with_info"],
212230
grpc_service_config = "websecurityscanner_grpc_service_config.json",
231+
service_yaml = "websecurityscanner_v1.yaml",
213232
deps = [
214233
":websecurityscanner_php_grpc",
215234
":websecurityscanner_php_proto",
@@ -280,15 +299,16 @@ ruby_cloud_gapic_library(
280299
name = "websecurityscanner_ruby_gapic",
281300
srcs = [":websecurityscanner_proto_with_info"],
282301
extra_protoc_parameters = [
283-
"ruby-cloud-gem-name=google-cloud-web_security_scanner-v1",
284-
"ruby-cloud-env-prefix=WEB_SECURITY_SCANNER",
285-
"ruby-cloud-product-url=https://cloud.google.com/security-command-center/docs/concepts-web-security-scanner-overview/",
286302
"ruby-cloud-api-id=websecurityscanner.googleapis.com",
287303
"ruby-cloud-api-shortname=websecurityscanner",
304+
"ruby-cloud-env-prefix=WEB_SECURITY_SCANNER",
305+
"ruby-cloud-gem-name=google-cloud-web_security_scanner-v1",
306+
"ruby-cloud-product-url=https://cloud.google.com/security-command-center/docs/concepts-web-security-scanner-overview/",
288307
],
289308
grpc_service_config = "websecurityscanner_grpc_service_config.json",
290309
ruby_cloud_description = "Web Security Scanner scans your Compute and App Engine apps for common web vulnerabilities.",
291310
ruby_cloud_title = "Web Security Scanner V1",
311+
service_yaml = "websecurityscanner_v1.yaml",
292312
deps = [
293313
":websecurityscanner_ruby_grpc",
294314
":websecurityscanner_ruby_proto",
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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.websecurityscanner.v1;
18+
19+
import "google/cloud/websecurityscanner/v1/scan_run.proto";
20+
import "google/cloud/websecurityscanner/v1/scan_run_error_trace.proto";
21+
22+
option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
23+
option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
24+
option java_multiple_files = true;
25+
option java_outer_classname = "ScanRunLogProto";
26+
option java_package = "com.google.cloud.websecurityscanner.v1";
27+
option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
28+
option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
29+
30+
// A ScanRunLog is an output-only proto used for Stackdriver customer logging.
31+
// It is used for logs covering the start and end of scan pipelines.
32+
// Other than an added summary, this is a subset of the ScanRun.
33+
// Representation in logs is either a proto Struct, or converted to JSON.
34+
// Next id: 9
35+
message ScanRunLog {
36+
// Human friendly message about the event.
37+
string summary = 1;
38+
39+
// The resource name of the ScanRun being logged.
40+
string name = 2;
41+
42+
// The execution state of the ScanRun.
43+
google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3;
44+
45+
// The result state of the ScanRun.
46+
google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4;
47+
48+
int64 urls_crawled_count = 5;
49+
50+
int64 urls_tested_count = 6;
51+
52+
bool has_findings = 7;
53+
54+
google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;
55+
}

0 commit comments

Comments
 (0)