* $groupsmigrationService = new Google\Service\GroupsMigration(...); * $archive = $groupsmigrationService->archive; * */ class Archive extends \Google\Service\Resource { /** * Inserts a new mail into the archive of the Google group. (archive.insert) * * @param string $groupId The group ID * @param array $optParams Optional parameters. * @return Groups */ public function insert($groupId, $optParams = []) { $params = ['groupId' => $groupId]; $params = array_merge($params, $optParams); return $this->call('insert', [$params], Groups::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Archive::class, 'Google_Service_GroupsMigration_Resource_Archive');