google-cloud-web_security_scanner-v1 0.4.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/web_security_scanner/v1/rest.rb +37 -0
- data/lib/google/cloud/web_security_scanner/v1/version.rb +1 -1
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/client.rb +16 -24
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest/client.rb +1293 -0
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest/service_stub.rb +819 -0
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest.rb +53 -0
- data/lib/google/cloud/web_security_scanner/v1/web_security_scanner.rb +7 -1
- data/lib/google/cloud/web_security_scanner/v1.rb +7 -2
- data/lib/google/cloud/websecurityscanner/v1/finding_addon_pb.rb +10 -0
- data/lib/google/cloud/websecurityscanner/v1/finding_pb.rb +1 -0
- data/lib/google/cloud/websecurityscanner/v1/scan_config_pb.rb +1 -0
- data/lib/google/cloud/websecurityscanner/v1/scan_run_warning_trace_pb.rb +1 -0
- data/lib/google/cloud/websecurityscanner/v1/web_security_scanner_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/websecurityscanner/v1/finding.rb +3 -0
- data/proto_docs/google/cloud/websecurityscanner/v1/finding_addon.rb +22 -0
- data/proto_docs/google/cloud/websecurityscanner/v1/scan_config.rb +3 -0
- data/proto_docs/google/cloud/websecurityscanner/v1/scan_run_error_trace.rb +1 -1
- data/proto_docs/google/cloud/websecurityscanner/v1/scan_run_warning_trace.rb +3 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +15 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 664278dbf7337d9bb4ecd02684aacd426ed0d77bbeec9799de7bbf4c9502176b
|
4
|
+
data.tar.gz: 9488c252bb4a875cd3db1af007a64652692b8d7dc3d9e947db9e58de8733ba57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b49af522889a3376efaf816733646841355ae37228d8c9dca822336247735622281b6adcbe130942ee520f15cd43bc660059a05c875d43195b572d0f66e1cdc
|
7
|
+
data.tar.gz: 186ac8c4d35aeac6b17ac6f351259cf39497b0ba8d331873c24d60acd1d66c54f318a531e00fabe6c9619e48a6905e3f37a14aea2a7c2520ffb0b22d92c4b888
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Web Security Scanner V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Scans your Compute and App Engine apps for common web vulnerabilities.
|
4
4
|
|
5
5
|
Web Security Scanner scans your Compute and App Engine apps for common web vulnerabilities.
|
6
6
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/web_security_scanner/v1/web_security_scanner/rest"
|
20
|
+
require "google/cloud/web_security_scanner/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module WebSecurityScanner
|
25
|
+
##
|
26
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/cloud/web_security_scanner/v1/rest"
|
31
|
+
# client = ::Google::Cloud::WebSecurityScanner::V1::WebSecurityScanner::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V1
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -507,13 +507,11 @@ module Google
|
|
507
507
|
# # Call the list_scan_configs method.
|
508
508
|
# result = client.list_scan_configs request
|
509
509
|
#
|
510
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
511
|
-
# #
|
512
|
-
#
|
513
|
-
# # methods are also available for managing paging directly.
|
514
|
-
# result.each do |response|
|
510
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
511
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
512
|
+
# result.each do |item|
|
515
513
|
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1::ScanConfig.
|
516
|
-
# p
|
514
|
+
# p item
|
517
515
|
# end
|
518
516
|
#
|
519
517
|
def list_scan_configs request, options = nil
|
@@ -873,13 +871,11 @@ module Google
|
|
873
871
|
# # Call the list_scan_runs method.
|
874
872
|
# result = client.list_scan_runs request
|
875
873
|
#
|
876
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
877
|
-
# #
|
878
|
-
#
|
879
|
-
# # methods are also available for managing paging directly.
|
880
|
-
# result.each do |response|
|
874
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
875
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
876
|
+
# result.each do |item|
|
881
877
|
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1::ScanRun.
|
882
|
-
# p
|
878
|
+
# p item
|
883
879
|
# end
|
884
880
|
#
|
885
881
|
def list_scan_runs request, options = nil
|
@@ -1062,13 +1058,11 @@ module Google
|
|
1062
1058
|
# # Call the list_crawled_urls method.
|
1063
1059
|
# result = client.list_crawled_urls request
|
1064
1060
|
#
|
1065
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1066
|
-
# #
|
1067
|
-
#
|
1068
|
-
# # methods are also available for managing paging directly.
|
1069
|
-
# result.each do |response|
|
1061
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1062
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1063
|
+
# result.each do |item|
|
1070
1064
|
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1::CrawledUrl.
|
1071
|
-
# p
|
1065
|
+
# p item
|
1072
1066
|
# end
|
1073
1067
|
#
|
1074
1068
|
def list_crawled_urls request, options = nil
|
@@ -1256,13 +1250,11 @@ module Google
|
|
1256
1250
|
# # Call the list_findings method.
|
1257
1251
|
# result = client.list_findings request
|
1258
1252
|
#
|
1259
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1260
|
-
# #
|
1261
|
-
#
|
1262
|
-
# # methods are also available for managing paging directly.
|
1263
|
-
# result.each do |response|
|
1253
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1254
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1255
|
+
# result.each do |item|
|
1264
1256
|
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1::Finding.
|
1265
|
-
# p
|
1257
|
+
# p item
|
1266
1258
|
# end
|
1267
1259
|
#
|
1268
1260
|
def list_findings request, options = nil
|