google-cloud-web_security_scanner-v1beta 0.4.0 → 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 +3 -3
- data/lib/google/cloud/web_security_scanner/v1beta/rest.rb +37 -0
- data/lib/google/cloud/web_security_scanner/v1beta/version.rb +1 -1
- data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/client.rb +18 -26
- data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/rest/client.rb +1295 -0
- data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/rest/service_stub.rb +819 -0
- data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner/rest.rb +54 -0
- data/lib/google/cloud/web_security_scanner/v1beta/web_security_scanner.rb +7 -1
- data/lib/google/cloud/web_security_scanner/v1beta.rb +7 -2
- data/lib/google/cloud/websecurityscanner/v1beta/crawled_url_pb.rb +24 -6
- data/lib/google/cloud/websecurityscanner/v1beta/finding_addon_pb.rb +24 -29
- data/lib/google/cloud/websecurityscanner/v1beta/finding_pb.rb +25 -19
- data/lib/google/cloud/websecurityscanner/v1beta/finding_type_stats_pb.rb +24 -5
- data/lib/google/cloud/websecurityscanner/v1beta/scan_config_error_pb.rb +24 -49
- data/lib/google/cloud/websecurityscanner/v1beta/scan_config_pb.rb +26 -55
- data/lib/google/cloud/websecurityscanner/v1beta/scan_run_error_trace_pb.rb +25 -15
- data/lib/google/cloud/websecurityscanner/v1beta/scan_run_pb.rb +27 -26
- data/lib/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace_pb.rb +24 -11
- data/lib/google/cloud/websecurityscanner/v1beta/web_security_scanner_pb.rb +30 -70
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- 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: f1fec21f017f24121eda0e324cdca17a58143778e14d24917dc1f1473b32af41
|
4
|
+
data.tar.gz: baa2bcbba4127dcd2505894e93eaa2807ff71f4ba2394a28cbf7f3860ffd52b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a04a5d470e4cc1b44e0a1def668555e58b02f0f66e3c88f0c41c37463172addb5cfc975e9cebea2b070aedabc04927a8697c050047f21a2854b6095b348a034b
|
7
|
+
data.tar.gz: bc12ff0082ee4192eefc2f3bb715b9976d3a42950915a18cb209a3dce4fd0cad4d0fc7d8d8aeeb67ad10edf33920fdd8cad68667d7ed1e0872d0f6a71d36cbd7
|
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 V1beta 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,8 +46,8 @@ 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/
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
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
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/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.
|
53
53
|
|
@@ -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/v1beta/web_security_scanner/rest"
|
20
|
+
require "google/cloud/web_security_scanner/v1beta/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/v1beta/rest"
|
31
|
+
# client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V1beta
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -509,13 +509,11 @@ module Google
|
|
509
509
|
# # Call the list_scan_configs method.
|
510
510
|
# result = client.list_scan_configs request
|
511
511
|
#
|
512
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
513
|
-
# #
|
514
|
-
#
|
515
|
-
# # methods are also available for managing paging directly.
|
516
|
-
# result.each do |response|
|
512
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
513
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
514
|
+
# result.each do |item|
|
517
515
|
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig.
|
518
|
-
# p
|
516
|
+
# p item
|
519
517
|
# end
|
520
518
|
#
|
521
519
|
def list_scan_configs request, options = nil
|
@@ -875,13 +873,11 @@ module Google
|
|
875
873
|
# # Call the list_scan_runs method.
|
876
874
|
# result = client.list_scan_runs request
|
877
875
|
#
|
878
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
879
|
-
# #
|
880
|
-
#
|
881
|
-
# # methods are also available for managing paging directly.
|
882
|
-
# result.each do |response|
|
876
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
877
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
878
|
+
# result.each do |item|
|
883
879
|
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1beta::ScanRun.
|
884
|
-
# p
|
880
|
+
# p item
|
885
881
|
# end
|
886
882
|
#
|
887
883
|
def list_scan_runs request, options = nil
|
@@ -1064,13 +1060,11 @@ module Google
|
|
1064
1060
|
# # Call the list_crawled_urls method.
|
1065
1061
|
# result = client.list_crawled_urls request
|
1066
1062
|
#
|
1067
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1068
|
-
# #
|
1069
|
-
#
|
1070
|
-
# # methods are also available for managing paging directly.
|
1071
|
-
# result.each do |response|
|
1063
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1064
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1065
|
+
# result.each do |item|
|
1072
1066
|
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1beta::CrawledUrl.
|
1073
|
-
# p
|
1067
|
+
# p item
|
1074
1068
|
# end
|
1075
1069
|
#
|
1076
1070
|
def list_crawled_urls request, options = nil
|
@@ -1258,13 +1252,11 @@ module Google
|
|
1258
1252
|
# # Call the list_findings method.
|
1259
1253
|
# result = client.list_findings request
|
1260
1254
|
#
|
1261
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1262
|
-
# #
|
1263
|
-
#
|
1264
|
-
# # methods are also available for managing paging directly.
|
1265
|
-
# result.each do |response|
|
1255
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1256
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1257
|
+
# result.each do |item|
|
1266
1258
|
# # Each element is of type ::Google::Cloud::WebSecurityScanner::V1beta::Finding.
|
1267
|
-
# p
|
1259
|
+
# p item
|
1268
1260
|
# end
|
1269
1261
|
#
|
1270
1262
|
def list_findings request, options = nil
|
@@ -1434,9 +1426,9 @@ module Google
|
|
1434
1426
|
# * (`String`) The path to a service account key file in JSON format
|
1435
1427
|
# * (`Hash`) A service account key as a Hash
|
1436
1428
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1437
|
-
# (see the [googleauth docs](https://
|
1429
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1438
1430
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1439
|
-
# (see the [signet docs](https://
|
1431
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1440
1432
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1441
1433
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1442
1434
|
# * (`nil`) indicating no credentials
|