google-cloud-recaptcha_enterprise-v1beta1 0.2.0 → 0.2.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 +21 -21
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/credentials.rb +1 -1
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/paths.rb +1 -1
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62ab91f6d41aaf594ba3103376dae9458fb59cc4d4f4c1661e50a8d50056f69f
|
4
|
+
data.tar.gz: 6ffd4a6fc64eca0ad87439bb8b2abd26e8ceff12322e5a19845b6f543a82557c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 171001c09255d8c9edb09a13937b8ff36a80a4896118d10e7dc753fbaabb6338a218f498175d00477420442459c16a541c29ba6344e1450d0450aafa8cffa4df
|
7
|
+
data.tar.gz: 620393a0931392b53c0e0093e4696232e3ec216d708f5249a5dee3bdfc1affa0627140c2ba5d3226181f401906632b8f324f1234f572b009cabaca564245824b
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
module V1beta1
|
26
26
|
module RecaptchaEnterpriseService
|
27
27
|
##
|
28
|
-
# Client for the
|
28
|
+
# Client for the RecaptchaEnterpriseService service.
|
29
29
|
#
|
30
30
|
# Service to determine the likelihood an event is legitimate.
|
31
31
|
#
|
@@ -33,17 +33,17 @@ module Google
|
|
33
33
|
include Paths
|
34
34
|
|
35
35
|
# @private
|
36
|
-
attr_reader :
|
36
|
+
attr_reader :recaptcha_enterprise_service_stub
|
37
37
|
|
38
38
|
##
|
39
|
-
# Configure the
|
39
|
+
# Configure the RecaptchaEnterpriseService Client class.
|
40
40
|
#
|
41
41
|
# See {::Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseService::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
44
|
# ## Example
|
45
45
|
#
|
46
|
-
# To modify the configuration for all
|
46
|
+
# To modify the configuration for all RecaptchaEnterpriseService clients:
|
47
47
|
#
|
48
48
|
# ::Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseService::Client.configure do |config|
|
49
49
|
# config.timeout = 10.0
|
@@ -86,7 +86,7 @@ module Google
|
|
86
86
|
end
|
87
87
|
|
88
88
|
##
|
89
|
-
# Configure the
|
89
|
+
# Configure the RecaptchaEnterpriseService Client instance.
|
90
90
|
#
|
91
91
|
# The configuration is set to the derived mode, meaning that values can be changed,
|
92
92
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
@@ -106,23 +106,23 @@ module Google
|
|
106
106
|
end
|
107
107
|
|
108
108
|
##
|
109
|
-
# Create a new
|
109
|
+
# Create a new RecaptchaEnterpriseService client object.
|
110
110
|
#
|
111
111
|
# ## Examples
|
112
112
|
#
|
113
|
-
# To create a new
|
113
|
+
# To create a new RecaptchaEnterpriseService client with the default
|
114
114
|
# configuration:
|
115
115
|
#
|
116
116
|
# client = ::Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseService::Client.new
|
117
117
|
#
|
118
|
-
# To create a new
|
118
|
+
# To create a new RecaptchaEnterpriseService client with a custom
|
119
119
|
# configuration:
|
120
120
|
#
|
121
121
|
# client = ::Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseService::Client.new do |config|
|
122
122
|
# config.timeout = 10.0
|
123
123
|
# end
|
124
124
|
#
|
125
|
-
# @yield [config] Configure the
|
125
|
+
# @yield [config] Configure the RecaptchaEnterpriseService client.
|
126
126
|
# @yieldparam config [Client::Configuration]
|
127
127
|
#
|
128
128
|
def initialize
|
@@ -147,7 +147,7 @@ module Google
|
|
147
147
|
@quota_project_id = @config.quota_project
|
148
148
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
149
149
|
|
150
|
-
@
|
150
|
+
@recaptcha_enterprise_service_stub = ::Gapic::ServiceStub.new(
|
151
151
|
::Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseServiceV1Beta1::Stub,
|
152
152
|
credentials: credentials,
|
153
153
|
endpoint: @config.endpoint,
|
@@ -219,7 +219,7 @@ module Google
|
|
219
219
|
options.apply_defaults metadata: @config.metadata,
|
220
220
|
retry_policy: @config.retry_policy
|
221
221
|
|
222
|
-
@
|
222
|
+
@recaptcha_enterprise_service_stub.call_rpc :create_assessment, request, options: options do |response, operation|
|
223
223
|
yield response, operation if block_given?
|
224
224
|
return response
|
225
225
|
end
|
@@ -289,7 +289,7 @@ module Google
|
|
289
289
|
options.apply_defaults metadata: @config.metadata,
|
290
290
|
retry_policy: @config.retry_policy
|
291
291
|
|
292
|
-
@
|
292
|
+
@recaptcha_enterprise_service_stub.call_rpc :annotate_assessment, request, options: options do |response, operation|
|
293
293
|
yield response, operation if block_given?
|
294
294
|
return response
|
295
295
|
end
|
@@ -358,7 +358,7 @@ module Google
|
|
358
358
|
options.apply_defaults metadata: @config.metadata,
|
359
359
|
retry_policy: @config.retry_policy
|
360
360
|
|
361
|
-
@
|
361
|
+
@recaptcha_enterprise_service_stub.call_rpc :create_key, request, options: options do |response, operation|
|
362
362
|
yield response, operation if block_given?
|
363
363
|
return response
|
364
364
|
end
|
@@ -431,8 +431,8 @@ module Google
|
|
431
431
|
options.apply_defaults metadata: @config.metadata,
|
432
432
|
retry_policy: @config.retry_policy
|
433
433
|
|
434
|
-
@
|
435
|
-
response = ::Gapic::PagedEnumerable.new @
|
434
|
+
@recaptcha_enterprise_service_stub.call_rpc :list_keys, request, options: options do |response, operation|
|
435
|
+
response = ::Gapic::PagedEnumerable.new @recaptcha_enterprise_service_stub, :list_keys, request, response, operation, options
|
436
436
|
yield response, operation if block_given?
|
437
437
|
return response
|
438
438
|
end
|
@@ -499,7 +499,7 @@ module Google
|
|
499
499
|
options.apply_defaults metadata: @config.metadata,
|
500
500
|
retry_policy: @config.retry_policy
|
501
501
|
|
502
|
-
@
|
502
|
+
@recaptcha_enterprise_service_stub.call_rpc :get_key, request, options: options do |response, operation|
|
503
503
|
yield response, operation if block_given?
|
504
504
|
return response
|
505
505
|
end
|
@@ -568,7 +568,7 @@ module Google
|
|
568
568
|
options.apply_defaults metadata: @config.metadata,
|
569
569
|
retry_policy: @config.retry_policy
|
570
570
|
|
571
|
-
@
|
571
|
+
@recaptcha_enterprise_service_stub.call_rpc :update_key, request, options: options do |response, operation|
|
572
572
|
yield response, operation if block_given?
|
573
573
|
return response
|
574
574
|
end
|
@@ -635,7 +635,7 @@ module Google
|
|
635
635
|
options.apply_defaults metadata: @config.metadata,
|
636
636
|
retry_policy: @config.retry_policy
|
637
637
|
|
638
|
-
@
|
638
|
+
@recaptcha_enterprise_service_stub.call_rpc :delete_key, request, options: options do |response, operation|
|
639
639
|
yield response, operation if block_given?
|
640
640
|
return response
|
641
641
|
end
|
@@ -644,9 +644,9 @@ module Google
|
|
644
644
|
end
|
645
645
|
|
646
646
|
##
|
647
|
-
# Configuration class for the
|
647
|
+
# Configuration class for the RecaptchaEnterpriseService API.
|
648
648
|
#
|
649
|
-
# This class represents the configuration for
|
649
|
+
# This class represents the configuration for RecaptchaEnterpriseService,
|
650
650
|
# providing control over timeouts, retry behavior, logging, transport
|
651
651
|
# parameters, and other low-level controls. Certain parameters can also be
|
652
652
|
# applied individually to specific RPCs. See
|
@@ -762,7 +762,7 @@ module Google
|
|
762
762
|
end
|
763
763
|
|
764
764
|
##
|
765
|
-
# Configuration RPC class for the
|
765
|
+
# Configuration RPC class for the RecaptchaEnterpriseService API.
|
766
766
|
#
|
767
767
|
# Includes fields providing the configuration for each RPC in this service.
|
768
768
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/credentials.rb
CHANGED
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
module RecaptchaEnterprise
|
24
24
|
module V1beta1
|
25
25
|
module RecaptchaEnterpriseService
|
26
|
-
# Credentials for the
|
26
|
+
# Credentials for the RecaptchaEnterpriseService API.
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
29
|
"https://www.googleapis.com/auth/cloud-platform"
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
module RecaptchaEnterprise
|
23
23
|
module V1beta1
|
24
24
|
module RecaptchaEnterpriseService
|
25
|
-
# Path helper methods for the
|
25
|
+
# Path helper methods for the RecaptchaEnterpriseService API.
|
26
26
|
module Paths
|
27
27
|
##
|
28
28
|
# Create a fully-qualified Assessment resource string.
|
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.2.
|
4
|
+
version: 0.2.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: 2020-05-
|
11
|
+
date: 2020-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|