google-cloud-web_risk-v1 0.5.0 → 0.7.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: 73ec27e904c610367614fc9d2f42b1bbbd56da940ae72987a09ea843b21ef538
4
- data.tar.gz: 8470feaf7efa34fff3f13542b5f3ded97f3262c218dd77d720fcb6d72e4fef0e
3
+ metadata.gz: 639111916109dc727c3cc47fb5f503e95003095decf6d7759da69bae41a92f64
4
+ data.tar.gz: 26b7cbdff0b4294329c82691ad6b060745d156c13beae822a70ffd8a5497c200
5
5
  SHA512:
6
- metadata.gz: 2d81049fd674623b60a8ff522b98867003d5933ead11ccac170be521ea5f74ef4f9856bf2f7c45cdb08cef631d253f6bfd7174a6b2a3561f4a3d4f1b7347e406
7
- data.tar.gz: e61d363900d193a5fae0ef3656cc43b540b4b79cfc9747bcfbbde715d08a7b3e0d2c1a74335730b318941b1a24660345459616f8b9bd7423160a37bc4a216927
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/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_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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebRisk
23
23
  module V1
24
- VERSION = "0.5.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  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 = 60.0
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 with CREATE_SUBMISSION_USERS visibility can use this method.
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