* $recaptchaenterpriseService = new Google\Service\RecaptchaEnterprise(...); * $assessments = $recaptchaenterpriseService->assessments; * */ class ProjectsAssessments extends \Google\Service\Resource { /** * Annotates a previously created Assessment to provide additional information * on whether the event turned out to be authentic or fraudulent. * (assessments.annotate) * * @param string $name Required. The resource name of the Assessment, in the * format "projects/{project}/assessments/{assessment}". * @param GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest $postBody * @param array $optParams Optional parameters. * @return GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentResponse */ public function annotate($name, GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('annotate', [$params], GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentResponse::class); } /** * Creates an Assessment of the likelihood an event is legitimate. * (assessments.create) * * @param string $parent Required. The name of the project in which the * assessment will be created, in the format "projects/{project}". * @param GoogleCloudRecaptchaenterpriseV1Assessment $postBody * @param array $optParams Optional parameters. * @return GoogleCloudRecaptchaenterpriseV1Assessment */ public function create($parent, GoogleCloudRecaptchaenterpriseV1Assessment $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], GoogleCloudRecaptchaenterpriseV1Assessment::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsAssessments::class, 'Google_Service_RecaptchaEnterprise_Resource_ProjectsAssessments');