* $cloudbuildService = new Google\Service\CloudBuild(...); * $locations = $cloudbuildService->locations; * */ class Locations extends \Google\Service\Resource { /** * ReceiveRegionalWebhook is called when the API receives a regional GitHub * webhook. (locations.regionalWebhook) * * @param string $location Required. The location where the webhook should be * sent. * @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 regionalWebhook($location, HttpBody $postBody, $optParams = []) { $params = ['location' => $location, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('regionalWebhook', [$params], CloudbuildEmpty::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Locations::class, 'Google_Service_CloudBuild_Resource_Locations');