* Admin SDK lets administrators of enterprise domains to view and manage * resources like user, groups etc. It also provides audit and usage reports of * domain.

* *

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

* * @author Google, Inc. */ class DataTransfer extends \Google\Service { /** View and manage data transfers between users in your organization. */ const ADMIN_DATATRANSFER = "https://www.googleapis.com/auth/admin.datatransfer"; /** View data transfers between users in your organization. */ const ADMIN_DATATRANSFER_READONLY = "https://www.googleapis.com/auth/admin.datatransfer.readonly"; public $applications; public $transfers; /** * Constructs the internal representation of the DataTransfer 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://admin.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'datatransfer_v1'; $this->serviceName = 'admin'; $this->applications = new DataTransfer\Resource\Applications( $this, $this->serviceName, 'applications', [ 'methods' => [ 'get' => [ 'path' => 'admin/datatransfer/v1/applications/{applicationId}', 'httpMethod' => 'GET', 'parameters' => [ 'applicationId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'admin/datatransfer/v1/applications', 'httpMethod' => 'GET', 'parameters' => [ 'customerId' => [ 'location' => 'query', 'type' => 'string', ], 'maxResults' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->transfers = new DataTransfer\Resource\Transfers( $this, $this->serviceName, 'transfers', [ 'methods' => [ 'get' => [ 'path' => 'admin/datatransfer/v1/transfers/{dataTransferId}', 'httpMethod' => 'GET', 'parameters' => [ 'dataTransferId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'insert' => [ 'path' => 'admin/datatransfer/v1/transfers', 'httpMethod' => 'POST', 'parameters' => [], ],'list' => [ 'path' => 'admin/datatransfer/v1/transfers', 'httpMethod' => 'GET', 'parameters' => [ 'customerId' => [ 'location' => 'query', 'type' => 'string', ], 'maxResults' => [ 'location' => 'query', 'type' => 'integer', ], 'newOwnerUserId' => [ 'location' => 'query', 'type' => 'string', ], 'oldOwnerUserId' => [ 'location' => 'query', 'type' => 'string', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], 'status' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(DataTransfer::class, 'Google_Service_DataTransfer');