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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e51935e239f210f54d425aec62446de0be38c6cbf7a3d4e66b3fc83007a3924
4
- data.tar.gz: 1707ef637c0147a90bc5b7fc6b448c52cf0d4111f79f99e4c9314fff05ee9b7d
3
+ metadata.gz: 26aef06ebe0aefed94d0bd07a6a35522be475cd4f4d1d9dfdedfd83e85c1c742
4
+ data.tar.gz: b7d1a1cfb16974cf51c5a1fff88b5881ac1411887b4977c6aa65175761db4055
5
5
  SHA512:
6
- metadata.gz: 34f0853ee24f5195660438d2c76453dbaf11951a9b50021734b7c847788d60b6eaa4fae4ec4f504c0b81cc03336844f907f12679b1a331a94d2652b58bf3319d
7
- data.tar.gz: 2a43ed565c0164b3e63d872f04c6779ca93f4c0782c82602f53e86260852ace64dcf387bd65aac5d77ef8104306533e6f9e9b19e025d97b94b41b2270c333971
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
- API Client library for the Web Security Scanner V1beta 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
 
@@ -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://googleapis.dev/ruby/google-cloud-web_security_scanner-v1beta/latest)
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/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.
@@ -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.5+.
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. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebSecurityScanner
23
23
  module V1beta
24
- VERSION = "0.3.5"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  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
- # # iterate over all elements by calling #each, and the enumerable
514
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
880
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
1069
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
1263
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
1259
+ # p item
1268
1260
  # end
1269
1261
  #
1270
1262
  def list_findings request, options = nil