* $cloudbuildService = new Google\Service\CloudBuild(...); * $v1 = $cloudbuildService->v1; * */ class V1 extends \Google\Service\Resource { /** * ReceiveWebhook is called when the API receives a GitHub webhook. (v1.webhook) * * @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 webhook(HttpBody $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('webhook', [$params], CloudbuildEmpty::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(V1::class, 'Google_Service_CloudBuild_Resource_V1');