source: vendor/google/apiclient-services/src/DiscoveryEngine/Resource/ProjectsLocationsDataStoresSiteSearchEngine.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 12 days ago

Upload project files

  • Property mode set to 100644
File size: 4.1 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\DiscoveryEngine\Resource;
19
20use Google\Service\DiscoveryEngine\GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest;
21use Google\Service\DiscoveryEngine\GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest;
22use Google\Service\DiscoveryEngine\GoogleCloudDiscoveryengineV1RecrawlUrisRequest;
23use Google\Service\DiscoveryEngine\GoogleLongrunningOperation;
24
25/**
26 * The "siteSearchEngine" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $discoveryengineService = new Google\Service\DiscoveryEngine(...);
30 * $siteSearchEngine = $discoveryengineService->projects_locations_dataStores_siteSearchEngine;
31 * </code>
32 */
33class ProjectsLocationsDataStoresSiteSearchEngine extends \Google\Service\Resource
34{
35 /**
36 * Downgrade from advanced site search to basic site search.
37 * (siteSearchEngine.disableAdvancedSiteSearch)
38 *
39 * @param string $siteSearchEngine Required. Full resource name of the
40 * SiteSearchEngine, such as `projects/{project}/locations/{location}/dataStores
41 * /{data_store_id}/siteSearchEngine`.
42 * @param GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest $postBody
43 * @param array $optParams Optional parameters.
44 * @return GoogleLongrunningOperation
45 * @throws \Google\Service\Exception
46 */
47 public function disableAdvancedSiteSearch($siteSearchEngine, GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest $postBody, $optParams = [])
48 {
49 $params = ['siteSearchEngine' => $siteSearchEngine, 'postBody' => $postBody];
50 $params = array_merge($params, $optParams);
51 return $this->call('disableAdvancedSiteSearch', [$params], GoogleLongrunningOperation::class);
52 }
53 /**
54 * Upgrade from basic site search to advanced site search.
55 * (siteSearchEngine.enableAdvancedSiteSearch)
56 *
57 * @param string $siteSearchEngine Required. Full resource name of the
58 * SiteSearchEngine, such as `projects/{project}/locations/{location}/dataStores
59 * /{data_store_id}/siteSearchEngine`.
60 * @param GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest $postBody
61 * @param array $optParams Optional parameters.
62 * @return GoogleLongrunningOperation
63 * @throws \Google\Service\Exception
64 */
65 public function enableAdvancedSiteSearch($siteSearchEngine, GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest $postBody, $optParams = [])
66 {
67 $params = ['siteSearchEngine' => $siteSearchEngine, 'postBody' => $postBody];
68 $params = array_merge($params, $optParams);
69 return $this->call('enableAdvancedSiteSearch', [$params], GoogleLongrunningOperation::class);
70 }
71 /**
72 * Request on-demand recrawl for a list of URIs. (siteSearchEngine.recrawlUris)
73 *
74 * @param string $siteSearchEngine Required. Full resource name of the
75 * SiteSearchEngine, such as
76 * `projects/locations/collections/dataStores/siteSearchEngine`.
77 * @param GoogleCloudDiscoveryengineV1RecrawlUrisRequest $postBody
78 * @param array $optParams Optional parameters.
79 * @return GoogleLongrunningOperation
80 * @throws \Google\Service\Exception
81 */
82 public function recrawlUris($siteSearchEngine, GoogleCloudDiscoveryengineV1RecrawlUrisRequest $postBody, $optParams = [])
83 {
84 $params = ['siteSearchEngine' => $siteSearchEngine, 'postBody' => $postBody];
85 $params = array_merge($params, $optParams);
86 return $this->call('recrawlUris', [$params], GoogleLongrunningOperation::class);
87 }
88}
89
90// Adding a class alias for backwards compatibility with the previous class name.
91class_alias(ProjectsLocationsDataStoresSiteSearchEngine::class, 'Google_Service_DiscoveryEngine_Resource_ProjectsLocationsDataStoresSiteSearchEngine');
Note: See TracBrowser for help on using the repository browser.