[e3d4e0a] | 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 |
|
---|
| 18 | namespace Google\Service\DiscoveryEngine\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\DiscoveryEngine\GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest;
|
---|
| 21 | use Google\Service\DiscoveryEngine\GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest;
|
---|
| 22 | use Google\Service\DiscoveryEngine\GoogleLongrunningOperation;
|
---|
| 23 |
|
---|
| 24 | /**
|
---|
| 25 | * The "completionSuggestions" collection of methods.
|
---|
| 26 | * Typical usage is:
|
---|
| 27 | * <code>
|
---|
| 28 | * $discoveryengineService = new Google\Service\DiscoveryEngine(...);
|
---|
| 29 | * $completionSuggestions = $discoveryengineService->projects_locations_dataStores_completionSuggestions;
|
---|
| 30 | * </code>
|
---|
| 31 | */
|
---|
| 32 | class ProjectsLocationsDataStoresCompletionSuggestions extends \Google\Service\Resource
|
---|
| 33 | {
|
---|
| 34 | /**
|
---|
| 35 | * Imports CompletionSuggestions for a DataStore. (completionSuggestions.import)
|
---|
| 36 | *
|
---|
| 37 | * @param string $parent Required. The parent data store resource name for which
|
---|
| 38 | * to import customer autocomplete suggestions. Follows pattern
|
---|
| 39 | * `projects/locations/collections/dataStores`
|
---|
| 40 | * @param GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest $postBody
|
---|
| 41 | * @param array $optParams Optional parameters.
|
---|
| 42 | * @return GoogleLongrunningOperation
|
---|
| 43 | * @throws \Google\Service\Exception
|
---|
| 44 | */
|
---|
| 45 | public function import($parent, GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest $postBody, $optParams = [])
|
---|
| 46 | {
|
---|
| 47 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
| 48 | $params = array_merge($params, $optParams);
|
---|
| 49 | return $this->call('import', [$params], GoogleLongrunningOperation::class);
|
---|
| 50 | }
|
---|
| 51 | /**
|
---|
| 52 | * Permanently deletes all CompletionSuggestions for a DataStore.
|
---|
| 53 | * (completionSuggestions.purge)
|
---|
| 54 | *
|
---|
| 55 | * @param string $parent Required. The parent data store resource name for which
|
---|
| 56 | * to purge completion suggestions. Follows pattern
|
---|
| 57 | * projects/locations/collections/dataStores.
|
---|
| 58 | * @param GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest $postBody
|
---|
| 59 | * @param array $optParams Optional parameters.
|
---|
| 60 | * @return GoogleLongrunningOperation
|
---|
| 61 | * @throws \Google\Service\Exception
|
---|
| 62 | */
|
---|
| 63 | public function purge($parent, GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest $postBody, $optParams = [])
|
---|
| 64 | {
|
---|
| 65 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
| 66 | $params = array_merge($params, $optParams);
|
---|
| 67 | return $this->call('purge', [$params], GoogleLongrunningOperation::class);
|
---|
| 68 | }
|
---|
| 69 | }
|
---|
| 70 |
|
---|
| 71 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 72 | class_alias(ProjectsLocationsDataStoresCompletionSuggestions::class, 'Google_Service_DiscoveryEngine_Resource_ProjectsLocationsDataStoresCompletionSuggestions');
|
---|