diff --git a/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment.php b/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment.php index d0c9bb934e8..a32c7e61726 100644 --- a/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment.php +++ b/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment.php @@ -20,6 +20,8 @@ class GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment extends \Google\Collection { protected $collection_key = 'labels'; + protected $accountTakeoverVerdictType = GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict::class; + protected $accountTakeoverVerdictDataType = ''; /** * Output only. Labels for this request. * @@ -27,6 +29,22 @@ class GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment extends \Google\ */ public $labels; + /** + * Output only. Account takeover risk assessment for this request. + * + * @param GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict $accountTakeoverVerdict + */ + public function setAccountTakeoverVerdict(GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict $accountTakeoverVerdict) + { + $this->accountTakeoverVerdict = $accountTakeoverVerdict; + } + /** + * @return GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict + */ + public function getAccountTakeoverVerdict() + { + return $this->accountTakeoverVerdict; + } /** * Output only. Labels for this request. * diff --git a/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountRiskReason.php b/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountRiskReason.php new file mode 100644 index 00000000000..288c6d1ed60 --- /dev/null +++ b/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountRiskReason.php @@ -0,0 +1,72 @@ +reason = $reason; + } + /** + * @return self::REASON_* + */ + public function getReason() + { + return $this->reason; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountRiskReason::class, 'Google_Service_RecaptchaEnterprise_GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountRiskReason'); diff --git a/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict.php b/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict.php new file mode 100644 index 00000000000..e3196adfdc5 --- /dev/null +++ b/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict.php @@ -0,0 +1,91 @@ +risk = $risk; + } + /** + * @return float + */ + public function getRisk() + { + return $this->risk; + } + /** + * Output only. Unordered list. Reasons why the request appears risky. Risk + * reasons can be returned even if the risk is low, as trustworthy requests + * can still have some risk signals. + * + * @param GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountRiskReason[] $riskReasons + */ + public function setRiskReasons($riskReasons) + { + $this->riskReasons = $riskReasons; + } + /** + * @return GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountRiskReason[] + */ + public function getRiskReasons() + { + return $this->riskReasons; + } + /** + * Output only. Unordered list. Reasons why the request appears trustworthy. + * Trust reasons can be returned even if the risk is high, as risky requests + * can still have some trust signals. + * + * @param GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTrustReason[] $trustReasons + */ + public function setTrustReasons($trustReasons) + { + $this->trustReasons = $trustReasons; + } + /** + * @return GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTrustReason[] + */ + public function getTrustReasons() + { + return $this->trustReasons; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict::class, 'Google_Service_RecaptchaEnterprise_GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTakeoverVerdict'); diff --git a/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTrustReason.php b/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTrustReason.php new file mode 100644 index 00000000000..0cf212ae255 --- /dev/null +++ b/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTrustReason.php @@ -0,0 +1,65 @@ +reason = $reason; + } + /** + * @return self::REASON_* + */ + public function getReason() + { + return $this->reason; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTrustReason::class, 'Google_Service_RecaptchaEnterprise_GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessmentAccountTrustReason'); diff --git a/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1RiskAnalysis.php b/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1RiskAnalysis.php index 904225c804e..3f00a4a9fae 100644 --- a/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1RiskAnalysis.php +++ b/src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1RiskAnalysis.php @@ -44,8 +44,9 @@ class GoogleCloudRecaptchaenterpriseV1RiskAnalysis extends \Google\Collection */ public $challenge; /** - * Output only. Extended verdict reasons to be used for experimentation only. - * The set of possible reasons is subject to change. + * Output only. Advanced reasons contributing to the risk analysis verdict. + * These reasons are available to Enterprise tier projects only. Contact sales + * for more information. The set of possible reasons is subject to change. * * @var string[] */ @@ -86,8 +87,9 @@ public function getChallenge() return $this->challenge; } /** - * Output only. Extended verdict reasons to be used for experimentation only. - * The set of possible reasons is subject to change. + * Output only. Advanced reasons contributing to the risk analysis verdict. + * These reasons are available to Enterprise tier projects only. Contact sales + * for more information. The set of possible reasons is subject to change. * * @param string[] $extendedVerdictReasons */