google-cloud-web_security_scanner-v1 0.5.0 → 0.7.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.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/lib/google/cloud/web_security_scanner/v1/rest.rb +37 -0
  4. data/lib/google/cloud/web_security_scanner/v1/version.rb +1 -1
  5. data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/client.rb +18 -26
  6. data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest/client.rb +1293 -0
  7. data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest/service_stub.rb +819 -0
  8. data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest.rb +53 -0
  9. data/lib/google/cloud/web_security_scanner/v1/web_security_scanner.rb +7 -1
  10. data/lib/google/cloud/web_security_scanner/v1.rb +7 -2
  11. data/lib/google/cloud/websecurityscanner/v1/crawled_url_pb.rb +24 -6
  12. data/lib/google/cloud/websecurityscanner/v1/finding_addon_pb.rb +24 -57
  13. data/lib/google/cloud/websecurityscanner/v1/finding_pb.rb +25 -28
  14. data/lib/google/cloud/websecurityscanner/v1/finding_type_stats_pb.rb +24 -5
  15. data/lib/google/cloud/websecurityscanner/v1/scan_config_error_pb.rb +24 -49
  16. data/lib/google/cloud/websecurityscanner/v1/scan_config_pb.rb +25 -60
  17. data/lib/google/cloud/websecurityscanner/v1/scan_run_error_trace_pb.rb +25 -15
  18. data/lib/google/cloud/websecurityscanner/v1/scan_run_log_pb.rb +25 -11
  19. data/lib/google/cloud/websecurityscanner/v1/scan_run_pb.rb +27 -26
  20. data/lib/google/cloud/websecurityscanner/v1/scan_run_warning_trace_pb.rb +24 -12
  21. data/lib/google/cloud/websecurityscanner/v1/web_security_scanner_pb.rb +30 -70
  22. data/proto_docs/google/api/client.rb +381 -0
  23. data/proto_docs/google/api/launch_stage.rb +71 -0
  24. data/proto_docs/google/protobuf/duration.rb +98 -0
  25. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  26. metadata +15 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa863bbf83b3277121fc42b09ad751b5d0cc9bee8ea2aa53bd95a3900889d618
4
- data.tar.gz: 28b341fad40c792bc86f9f50344e01509d4aa30d381d7362d90f516b9196faae
3
+ metadata.gz: bcb654752532d15aafc457597f21b6a94aa1c0b13015ced0195a45863980cd15
4
+ data.tar.gz: 0b050a1dd8ac2c0d2035eaab19bf9f15e67d60aacb29e4381301de8580aa611d
5
5
  SHA512:
6
- metadata.gz: 6a792b63d631653ca66ea93aa43459f9481995dfed267c42b2424790b0f58a1ff2e9c02a53e3a33bd3e5b59bf0c0cc80b94435f4156c770751ee5690a0b5cc96
7
- data.tar.gz: 0d1b6afb49af0737ab7c67435d3b55746d804bd9865ede25fefc596ec2fc6ba82bb8ecf6153bfa7b420d4c0b4887ad576e4c962c6869146ef76c2ad6eb05ea8c
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
- API Client library for the Web Security Scanner V1 API
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebSecurityScanner
23
23
  module V1
24
- VERSION = "0.5.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  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
- # # iterate over all elements by calling #each, and the enumerable
512
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
878
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
1067
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
1261
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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