google-cloud-web_security_scanner-v1 0.5.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- 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 +18 -26
- 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/crawled_url_pb.rb +24 -6
- data/lib/google/cloud/websecurityscanner/v1/finding_addon_pb.rb +24 -57
- data/lib/google/cloud/websecurityscanner/v1/finding_pb.rb +25 -28
- data/lib/google/cloud/websecurityscanner/v1/finding_type_stats_pb.rb +24 -5
- data/lib/google/cloud/websecurityscanner/v1/scan_config_error_pb.rb +24 -49
- data/lib/google/cloud/websecurityscanner/v1/scan_config_pb.rb +25 -60
- data/lib/google/cloud/websecurityscanner/v1/scan_run_error_trace_pb.rb +25 -15
- data/lib/google/cloud/websecurityscanner/v1/scan_run_log_pb.rb +25 -11
- data/lib/google/cloud/websecurityscanner/v1/scan_run_pb.rb +27 -26
- data/lib/google/cloud/websecurityscanner/v1/scan_run_warning_trace_pb.rb +24 -12
- data/lib/google/cloud/websecurityscanner/v1/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/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: bcb654752532d15aafc457597f21b6a94aa1c0b13015ced0195a45863980cd15
|
4
|
+
data.tar.gz: 0b050a1dd8ac2c0d2035eaab19bf9f15e67d60aacb29e4381301de8580aa611d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e509f751a7817f00a1a40daa26ea7cf8d62cd63905ced11025255404cecc67766ed6187731aeb0bbf4f7eeaf56880258a085f3646b85cda92ac706c0cba20b35
|
7
|
+
data.tar.gz: a86081a97c1d35a9d3950d766c5a91f7c7354fcd251aa71c81f54294df1c90942e0028afa8ce02df246cde6b2dfe46cba39c9ea84128d1b24f40093bc727c429
|
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,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/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
|
@@ -1432,9 +1424,9 @@ module Google
|
|
1432
1424
|
# * (`String`) The path to a service account key file in JSON format
|
1433
1425
|
# * (`Hash`) A service account key as a Hash
|
1434
1426
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1435
|
-
# (see the [googleauth docs](https://
|
1427
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1436
1428
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1437
|
-
# (see the [signet docs](https://
|
1429
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1438
1430
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1439
1431
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1440
1432
|
# * (`nil`) indicating no credentials
|