google-cloud-phishing_protection-v1beta1 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/phishing_protection/v1beta1/phishing_protection_service/client.rb +4 -2
- data/lib/google/cloud/phishing_protection/v1beta1/phishing_protection_service/rest/client.rb +4 -2
- data/lib/google/cloud/phishing_protection/v1beta1/phishing_protection_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/phishing_protection/v1beta1/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cbe01fcedc09a6b2f318a6a60e6d9fa627e0d888564c83abda3d51e931c5d61
|
4
|
+
data.tar.gz: c2dad33d49eacd11ebc13a483300b2ca02e288d2ebb50f8d0eb5279270f5d050
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83db02be72e790d220470e4d4c1fec6d35b0c49524afa2460268b4613113ca77f846ffad9534c9fe941ed618e35f349164ac194e8f3378e4fb00ee26229d0e02
|
7
|
+
data.tar.gz: 58098aa969d4d3882df1e906f3269f5f529e096b5b415e745f290fa0b807ff298f5c7323bafe0d9f7970a136fdd4c0c5a57a9d26620b8d1f8cfdfaa10dc72315
|
@@ -125,7 +125,7 @@ module Google
|
|
125
125
|
credentials = @config.credentials
|
126
126
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
127
127
|
# but only if the default endpoint does not have a region prefix.
|
128
|
-
enable_self_signed_jwt = @config.endpoint ==
|
128
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
129
129
|
!@config.endpoint.split(".").first.include?("-")
|
130
130
|
credentials ||= Credentials.default scope: @config.scope,
|
131
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -322,7 +322,9 @@ module Google
|
|
322
322
|
class Configuration
|
323
323
|
extend ::Gapic::Config
|
324
324
|
|
325
|
-
|
325
|
+
DEFAULT_ENDPOINT = "phishingprotection.googleapis.com"
|
326
|
+
|
327
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
326
328
|
config_attr :credentials, nil do |value|
|
327
329
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
328
330
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
data/lib/google/cloud/phishing_protection/v1beta1/phishing_protection_service/rest/client.rb
CHANGED
@@ -121,7 +121,7 @@ module Google
|
|
121
121
|
credentials = @config.credentials
|
122
122
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
123
123
|
# but only if the default endpoint does not have a region prefix.
|
124
|
-
enable_self_signed_jwt = @config.endpoint ==
|
124
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
125
125
|
!@config.endpoint.split(".").first.include?("-")
|
126
126
|
credentials ||= Credentials.default scope: @config.scope,
|
127
127
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -281,7 +281,9 @@ module Google
|
|
281
281
|
class Configuration
|
282
282
|
extend ::Gapic::Config
|
283
283
|
|
284
|
-
|
284
|
+
DEFAULT_ENDPOINT = "phishingprotection.googleapis.com"
|
285
|
+
|
286
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
285
287
|
config_attr :credentials, nil do |value|
|
286
288
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
287
289
|
allowed.any? { |klass| klass === value }
|
data/lib/google/cloud/phishing_protection/v1beta1/phishing_protection_service/rest/service_stub.rb
CHANGED
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_report_phishing_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
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.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-06 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.
|
19
|
+
version: 0.19.1
|
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.19.
|
29
|
+
version: 0.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|