* $discoveryengineService = new Google\Service\DiscoveryEngine(...); * $siteSearchEngine = $discoveryengineService->projects_locations_dataStores_siteSearchEngine; * */ class ProjectsLocationsDataStoresSiteSearchEngine extends \Google\Service\Resource { /** * Downgrade from advanced site search to basic site search. * (siteSearchEngine.disableAdvancedSiteSearch) * * @param string $siteSearchEngine Required. Full resource name of the * SiteSearchEngine, such as `projects/{project}/locations/{location}/dataStores * /{data_store_id}/siteSearchEngine`. * @param GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest $postBody * @param array $optParams Optional parameters. * @return GoogleLongrunningOperation * @throws \Google\Service\Exception */ public function disableAdvancedSiteSearch($siteSearchEngine, GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest $postBody, $optParams = []) { $params = ['siteSearchEngine' => $siteSearchEngine, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('disableAdvancedSiteSearch', [$params], GoogleLongrunningOperation::class); } /** * Upgrade from basic site search to advanced site search. * (siteSearchEngine.enableAdvancedSiteSearch) * * @param string $siteSearchEngine Required. Full resource name of the * SiteSearchEngine, such as `projects/{project}/locations/{location}/dataStores * /{data_store_id}/siteSearchEngine`. * @param GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest $postBody * @param array $optParams Optional parameters. * @return GoogleLongrunningOperation * @throws \Google\Service\Exception */ public function enableAdvancedSiteSearch($siteSearchEngine, GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest $postBody, $optParams = []) { $params = ['siteSearchEngine' => $siteSearchEngine, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('enableAdvancedSiteSearch', [$params], GoogleLongrunningOperation::class); } /** * Request on-demand recrawl for a list of URIs. (siteSearchEngine.recrawlUris) * * @param string $siteSearchEngine Required. Full resource name of the * SiteSearchEngine, such as * `projects/locations/collections/dataStores/siteSearchEngine`. * @param GoogleCloudDiscoveryengineV1RecrawlUrisRequest $postBody * @param array $optParams Optional parameters. * @return GoogleLongrunningOperation * @throws \Google\Service\Exception */ public function recrawlUris($siteSearchEngine, GoogleCloudDiscoveryengineV1RecrawlUrisRequest $postBody, $optParams = []) { $params = ['siteSearchEngine' => $siteSearchEngine, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('recrawlUris', [$params], GoogleLongrunningOperation::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsDataStoresSiteSearchEngine::class, 'Google_Service_DiscoveryEngine_Resource_ProjectsLocationsDataStoresSiteSearchEngine');