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\AlertCenter\Resource;
19
20use Google\Service\AlertCenter\Settings;
21
22/**
23 * The "v1beta1" collection of methods.
24 * Typical usage is:
25 *  <code>
26 *   $alertcenterService = new Google\Service\AlertCenter(...);
27 *   $v1beta1 = $alertcenterService->v1beta1;
28 *  </code>
29 */
30class V1beta1 extends \Google\Service\Resource
31{
32  /**
33   * Returns customer-level settings. (v1beta1.getSettings)
34   *
35   * @param array $optParams Optional parameters.
36   *
37   * @opt_param string customerId Optional. The unique identifier of the Google
38   * Workspace organization account of the customer the alert settings are
39   * associated with. Inferred from the caller identity if not provided.
40   * @return Settings
41   */
42  public function getSettings($optParams = [])
43  {
44    $params = [];
45    $params = array_merge($params, $optParams);
46    return $this->call('getSettings', [$params], Settings::class);
47  }
48  /**
49   * Updates the customer-level settings. (v1beta1.updateSettings)
50   *
51   * @param Settings $postBody
52   * @param array $optParams Optional parameters.
53   *
54   * @opt_param string customerId Optional. The unique identifier of the Google
55   * Workspace organization account of the customer the alert settings are
56   * associated with. Inferred from the caller identity if not provided.
57   * @return Settings
58   */
59  public function updateSettings(Settings $postBody, $optParams = [])
60  {
61    $params = ['postBody' => $postBody];
62    $params = array_merge($params, $optParams);
63    return $this->call('updateSettings', [$params], Settings::class);
64  }
65}
66
67// Adding a class alias for backwards compatibility with the previous class name.
68class_alias(V1beta1::class, 'Google_Service_AlertCenter_Resource_V1beta1');
69