google-apis-recaptchaenterprise_v1 0.8.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/recaptchaenterprise_v1/classes.rb +248 -0
- data/lib/google/apis/recaptchaenterprise_v1/gem_version.rb +2 -2
- data/lib/google/apis/recaptchaenterprise_v1/representations.rb +121 -0
- data/lib/google/apis/recaptchaenterprise_v1/service.rb +118 -0
- 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: 84a5195b9fb6ca785ce611afbb93da5b4f1bddf132247385952a1f59f4dc14a2
|
4
|
+
data.tar.gz: 9906deb470543b388d0669789bc433983b2e9a08eb9af93535381bf17df77711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 743aaeed91b3ae4da6a02a029791b13762dd5dae53c8ceac7094556a0dda3b576fbc22b7670822d8550388087717f4ab51dc1142e54491bc7a45bf43863c388c
|
7
|
+
data.tar.gz: ff29ddf3b1b2a993c1de1ff8bc0fa98b8d041332efee35513f5051590ff178d7171d99c524d8786011ba64a0df7e5c22bd6c66867970b3121f6099c02ff4350f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-recaptchaenterprise_v1
|
2
2
|
|
3
|
+
### v0.12.0 (2022-01-11)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220107
|
6
|
+
|
7
|
+
### v0.11.0 (2021-12-14)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211211
|
10
|
+
|
11
|
+
### v0.10.0 (2021-11-09)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211105
|
14
|
+
|
15
|
+
### v0.9.0 (2021-11-02)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20211029
|
18
|
+
|
3
19
|
### v0.8.0 (2021-10-26)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20211022
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/recaptchaenterprise_v1"
|
|
51
51
|
client = Google::Apis::RecaptchaenterpriseV1::RecaptchaEnterpriseService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -22,6 +22,31 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module RecaptchaenterpriseV1
|
24
24
|
|
25
|
+
# Account Defender risk assessment.
|
26
|
+
class GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Labels for this request.
|
30
|
+
# Corresponds to the JSON property `labels`
|
31
|
+
# @return [Array<String>]
|
32
|
+
attr_accessor :labels
|
33
|
+
|
34
|
+
# Recommended action after this request.
|
35
|
+
# Corresponds to the JSON property `recommendedAction`
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :recommended_action
|
38
|
+
|
39
|
+
def initialize(**args)
|
40
|
+
update!(**args)
|
41
|
+
end
|
42
|
+
|
43
|
+
# Update properties of this object
|
44
|
+
def update!(**args)
|
45
|
+
@labels = args[:labels] if args.key?(:labels)
|
46
|
+
@recommended_action = args[:recommended_action] if args.key?(:recommended_action)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
25
50
|
# Settings specific to keys that can be used by Android apps.
|
26
51
|
class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
|
27
52
|
include Google::Apis::Core::Hashable
|
@@ -60,6 +85,16 @@ module Google
|
|
60
85
|
# @return [String]
|
61
86
|
attr_accessor :annotation
|
62
87
|
|
88
|
+
# Optional. Optional unique stable hashed user identifier to apply to the
|
89
|
+
# assessment. This is an alternative to setting the hashed_account_id in
|
90
|
+
# CreateAssessment, for example when the account identifier is not yet known in
|
91
|
+
# the initial request. It is recommended that the identifier is hashed using
|
92
|
+
# hmac-sha256 with stable secret.
|
93
|
+
# Corresponds to the JSON property `hashedAccountId`
|
94
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
95
|
+
# @return [String]
|
96
|
+
attr_accessor :hashed_account_id
|
97
|
+
|
63
98
|
# Optional. Optional reasons for the annotation that will be assigned to the
|
64
99
|
# Event.
|
65
100
|
# Corresponds to the JSON property `reasons`
|
@@ -73,6 +108,7 @@ module Google
|
|
73
108
|
# Update properties of this object
|
74
109
|
def update!(**args)
|
75
110
|
@annotation = args[:annotation] if args.key?(:annotation)
|
111
|
+
@hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
|
76
112
|
@reasons = args[:reasons] if args.key?(:reasons)
|
77
113
|
end
|
78
114
|
end
|
@@ -94,6 +130,11 @@ module Google
|
|
94
130
|
class GoogleCloudRecaptchaenterpriseV1Assessment
|
95
131
|
include Google::Apis::Core::Hashable
|
96
132
|
|
133
|
+
# Account Defender risk assessment.
|
134
|
+
# Corresponds to the JSON property `accountDefenderAssessment`
|
135
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment]
|
136
|
+
attr_accessor :account_defender_assessment
|
137
|
+
|
97
138
|
# The event being assessed.
|
98
139
|
# Corresponds to the JSON property `event`
|
99
140
|
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event]
|
@@ -121,6 +162,7 @@ module Google
|
|
121
162
|
|
122
163
|
# Update properties of this object
|
123
164
|
def update!(**args)
|
165
|
+
@account_defender_assessment = args[:account_defender_assessment] if args.key?(:account_defender_assessment)
|
124
166
|
@event = args[:event] if args.key?(:event)
|
125
167
|
@name = args[:name] if args.key?(:name)
|
126
168
|
@risk_analysis = args[:risk_analysis] if args.key?(:risk_analysis)
|
@@ -179,6 +221,13 @@ module Google
|
|
179
221
|
# @return [String]
|
180
222
|
attr_accessor :expected_action
|
181
223
|
|
224
|
+
# Optional. Optional unique stable hashed user identifier for the request. The
|
225
|
+
# identifier should ideally be hashed using sha256 with stable secret.
|
226
|
+
# Corresponds to the JSON property `hashedAccountId`
|
227
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
228
|
+
# @return [String]
|
229
|
+
attr_accessor :hashed_account_id
|
230
|
+
|
182
231
|
# Optional. The site key that was used to invoke reCAPTCHA on your site and
|
183
232
|
# generate the token.
|
184
233
|
# Corresponds to the JSON property `siteKey`
|
@@ -210,6 +259,7 @@ module Google
|
|
210
259
|
# Update properties of this object
|
211
260
|
def update!(**args)
|
212
261
|
@expected_action = args[:expected_action] if args.key?(:expected_action)
|
262
|
+
@hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
|
213
263
|
@site_key = args[:site_key] if args.key?(:site_key)
|
214
264
|
@token = args[:token] if args.key?(:token)
|
215
265
|
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
@@ -284,6 +334,11 @@ module Google
|
|
284
334
|
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TestingOptions]
|
285
335
|
attr_accessor :testing_options
|
286
336
|
|
337
|
+
# Settings specific to keys that can be used for WAF (Web Application Firewall).
|
338
|
+
# Corresponds to the JSON property `wafSettings`
|
339
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WafSettings]
|
340
|
+
attr_accessor :waf_settings
|
341
|
+
|
287
342
|
# Settings specific to keys that can be used by websites.
|
288
343
|
# Corresponds to the JSON property `webSettings`
|
289
344
|
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettings]
|
@@ -302,6 +357,7 @@ module Google
|
|
302
357
|
@labels = args[:labels] if args.key?(:labels)
|
303
358
|
@name = args[:name] if args.key?(:name)
|
304
359
|
@testing_options = args[:testing_options] if args.key?(:testing_options)
|
360
|
+
@waf_settings = args[:waf_settings] if args.key?(:waf_settings)
|
305
361
|
@web_settings = args[:web_settings] if args.key?(:web_settings)
|
306
362
|
end
|
307
363
|
end
|
@@ -332,6 +388,58 @@ module Google
|
|
332
388
|
end
|
333
389
|
end
|
334
390
|
|
391
|
+
# The response to a `ListRelatedAccountGroupMemberships` call.
|
392
|
+
class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse
|
393
|
+
include Google::Apis::Core::Hashable
|
394
|
+
|
395
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
396
|
+
# field is omitted, there are no subsequent pages.
|
397
|
+
# Corresponds to the JSON property `nextPageToken`
|
398
|
+
# @return [String]
|
399
|
+
attr_accessor :next_page_token
|
400
|
+
|
401
|
+
# The memberships listed by the query.
|
402
|
+
# Corresponds to the JSON property `relatedAccountGroupMemberships`
|
403
|
+
# @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership>]
|
404
|
+
attr_accessor :related_account_group_memberships
|
405
|
+
|
406
|
+
def initialize(**args)
|
407
|
+
update!(**args)
|
408
|
+
end
|
409
|
+
|
410
|
+
# Update properties of this object
|
411
|
+
def update!(**args)
|
412
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
413
|
+
@related_account_group_memberships = args[:related_account_group_memberships] if args.key?(:related_account_group_memberships)
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
417
|
+
# The response to a `ListRelatedAccountGroups` call.
|
418
|
+
class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse
|
419
|
+
include Google::Apis::Core::Hashable
|
420
|
+
|
421
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
422
|
+
# field is omitted, there are no subsequent pages.
|
423
|
+
# Corresponds to the JSON property `nextPageToken`
|
424
|
+
# @return [String]
|
425
|
+
attr_accessor :next_page_token
|
426
|
+
|
427
|
+
# The groups of related accounts listed by the query.
|
428
|
+
# Corresponds to the JSON property `relatedAccountGroups`
|
429
|
+
# @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup>]
|
430
|
+
attr_accessor :related_account_groups
|
431
|
+
|
432
|
+
def initialize(**args)
|
433
|
+
update!(**args)
|
434
|
+
end
|
435
|
+
|
436
|
+
# Update properties of this object
|
437
|
+
def update!(**args)
|
438
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
439
|
+
@related_account_groups = args[:related_account_groups] if args.key?(:related_account_groups)
|
440
|
+
end
|
441
|
+
end
|
442
|
+
|
335
443
|
# Metrics for a single Key.
|
336
444
|
class GoogleCloudRecaptchaenterpriseV1Metrics
|
337
445
|
include Google::Apis::Core::Hashable
|
@@ -386,6 +494,55 @@ module Google
|
|
386
494
|
end
|
387
495
|
end
|
388
496
|
|
497
|
+
# A group of related accounts.
|
498
|
+
class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup
|
499
|
+
include Google::Apis::Core::Hashable
|
500
|
+
|
501
|
+
# Required. The resource name for the related account group in the format `
|
502
|
+
# projects/`project`/relatedaccountgroups/`related_account_group``.
|
503
|
+
# Corresponds to the JSON property `name`
|
504
|
+
# @return [String]
|
505
|
+
attr_accessor :name
|
506
|
+
|
507
|
+
def initialize(**args)
|
508
|
+
update!(**args)
|
509
|
+
end
|
510
|
+
|
511
|
+
# Update properties of this object
|
512
|
+
def update!(**args)
|
513
|
+
@name = args[:name] if args.key?(:name)
|
514
|
+
end
|
515
|
+
end
|
516
|
+
|
517
|
+
# A membership in a group of related accounts.
|
518
|
+
class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership
|
519
|
+
include Google::Apis::Core::Hashable
|
520
|
+
|
521
|
+
# The unique stable hashed user identifier of the member. The identifier
|
522
|
+
# corresponds to a `hashed_account_id` provided in a previous CreateAssessment
|
523
|
+
# or AnnotateAssessment call.
|
524
|
+
# Corresponds to the JSON property `hashedAccountId`
|
525
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
526
|
+
# @return [String]
|
527
|
+
attr_accessor :hashed_account_id
|
528
|
+
|
529
|
+
# Required. The resource name for this membership in the format `projects/`
|
530
|
+
# project`/relatedaccountgroups/`relatedaccountgroup`/memberships/`membership``.
|
531
|
+
# Corresponds to the JSON property `name`
|
532
|
+
# @return [String]
|
533
|
+
attr_accessor :name
|
534
|
+
|
535
|
+
def initialize(**args)
|
536
|
+
update!(**args)
|
537
|
+
end
|
538
|
+
|
539
|
+
# Update properties of this object
|
540
|
+
def update!(**args)
|
541
|
+
@hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
|
542
|
+
@name = args[:name] if args.key?(:name)
|
543
|
+
end
|
544
|
+
end
|
545
|
+
|
389
546
|
# Risk analysis result for an event.
|
390
547
|
class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
|
391
548
|
include Google::Apis::Core::Hashable
|
@@ -460,6 +617,72 @@ module Google
|
|
460
617
|
end
|
461
618
|
end
|
462
619
|
|
620
|
+
# The request message to search related account group memberships.
|
621
|
+
class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest
|
622
|
+
include Google::Apis::Core::Hashable
|
623
|
+
|
624
|
+
# Optional. The unique stable hashed user identifier we should search
|
625
|
+
# connections to. The identifier should correspond to a `hashed_account_id`
|
626
|
+
# provided in a previous CreateAssessment or AnnotateAssessment call.
|
627
|
+
# Corresponds to the JSON property `hashedAccountId`
|
628
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
629
|
+
# @return [String]
|
630
|
+
attr_accessor :hashed_account_id
|
631
|
+
|
632
|
+
# Optional. The maximum number of groups to return. The service may return fewer
|
633
|
+
# than this value. If unspecified, at most 50 groups will be returned. The
|
634
|
+
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
635
|
+
# Corresponds to the JSON property `pageSize`
|
636
|
+
# @return [Fixnum]
|
637
|
+
attr_accessor :page_size
|
638
|
+
|
639
|
+
# Optional. A page token, received from a previous `
|
640
|
+
# SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
|
641
|
+
# subsequent page. When paginating, all other parameters provided to `
|
642
|
+
# SearchRelatedAccountGroupMemberships` must match the call that provided the
|
643
|
+
# page token.
|
644
|
+
# Corresponds to the JSON property `pageToken`
|
645
|
+
# @return [String]
|
646
|
+
attr_accessor :page_token
|
647
|
+
|
648
|
+
def initialize(**args)
|
649
|
+
update!(**args)
|
650
|
+
end
|
651
|
+
|
652
|
+
# Update properties of this object
|
653
|
+
def update!(**args)
|
654
|
+
@hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
|
655
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
656
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
657
|
+
end
|
658
|
+
end
|
659
|
+
|
660
|
+
# The response to a `SearchRelatedAccountGroupMemberships` call.
|
661
|
+
class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse
|
662
|
+
include Google::Apis::Core::Hashable
|
663
|
+
|
664
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
665
|
+
# field is omitted, there are no subsequent pages.
|
666
|
+
# Corresponds to the JSON property `nextPageToken`
|
667
|
+
# @return [String]
|
668
|
+
attr_accessor :next_page_token
|
669
|
+
|
670
|
+
# The queried memberships.
|
671
|
+
# Corresponds to the JSON property `relatedAccountGroupMemberships`
|
672
|
+
# @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership>]
|
673
|
+
attr_accessor :related_account_group_memberships
|
674
|
+
|
675
|
+
def initialize(**args)
|
676
|
+
update!(**args)
|
677
|
+
end
|
678
|
+
|
679
|
+
# Update properties of this object
|
680
|
+
def update!(**args)
|
681
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
682
|
+
@related_account_group_memberships = args[:related_account_group_memberships] if args.key?(:related_account_group_memberships)
|
683
|
+
end
|
684
|
+
end
|
685
|
+
|
463
686
|
# Options for user acceptance testing.
|
464
687
|
class GoogleCloudRecaptchaenterpriseV1TestingOptions
|
465
688
|
include Google::Apis::Core::Hashable
|
@@ -535,6 +758,31 @@ module Google
|
|
535
758
|
end
|
536
759
|
end
|
537
760
|
|
761
|
+
# Settings specific to keys that can be used for WAF (Web Application Firewall).
|
762
|
+
class GoogleCloudRecaptchaenterpriseV1WafSettings
|
763
|
+
include Google::Apis::Core::Hashable
|
764
|
+
|
765
|
+
# Required. The WAF feature for which this key is enabled.
|
766
|
+
# Corresponds to the JSON property `wafFeature`
|
767
|
+
# @return [String]
|
768
|
+
attr_accessor :waf_feature
|
769
|
+
|
770
|
+
# Required. The WAF service that uses this key.
|
771
|
+
# Corresponds to the JSON property `wafService`
|
772
|
+
# @return [String]
|
773
|
+
attr_accessor :waf_service
|
774
|
+
|
775
|
+
def initialize(**args)
|
776
|
+
update!(**args)
|
777
|
+
end
|
778
|
+
|
779
|
+
# Update properties of this object
|
780
|
+
def update!(**args)
|
781
|
+
@waf_feature = args[:waf_feature] if args.key?(:waf_feature)
|
782
|
+
@waf_service = args[:waf_service] if args.key?(:waf_service)
|
783
|
+
end
|
784
|
+
end
|
785
|
+
|
538
786
|
# Settings specific to keys that can be used by websites.
|
539
787
|
class GoogleCloudRecaptchaenterpriseV1WebKeySettings
|
540
788
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RecaptchaenterpriseV1
|
18
18
|
# Version of the google-apis-recaptchaenterprise_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220107"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module RecaptchaenterpriseV1
|
24
24
|
|
25
|
+
class GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -76,6 +82,18 @@ module Google
|
|
76
82
|
include Google::Apis::Core::JsonObjectSupport
|
77
83
|
end
|
78
84
|
|
85
|
+
class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
79
97
|
class GoogleCloudRecaptchaenterpriseV1Metrics
|
80
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
99
|
|
@@ -88,6 +106,18 @@ module Google
|
|
88
106
|
include Google::Apis::Core::JsonObjectSupport
|
89
107
|
end
|
90
108
|
|
109
|
+
class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
91
121
|
class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
|
92
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
123
|
|
@@ -106,6 +136,18 @@ module Google
|
|
106
136
|
include Google::Apis::Core::JsonObjectSupport
|
107
137
|
end
|
108
138
|
|
139
|
+
class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
109
151
|
class GoogleCloudRecaptchaenterpriseV1TestingOptions
|
110
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
153
|
|
@@ -118,6 +160,12 @@ module Google
|
|
118
160
|
include Google::Apis::Core::JsonObjectSupport
|
119
161
|
end
|
120
162
|
|
163
|
+
class GoogleCloudRecaptchaenterpriseV1WafSettings
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
121
169
|
class GoogleCloudRecaptchaenterpriseV1WebKeySettings
|
122
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
171
|
|
@@ -130,6 +178,14 @@ module Google
|
|
130
178
|
include Google::Apis::Core::JsonObjectSupport
|
131
179
|
end
|
132
180
|
|
181
|
+
class GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment
|
182
|
+
# @private
|
183
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
184
|
+
collection :labels, as: 'labels'
|
185
|
+
property :recommended_action, as: 'recommendedAction'
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
133
189
|
class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
|
134
190
|
# @private
|
135
191
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -142,6 +198,7 @@ module Google
|
|
142
198
|
# @private
|
143
199
|
class Representation < Google::Apis::Core::JsonRepresentation
|
144
200
|
property :annotation, as: 'annotation'
|
201
|
+
property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
|
145
202
|
collection :reasons, as: 'reasons'
|
146
203
|
end
|
147
204
|
end
|
@@ -155,6 +212,8 @@ module Google
|
|
155
212
|
class GoogleCloudRecaptchaenterpriseV1Assessment
|
156
213
|
# @private
|
157
214
|
class Representation < Google::Apis::Core::JsonRepresentation
|
215
|
+
property :account_defender_assessment, as: 'accountDefenderAssessment', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment::Representation
|
216
|
+
|
158
217
|
property :event, as: 'event', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event::Representation
|
159
218
|
|
160
219
|
property :name, as: 'name'
|
@@ -179,6 +238,7 @@ module Google
|
|
179
238
|
# @private
|
180
239
|
class Representation < Google::Apis::Core::JsonRepresentation
|
181
240
|
property :expected_action, as: 'expectedAction'
|
241
|
+
property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
|
182
242
|
property :site_key, as: 'siteKey'
|
183
243
|
property :token, as: 'token'
|
184
244
|
property :user_agent, as: 'userAgent'
|
@@ -207,6 +267,8 @@ module Google
|
|
207
267
|
property :name, as: 'name'
|
208
268
|
property :testing_options, as: 'testingOptions', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TestingOptions, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TestingOptions::Representation
|
209
269
|
|
270
|
+
property :waf_settings, as: 'wafSettings', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WafSettings, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WafSettings::Representation
|
271
|
+
|
210
272
|
property :web_settings, as: 'webSettings', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettings, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettings::Representation
|
211
273
|
|
212
274
|
end
|
@@ -221,6 +283,24 @@ module Google
|
|
221
283
|
end
|
222
284
|
end
|
223
285
|
|
286
|
+
class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse
|
287
|
+
# @private
|
288
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
289
|
+
property :next_page_token, as: 'nextPageToken'
|
290
|
+
collection :related_account_group_memberships, as: 'relatedAccountGroupMemberships', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership::Representation
|
291
|
+
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse
|
296
|
+
# @private
|
297
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
298
|
+
property :next_page_token, as: 'nextPageToken'
|
299
|
+
collection :related_account_groups, as: 'relatedAccountGroups', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup::Representation
|
300
|
+
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
224
304
|
class GoogleCloudRecaptchaenterpriseV1Metrics
|
225
305
|
# @private
|
226
306
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -239,6 +319,21 @@ module Google
|
|
239
319
|
end
|
240
320
|
end
|
241
321
|
|
322
|
+
class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup
|
323
|
+
# @private
|
324
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
325
|
+
property :name, as: 'name'
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
329
|
+
class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership
|
330
|
+
# @private
|
331
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
332
|
+
property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
|
333
|
+
property :name, as: 'name'
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
242
337
|
class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
|
243
338
|
# @private
|
244
339
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -264,6 +359,24 @@ module Google
|
|
264
359
|
end
|
265
360
|
end
|
266
361
|
|
362
|
+
class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest
|
363
|
+
# @private
|
364
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
365
|
+
property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
|
366
|
+
property :page_size, as: 'pageSize'
|
367
|
+
property :page_token, as: 'pageToken'
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
371
|
+
class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse
|
372
|
+
# @private
|
373
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
374
|
+
property :next_page_token, as: 'nextPageToken'
|
375
|
+
collection :related_account_group_memberships, as: 'relatedAccountGroupMemberships', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership::Representation
|
376
|
+
|
377
|
+
end
|
378
|
+
end
|
379
|
+
|
267
380
|
class GoogleCloudRecaptchaenterpriseV1TestingOptions
|
268
381
|
# @private
|
269
382
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -283,6 +396,14 @@ module Google
|
|
283
396
|
end
|
284
397
|
end
|
285
398
|
|
399
|
+
class GoogleCloudRecaptchaenterpriseV1WafSettings
|
400
|
+
# @private
|
401
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
402
|
+
property :waf_feature, as: 'wafFeature'
|
403
|
+
property :waf_service, as: 'wafService'
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
286
407
|
class GoogleCloudRecaptchaenterpriseV1WebKeySettings
|
287
408
|
# @private
|
288
409
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -359,6 +359,124 @@ module Google
|
|
359
359
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
360
360
|
execute_or_queue_command(command, &block)
|
361
361
|
end
|
362
|
+
|
363
|
+
# Search group memberships related to a given account.
|
364
|
+
# @param [String] project
|
365
|
+
# Required. The name of the project to search related account group memberships
|
366
|
+
# from, in the format "projects/`project`".
|
367
|
+
# @param [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest] google_cloud_recaptchaenterprise_v1_search_related_account_group_memberships_request_object
|
368
|
+
# @param [String] fields
|
369
|
+
# Selector specifying which fields to include in a partial response.
|
370
|
+
# @param [String] quota_user
|
371
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
372
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
373
|
+
# @param [Google::Apis::RequestOptions] options
|
374
|
+
# Request-specific options
|
375
|
+
#
|
376
|
+
# @yield [result, err] Result & error if block supplied
|
377
|
+
# @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse] parsed result object
|
378
|
+
# @yieldparam err [StandardError] error object if request failed
|
379
|
+
#
|
380
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse]
|
381
|
+
#
|
382
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
383
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
384
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
385
|
+
def search_project_relatedaccountgroupmemberships(project, google_cloud_recaptchaenterprise_v1_search_related_account_group_memberships_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
386
|
+
command = make_simple_command(:post, 'v1/{+project}/relatedaccountgroupmemberships:search', options)
|
387
|
+
command.request_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest::Representation
|
388
|
+
command.request_object = google_cloud_recaptchaenterprise_v1_search_related_account_group_memberships_request_object
|
389
|
+
command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse::Representation
|
390
|
+
command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse
|
391
|
+
command.params['project'] = project unless project.nil?
|
392
|
+
command.query['fields'] = fields unless fields.nil?
|
393
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
394
|
+
execute_or_queue_command(command, &block)
|
395
|
+
end
|
396
|
+
|
397
|
+
# List groups of related accounts.
|
398
|
+
# @param [String] parent
|
399
|
+
# Required. The name of the project to list related account groups from, in the
|
400
|
+
# format "projects/`project`".
|
401
|
+
# @param [Fixnum] page_size
|
402
|
+
# Optional. The maximum number of groups to return. The service may return fewer
|
403
|
+
# than this value. If unspecified, at most 50 groups will be returned. The
|
404
|
+
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
405
|
+
# @param [String] page_token
|
406
|
+
# Optional. A page token, received from a previous `ListRelatedAccountGroups`
|
407
|
+
# call. Provide this to retrieve the subsequent page. When paginating, all other
|
408
|
+
# parameters provided to `ListRelatedAccountGroups` must match the call that
|
409
|
+
# provided the page token.
|
410
|
+
# @param [String] fields
|
411
|
+
# Selector specifying which fields to include in a partial response.
|
412
|
+
# @param [String] quota_user
|
413
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
414
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
415
|
+
# @param [Google::Apis::RequestOptions] options
|
416
|
+
# Request-specific options
|
417
|
+
#
|
418
|
+
# @yield [result, err] Result & error if block supplied
|
419
|
+
# @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse] parsed result object
|
420
|
+
# @yieldparam err [StandardError] error object if request failed
|
421
|
+
#
|
422
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse]
|
423
|
+
#
|
424
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
425
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
426
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
427
|
+
def list_project_relatedaccountgroups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
428
|
+
command = make_simple_command(:get, 'v1/{+parent}/relatedaccountgroups', options)
|
429
|
+
command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse::Representation
|
430
|
+
command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse
|
431
|
+
command.params['parent'] = parent unless parent.nil?
|
432
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
433
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
434
|
+
command.query['fields'] = fields unless fields.nil?
|
435
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
436
|
+
execute_or_queue_command(command, &block)
|
437
|
+
end
|
438
|
+
|
439
|
+
# Get the memberships in a group of related accounts.
|
440
|
+
# @param [String] parent
|
441
|
+
# Required. The resource name for the related account group in the format `
|
442
|
+
# projects/`project`/relatedaccountgroups/`relatedaccountgroup``.
|
443
|
+
# @param [Fixnum] page_size
|
444
|
+
# Optional. The maximum number of accounts to return. The service may return
|
445
|
+
# fewer than this value. If unspecified, at most 50 accounts will be returned.
|
446
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
447
|
+
# @param [String] page_token
|
448
|
+
# Optional. A page token, received from a previous `
|
449
|
+
# ListRelatedAccountGroupMemberships` call. When paginating, all other
|
450
|
+
# parameters provided to `ListRelatedAccountGroupMemberships` must match the
|
451
|
+
# call that provided the page token.
|
452
|
+
# @param [String] fields
|
453
|
+
# Selector specifying which fields to include in a partial response.
|
454
|
+
# @param [String] quota_user
|
455
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
456
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
457
|
+
# @param [Google::Apis::RequestOptions] options
|
458
|
+
# Request-specific options
|
459
|
+
#
|
460
|
+
# @yield [result, err] Result & error if block supplied
|
461
|
+
# @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse] parsed result object
|
462
|
+
# @yieldparam err [StandardError] error object if request failed
|
463
|
+
#
|
464
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse]
|
465
|
+
#
|
466
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
467
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
468
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
469
|
+
def list_project_relatedaccountgroup_memberships(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
470
|
+
command = make_simple_command(:get, 'v1/{+parent}/memberships', options)
|
471
|
+
command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse::Representation
|
472
|
+
command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse
|
473
|
+
command.params['parent'] = parent unless parent.nil?
|
474
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
475
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
476
|
+
command.query['fields'] = fields unless fields.nil?
|
477
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
478
|
+
execute_or_queue_command(command, &block)
|
479
|
+
end
|
362
480
|
|
363
481
|
protected
|
364
482
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-recaptchaenterprise_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.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:
|
11
|
+
date: 2022-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recaptchaenterprise_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.12.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recaptchaenterprise_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for reCAPTCHA Enterprise API V1
|