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\Contactcenterinsights\Resource;
19
20use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1Settings;
21
22/**
23 * The "locations" collection of methods.
24 * Typical usage is:
25 *  <code>
26 *   $contactcenterinsightsService = new Google\Service\Contactcenterinsights(...);
27 *   $locations = $contactcenterinsightsService->locations;
28 *  </code>
29 */
30class ProjectsLocations extends \Google\Service\Resource
31{
32  /**
33   * Gets project-level settings. (locations.getSettings)
34   *
35   * @param string $name Required. The name of the settings resource to get.
36   * @param array $optParams Optional parameters.
37   * @return GoogleCloudContactcenterinsightsV1Settings
38   */
39  public function getSettings($name, $optParams = [])
40  {
41    $params = ['name' => $name];
42    $params = array_merge($params, $optParams);
43    return $this->call('getSettings', [$params], GoogleCloudContactcenterinsightsV1Settings::class);
44  }
45  /**
46   * Updates project-level settings. (locations.updateSettings)
47   *
48   * @param string $name Immutable. The resource name of the settings resource.
49   * Format: projects/{project}/locations/{location}/settings
50   * @param GoogleCloudContactcenterinsightsV1Settings $postBody
51   * @param array $optParams Optional parameters.
52   *
53   * @opt_param string updateMask Required. The list of fields to be updated.
54   * @return GoogleCloudContactcenterinsightsV1Settings
55   */
56  public function updateSettings($name, GoogleCloudContactcenterinsightsV1Settings $postBody, $optParams = [])
57  {
58    $params = ['name' => $name, 'postBody' => $postBody];
59    $params = array_merge($params, $optParams);
60    return $this->call('updateSettings', [$params], GoogleCloudContactcenterinsightsV1Settings::class);
61  }
62}
63
64// Adding a class alias for backwards compatibility with the previous class name.
65class_alias(ProjectsLocations::class, 'Google_Service_Contactcenterinsights_Resource_ProjectsLocations');
66