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/** 19 * Service definition for Groupssettings (v1). 20 * 21 * <p> 22 * Manages permission levels and related settings of a group.</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://developers.google.com/google-apps/groups-settings/get_started" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31class Google_Service_Groupssettings extends Google_Service 32{ 33 /** View and manage the settings of a G Suite group. */ 34 const APPS_GROUPS_SETTINGS = 35 "https://www.googleapis.com/auth/apps.groups.settings"; 36 37 public $groups; 38 39 /** 40 * Constructs the internal representation of the Groupssettings service. 41 * 42 * @param Google_Client $client 43 */ 44 public function __construct(Google_Client $client) 45 { 46 parent::__construct($client); 47 $this->rootUrl = 'https://www.googleapis.com/'; 48 $this->servicePath = 'groups/v1/groups/'; 49 $this->batchPath = 'batch/groupssettings/v1'; 50 $this->version = 'v1'; 51 $this->serviceName = 'groupssettings'; 52 53 $this->groups = new Google_Service_Groupssettings_Resource_Groups( 54 $this, 55 $this->serviceName, 56 'groups', 57 array( 58 'methods' => array( 59 'get' => array( 60 'path' => '{groupUniqueId}', 61 'httpMethod' => 'GET', 62 'parameters' => array( 63 'groupUniqueId' => array( 64 'location' => 'path', 65 'type' => 'string', 66 'required' => true, 67 ), 68 ), 69 ),'patch' => array( 70 'path' => '{groupUniqueId}', 71 'httpMethod' => 'PATCH', 72 'parameters' => array( 73 'groupUniqueId' => array( 74 'location' => 'path', 75 'type' => 'string', 76 'required' => true, 77 ), 78 ), 79 ),'update' => array( 80 'path' => '{groupUniqueId}', 81 'httpMethod' => 'PUT', 82 'parameters' => array( 83 'groupUniqueId' => array( 84 'location' => 'path', 85 'type' => 'string', 86 'required' => true, 87 ), 88 ), 89 ), 90 ) 91 ) 92 ); 93 } 94} 95