/lib/google/src/Google/Service/Drive.php
PHP | 5775 lines | 4719 code | 209 blank | 847 comment | 0 complexity | ad6db14b18940915d03c426efb07e51d MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1, BSD-3-Clause, MIT, GPL-3.0
Large files files are truncated, but you can click here to view the full file
- <?php
- /*
- * 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
- * the License at
- *
- * 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
- * the License.
- */
- /**
- * Service definition for Drive (v2).
- *
- * <p>
- * The API to interact with Drive.</p>
- *
- * <p>
- * For more information about this service, see the API
- * <a href="https://developers.google.com/drive/" target="_blank">Documentation</a>
- * </p>
- *
- * @author Google, Inc.
- */
- class Google_Service_Drive extends Google_Service
- {
- /** View and manage the files in your Google Drive. */
- const DRIVE =
- "https://www.googleapis.com/auth/drive";
- /** View and manage its own configuration data in your Google Drive. */
- const DRIVE_APPDATA =
- "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 and folders that you have opened or created with this app. */
- const DRIVE_FILE =
- "https://www.googleapis.com/auth/drive.file";
- /** View and manage metadata of files in your Google Drive. */
- const DRIVE_METADATA =
- "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 photos, videos and albums in your Google Photos. */
- const DRIVE_PHOTOS_READONLY =
- "https://www.googleapis.com/auth/drive.photos.readonly";
- /** View the files in your Google Drive. */
- const DRIVE_READONLY =
- "https://www.googleapis.com/auth/drive.readonly";
- /** Modify your Google Apps Script scripts' behavior. */
- const DRIVE_SCRIPTS =
- "https://www.googleapis.com/auth/drive.scripts";
- public $about;
- public $apps;
- public $changes;
- public $channels;
- public $children;
- public $comments;
- public $files;
- public $parents;
- public $permissions;
- public $properties;
- public $realtime;
- public $replies;
- public $revisions;
-
- /**
- * Constructs the internal representation of the Drive service.
- *
- * @param Google_Client $client
- */
- public function __construct(Google_Client $client)
- {
- parent::__construct($client);
- $this->rootUrl = 'https://www.googleapis.com/';
- $this->servicePath = 'drive/v2/';
- $this->version = 'v2';
- $this->serviceName = 'drive';
- $this->about = new Google_Service_Drive_About_Resource(
- $this,
- $this->serviceName,
- 'about',
- array(
- 'methods' => array(
- 'get' => array(
- 'path' => 'about',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'includeSubscribed' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxChangeIdCount' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'startChangeId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->apps = new Google_Service_Drive_Apps_Resource(
- $this,
- $this->serviceName,
- 'apps',
- array(
- 'methods' => array(
- 'get' => array(
- 'path' => 'apps/{appId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'appId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'apps',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'languageCode' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'appFilterExtensions' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'appFilterMimeTypes' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->changes = new Google_Service_Drive_Changes_Resource(
- $this,
- $this->serviceName,
- 'changes',
- array(
- 'methods' => array(
- 'get' => array(
- 'path' => 'changes/{changeId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'changeId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'changes',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'includeSubscribed' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'includeDeleted' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'spaces' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'startChangeId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'watch' => array(
- 'path' => 'changes/watch',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'includeSubscribed' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'includeDeleted' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'spaces' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'startChangeId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->channels = new Google_Service_Drive_Channels_Resource(
- $this,
- $this->serviceName,
- 'channels',
- array(
- 'methods' => array(
- 'stop' => array(
- 'path' => 'channels/stop',
- 'httpMethod' => 'POST',
- 'parameters' => array(),
- ),
- )
- )
- );
- $this->children = new Google_Service_Drive_Children_Resource(
- $this,
- $this->serviceName,
- 'children',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'files/{folderId}/children/{childId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'folderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'childId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'files/{folderId}/children/{childId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'folderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'childId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'files/{folderId}/children',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'folderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'files/{folderId}/children',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'folderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderBy' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'q' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),
- )
- )
- );
- $this->comments = new Google_Service_Drive_Comments_Resource(
- $this,
- $this->serviceName,
- 'comments',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'files/{fileId}/comments/{commentId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'commentId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'files/{fileId}/comments/{commentId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'commentId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'includeDeleted' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'insert' => array(
- 'path' => 'files/{fileId}/comments',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'files/{fileId}/comments',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'updatedMin' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'includeDeleted' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'patch' => array(
- 'path' => 'files/{fileId}/comments/{commentId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'commentId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'files/{fileId}/comments/{commentId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'commentId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->files = new Google_Service_Drive_Files_Resource(
- $this,
- $this->serviceName,
- 'files',
- array(
- 'methods' => array(
- 'copy' => array(
- 'path' => 'files/{fileId}/copy',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'convert' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'ocrLanguage' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'visibility' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pinned' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'ocr' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'timedTextTrackName' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'timedTextLanguage' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'delete' => array(
- 'path' => 'files/{fileId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'emptyTrash' => array(
- 'path' => 'files/trash',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(),
- ),'generateIds' => array(
- 'path' => 'files/generateIds',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'space' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'get' => array(
- 'path' => 'files/{fileId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'acknowledgeAbuse' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'updateViewedDate' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'revisionId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'insert' => array(
- 'path' => 'files',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'convert' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'useContentAsIndexableText' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'ocrLanguage' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'visibility' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pinned' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'ocr' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'timedTextTrackName' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'timedTextLanguage' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'list' => array(
- 'path' => 'files',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'orderBy' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'q' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'spaces' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'corpus' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'patch' => array(
- 'path' => 'files/{fileId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'addParents' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'modifiedDateBehavior' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'removeParents' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'updateViewedDate' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'setModifiedDate' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'useContentAsIndexableText' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'convert' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'ocrLanguage' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pinned' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'newRevision' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'ocr' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'timedTextLanguage' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'timedTextTrackName' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'touch' => array(
- 'path' => 'files/{fileId}/touch',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'trash' => array(
- 'path' => 'files/{fileId}/trash',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'untrash' => array(
- 'path' => 'files/{fileId}/untrash',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'files/{fileId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'addParents' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'modifiedDateBehavior' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'removeParents' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'updateViewedDate' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'setModifiedDate' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'useContentAsIndexableText' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'convert' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'ocrLanguage' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pinned' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'newRevision' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'ocr' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'timedTextLanguage' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'timedTextTrackName' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'watch' => array(
- 'path' => 'files/{fileId}/watch',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'acknowledgeAbuse' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'updateViewedDate' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'revisionId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->parents = new Google_Service_Drive_Parents_Resource(
- $this,
- $this->serviceName,
- 'parents',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'files/{fileId}/parents/{parentId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'parentId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'files/{fileId}/parents/{parentId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'parentId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'files/{fileId}/parents',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'files/{fileId}/parents',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->permissions = new Google_Service_Drive_Permissions_Resource(
- $this,
- $this->serviceName,
- 'permissions',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'files/{fileId}/permissions/{permissionId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'permissionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'files/{fileId}/permissions/{permissionId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'permissionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'getIdForEmail' => array(
- 'path' => 'permissionIds/{email}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'email' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'files/{fileId}/permissions',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'emailMessage' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'sendNotificationEmails' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'list' => array(
- 'path' => 'files/{fileId}/permissions',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'patch' => array(
- 'path' => 'files/{fileId}/permissions/{permissionId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'permissionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'transferOwnership' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'update' => array(
- 'path' => 'files/{fileId}/permissions/{permissionId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'permissionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'transferOwnership' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),
- )
- )
- );
- $this->properties = new Google_Service_Drive_Properties_Resource(
- $this,
- $this->serviceName,
- 'properties',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'files/{fileId}/properties/{propertyKey}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'propertyKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'visibility' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'get' => array(
- 'path' => 'files/{fileId}/properties/{propertyKey}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'propertyKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'visibility' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'insert' => array(
- 'path' => 'files/{fileId}/properties',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'files/{fileId}/properties',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'patch' => array(
- 'path' => 'files/{fileId}/properties/{propertyKey}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'propertyKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'visibility' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'update' => array(
- 'path' => 'files/{fileId}/properties/{propertyKey}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'propertyKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'visibility' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->realtime = new Google_Service_Drive_Realtime_Resource(
- $this,
- $this->serviceName,
- 'realtime',
- array(
- 'methods' => array(
- 'get' => array(
- 'path' => 'files/{fileId}/realtime',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'revision' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'update' => array(
- 'path' => 'files/{fileId}/realtime',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'baseRevision' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->replies = new Google_Service_Drive_Replies_Resource(
- $this,
- $this->serviceName,
- 'replies',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'commentId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'replyId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'commentId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'replyId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'includeDeleted' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'insert' => array(
- 'path' => 'files/{fileId}/comments/{commentId}/replies',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'commentId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'files/{fileId}/comments/{commentId}/replies',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'commentId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'includeDeleted' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'patch' => array(
- 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'commentId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'replyId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'commentId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'replyId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->revisions = new Google_Service_Drive_Revisions_Resource(
- $this,
- $this->serviceName,
- 'revisions',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'files/{fileId}/revisions/{revisionId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'revisionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'files/{fileId}/revisions/{revisionId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'revisionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'files/{fileId}/revisions',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'patch' => array(
- 'path' => 'files/{fileId}/revisions/{revisionId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'revisionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'files/{fileId}/revisions/{revisionId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'fileId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'revisionId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- }
- }
- /**
- * The "about" collection of methods.
- * Typical usage is:
- * <code>
- * $driveService = new Google_Service_Drive(...);
- * $about = $driveService->about;
- * </code>
- */
- class Google_Service_Drive_About_Resource extends Google_Service_Resource
- {
- /**
- * Gets the information about the current user along with Drive API settings
- * (about.get)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool includeSubscribed When calculating the number of remaining
- * change IDs, whether to include public files the user has opened and shared
- * files. When set to false, this counts only change IDs for owned files and any
- * shared or public files that the user has explicitly added to a folder they
- * own.
- * @opt_param string maxChangeIdCount Maximum number of remaining change IDs to
- * count
- * @opt_param string startChangeId Change ID to start counting from when
- * calculating number of remaining change IDs
- * @return Google_Service_Drive_About
- */
- public function get($optParams = array())
- {
- $params = array();
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Drive_About");
- }
- }
- /**
- * The "apps" collection of methods.
- * Typical usage is:
- * <code>
- * $driveService = new Google_Service_Drive(...);
- * $apps = $driveService->apps;
- * </code>
- */
- class Google_Service_Drive_Apps_Resource extends Google_Service_Resource
- {
- /**
- * Gets a specific app. (apps.get)
- *
- * @param string $appId The ID of the app.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Drive_App
- */
- public function get($appId, $optParams = array())
- {
- $params = array('appId' => $appId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Drive_App");
- }
- /**
- * Lists a user's installed apps. (apps.listApps)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param string languageCode A language or locale code, as defined by BCP
- * 47, with some extensions from Unicode's LDML format
- * (http://www.unicode.org/reports/tr35/).
- * @opt_param string appFilterExtensions A comma-separated list of file
- * extensions for open with filtering. All apps within the given app query scope
- * which can open any of the given file extensions will be included in the
- * response. If appFilterMimeTypes are provided as well, the result is a union
- * of the two resulting app lists.
- * @opt_param string appFilterMimeTypes A comma-separated list of MIME types for
- * open with filtering. All apps within the given app query scope which can open
- * any of the given MIME types will be included in the response. If
- * appFilterExtensions are provided as well, the result is a union of the two
- * resulting app lists.
- * @return Google_Service_Drive_AppList
- */
- public function listApps($optParams = array())
- {
- $params = array();
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Drive_AppList");
- }
- }
- /**
- * The "changes" collection of methods.
- * Typical usage is:
- * <code>
- * $driveService = new Google_Service_Drive(...);
- * $changes = $driveService->changes;
- * </code>
- */
- class Google_Service_Drive_Changes_Resource extends Google_Service_Resource
- {
- /**
- * Gets a specific change. (changes.get)
- *
- * @param string $changeId The ID of the change.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Drive_Change
- */
- public function get($changeId, $optParams = array())
- {
- $params = array('changeId' => $changeId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Drive_Change");
- }
- /**
- * Lists the changes for a user. (changes.listChanges)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool includeSubscribed Whether to include public files the user
- * has opened and shared files. When set to false, the list only includes owned
- * files plus any shared or public files the user has explicitly added to a
- * folder they own.
- * @opt_param bool includeDeleted Whether to include deleted items.
- * @opt_param int maxResults Maximum number of changes to return.
- * @opt_param string pageToken Page token for changes.
- * @opt_param string spaces A comma-separated list of spaces to query. Supported
- * values are 'drive', 'appDataFolder' and 'photos'.
- * @opt_param string startChangeId Change ID to start listing changes from.
- * @return Google_Service_Drive_ChangeList
- */
- public function listChanges($optParams = array())
- {
- $params = array();
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Drive_ChangeList");
- }
- /**
- * Subscribe to changes for a user. (changes.watch)
- *
- * @param Google_Channel $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool includeSubscribed Whether to include public files the user
- * has opened and shared files. When set to false, the list only includes owned
- * files plus any shared or public files the user has explicitly added to a
- * folder they own.
- * @opt_param bool includeDeleted Whether to include deleted items.
- * @opt_param int maxResults Maximum number of changes to return.
- * @opt_param string pageToken Page token for changes.
- * @opt_param string spaces A comma-separated list of spaces to query. Supported
- * values are 'drive', 'appDataFolder' and 'photos'.
- * @opt_param string startChangeId Change ID to start listing changes from.
- * @return Google_Service_Drive_Channel
- */
- public function watch(Google_Service_Drive_Channel $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optPara…
Large files files are truncated, but you can click here to view the full file