* Copyright 2010 Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* Service definition for Drive (v2).
* The API to interact with Drive.</p>
* For more information about this service, see the API
* <a href="https://developers.google.com/drive/" target="_blank">Documentation</a>
class UDP_Google_Service_Drive extends UDP_Google_Service
/** View and manage the files in your Google Drive. */
"https://www.googleapis.com/auth/drive";
/** View and manage its own configuration data in your Google Drive. */
"https://www.googleapis.com/auth/drive.appdata";
/** View your Google Drive apps. */
const DRIVE_APPS_READONLY =
"https://www.googleapis.com/auth/drive.apps.readonly";
/** View and manage Google Drive files that you have opened or created with this app. */
"https://www.googleapis.com/auth/drive.file";
/** View and manage metadata of files in your Google Drive. */
"https://www.googleapis.com/auth/drive.metadata";
/** View metadata for files in your Google Drive. */
const DRIVE_METADATA_READONLY =
"https://www.googleapis.com/auth/drive.metadata.readonly";
/** View the files in your Google Drive. */
"https://www.googleapis.com/auth/drive.readonly";
/** Modify your Google Apps Script scripts' behavior. */
"https://www.googleapis.com/auth/drive.scripts";
* Constructs the internal representation of the Drive service.
* @param UDP_Google_Client $client
public function __construct(UDP_Google_Client $client)
parent::__construct($client);
$this->servicePath = 'drive/v2/';
$this->serviceName = 'drive';
$this->about = new Google_Service_Drive_About_Resource(
'includeSubscribed' => array(
'maxChangeIdCount' => array(
'startChangeId' => array(
$this->apps = new Google_Service_Drive_Apps_Resource(
'path' => 'apps/{appId}',
'appFilterExtensions' => array(
'appFilterMimeTypes' => array(
$this->changes = new Google_Service_Drive_Changes_Resource(
'path' => 'changes/{changeId}',
'includeSubscribed' => array(
'startChangeId' => array(
'includeDeleted' => array(
'path' => 'changes/watch',
'includeSubscribed' => array(
'startChangeId' => array(
'includeDeleted' => array(
$this->channels = new Google_Service_Drive_Channels_Resource(
'path' => 'channels/stop',
$this->children = new Google_Service_Drive_Children_Resource(
'path' => 'files/{folderId}/children/{childId}',
'httpMethod' => 'DELETE',
'path' => 'files/{folderId}/children/{childId}',
'path' => 'files/{folderId}/children',
'path' => 'files/{folderId}/children',
$this->comments = new Google_Service_Drive_Comments_Resource(
'path' => 'files/{fileId}/comments/{commentId}',
'httpMethod' => 'DELETE',
'path' => 'files/{fileId}/comments/{commentId}',
'includeDeleted' => array(
'path' => 'files/{fileId}/comments',
'path' => 'files/{fileId}/comments',
'includeDeleted' => array(
'path' => 'files/{fileId}/comments/{commentId}',
'path' => 'files/{fileId}/comments/{commentId}',
$this->files = new Google_Service_Drive_Files_Resource(
'path' => 'files/{fileId}/copy',
'timedTextTrackName' => array(
'timedTextLanguage' => array(
'path' => 'files/{fileId}',
'httpMethod' => 'DELETE',
'httpMethod' => 'DELETE',
'path' => 'files/{fileId}',
'acknowledgeAbuse' => array(
'updateViewedDate' => array(