* Groups Migration Api. *
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class Google_Service_GroupsMigration extends Google_Service { public $archive; /** * Constructs the internal representation of the GroupsMigration service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->servicePath = 'groups/v1/groups/'; $this->version = 'v1'; $this->serviceName = 'groupsmigration'; $this->archive = new Google_Service_GroupsMigration_Archive_Resource( $this, $this->serviceName, 'archive', array( 'methods' => array( 'insert' => array( 'path' => '{groupId}/archive', 'httpMethod' => 'POST', 'parameters' => array( 'groupId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); } } /** * The "archive" collection of methods. * Typical usage is: *
* $groupsmigrationService = new Google_Service_GroupsMigration(...);
* $archive = $groupsmigrationService->archive;
*
*/
class Google_Service_GroupsMigration_Archive_Resource 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 Google_Service_GroupsMigration_Groups
*/
public function insert($groupId, $optParams = array())
{
$params = array('groupId' => $groupId);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_GroupsMigration_Groups");
}
}
class Google_Service_GroupsMigration_Groups extends Google_Model
{
public $kind;
public $responseCode;
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setResponseCode($responseCode)
{
$this->responseCode = $responseCode;
}
public function getResponseCode()
{
return $this->responseCode;
}
}