first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,203 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
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.

View File

@@ -0,0 +1,23 @@
Google PHP API Client Services
==============================
## Requirements
[Google API PHP Client](https://github.com/googleapis/google-api-php-client/releases)
## Usage in v2 of Google API PHP Client
This library is automatically updated daily with new API changes, and tagged weekly.
It is installed as part of the
[Google API PHP Client](https://github.com/googleapis/google-api-php-client/releases)
library via Composer, which will pull down the most recent tag.
## Usage in v1
If you are currently using the [`v1-master`](https://github.com/googleapis/google-api-php-client/tree/v1-master)
branch of the client library, but want to use the latest API services, you can
do so by requiring this library directly into your project via the same composer command:
```sh
composer require google/apiclient-services:dev-master
```

View File

@@ -0,0 +1,19 @@
{
"name": "google/apiclient-services",
"type": "library",
"description": "Client library for Google APIs",
"keywords": ["google"],
"homepage": "http://developers.google.com/api-client-library/php",
"license": "Apache-2.0",
"require": {
"php": ">=5.4"
},
"require-dev": {
"phpunit/phpunit": "~4.8"
},
"autoload": {
"psr-0": {
"Google_Service_": "src"
}
}
}

View File

@@ -0,0 +1,950 @@
<?php
/*
* Copyright 2014 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 (v3).
*
* <p>
* Manages files in Drive including uploading, downloading, searching, detecting
* changes, and updating sharing permissions.</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
{
/** See, edit, create, and delete all of your Google Drive files. */
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 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";
/** See and download all your Google Drive files. */
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 $changes;
public $channels;
public $comments;
public $files;
public $permissions;
public $replies;
public $revisions;
public $teamdrives;
/**
* 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/v3/';
$this->version = 'v3';
$this->serviceName = 'drive';
$this->about = new Google_Service_Drive_Resource_About(
$this,
$this->serviceName,
'about',
array(
'methods' => array(
'get' => array(
'path' => 'about',
'httpMethod' => 'GET',
'parameters' => array(),
),
)
)
);
$this->changes = new Google_Service_Drive_Resource_Changes(
$this,
$this->serviceName,
'changes',
array(
'methods' => array(
'getStartPageToken' => array(
'path' => 'changes/startPageToken',
'httpMethod' => 'GET',
'parameters' => array(
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
'teamDriveId' => array(
'location' => 'query',
'type' => 'string',
),
),
),'list' => array(
'path' => 'changes',
'httpMethod' => 'GET',
'parameters' => array(
'pageToken' => array(
'location' => 'query',
'type' => 'string',
'required' => true,
),
'includeCorpusRemovals' => array(
'location' => 'query',
'type' => 'boolean',
),
'includeRemoved' => array(
'location' => 'query',
'type' => 'boolean',
),
'includeTeamDriveItems' => array(
'location' => 'query',
'type' => 'boolean',
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'restrictToMyDrive' => array(
'location' => 'query',
'type' => 'boolean',
),
'spaces' => array(
'location' => 'query',
'type' => 'string',
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
'teamDriveId' => array(
'location' => 'query',
'type' => 'string',
),
),
),'watch' => array(
'path' => 'changes/watch',
'httpMethod' => 'POST',
'parameters' => array(
'pageToken' => array(
'location' => 'query',
'type' => 'string',
'required' => true,
),
'includeCorpusRemovals' => array(
'location' => 'query',
'type' => 'boolean',
),
'includeRemoved' => array(
'location' => 'query',
'type' => 'boolean',
),
'includeTeamDriveItems' => array(
'location' => 'query',
'type' => 'boolean',
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'restrictToMyDrive' => array(
'location' => 'query',
'type' => 'boolean',
),
'spaces' => array(
'location' => 'query',
'type' => 'string',
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
'teamDriveId' => array(
'location' => 'query',
'type' => 'string',
),
),
),
)
)
);
$this->channels = new Google_Service_Drive_Resource_Channels(
$this,
$this->serviceName,
'channels',
array(
'methods' => array(
'stop' => array(
'path' => 'channels/stop',
'httpMethod' => 'POST',
'parameters' => array(),
),
)
)
);
$this->comments = new Google_Service_Drive_Resource_Comments(
$this,
$this->serviceName,
'comments',
array(
'methods' => array(
'create' => array(
'path' => 'files/{fileId}/comments',
'httpMethod' => 'POST',
'parameters' => array(
'fileId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'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',
),
),
),'list' => array(
'path' => 'files/{fileId}/comments',
'httpMethod' => 'GET',
'parameters' => array(
'fileId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'includeDeleted' => array(
'location' => 'query',
'type' => 'boolean',
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'startModifiedTime' => array(
'location' => 'query',
'type' => 'string',
),
),
),'update' => 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,
),
),
),
)
)
);
$this->files = new Google_Service_Drive_Resource_Files(
$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,
),
'ignoreDefaultVisibility' => array(
'location' => 'query',
'type' => 'boolean',
),
'keepRevisionForever' => array(
'location' => 'query',
'type' => 'boolean',
),
'ocrLanguage' => array(
'location' => 'query',
'type' => 'string',
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),'create' => array(
'path' => 'files',
'httpMethod' => 'POST',
'parameters' => array(
'ignoreDefaultVisibility' => array(
'location' => 'query',
'type' => 'boolean',
),
'keepRevisionForever' => array(
'location' => 'query',
'type' => 'boolean',
),
'ocrLanguage' => array(
'location' => 'query',
'type' => 'string',
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
'useContentAsIndexableText' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),'delete' => array(
'path' => 'files/{fileId}',
'httpMethod' => 'DELETE',
'parameters' => array(
'fileId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),'emptyTrash' => array(
'path' => 'files/trash',
'httpMethod' => 'DELETE',
'parameters' => array(),
),'export' => array(
'path' => 'files/{fileId}/export',
'httpMethod' => 'GET',
'parameters' => array(
'fileId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'mimeType' => array(
'location' => 'query',
'type' => 'string',
'required' => true,
),
),
),'generateIds' => array(
'path' => 'files/generateIds',
'httpMethod' => 'GET',
'parameters' => array(
'count' => 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',
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),'list' => array(
'path' => 'files',
'httpMethod' => 'GET',
'parameters' => array(
'corpora' => array(
'location' => 'query',
'type' => 'string',
),
'corpus' => array(
'location' => 'query',
'type' => 'string',
),
'includeTeamDriveItems' => array(
'location' => 'query',
'type' => 'boolean',
),
'orderBy' => array(
'location' => 'query',
'type' => 'string',
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'q' => array(
'location' => 'query',
'type' => 'string',
),
'spaces' => array(
'location' => 'query',
'type' => 'string',
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
'teamDriveId' => array(
'location' => 'query',
'type' => 'string',
),
),
),'update' => array(
'path' => 'files/{fileId}',
'httpMethod' => 'PATCH',
'parameters' => array(
'fileId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'addParents' => array(
'location' => 'query',
'type' => 'string',
),
'keepRevisionForever' => array(
'location' => 'query',
'type' => 'boolean',
),
'ocrLanguage' => array(
'location' => 'query',
'type' => 'string',
),
'removeParents' => array(
'location' => 'query',
'type' => 'string',
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
'useContentAsIndexableText' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),'watch' => array(
'path' => 'files/{fileId}/watch',
'httpMethod' => 'POST',
'parameters' => array(
'fileId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'acknowledgeAbuse' => array(
'location' => 'query',
'type' => 'boolean',
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),
)
)
);
$this->permissions = new Google_Service_Drive_Resource_Permissions(
$this,
$this->serviceName,
'permissions',
array(
'methods' => array(
'create' => array(
'path' => 'files/{fileId}/permissions',
'httpMethod' => 'POST',
'parameters' => array(
'fileId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'emailMessage' => array(
'location' => 'query',
'type' => 'string',
),
'sendNotificationEmail' => array(
'location' => 'query',
'type' => 'boolean',
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
'transferOwnership' => array(
'location' => 'query',
'type' => 'boolean',
),
'useDomainAdminAccess' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),'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,
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
'useDomainAdminAccess' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),'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,
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
'useDomainAdminAccess' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),'list' => array(
'path' => 'files/{fileId}/permissions',
'httpMethod' => 'GET',
'parameters' => array(
'fileId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
'useDomainAdminAccess' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),'update' => 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,
),
'removeExpiration' => array(
'location' => 'query',
'type' => 'boolean',
),
'supportsTeamDrives' => array(
'location' => 'query',
'type' => 'boolean',
),
'transferOwnership' => array(
'location' => 'query',
'type' => 'boolean',
),
'useDomainAdminAccess' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),
)
)
);
$this->replies = new Google_Service_Drive_Resource_Replies(
$this,
$this->serviceName,
'replies',
array(
'methods' => array(
'create' => 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,
),
),
),'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',
),
),
),'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,
),
'includeDeleted' => array(
'location' => 'query',
'type' => 'boolean',
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
),
),'update' => 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,
),
),
),
)
)
);
$this->revisions = new Google_Service_Drive_Resource_Revisions(
$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,
),
'acknowledgeAbuse' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),'list' => array(
'path' => 'files/{fileId}/revisions',
'httpMethod' => 'GET',
'parameters' => array(
'fileId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
),
),'update' => 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,
),
),
),
)
)
);
$this->teamdrives = new Google_Service_Drive_Resource_Teamdrives(
$this,
$this->serviceName,
'teamdrives',
array(
'methods' => array(
'create' => array(
'path' => 'teamdrives',
'httpMethod' => 'POST',
'parameters' => array(
'requestId' => array(
'location' => 'query',
'type' => 'string',
'required' => true,
),
),
),'delete' => array(
'path' => 'teamdrives/{teamDriveId}',
'httpMethod' => 'DELETE',
'parameters' => array(
'teamDriveId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'get' => array(
'path' => 'teamdrives/{teamDriveId}',
'httpMethod' => 'GET',
'parameters' => array(
'teamDriveId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'useDomainAdminAccess' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),'list' => array(
'path' => 'teamdrives',
'httpMethod' => 'GET',
'parameters' => array(
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'q' => array(
'location' => 'query',
'type' => 'string',
),
'useDomainAdminAccess' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),'update' => array(
'path' => 'teamdrives/{teamDriveId}',
'httpMethod' => 'PATCH',
'parameters' => array(
'teamDriveId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'useDomainAdminAccess' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),
)
)
);
}
}

View File

@@ -0,0 +1,142 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_About extends Google_Collection
{
protected $collection_key = 'teamDriveThemes';
public $appInstalled;
public $canCreateTeamDrives;
public $exportFormats;
public $folderColorPalette;
public $importFormats;
public $kind;
public $maxImportSizes;
public $maxUploadSize;
protected $storageQuotaType = 'Google_Service_Drive_AboutStorageQuota';
protected $storageQuotaDataType = '';
protected $teamDriveThemesType = 'Google_Service_Drive_AboutTeamDriveThemes';
protected $teamDriveThemesDataType = 'array';
protected $userType = 'Google_Service_Drive_User';
protected $userDataType = '';
public function setAppInstalled($appInstalled)
{
$this->appInstalled = $appInstalled;
}
public function getAppInstalled()
{
return $this->appInstalled;
}
public function setCanCreateTeamDrives($canCreateTeamDrives)
{
$this->canCreateTeamDrives = $canCreateTeamDrives;
}
public function getCanCreateTeamDrives()
{
return $this->canCreateTeamDrives;
}
public function setExportFormats($exportFormats)
{
$this->exportFormats = $exportFormats;
}
public function getExportFormats()
{
return $this->exportFormats;
}
public function setFolderColorPalette($folderColorPalette)
{
$this->folderColorPalette = $folderColorPalette;
}
public function getFolderColorPalette()
{
return $this->folderColorPalette;
}
public function setImportFormats($importFormats)
{
$this->importFormats = $importFormats;
}
public function getImportFormats()
{
return $this->importFormats;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setMaxImportSizes($maxImportSizes)
{
$this->maxImportSizes = $maxImportSizes;
}
public function getMaxImportSizes()
{
return $this->maxImportSizes;
}
public function setMaxUploadSize($maxUploadSize)
{
$this->maxUploadSize = $maxUploadSize;
}
public function getMaxUploadSize()
{
return $this->maxUploadSize;
}
/**
* @param Google_Service_Drive_AboutStorageQuota
*/
public function setStorageQuota(Google_Service_Drive_AboutStorageQuota $storageQuota)
{
$this->storageQuota = $storageQuota;
}
/**
* @return Google_Service_Drive_AboutStorageQuota
*/
public function getStorageQuota()
{
return $this->storageQuota;
}
/**
* @param Google_Service_Drive_AboutTeamDriveThemes
*/
public function setTeamDriveThemes($teamDriveThemes)
{
$this->teamDriveThemes = $teamDriveThemes;
}
/**
* @return Google_Service_Drive_AboutTeamDriveThemes
*/
public function getTeamDriveThemes()
{
return $this->teamDriveThemes;
}
/**
* @param Google_Service_Drive_User
*/
public function setUser(Google_Service_Drive_User $user)
{
$this->user = $user;
}
/**
* @return Google_Service_Drive_User
*/
public function getUser()
{
return $this->user;
}
}

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_AboutStorageQuota extends Google_Model
{
public $limit;
public $usage;
public $usageInDrive;
public $usageInDriveTrash;
public function setLimit($limit)
{
$this->limit = $limit;
}
public function getLimit()
{
return $this->limit;
}
public function setUsage($usage)
{
$this->usage = $usage;
}
public function getUsage()
{
return $this->usage;
}
public function setUsageInDrive($usageInDrive)
{
$this->usageInDrive = $usageInDrive;
}
public function getUsageInDrive()
{
return $this->usageInDrive;
}
public function setUsageInDriveTrash($usageInDriveTrash)
{
$this->usageInDriveTrash = $usageInDriveTrash;
}
public function getUsageInDriveTrash()
{
return $this->usageInDriveTrash;
}
}

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_AboutTeamDriveThemes extends Google_Model
{
public $backgroundImageLink;
public $colorRgb;
public $id;
public function setBackgroundImageLink($backgroundImageLink)
{
$this->backgroundImageLink = $backgroundImageLink;
}
public function getBackgroundImageLink()
{
return $this->backgroundImageLink;
}
public function setColorRgb($colorRgb)
{
$this->colorRgb = $colorRgb;
}
public function getColorRgb()
{
return $this->colorRgb;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
}

View File

@@ -0,0 +1,107 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_Change extends Google_Model
{
protected $fileType = 'Google_Service_Drive_DriveFile';
protected $fileDataType = '';
public $fileId;
public $kind;
public $removed;
protected $teamDriveType = 'Google_Service_Drive_TeamDrive';
protected $teamDriveDataType = '';
public $teamDriveId;
public $time;
public $type;
/**
* @param Google_Service_Drive_DriveFile
*/
public function setFile(Google_Service_Drive_DriveFile $file)
{
$this->file = $file;
}
/**
* @return Google_Service_Drive_DriveFile
*/
public function getFile()
{
return $this->file;
}
public function setFileId($fileId)
{
$this->fileId = $fileId;
}
public function getFileId()
{
return $this->fileId;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setRemoved($removed)
{
$this->removed = $removed;
}
public function getRemoved()
{
return $this->removed;
}
/**
* @param Google_Service_Drive_TeamDrive
*/
public function setTeamDrive(Google_Service_Drive_TeamDrive $teamDrive)
{
$this->teamDrive = $teamDrive;
}
/**
* @return Google_Service_Drive_TeamDrive
*/
public function getTeamDrive()
{
return $this->teamDrive;
}
public function setTeamDriveId($teamDriveId)
{
$this->teamDriveId = $teamDriveId;
}
public function getTeamDriveId()
{
return $this->teamDriveId;
}
public function setTime($time)
{
$this->time = $time;
}
public function getTime()
{
return $this->time;
}
public function setType($type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
}

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_ChangeList extends Google_Collection
{
protected $collection_key = 'changes';
protected $changesType = 'Google_Service_Drive_Change';
protected $changesDataType = 'array';
public $kind;
public $newStartPageToken;
public $nextPageToken;
/**
* @param Google_Service_Drive_Change
*/
public function setChanges($changes)
{
$this->changes = $changes;
}
/**
* @return Google_Service_Drive_Change
*/
public function getChanges()
{
return $this->changes;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNewStartPageToken($newStartPageToken)
{
$this->newStartPageToken = $newStartPageToken;
}
public function getNewStartPageToken()
{
return $this->newStartPageToken;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}

View File

@@ -0,0 +1,111 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_Channel extends Google_Model
{
public $address;
public $expiration;
public $id;
public $kind;
public $params;
public $payload;
public $resourceId;
public $resourceUri;
public $token;
public $type;
public function setAddress($address)
{
$this->address = $address;
}
public function getAddress()
{
return $this->address;
}
public function setExpiration($expiration)
{
$this->expiration = $expiration;
}
public function getExpiration()
{
return $this->expiration;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setParams($params)
{
$this->params = $params;
}
public function getParams()
{
return $this->params;
}
public function setPayload($payload)
{
$this->payload = $payload;
}
public function getPayload()
{
return $this->payload;
}
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
public function getResourceId()
{
return $this->resourceId;
}
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
public function getResourceUri()
{
return $this->resourceUri;
}
public function setToken($token)
{
$this->token = $token;
}
public function getToken()
{
return $this->token;
}
public function setType($type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
}

View File

@@ -0,0 +1,151 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_Comment extends Google_Collection
{
protected $collection_key = 'replies';
public $anchor;
protected $authorType = 'Google_Service_Drive_User';
protected $authorDataType = '';
public $content;
public $createdTime;
public $deleted;
public $htmlContent;
public $id;
public $kind;
public $modifiedTime;
protected $quotedFileContentType = 'Google_Service_Drive_CommentQuotedFileContent';
protected $quotedFileContentDataType = '';
protected $repliesType = 'Google_Service_Drive_Reply';
protected $repliesDataType = 'array';
public $resolved;
public function setAnchor($anchor)
{
$this->anchor = $anchor;
}
public function getAnchor()
{
return $this->anchor;
}
/**
* @param Google_Service_Drive_User
*/
public function setAuthor(Google_Service_Drive_User $author)
{
$this->author = $author;
}
/**
* @return Google_Service_Drive_User
*/
public function getAuthor()
{
return $this->author;
}
public function setContent($content)
{
$this->content = $content;
}
public function getContent()
{
return $this->content;
}
public function setCreatedTime($createdTime)
{
$this->createdTime = $createdTime;
}
public function getCreatedTime()
{
return $this->createdTime;
}
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
public function getDeleted()
{
return $this->deleted;
}
public function setHtmlContent($htmlContent)
{
$this->htmlContent = $htmlContent;
}
public function getHtmlContent()
{
return $this->htmlContent;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setModifiedTime($modifiedTime)
{
$this->modifiedTime = $modifiedTime;
}
public function getModifiedTime()
{
return $this->modifiedTime;
}
/**
* @param Google_Service_Drive_CommentQuotedFileContent
*/
public function setQuotedFileContent(Google_Service_Drive_CommentQuotedFileContent $quotedFileContent)
{
$this->quotedFileContent = $quotedFileContent;
}
/**
* @return Google_Service_Drive_CommentQuotedFileContent
*/
public function getQuotedFileContent()
{
return $this->quotedFileContent;
}
/**
* @param Google_Service_Drive_Reply
*/
public function setReplies($replies)
{
$this->replies = $replies;
}
/**
* @return Google_Service_Drive_Reply
*/
public function getReplies()
{
return $this->replies;
}
public function setResolved($resolved)
{
$this->resolved = $resolved;
}
public function getResolved()
{
return $this->resolved;
}
}

View File

@@ -0,0 +1,56 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_CommentList extends Google_Collection
{
protected $collection_key = 'comments';
protected $commentsType = 'Google_Service_Drive_Comment';
protected $commentsDataType = 'array';
public $kind;
public $nextPageToken;
/**
* @param Google_Service_Drive_Comment
*/
public function setComments($comments)
{
$this->comments = $comments;
}
/**
* @return Google_Service_Drive_Comment
*/
public function getComments()
{
return $this->comments;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_CommentQuotedFileContent extends Google_Model
{
public $mimeType;
public $value;
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
public function getMimeType()
{
return $this->mimeType;
}
public function setValue($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
}

View File

@@ -0,0 +1,571 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_DriveFile extends Google_Collection
{
protected $collection_key = 'spaces';
public $appProperties;
protected $capabilitiesType = 'Google_Service_Drive_DriveFileCapabilities';
protected $capabilitiesDataType = '';
protected $contentHintsType = 'Google_Service_Drive_DriveFileContentHints';
protected $contentHintsDataType = '';
public $copyRequiresWriterPermission;
public $createdTime;
public $description;
public $explicitlyTrashed;
public $exportLinks;
public $fileExtension;
public $folderColorRgb;
public $fullFileExtension;
public $hasAugmentedPermissions;
public $hasThumbnail;
public $headRevisionId;
public $iconLink;
public $id;
protected $imageMediaMetadataType = 'Google_Service_Drive_DriveFileImageMediaMetadata';
protected $imageMediaMetadataDataType = '';
public $isAppAuthorized;
public $kind;
protected $lastModifyingUserType = 'Google_Service_Drive_User';
protected $lastModifyingUserDataType = '';
public $md5Checksum;
public $mimeType;
public $modifiedByMe;
public $modifiedByMeTime;
public $modifiedTime;
public $name;
public $originalFilename;
public $ownedByMe;
protected $ownersType = 'Google_Service_Drive_User';
protected $ownersDataType = 'array';
public $parents;
public $permissionIds;
protected $permissionsType = 'Google_Service_Drive_Permission';
protected $permissionsDataType = 'array';
public $properties;
public $quotaBytesUsed;
public $shared;
public $sharedWithMeTime;
protected $sharingUserType = 'Google_Service_Drive_User';
protected $sharingUserDataType = '';
public $size;
public $spaces;
public $starred;
public $teamDriveId;
public $thumbnailLink;
public $thumbnailVersion;
public $trashed;
public $trashedTime;
protected $trashingUserType = 'Google_Service_Drive_User';
protected $trashingUserDataType = '';
public $version;
protected $videoMediaMetadataType = 'Google_Service_Drive_DriveFileVideoMediaMetadata';
protected $videoMediaMetadataDataType = '';
public $viewedByMe;
public $viewedByMeTime;
public $viewersCanCopyContent;
public $webContentLink;
public $webViewLink;
public $writersCanShare;
public function setAppProperties($appProperties)
{
$this->appProperties = $appProperties;
}
public function getAppProperties()
{
return $this->appProperties;
}
/**
* @param Google_Service_Drive_DriveFileCapabilities
*/
public function setCapabilities(Google_Service_Drive_DriveFileCapabilities $capabilities)
{
$this->capabilities = $capabilities;
}
/**
* @return Google_Service_Drive_DriveFileCapabilities
*/
public function getCapabilities()
{
return $this->capabilities;
}
/**
* @param Google_Service_Drive_DriveFileContentHints
*/
public function setContentHints(Google_Service_Drive_DriveFileContentHints $contentHints)
{
$this->contentHints = $contentHints;
}
/**
* @return Google_Service_Drive_DriveFileContentHints
*/
public function getContentHints()
{
return $this->contentHints;
}
public function setCopyRequiresWriterPermission($copyRequiresWriterPermission)
{
$this->copyRequiresWriterPermission = $copyRequiresWriterPermission;
}
public function getCopyRequiresWriterPermission()
{
return $this->copyRequiresWriterPermission;
}
public function setCreatedTime($createdTime)
{
$this->createdTime = $createdTime;
}
public function getCreatedTime()
{
return $this->createdTime;
}
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setExplicitlyTrashed($explicitlyTrashed)
{
$this->explicitlyTrashed = $explicitlyTrashed;
}
public function getExplicitlyTrashed()
{
return $this->explicitlyTrashed;
}
public function setExportLinks($exportLinks)
{
$this->exportLinks = $exportLinks;
}
public function getExportLinks()
{
return $this->exportLinks;
}
public function setFileExtension($fileExtension)
{
$this->fileExtension = $fileExtension;
}
public function getFileExtension()
{
return $this->fileExtension;
}
public function setFolderColorRgb($folderColorRgb)
{
$this->folderColorRgb = $folderColorRgb;
}
public function getFolderColorRgb()
{
return $this->folderColorRgb;
}
public function setFullFileExtension($fullFileExtension)
{
$this->fullFileExtension = $fullFileExtension;
}
public function getFullFileExtension()
{
return $this->fullFileExtension;
}
public function setHasAugmentedPermissions($hasAugmentedPermissions)
{
$this->hasAugmentedPermissions = $hasAugmentedPermissions;
}
public function getHasAugmentedPermissions()
{
return $this->hasAugmentedPermissions;
}
public function setHasThumbnail($hasThumbnail)
{
$this->hasThumbnail = $hasThumbnail;
}
public function getHasThumbnail()
{
return $this->hasThumbnail;
}
public function setHeadRevisionId($headRevisionId)
{
$this->headRevisionId = $headRevisionId;
}
public function getHeadRevisionId()
{
return $this->headRevisionId;
}
public function setIconLink($iconLink)
{
$this->iconLink = $iconLink;
}
public function getIconLink()
{
return $this->iconLink;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
/**
* @param Google_Service_Drive_DriveFileImageMediaMetadata
*/
public function setImageMediaMetadata(Google_Service_Drive_DriveFileImageMediaMetadata $imageMediaMetadata)
{
$this->imageMediaMetadata = $imageMediaMetadata;
}
/**
* @return Google_Service_Drive_DriveFileImageMediaMetadata
*/
public function getImageMediaMetadata()
{
return $this->imageMediaMetadata;
}
public function setIsAppAuthorized($isAppAuthorized)
{
$this->isAppAuthorized = $isAppAuthorized;
}
public function getIsAppAuthorized()
{
return $this->isAppAuthorized;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
/**
* @param Google_Service_Drive_User
*/
public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser)
{
$this->lastModifyingUser = $lastModifyingUser;
}
/**
* @return Google_Service_Drive_User
*/
public function getLastModifyingUser()
{
return $this->lastModifyingUser;
}
public function setMd5Checksum($md5Checksum)
{
$this->md5Checksum = $md5Checksum;
}
public function getMd5Checksum()
{
return $this->md5Checksum;
}
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
public function getMimeType()
{
return $this->mimeType;
}
public function setModifiedByMe($modifiedByMe)
{
$this->modifiedByMe = $modifiedByMe;
}
public function getModifiedByMe()
{
return $this->modifiedByMe;
}
public function setModifiedByMeTime($modifiedByMeTime)
{
$this->modifiedByMeTime = $modifiedByMeTime;
}
public function getModifiedByMeTime()
{
return $this->modifiedByMeTime;
}
public function setModifiedTime($modifiedTime)
{
$this->modifiedTime = $modifiedTime;
}
public function getModifiedTime()
{
return $this->modifiedTime;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setOriginalFilename($originalFilename)
{
$this->originalFilename = $originalFilename;
}
public function getOriginalFilename()
{
return $this->originalFilename;
}
public function setOwnedByMe($ownedByMe)
{
$this->ownedByMe = $ownedByMe;
}
public function getOwnedByMe()
{
return $this->ownedByMe;
}
/**
* @param Google_Service_Drive_User
*/
public function setOwners($owners)
{
$this->owners = $owners;
}
/**
* @return Google_Service_Drive_User
*/
public function getOwners()
{
return $this->owners;
}
public function setParents($parents)
{
$this->parents = $parents;
}
public function getParents()
{
return $this->parents;
}
public function setPermissionIds($permissionIds)
{
$this->permissionIds = $permissionIds;
}
public function getPermissionIds()
{
return $this->permissionIds;
}
/**
* @param Google_Service_Drive_Permission
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return Google_Service_Drive_Permission
*/
public function getPermissions()
{
return $this->permissions;
}
public function setProperties($properties)
{
$this->properties = $properties;
}
public function getProperties()
{
return $this->properties;
}
public function setQuotaBytesUsed($quotaBytesUsed)
{
$this->quotaBytesUsed = $quotaBytesUsed;
}
public function getQuotaBytesUsed()
{
return $this->quotaBytesUsed;
}
public function setShared($shared)
{
$this->shared = $shared;
}
public function getShared()
{
return $this->shared;
}
public function setSharedWithMeTime($sharedWithMeTime)
{
$this->sharedWithMeTime = $sharedWithMeTime;
}
public function getSharedWithMeTime()
{
return $this->sharedWithMeTime;
}
/**
* @param Google_Service_Drive_User
*/
public function setSharingUser(Google_Service_Drive_User $sharingUser)
{
$this->sharingUser = $sharingUser;
}
/**
* @return Google_Service_Drive_User
*/
public function getSharingUser()
{
return $this->sharingUser;
}
public function setSize($size)
{
$this->size = $size;
}
public function getSize()
{
return $this->size;
}
public function setSpaces($spaces)
{
$this->spaces = $spaces;
}
public function getSpaces()
{
return $this->spaces;
}
public function setStarred($starred)
{
$this->starred = $starred;
}
public function getStarred()
{
return $this->starred;
}
public function setTeamDriveId($teamDriveId)
{
$this->teamDriveId = $teamDriveId;
}
public function getTeamDriveId()
{
return $this->teamDriveId;
}
public function setThumbnailLink($thumbnailLink)
{
$this->thumbnailLink = $thumbnailLink;
}
public function getThumbnailLink()
{
return $this->thumbnailLink;
}
public function setThumbnailVersion($thumbnailVersion)
{
$this->thumbnailVersion = $thumbnailVersion;
}
public function getThumbnailVersion()
{
return $this->thumbnailVersion;
}
public function setTrashed($trashed)
{
$this->trashed = $trashed;
}
public function getTrashed()
{
return $this->trashed;
}
public function setTrashedTime($trashedTime)
{
$this->trashedTime = $trashedTime;
}
public function getTrashedTime()
{
return $this->trashedTime;
}
/**
* @param Google_Service_Drive_User
*/
public function setTrashingUser(Google_Service_Drive_User $trashingUser)
{
$this->trashingUser = $trashingUser;
}
/**
* @return Google_Service_Drive_User
*/
public function getTrashingUser()
{
return $this->trashingUser;
}
public function setVersion($version)
{
$this->version = $version;
}
public function getVersion()
{
return $this->version;
}
/**
* @param Google_Service_Drive_DriveFileVideoMediaMetadata
*/
public function setVideoMediaMetadata(Google_Service_Drive_DriveFileVideoMediaMetadata $videoMediaMetadata)
{
$this->videoMediaMetadata = $videoMediaMetadata;
}
/**
* @return Google_Service_Drive_DriveFileVideoMediaMetadata
*/
public function getVideoMediaMetadata()
{
return $this->videoMediaMetadata;
}
public function setViewedByMe($viewedByMe)
{
$this->viewedByMe = $viewedByMe;
}
public function getViewedByMe()
{
return $this->viewedByMe;
}
public function setViewedByMeTime($viewedByMeTime)
{
$this->viewedByMeTime = $viewedByMeTime;
}
public function getViewedByMeTime()
{
return $this->viewedByMeTime;
}
public function setViewersCanCopyContent($viewersCanCopyContent)
{
$this->viewersCanCopyContent = $viewersCanCopyContent;
}
public function getViewersCanCopyContent()
{
return $this->viewersCanCopyContent;
}
public function setWebContentLink($webContentLink)
{
$this->webContentLink = $webContentLink;
}
public function getWebContentLink()
{
return $this->webContentLink;
}
public function setWebViewLink($webViewLink)
{
$this->webViewLink = $webViewLink;
}
public function getWebViewLink()
{
return $this->webViewLink;
}
public function setWritersCanShare($writersCanShare)
{
$this->writersCanShare = $writersCanShare;
}
public function getWritersCanShare()
{
return $this->writersCanShare;
}
}

View File

@@ -0,0 +1,237 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_DriveFileCapabilities extends Google_Model
{
public $canAddChildren;
public $canChangeCopyRequiresWriterPermission;
public $canChangeViewersCanCopyContent;
public $canComment;
public $canCopy;
public $canDelete;
public $canDeleteChildren;
public $canDownload;
public $canEdit;
public $canListChildren;
public $canMoveChildrenOutOfTeamDrive;
public $canMoveChildrenWithinTeamDrive;
public $canMoveItemIntoTeamDrive;
public $canMoveItemOutOfTeamDrive;
public $canMoveItemWithinTeamDrive;
public $canMoveTeamDriveItem;
public $canReadRevisions;
public $canReadTeamDrive;
public $canRemoveChildren;
public $canRename;
public $canShare;
public $canTrash;
public $canTrashChildren;
public $canUntrash;
public function setCanAddChildren($canAddChildren)
{
$this->canAddChildren = $canAddChildren;
}
public function getCanAddChildren()
{
return $this->canAddChildren;
}
public function setCanChangeCopyRequiresWriterPermission($canChangeCopyRequiresWriterPermission)
{
$this->canChangeCopyRequiresWriterPermission = $canChangeCopyRequiresWriterPermission;
}
public function getCanChangeCopyRequiresWriterPermission()
{
return $this->canChangeCopyRequiresWriterPermission;
}
public function setCanChangeViewersCanCopyContent($canChangeViewersCanCopyContent)
{
$this->canChangeViewersCanCopyContent = $canChangeViewersCanCopyContent;
}
public function getCanChangeViewersCanCopyContent()
{
return $this->canChangeViewersCanCopyContent;
}
public function setCanComment($canComment)
{
$this->canComment = $canComment;
}
public function getCanComment()
{
return $this->canComment;
}
public function setCanCopy($canCopy)
{
$this->canCopy = $canCopy;
}
public function getCanCopy()
{
return $this->canCopy;
}
public function setCanDelete($canDelete)
{
$this->canDelete = $canDelete;
}
public function getCanDelete()
{
return $this->canDelete;
}
public function setCanDeleteChildren($canDeleteChildren)
{
$this->canDeleteChildren = $canDeleteChildren;
}
public function getCanDeleteChildren()
{
return $this->canDeleteChildren;
}
public function setCanDownload($canDownload)
{
$this->canDownload = $canDownload;
}
public function getCanDownload()
{
return $this->canDownload;
}
public function setCanEdit($canEdit)
{
$this->canEdit = $canEdit;
}
public function getCanEdit()
{
return $this->canEdit;
}
public function setCanListChildren($canListChildren)
{
$this->canListChildren = $canListChildren;
}
public function getCanListChildren()
{
return $this->canListChildren;
}
public function setCanMoveChildrenOutOfTeamDrive($canMoveChildrenOutOfTeamDrive)
{
$this->canMoveChildrenOutOfTeamDrive = $canMoveChildrenOutOfTeamDrive;
}
public function getCanMoveChildrenOutOfTeamDrive()
{
return $this->canMoveChildrenOutOfTeamDrive;
}
public function setCanMoveChildrenWithinTeamDrive($canMoveChildrenWithinTeamDrive)
{
$this->canMoveChildrenWithinTeamDrive = $canMoveChildrenWithinTeamDrive;
}
public function getCanMoveChildrenWithinTeamDrive()
{
return $this->canMoveChildrenWithinTeamDrive;
}
public function setCanMoveItemIntoTeamDrive($canMoveItemIntoTeamDrive)
{
$this->canMoveItemIntoTeamDrive = $canMoveItemIntoTeamDrive;
}
public function getCanMoveItemIntoTeamDrive()
{
return $this->canMoveItemIntoTeamDrive;
}
public function setCanMoveItemOutOfTeamDrive($canMoveItemOutOfTeamDrive)
{
$this->canMoveItemOutOfTeamDrive = $canMoveItemOutOfTeamDrive;
}
public function getCanMoveItemOutOfTeamDrive()
{
return $this->canMoveItemOutOfTeamDrive;
}
public function setCanMoveItemWithinTeamDrive($canMoveItemWithinTeamDrive)
{
$this->canMoveItemWithinTeamDrive = $canMoveItemWithinTeamDrive;
}
public function getCanMoveItemWithinTeamDrive()
{
return $this->canMoveItemWithinTeamDrive;
}
public function setCanMoveTeamDriveItem($canMoveTeamDriveItem)
{
$this->canMoveTeamDriveItem = $canMoveTeamDriveItem;
}
public function getCanMoveTeamDriveItem()
{
return $this->canMoveTeamDriveItem;
}
public function setCanReadRevisions($canReadRevisions)
{
$this->canReadRevisions = $canReadRevisions;
}
public function getCanReadRevisions()
{
return $this->canReadRevisions;
}
public function setCanReadTeamDrive($canReadTeamDrive)
{
$this->canReadTeamDrive = $canReadTeamDrive;
}
public function getCanReadTeamDrive()
{
return $this->canReadTeamDrive;
}
public function setCanRemoveChildren($canRemoveChildren)
{
$this->canRemoveChildren = $canRemoveChildren;
}
public function getCanRemoveChildren()
{
return $this->canRemoveChildren;
}
public function setCanRename($canRename)
{
$this->canRename = $canRename;
}
public function getCanRename()
{
return $this->canRename;
}
public function setCanShare($canShare)
{
$this->canShare = $canShare;
}
public function getCanShare()
{
return $this->canShare;
}
public function setCanTrash($canTrash)
{
$this->canTrash = $canTrash;
}
public function getCanTrash()
{
return $this->canTrash;
}
public function setCanTrashChildren($canTrashChildren)
{
$this->canTrashChildren = $canTrashChildren;
}
public function getCanTrashChildren()
{
return $this->canTrashChildren;
}
public function setCanUntrash($canUntrash)
{
$this->canUntrash = $canUntrash;
}
public function getCanUntrash()
{
return $this->canUntrash;
}
}

View File

@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_DriveFileContentHints extends Google_Model
{
public $indexableText;
protected $thumbnailType = 'Google_Service_Drive_DriveFileContentHintsThumbnail';
protected $thumbnailDataType = '';
public function setIndexableText($indexableText)
{
$this->indexableText = $indexableText;
}
public function getIndexableText()
{
return $this->indexableText;
}
/**
* @param Google_Service_Drive_DriveFileContentHintsThumbnail
*/
public function setThumbnail(Google_Service_Drive_DriveFileContentHintsThumbnail $thumbnail)
{
$this->thumbnail = $thumbnail;
}
/**
* @return Google_Service_Drive_DriveFileContentHintsThumbnail
*/
public function getThumbnail()
{
return $this->thumbnail;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_DriveFileContentHintsThumbnail extends Google_Model
{
public $image;
public $mimeType;
public function setImage($image)
{
$this->image = $image;
}
public function getImage()
{
return $this->image;
}
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
public function getMimeType()
{
return $this->mimeType;
}
}

View File

@@ -0,0 +1,217 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model
{
public $aperture;
public $cameraMake;
public $cameraModel;
public $colorSpace;
public $exposureBias;
public $exposureMode;
public $exposureTime;
public $flashUsed;
public $focalLength;
public $height;
public $isoSpeed;
public $lens;
protected $locationType = 'Google_Service_Drive_DriveFileImageMediaMetadataLocation';
protected $locationDataType = '';
public $maxApertureValue;
public $meteringMode;
public $rotation;
public $sensor;
public $subjectDistance;
public $time;
public $whiteBalance;
public $width;
public function setAperture($aperture)
{
$this->aperture = $aperture;
}
public function getAperture()
{
return $this->aperture;
}
public function setCameraMake($cameraMake)
{
$this->cameraMake = $cameraMake;
}
public function getCameraMake()
{
return $this->cameraMake;
}
public function setCameraModel($cameraModel)
{
$this->cameraModel = $cameraModel;
}
public function getCameraModel()
{
return $this->cameraModel;
}
public function setColorSpace($colorSpace)
{
$this->colorSpace = $colorSpace;
}
public function getColorSpace()
{
return $this->colorSpace;
}
public function setExposureBias($exposureBias)
{
$this->exposureBias = $exposureBias;
}
public function getExposureBias()
{
return $this->exposureBias;
}
public function setExposureMode($exposureMode)
{
$this->exposureMode = $exposureMode;
}
public function getExposureMode()
{
return $this->exposureMode;
}
public function setExposureTime($exposureTime)
{
$this->exposureTime = $exposureTime;
}
public function getExposureTime()
{
return $this->exposureTime;
}
public function setFlashUsed($flashUsed)
{
$this->flashUsed = $flashUsed;
}
public function getFlashUsed()
{
return $this->flashUsed;
}
public function setFocalLength($focalLength)
{
$this->focalLength = $focalLength;
}
public function getFocalLength()
{
return $this->focalLength;
}
public function setHeight($height)
{
$this->height = $height;
}
public function getHeight()
{
return $this->height;
}
public function setIsoSpeed($isoSpeed)
{
$this->isoSpeed = $isoSpeed;
}
public function getIsoSpeed()
{
return $this->isoSpeed;
}
public function setLens($lens)
{
$this->lens = $lens;
}
public function getLens()
{
return $this->lens;
}
/**
* @param Google_Service_Drive_DriveFileImageMediaMetadataLocation
*/
public function setLocation(Google_Service_Drive_DriveFileImageMediaMetadataLocation $location)
{
$this->location = $location;
}
/**
* @return Google_Service_Drive_DriveFileImageMediaMetadataLocation
*/
public function getLocation()
{
return $this->location;
}
public function setMaxApertureValue($maxApertureValue)
{
$this->maxApertureValue = $maxApertureValue;
}
public function getMaxApertureValue()
{
return $this->maxApertureValue;
}
public function setMeteringMode($meteringMode)
{
$this->meteringMode = $meteringMode;
}
public function getMeteringMode()
{
return $this->meteringMode;
}
public function setRotation($rotation)
{
$this->rotation = $rotation;
}
public function getRotation()
{
return $this->rotation;
}
public function setSensor($sensor)
{
$this->sensor = $sensor;
}
public function getSensor()
{
return $this->sensor;
}
public function setSubjectDistance($subjectDistance)
{
$this->subjectDistance = $subjectDistance;
}
public function getSubjectDistance()
{
return $this->subjectDistance;
}
public function setTime($time)
{
$this->time = $time;
}
public function getTime()
{
return $this->time;
}
public function setWhiteBalance($whiteBalance)
{
$this->whiteBalance = $whiteBalance;
}
public function getWhiteBalance()
{
return $this->whiteBalance;
}
public function setWidth($width)
{
$this->width = $width;
}
public function getWidth()
{
return $this->width;
}
}

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_DriveFileImageMediaMetadataLocation extends Google_Model
{
public $altitude;
public $latitude;
public $longitude;
public function setAltitude($altitude)
{
$this->altitude = $altitude;
}
public function getAltitude()
{
return $this->altitude;
}
public function setLatitude($latitude)
{
$this->latitude = $latitude;
}
public function getLatitude()
{
return $this->latitude;
}
public function setLongitude($longitude)
{
$this->longitude = $longitude;
}
public function getLongitude()
{
return $this->longitude;
}
}

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_DriveFileVideoMediaMetadata extends Google_Model
{
public $durationMillis;
public $height;
public $width;
public function setDurationMillis($durationMillis)
{
$this->durationMillis = $durationMillis;
}
public function getDurationMillis()
{
return $this->durationMillis;
}
public function setHeight($height)
{
$this->height = $height;
}
public function getHeight()
{
return $this->height;
}
public function setWidth($width)
{
$this->width = $width;
}
public function getWidth()
{
return $this->width;
}
}

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_FileList extends Google_Collection
{
protected $collection_key = 'files';
protected $filesType = 'Google_Service_Drive_DriveFile';
protected $filesDataType = 'array';
public $incompleteSearch;
public $kind;
public $nextPageToken;
/**
* @param Google_Service_Drive_DriveFile
*/
public function setFiles($files)
{
$this->files = $files;
}
/**
* @return Google_Service_Drive_DriveFile
*/
public function getFiles()
{
return $this->files;
}
public function setIncompleteSearch($incompleteSearch)
{
$this->incompleteSearch = $incompleteSearch;
}
public function getIncompleteSearch()
{
return $this->incompleteSearch;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}

View File

@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_GeneratedIds extends Google_Collection
{
protected $collection_key = 'ids';
public $ids;
public $kind;
public $space;
public function setIds($ids)
{
$this->ids = $ids;
}
public function getIds()
{
return $this->ids;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setSpace($space)
{
$this->space = $space;
}
public function getSpace()
{
return $this->space;
}
}

View File

@@ -0,0 +1,137 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_Permission extends Google_Collection
{
protected $collection_key = 'teamDrivePermissionDetails';
public $allowFileDiscovery;
public $deleted;
public $displayName;
public $domain;
public $emailAddress;
public $expirationTime;
public $id;
public $kind;
public $photoLink;
public $role;
protected $teamDrivePermissionDetailsType = 'Google_Service_Drive_PermissionTeamDrivePermissionDetails';
protected $teamDrivePermissionDetailsDataType = 'array';
public $type;
public function setAllowFileDiscovery($allowFileDiscovery)
{
$this->allowFileDiscovery = $allowFileDiscovery;
}
public function getAllowFileDiscovery()
{
return $this->allowFileDiscovery;
}
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
public function getDeleted()
{
return $this->deleted;
}
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
public function getDisplayName()
{
return $this->displayName;
}
public function setDomain($domain)
{
$this->domain = $domain;
}
public function getDomain()
{
return $this->domain;
}
public function setEmailAddress($emailAddress)
{
$this->emailAddress = $emailAddress;
}
public function getEmailAddress()
{
return $this->emailAddress;
}
public function setExpirationTime($expirationTime)
{
$this->expirationTime = $expirationTime;
}
public function getExpirationTime()
{
return $this->expirationTime;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setPhotoLink($photoLink)
{
$this->photoLink = $photoLink;
}
public function getPhotoLink()
{
return $this->photoLink;
}
public function setRole($role)
{
$this->role = $role;
}
public function getRole()
{
return $this->role;
}
/**
* @param Google_Service_Drive_PermissionTeamDrivePermissionDetails
*/
public function setTeamDrivePermissionDetails($teamDrivePermissionDetails)
{
$this->teamDrivePermissionDetails = $teamDrivePermissionDetails;
}
/**
* @return Google_Service_Drive_PermissionTeamDrivePermissionDetails
*/
public function getTeamDrivePermissionDetails()
{
return $this->teamDrivePermissionDetails;
}
public function setType($type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
}

View File

@@ -0,0 +1,56 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_PermissionList extends Google_Collection
{
protected $collection_key = 'permissions';
public $kind;
public $nextPageToken;
protected $permissionsType = 'Google_Service_Drive_Permission';
protected $permissionsDataType = 'array';
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Google_Service_Drive_Permission
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return Google_Service_Drive_Permission
*/
public function getPermissions()
{
return $this->permissions;
}
}

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_PermissionTeamDrivePermissionDetails extends Google_Model
{
public $inherited;
public $inheritedFrom;
public $role;
public $teamDrivePermissionType;
public function setInherited($inherited)
{
$this->inherited = $inherited;
}
public function getInherited()
{
return $this->inherited;
}
public function setInheritedFrom($inheritedFrom)
{
$this->inheritedFrom = $inheritedFrom;
}
public function getInheritedFrom()
{
return $this->inheritedFrom;
}
public function setRole($role)
{
$this->role = $role;
}
public function getRole()
{
return $this->role;
}
public function setTeamDrivePermissionType($teamDrivePermissionType)
{
$this->teamDrivePermissionType = $teamDrivePermissionType;
}
public function getTeamDrivePermissionType()
{
return $this->teamDrivePermissionType;
}
}

View File

@@ -0,0 +1,109 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_Reply extends Google_Model
{
public $action;
protected $authorType = 'Google_Service_Drive_User';
protected $authorDataType = '';
public $content;
public $createdTime;
public $deleted;
public $htmlContent;
public $id;
public $kind;
public $modifiedTime;
public function setAction($action)
{
$this->action = $action;
}
public function getAction()
{
return $this->action;
}
/**
* @param Google_Service_Drive_User
*/
public function setAuthor(Google_Service_Drive_User $author)
{
$this->author = $author;
}
/**
* @return Google_Service_Drive_User
*/
public function getAuthor()
{
return $this->author;
}
public function setContent($content)
{
$this->content = $content;
}
public function getContent()
{
return $this->content;
}
public function setCreatedTime($createdTime)
{
$this->createdTime = $createdTime;
}
public function getCreatedTime()
{
return $this->createdTime;
}
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
public function getDeleted()
{
return $this->deleted;
}
public function setHtmlContent($htmlContent)
{
$this->htmlContent = $htmlContent;
}
public function getHtmlContent()
{
return $this->htmlContent;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setModifiedTime($modifiedTime)
{
$this->modifiedTime = $modifiedTime;
}
public function getModifiedTime()
{
return $this->modifiedTime;
}
}

View File

@@ -0,0 +1,56 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_ReplyList extends Google_Collection
{
protected $collection_key = 'replies';
public $kind;
public $nextPageToken;
protected $repliesType = 'Google_Service_Drive_Reply';
protected $repliesDataType = 'array';
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Google_Service_Drive_Reply
*/
public function setReplies($replies)
{
$this->replies = $replies;
}
/**
* @return Google_Service_Drive_Reply
*/
public function getReplies()
{
return $this->replies;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2014 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.
*/
/**
* The "about" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google_Service_Drive(...);
* $about = $driveService->about;
* </code>
*/
class Google_Service_Drive_Resource_About extends Google_Service_Resource
{
/**
* Gets information about the user, the user's Drive, and system capabilities.
* (about.get)
*
* @param array $optParams Optional parameters.
* @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");
}
}

View File

@@ -0,0 +1,121 @@
<?php
/*
* Copyright 2014 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.
*/
/**
* The "changes" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google_Service_Drive(...);
* $changes = $driveService->changes;
* </code>
*/
class Google_Service_Drive_Resource_Changes extends Google_Service_Resource
{
/**
* Gets the starting pageToken for listing future changes.
* (changes.getStartPageToken)
*
* @param array $optParams Optional parameters.
*
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @opt_param string teamDriveId The ID of the Team Drive for which the starting
* pageToken for listing future changes from that Team Drive will be returned.
* @return Google_Service_Drive_StartPageToken
*/
public function getStartPageToken($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('getStartPageToken', array($params), "Google_Service_Drive_StartPageToken");
}
/**
* Lists the changes for a user or Team Drive. (changes.listChanges)
*
* @param string $pageToken The token for continuing a previous list request on
* the next page. This should be set to the value of 'nextPageToken' from the
* previous response or to the response from the getStartPageToken method.
* @param array $optParams Optional parameters.
*
* @opt_param bool includeCorpusRemovals Whether changes should include the file
* resource if the file is still accessible by the user at the time of the
* request, even when a file was removed from the list of changes and there will
* be no further change entries for this file.
* @opt_param bool includeRemoved Whether to include changes indicating that
* items have been removed from the list of changes, for example by deletion or
* loss of access.
* @opt_param bool includeTeamDriveItems Whether Team Drive files or changes
* should be included in results.
* @opt_param int pageSize The maximum number of changes to return per page.
* @opt_param bool restrictToMyDrive Whether to restrict the results to changes
* inside the My Drive hierarchy. This omits changes to files such as those in
* the Application Data folder or shared files which have not been added to My
* Drive.
* @opt_param string spaces A comma-separated list of spaces to query within the
* user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @opt_param string teamDriveId The Team Drive from which changes will be
* returned. If specified the change IDs will be reflective of the Team Drive;
* use the combined Team Drive ID and change ID as an identifier.
* @return Google_Service_Drive_ChangeList
*/
public function listChanges($pageToken, $optParams = array())
{
$params = array('pageToken' => $pageToken);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Drive_ChangeList");
}
/**
* Subscribes to changes for a user. (changes.watch)
*
* @param string $pageToken The token for continuing a previous list request on
* the next page. This should be set to the value of 'nextPageToken' from the
* previous response or to the response from the getStartPageToken method.
* @param Google_Service_Drive_Channel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool includeCorpusRemovals Whether changes should include the file
* resource if the file is still accessible by the user at the time of the
* request, even when a file was removed from the list of changes and there will
* be no further change entries for this file.
* @opt_param bool includeRemoved Whether to include changes indicating that
* items have been removed from the list of changes, for example by deletion or
* loss of access.
* @opt_param bool includeTeamDriveItems Whether Team Drive files or changes
* should be included in results.
* @opt_param int pageSize The maximum number of changes to return per page.
* @opt_param bool restrictToMyDrive Whether to restrict the results to changes
* inside the My Drive hierarchy. This omits changes to files such as those in
* the Application Data folder or shared files which have not been added to My
* Drive.
* @opt_param string spaces A comma-separated list of spaces to query within the
* user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @opt_param string teamDriveId The Team Drive from which changes will be
* returned. If specified the change IDs will be reflective of the Team Drive;
* use the combined Team Drive ID and change ID as an identifier.
* @return Google_Service_Drive_Channel
*/
public function watch($pageToken, Google_Service_Drive_Channel $postBody, $optParams = array())
{
$params = array('pageToken' => $pageToken, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('watch', array($params), "Google_Service_Drive_Channel");
}
}

View File

@@ -0,0 +1,40 @@
<?php
/*
* Copyright 2014 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.
*/
/**
* The "channels" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google_Service_Drive(...);
* $channels = $driveService->channels;
* </code>
*/
class Google_Service_Drive_Resource_Channels extends Google_Service_Resource
{
/**
* Stop watching resources through this channel (channels.stop)
*
* @param Google_Service_Drive_Channel $postBody
* @param array $optParams Optional parameters.
*/
public function stop(Google_Service_Drive_Channel $postBody, $optParams = array())
{
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('stop', array($params));
}
}

View File

@@ -0,0 +1,109 @@
<?php
/*
* Copyright 2014 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.
*/
/**
* The "comments" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google_Service_Drive(...);
* $comments = $driveService->comments;
* </code>
*/
class Google_Service_Drive_Resource_Comments extends Google_Service_Resource
{
/**
* Creates a new comment on a file. (comments.create)
*
* @param string $fileId The ID of the file.
* @param Google_Service_Drive_Comment $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Drive_Comment
*/
public function create($fileId, Google_Service_Drive_Comment $postBody, $optParams = array())
{
$params = array('fileId' => $fileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Drive_Comment");
}
/**
* Deletes a comment. (comments.delete)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param array $optParams Optional parameters.
*/
public function delete($fileId, $commentId, $optParams = array())
{
$params = array('fileId' => $fileId, 'commentId' => $commentId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Gets a comment by ID. (comments.get)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param array $optParams Optional parameters.
*
* @opt_param bool includeDeleted Whether to return deleted comments. Deleted
* comments will not include their original content.
* @return Google_Service_Drive_Comment
*/
public function get($fileId, $commentId, $optParams = array())
{
$params = array('fileId' => $fileId, 'commentId' => $commentId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Drive_Comment");
}
/**
* Lists a file's comments. (comments.listComments)
*
* @param string $fileId The ID of the file.
* @param array $optParams Optional parameters.
*
* @opt_param bool includeDeleted Whether to include deleted comments. Deleted
* comments will not include their original content.
* @opt_param int pageSize The maximum number of comments to return per page.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of 'nextPageToken' from the
* previous response.
* @opt_param string startModifiedTime The minimum value of 'modifiedTime' for
* the result comments (RFC 3339 date-time).
* @return Google_Service_Drive_CommentList
*/
public function listComments($fileId, $optParams = array())
{
$params = array('fileId' => $fileId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Drive_CommentList");
}
/**
* Updates a comment with patch semantics. (comments.update)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param Google_Service_Drive_Comment $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Drive_Comment
*/
public function update($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array())
{
$params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Drive_Comment");
}
}

View File

@@ -0,0 +1,255 @@
<?php
/*
* Copyright 2014 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.
*/
/**
* The "files" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google_Service_Drive(...);
* $files = $driveService->files;
* </code>
*/
class Google_Service_Drive_Resource_Files extends Google_Service_Resource
{
/**
* Creates a copy of a file and applies any requested updates with patch
* semantics. (files.copy)
*
* @param string $fileId The ID of the file.
* @param Google_Service_Drive_DriveFile $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's
* default visibility settings for the created file. Domain administrators can
* choose to make all uploaded files visible to the domain by default; this
* parameter bypasses that behavior for the request. Permissions are still
* inherited from parent folders.
* @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in
* the new head revision. This is only applicable to files with binary content
* in Drive.
* @opt_param string ocrLanguage A language hint for OCR processing during image
* import (ISO 639-1 code).
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @return Google_Service_Drive_DriveFile
*/
public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array())
{
$params = array('fileId' => $fileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('copy', array($params), "Google_Service_Drive_DriveFile");
}
/**
* Creates a new file. (files.create)
*
* @param Google_Service_Drive_DriveFile $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's
* default visibility settings for the created file. Domain administrators can
* choose to make all uploaded files visible to the domain by default; this
* parameter bypasses that behavior for the request. Permissions are still
* inherited from parent folders.
* @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in
* the new head revision. This is only applicable to files with binary content
* in Drive.
* @opt_param string ocrLanguage A language hint for OCR processing during image
* import (ISO 639-1 code).
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @opt_param bool useContentAsIndexableText Whether to use the uploaded content
* as indexable text.
* @return Google_Service_Drive_DriveFile
*/
public function create(Google_Service_Drive_DriveFile $postBody, $optParams = array())
{
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Drive_DriveFile");
}
/**
* Permanently deletes a file owned by the user without moving it to the trash.
* If the file belongs to a Team Drive the user must be an organizer on the
* parent. If the target is a folder, all descendants owned by the user are also
* deleted. (files.delete)
*
* @param string $fileId The ID of the file.
* @param array $optParams Optional parameters.
*
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
*/
public function delete($fileId, $optParams = array())
{
$params = array('fileId' => $fileId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Permanently deletes all of the user's trashed files. (files.emptyTrash)
*
* @param array $optParams Optional parameters.
*/
public function emptyTrash($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('emptyTrash', array($params));
}
/**
* Exports a Google Doc to the requested MIME type and returns the exported
* content. Please note that the exported content is limited to 10MB.
* (files.export)
*
* @param string $fileId The ID of the file.
* @param string $mimeType The MIME type of the format requested for this
* export.
* @param array $optParams Optional parameters.
*/
public function export($fileId, $mimeType, $optParams = array())
{
$params = array('fileId' => $fileId, 'mimeType' => $mimeType);
$params = array_merge($params, $optParams);
return $this->call('export', array($params));
}
/**
* Generates a set of file IDs which can be provided in create requests.
* (files.generateIds)
*
* @param array $optParams Optional parameters.
*
* @opt_param int count The number of IDs to return.
* @opt_param string space The space in which the IDs can be used to create new
* files. Supported values are 'drive' and 'appDataFolder'.
* @return Google_Service_Drive_GeneratedIds
*/
public function generateIds($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('generateIds', array($params), "Google_Service_Drive_GeneratedIds");
}
/**
* Gets a file's metadata or content by ID. (files.get)
*
* @param string $fileId The ID of the file.
* @param array $optParams Optional parameters.
*
* @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
* of downloading known malware or other abusive files. This is only applicable
* when alt=media.
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @return Google_Service_Drive_DriveFile
*/
public function get($fileId, $optParams = array())
{
$params = array('fileId' => $fileId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Drive_DriveFile");
}
/**
* Lists or searches files. (files.listFiles)
*
* @param array $optParams Optional parameters.
*
* @opt_param string corpora Comma-separated list of bodies of items
* (files/documents) to which the query applies. Supported bodies are 'user',
* 'domain', 'teamDrive' and 'allTeamDrives'. 'allTeamDrives' must be combined
* with 'user'; all other values must be used in isolation. Prefer 'user' or
* 'teamDrive' to 'allTeamDrives' for efficiency.
* @opt_param string corpus The source of files to list. Deprecated: use
* 'corpora' instead.
* @opt_param bool includeTeamDriveItems Whether Team Drive items should be
* included in results.
* @opt_param string orderBy A comma-separated list of sort keys. Valid keys are
* 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name',
* 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred',
* and 'viewedByMeTime'. Each key sorts ascending by default, but may be
* reversed with the 'desc' modifier. Example usage:
* ?orderBy=folder,modifiedTime desc,name. Please note that there is a current
* limitation for users with approximately one million files in which the
* requested sort order is ignored.
* @opt_param int pageSize The maximum number of files to return per page.
* Partial or empty result pages are possible even before the end of the files
* list has been reached.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of 'nextPageToken' from the
* previous response.
* @opt_param string q A query for filtering the file results. See the "Search
* for Files" guide for supported syntax.
* @opt_param string spaces A comma-separated list of spaces to query within the
* corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @opt_param string teamDriveId ID of Team Drive to search.
* @return Google_Service_Drive_FileList
*/
public function listFiles($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Drive_FileList");
}
/**
* Updates a file's metadata and/or content with patch semantics. (files.update)
*
* @param string $fileId The ID of the file.
* @param Google_Service_Drive_DriveFile $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string addParents A comma-separated list of parent IDs to add.
* @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in
* the new head revision. This is only applicable to files with binary content
* in Drive.
* @opt_param string ocrLanguage A language hint for OCR processing during image
* import (ISO 639-1 code).
* @opt_param string removeParents A comma-separated list of parent IDs to
* remove.
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @opt_param bool useContentAsIndexableText Whether to use the uploaded content
* as indexable text.
* @return Google_Service_Drive_DriveFile
*/
public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array())
{
$params = array('fileId' => $fileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Drive_DriveFile");
}
/**
* Subscribes to changes to a file (files.watch)
*
* @param string $fileId The ID of the file.
* @param Google_Service_Drive_Channel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
* of downloading known malware or other abusive files. This is only applicable
* when alt=media.
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @return Google_Service_Drive_Channel
*/
public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array())
{
$params = array('fileId' => $fileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('watch', array($params), "Google_Service_Drive_Channel");
}
}

View File

@@ -0,0 +1,147 @@
<?php
/*
* Copyright 2014 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.
*/
/**
* The "permissions" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google_Service_Drive(...);
* $permissions = $driveService->permissions;
* </code>
*/
class Google_Service_Drive_Resource_Permissions extends Google_Service_Resource
{
/**
* Creates a permission for a file or Team Drive. (permissions.create)
*
* @param string $fileId The ID of the file or Team Drive.
* @param Google_Service_Drive_Permission $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string emailMessage A plain text custom message to include in the
* notification email.
* @opt_param bool sendNotificationEmail Whether to send a notification email
* when sharing to users or groups. This defaults to true for users and groups,
* and is not allowed for other requests. It must not be disabled for ownership
* transfers.
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @opt_param bool transferOwnership Whether to transfer ownership to the
* specified user and downgrade the current owner to a writer. This parameter is
* required as an acknowledgement of the side effect.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* they are an administrator of the domain to which the item belongs.
* @return Google_Service_Drive_Permission
*/
public function create($fileId, Google_Service_Drive_Permission $postBody, $optParams = array())
{
$params = array('fileId' => $fileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Drive_Permission");
}
/**
* Deletes a permission. (permissions.delete)
*
* @param string $fileId The ID of the file or Team Drive.
* @param string $permissionId The ID of the permission.
* @param array $optParams Optional parameters.
*
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* they are an administrator of the domain to which the item belongs.
*/
public function delete($fileId, $permissionId, $optParams = array())
{
$params = array('fileId' => $fileId, 'permissionId' => $permissionId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Gets a permission by ID. (permissions.get)
*
* @param string $fileId The ID of the file.
* @param string $permissionId The ID of the permission.
* @param array $optParams Optional parameters.
*
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* they are an administrator of the domain to which the item belongs.
* @return Google_Service_Drive_Permission
*/
public function get($fileId, $permissionId, $optParams = array())
{
$params = array('fileId' => $fileId, 'permissionId' => $permissionId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Drive_Permission");
}
/**
* Lists a file's or Team Drive's permissions. (permissions.listPermissions)
*
* @param string $fileId The ID of the file or Team Drive.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of permissions to return per page.
* When not set for files in a Team Drive, at most 100 results will be returned.
* When not set for files that are not in a Team Drive, the entire list will be
* returned.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of 'nextPageToken' from the
* previous response.
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* they are an administrator of the domain to which the item belongs.
* @return Google_Service_Drive_PermissionList
*/
public function listPermissions($fileId, $optParams = array())
{
$params = array('fileId' => $fileId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Drive_PermissionList");
}
/**
* Updates a permission with patch semantics. (permissions.update)
*
* @param string $fileId The ID of the file or Team Drive.
* @param string $permissionId The ID of the permission.
* @param Google_Service_Drive_Permission $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool removeExpiration Whether to remove the expiration date.
* @opt_param bool supportsTeamDrives Whether the requesting application
* supports Team Drives.
* @opt_param bool transferOwnership Whether to transfer ownership to the
* specified user and downgrade the current owner to a writer. This parameter is
* required as an acknowledgement of the side effect.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* they are an administrator of the domain to which the item belongs.
* @return Google_Service_Drive_Permission
*/
public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array())
{
$params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Drive_Permission");
}
}

View File

@@ -0,0 +1,112 @@
<?php
/*
* Copyright 2014 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.
*/
/**
* The "replies" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google_Service_Drive(...);
* $replies = $driveService->replies;
* </code>
*/
class Google_Service_Drive_Resource_Replies extends Google_Service_Resource
{
/**
* Creates a new reply to a comment. (replies.create)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param Google_Service_Drive_Reply $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Drive_Reply
*/
public function create($fileId, $commentId, Google_Service_Drive_Reply $postBody, $optParams = array())
{
$params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Drive_Reply");
}
/**
* Deletes a reply. (replies.delete)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param string $replyId The ID of the reply.
* @param array $optParams Optional parameters.
*/
public function delete($fileId, $commentId, $replyId, $optParams = array())
{
$params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Gets a reply by ID. (replies.get)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param string $replyId The ID of the reply.
* @param array $optParams Optional parameters.
*
* @opt_param bool includeDeleted Whether to return deleted replies. Deleted
* replies will not include their original content.
* @return Google_Service_Drive_Reply
*/
public function get($fileId, $commentId, $replyId, $optParams = array())
{
$params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Drive_Reply");
}
/**
* Lists a comment's replies. (replies.listReplies)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param array $optParams Optional parameters.
*
* @opt_param bool includeDeleted Whether to include deleted replies. Deleted
* replies will not include their original content.
* @opt_param int pageSize The maximum number of replies to return per page.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of 'nextPageToken' from the
* previous response.
* @return Google_Service_Drive_ReplyList
*/
public function listReplies($fileId, $commentId, $optParams = array())
{
$params = array('fileId' => $fileId, 'commentId' => $commentId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Drive_ReplyList");
}
/**
* Updates a reply with patch semantics. (replies.update)
*
* @param string $fileId The ID of the file.
* @param string $commentId The ID of the comment.
* @param string $replyId The ID of the reply.
* @param Google_Service_Drive_Reply $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Drive_Reply
*/
public function update($fileId, $commentId, $replyId, Google_Service_Drive_Reply $postBody, $optParams = array())
{
$params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Drive_Reply");
}
}

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 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.
*/
/**
* The "revisions" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google_Service_Drive(...);
* $revisions = $driveService->revisions;
* </code>
*/
class Google_Service_Drive_Resource_Revisions extends Google_Service_Resource
{
/**
* Permanently deletes a revision. This method is only applicable to files with
* binary content in Drive. (revisions.delete)
*
* @param string $fileId The ID of the file.
* @param string $revisionId The ID of the revision.
* @param array $optParams Optional parameters.
*/
public function delete($fileId, $revisionId, $optParams = array())
{
$params = array('fileId' => $fileId, 'revisionId' => $revisionId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Gets a revision's metadata or content by ID. (revisions.get)
*
* @param string $fileId The ID of the file.
* @param string $revisionId The ID of the revision.
* @param array $optParams Optional parameters.
*
* @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
* of downloading known malware or other abusive files. This is only applicable
* when alt=media.
* @return Google_Service_Drive_Revision
*/
public function get($fileId, $revisionId, $optParams = array())
{
$params = array('fileId' => $fileId, 'revisionId' => $revisionId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Drive_Revision");
}
/**
* Lists a file's revisions. (revisions.listRevisions)
*
* @param string $fileId The ID of the file.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of revisions to return per page.
* @opt_param string pageToken The token for continuing a previous list request
* on the next page. This should be set to the value of 'nextPageToken' from the
* previous response.
* @return Google_Service_Drive_RevisionList
*/
public function listRevisions($fileId, $optParams = array())
{
$params = array('fileId' => $fileId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Drive_RevisionList");
}
/**
* Updates a revision with patch semantics. (revisions.update)
*
* @param string $fileId The ID of the file.
* @param string $revisionId The ID of the revision.
* @param Google_Service_Drive_Revision $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Drive_Revision
*/
public function update($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array())
{
$params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Drive_Revision");
}
}

View File

@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 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.
*/
/**
* The "teamdrives" collection of methods.
* Typical usage is:
* <code>
* $driveService = new Google_Service_Drive(...);
* $teamdrives = $driveService->teamdrives;
* </code>
*/
class Google_Service_Drive_Resource_Teamdrives extends Google_Service_Resource
{
/**
* Creates a new Team Drive. (teamdrives.create)
*
* @param string $requestId An ID, such as a random UUID, which uniquely
* identifies this user's request for idempotent creation of a Team Drive. A
* repeated request by the same user and with the same request ID will avoid
* creating duplicates by attempting to create the same Team Drive. If the Team
* Drive already exists a 409 error will be returned.
* @param Google_Service_Drive_TeamDrive $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Drive_TeamDrive
*/
public function create($requestId, Google_Service_Drive_TeamDrive $postBody, $optParams = array())
{
$params = array('requestId' => $requestId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Drive_TeamDrive");
}
/**
* Permanently deletes a Team Drive for which the user is an organizer. The Team
* Drive cannot contain any untrashed items. (teamdrives.delete)
*
* @param string $teamDriveId The ID of the Team Drive
* @param array $optParams Optional parameters.
*/
public function delete($teamDriveId, $optParams = array())
{
$params = array('teamDriveId' => $teamDriveId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Gets a Team Drive's metadata by ID. (teamdrives.get)
*
* @param string $teamDriveId The ID of the Team Drive
* @param array $optParams Optional parameters.
*
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* they are an administrator of the domain to which the Team Drive belongs.
* @return Google_Service_Drive_TeamDrive
*/
public function get($teamDriveId, $optParams = array())
{
$params = array('teamDriveId' => $teamDriveId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Drive_TeamDrive");
}
/**
* Lists the user's Team Drives. (teamdrives.listTeamdrives)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of Team Drives to return.
* @opt_param string pageToken Page token for Team Drives.
* @opt_param string q Query string for searching Team Drives.
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then all Team Drives of the domain in which
* the requester is an administrator are returned.
* @return Google_Service_Drive_TeamDriveList
*/
public function listTeamdrives($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Drive_TeamDriveList");
}
/**
* Updates a Team Drive's metadata (teamdrives.update)
*
* @param string $teamDriveId The ID of the Team Drive
* @param Google_Service_Drive_TeamDrive $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool useDomainAdminAccess Issue the request as a domain
* administrator; if set to true, then the requester will be granted access if
* they are an administrator of the domain to which the Team Drive belongs.
* @return Google_Service_Drive_TeamDrive
*/
public function update($teamDriveId, Google_Service_Drive_TeamDrive $postBody, $optParams = array())
{
$params = array('teamDriveId' => $teamDriveId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Drive_TeamDrive");
}
}

View File

@@ -0,0 +1,145 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_Revision extends Google_Model
{
public $exportLinks;
public $id;
public $keepForever;
public $kind;
protected $lastModifyingUserType = 'Google_Service_Drive_User';
protected $lastModifyingUserDataType = '';
public $md5Checksum;
public $mimeType;
public $modifiedTime;
public $originalFilename;
public $publishAuto;
public $published;
public $publishedOutsideDomain;
public $size;
public function setExportLinks($exportLinks)
{
$this->exportLinks = $exportLinks;
}
public function getExportLinks()
{
return $this->exportLinks;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setKeepForever($keepForever)
{
$this->keepForever = $keepForever;
}
public function getKeepForever()
{
return $this->keepForever;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
/**
* @param Google_Service_Drive_User
*/
public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser)
{
$this->lastModifyingUser = $lastModifyingUser;
}
/**
* @return Google_Service_Drive_User
*/
public function getLastModifyingUser()
{
return $this->lastModifyingUser;
}
public function setMd5Checksum($md5Checksum)
{
$this->md5Checksum = $md5Checksum;
}
public function getMd5Checksum()
{
return $this->md5Checksum;
}
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
public function getMimeType()
{
return $this->mimeType;
}
public function setModifiedTime($modifiedTime)
{
$this->modifiedTime = $modifiedTime;
}
public function getModifiedTime()
{
return $this->modifiedTime;
}
public function setOriginalFilename($originalFilename)
{
$this->originalFilename = $originalFilename;
}
public function getOriginalFilename()
{
return $this->originalFilename;
}
public function setPublishAuto($publishAuto)
{
$this->publishAuto = $publishAuto;
}
public function getPublishAuto()
{
return $this->publishAuto;
}
public function setPublished($published)
{
$this->published = $published;
}
public function getPublished()
{
return $this->published;
}
public function setPublishedOutsideDomain($publishedOutsideDomain)
{
$this->publishedOutsideDomain = $publishedOutsideDomain;
}
public function getPublishedOutsideDomain()
{
return $this->publishedOutsideDomain;
}
public function setSize($size)
{
$this->size = $size;
}
public function getSize()
{
return $this->size;
}
}

View File

@@ -0,0 +1,56 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_RevisionList extends Google_Collection
{
protected $collection_key = 'revisions';
public $kind;
public $nextPageToken;
protected $revisionsType = 'Google_Service_Drive_Revision';
protected $revisionsDataType = 'array';
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Google_Service_Drive_Revision
*/
public function setRevisions($revisions)
{
$this->revisions = $revisions;
}
/**
* @return Google_Service_Drive_Revision
*/
public function getRevisions()
{
return $this->revisions;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_StartPageToken extends Google_Model
{
public $kind;
public $startPageToken;
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setStartPageToken($startPageToken)
{
$this->startPageToken = $startPageToken;
}
public function getStartPageToken()
{
return $this->startPageToken;
}
}

View File

@@ -0,0 +1,132 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_TeamDrive extends Google_Model
{
protected $backgroundImageFileType = 'Google_Service_Drive_TeamDriveBackgroundImageFile';
protected $backgroundImageFileDataType = '';
public $backgroundImageLink;
protected $capabilitiesType = 'Google_Service_Drive_TeamDriveCapabilities';
protected $capabilitiesDataType = '';
public $colorRgb;
public $createdTime;
public $id;
public $kind;
public $name;
protected $restrictionsType = 'Google_Service_Drive_TeamDriveRestrictions';
protected $restrictionsDataType = '';
public $themeId;
/**
* @param Google_Service_Drive_TeamDriveBackgroundImageFile
*/
public function setBackgroundImageFile(Google_Service_Drive_TeamDriveBackgroundImageFile $backgroundImageFile)
{
$this->backgroundImageFile = $backgroundImageFile;
}
/**
* @return Google_Service_Drive_TeamDriveBackgroundImageFile
*/
public function getBackgroundImageFile()
{
return $this->backgroundImageFile;
}
public function setBackgroundImageLink($backgroundImageLink)
{
$this->backgroundImageLink = $backgroundImageLink;
}
public function getBackgroundImageLink()
{
return $this->backgroundImageLink;
}
/**
* @param Google_Service_Drive_TeamDriveCapabilities
*/
public function setCapabilities(Google_Service_Drive_TeamDriveCapabilities $capabilities)
{
$this->capabilities = $capabilities;
}
/**
* @return Google_Service_Drive_TeamDriveCapabilities
*/
public function getCapabilities()
{
return $this->capabilities;
}
public function setColorRgb($colorRgb)
{
$this->colorRgb = $colorRgb;
}
public function getColorRgb()
{
return $this->colorRgb;
}
public function setCreatedTime($createdTime)
{
$this->createdTime = $createdTime;
}
public function getCreatedTime()
{
return $this->createdTime;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
/**
* @param Google_Service_Drive_TeamDriveRestrictions
*/
public function setRestrictions(Google_Service_Drive_TeamDriveRestrictions $restrictions)
{
$this->restrictions = $restrictions;
}
/**
* @return Google_Service_Drive_TeamDriveRestrictions
*/
public function getRestrictions()
{
return $this->restrictions;
}
public function setThemeId($themeId)
{
$this->themeId = $themeId;
}
public function getThemeId()
{
return $this->themeId;
}
}

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_TeamDriveBackgroundImageFile extends Google_Model
{
public $id;
public $width;
public $xCoordinate;
public $yCoordinate;
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setWidth($width)
{
$this->width = $width;
}
public function getWidth()
{
return $this->width;
}
public function setXCoordinate($xCoordinate)
{
$this->xCoordinate = $xCoordinate;
}
public function getXCoordinate()
{
return $this->xCoordinate;
}
public function setYCoordinate($yCoordinate)
{
$this->yCoordinate = $yCoordinate;
}
public function getYCoordinate()
{
return $this->yCoordinate;
}
}

View File

@@ -0,0 +1,192 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_TeamDriveCapabilities extends Google_Model
{
public $canAddChildren;
public $canChangeCopyRequiresWriterPermissionRestriction;
public $canChangeDomainUsersOnlyRestriction;
public $canChangeTeamDriveBackground;
public $canChangeTeamMembersOnlyRestriction;
public $canComment;
public $canCopy;
public $canDeleteChildren;
public $canDeleteTeamDrive;
public $canDownload;
public $canEdit;
public $canListChildren;
public $canManageMembers;
public $canReadRevisions;
public $canRemoveChildren;
public $canRename;
public $canRenameTeamDrive;
public $canShare;
public $canTrashChildren;
public function setCanAddChildren($canAddChildren)
{
$this->canAddChildren = $canAddChildren;
}
public function getCanAddChildren()
{
return $this->canAddChildren;
}
public function setCanChangeCopyRequiresWriterPermissionRestriction($canChangeCopyRequiresWriterPermissionRestriction)
{
$this->canChangeCopyRequiresWriterPermissionRestriction = $canChangeCopyRequiresWriterPermissionRestriction;
}
public function getCanChangeCopyRequiresWriterPermissionRestriction()
{
return $this->canChangeCopyRequiresWriterPermissionRestriction;
}
public function setCanChangeDomainUsersOnlyRestriction($canChangeDomainUsersOnlyRestriction)
{
$this->canChangeDomainUsersOnlyRestriction = $canChangeDomainUsersOnlyRestriction;
}
public function getCanChangeDomainUsersOnlyRestriction()
{
return $this->canChangeDomainUsersOnlyRestriction;
}
public function setCanChangeTeamDriveBackground($canChangeTeamDriveBackground)
{
$this->canChangeTeamDriveBackground = $canChangeTeamDriveBackground;
}
public function getCanChangeTeamDriveBackground()
{
return $this->canChangeTeamDriveBackground;
}
public function setCanChangeTeamMembersOnlyRestriction($canChangeTeamMembersOnlyRestriction)
{
$this->canChangeTeamMembersOnlyRestriction = $canChangeTeamMembersOnlyRestriction;
}
public function getCanChangeTeamMembersOnlyRestriction()
{
return $this->canChangeTeamMembersOnlyRestriction;
}
public function setCanComment($canComment)
{
$this->canComment = $canComment;
}
public function getCanComment()
{
return $this->canComment;
}
public function setCanCopy($canCopy)
{
$this->canCopy = $canCopy;
}
public function getCanCopy()
{
return $this->canCopy;
}
public function setCanDeleteChildren($canDeleteChildren)
{
$this->canDeleteChildren = $canDeleteChildren;
}
public function getCanDeleteChildren()
{
return $this->canDeleteChildren;
}
public function setCanDeleteTeamDrive($canDeleteTeamDrive)
{
$this->canDeleteTeamDrive = $canDeleteTeamDrive;
}
public function getCanDeleteTeamDrive()
{
return $this->canDeleteTeamDrive;
}
public function setCanDownload($canDownload)
{
$this->canDownload = $canDownload;
}
public function getCanDownload()
{
return $this->canDownload;
}
public function setCanEdit($canEdit)
{
$this->canEdit = $canEdit;
}
public function getCanEdit()
{
return $this->canEdit;
}
public function setCanListChildren($canListChildren)
{
$this->canListChildren = $canListChildren;
}
public function getCanListChildren()
{
return $this->canListChildren;
}
public function setCanManageMembers($canManageMembers)
{
$this->canManageMembers = $canManageMembers;
}
public function getCanManageMembers()
{
return $this->canManageMembers;
}
public function setCanReadRevisions($canReadRevisions)
{
$this->canReadRevisions = $canReadRevisions;
}
public function getCanReadRevisions()
{
return $this->canReadRevisions;
}
public function setCanRemoveChildren($canRemoveChildren)
{
$this->canRemoveChildren = $canRemoveChildren;
}
public function getCanRemoveChildren()
{
return $this->canRemoveChildren;
}
public function setCanRename($canRename)
{
$this->canRename = $canRename;
}
public function getCanRename()
{
return $this->canRename;
}
public function setCanRenameTeamDrive($canRenameTeamDrive)
{
$this->canRenameTeamDrive = $canRenameTeamDrive;
}
public function getCanRenameTeamDrive()
{
return $this->canRenameTeamDrive;
}
public function setCanShare($canShare)
{
$this->canShare = $canShare;
}
public function getCanShare()
{
return $this->canShare;
}
public function setCanTrashChildren($canTrashChildren)
{
$this->canTrashChildren = $canTrashChildren;
}
public function getCanTrashChildren()
{
return $this->canTrashChildren;
}
}

View File

@@ -0,0 +1,56 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_TeamDriveList extends Google_Collection
{
protected $collection_key = 'teamDrives';
public $kind;
public $nextPageToken;
protected $teamDrivesType = 'Google_Service_Drive_TeamDrive';
protected $teamDrivesDataType = 'array';
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Google_Service_Drive_TeamDrive
*/
public function setTeamDrives($teamDrives)
{
$this->teamDrives = $teamDrives;
}
/**
* @return Google_Service_Drive_TeamDrive
*/
public function getTeamDrives()
{
return $this->teamDrives;
}
}

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_TeamDriveRestrictions extends Google_Model
{
public $adminManagedRestrictions;
public $copyRequiresWriterPermission;
public $domainUsersOnly;
public $teamMembersOnly;
public function setAdminManagedRestrictions($adminManagedRestrictions)
{
$this->adminManagedRestrictions = $adminManagedRestrictions;
}
public function getAdminManagedRestrictions()
{
return $this->adminManagedRestrictions;
}
public function setCopyRequiresWriterPermission($copyRequiresWriterPermission)
{
$this->copyRequiresWriterPermission = $copyRequiresWriterPermission;
}
public function getCopyRequiresWriterPermission()
{
return $this->copyRequiresWriterPermission;
}
public function setDomainUsersOnly($domainUsersOnly)
{
$this->domainUsersOnly = $domainUsersOnly;
}
public function getDomainUsersOnly()
{
return $this->domainUsersOnly;
}
public function setTeamMembersOnly($teamMembersOnly)
{
$this->teamMembersOnly = $teamMembersOnly;
}
public function getTeamMembersOnly()
{
return $this->teamMembersOnly;
}
}

View File

@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 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.
*/
class Google_Service_Drive_User extends Google_Model
{
public $displayName;
public $emailAddress;
public $kind;
public $me;
public $permissionId;
public $photoLink;
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
public function getDisplayName()
{
return $this->displayName;
}
public function setEmailAddress($emailAddress)
{
$this->emailAddress = $emailAddress;
}
public function getEmailAddress()
{
return $this->emailAddress;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setMe($me)
{
$this->me = $me;
}
public function getMe()
{
return $this->me;
}
public function setPermissionId($permissionId)
{
$this->permissionId = $permissionId;
}
public function getPermissionId()
{
return $this->permissionId;
}
public function setPhotoLink($photoLink)
{
$this->photoLink = $photoLink;
}
public function getPhotoLink()
{
return $this->photoLink;
}
}