google-cloud-web_risk-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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/cloud/web_risk/v1/rest.rb +37 -0
- data/lib/google/cloud/web_risk/v1/version.rb +1 -1
- data/lib/google/cloud/web_risk/v1/web_risk_service/client.rb +8 -3
- data/lib/google/cloud/web_risk/v1/web_risk_service/rest/client.rb +608 -0
- data/lib/google/cloud/web_risk/v1/web_risk_service/rest/service_stub.rb +279 -0
- data/lib/google/cloud/web_risk/v1/web_risk_service/rest.rb +53 -0
- data/lib/google/cloud/web_risk/v1/web_risk_service.rb +7 -1
- data/lib/google/cloud/web_risk/v1.rb +7 -2
- data/lib/google/cloud/webrisk/v1/webrisk_pb.rb +1 -0
- data/lib/google/cloud/webrisk/v1/webrisk_services_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/cloud/webrisk/v1/webrisk.rb +14 -6
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +14 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 639111916109dc727c3cc47fb5f503e95003095decf6d7759da69bae41a92f64
|
4
|
+
data.tar.gz: 26b7cbdff0b4294329c82691ad6b060745d156c13beae822a70ffd8a5497c200
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bac4dcafbcc78a89fc96fd34fac90a3b49fe59a8d07c26b401692db6bd533d26838297998dcff248fda04e60f1921297eebef62c4141a857ea7b2841b14e0a5
|
7
|
+
data.tar.gz: f9bc927e1e6ac8e839cf68ab48d454541c572bde61e51a958ce17d4fe098d4087e4c4cb2447e1c974a6cc24073ad3755fc766da1b25f6b973fad9c0e90b5cbdd
|
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
@@ -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.
|
@@ -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_risk/v1/web_risk_service/rest"
|
20
|
+
require "google/cloud/web_risk/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module WebRisk
|
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_risk/v1/rest"
|
31
|
+
# client = ::Google::Cloud::WebRisk::V1::WebRiskService::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V1
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -80,7 +80,7 @@ module Google
|
|
80
80
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
81
81
|
}
|
82
82
|
|
83
|
-
default_config.rpcs.create_submission.timeout =
|
83
|
+
default_config.rpcs.create_submission.timeout = 600.0
|
84
84
|
|
85
85
|
default_config
|
86
86
|
end
|
@@ -186,7 +186,9 @@ module Google
|
|
186
186
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
187
187
|
#
|
188
188
|
# @param threat_type [::Google::Cloud::WebRisk::V1::ThreatType]
|
189
|
-
# Required. The threat list to update. Only a single ThreatType should be specified
|
189
|
+
# Required. The threat list to update. Only a single ThreatType should be specified
|
190
|
+
# per request. If you want to handle multiple ThreatTypes, you must make one
|
191
|
+
# request per ThreatType.
|
190
192
|
# @param version_token [::String]
|
191
193
|
# The current version token of the client for the requested list (the
|
192
194
|
# client version that was received from the last successful diff).
|
@@ -360,6 +362,8 @@ module Google
|
|
360
362
|
# @param hash_prefix [::String]
|
361
363
|
# A hash prefix, consisting of the most significant 4-32 bytes of a SHA256
|
362
364
|
# hash. For JSON requests, this field is base64-encoded.
|
365
|
+
# Note that if this parameter is provided by a URI, it must be encoded using
|
366
|
+
# the web safe base64 variant (RFC 4648).
|
363
367
|
# @param threat_types [::Array<::Google::Cloud::WebRisk::V1::ThreatType>]
|
364
368
|
# Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
|
365
369
|
#
|
@@ -425,7 +429,8 @@ module Google
|
|
425
429
|
# content, the site will be added to the [Google's Social Engineering
|
426
430
|
# lists](https://support.google.com/webmasters/answer/6350487/) in order to
|
427
431
|
# protect users that could get exposed to this threat in the future. Only
|
428
|
-
# projects
|
432
|
+
# allowlisted projects can use this method during Early Access. Please reach
|
433
|
+
# out to Sales or your customer engineer to obtain access.
|
429
434
|
#
|
430
435
|
# @overload create_submission(request, options = nil)
|
431
436
|
# Pass arguments to `create_submission` via a request object, either of type
|