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 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 */ 31class 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 * Constructs the internal representation of the GroupsMigration 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/groupsmigration/v1'; 50 $this->version = 'v1'; 51 $this->serviceName = 'groupsmigration'; 52 53 $this->archive = new Google_Service_GroupsMigration_Resource_Archive( 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