* $cloudbuildService = new Google\Service\CloudBuild(...); * $githubDotComWebhook = $cloudbuildService->githubDotComWebhook; * */ class GithubDotComWebhook extends \Google\Service\Resource { /** * ReceiveGitHubDotComWebhook is called when the API receives a github.com * webhook. (githubDotComWebhook.receive) * * @param HttpBody $postBody * @param array $optParams Optional parameters. * * @opt_param string webhookKey For GitHub Enterprise webhooks, this key is used * to associate the webhook request with the GitHubEnterpriseConfig to use for * validation. * @return CloudbuildEmpty */ public function receive(HttpBody $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('receive', [$params], CloudbuildEmpty::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GithubDotComWebhook::class, 'Google_Service_CloudBuild_Resource_GithubDotComWebhook');