* $checksService = new Google\Service\ChecksService(...); * $privacypolicy = $checksService->privacypolicy; * */ class Privacypolicy extends \Google\Service\Resource { /** * Performs a synchronous analysis of a privacy policy, where the policy content * is mapped to privacy categories, data types, and purposes. * (privacypolicy.analyze) * * @param AnalyzePrivacyPolicyRequest $postBody * @param array $optParams Optional parameters. * @return AnalyzePrivacyPolicyResponse */ public function analyze(AnalyzePrivacyPolicyRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('analyze', [$params], AnalyzePrivacyPolicyResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Privacypolicy::class, 'Google_Service_ChecksService_Resource_Privacypolicy');