* $verifiedaccessService = new Google\Service\Verifiedaccess(...); * $challenge = $verifiedaccessService->challenge; * */ class Challenge extends \Google\Service\Resource { /** * Generates a new challenge. (challenge.generate) * * @param VerifiedaccessEmpty $postBody * @param array $optParams Optional parameters. * @return ChallengeModel * @throws \Google\Service\Exception */ public function generate(VerifiedaccessEmpty $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('generate', [$params], ChallengeModel::class); } /** * Verifies the challenge response. (challenge.verify) * * @param VerifyChallengeResponseRequest $postBody * @param array $optParams Optional parameters. * @return VerifyChallengeResponseResult * @throws \Google\Service\Exception */ public function verify(VerifyChallengeResponseRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('verify', [$params], VerifyChallengeResponseResult::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Challenge::class, 'Google_Service_Verifiedaccess_Resource_Challenge');