google-cloud-phishing_protection-v1beta1 0.3.2 → 0.3.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 330a8c76e7b2ad3c54b9fd53050e4d44ca9255ab8374a922ce45714831221477
|
4
|
+
data.tar.gz: 0c96959ad1003f6490094b4dac83081e6546068dd0ff0bac9e37ac6d9925dbc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f1acd08eede383369a9d1e7505c1d56d51f4628f610fa34ad27b8812a31b30db0f94e2c9189ba6152d6ccbc71f6d04c1ee784b6f427463753ef81e054dc5b2a
|
7
|
+
data.tar.gz: 77c8ad735e46efafcdf83fe0af67a9b0b930f997ae7aa1dc0ef7c97b911bb99829f40be942eae83ff1a5131fe2c7c4b5b69def837851fcb3001eefa9ec2b1835
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all PhishingProtectionService clients
|
47
|
+
# ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -96,19 +95,15 @@ module Google
|
|
96
95
|
##
|
97
96
|
# Create a new PhishingProtectionService client object.
|
98
97
|
#
|
99
|
-
#
|
100
|
-
#
|
101
|
-
# To create a new PhishingProtectionService client with the default
|
102
|
-
# configuration:
|
98
|
+
# @example
|
103
99
|
#
|
104
|
-
#
|
100
|
+
# # Create a client using the default configuration
|
101
|
+
# client = ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.new
|
105
102
|
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
# config.timeout = 10.0
|
111
|
-
# end
|
103
|
+
# # Create a client using a custom configuration
|
104
|
+
# client = ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.new do |config|
|
105
|
+
# config.timeout = 10.0
|
106
|
+
# end
|
112
107
|
#
|
113
108
|
# @yield [config] Configure the PhishingProtectionService client.
|
114
109
|
# @yieldparam config [Client::Configuration]
|
@@ -128,10 +123,9 @@ module Google
|
|
128
123
|
|
129
124
|
# Create credentials
|
130
125
|
credentials = @config.credentials
|
131
|
-
# Use self-signed JWT if the
|
126
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
132
127
|
# but only if the default endpoint does not have a region prefix.
|
133
|
-
enable_self_signed_jwt = @config.
|
134
|
-
@config.endpoint == Client.configure.endpoint &&
|
128
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
135
129
|
!@config.endpoint.split(".").first.include?("-")
|
136
130
|
credentials ||= Credentials.default scope: @config.scope,
|
137
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -216,7 +210,9 @@ module Google
|
|
216
210
|
options.apply_defaults timeout: @config.rpcs.report_phishing.timeout,
|
217
211
|
metadata: metadata,
|
218
212
|
retry_policy: @config.rpcs.report_phishing.retry_policy
|
219
|
-
|
213
|
+
|
214
|
+
options.apply_defaults timeout: @config.timeout,
|
215
|
+
metadata: @config.metadata,
|
220
216
|
retry_policy: @config.retry_policy
|
221
217
|
|
222
218
|
@phishing_protection_service_stub.call_rpc :report_phishing, request, options: options do |response, operation|
|
@@ -240,22 +236,21 @@ module Google
|
|
240
236
|
# Configuration can be applied globally to all clients, or to a single client
|
241
237
|
# on construction.
|
242
238
|
#
|
243
|
-
#
|
244
|
-
#
|
245
|
-
#
|
246
|
-
# to 20 seconds,
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
#
|
256
|
-
#
|
257
|
-
#
|
258
|
-
# end
|
239
|
+
# @example
|
240
|
+
#
|
241
|
+
# # Modify the global config, setting the timeout for
|
242
|
+
# # report_phishing to 20 seconds,
|
243
|
+
# # and all remaining timeouts to 10 seconds.
|
244
|
+
# ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.configure do |config|
|
245
|
+
# config.timeout = 10.0
|
246
|
+
# config.rpcs.report_phishing.timeout = 20.0
|
247
|
+
# end
|
248
|
+
#
|
249
|
+
# # Apply the above configuration only to a new client.
|
250
|
+
# client = ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.new do |config|
|
251
|
+
# config.timeout = 10.0
|
252
|
+
# config.rpcs.report_phishing.timeout = 20.0
|
253
|
+
# end
|
259
254
|
#
|
260
255
|
# @!attribute [rw] endpoint
|
261
256
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-phishing_protection-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|