See Release Notes
Long Term Support Release
Differences Between: [Versions 39 and 402] [Versions 39 and 403]
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 GroupsMigration (v1). 20 * 21 * <p> 22 * Groups Migration Api.</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://developers.google.com/google-apps/groups-migration/" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31 class Google_Service_GroupsMigration extends Google_Service 32 { 33 /** Manage messages in groups on your domain. */ 34 const APPS_GROUPS_MIGRATION = 35 "https://www.googleapis.com/auth/apps.groups.migration"; 36 37 public $archive; 38 39 40 /** 41 * Constructs the internal representation of the GroupsMigration service. 42 * 43 * @param Google_Client $client 44 */ 45 public function __construct(Google_Client $client) 46 { 47 parent::__construct($client); 48 $this->rootUrl = 'https://www.googleapis.com/'; 49 $this->servicePath = 'groups/v1/groups/'; 50 $this->version = 'v1'; 51 $this->serviceName = 'groupsmigration'; 52 53 $this->archive = new Google_Service_GroupsMigration_Archive_Resource( 54 $this, 55 $this->serviceName, 56 'archive', 57 array( 58 'methods' => array( 59 'insert' => array( 60 'path' => '{groupId}/archive', 61 'httpMethod' => 'POST', 62 'parameters' => array( 63 'groupId' => array( 64 'location' => 'path', 65 'type' => 'string', 66 'required' => true, 67 ), 68 ), 69 ), 70 ) 71 ) 72 ); 73 } 74 } 75 76 77 /** 78 * The "archive" collection of methods. 79 * Typical usage is: 80 * <code> 81 * $groupsmigrationService = new Google_Service_GroupsMigration(...); 82 * $archive = $groupsmigrationService->archive; 83 * </code> 84 */ 85 class Google_Service_GroupsMigration_Archive_Resource extends Google_Service_Resource 86 { 87 88 /** 89 * Inserts a new mail into the archive of the Google group. (archive.insert) 90 * 91 * @param string $groupId The group ID 92 * @param array $optParams Optional parameters. 93 * @return Google_Service_GroupsMigration_Groups 94 */ 95 public function insert($groupId, $optParams = array()) 96 { 97 $params = array('groupId' => $groupId); 98 $params = array_merge($params, $optParams); 99 return $this->call('insert', array($params), "Google_Service_GroupsMigration_Groups"); 100 } 101 } 102 103 104 105 106 class Google_Service_GroupsMigration_Groups extends Google_Model 107 { 108 protected $internal_gapi_mappings = array( 109 ); 110 public $kind; 111 public $responseCode; 112 113 114 public function setKind($kind) 115 { 116 $this->kind = $kind; 117 } 118 public function getKind() 119 { 120 return $this->kind; 121 } 122 public function setResponseCode($responseCode) 123 { 124 $this->responseCode = $responseCode; 125 } 126 public function getResponseCode() 127 { 128 return $this->responseCode; 129 } 130 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body