google-cloud-recaptcha_enterprise-v1beta1 0.9.0 → 0.10.0
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 +14 -3
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/rest/client.rb +36 -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
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bd011612ef4d1de27bd77b27830d491a7763f39d3fa66fe3b9a9062d61d3d92
|
4
|
+
data.tar.gz: e0aa32aaf89a0579a9b73216715ff63323a02314c0855f780e1deac3761d35db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b7474396027bb799805d871578d2900e05d142569063172f7738f9704e644e7f2b6eece288518f134cbb2212e7eb2f00983a003f890324a26324b505dbb755c
|
7
|
+
data.tar.gz: a805fe46d90eca65c23fc5c3725d316679e6939371218d567b025f340dd6b59155b333e8faa871f195da7522bd56bded56fc2bc82ed2637956700fc36d76e3dc
|
@@ -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
|
@@ -142,7 +142,8 @@ module Google
|
|
142
142
|
credentials: credentials,
|
143
143
|
endpoint: @config.endpoint,
|
144
144
|
channel_args: @config.channel_args,
|
145
|
-
interceptors: @config.interceptors
|
145
|
+
interceptors: @config.interceptors,
|
146
|
+
channel_pool_config: @config.channel_pool
|
146
147
|
)
|
147
148
|
end
|
148
149
|
|
@@ -421,7 +422,9 @@ module Google
|
|
421
422
|
class Configuration
|
422
423
|
extend ::Gapic::Config
|
423
424
|
|
424
|
-
|
425
|
+
DEFAULT_ENDPOINT = "recaptchaenterprise.googleapis.com"
|
426
|
+
|
427
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
425
428
|
config_attr :credentials, nil do |value|
|
426
429
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
427
430
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -456,6 +459,14 @@ module Google
|
|
456
459
|
end
|
457
460
|
end
|
458
461
|
|
462
|
+
##
|
463
|
+
# Configuration for the channel pool
|
464
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
465
|
+
#
|
466
|
+
def channel_pool
|
467
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
468
|
+
end
|
469
|
+
|
459
470
|
##
|
460
471
|
# Configuration RPC class for the RecaptchaEnterpriseService API.
|
461
472
|
#
|
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
|
@@ -169,6 +169,22 @@ module Google
|
|
169
169
|
# @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::Assessment]
|
170
170
|
#
|
171
171
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
172
|
+
#
|
173
|
+
# @example Basic example
|
174
|
+
# require "google/cloud/recaptcha_enterprise/v1beta1"
|
175
|
+
#
|
176
|
+
# # Create a client object. The client can be reused for multiple calls.
|
177
|
+
# client = Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseService::Rest::Client.new
|
178
|
+
#
|
179
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
180
|
+
# request = Google::Cloud::RecaptchaEnterprise::V1beta1::CreateAssessmentRequest.new
|
181
|
+
#
|
182
|
+
# # Call the create_assessment method.
|
183
|
+
# result = client.create_assessment request
|
184
|
+
#
|
185
|
+
# # The returned object is of type Google::Cloud::RecaptchaEnterprise::V1beta1::Assessment.
|
186
|
+
# p result
|
187
|
+
#
|
172
188
|
def create_assessment request, options = nil
|
173
189
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
174
190
|
|
@@ -249,6 +265,22 @@ module Google
|
|
249
265
|
# @return [::Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentResponse]
|
250
266
|
#
|
251
267
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
268
|
+
#
|
269
|
+
# @example Basic example
|
270
|
+
# require "google/cloud/recaptcha_enterprise/v1beta1"
|
271
|
+
#
|
272
|
+
# # Create a client object. The client can be reused for multiple calls.
|
273
|
+
# client = Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseService::Rest::Client.new
|
274
|
+
#
|
275
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
276
|
+
# request = Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest.new
|
277
|
+
#
|
278
|
+
# # Call the annotate_assessment method.
|
279
|
+
# result = client.annotate_assessment request
|
280
|
+
#
|
281
|
+
# # The returned object is of type Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentResponse.
|
282
|
+
# p result
|
283
|
+
#
|
252
284
|
def annotate_assessment request, options = nil
|
253
285
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
254
286
|
|
@@ -357,7 +389,9 @@ module Google
|
|
357
389
|
class Configuration
|
358
390
|
extend ::Gapic::Config
|
359
391
|
|
360
|
-
|
392
|
+
DEFAULT_ENDPOINT = "recaptchaenterprise.googleapis.com"
|
393
|
+
|
394
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
361
395
|
config_attr :credentials, nil do |value|
|
362
396
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
363
397
|
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
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
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.
|
4
|
+
version: 0.10.0
|
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-
|
11
|
+
date: 2023-09-12 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.20.0
|
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.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
209
|
- !ruby/object:Gem::Version
|
210
210
|
version: '0'
|
211
211
|
requirements: []
|
212
|
-
rubygems_version: 3.4.
|
212
|
+
rubygems_version: 3.4.19
|
213
213
|
signing_key:
|
214
214
|
specification_version: 4
|
215
215
|
summary: Help protect your website from fraudulent activity, spam, and abuse without
|