GoogleGAL_Service_Admin

Service definition for Admin (email_migration_v2).

Defined (1)

The class is defined in the following location(s).

/core/Google/Service/Admin.php  
  1. class GoogleGAL_Service_Admin extends GoogleGAL_Service 
  2. /** Manage email messages of users on your domain. */ 
  3. const EMAIL_MIGRATION = 
  4. "https://www.googleapis.com/auth/email.migration"; 
  5.  
  6. public $mail; 
  7.  
  8.  
  9. /** 
  10. * Constructs the internal representation of the Admin service. 
  11. * @param GoogleGAL_Client $client 
  12. */ 
  13. public function __construct(GoogleGAL_Client $client) 
  14. parent::__construct($client); 
  15. $this->servicePath = 'email/v2/users/'; 
  16. $this->version = 'email_migration_v2'; 
  17. $this->serviceName = 'admin'; 
  18.  
  19. $this->mail = new GoogleGAL_Service_Admin_Mail_Resource( 
  20. $this,  
  21. $this->serviceName,  
  22. 'mail',  
  23. array( 
  24. 'methods' => array( 
  25. 'insert' => array( 
  26. 'path' => '{userKey}/mail',  
  27. 'httpMethod' => 'POST',  
  28. 'parameters' => array( 
  29. 'userKey' => array( 
  30. 'location' => 'path',  
  31. 'type' => 'string',  
  32. 'required' => true,  
  33. ),  
  34. ),  
  35. ),  
  36. );