Skip to content

Commit

Permalink
feat: added AnnotateAssessmentRequest.account_id (#6804)
Browse files Browse the repository at this point in the history
feat: added Event.user_info
docs: updated comments
PiperOrigin-RevId: 584376490
Source-Link: googleapis/googleapis@3413c93
Source-Link: googleapis/googleapis-gen@87d4cd1
Copy-Tag: eyJwIjoiUmVjYXB0Y2hhRW50ZXJwcmlzZS8uT3dsQm90LnlhbWwiLCJoIjoiODdkNGNkMTAyODM2ZDI0ZWQyZmJmYjlkZWQ1Mzc3MzRjZGM3MDdhOSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 28, 2023
1 parent 4ef5051 commit f03742c
Show file tree
Hide file tree
Showing 7 changed files with 476 additions and 55 deletions.
Binary file modified RecaptchaEnterprise/metadata/V1/Recaptchaenterprise.php
Binary file not shown.
90 changes: 62 additions & 28 deletions RecaptchaEnterprise/src/V1/AnnotateAssessmentRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions RecaptchaEnterprise/src/V1/Assessment.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

89 changes: 77 additions & 12 deletions RecaptchaEnterprise/src/V1/Event.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -474,15 +474,17 @@ public function __construct(array $options = [])
* Optional.
*
* @type int[] $reasons
* Optional. Optional reasons for the annotation that will be assigned to the
* Event.
* Optional. Reasons for the annotation that are assigned to the event.
* For allowed values, use constants defined on {@see \Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason}
* @type string $accountId
* Optional. A stable account identifier to apply to the assessment. This is
* an alternative to setting `account_id` in `CreateAssessment`, for example
* when a stable account identifier is not yet known in the initial request.
* @type string $hashedAccountId
* Optional. Unique stable hashed user identifier to apply to the assessment.
* This is an alternative to setting the hashed_account_id in
* CreateAssessment, for example when the account identifier is not yet known
* in the initial request. It is recommended that the identifier is hashed
* using hmac-sha256 with stable secret.
* Optional. A stable hashed account identifier to apply to the assessment.
* This is an alternative to setting `hashed_account_id` in
* `CreateAssessment`, for example when a stable account identifier is not yet
* known in the initial request.
* @type TransactionEvent $transactionEvent
* Optional. If the assessment is part of a payment transaction, provide
* details on payment lifecycle events that occur in the transaction.
Expand Down Expand Up @@ -510,6 +512,10 @@ public function annotateAssessment(
$request->setReasons($optionalArgs['reasons']);
}

if (isset($optionalArgs['accountId'])) {
$request->setAccountId($optionalArgs['accountId']);
}

if (isset($optionalArgs['hashedAccountId'])) {
$request->setHashedAccountId($optionalArgs['hashedAccountId']);
}
Expand Down
Loading

0 comments on commit f03742c

Please sign in to comment.