google-apis-recaptchaenterprise_v1 0.6.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 138e58ad2c7f174dd6e33f3f2e1ea354017115802211c820371bff82eb634559
4
- data.tar.gz: 99c301ce5f50f7d6dd851efab25f9f681fdf071aca1a6d6470f816fe3c46d8f1
3
+ metadata.gz: b98ce3b6cbd4a020898f23a2fdb1de871462b52642f56fdcdce956ca34870c2b
4
+ data.tar.gz: 35e2ba023d40334d341e35d6568b3409da4c20eeedcb998d520955632ffea101
5
5
  SHA512:
6
- metadata.gz: c0a3c03de836be7ded7bb968d7f52ce37b8486964a47e5f5ceeeafb4470b56b190e1f4e9fc4b32f1e120920ab48ef540494be0cf4f87f3807bb276c9820ebce7
7
- data.tar.gz: 6e83194eb38eb9a2ae694e79e364f054789582080776e00829cc6290e3c66b0bdbdb7aa87ed452ca2a61047c0ff7c7be3b50f22c7263d1e54dd60be3c07a5a3d
6
+ metadata.gz: 2d4d117ac109c41c33dc6f10424292d721a68c7236766d946dcb9e8d6571adaa92fffe2d1ca347fbf008149b693234417fef7e428992ac26a629dafcfdfb1542
7
+ data.tar.gz: 9e4ec53843bd9838373b29f17a3939b26df47d44a7c927d3b6501a2a834ea609c03dacd97d2f1bcb023cd9761c997598913cbe8fb328a698fd32eeabf3bac52b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-recaptchaenterprise_v1
2
2
 
3
+ ### v0.10.0 (2021-11-09)
4
+
5
+ * Regenerated from discovery document revision 20211105
6
+
7
+ ### v0.9.0 (2021-11-02)
8
+
9
+ * Regenerated from discovery document revision 20211029
10
+
11
+ ### v0.8.0 (2021-10-26)
12
+
13
+ * Regenerated from discovery document revision 20211022
14
+ * Unspecified changes
15
+
16
+ ### v0.7.0 (2021-09-07)
17
+
18
+ * Regenerated from discovery document revision 20210903
19
+
3
20
  ### v0.6.0 (2021-09-01)
4
21
 
5
22
  * Regenerated from discovery document revision 20210806
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Recaptchaenterprise service in particular.)
67
67
 
@@ -22,10 +22,35 @@ 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
28
47
 
48
+ # If set to true, allowed_package_names are not enforced.
49
+ # Corresponds to the JSON property `allowAllPackageNames`
50
+ # @return [Boolean]
51
+ attr_accessor :allow_all_package_names
52
+ alias_method :allow_all_package_names?, :allow_all_package_names
53
+
29
54
  # Android package names of apps allowed to use the key. Example: 'com.
30
55
  # companyname.appname'
31
56
  # Corresponds to the JSON property `allowedPackageNames`
@@ -38,6 +63,7 @@ module Google
38
63
 
39
64
  # Update properties of this object
40
65
  def update!(**args)
66
+ @allow_all_package_names = args[:allow_all_package_names] if args.key?(:allow_all_package_names)
41
67
  @allowed_package_names = args[:allowed_package_names] if args.key?(:allowed_package_names)
42
68
  end
43
69
  end
@@ -53,6 +79,16 @@ module Google
53
79
  # @return [String]
54
80
  attr_accessor :annotation
55
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
+
56
92
  # Optional. Optional reasons for the annotation that will be assigned to the
57
93
  # Event.
58
94
  # Corresponds to the JSON property `reasons`
@@ -66,6 +102,7 @@ module Google
66
102
  # Update properties of this object
67
103
  def update!(**args)
68
104
  @annotation = args[:annotation] if args.key?(:annotation)
105
+ @hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
69
106
  @reasons = args[:reasons] if args.key?(:reasons)
70
107
  end
71
108
  end
@@ -87,6 +124,11 @@ module Google
87
124
  class GoogleCloudRecaptchaenterpriseV1Assessment
88
125
  include Google::Apis::Core::Hashable
89
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
+
90
132
  # The event being assessed.
91
133
  # Corresponds to the JSON property `event`
92
134
  # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event]
@@ -114,6 +156,7 @@ module Google
114
156
 
115
157
  # Update properties of this object
116
158
  def update!(**args)
159
+ @account_defender_assessment = args[:account_defender_assessment] if args.key?(:account_defender_assessment)
117
160
  @event = args[:event] if args.key?(:event)
118
161
  @name = args[:name] if args.key?(:name)
119
162
  @risk_analysis = args[:risk_analysis] if args.key?(:risk_analysis)
@@ -214,6 +257,12 @@ module Google
214
257
  class GoogleCloudRecaptchaenterpriseV1IosKeySettings
215
258
  include Google::Apis::Core::Hashable
216
259
 
260
+ # If set to true, allowed_bundle_ids are not enforced.
261
+ # Corresponds to the JSON property `allowAllBundleIds`
262
+ # @return [Boolean]
263
+ attr_accessor :allow_all_bundle_ids
264
+ alias_method :allow_all_bundle_ids?, :allow_all_bundle_ids
265
+
217
266
  # iOS bundle ids of apps allowed to use the key. Example: 'com.companyname.
218
267
  # productname.appname'
219
268
  # Corresponds to the JSON property `allowedBundleIds`
@@ -226,6 +275,7 @@ module Google
226
275
 
227
276
  # Update properties of this object
228
277
  def update!(**args)
278
+ @allow_all_bundle_ids = args[:allow_all_bundle_ids] if args.key?(:allow_all_bundle_ids)
229
279
  @allowed_bundle_ids = args[:allowed_bundle_ids] if args.key?(:allowed_bundle_ids)
230
280
  end
231
281
  end
@@ -318,6 +368,58 @@ module Google
318
368
  end
319
369
  end
320
370
 
371
+ # The response to a `ListRelatedAccountGroupMemberships` call.
372
+ class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse
373
+ include Google::Apis::Core::Hashable
374
+
375
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
376
+ # field is omitted, there are no subsequent pages.
377
+ # Corresponds to the JSON property `nextPageToken`
378
+ # @return [String]
379
+ attr_accessor :next_page_token
380
+
381
+ # The memberships listed by the query.
382
+ # Corresponds to the JSON property `relatedAccountGroupMemberships`
383
+ # @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership>]
384
+ attr_accessor :related_account_group_memberships
385
+
386
+ def initialize(**args)
387
+ update!(**args)
388
+ end
389
+
390
+ # Update properties of this object
391
+ def update!(**args)
392
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
393
+ @related_account_group_memberships = args[:related_account_group_memberships] if args.key?(:related_account_group_memberships)
394
+ end
395
+ end
396
+
397
+ # The response to a `ListRelatedAccountGroups` call.
398
+ class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse
399
+ include Google::Apis::Core::Hashable
400
+
401
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
402
+ # field is omitted, there are no subsequent pages.
403
+ # Corresponds to the JSON property `nextPageToken`
404
+ # @return [String]
405
+ attr_accessor :next_page_token
406
+
407
+ # The groups of related accounts listed by the query.
408
+ # Corresponds to the JSON property `relatedAccountGroups`
409
+ # @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup>]
410
+ attr_accessor :related_account_groups
411
+
412
+ def initialize(**args)
413
+ update!(**args)
414
+ end
415
+
416
+ # Update properties of this object
417
+ def update!(**args)
418
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
419
+ @related_account_groups = args[:related_account_groups] if args.key?(:related_account_groups)
420
+ end
421
+ end
422
+
321
423
  # Metrics for a single Key.
322
424
  class GoogleCloudRecaptchaenterpriseV1Metrics
323
425
  include Google::Apis::Core::Hashable
@@ -372,6 +474,55 @@ module Google
372
474
  end
373
475
  end
374
476
 
477
+ # A group of related accounts.
478
+ class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup
479
+ include Google::Apis::Core::Hashable
480
+
481
+ # Required. The resource name for the related account group in the format `
482
+ # projects/`project`/relatedaccountgroups/`related_account_group``.
483
+ # Corresponds to the JSON property `name`
484
+ # @return [String]
485
+ attr_accessor :name
486
+
487
+ def initialize(**args)
488
+ update!(**args)
489
+ end
490
+
491
+ # Update properties of this object
492
+ def update!(**args)
493
+ @name = args[:name] if args.key?(:name)
494
+ end
495
+ end
496
+
497
+ # A membership in a group of related accounts.
498
+ class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership
499
+ include Google::Apis::Core::Hashable
500
+
501
+ # The unique stable hashed user identifier of the member. The identifier
502
+ # corresponds to a `hashed_account_id` provided in a previous CreateAssessment
503
+ # or AnnotateAssessment call.
504
+ # Corresponds to the JSON property `hashedAccountId`
505
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
506
+ # @return [String]
507
+ attr_accessor :hashed_account_id
508
+
509
+ # Required. The resource name for this membership in the format `projects/`
510
+ # project`/relatedaccountgroups/`relatedaccountgroup`/memberships/`membership``.
511
+ # Corresponds to the JSON property `name`
512
+ # @return [String]
513
+ attr_accessor :name
514
+
515
+ def initialize(**args)
516
+ update!(**args)
517
+ end
518
+
519
+ # Update properties of this object
520
+ def update!(**args)
521
+ @hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
522
+ @name = args[:name] if args.key?(:name)
523
+ end
524
+ end
525
+
375
526
  # Risk analysis result for an event.
376
527
  class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
377
528
  include Google::Apis::Core::Hashable
@@ -446,6 +597,72 @@ module Google
446
597
  end
447
598
  end
448
599
 
600
+ # The request message to search related account group memberships.
601
+ class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest
602
+ include Google::Apis::Core::Hashable
603
+
604
+ # Optional. The unique stable hashed user identifier we should search
605
+ # connections to. The identifier should correspond to a `hashed_account_id`
606
+ # provided in a previous CreateAssessment or AnnotateAssessment call.
607
+ # Corresponds to the JSON property `hashedAccountId`
608
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
609
+ # @return [String]
610
+ attr_accessor :hashed_account_id
611
+
612
+ # Optional. The maximum number of groups to return. The service may return fewer
613
+ # than this value. If unspecified, at most 50 groups will be returned. The
614
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
615
+ # Corresponds to the JSON property `pageSize`
616
+ # @return [Fixnum]
617
+ attr_accessor :page_size
618
+
619
+ # Optional. A page token, received from a previous `
620
+ # SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
621
+ # subsequent page. When paginating, all other parameters provided to `
622
+ # SearchRelatedAccountGroupMemberships` must match the call that provided the
623
+ # page token.
624
+ # Corresponds to the JSON property `pageToken`
625
+ # @return [String]
626
+ attr_accessor :page_token
627
+
628
+ def initialize(**args)
629
+ update!(**args)
630
+ end
631
+
632
+ # Update properties of this object
633
+ def update!(**args)
634
+ @hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
635
+ @page_size = args[:page_size] if args.key?(:page_size)
636
+ @page_token = args[:page_token] if args.key?(:page_token)
637
+ end
638
+ end
639
+
640
+ # The response to a `SearchRelatedAccountGroupMemberships` call.
641
+ class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse
642
+ include Google::Apis::Core::Hashable
643
+
644
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
645
+ # field is omitted, there are no subsequent pages.
646
+ # Corresponds to the JSON property `nextPageToken`
647
+ # @return [String]
648
+ attr_accessor :next_page_token
649
+
650
+ # The queried memberships.
651
+ # Corresponds to the JSON property `relatedAccountGroupMemberships`
652
+ # @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership>]
653
+ attr_accessor :related_account_group_memberships
654
+
655
+ def initialize(**args)
656
+ update!(**args)
657
+ end
658
+
659
+ # Update properties of this object
660
+ def update!(**args)
661
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
662
+ @related_account_group_memberships = args[:related_account_group_memberships] if args.key?(:related_account_group_memberships)
663
+ end
664
+ end
665
+
449
666
  # Options for user acceptance testing.
450
667
  class GoogleCloudRecaptchaenterpriseV1TestingOptions
451
668
  include Google::Apis::Core::Hashable
@@ -531,8 +748,8 @@ module Google
531
748
  attr_accessor :allow_all_domains
532
749
  alias_method :allow_all_domains?, :allow_all_domains
533
750
 
534
- # Required. Whether this key can be used on AMP (Accelerated Mobile Pages)
535
- # websites. This can only be set for the SCORE integration type.
751
+ # If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites.
752
+ # This is supported only for the SCORE integration type.
536
753
  # Corresponds to the JSON property `allowAmpTraffic`
537
754
  # @return [Boolean]
538
755
  attr_accessor :allow_amp_traffic
@@ -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.6.0"
19
+ GEM_VERSION = "0.10.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 = "20210806"
25
+ REVISION = "20211105"
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,9 +172,17 @@ 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
185
+ property :allow_all_package_names, as: 'allowAllPackageNames'
136
186
  collection :allowed_package_names, as: 'allowedPackageNames'
137
187
  end
138
188
  end
@@ -141,6 +191,7 @@ module Google
141
191
  # @private
142
192
  class Representation < Google::Apis::Core::JsonRepresentation
143
193
  property :annotation, as: 'annotation'
194
+ property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
144
195
  collection :reasons, as: 'reasons'
145
196
  end
146
197
  end
@@ -154,6 +205,8 @@ module Google
154
205
  class GoogleCloudRecaptchaenterpriseV1Assessment
155
206
  # @private
156
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
+
157
210
  property :event, as: 'event', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event::Representation
158
211
 
159
212
  property :name, as: 'name'
@@ -188,6 +241,7 @@ module Google
188
241
  class GoogleCloudRecaptchaenterpriseV1IosKeySettings
189
242
  # @private
190
243
  class Representation < Google::Apis::Core::JsonRepresentation
244
+ property :allow_all_bundle_ids, as: 'allowAllBundleIds'
191
245
  collection :allowed_bundle_ids, as: 'allowedBundleIds'
192
246
  end
193
247
  end
@@ -219,6 +273,24 @@ module Google
219
273
  end
220
274
  end
221
275
 
276
+ class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupMembershipsResponse
277
+ # @private
278
+ class Representation < Google::Apis::Core::JsonRepresentation
279
+ property :next_page_token, as: 'nextPageToken'
280
+ collection :related_account_group_memberships, as: 'relatedAccountGroupMemberships', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership::Representation
281
+
282
+ end
283
+ end
284
+
285
+ class GoogleCloudRecaptchaenterpriseV1ListRelatedAccountGroupsResponse
286
+ # @private
287
+ class Representation < Google::Apis::Core::JsonRepresentation
288
+ property :next_page_token, as: 'nextPageToken'
289
+ collection :related_account_groups, as: 'relatedAccountGroups', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup::Representation
290
+
291
+ end
292
+ end
293
+
222
294
  class GoogleCloudRecaptchaenterpriseV1Metrics
223
295
  # @private
224
296
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -237,6 +309,21 @@ module Google
237
309
  end
238
310
  end
239
311
 
312
+ class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup
313
+ # @private
314
+ class Representation < Google::Apis::Core::JsonRepresentation
315
+ property :name, as: 'name'
316
+ end
317
+ end
318
+
319
+ class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
323
+ property :name, as: 'name'
324
+ end
325
+ end
326
+
240
327
  class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
241
328
  # @private
242
329
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -262,6 +349,24 @@ module Google
262
349
  end
263
350
  end
264
351
 
352
+ class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest
353
+ # @private
354
+ class Representation < Google::Apis::Core::JsonRepresentation
355
+ property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
356
+ property :page_size, as: 'pageSize'
357
+ property :page_token, as: 'pageToken'
358
+ end
359
+ end
360
+
361
+ class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse
362
+ # @private
363
+ class Representation < Google::Apis::Core::JsonRepresentation
364
+ property :next_page_token, as: 'nextPageToken'
365
+ collection :related_account_group_memberships, as: 'relatedAccountGroupMemberships', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership::Representation
366
+
367
+ end
368
+ end
369
+
265
370
  class GoogleCloudRecaptchaenterpriseV1TestingOptions
266
371
  # @private
267
372
  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.6.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-06 00:00:00.000000000 Z
11
+ date: 2021-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-recaptchaenterprise_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.6.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-recaptchaenterprise_v1
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.10.0
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: []
65
65
  require_paths: