google-cloud-recaptcha_enterprise-v1beta1 0.4.3 → 0.4.4
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 +146 -21
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/version.rb +1 -1
- data/lib/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise_pb.rb +2 -2
- data/lib/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise_services_pb.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: dadbced6eb4dfcb2767e133ffb2b21533da23f5d0bb0010624e23ae6b459d7e3
|
4
|
+
data.tar.gz: fcd1d5e6e2b6b4162983b9e7eedeae430c69fb7fd92426c211a9aa0231826c57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bdf375c05bbc327a30264b5a387bac61abccab09be6fbf71748336bdff993b1a5b589c337d75f8d4d259cccdfab5ab90522f3600d73c97458b06dc32911de2b
|
7
|
+
data.tar.gz: 18b8ec8cbdaa77661835457b2cc149a7d3bdd6f758856ac4064d5a9440053233f4f7225f6fef9bd19501e3323134e8a9989eb959cbc6acfeaa828f9ef409420b
|
@@ -190,6 +190,21 @@ module Google
|
|
190
190
|
#
|
191
191
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
192
192
|
#
|
193
|
+
# @example Basic example
|
194
|
+
# require "google/cloud/recaptcha_enterprise/v1beta1"
|
195
|
+
#
|
196
|
+
# # Create a client object. The client can be reused for multiple calls.
|
197
|
+
# client = Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseService::Client.new
|
198
|
+
#
|
199
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
200
|
+
# request = Google::Cloud::RecaptchaEnterprise::V1beta1::CreateAssessmentRequest.new
|
201
|
+
#
|
202
|
+
# # Call the create_assessment method.
|
203
|
+
# result = client.create_assessment request
|
204
|
+
#
|
205
|
+
# # The returned object is of type Google::Cloud::RecaptchaEnterprise::V1beta1::Assessment.
|
206
|
+
# p result
|
207
|
+
#
|
193
208
|
def create_assessment request, options = nil
|
194
209
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
195
210
|
|
@@ -207,9 +222,11 @@ module Google
|
|
207
222
|
gapic_version: ::Google::Cloud::RecaptchaEnterprise::V1beta1::VERSION
|
208
223
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
209
224
|
|
210
|
-
header_params = {
|
211
|
-
|
212
|
-
|
225
|
+
header_params = {}
|
226
|
+
if request.parent
|
227
|
+
header_params["parent"] = request.parent
|
228
|
+
end
|
229
|
+
|
213
230
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
214
231
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
215
232
|
|
@@ -262,6 +279,21 @@ module Google
|
|
262
279
|
#
|
263
280
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
264
281
|
#
|
282
|
+
# @example Basic example
|
283
|
+
# require "google/cloud/recaptcha_enterprise/v1beta1"
|
284
|
+
#
|
285
|
+
# # Create a client object. The client can be reused for multiple calls.
|
286
|
+
# client = Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseService::Client.new
|
287
|
+
#
|
288
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
289
|
+
# request = Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentRequest.new
|
290
|
+
#
|
291
|
+
# # Call the annotate_assessment method.
|
292
|
+
# result = client.annotate_assessment request
|
293
|
+
#
|
294
|
+
# # The returned object is of type Google::Cloud::RecaptchaEnterprise::V1beta1::AnnotateAssessmentResponse.
|
295
|
+
# p result
|
296
|
+
#
|
265
297
|
def annotate_assessment request, options = nil
|
266
298
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
267
299
|
|
@@ -279,9 +311,11 @@ module Google
|
|
279
311
|
gapic_version: ::Google::Cloud::RecaptchaEnterprise::V1beta1::VERSION
|
280
312
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
281
313
|
|
282
|
-
header_params = {
|
283
|
-
|
284
|
-
|
314
|
+
header_params = {}
|
315
|
+
if request.name
|
316
|
+
header_params["name"] = request.name
|
317
|
+
end
|
318
|
+
|
285
319
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
286
320
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
287
321
|
|
@@ -333,6 +367,21 @@ module Google
|
|
333
367
|
#
|
334
368
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
335
369
|
#
|
370
|
+
# @example Basic example
|
371
|
+
# require "google/cloud/recaptcha_enterprise/v1beta1"
|
372
|
+
#
|
373
|
+
# # Create a client object. The client can be reused for multiple calls.
|
374
|
+
# client = Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseService::Client.new
|
375
|
+
#
|
376
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
377
|
+
# request = Google::Cloud::RecaptchaEnterprise::V1beta1::CreateKeyRequest.new
|
378
|
+
#
|
379
|
+
# # Call the create_key method.
|
380
|
+
# result = client.create_key request
|
381
|
+
#
|
382
|
+
# # The returned object is of type Google::Cloud::RecaptchaEnterprise::V1beta1::Key.
|
383
|
+
# p result
|
384
|
+
#
|
336
385
|
def create_key request, options = nil
|
337
386
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
338
387
|
|
@@ -350,9 +399,11 @@ module Google
|
|
350
399
|
gapic_version: ::Google::Cloud::RecaptchaEnterprise::V1beta1::VERSION
|
351
400
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
352
401
|
|
353
|
-
header_params = {
|
354
|
-
|
355
|
-
|
402
|
+
header_params = {}
|
403
|
+
if request.parent
|
404
|
+
header_params["parent"] = request.parent
|
405
|
+
end
|
406
|
+
|
356
407
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
357
408
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
358
409
|
|
@@ -408,6 +459,27 @@ module Google
|
|
408
459
|
#
|
409
460
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
410
461
|
#
|
462
|
+
# @example Basic example
|
463
|
+
# require "google/cloud/recaptcha_enterprise/v1beta1"
|
464
|
+
#
|
465
|
+
# # Create a client object. The client can be reused for multiple calls.
|
466
|
+
# client = Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseService::Client.new
|
467
|
+
#
|
468
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
469
|
+
# request = Google::Cloud::RecaptchaEnterprise::V1beta1::ListKeysRequest.new
|
470
|
+
#
|
471
|
+
# # Call the list_keys method.
|
472
|
+
# result = client.list_keys request
|
473
|
+
#
|
474
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
475
|
+
# # iterate over all elements by calling #each, and the enumerable
|
476
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
477
|
+
# # methods are also available for managing paging directly.
|
478
|
+
# result.each do |response|
|
479
|
+
# # Each element is of type ::Google::Cloud::RecaptchaEnterprise::V1beta1::Key.
|
480
|
+
# p response
|
481
|
+
# end
|
482
|
+
#
|
411
483
|
def list_keys request, options = nil
|
412
484
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
413
485
|
|
@@ -425,9 +497,11 @@ module Google
|
|
425
497
|
gapic_version: ::Google::Cloud::RecaptchaEnterprise::V1beta1::VERSION
|
426
498
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
427
499
|
|
428
|
-
header_params = {
|
429
|
-
|
430
|
-
|
500
|
+
header_params = {}
|
501
|
+
if request.parent
|
502
|
+
header_params["parent"] = request.parent
|
503
|
+
end
|
504
|
+
|
431
505
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
432
506
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
433
507
|
|
@@ -478,6 +552,21 @@ module Google
|
|
478
552
|
#
|
479
553
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
480
554
|
#
|
555
|
+
# @example Basic example
|
556
|
+
# require "google/cloud/recaptcha_enterprise/v1beta1"
|
557
|
+
#
|
558
|
+
# # Create a client object. The client can be reused for multiple calls.
|
559
|
+
# client = Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseService::Client.new
|
560
|
+
#
|
561
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
562
|
+
# request = Google::Cloud::RecaptchaEnterprise::V1beta1::GetKeyRequest.new
|
563
|
+
#
|
564
|
+
# # Call the get_key method.
|
565
|
+
# result = client.get_key request
|
566
|
+
#
|
567
|
+
# # The returned object is of type Google::Cloud::RecaptchaEnterprise::V1beta1::Key.
|
568
|
+
# p result
|
569
|
+
#
|
481
570
|
def get_key request, options = nil
|
482
571
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
483
572
|
|
@@ -495,9 +584,11 @@ module Google
|
|
495
584
|
gapic_version: ::Google::Cloud::RecaptchaEnterprise::V1beta1::VERSION
|
496
585
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
497
586
|
|
498
|
-
header_params = {
|
499
|
-
|
500
|
-
|
587
|
+
header_params = {}
|
588
|
+
if request.name
|
589
|
+
header_params["name"] = request.name
|
590
|
+
end
|
591
|
+
|
501
592
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
502
593
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
503
594
|
|
@@ -549,6 +640,21 @@ module Google
|
|
549
640
|
#
|
550
641
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
551
642
|
#
|
643
|
+
# @example Basic example
|
644
|
+
# require "google/cloud/recaptcha_enterprise/v1beta1"
|
645
|
+
#
|
646
|
+
# # Create a client object. The client can be reused for multiple calls.
|
647
|
+
# client = Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseService::Client.new
|
648
|
+
#
|
649
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
650
|
+
# request = Google::Cloud::RecaptchaEnterprise::V1beta1::UpdateKeyRequest.new
|
651
|
+
#
|
652
|
+
# # Call the update_key method.
|
653
|
+
# result = client.update_key request
|
654
|
+
#
|
655
|
+
# # The returned object is of type Google::Cloud::RecaptchaEnterprise::V1beta1::Key.
|
656
|
+
# p result
|
657
|
+
#
|
552
658
|
def update_key request, options = nil
|
553
659
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
554
660
|
|
@@ -566,9 +672,11 @@ module Google
|
|
566
672
|
gapic_version: ::Google::Cloud::RecaptchaEnterprise::V1beta1::VERSION
|
567
673
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
568
674
|
|
569
|
-
header_params = {
|
570
|
-
|
571
|
-
|
675
|
+
header_params = {}
|
676
|
+
if request.key&.name
|
677
|
+
header_params["key.name"] = request.key.name
|
678
|
+
end
|
679
|
+
|
572
680
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
573
681
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
574
682
|
|
@@ -618,6 +726,21 @@ module Google
|
|
618
726
|
#
|
619
727
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
620
728
|
#
|
729
|
+
# @example Basic example
|
730
|
+
# require "google/cloud/recaptcha_enterprise/v1beta1"
|
731
|
+
#
|
732
|
+
# # Create a client object. The client can be reused for multiple calls.
|
733
|
+
# client = Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseService::Client.new
|
734
|
+
#
|
735
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
736
|
+
# request = Google::Cloud::RecaptchaEnterprise::V1beta1::DeleteKeyRequest.new
|
737
|
+
#
|
738
|
+
# # Call the delete_key method.
|
739
|
+
# result = client.delete_key request
|
740
|
+
#
|
741
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
742
|
+
# p result
|
743
|
+
#
|
621
744
|
def delete_key request, options = nil
|
622
745
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
623
746
|
|
@@ -635,9 +758,11 @@ module Google
|
|
635
758
|
gapic_version: ::Google::Cloud::RecaptchaEnterprise::V1beta1::VERSION
|
636
759
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
637
760
|
|
638
|
-
header_params = {
|
639
|
-
|
640
|
-
|
761
|
+
header_params = {}
|
762
|
+
if request.name
|
763
|
+
header_params["name"] = request.name
|
764
|
+
end
|
765
|
+
|
641
766
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
642
767
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
643
768
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
|
|
10
8
|
require 'google/protobuf/empty_pb'
|
11
9
|
require 'google/protobuf/field_mask_pb'
|
12
10
|
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_file("google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest" do
|
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.
|
4
|
+
version: 0.4.4
|
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-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|