| 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. |
| 23 |
* </p> |
| 24 |
* |
| 25 |
* <p> |
| 26 |
* For more information about this service, see the API |
| 27 |
* <a href="https://developers.google.com/google-apps/groups-settings/get_started" target="_blank">Documentation</a> |
| 28 |
* </p> |
| 29 |
* |
| 30 |
* @author Google, Inc. |
| 31 |
*/ |
| 32 |
class Analytify_Google_Service_Groupssettings extends Analytify_Google_Service |
| 33 |
{ |
| 34 |
/** View and manage the settings of a Google Apps Group. */ |
| 35 |
const APPS_GROUPS_SETTINGS = "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 Analytify_Google_Client $client |
| 44 |
*/ |
| 45 |
public function __construct(Analytify_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 Analytify_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 Analytify_Google_Service_Groupssettings(...); |
| 101 |
* $groups = $groupssettingsService->groups; |
| 102 |
* </code> |
| 103 |
*/ |
| 104 |
class Analytify_Google_Service_Groupssettings_Groups_Resource extends Analytify_Google_Service_Resource |
| 105 |
{ |
| 106 |
|
| 107 |
/** |
| 108 |
* Gets one resource by id. (groups.get) |
| 109 |
* |
| 110 |
* @param string $groupUniqueId |
| 111 |
* The resource ID |
| 112 |
* @param array $optParams Optional parameters. |
| 113 |
* @return Analytify_Google_Service_Groupssettings_Groups |
| 114 |
*/ |
| 115 |
public function get($groupUniqueId, $optParams = array()) |
| 116 |
{ |
| 117 |
$params = array('groupUniqueId' => $groupUniqueId); |
| 118 |
$params = array_merge($params, $optParams); |
| 119 |
return $this->call('get', array($params), "Analytify_Google_Service_Groupssettings_Groups"); |
| 120 |
} |
| 121 |
/** |
| 122 |
* Updates an existing resource. This method supports patch semantics. |
| 123 |
* (groups.patch) |
| 124 |
* |
| 125 |
* @param string $groupUniqueId |
| 126 |
* The resource ID |
| 127 |
* @param Analytify_Google_Groups $postBody |
| 128 |
* @param array $optParams Optional parameters. |
| 129 |
* @return Analytify_Google_Service_Groupssettings_Groups |
| 130 |
*/ |
| 131 |
public function patch($groupUniqueId, Analytify_Google_Service_Groupssettings_Groups $postBody, $optParams = array()) |
| 132 |
{ |
| 133 |
$params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody); |
| 134 |
$params = array_merge($params, $optParams); |
| 135 |
return $this->call('patch', array($params), "Analytify_Google_Service_Groupssettings_Groups"); |
| 136 |
} |
| 137 |
/** |
| 138 |
* Updates an existing resource. (groups.update) |
| 139 |
* |
| 140 |
* @param string $groupUniqueId |
| 141 |
* The resource ID |
| 142 |
* @param Analytify_Google_Groups $postBody |
| 143 |
* @param array $optParams Optional parameters. |
| 144 |
* @return Analytify_Google_Service_Groupssettings_Groups |
| 145 |
*/ |
| 146 |
public function update($groupUniqueId, Analytify_Google_Service_Groupssettings_Groups $postBody, $optParams = array()) |
| 147 |
{ |
| 148 |
$params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody); |
| 149 |
$params = array_merge($params, $optParams); |
| 150 |
return $this->call('update', array($params), "Analytify_Google_Service_Groupssettings_Groups"); |
| 151 |
} |
| 152 |
} |
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
class Analytify_Google_Service_Groupssettings_Groups extends Analytify_Google_Model |
| 158 |
{ |
| 159 |
public $allowExternalMembers; |
| 160 |
public $allowGoogleCommunication; |
| 161 |
public $allowWebPosting; |
| 162 |
public $archiveOnly; |
| 163 |
public $customReplyTo; |
| 164 |
public $defaultMessageDenyNotificationText; |
| 165 |
public $description; |
| 166 |
public $email; |
| 167 |
public $includeInGlobalAddressList; |
| 168 |
public $isArchived; |
| 169 |
public $kind; |
| 170 |
public $maxMessageBytes; |
| 171 |
public $membersCanPostAsTheGroup; |
| 172 |
public $messageDisplayFont; |
| 173 |
public $messageModerationLevel; |
| 174 |
public $name; |
| 175 |
public $primaryLanguage; |
| 176 |
public $replyTo; |
| 177 |
public $sendMessageDenyNotification; |
| 178 |
public $showInGroupDirectory; |
| 179 |
public $spamModerationLevel; |
| 180 |
public $whoCanContactOwner; |
| 181 |
public $whoCanInvite; |
| 182 |
public $whoCanJoin; |
| 183 |
public $whoCanLeaveGroup; |
| 184 |
public $whoCanPostMessage; |
| 185 |
public $whoCanViewGroup; |
| 186 |
public $whoCanViewMembership; |
| 187 |
|
| 188 |
public function setAllowExternalMembers($allowExternalMembers) |
| 189 |
{ |
| 190 |
$this->allowExternalMembers = $allowExternalMembers; |
| 191 |
} |
| 192 |
|
| 193 |
public function getAllowExternalMembers() |
| 194 |
{ |
| 195 |
return $this->allowExternalMembers; |
| 196 |
} |
| 197 |
|
| 198 |
public function setAllowGoogleCommunication($allowGoogleCommunication) |
| 199 |
{ |
| 200 |
$this->allowGoogleCommunication = $allowGoogleCommunication; |
| 201 |
} |
| 202 |
|
| 203 |
public function getAllowGoogleCommunication() |
| 204 |
{ |
| 205 |
return $this->allowGoogleCommunication; |
| 206 |
} |
| 207 |
|
| 208 |
public function setAllowWebPosting($allowWebPosting) |
| 209 |
{ |
| 210 |
$this->allowWebPosting = $allowWebPosting; |
| 211 |
} |
| 212 |
|
| 213 |
public function getAllowWebPosting() |
| 214 |
{ |
| 215 |
return $this->allowWebPosting; |
| 216 |
} |
| 217 |
|
| 218 |
public function setArchiveOnly($archiveOnly) |
| 219 |
{ |
| 220 |
$this->archiveOnly = $archiveOnly; |
| 221 |
} |
| 222 |
|
| 223 |
public function getArchiveOnly() |
| 224 |
{ |
| 225 |
return $this->archiveOnly; |
| 226 |
} |
| 227 |
|
| 228 |
public function setCustomReplyTo($customReplyTo) |
| 229 |
{ |
| 230 |
$this->customReplyTo = $customReplyTo; |
| 231 |
} |
| 232 |
|
| 233 |
public function getCustomReplyTo() |
| 234 |
{ |
| 235 |
return $this->customReplyTo; |
| 236 |
} |
| 237 |
|
| 238 |
public function setDefaultMessageDenyNotificationText($defaultMessageDenyNotificationText) |
| 239 |
{ |
| 240 |
$this->defaultMessageDenyNotificationText = $defaultMessageDenyNotificationText; |
| 241 |
} |
| 242 |
|
| 243 |
public function getDefaultMessageDenyNotificationText() |
| 244 |
{ |
| 245 |
return $this->defaultMessageDenyNotificationText; |
| 246 |
} |
| 247 |
|
| 248 |
public function setDescription($description) |
| 249 |
{ |
| 250 |
$this->description = $description; |
| 251 |
} |
| 252 |
|
| 253 |
public function getDescription() |
| 254 |
{ |
| 255 |
return $this->description; |
| 256 |
} |
| 257 |
|
| 258 |
public function setEmail($email) |
| 259 |
{ |
| 260 |
$this->email = $email; |
| 261 |
} |
| 262 |
|
| 263 |
public function getEmail() |
| 264 |
{ |
| 265 |
return $this->email; |
| 266 |
} |
| 267 |
|
| 268 |
public function setIncludeInGlobalAddressList($includeInGlobalAddressList) |
| 269 |
{ |
| 270 |
$this->includeInGlobalAddressList = $includeInGlobalAddressList; |
| 271 |
} |
| 272 |
|
| 273 |
public function getIncludeInGlobalAddressList() |
| 274 |
{ |
| 275 |
return $this->includeInGlobalAddressList; |
| 276 |
} |
| 277 |
|
| 278 |
public function setIsArchived($isArchived) |
| 279 |
{ |
| 280 |
$this->isArchived = $isArchived; |
| 281 |
} |
| 282 |
|
| 283 |
public function getIsArchived() |
| 284 |
{ |
| 285 |
return $this->isArchived; |
| 286 |
} |
| 287 |
|
| 288 |
public function setKind($kind) |
| 289 |
{ |
| 290 |
$this->kind = $kind; |
| 291 |
} |
| 292 |
|
| 293 |
public function getKind() |
| 294 |
{ |
| 295 |
return $this->kind; |
| 296 |
} |
| 297 |
|
| 298 |
public function setMaxMessageBytes($maxMessageBytes) |
| 299 |
{ |
| 300 |
$this->maxMessageBytes = $maxMessageBytes; |
| 301 |
} |
| 302 |
|
| 303 |
public function getMaxMessageBytes() |
| 304 |
{ |
| 305 |
return $this->maxMessageBytes; |
| 306 |
} |
| 307 |
|
| 308 |
public function setMembersCanPostAsTheGroup($membersCanPostAsTheGroup) |
| 309 |
{ |
| 310 |
$this->membersCanPostAsTheGroup = $membersCanPostAsTheGroup; |
| 311 |
} |
| 312 |
|
| 313 |
public function getMembersCanPostAsTheGroup() |
| 314 |
{ |
| 315 |
return $this->membersCanPostAsTheGroup; |
| 316 |
} |
| 317 |
|
| 318 |
public function setMessageDisplayFont($messageDisplayFont) |
| 319 |
{ |
| 320 |
$this->messageDisplayFont = $messageDisplayFont; |
| 321 |
} |
| 322 |
|
| 323 |
public function getMessageDisplayFont() |
| 324 |
{ |
| 325 |
return $this->messageDisplayFont; |
| 326 |
} |
| 327 |
|
| 328 |
public function setMessageModerationLevel($messageModerationLevel) |
| 329 |
{ |
| 330 |
$this->messageModerationLevel = $messageModerationLevel; |
| 331 |
} |
| 332 |
|
| 333 |
public function getMessageModerationLevel() |
| 334 |
{ |
| 335 |
return $this->messageModerationLevel; |
| 336 |
} |
| 337 |
|
| 338 |
public function setName($name) |
| 339 |
{ |
| 340 |
$this->name = $name; |
| 341 |
} |
| 342 |
|
| 343 |
public function getName() |
| 344 |
{ |
| 345 |
return $this->name; |
| 346 |
} |
| 347 |
|
| 348 |
public function setPrimaryLanguage($primaryLanguage) |
| 349 |
{ |
| 350 |
$this->primaryLanguage = $primaryLanguage; |
| 351 |
} |
| 352 |
|
| 353 |
public function getPrimaryLanguage() |
| 354 |
{ |
| 355 |
return $this->primaryLanguage; |
| 356 |
} |
| 357 |
|
| 358 |
public function setReplyTo($replyTo) |
| 359 |
{ |
| 360 |
$this->replyTo = $replyTo; |
| 361 |
} |
| 362 |
|
| 363 |
public function getReplyTo() |
| 364 |
{ |
| 365 |
return $this->replyTo; |
| 366 |
} |
| 367 |
|
| 368 |
public function setSendMessageDenyNotification($sendMessageDenyNotification) |
| 369 |
{ |
| 370 |
$this->sendMessageDenyNotification = $sendMessageDenyNotification; |
| 371 |
} |
| 372 |
|
| 373 |
public function getSendMessageDenyNotification() |
| 374 |
{ |
| 375 |
return $this->sendMessageDenyNotification; |
| 376 |
} |
| 377 |
|
| 378 |
public function setShowInGroupDirectory($showInGroupDirectory) |
| 379 |
{ |
| 380 |
$this->showInGroupDirectory = $showInGroupDirectory; |
| 381 |
} |
| 382 |
|
| 383 |
public function getShowInGroupDirectory() |
| 384 |
{ |
| 385 |
return $this->showInGroupDirectory; |
| 386 |
} |
| 387 |
|
| 388 |
public function setSpamModerationLevel($spamModerationLevel) |
| 389 |
{ |
| 390 |
$this->spamModerationLevel = $spamModerationLevel; |
| 391 |
} |
| 392 |
|
| 393 |
public function getSpamModerationLevel() |
| 394 |
{ |
| 395 |
return $this->spamModerationLevel; |
| 396 |
} |
| 397 |
|
| 398 |
public function setWhoCanContactOwner($whoCanContactOwner) |
| 399 |
{ |
| 400 |
$this->whoCanContactOwner = $whoCanContactOwner; |
| 401 |
} |
| 402 |
|
| 403 |
public function getWhoCanContactOwner() |
| 404 |
{ |
| 405 |
return $this->whoCanContactOwner; |
| 406 |
} |
| 407 |
|
| 408 |
public function setWhoCanInvite($whoCanInvite) |
| 409 |
{ |
| 410 |
$this->whoCanInvite = $whoCanInvite; |
| 411 |
} |
| 412 |
|
| 413 |
public function getWhoCanInvite() |
| 414 |
{ |
| 415 |
return $this->whoCanInvite; |
| 416 |
} |
| 417 |
|
| 418 |
public function setWhoCanJoin($whoCanJoin) |
| 419 |
{ |
| 420 |
$this->whoCanJoin = $whoCanJoin; |
| 421 |
} |
| 422 |
|
| 423 |
public function getWhoCanJoin() |
| 424 |
{ |
| 425 |
return $this->whoCanJoin; |
| 426 |
} |
| 427 |
|
| 428 |
public function setWhoCanLeaveGroup($whoCanLeaveGroup) |
| 429 |
{ |
| 430 |
$this->whoCanLeaveGroup = $whoCanLeaveGroup; |
| 431 |
} |
| 432 |
|
| 433 |
public function getWhoCanLeaveGroup() |
| 434 |
{ |
| 435 |
return $this->whoCanLeaveGroup; |
| 436 |
} |
| 437 |
|
| 438 |
public function setWhoCanPostMessage($whoCanPostMessage) |
| 439 |
{ |
| 440 |
$this->whoCanPostMessage = $whoCanPostMessage; |
| 441 |
} |
| 442 |
|
| 443 |
public function getWhoCanPostMessage() |
| 444 |
{ |
| 445 |
return $this->whoCanPostMessage; |
| 446 |
} |
| 447 |
|
| 448 |
public function setWhoCanViewGroup($whoCanViewGroup) |
| 449 |
{ |
| 450 |
$this->whoCanViewGroup = $whoCanViewGroup; |
| 451 |
} |
| 452 |
|
| 453 |
public function getWhoCanViewGroup() |
| 454 |
{ |
| 455 |
return $this->whoCanViewGroup; |
| 456 |
} |
| 457 |
|
| 458 |
public function setWhoCanViewMembership($whoCanViewMembership) |
| 459 |
{ |
| 460 |
$this->whoCanViewMembership = $whoCanViewMembership; |
| 461 |
} |
| 462 |
|
| 463 |
public function getWhoCanViewMembership() |
| 464 |
{ |
| 465 |
return $this->whoCanViewMembership; |
| 466 |
} |
| 467 |
} |
| 468 |
|