google-cloud-recaptcha_enterprise-v1beta1 0.9.0 → 0.9.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/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/client.rb +4 -2
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/rest/client.rb +4 -2
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/rest/service_stub.rb +2 -2
- data/lib/google/cloud/recaptcha_enterprise/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: cf2951fb5cead84765bd71b02ee88c5ab1128d1db8c33520263dcab80c725c3b
|
4
|
+
data.tar.gz: 79b7b2699e3a5d67171a6310d5b3dab5b6296258525ca1d21c35a7b8635ecccf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44fb1540449956b15ce058ce709bed258c540b1cb042ab4e6f0c5599dd9dab68d03603ad848d7fb1d35ecadb8aee7de9c3b09717af519a66c7087033afddc278
|
7
|
+
data.tar.gz: 87c62fcf2b6f2203fd0c8e608bed50122e3c5dd7f9f312713239a4c03082a929399ceeab8da3ff17229432299b13da7e9af7e9bc1c5912c6931e1e21874548eb
|
@@ -127,7 +127,7 @@ module Google
|
|
127
127
|
credentials = @config.credentials
|
128
128
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
129
129
|
# but only if the default endpoint does not have a region prefix.
|
130
|
-
enable_self_signed_jwt = @config.endpoint ==
|
130
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
131
131
|
!@config.endpoint.split(".").first.include?("-")
|
132
132
|
credentials ||= Credentials.default scope: @config.scope,
|
133
133
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -421,7 +421,9 @@ module Google
|
|
421
421
|
class Configuration
|
422
422
|
extend ::Gapic::Config
|
423
423
|
|
424
|
-
|
424
|
+
DEFAULT_ENDPOINT = "recaptchaenterprise.googleapis.com"
|
425
|
+
|
426
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
425
427
|
config_attr :credentials, nil do |value|
|
426
428
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
427
429
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/rest/client.rb
CHANGED
@@ -123,7 +123,7 @@ module Google
|
|
123
123
|
credentials = @config.credentials
|
124
124
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
125
125
|
# but only if the default endpoint does not have a region prefix.
|
126
|
-
enable_self_signed_jwt = @config.endpoint ==
|
126
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
127
127
|
!@config.endpoint.split(".").first.include?("-")
|
128
128
|
credentials ||= Credentials.default scope: @config.scope,
|
129
129
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -357,7 +357,9 @@ module Google
|
|
357
357
|
class Configuration
|
358
358
|
extend ::Gapic::Config
|
359
359
|
|
360
|
-
|
360
|
+
DEFAULT_ENDPOINT = "recaptchaenterprise.googleapis.com"
|
361
|
+
|
362
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
361
363
|
config_attr :credentials, nil do |value|
|
362
364
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
363
365
|
allowed.any? { |klass| klass === value }
|
data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/rest/service_stub.rb
CHANGED
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_assessment_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
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_annotate_assessment_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-recaptcha_enterprise-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.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
|