Skip to content

Commit 54a540d

Browse files
feat: add account_verification field to Assessment for MFA (#3709)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 493691493 Source-Link: https://togithub.com/googleapis/googleapis/commit/c9560d8f8f535936baff1fcda1f12806e38f67b9 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/ec825c8ef9987b67d43dfffab50914e032275d63 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYWVudGVycHJpc2UvLk93bEJvdC55YW1sIiwiaCI6ImVjODI1YzhlZjk5ODdiNjdkNDNkZmZmYWI1MDkxNGUwMzIyNzVkNjMifQ==
1 parent dda3727 commit 54a540d

14 files changed

+1476
-182
lines changed

packages/google-cloud-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto

+184-69
Large diffs are not rendered by default.

packages/google-cloud-recaptchaenterprise/protos/protos.d.ts

+274
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-recaptchaenterprise/protos/protos.js

+786-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-recaptchaenterprise/protos/protos.json

+96
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.annotate_assessment.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ function main(name) {
3434
*/
3535
// const name = 'abc123'
3636
/**
37-
* Optional. The annotation that will be assigned to the Event. This field can be left
38-
* empty to provide reasons that apply to an event without concluding whether
39-
* the event is legitimate or fraudulent.
37+
* Optional. The annotation that will be assigned to the Event. This field can
38+
* be left empty to provide reasons that apply to an event without concluding
39+
* whether the event is legitimate or fraudulent.
4040
*/
4141
// const annotation = {}
4242
/**
43-
* Optional. Optional reasons for the annotation that will be assigned to the Event.
43+
* Optional. Optional reasons for the annotation that will be assigned to the
44+
* Event.
4445
*/
4546
// const reasons = 1234
4647
/**

packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_group_memberships.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,14 @@ function main(parent) {
3434
*/
3535
// const parent = 'abc123'
3636
/**
37-
* Optional. The maximum number of accounts to return. The service might return fewer
38-
* than this value.
39-
* If unspecified, at most 50 accounts are returned.
40-
* The maximum value is 1000; values above 1000 are coerced to 1000.
37+
* Optional. The maximum number of accounts to return. The service might
38+
* return fewer than this value. If unspecified, at most 50 accounts are
39+
* returned. The maximum value is 1000; values above 1000 are coerced to 1000.
4140
*/
4241
// const pageSize = 1234
4342
/**
44-
* Optional. A page token, received from a previous `ListRelatedAccountGroupMemberships`
45-
* call.
43+
* Optional. A page token, received from a previous
44+
* `ListRelatedAccountGroupMemberships` call.
4645
* When paginating, all other parameters provided to
4746
* `ListRelatedAccountGroupMemberships` must match the call that provided the
4847
* page token.

packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.list_related_account_groups.js

+7-8
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,19 @@ function main(parent) {
2929
* TODO(developer): Uncomment these variables before running the sample.
3030
*/
3131
/**
32-
* Required. The name of the project to list related account groups from, in the format
33-
* "projects/{project}".
32+
* Required. The name of the project to list related account groups from, in
33+
* the format "projects/{project}".
3434
*/
3535
// const parent = 'abc123'
3636
/**
37-
* Optional. The maximum number of groups to return. The service might return fewer than
38-
* this value.
39-
* If unspecified, at most 50 groups are returned.
40-
* The maximum value is 1000; values above 1000 are coerced to 1000.
37+
* Optional. The maximum number of groups to return. The service might return
38+
* fewer than this value. If unspecified, at most 50 groups are returned. The
39+
* maximum value is 1000; values above 1000 are coerced to 1000.
4140
*/
4241
// const pageSize = 1234
4342
/**
44-
* Optional. A page token, received from a previous `ListRelatedAccountGroups` call.
45-
* Provide this to retrieve the subsequent page.
43+
* Optional. A page token, received from a previous `ListRelatedAccountGroups`
44+
* call. Provide this to retrieve the subsequent page.
4645
* When paginating, all other parameters provided to
4746
* `ListRelatedAccountGroups` must match the call that provided the page
4847
* token.

packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.migrate_key.js

+11
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ function main(name) {
3333
* "projects/{project}/keys/{key}".
3434
*/
3535
// const name = 'abc123'
36+
/**
37+
* Optional. If true, skips the billing check.
38+
* A reCAPTCHA Enterprise key or migrated key behaves differently than a
39+
* reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see
40+
* https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To avoid
41+
* any disruption of your usage, we check that a billing account is present.
42+
* If your usage of reCAPTCHA is under the free quota, you can safely skip the
43+
* billing check and proceed with the migration. See
44+
* https://cloud.google.com/recaptcha-enterprise/docs/billing-information.
45+
*/
46+
// const skipBillingCheck = true
3647

3748
// Imports the Recaptchaenterprise library
3849
const {RecaptchaEnterpriseServiceClient} = require('@google-cloud/recaptcha-enterprise').v1;

packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.retrieve_legacy_secret_key.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ function main(key) {
2929
* TODO(developer): Uncomment these variables before running the sample.
3030
*/
3131
/**
32-
* Required. The public key name linked to the requested secret key in the format
33-
* "projects/{project}/keys/{key}".
32+
* Required. The public key name linked to the requested secret key in the
33+
* format "projects/{project}/keys/{key}".
3434
*/
3535
// const key = 'abc123'
3636

packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.search_related_account_group_memberships.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@ function main(project) {
2929
* TODO(developer): Uncomment these variables before running the sample.
3030
*/
3131
/**
32-
* Required. The name of the project to search related account group memberships from.
33-
* Specify the project name in the following format: "projects/{project}".
32+
* Required. The name of the project to search related account group
33+
* memberships from. Specify the project name in the following format:
34+
* "projects/{project}".
3435
*/
3536
// const project = 'my-project'
3637
/**
37-
* Optional. The unique stable hashed user identifier we should search connections to.
38-
* The identifier should correspond to a `hashed_account_id` provided in a
39-
* previous `CreateAssessment` or `AnnotateAssessment` call.
38+
* Optional. The unique stable hashed user identifier we should search
39+
* connections to. The identifier should correspond to a `hashed_account_id`
40+
* provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
4041
*/
4142
// const hashedAccountId = 'Buffer.from('string')'
4243
/**
43-
* Optional. The maximum number of groups to return. The service might return fewer than
44-
* this value.
45-
* If unspecified, at most 50 groups are returned.
46-
* The maximum value is 1000; values above 1000 are coerced to 1000.
44+
* Optional. The maximum number of groups to return. The service might return
45+
* fewer than this value. If unspecified, at most 50 groups are returned. The
46+
* maximum value is 1000; values above 1000 are coerced to 1000.
4747
*/
4848
// const pageSize = 1234
4949
/**

packages/google-cloud-recaptchaenterprise/samples/generated/v1/recaptcha_enterprise_service.update_key.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ function main(key) {
3333
*/
3434
// const key = {}
3535
/**
36-
* Optional. The mask to control which fields of the key get updated. If the mask is not
37-
* present, all fields will be updated.
36+
* Optional. The mask to control which fields of the key get updated. If the
37+
* mask is not present, all fields will be updated.
3838
*/
3939
// const updateMask = {}
4040

packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"segments": [
6767
{
6868
"start": 25,
69-
"end": 72,
69+
"end": 73,
7070
"type": "FULL"
7171
}
7272
],
@@ -374,7 +374,7 @@
374374
"segments": [
375375
{
376376
"start": 25,
377-
"end": 54,
377+
"end": 65,
378378
"type": "FULL"
379379
}
380380
],
@@ -386,6 +386,10 @@
386386
{
387387
"name": "name",
388388
"type": "TYPE_STRING"
389+
},
390+
{
391+
"name": "skip_billing_check",
392+
"type": "TYPE_BOOL"
389393
}
390394
],
391395
"resultType": ".google.cloud.recaptchaenterprise.v1.Key",
@@ -454,7 +458,7 @@
454458
"segments": [
455459
{
456460
"start": 25,
457-
"end": 71,
461+
"end": 70,
458462
"type": "FULL"
459463
}
460464
],
@@ -502,7 +506,7 @@
502506
"segments": [
503507
{
504508
"start": 25,
505-
"end": 71,
509+
"end": 70,
506510
"type": "FULL"
507511
}
508512
],

0 commit comments

Comments
 (0)