* The Groups Migration API allows domain administrators to archive emails into * Google groups.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class GroupsMigration extends \Google\Service { /** Upload messages to any Google group in your domain. */ const APPS_GROUPS_MIGRATION = "https://www.googleapis.com/auth/apps.groups.migration"; public $archive; /** * Constructs the internal representation of the GroupsMigration service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://groupsmigration.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'groupsmigration'; $this->archive = new GroupsMigration\Resource\Archive( $this, $this->serviceName, 'archive', [ 'methods' => [ 'insert' => [ 'path' => 'groups/v1/groups/{groupId}/archive', 'httpMethod' => 'POST', 'parameters' => [ 'groupId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GroupsMigration::class, 'Google_Service_GroupsMigration');