google-cloud-web_security_scanner-v1 0.4.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +2 -2
  4. data/lib/google/cloud/web_security_scanner/v1/rest.rb +37 -0
  5. data/lib/google/cloud/web_security_scanner/v1/version.rb +1 -1
  6. data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/client.rb +16 -24
  7. data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest/client.rb +1293 -0
  8. data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest/service_stub.rb +819 -0
  9. data/lib/google/cloud/web_security_scanner/v1/web_security_scanner/rest.rb +53 -0
  10. data/lib/google/cloud/web_security_scanner/v1/web_security_scanner.rb +7 -1
  11. data/lib/google/cloud/web_security_scanner/v1.rb +7 -2
  12. data/lib/google/cloud/websecurityscanner/v1/finding_addon_pb.rb +10 -0
  13. data/lib/google/cloud/websecurityscanner/v1/finding_pb.rb +1 -0
  14. data/lib/google/cloud/websecurityscanner/v1/scan_config_pb.rb +1 -0
  15. data/lib/google/cloud/websecurityscanner/v1/scan_run_warning_trace_pb.rb +1 -0
  16. data/lib/google/cloud/websecurityscanner/v1/web_security_scanner_pb.rb +1 -1
  17. data/proto_docs/google/api/client.rb +318 -0
  18. data/proto_docs/google/api/launch_stage.rb +71 -0
  19. data/proto_docs/google/cloud/websecurityscanner/v1/finding.rb +3 -0
  20. data/proto_docs/google/cloud/websecurityscanner/v1/finding_addon.rb +22 -0
  21. data/proto_docs/google/cloud/websecurityscanner/v1/scan_config.rb +3 -0
  22. data/proto_docs/google/cloud/websecurityscanner/v1/scan_run_error_trace.rb +1 -1
  23. data/proto_docs/google/cloud/websecurityscanner/v1/scan_run_warning_trace.rb +3 -0
  24. data/proto_docs/google/protobuf/duration.rb +98 -0
  25. metadata +15 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9a24233cc850f8ffd6b725b57507e3bb09421ba7a94aec16e604cac82c4a42b
4
- data.tar.gz: 2b263ff1c2915839b23f6ce19ba5fbbe5370c2da173c87a6c421432ad5680cb1
3
+ metadata.gz: 664278dbf7337d9bb4ecd02684aacd426ed0d77bbeec9799de7bbf4c9502176b
4
+ data.tar.gz: 9488c252bb4a875cd3db1af007a64652692b8d7dc3d9e947db9e58de8733ba57
5
5
  SHA512:
6
- metadata.gz: 6966d63070a5ea34f2e11f4d56ee049ad664de48dd198e70aa4d321887b95124cde583d7896c36902a90cbedaed553bf7fffbda27c1d1ced14beb5269363b190
7
- data.tar.gz: 1b2303e966c373f2a3973d938ed04778cb57408e64b1d5215e6f38e376bc30e70b5b68c1b06ee62d63508e8d6ec864bb1ea3986e71da56ff352dce28e9f9381f
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
- 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,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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebSecurityScanner
23
23
  module V1
24
- VERSION = "0.4.1"
24
+ VERSION = "0.6.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