source: vendor/google/apiclient-services/src/Groupssettings/Resource/Groups.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload project files

  • Property mode set to 100644
File size: 2.7 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\Groupssettings\Resource;
19
20use Google\Service\Groupssettings\Groups as GroupsModel;
21
22/**
23 * The "groups" collection of methods.
24 * Typical usage is:
25 * <code>
26 * $groupssettingsService = new Google\Service\Groupssettings(...);
27 * $groups = $groupssettingsService->groups;
28 * </code>
29 */
30class Groups extends \Google\Service\Resource
31{
32 /**
33 * Gets one resource by id. (groups.get)
34 *
35 * @param string $groupUniqueId The group's email address.
36 * @param array $optParams Optional parameters.
37 * @return GroupsModel
38 * @throws \Google\Service\Exception
39 */
40 public function get($groupUniqueId, $optParams = [])
41 {
42 $params = ['groupUniqueId' => $groupUniqueId];
43 $params = array_merge($params, $optParams);
44 return $this->call('get', [$params], GroupsModel::class);
45 }
46 /**
47 * Updates an existing resource. This method supports patch semantics.
48 * (groups.patch)
49 *
50 * @param string $groupUniqueId The group's email address.
51 * @param GroupsModel $postBody
52 * @param array $optParams Optional parameters.
53 * @return GroupsModel
54 * @throws \Google\Service\Exception
55 */
56 public function patch($groupUniqueId, GroupsModel $postBody, $optParams = [])
57 {
58 $params = ['groupUniqueId' => $groupUniqueId, 'postBody' => $postBody];
59 $params = array_merge($params, $optParams);
60 return $this->call('patch', [$params], GroupsModel::class);
61 }
62 /**
63 * Updates an existing resource. (groups.update)
64 *
65 * @param string $groupUniqueId The group's email address.
66 * @param GroupsModel $postBody
67 * @param array $optParams Optional parameters.
68 * @return GroupsModel
69 * @throws \Google\Service\Exception
70 */
71 public function update($groupUniqueId, GroupsModel $postBody, $optParams = [])
72 {
73 $params = ['groupUniqueId' => $groupUniqueId, 'postBody' => $postBody];
74 $params = array_merge($params, $optParams);
75 return $this->call('update', [$params], GroupsModel::class);
76 }
77}
78
79// Adding a class alias for backwards compatibility with the previous class name.
80class_alias(Groups::class, 'Google_Service_Groupssettings_Resource_Groups');
Note: See TracBrowser for help on using the repository browser.