source: vendor/google/apiclient-services/src/DiscoveryEngine/Resource/ProjectsLocationsCollectionsDataStoresSiteSearchEngine.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: 6.9 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\GoogleCloudDiscoveryengineV1BatchVerifyTargetSitesRequest;
21use Google\Service\DiscoveryEngine\GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest;
22use Google\Service\DiscoveryEngine\GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest;
23use Google\Service\DiscoveryEngine\GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse;
24use Google\Service\DiscoveryEngine\GoogleCloudDiscoveryengineV1RecrawlUrisRequest;
25use Google\Service\DiscoveryEngine\GoogleLongrunningOperation;
26
27/**
28 * The "siteSearchEngine" collection of methods.
29 * Typical usage is:
30 * <code>
31 * $discoveryengineService = new Google\Service\DiscoveryEngine(...);
32 * $siteSearchEngine = $discoveryengineService->projects_locations_collections_dataStores_siteSearchEngine;
33 * </code>
34 */
35class ProjectsLocationsCollectionsDataStoresSiteSearchEngine extends \Google\Service\Resource
36{
37 /**
38 * Verify target sites' ownership and validity. This API sends all the target
39 * sites under site search engine for verification.
40 * (siteSearchEngine.batchVerifyTargetSites)
41 *
42 * @param string $parent Required. The parent resource shared by all TargetSites
43 * being verified. `projects/{project}/locations/{location}/collections/{collect
44 * ion}/dataStores/{data_store}/siteSearchEngine`.
45 * @param GoogleCloudDiscoveryengineV1BatchVerifyTargetSitesRequest $postBody
46 * @param array $optParams Optional parameters.
47 * @return GoogleLongrunningOperation
48 * @throws \Google\Service\Exception
49 */
50 public function batchVerifyTargetSites($parent, GoogleCloudDiscoveryengineV1BatchVerifyTargetSitesRequest $postBody, $optParams = [])
51 {
52 $params = ['parent' => $parent, 'postBody' => $postBody];
53 $params = array_merge($params, $optParams);
54 return $this->call('batchVerifyTargetSites', [$params], GoogleLongrunningOperation::class);
55 }
56 /**
57 * Downgrade from advanced site search to basic site search.
58 * (siteSearchEngine.disableAdvancedSiteSearch)
59 *
60 * @param string $siteSearchEngine Required. Full resource name of the
61 * SiteSearchEngine, such as `projects/{project}/locations/{location}/dataStores
62 * /{data_store_id}/siteSearchEngine`.
63 * @param GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest $postBody
64 * @param array $optParams Optional parameters.
65 * @return GoogleLongrunningOperation
66 * @throws \Google\Service\Exception
67 */
68 public function disableAdvancedSiteSearch($siteSearchEngine, GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest $postBody, $optParams = [])
69 {
70 $params = ['siteSearchEngine' => $siteSearchEngine, 'postBody' => $postBody];
71 $params = array_merge($params, $optParams);
72 return $this->call('disableAdvancedSiteSearch', [$params], GoogleLongrunningOperation::class);
73 }
74 /**
75 * Upgrade from basic site search to advanced site search.
76 * (siteSearchEngine.enableAdvancedSiteSearch)
77 *
78 * @param string $siteSearchEngine Required. Full resource name of the
79 * SiteSearchEngine, such as `projects/{project}/locations/{location}/dataStores
80 * /{data_store_id}/siteSearchEngine`.
81 * @param GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest $postBody
82 * @param array $optParams Optional parameters.
83 * @return GoogleLongrunningOperation
84 * @throws \Google\Service\Exception
85 */
86 public function enableAdvancedSiteSearch($siteSearchEngine, GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest $postBody, $optParams = [])
87 {
88 $params = ['siteSearchEngine' => $siteSearchEngine, 'postBody' => $postBody];
89 $params = array_merge($params, $optParams);
90 return $this->call('enableAdvancedSiteSearch', [$params], GoogleLongrunningOperation::class);
91 }
92 /**
93 * Returns list of target sites with its domain verification status. This method
94 * can only be called under data store with BASIC_SITE_SEARCH state at the
95 * moment. (siteSearchEngine.fetchDomainVerificationStatus)
96 *
97 * @param string $siteSearchEngine Required. The site search engine resource
98 * under which we fetch all the domain verification status. `projects/{project}/
99 * locations/{location}/collections/{collection}/dataStores/{data_store}/siteSea
100 * rchEngine`.
101 * @param array $optParams Optional parameters.
102 *
103 * @opt_param int pageSize Requested page size. Server may return fewer items
104 * than requested. If unspecified, server will pick an appropriate default. The
105 * maximum value is 1000; values above 1000 will be coerced to 1000. If this
106 * field is negative, an INVALID_ARGUMENT error is returned.
107 * @opt_param string pageToken A page token, received from a previous
108 * `FetchDomainVerificationStatus` call. Provide this to retrieve the subsequent
109 * page. When paginating, all other parameters provided to
110 * `FetchDomainVerificationStatus` must match the call that provided the page
111 * token.
112 * @return GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse
113 * @throws \Google\Service\Exception
114 */
115 public function fetchDomainVerificationStatus($siteSearchEngine, $optParams = [])
116 {
117 $params = ['siteSearchEngine' => $siteSearchEngine];
118 $params = array_merge($params, $optParams);
119 return $this->call('fetchDomainVerificationStatus', [$params], GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse::class);
120 }
121 /**
122 * Request on-demand recrawl for a list of URIs. (siteSearchEngine.recrawlUris)
123 *
124 * @param string $siteSearchEngine Required. Full resource name of the
125 * SiteSearchEngine, such as
126 * `projects/locations/collections/dataStores/siteSearchEngine`.
127 * @param GoogleCloudDiscoveryengineV1RecrawlUrisRequest $postBody
128 * @param array $optParams Optional parameters.
129 * @return GoogleLongrunningOperation
130 * @throws \Google\Service\Exception
131 */
132 public function recrawlUris($siteSearchEngine, GoogleCloudDiscoveryengineV1RecrawlUrisRequest $postBody, $optParams = [])
133 {
134 $params = ['siteSearchEngine' => $siteSearchEngine, 'postBody' => $postBody];
135 $params = array_merge($params, $optParams);
136 return $this->call('recrawlUris', [$params], GoogleLongrunningOperation::class);
137 }
138}
139
140// Adding a class alias for backwards compatibility with the previous class name.
141class_alias(ProjectsLocationsCollectionsDataStoresSiteSearchEngine::class, 'Google_Service_DiscoveryEngine_Resource_ProjectsLocationsCollectionsDataStoresSiteSearchEngine');
Note: See TracBrowser for help on using the repository browser.