| 1 |
<?php |
| 2 |
/* |
| 3 |
* Copyright 2010 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 |
* Lets you manage 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 |
*/ |
| 31 |
class Google_Service_Groupssettings extends Google_Service |
| 32 |
{ |
| 33 |
/** View and manage the settings of a Google Apps Group. */ |
| 34 |
const APPS_GROUPS_SETTINGS = |
| 35 |
"https://www.googleapis.com/auth/apps.groups.settings"; |
| 36 |
|
| 37 |
public $groups; |
| 38 |
|
| 39 |
|
| 40 |
/** |
| 41 |
* Constructs the internal representation of the Groupssettings service. |
| 42 |
* |
| 43 |
* @param Google_Client $client |
| 44 |
*/ |
| 45 |
public function __construct(Google_Client $client) |
| 46 |
{ |
| 47 |
parent::__construct($client); |
| 48 |
$this->servicePath = 'groups/v1/groups/'; |
| 49 |
$this->version = 'v1'; |
| 50 |
$this->serviceName = 'groupssettings'; |
| 51 |
|
| 52 |
$this->groups = new Google_Service_Groupssettings_Groups_Resource( |
| 53 |
$this, |
| 54 |
$this->serviceName, |
| 55 |
'groups', |
| 56 |
array( |
| 57 |
'methods' => array( |
| 58 |
'get' => array( |
| 59 |
'path' => '{groupUniqueId}', |
| 60 |
'httpMethod' => 'GET', |
| 61 |
'parameters' => array( |
| 62 |
'groupUniqueId' => array( |
| 63 |
'location' => 'path', |
| 64 |
'type' => 'string', |
| 65 |
'required' => true, |
| 66 |
), |
| 67 |
), |
| 68 |
),'patch' => array( |
| 69 |
'path' => '{groupUniqueId}', |
| 70 |
'httpMethod' => 'PATCH', |
| 71 |
'parameters' => array( |
| 72 |
'groupUniqueId' => array( |
| 73 |
'location' => 'path', |
| 74 |
'type' => 'string', |
| 75 |
'required' => true, |
| 76 |
), |
| 77 |
), |
| 78 |
),'update' => array( |
| 79 |
'path' => '{groupUniqueId}', |
| 80 |
'httpMethod' => 'PUT', |
| 81 |
'parameters' => array( |
| 82 |
'groupUniqueId' => array( |
| 83 |
'location' => 'path', |
| 84 |
'type' => 'string', |
| 85 |
'required' => true, |
| 86 |
), |
| 87 |
), |
| 88 |
), |
| 89 |
) |
| 90 |
) |
| 91 |
); |
| 92 |
} |
| 93 |
} |
| 94 |
|
| 95 |
|
| 96 |
/** |
| 97 |
* The "groups" collection of methods. |
| 98 |
* Typical usage is: |
| 99 |
* <code> |
| 100 |
* $groupssettingsService = new Google_Service_Groupssettings(...); |
| 101 |
* $groups = $groupssettingsService->groups; |
| 102 |
* </code> |
| 103 |
*/ |
| 104 |
class Google_Service_Groupssettings_Groups_Resource extends Google_Service_Resource |
| 105 |
{ |
| 106 |
|
| 107 |
/** |
| 108 |
* Gets one resource by id. (groups.get) |
| 109 |
* |
| 110 |
* @param string $groupUniqueId The resource ID |
| 111 |
* @param array $optParams Optional parameters. |
| 112 |
* @return Google_Service_Groupssettings_Groups |
| 113 |
*/ |
| 114 |
public function get($groupUniqueId, $optParams = array()) |
| 115 |
{ |
| 116 |
$params = array('groupUniqueId' => $groupUniqueId); |
| 117 |
$params = array_merge($params, $optParams); |
| 118 |
return $this->call('get', array($params), "Google_Service_Groupssettings_Groups"); |
| 119 |
} |
| 120 |
|
| 121 |
/** |
| 122 |
* Updates an existing resource. This method supports patch semantics. |
| 123 |
* (groups.patch) |
| 124 |
* |
| 125 |
* @param string $groupUniqueId The resource ID |
| 126 |
* @param Google_Groups $postBody |
| 127 |
* @param array $optParams Optional parameters. |
| 128 |
* @return Google_Service_Groupssettings_Groups |
| 129 |
*/ |
| 130 |
public function patch($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array()) |
| 131 |
{ |
| 132 |
$params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody); |
| 133 |
$params = array_merge($params, $optParams); |
| 134 |
return $this->call('patch', array($params), "Google_Service_Groupssettings_Groups"); |
| 135 |
} |
| 136 |
|
| 137 |
/** |
| 138 |
* Updates an existing resource. (groups.update) |
| 139 |
* |
| 140 |
* @param string $groupUniqueId The resource ID |
| 141 |
* @param Google_Groups $postBody |
| 142 |
* @param array $optParams Optional parameters. |
| 143 |
* @return Google_Service_Groupssettings_Groups |
| 144 |
*/ |
| 145 |
public function update($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array()) |
| 146 |
{ |
| 147 |
$params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody); |
| 148 |
$params = array_merge($params, $optParams); |
| 149 |
return $this->call('update', array($params), "Google_Service_Groupssettings_Groups"); |
| 150 |
} |
| 151 |
} |
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
class Google_Service_Groupssettings_Groups extends Google_Model |
| 157 |
{ |
| 158 |
protected $internal_gapi_mappings = array( |
| 159 |
); |
| 160 |
public $allowExternalMembers; |
| 161 |
public $allowGoogleCommunication; |
| 162 |
public $allowWebPosting; |
| 163 |
public $archiveOnly; |
| 164 |
public $customReplyTo; |
| 165 |
public $defaultMessageDenyNotificationText; |
| 166 |
public $description; |
| 167 |
public $email; |
| 168 |
public $includeInGlobalAddressList; |
| 169 |
public $isArchived; |
| 170 |
public $kind; |
| 171 |
public $maxMessageBytes; |
| 172 |
public $membersCanPostAsTheGroup; |
| 173 |
public $messageDisplayFont; |
| 174 |
public $messageModerationLevel; |
| 175 |
public $name; |
| 176 |
public $primaryLanguage; |
| 177 |
public $replyTo; |
| 178 |
public $sendMessageDenyNotification; |
| 179 |
public $showInGroupDirectory; |
| 180 |
public $spamModerationLevel; |
| 181 |
public $whoCanContactOwner; |
| 182 |
public $whoCanInvite; |
| 183 |
public $whoCanJoin; |
| 184 |
public $whoCanLeaveGroup; |
| 185 |
public $whoCanPostMessage; |
| 186 |
public $whoCanViewGroup; |
| 187 |
public $whoCanViewMembership; |
| 188 |
|
| 189 |
|
| 190 |
public function setAllowExternalMembers($allowExternalMembers) |
| 191 |
{ |
| 192 |
$this->allowExternalMembers = $allowExternalMembers; |
| 193 |
} |
| 194 |
public function getAllowExternalMembers() |
| 195 |
{ |
| 196 |
return $this->allowExternalMembers; |
| 197 |
} |
| 198 |
public function setAllowGoogleCommunication($allowGoogleCommunication) |
| 199 |
{ |
| 200 |
$this->allowGoogleCommunication = $allowGoogleCommunication; |
| 201 |
} |
| 202 |
public function getAllowGoogleCommunication() |
| 203 |
{ |
| 204 |
return $this->allowGoogleCommunication; |
| 205 |
} |
| 206 |
public function setAllowWebPosting($allowWebPosting) |
| 207 |
{ |
| 208 |
$this->allowWebPosting = $allowWebPosting; |
| 209 |
} |
| 210 |
public function getAllowWebPosting() |
| 211 |
{ |
| 212 |
return $this->allowWebPosting; |
| 213 |
} |
| 214 |
public function setArchiveOnly($archiveOnly) |
| 215 |
{ |
| 216 |
$this->archiveOnly = $archiveOnly; |
| 217 |
} |
| 218 |
public function getArchiveOnly() |
| 219 |
{ |
| 220 |
return $this->archiveOnly; |
| 221 |
} |
| 222 |
public function setCustomReplyTo($customReplyTo) |
| 223 |
{ |
| 224 |
$this->customReplyTo = $customReplyTo; |
| 225 |
} |
| 226 |
public function getCustomReplyTo() |
| 227 |
{ |
| 228 |
return $this->customReplyTo; |
| 229 |
} |
| 230 |
public function setDefaultMessageDenyNotificationText($defaultMessageDenyNotificationText) |
| 231 |
{ |
| 232 |
$this->defaultMessageDenyNotificationText = $defaultMessageDenyNotificationText; |
| 233 |
} |
| 234 |
public function getDefaultMessageDenyNotificationText() |
| 235 |
{ |
| 236 |
return $this->defaultMessageDenyNotificationText; |
| 237 |
} |
| 238 |
public function setDescription($description) |
| 239 |
{ |
| 240 |
$this->description = $description; |
| 241 |
} |
| 242 |
public function getDescription() |
| 243 |
{ |
| 244 |
return $this->description; |
| 245 |
} |
| 246 |
public function setEmail($email) |
| 247 |
{ |
| 248 |
$this->email = $email; |
| 249 |
} |
| 250 |
public function getEmail() |
| 251 |
{ |
| 252 |
return $this->email; |
| 253 |
} |
| 254 |
public function setIncludeInGlobalAddressList($includeInGlobalAddressList) |
| 255 |
{ |
| 256 |
$this->includeInGlobalAddressList = $includeInGlobalAddressList; |
| 257 |
} |
| 258 |
public function getIncludeInGlobalAddressList() |
| 259 |
{ |
| 260 |
return $this->includeInGlobalAddressList; |
| 261 |
} |
| 262 |
public function setIsArchived($isArchived) |
| 263 |
{ |
| 264 |
$this->isArchived = $isArchived; |
| 265 |
} |
| 266 |
public function getIsArchived() |
| 267 |
{ |
| 268 |
return $this->isArchived; |
| 269 |
} |
| 270 |
public function setKind($kind) |
| 271 |
{ |
| 272 |
$this->kind = $kind; |
| 273 |
} |
| 274 |
public function getKind() |
| 275 |
{ |
| 276 |
return $this->kind; |
| 277 |
} |
| 278 |
public function setMaxMessageBytes($maxMessageBytes) |
| 279 |
{ |
| 280 |
$this->maxMessageBytes = $maxMessageBytes; |
| 281 |
} |
| 282 |
public function getMaxMessageBytes() |
| 283 |
{ |
| 284 |
return $this->maxMessageBytes; |
| 285 |
} |
| 286 |
public function setMembersCanPostAsTheGroup($membersCanPostAsTheGroup) |
| 287 |
{ |
| 288 |
$this->membersCanPostAsTheGroup = $membersCanPostAsTheGroup; |
| 289 |
} |
| 290 |
public function getMembersCanPostAsTheGroup() |
| 291 |
{ |
| 292 |
return $this->membersCanPostAsTheGroup; |
| 293 |
} |
| 294 |
public function setMessageDisplayFont($messageDisplayFont) |
| 295 |
{ |
| 296 |
$this->messageDisplayFont = $messageDisplayFont; |
| 297 |
} |
| 298 |
public function getMessageDisplayFont() |
| 299 |
{ |
| 300 |
return $this->messageDisplayFont; |
| 301 |
} |
| 302 |
public function setMessageModerationLevel($messageModerationLevel) |
| 303 |
{ |
| 304 |
$this->messageModerationLevel = $messageModerationLevel; |
| 305 |
} |
| 306 |
public function getMessageModerationLevel() |
| 307 |
{ |
| 308 |
return $this->messageModerationLevel; |
| 309 |
} |
| 310 |
public function setName($name) |
| 311 |
{ |
| 312 |
$this->name = $name; |
| 313 |
} |
| 314 |
public function getName() |
| 315 |
{ |
| 316 |
return $this->name; |
| 317 |
} |
| 318 |
public function setPrimaryLanguage($primaryLanguage) |
| 319 |
{ |
| 320 |
$this->primaryLanguage = $primaryLanguage; |
| 321 |
} |
| 322 |
public function getPrimaryLanguage() |
| 323 |
{ |
| 324 |
return $this->primaryLanguage; |
| 325 |
} |
| 326 |
public function setReplyTo($replyTo) |
| 327 |
{ |
| 328 |
$this->replyTo = $replyTo; |
| 329 |
} |
| 330 |
public function getReplyTo() |
| 331 |
{ |
| 332 |
return $this->replyTo; |
| 333 |
} |
| 334 |
public function setSendMessageDenyNotification($sendMessageDenyNotification) |
| 335 |
{ |
| 336 |
$this->sendMessageDenyNotification = $sendMessageDenyNotification; |
| 337 |
} |
| 338 |
public function getSendMessageDenyNotification() |
| 339 |
{ |
| 340 |
return $this->sendMessageDenyNotification; |
| 341 |
} |
| 342 |
public function setShowInGroupDirectory($showInGroupDirectory) |
| 343 |
{ |
| 344 |
$this->showInGroupDirectory = $showInGroupDirectory; |
| 345 |
} |
| 346 |
public function getShowInGroupDirectory() |
| 347 |
{ |
| 348 |
return $this->showInGroupDirectory; |
| 349 |
} |
| 350 |
public function setSpamModerationLevel($spamModerationLevel) |
| 351 |
{ |
| 352 |
$this->spamModerationLevel = $spamModerationLevel; |
| 353 |
} |
| 354 |
public function getSpamModerationLevel() |
| 355 |
{ |
| 356 |
return $this->spamModerationLevel; |
| 357 |
} |
| 358 |
public function setWhoCanContactOwner($whoCanContactOwner) |
| 359 |
{ |
| 360 |
$this->whoCanContactOwner = $whoCanContactOwner; |
| 361 |
} |
| 362 |
public function getWhoCanContactOwner() |
| 363 |
{ |
| 364 |
return $this->whoCanContactOwner; |
| 365 |
} |
| 366 |
public function setWhoCanInvite($whoCanInvite) |
| 367 |
{ |
| 368 |
$this->whoCanInvite = $whoCanInvite; |
| 369 |
} |
| 370 |
public function getWhoCanInvite() |
| 371 |
{ |
| 372 |
return $this->whoCanInvite; |
| 373 |
} |
| 374 |
public function setWhoCanJoin($whoCanJoin) |
| 375 |
{ |
| 376 |
$this->whoCanJoin = $whoCanJoin; |
| 377 |
} |
| 378 |
public function getWhoCanJoin() |
| 379 |
{ |
| 380 |
return $this->whoCanJoin; |
| 381 |
} |
| 382 |
public function setWhoCanLeaveGroup($whoCanLeaveGroup) |
| 383 |
{ |
| 384 |
$this->whoCanLeaveGroup = $whoCanLeaveGroup; |
| 385 |
} |
| 386 |
public function getWhoCanLeaveGroup() |
| 387 |
{ |
| 388 |
return $this->whoCanLeaveGroup; |
| 389 |
} |
| 390 |
public function setWhoCanPostMessage($whoCanPostMessage) |
| 391 |
{ |
| 392 |
$this->whoCanPostMessage = $whoCanPostMessage; |
| 393 |
} |
| 394 |
public function getWhoCanPostMessage() |
| 395 |
{ |
| 396 |
return $this->whoCanPostMessage; |
| 397 |
} |
| 398 |
public function setWhoCanViewGroup($whoCanViewGroup) |
| 399 |
{ |
| 400 |
$this->whoCanViewGroup = $whoCanViewGroup; |
| 401 |
} |
| 402 |
public function getWhoCanViewGroup() |
| 403 |
{ |
| 404 |
return $this->whoCanViewGroup; |
| 405 |
} |
| 406 |
public function setWhoCanViewMembership($whoCanViewMembership) |
| 407 |
{ |
| 408 |
$this->whoCanViewMembership = $whoCanViewMembership; |
| 409 |
} |
| 410 |
public function getWhoCanViewMembership() |
| 411 |
{ |
| 412 |
return $this->whoCanViewMembership; |
| 413 |
} |
| 414 |
} |
| 415 |
|