google-apis-recaptchaenterprise_v1 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/recaptchaenterprise_v1/classes.rb +211 -0
- data/lib/google/apis/recaptchaenterprise_v1/gem_version.rb +2 -2
- data/lib/google/apis/recaptchaenterprise_v1/representations.rb +104 -0
- data/lib/google/apis/recaptchaenterprise_v1/service.rb +118 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d3d0a0e572e2fe7aeb67eaf6ad1636fb7774beacbfff5329b866da683f38377
|
4
|
+
data.tar.gz: '0677937ae5a5edcee08553941e21e2f2377bac3690fc793aded7bf0254fcc292'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02df2fd17c2326b72db6d527c6b40d77cae17d04ea1389fd431e0abb8014930cb7eb8a99876fac43ed3ac3cdc04237edfb3868ee7802dbed09ab227229f114eb
|
7
|
+
data.tar.gz: fd7182d31036f38a6fe93ca3815462e0677db892de91e3194de2497b238bb3cda52620ae309c4a70fb0d90a5a8771e2075f011106974b1262b35c36843e849d8
|
data/CHANGELOG.md
CHANGED
@@ -22,6 +22,25 @@ 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
|
+
def initialize(**args)
|
35
|
+
update!(**args)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Update properties of this object
|
39
|
+
def update!(**args)
|
40
|
+
@labels = args[:labels] if args.key?(:labels)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
25
44
|
# Settings specific to keys that can be used by Android apps.
|
26
45
|
class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
|
27
46
|
include Google::Apis::Core::Hashable
|
@@ -60,6 +79,16 @@ module Google
|
|
60
79
|
# @return [String]
|
61
80
|
attr_accessor :annotation
|
62
81
|
|
82
|
+
# Optional. Optional unique stable hashed user identifier to apply to the
|
83
|
+
# assessment. This is an alternative to setting the hashed_account_id in
|
84
|
+
# CreateAssessment, for example when the account identifier is not yet known in
|
85
|
+
# the initial request. It is recommended that the identifier is hashed using
|
86
|
+
# hmac-sha256 with stable secret.
|
87
|
+
# Corresponds to the JSON property `hashedAccountId`
|
88
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
89
|
+
# @return [String]
|
90
|
+
attr_accessor :hashed_account_id
|
91
|
+
|
63
92
|
# Optional. Optional reasons for the annotation that will be assigned to the
|
64
93
|
# Event.
|
65
94
|
# Corresponds to the JSON property `reasons`
|
@@ -73,6 +102,7 @@ module Google
|
|
73
102
|
# Update properties of this object
|
74
103
|
def update!(**args)
|
75
104
|
@annotation = args[:annotation] if args.key?(:annotation)
|
105
|
+
@hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
|
76
106
|
@reasons = args[:reasons] if args.key?(:reasons)
|
77
107
|
end
|
78
108
|
end
|
@@ -94,6 +124,11 @@ module Google
|
|
94
124
|
class GoogleCloudRecaptchaenterpriseV1Assessment
|
95
125
|
include Google::Apis::Core::Hashable
|
96
126
|
|
127
|
+
# Account Defender risk assessment.
|
128
|
+
# Corresponds to the JSON property `accountDefenderAssessment`
|
129
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment]
|
130
|
+
attr_accessor :account_defender_assessment
|
131
|
+
|
97
132
|
# The event being assessed.
|
98
133
|
# Corresponds to the JSON property `event`
|
99
134
|
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event]
|
@@ -121,6 +156,7 @@ module Google
|
|
121
156
|
|
122
157
|
# Update properties of this object
|
123
158
|
def update!(**args)
|
159
|
+
@account_defender_assessment = args[:account_defender_assessment] if args.key?(:account_defender_assessment)
|
124
160
|
@event = args[:event] if args.key?(:event)
|
125
161
|
@name = args[:name] if args.key?(:name)
|
126
162
|
@risk_analysis = args[:risk_analysis] if args.key?(:risk_analysis)
|
@@ -179,6 +215,13 @@ module Google
|
|
179
215
|
# @return [String]
|
180
216
|
attr_accessor :expected_action
|
181
217
|
|
218
|
+
# Optional. Optional unique stable hashed user identifier for the request. The
|
219
|
+
# identifier should ideally be hashed using sha256 with stable secret.
|
220
|
+
# Corresponds to the JSON property `hashedAccountId`
|
221
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
222
|
+
# @return [String]
|
223
|
+
attr_accessor :hashed_account_id
|
224
|
+
|
182
225
|
# Optional. The site key that was used to invoke reCAPTCHA on your site and
|
183
226
|
# generate the token.
|
184
227
|
# Corresponds to the JSON property `siteKey`
|
@@ -210,6 +253,7 @@ module Google
|
|
210
253
|
# Update properties of this object
|
211
254
|
def update!(**args)
|
212
255
|
@expected_action = args[:expected_action] if args.key?(:expected_action)
|
256
|
+
@hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
|
213
257
|
@site_key = args[:site_key] if args.key?(:site_key)
|
214
258
|
@token = args[:token] if args.key?(:token)
|
215
259
|
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
@@ -332,6 +376,58 @@ module Google
|
|
332
376
|
end
|
333
377
|
end
|
334
378
|
|
379
|
+
# The response to a `ListRelatedAccountGroupMemberships` call.
|
380
|
+
class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse
|
381
|
+
include Google::Apis::Core::Hashable
|
382
|
+
|
383
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
384
|
+
# field is omitted, there are no subsequent pages.
|
385
|
+
# Corresponds to the JSON property `nextPageToken`
|
386
|
+
# @return [String]
|
387
|
+
attr_accessor :next_page_token
|
388
|
+
|
389
|
+
# The memberships listed by the query.
|
390
|
+
# Corresponds to the JSON property `relatedAccountGroupMemberships`
|
391
|
+
# @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership>]
|
392
|
+
attr_accessor :related_account_group_memberships
|
393
|
+
|
394
|
+
def initialize(**args)
|
395
|
+
update!(**args)
|
396
|
+
end
|
397
|
+
|
398
|
+
# Update properties of this object
|
399
|
+
def update!(**args)
|
400
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
401
|
+
@related_account_group_memberships = args[:related_account_group_memberships] if args.key?(:related_account_group_memberships)
|
402
|
+
end
|
403
|
+
end
|
404
|
+
|
405
|
+
# The response to a `ListRelatedAccountGroups` call.
|
406
|
+
class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse
|
407
|
+
include Google::Apis::Core::Hashable
|
408
|
+
|
409
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
410
|
+
# field is omitted, there are no subsequent pages.
|
411
|
+
# Corresponds to the JSON property `nextPageToken`
|
412
|
+
# @return [String]
|
413
|
+
attr_accessor :next_page_token
|
414
|
+
|
415
|
+
# The groups of related accounts listed by the query.
|
416
|
+
# Corresponds to the JSON property `relatedAccountGroups`
|
417
|
+
# @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup>]
|
418
|
+
attr_accessor :related_account_groups
|
419
|
+
|
420
|
+
def initialize(**args)
|
421
|
+
update!(**args)
|
422
|
+
end
|
423
|
+
|
424
|
+
# Update properties of this object
|
425
|
+
def update!(**args)
|
426
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
427
|
+
@related_account_groups = args[:related_account_groups] if args.key?(:related_account_groups)
|
428
|
+
end
|
429
|
+
end
|
430
|
+
|
335
431
|
# Metrics for a single Key.
|
336
432
|
class GoogleCloudRecaptchaenterpriseV1Metrics
|
337
433
|
include Google::Apis::Core::Hashable
|
@@ -386,6 +482,55 @@ module Google
|
|
386
482
|
end
|
387
483
|
end
|
388
484
|
|
485
|
+
# A group of related accounts.
|
486
|
+
class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup
|
487
|
+
include Google::Apis::Core::Hashable
|
488
|
+
|
489
|
+
# Required. The resource name for the related account group in the format `
|
490
|
+
# projects/`project`/relatedaccountgroups/`related_account_group``.
|
491
|
+
# Corresponds to the JSON property `name`
|
492
|
+
# @return [String]
|
493
|
+
attr_accessor :name
|
494
|
+
|
495
|
+
def initialize(**args)
|
496
|
+
update!(**args)
|
497
|
+
end
|
498
|
+
|
499
|
+
# Update properties of this object
|
500
|
+
def update!(**args)
|
501
|
+
@name = args[:name] if args.key?(:name)
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
505
|
+
# A membership in a group of related accounts.
|
506
|
+
class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership
|
507
|
+
include Google::Apis::Core::Hashable
|
508
|
+
|
509
|
+
# The unique stable hashed user identifier of the member. The identifier
|
510
|
+
# corresponds to a `hashed_account_id` provided in a previous CreateAssessment
|
511
|
+
# or AnnotateAssessment call.
|
512
|
+
# Corresponds to the JSON property `hashedAccountId`
|
513
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
514
|
+
# @return [String]
|
515
|
+
attr_accessor :hashed_account_id
|
516
|
+
|
517
|
+
# Required. The resource name for this membership in the format `projects/`
|
518
|
+
# project`/relatedaccountgroups/`relatedaccountgroup`/memberships/`membership``.
|
519
|
+
# Corresponds to the JSON property `name`
|
520
|
+
# @return [String]
|
521
|
+
attr_accessor :name
|
522
|
+
|
523
|
+
def initialize(**args)
|
524
|
+
update!(**args)
|
525
|
+
end
|
526
|
+
|
527
|
+
# Update properties of this object
|
528
|
+
def update!(**args)
|
529
|
+
@hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
|
530
|
+
@name = args[:name] if args.key?(:name)
|
531
|
+
end
|
532
|
+
end
|
533
|
+
|
389
534
|
# Risk analysis result for an event.
|
390
535
|
class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
|
391
536
|
include Google::Apis::Core::Hashable
|
@@ -460,6 +605,72 @@ module Google
|
|
460
605
|
end
|
461
606
|
end
|
462
607
|
|
608
|
+
# The request message to search related account group memberships.
|
609
|
+
class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest
|
610
|
+
include Google::Apis::Core::Hashable
|
611
|
+
|
612
|
+
# Optional. The unique stable hashed user identifier we should search
|
613
|
+
# connections to. The identifier should correspond to a `hashed_account_id`
|
614
|
+
# provided in a previous CreateAssessment or AnnotateAssessment call.
|
615
|
+
# Corresponds to the JSON property `hashedAccountId`
|
616
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
617
|
+
# @return [String]
|
618
|
+
attr_accessor :hashed_account_id
|
619
|
+
|
620
|
+
# Optional. The maximum number of groups to return. The service may return fewer
|
621
|
+
# than this value. If unspecified, at most 50 groups will be returned. The
|
622
|
+
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
623
|
+
# Corresponds to the JSON property `pageSize`
|
624
|
+
# @return [Fixnum]
|
625
|
+
attr_accessor :page_size
|
626
|
+
|
627
|
+
# Optional. A page token, received from a previous `
|
628
|
+
# SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
|
629
|
+
# subsequent page. When paginating, all other parameters provided to `
|
630
|
+
# SearchRelatedAccountGroupMemberships` must match the call that provided the
|
631
|
+
# page token.
|
632
|
+
# Corresponds to the JSON property `pageToken`
|
633
|
+
# @return [String]
|
634
|
+
attr_accessor :page_token
|
635
|
+
|
636
|
+
def initialize(**args)
|
637
|
+
update!(**args)
|
638
|
+
end
|
639
|
+
|
640
|
+
# Update properties of this object
|
641
|
+
def update!(**args)
|
642
|
+
@hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
|
643
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
644
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
645
|
+
end
|
646
|
+
end
|
647
|
+
|
648
|
+
# The response to a `SearchRelatedAccountGroupMemberships` call.
|
649
|
+
class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse
|
650
|
+
include Google::Apis::Core::Hashable
|
651
|
+
|
652
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
653
|
+
# field is omitted, there are no subsequent pages.
|
654
|
+
# Corresponds to the JSON property `nextPageToken`
|
655
|
+
# @return [String]
|
656
|
+
attr_accessor :next_page_token
|
657
|
+
|
658
|
+
# The queried memberships.
|
659
|
+
# Corresponds to the JSON property `relatedAccountGroupMemberships`
|
660
|
+
# @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership>]
|
661
|
+
attr_accessor :related_account_group_memberships
|
662
|
+
|
663
|
+
def initialize(**args)
|
664
|
+
update!(**args)
|
665
|
+
end
|
666
|
+
|
667
|
+
# Update properties of this object
|
668
|
+
def update!(**args)
|
669
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
670
|
+
@related_account_group_memberships = args[:related_account_group_memberships] if args.key?(:related_account_group_memberships)
|
671
|
+
end
|
672
|
+
end
|
673
|
+
|
463
674
|
# Options for user acceptance testing.
|
464
675
|
class GoogleCloudRecaptchaenterpriseV1TestingOptions
|
465
676
|
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.9.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 = "20211029"
|
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
|
|
@@ -130,6 +172,13 @@ module Google
|
|
130
172
|
include Google::Apis::Core::JsonObjectSupport
|
131
173
|
end
|
132
174
|
|
175
|
+
class GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment
|
176
|
+
# @private
|
177
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
178
|
+
collection :labels, as: 'labels'
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
133
182
|
class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
|
134
183
|
# @private
|
135
184
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -142,6 +191,7 @@ module Google
|
|
142
191
|
# @private
|
143
192
|
class Representation < Google::Apis::Core::JsonRepresentation
|
144
193
|
property :annotation, as: 'annotation'
|
194
|
+
property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
|
145
195
|
collection :reasons, as: 'reasons'
|
146
196
|
end
|
147
197
|
end
|
@@ -155,6 +205,8 @@ module Google
|
|
155
205
|
class GoogleCloudRecaptchaenterpriseV1Assessment
|
156
206
|
# @private
|
157
207
|
class Representation < Google::Apis::Core::JsonRepresentation
|
208
|
+
property :account_defender_assessment, as: 'accountDefenderAssessment', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment::Representation
|
209
|
+
|
158
210
|
property :event, as: 'event', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event::Representation
|
159
211
|
|
160
212
|
property :name, as: 'name'
|
@@ -179,6 +231,7 @@ module Google
|
|
179
231
|
# @private
|
180
232
|
class Representation < Google::Apis::Core::JsonRepresentation
|
181
233
|
property :expected_action, as: 'expectedAction'
|
234
|
+
property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
|
182
235
|
property :site_key, as: 'siteKey'
|
183
236
|
property :token, as: 'token'
|
184
237
|
property :user_agent, as: 'userAgent'
|
@@ -221,6 +274,24 @@ module Google
|
|
221
274
|
end
|
222
275
|
end
|
223
276
|
|
277
|
+
class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse
|
278
|
+
# @private
|
279
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
280
|
+
property :next_page_token, as: 'nextPageToken'
|
281
|
+
collection :related_account_group_memberships, as: 'relatedAccountGroupMemberships', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership::Representation
|
282
|
+
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse
|
287
|
+
# @private
|
288
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
289
|
+
property :next_page_token, as: 'nextPageToken'
|
290
|
+
collection :related_account_groups, as: 'relatedAccountGroups', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup::Representation
|
291
|
+
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
224
295
|
class GoogleCloudRecaptchaenterpriseV1Metrics
|
225
296
|
# @private
|
226
297
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -239,6 +310,21 @@ module Google
|
|
239
310
|
end
|
240
311
|
end
|
241
312
|
|
313
|
+
class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup
|
314
|
+
# @private
|
315
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
316
|
+
property :name, as: 'name'
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
320
|
+
class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership
|
321
|
+
# @private
|
322
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
323
|
+
property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
|
324
|
+
property :name, as: 'name'
|
325
|
+
end
|
326
|
+
end
|
327
|
+
|
242
328
|
class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
|
243
329
|
# @private
|
244
330
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -264,6 +350,24 @@ module Google
|
|
264
350
|
end
|
265
351
|
end
|
266
352
|
|
353
|
+
class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest
|
354
|
+
# @private
|
355
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
356
|
+
property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
|
357
|
+
property :page_size, as: 'pageSize'
|
358
|
+
property :page_token, as: 'pageToken'
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse
|
363
|
+
# @private
|
364
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
365
|
+
property :next_page_token, as: 'nextPageToken'
|
366
|
+
collection :related_account_group_memberships, as: 'relatedAccountGroupMemberships', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership::Representation
|
367
|
+
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
267
371
|
class GoogleCloudRecaptchaenterpriseV1TestingOptions
|
268
372
|
# @private
|
269
373
|
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] parent
|
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(parent, 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/{+parent}/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['parent'] = parent unless parent.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.9.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: 2021-
|
11
|
+
date: 2021-11-08 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.9.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: []
|