google-cloud-web_security_scanner-v1beta 0.3.5 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +13 -8
- 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 +16 -24
- 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 +8 -1
- data/lib/google/cloud/websecurityscanner/v1beta/finding_pb.rb +2 -1
- data/lib/google/cloud/websecurityscanner/v1beta/scan_config_pb.rb +2 -1
- data/lib/google/cloud/websecurityscanner/v1beta/scan_run_error_trace_pb.rb +2 -1
- data/lib/google/cloud/websecurityscanner/v1beta/scan_run_pb.rb +2 -1
- data/lib/google/cloud/websecurityscanner/v1beta/web_security_scanner_pb.rb +2 -1
- data/proto_docs/google/api/client.rb +318 -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
- metadata +20 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26aef06ebe0aefed94d0bd07a6a35522be475cd4f4d1d9dfdedfd83e85c1c742
|
4
|
+
data.tar.gz: b7d1a1cfb16974cf51c5a1fff88b5881ac1411887b4977c6aa65175761db4055
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b32af19a0387e2c2a0f708ee018efe53e69969ddd8aeb947ad0b0c29b1f34f05ef5d0c5485e7684b2264cc16d060d2df15b826f789a0e697c61732a387fbfa9f
|
7
|
+
data.tar.gz: fbcd754c72f8289e89bc953dc7a162f903199ecb81435071b539c5c3bebeff9344040cc3c7b709e0b1e2dde3ea989c18cd7fd4a93116acf48953529502be00ec
|
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
|
|
@@ -37,7 +37,7 @@ request = ::Google::Cloud::WebSecurityScanner::V1beta::CreateScanConfigRequest.n
|
|
37
37
|
response = client.create_scan_config request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/security-command-center/docs/concepts-web-security-scanner-overview/)
|
@@ -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.
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -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
|