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\AlertCenter\Resource;
|
---|
19 |
|
---|
20 | use 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 | */
|
---|
30 | class 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 account of the customer the alert settings are associated with. The
|
---|
39 | * `customer_id` must/ have the initial "C" stripped (for example, `046psxkn`).
|
---|
40 | * Inferred from the caller identity if not provided. [Find your customer
|
---|
41 | * ID](https://support.google.com/cloudidentity/answer/10070793).
|
---|
42 | * @return Settings
|
---|
43 | * @throws \Google\Service\Exception
|
---|
44 | */
|
---|
45 | public function getSettings($optParams = [])
|
---|
46 | {
|
---|
47 | $params = [];
|
---|
48 | $params = array_merge($params, $optParams);
|
---|
49 | return $this->call('getSettings', [$params], Settings::class);
|
---|
50 | }
|
---|
51 | /**
|
---|
52 | * Updates the customer-level settings. (v1beta1.updateSettings)
|
---|
53 | *
|
---|
54 | * @param Settings $postBody
|
---|
55 | * @param array $optParams Optional parameters.
|
---|
56 | *
|
---|
57 | * @opt_param string customerId Optional. The unique identifier of the Google
|
---|
58 | * Workspace account of the customer the alert settings are associated with. The
|
---|
59 | * `customer_id` must have the initial "C" stripped (for example, `046psxkn`).
|
---|
60 | * Inferred from the caller identity if not provided. [Find your customer
|
---|
61 | * ID](https://support.google.com/cloudidentity/answer/10070793).
|
---|
62 | * @return Settings
|
---|
63 | * @throws \Google\Service\Exception
|
---|
64 | */
|
---|
65 | public function updateSettings(Settings $postBody, $optParams = [])
|
---|
66 | {
|
---|
67 | $params = ['postBody' => $postBody];
|
---|
68 | $params = array_merge($params, $optParams);
|
---|
69 | return $this->call('updateSettings', [$params], Settings::class);
|
---|
70 | }
|
---|
71 | }
|
---|
72 |
|
---|
73 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
74 | class_alias(V1beta1::class, 'Google_Service_AlertCenter_Resource_V1beta1');
|
---|