PluginProbe
Authorizer / 2.6.10
Authorizer v2.6.10
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / vendor / google-api-php-client / src / Google / Service / Drive.php

Drive.php in Authorizer 2.6.10, at vendor/google-api-php-client/src/Google/Service/Drive.php

3,295 lines 87.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16 /**
17 * Service definition for Drive (v3).
18 *
19 * <p>
20 * The API to interact with Drive.</p>
21 *
22 * <p>
23 * For more information about this service, see the API
24 * <a href="https://developers.google.com/drive/" target="_blank">Documentation</a>
25 * </p>
26 *
27 * @author Google, Inc.
28 */
29 class Google_Service_Drive extends Google_Service
30 {
31 /** View and manage the files in your Google Drive. */
32 const DRIVE =
33 "https://www.googleapis.com/auth/drive";
34 /** View and manage its own configuration data in your Google Drive. */
35 const DRIVE_APPDATA =
36 "https://www.googleapis.com/auth/drive.appdata";
37 /** View and manage Google Drive files and folders that you have opened or created with this app. */
38 const DRIVE_FILE =
39 "https://www.googleapis.com/auth/drive.file";
40 /** View and manage metadata of files in your Google Drive. */
41 const DRIVE_METADATA =
42 "https://www.googleapis.com/auth/drive.metadata";
43 /** View metadata for files in your Google Drive. */
44 const DRIVE_METADATA_READONLY =
45 "https://www.googleapis.com/auth/drive.metadata.readonly";
46 /** View the photos, videos and albums in your Google Photos. */
47 const DRIVE_PHOTOS_READONLY =
48 "https://www.googleapis.com/auth/drive.photos.readonly";
49 /** View the files in your Google Drive. */
50 const DRIVE_READONLY =
51 "https://www.googleapis.com/auth/drive.readonly";
52 /** Modify your Google Apps Script scripts' behavior. */
53 const DRIVE_SCRIPTS =
54 "https://www.googleapis.com/auth/drive.scripts";
55
56 public $about;
57 public $changes;
58 public $channels;
59 public $comments;
60 public $files;
61 public $permissions;
62 public $replies;
63 public $revisions;
64
65
66 /**
67 * Constructs the internal representation of the Drive service.
68 *
69 * @param Google_Client $client
70 */
71 public function __construct(Google_Client $client)
72 {
73 parent::__construct($client);
74 $this->rootUrl = 'https://www.googleapis.com/';
75 $this->servicePath = 'drive/v3/';
76 $this->version = 'v3';
77 $this->serviceName = 'drive';
78
79 $this->about = new Google_Service_Drive_About_Resource(
80 $this,
81 $this->serviceName,
82 'about',
83 array(
84 'methods' => array(
85 'get' => array(
86 'path' => 'about',
87 'httpMethod' => 'GET',
88 'parameters' => array(),
89 ),
90 )
91 )
92 );
93 $this->changes = new Google_Service_Drive_Changes_Resource(
94 $this,
95 $this->serviceName,
96 'changes',
97 array(
98 'methods' => array(
99 'getStartPageToken' => array(
100 'path' => 'changes/startPageToken',
101 'httpMethod' => 'GET',
102 'parameters' => array(),
103 ),'list' => array(
104 'path' => 'changes',
105 'httpMethod' => 'GET',
106 'parameters' => array(
107 'pageToken' => array(
108 'location' => 'query',
109 'type' => 'string',
110 'required' => true,
111 ),
112 'includeRemoved' => array(
113 'location' => 'query',
114 'type' => 'boolean',
115 ),
116 'pageSize' => array(
117 'location' => 'query',
118 'type' => 'integer',
119 ),
120 'restrictToMyDrive' => array(
121 'location' => 'query',
122 'type' => 'boolean',
123 ),
124 'spaces' => array(
125 'location' => 'query',
126 'type' => 'string',
127 ),
128 ),
129 ),'watch' => array(
130 'path' => 'changes/watch',
131 'httpMethod' => 'POST',
132 'parameters' => array(
133 'pageToken' => array(
134 'location' => 'query',
135 'type' => 'string',
136 'required' => true,
137 ),
138 'includeRemoved' => array(
139 'location' => 'query',
140 'type' => 'boolean',
141 ),
142 'pageSize' => array(
143 'location' => 'query',
144 'type' => 'integer',
145 ),
146 'restrictToMyDrive' => array(
147 'location' => 'query',
148 'type' => 'boolean',
149 ),
150 'spaces' => array(
151 'location' => 'query',
152 'type' => 'string',
153 ),
154 ),
155 ),
156 )
157 )
158 );
159 $this->channels = new Google_Service_Drive_Channels_Resource(
160 $this,
161 $this->serviceName,
162 'channels',
163 array(
164 'methods' => array(
165 'stop' => array(
166 'path' => 'channels/stop',
167 'httpMethod' => 'POST',
168 'parameters' => array(),
169 ),
170 )
171 )
172 );
173 $this->comments = new Google_Service_Drive_Comments_Resource(
174 $this,
175 $this->serviceName,
176 'comments',
177 array(
178 'methods' => array(
179 'create' => array(
180 'path' => 'files/{fileId}/comments',
181 'httpMethod' => 'POST',
182 'parameters' => array(
183 'fileId' => array(
184 'location' => 'path',
185 'type' => 'string',
186 'required' => true,
187 ),
188 ),
189 ),'delete' => array(
190 'path' => 'files/{fileId}/comments/{commentId}',
191 'httpMethod' => 'DELETE',
192 'parameters' => array(
193 'fileId' => array(
194 'location' => 'path',
195 'type' => 'string',
196 'required' => true,
197 ),
198 'commentId' => array(
199 'location' => 'path',
200 'type' => 'string',
201 'required' => true,
202 ),
203 ),
204 ),'get' => array(
205 'path' => 'files/{fileId}/comments/{commentId}',
206 'httpMethod' => 'GET',
207 'parameters' => array(
208 'fileId' => array(
209 'location' => 'path',
210 'type' => 'string',
211 'required' => true,
212 ),
213 'commentId' => array(
214 'location' => 'path',
215 'type' => 'string',
216 'required' => true,
217 ),
218 'includeDeleted' => array(
219 'location' => 'query',
220 'type' => 'boolean',
221 ),
222 ),
223 ),'list' => array(
224 'path' => 'files/{fileId}/comments',
225 'httpMethod' => 'GET',
226 'parameters' => array(
227 'fileId' => array(
228 'location' => 'path',
229 'type' => 'string',
230 'required' => true,
231 ),
232 'includeDeleted' => array(
233 'location' => 'query',
234 'type' => 'boolean',
235 ),
236 'pageSize' => array(
237 'location' => 'query',
238 'type' => 'integer',
239 ),
240 'pageToken' => array(
241 'location' => 'query',
242 'type' => 'string',
243 ),
244 'startModifiedTime' => array(
245 'location' => 'query',
246 'type' => 'string',
247 ),
248 ),
249 ),'update' => array(
250 'path' => 'files/{fileId}/comments/{commentId}',
251 'httpMethod' => 'PATCH',
252 'parameters' => array(
253 'fileId' => array(
254 'location' => 'path',
255 'type' => 'string',
256 'required' => true,
257 ),
258 'commentId' => array(
259 'location' => 'path',
260 'type' => 'string',
261 'required' => true,
262 ),
263 ),
264 ),
265 )
266 )
267 );
268 $this->files = new Google_Service_Drive_Files_Resource(
269 $this,
270 $this->serviceName,
271 'files',
272 array(
273 'methods' => array(
274 'copy' => array(
275 'path' => 'files/{fileId}/copy',
276 'httpMethod' => 'POST',
277 'parameters' => array(
278 'fileId' => array(
279 'location' => 'path',
280 'type' => 'string',
281 'required' => true,
282 ),
283 'ignoreDefaultVisibility' => array(
284 'location' => 'query',
285 'type' => 'boolean',
286 ),
287 'keepRevisionForever' => array(
288 'location' => 'query',
289 'type' => 'boolean',
290 ),
291 'ocrLanguage' => array(
292 'location' => 'query',
293 'type' => 'string',
294 ),
295 ),
296 ),'create' => array(
297 'path' => 'files',
298 'httpMethod' => 'POST',
299 'parameters' => array(
300 'ignoreDefaultVisibility' => array(
301 'location' => 'query',
302 'type' => 'boolean',
303 ),
304 'keepRevisionForever' => array(
305 'location' => 'query',
306 'type' => 'boolean',
307 ),
308 'ocrLanguage' => array(
309 'location' => 'query',
310 'type' => 'string',
311 ),
312 'useContentAsIndexableText' => array(
313 'location' => 'query',
314 'type' => 'boolean',
315 ),
316 ),
317 ),'delete' => array(
318 'path' => 'files/{fileId}',
319 'httpMethod' => 'DELETE',
320 'parameters' => array(
321 'fileId' => array(
322 'location' => 'path',
323 'type' => 'string',
324 'required' => true,
325 ),
326 ),
327 ),'emptyTrash' => array(
328 'path' => 'files/trash',
329 'httpMethod' => 'DELETE',
330 'parameters' => array(),
331 ),'export' => array(
332 'path' => 'files/{fileId}/export',
333 'httpMethod' => 'GET',
334 'parameters' => array(
335 'fileId' => array(
336 'location' => 'path',
337 'type' => 'string',
338 'required' => true,
339 ),
340 'mimeType' => array(
341 'location' => 'query',
342 'type' => 'string',
343 'required' => true,
344 ),
345 ),
346 ),'generateIds' => array(
347 'path' => 'files/generateIds',
348 'httpMethod' => 'GET',
349 'parameters' => array(
350 'count' => array(
351 'location' => 'query',
352 'type' => 'integer',
353 ),
354 'space' => array(
355 'location' => 'query',
356 'type' => 'string',
357 ),
358 ),
359 ),'get' => array(
360 'path' => 'files/{fileId}',
361 'httpMethod' => 'GET',
362 'parameters' => array(
363 'fileId' => array(
364 'location' => 'path',
365 'type' => 'string',
366 'required' => true,
367 ),
368 'acknowledgeAbuse' => array(
369 'location' => 'query',
370 'type' => 'boolean',
371 ),
372 ),
373 ),'list' => array(
374 'path' => 'files',
375 'httpMethod' => 'GET',
376 'parameters' => array(
377 'corpus' => array(
378 'location' => 'query',
379 'type' => 'string',
380 ),
381 'orderBy' => array(
382 'location' => 'query',
383 'type' => 'string',
384 ),
385 'pageSize' => array(
386 'location' => 'query',
387 'type' => 'integer',
388 ),
389 'pageToken' => array(
390 'location' => 'query',
391 'type' => 'string',
392 ),
393 'q' => array(
394 'location' => 'query',
395 'type' => 'string',
396 ),
397 'spaces' => array(
398 'location' => 'query',
399 'type' => 'string',
400 ),
401 ),
402 ),'update' => array(
403 'path' => 'files/{fileId}',
404 'httpMethod' => 'PATCH',
405 'parameters' => array(
406 'fileId' => array(
407 'location' => 'path',
408 'type' => 'string',
409 'required' => true,
410 ),
411 'addParents' => array(
412 'location' => 'query',
413 'type' => 'string',
414 ),
415 'keepRevisionForever' => array(
416 'location' => 'query',
417 'type' => 'boolean',
418 ),
419 'ocrLanguage' => array(
420 'location' => 'query',
421 'type' => 'string',
422 ),
423 'removeParents' => array(
424 'location' => 'query',
425 'type' => 'string',
426 ),
427 'useContentAsIndexableText' => array(
428 'location' => 'query',
429 'type' => 'boolean',
430 ),
431 ),
432 ),'watch' => array(
433 'path' => 'files/{fileId}/watch',
434 'httpMethod' => 'POST',
435 'parameters' => array(
436 'fileId' => array(
437 'location' => 'path',
438 'type' => 'string',
439 'required' => true,
440 ),
441 'acknowledgeAbuse' => array(
442 'location' => 'query',
443 'type' => 'boolean',
444 ),
445 ),
446 ),
447 )
448 )
449 );
450 $this->permissions = new Google_Service_Drive_Permissions_Resource(
451 $this,
452 $this->serviceName,
453 'permissions',
454 array(
455 'methods' => array(
456 'create' => array(
457 'path' => 'files/{fileId}/permissions',
458 'httpMethod' => 'POST',
459 'parameters' => array(
460 'fileId' => array(
461 'location' => 'path',
462 'type' => 'string',
463 'required' => true,
464 ),
465 'emailMessage' => array(
466 'location' => 'query',
467 'type' => 'string',
468 ),
469 'sendNotificationEmail' => array(
470 'location' => 'query',
471 'type' => 'boolean',
472 ),
473 'transferOwnership' => array(
474 'location' => 'query',
475 'type' => 'boolean',
476 ),
477 ),
478 ),'delete' => array(
479 'path' => 'files/{fileId}/permissions/{permissionId}',
480 'httpMethod' => 'DELETE',
481 'parameters' => array(
482 'fileId' => array(
483 'location' => 'path',
484 'type' => 'string',
485 'required' => true,
486 ),
487 'permissionId' => array(
488 'location' => 'path',
489 'type' => 'string',
490 'required' => true,
491 ),
492 ),
493 ),'get' => array(
494 'path' => 'files/{fileId}/permissions/{permissionId}',
495 'httpMethod' => 'GET',
496 'parameters' => array(
497 'fileId' => array(
498 'location' => 'path',
499 'type' => 'string',
500 'required' => true,
501 ),
502 'permissionId' => array(
503 'location' => 'path',
504 'type' => 'string',
505 'required' => true,
506 ),
507 ),
508 ),'list' => array(
509 'path' => 'files/{fileId}/permissions',
510 'httpMethod' => 'GET',
511 'parameters' => array(
512 'fileId' => array(
513 'location' => 'path',
514 'type' => 'string',
515 'required' => true,
516 ),
517 ),
518 ),'update' => array(
519 'path' => 'files/{fileId}/permissions/{permissionId}',
520 'httpMethod' => 'PATCH',
521 'parameters' => array(
522 'fileId' => array(
523 'location' => 'path',
524 'type' => 'string',
525 'required' => true,
526 ),
527 'permissionId' => array(
528 'location' => 'path',
529 'type' => 'string',
530 'required' => true,
531 ),
532 'transferOwnership' => array(
533 'location' => 'query',
534 'type' => 'boolean',
535 ),
536 ),
537 ),
538 )
539 )
540 );
541 $this->replies = new Google_Service_Drive_Replies_Resource(
542 $this,
543 $this->serviceName,
544 'replies',
545 array(
546 'methods' => array(
547 'create' => array(
548 'path' => 'files/{fileId}/comments/{commentId}/replies',
549 'httpMethod' => 'POST',
550 'parameters' => array(
551 'fileId' => array(
552 'location' => 'path',
553 'type' => 'string',
554 'required' => true,
555 ),
556 'commentId' => array(
557 'location' => 'path',
558 'type' => 'string',
559 'required' => true,
560 ),
561 ),
562 ),'delete' => array(
563 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
564 'httpMethod' => 'DELETE',
565 'parameters' => array(
566 'fileId' => array(
567 'location' => 'path',
568 'type' => 'string',
569 'required' => true,
570 ),
571 'commentId' => array(
572 'location' => 'path',
573 'type' => 'string',
574 'required' => true,
575 ),
576 'replyId' => array(
577 'location' => 'path',
578 'type' => 'string',
579 'required' => true,
580 ),
581 ),
582 ),'get' => array(
583 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
584 'httpMethod' => 'GET',
585 'parameters' => array(
586 'fileId' => array(
587 'location' => 'path',
588 'type' => 'string',
589 'required' => true,
590 ),
591 'commentId' => array(
592 'location' => 'path',
593 'type' => 'string',
594 'required' => true,
595 ),
596 'replyId' => array(
597 'location' => 'path',
598 'type' => 'string',
599 'required' => true,
600 ),
601 'includeDeleted' => array(
602 'location' => 'query',
603 'type' => 'boolean',
604 ),
605 ),
606 ),'list' => array(
607 'path' => 'files/{fileId}/comments/{commentId}/replies',
608 'httpMethod' => 'GET',
609 'parameters' => array(
610 'fileId' => array(
611 'location' => 'path',
612 'type' => 'string',
613 'required' => true,
614 ),
615 'commentId' => array(
616 'location' => 'path',
617 'type' => 'string',
618 'required' => true,
619 ),
620 'includeDeleted' => array(
621 'location' => 'query',
622 'type' => 'boolean',
623 ),
624 'pageSize' => array(
625 'location' => 'query',
626 'type' => 'integer',
627 ),
628 'pageToken' => array(
629 'location' => 'query',
630 'type' => 'string',
631 ),
632 ),
633 ),'update' => array(
634 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
635 'httpMethod' => 'PATCH',
636 'parameters' => array(
637 'fileId' => array(
638 'location' => 'path',
639 'type' => 'string',
640 'required' => true,
641 ),
642 'commentId' => array(
643 'location' => 'path',
644 'type' => 'string',
645 'required' => true,
646 ),
647 'replyId' => array(
648 'location' => 'path',
649 'type' => 'string',
650 'required' => true,
651 ),
652 ),
653 ),
654 )
655 )
656 );
657 $this->revisions = new Google_Service_Drive_Revisions_Resource(
658 $this,
659 $this->serviceName,
660 'revisions',
661 array(
662 'methods' => array(
663 'delete' => array(
664 'path' => 'files/{fileId}/revisions/{revisionId}',
665 'httpMethod' => 'DELETE',
666 'parameters' => array(
667 'fileId' => array(
668 'location' => 'path',
669 'type' => 'string',
670 'required' => true,
671 ),
672 'revisionId' => array(
673 'location' => 'path',
674 'type' => 'string',
675 'required' => true,
676 ),
677 ),
678 ),'get' => array(
679 'path' => 'files/{fileId}/revisions/{revisionId}',
680 'httpMethod' => 'GET',
681 'parameters' => array(
682 'fileId' => array(
683 'location' => 'path',
684 'type' => 'string',
685 'required' => true,
686 ),
687 'revisionId' => array(
688 'location' => 'path',
689 'type' => 'string',
690 'required' => true,
691 ),
692 'acknowledgeAbuse' => array(
693 'location' => 'query',
694 'type' => 'boolean',
695 ),
696 ),
697 ),'list' => array(
698 'path' => 'files/{fileId}/revisions',
699 'httpMethod' => 'GET',
700 'parameters' => array(
701 'fileId' => array(
702 'location' => 'path',
703 'type' => 'string',
704 'required' => true,
705 ),
706 ),
707 ),'update' => array(
708 'path' => 'files/{fileId}/revisions/{revisionId}',
709 'httpMethod' => 'PATCH',
710 'parameters' => array(
711 'fileId' => array(
712 'location' => 'path',
713 'type' => 'string',
714 'required' => true,
715 ),
716 'revisionId' => array(
717 'location' => 'path',
718 'type' => 'string',
719 'required' => true,
720 ),
721 ),
722 ),
723 )
724 )
725 );
726 }
727 }
728
729
730 /**
731 * The "about" collection of methods.
732 * Typical usage is:
733 * <code>
734 * $driveService = new Google_Service_Drive(...);
735 * $about = $driveService->about;
736 * </code>
737 */
738 class Google_Service_Drive_About_Resource extends Google_Service_Resource
739 {
740
741 /**
742 * Gets information about the user, the user's Drive, and system capabilities.
743 * (about.get)
744 *
745 * @param array $optParams Optional parameters.
746 * @return Google_Service_Drive_About
747 */
748 public function get($optParams = array())
749 {
750 $params = array();
751 $params = array_merge($params, $optParams);
752 return $this->call('get', array($params), "Google_Service_Drive_About");
753 }
754 }
755
756 /**
757 * The "changes" collection of methods.
758 * Typical usage is:
759 * <code>
760 * $driveService = new Google_Service_Drive(...);
761 * $changes = $driveService->changes;
762 * </code>
763 */
764 class Google_Service_Drive_Changes_Resource extends Google_Service_Resource
765 {
766
767 /**
768 * Gets the starting pageToken for listing future changes.
769 * (changes.getStartPageToken)
770 *
771 * @param array $optParams Optional parameters.
772 * @return Google_Service_Drive_StartPageToken
773 */
774 public function getStartPageToken($optParams = array())
775 {
776 $params = array();
777 $params = array_merge($params, $optParams);
778 return $this->call('getStartPageToken', array($params), "Google_Service_Drive_StartPageToken");
779 }
780
781 /**
782 * Lists changes for a user. (changes.listChanges)
783 *
784 * @param string $pageToken The token for continuing a previous list request on
785 * the next page. This should be set to the value of 'nextPageToken' from the
786 * previous response or to the response from the getStartPageToken method.
787 * @param array $optParams Optional parameters.
788 *
789 * @opt_param bool includeRemoved Whether to include changes indicating that
790 * items have left the view of the changes list, for example by deletion or lost
791 * access.
792 * @opt_param int pageSize The maximum number of changes to return per page.
793 * @opt_param bool restrictToMyDrive Whether to restrict the results to changes
794 * inside the My Drive hierarchy. This omits changes to files such as those in
795 * the Application Data folder or shared files which have not been added to My
796 * Drive.
797 * @opt_param string spaces A comma-separated list of spaces to query within the
798 * user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
799 * @return Google_Service_Drive_ChangeList
800 */
801 public function listChanges($pageToken, $optParams = array())
802 {
803 $params = array('pageToken' => $pageToken);
804 $params = array_merge($params, $optParams);
805 return $this->call('list', array($params), "Google_Service_Drive_ChangeList");
806 }
807
808 /**
809 * Subscribes to changes for a user. (changes.watch)
810 *
811 * @param string $pageToken The token for continuing a previous list request on
812 * the next page. This should be set to the value of 'nextPageToken' from the
813 * previous response or to the response from the getStartPageToken method.
814 * @param Google_Channel $postBody
815 * @param array $optParams Optional parameters.
816 *
817 * @opt_param bool includeRemoved Whether to include changes indicating that
818 * items have left the view of the changes list, for example by deletion or lost
819 * access.
820 * @opt_param int pageSize The maximum number of changes to return per page.
821 * @opt_param bool restrictToMyDrive Whether to restrict the results to changes
822 * inside the My Drive hierarchy. This omits changes to files such as those in
823 * the Application Data folder or shared files which have not been added to My
824 * Drive.
825 * @opt_param string spaces A comma-separated list of spaces to query within the
826 * user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
827 * @return Google_Service_Drive_Channel
828 */
829 public function watch($pageToken, Google_Service_Drive_Channel $postBody, $optParams = array())
830 {
831 $params = array('pageToken' => $pageToken, 'postBody' => $postBody);
832 $params = array_merge($params, $optParams);
833 return $this->call('watch', array($params), "Google_Service_Drive_Channel");
834 }
835 }
836
837 /**
838 * The "channels" collection of methods.
839 * Typical usage is:
840 * <code>
841 * $driveService = new Google_Service_Drive(...);
842 * $channels = $driveService->channels;
843 * </code>
844 */
845 class Google_Service_Drive_Channels_Resource extends Google_Service_Resource
846 {
847
848 /**
849 * Stop watching resources through this channel (channels.stop)
850 *
851 * @param Google_Channel $postBody
852 * @param array $optParams Optional parameters.
853 */
854 public function stop(Google_Service_Drive_Channel $postBody, $optParams = array())
855 {
856 $params = array('postBody' => $postBody);
857 $params = array_merge($params, $optParams);
858 return $this->call('stop', array($params));
859 }
860 }
861
862 /**
863 * The "comments" collection of methods.
864 * Typical usage is:
865 * <code>
866 * $driveService = new Google_Service_Drive(...);
867 * $comments = $driveService->comments;
868 * </code>
869 */
870 class Google_Service_Drive_Comments_Resource extends Google_Service_Resource
871 {
872
873 /**
874 * Creates a new comment on a file. (comments.create)
875 *
876 * @param string $fileId The ID of the file.
877 * @param Google_Comment $postBody
878 * @param array $optParams Optional parameters.
879 * @return Google_Service_Drive_Comment
880 */
881 public function create($fileId, Google_Service_Drive_Comment $postBody, $optParams = array())
882 {
883 $params = array('fileId' => $fileId, 'postBody' => $postBody);
884 $params = array_merge($params, $optParams);
885 return $this->call('create', array($params), "Google_Service_Drive_Comment");
886 }
887
888 /**
889 * Deletes a comment. (comments.delete)
890 *
891 * @param string $fileId The ID of the file.
892 * @param string $commentId The ID of the comment.
893 * @param array $optParams Optional parameters.
894 */
895 public function delete($fileId, $commentId, $optParams = array())
896 {
897 $params = array('fileId' => $fileId, 'commentId' => $commentId);
898 $params = array_merge($params, $optParams);
899 return $this->call('delete', array($params));
900 }
901
902 /**
903 * Gets a comment by ID. (comments.get)
904 *
905 * @param string $fileId The ID of the file.
906 * @param string $commentId The ID of the comment.
907 * @param array $optParams Optional parameters.
908 *
909 * @opt_param bool includeDeleted Whether to return deleted comments. Deleted
910 * comments will not include their original content.
911 * @return Google_Service_Drive_Comment
912 */
913 public function get($fileId, $commentId, $optParams = array())
914 {
915 $params = array('fileId' => $fileId, 'commentId' => $commentId);
916 $params = array_merge($params, $optParams);
917 return $this->call('get', array($params), "Google_Service_Drive_Comment");
918 }
919
920 /**
921 * Lists a file's comments. (comments.listComments)
922 *
923 * @param string $fileId The ID of the file.
924 * @param array $optParams Optional parameters.
925 *
926 * @opt_param bool includeDeleted Whether to include deleted comments. Deleted
927 * comments will not include their original content.
928 * @opt_param int pageSize The maximum number of comments to return per page.
929 * @opt_param string pageToken The token for continuing a previous list request
930 * on the next page. This should be set to the value of 'nextPageToken' from the
931 * previous response.
932 * @opt_param string startModifiedTime The minimum value of 'modifiedTime' for
933 * the result comments (RFC 3339 date-time).
934 * @return Google_Service_Drive_CommentList
935 */
936 public function listComments($fileId, $optParams = array())
937 {
938 $params = array('fileId' => $fileId);
939 $params = array_merge($params, $optParams);
940 return $this->call('list', array($params), "Google_Service_Drive_CommentList");
941 }
942
943 /**
944 * Updates a comment with patch semantics. (comments.update)
945 *
946 * @param string $fileId The ID of the file.
947 * @param string $commentId The ID of the comment.
948 * @param Google_Comment $postBody
949 * @param array $optParams Optional parameters.
950 * @return Google_Service_Drive_Comment
951 */
952 public function update($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array())
953 {
954 $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
955 $params = array_merge($params, $optParams);
956 return $this->call('update', array($params), "Google_Service_Drive_Comment");
957 }
958 }
959
960 /**
961 * The "files" collection of methods.
962 * Typical usage is:
963 * <code>
964 * $driveService = new Google_Service_Drive(...);
965 * $files = $driveService->files;
966 * </code>
967 */
968 class Google_Service_Drive_Files_Resource extends Google_Service_Resource
969 {
970
971 /**
972 * Creates a copy of a file and applies any requested updates with patch
973 * semantics. (files.copy)
974 *
975 * @param string $fileId The ID of the file.
976 * @param Google_DriveFile $postBody
977 * @param array $optParams Optional parameters.
978 *
979 * @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's
980 * default visibility settings for the created file. Domain administrators can
981 * choose to make all uploaded files visible to the domain by default; this
982 * parameter bypasses that behavior for the request. Permissions are still
983 * inherited from parent folders.
984 * @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in
985 * the new head revision. This is only applicable to files with binary content
986 * in Drive.
987 * @opt_param string ocrLanguage A language hint for OCR processing during image
988 * import (ISO 639-1 code).
989 * @return Google_Service_Drive_DriveFile
990 */
991 public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array())
992 {
993 $params = array('fileId' => $fileId, 'postBody' => $postBody);
994 $params = array_merge($params, $optParams);
995 return $this->call('copy', array($params), "Google_Service_Drive_DriveFile");
996 }
997
998 /**
999 * Creates a new file. (files.create)
1000 *
1001 * @param Google_DriveFile $postBody
1002 * @param array $optParams Optional parameters.
1003 *
1004 * @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's
1005 * default visibility settings for the created file. Domain administrators can
1006 * choose to make all uploaded files visible to the domain by default; this
1007 * parameter bypasses that behavior for the request. Permissions are still
1008 * inherited from parent folders.
1009 * @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in
1010 * the new head revision. This is only applicable to files with binary content
1011 * in Drive.
1012 * @opt_param string ocrLanguage A language hint for OCR processing during image
1013 * import (ISO 639-1 code).
1014 * @opt_param bool useContentAsIndexableText Whether to use the uploaded content
1015 * as indexable text.
1016 * @return Google_Service_Drive_DriveFile
1017 */
1018 public function create(Google_Service_Drive_DriveFile $postBody, $optParams = array())
1019 {
1020 $params = array('postBody' => $postBody);
1021 $params = array_merge($params, $optParams);
1022 return $this->call('create', array($params), "Google_Service_Drive_DriveFile");
1023 }
1024
1025 /**
1026 * Permanently deletes a file owned by the user without moving it to the trash.
1027 * If the target is a folder, all descendants owned by the user are also
1028 * deleted. (files.delete)
1029 *
1030 * @param string $fileId The ID of the file.
1031 * @param array $optParams Optional parameters.
1032 */
1033 public function delete($fileId, $optParams = array())
1034 {
1035 $params = array('fileId' => $fileId);
1036 $params = array_merge($params, $optParams);
1037 return $this->call('delete', array($params));
1038 }
1039
1040 /**
1041 * Permanently deletes all of the user's trashed files. (files.emptyTrash)
1042 *
1043 * @param array $optParams Optional parameters.
1044 */
1045 public function emptyTrash($optParams = array())
1046 {
1047 $params = array();
1048 $params = array_merge($params, $optParams);
1049 return $this->call('emptyTrash', array($params));
1050 }
1051
1052 /**
1053 * Exports a Google Doc to the requested MIME type and returns the exported
1054 * content. (files.export)
1055 *
1056 * @param string $fileId The ID of the file.
1057 * @param string $mimeType The MIME type of the format requested for this
1058 * export.
1059 * @param array $optParams Optional parameters.
1060 */
1061 public function export($fileId, $mimeType, $optParams = array())
1062 {
1063 $params = array('fileId' => $fileId, 'mimeType' => $mimeType);
1064 $params = array_merge($params, $optParams);
1065 return $this->call('export', array($params));
1066 }
1067
1068 /**
1069 * Generates a set of file IDs which can be provided in create requests.
1070 * (files.generateIds)
1071 *
1072 * @param array $optParams Optional parameters.
1073 *
1074 * @opt_param int count The number of IDs to return.
1075 * @opt_param string space The space in which the IDs can be used to create new
1076 * files. Supported values are 'drive' and 'appDataFolder'.
1077 * @return Google_Service_Drive_GeneratedIds
1078 */
1079 public function generateIds($optParams = array())
1080 {
1081 $params = array();
1082 $params = array_merge($params, $optParams);
1083 return $this->call('generateIds', array($params), "Google_Service_Drive_GeneratedIds");
1084 }
1085
1086 /**
1087 * Gets a file's metadata or content by ID. (files.get)
1088 *
1089 * @param string $fileId The ID of the file.
1090 * @param array $optParams Optional parameters.
1091 *
1092 * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
1093 * of downloading known malware or other abusive files. This is only applicable
1094 * when alt=media.
1095 * @return Google_Service_Drive_DriveFile
1096 */
1097 public function get($fileId, $optParams = array())
1098 {
1099 $params = array('fileId' => $fileId);
1100 $params = array_merge($params, $optParams);
1101 return $this->call('get', array($params), "Google_Service_Drive_DriveFile");
1102 }
1103
1104 /**
1105 * Lists or searches files. (files.listFiles)
1106 *
1107 * @param array $optParams Optional parameters.
1108 *
1109 * @opt_param string corpus The source of files to list.
1110 * @opt_param string orderBy A comma-separated list of sort keys. Valid keys are
1111 * 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name',
1112 * 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and
1113 * 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed
1114 * with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime
1115 * desc,name. Please note that there is a current limitation for users with
1116 * approximately one million files in which the requested sort order is ignored.
1117 * @opt_param int pageSize The maximum number of files to return per page.
1118 * @opt_param string pageToken The token for continuing a previous list request
1119 * on the next page. This should be set to the value of 'nextPageToken' from the
1120 * previous response.
1121 * @opt_param string q A query for filtering the file results. See the "Search
1122 * for Files" guide for supported syntax.
1123 * @opt_param string spaces A comma-separated list of spaces to query within the
1124 * corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
1125 * @return Google_Service_Drive_FileList
1126 */
1127 public function listFiles($optParams = array())
1128 {
1129 $params = array();
1130 $params = array_merge($params, $optParams);
1131 return $this->call('list', array($params), "Google_Service_Drive_FileList");
1132 }
1133
1134 /**
1135 * Updates a file's metadata and/or content with patch semantics. (files.update)
1136 *
1137 * @param string $fileId The ID of the file.
1138 * @param Google_DriveFile $postBody
1139 * @param array $optParams Optional parameters.
1140 *
1141 * @opt_param string addParents A comma-separated list of parent IDs to add.
1142 * @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in
1143 * the new head revision. This is only applicable to files with binary content
1144 * in Drive.
1145 * @opt_param string ocrLanguage A language hint for OCR processing during image
1146 * import (ISO 639-1 code).
1147 * @opt_param string removeParents A comma-separated list of parent IDs to
1148 * remove.
1149 * @opt_param bool useContentAsIndexableText Whether to use the uploaded content
1150 * as indexable text.
1151 * @return Google_Service_Drive_DriveFile
1152 */
1153 public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array())
1154 {
1155 $params = array('fileId' => $fileId, 'postBody' => $postBody);
1156 $params = array_merge($params, $optParams);
1157 return $this->call('update', array($params), "Google_Service_Drive_DriveFile");
1158 }
1159
1160 /**
1161 * Subscribes to changes to a file (files.watch)
1162 *
1163 * @param string $fileId The ID of the file.
1164 * @param Google_Channel $postBody
1165 * @param array $optParams Optional parameters.
1166 *
1167 * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
1168 * of downloading known malware or other abusive files. This is only applicable
1169 * when alt=media.
1170 * @return Google_Service_Drive_Channel
1171 */
1172 public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array())
1173 {
1174 $params = array('fileId' => $fileId, 'postBody' => $postBody);
1175 $params = array_merge($params, $optParams);
1176 return $this->call('watch', array($params), "Google_Service_Drive_Channel");
1177 }
1178 }
1179
1180 /**
1181 * The "permissions" collection of methods.
1182 * Typical usage is:
1183 * <code>
1184 * $driveService = new Google_Service_Drive(...);
1185 * $permissions = $driveService->permissions;
1186 * </code>
1187 */
1188 class Google_Service_Drive_Permissions_Resource extends Google_Service_Resource
1189 {
1190
1191 /**
1192 * Creates a permission for a file. (permissions.create)
1193 *
1194 * @param string $fileId The ID of the file.
1195 * @param Google_Permission $postBody
1196 * @param array $optParams Optional parameters.
1197 *
1198 * @opt_param string emailMessage A custom message to include in the
1199 * notification email.
1200 * @opt_param bool sendNotificationEmail Whether to send a notification email
1201 * when sharing to users or groups. This defaults to true for users and groups,
1202 * and is not allowed for other requests. It must not be disabled for ownership
1203 * transfers.
1204 * @opt_param bool transferOwnership Whether to transfer ownership to the
1205 * specified user and downgrade the current owner to a writer. This parameter is
1206 * required as an acknowledgement of the side effect.
1207 * @return Google_Service_Drive_Permission
1208 */
1209 public function create($fileId, Google_Service_Drive_Permission $postBody, $optParams = array())
1210 {
1211 $params = array('fileId' => $fileId, 'postBody' => $postBody);
1212 $params = array_merge($params, $optParams);
1213 return $this->call('create', array($params), "Google_Service_Drive_Permission");
1214 }
1215
1216 /**
1217 * Deletes a permission. (permissions.delete)
1218 *
1219 * @param string $fileId The ID of the file.
1220 * @param string $permissionId The ID of the permission.
1221 * @param array $optParams Optional parameters.
1222 */
1223 public function delete($fileId, $permissionId, $optParams = array())
1224 {
1225 $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
1226 $params = array_merge($params, $optParams);
1227 return $this->call('delete', array($params));
1228 }
1229
1230 /**
1231 * Gets a permission by ID. (permissions.get)
1232 *
1233 * @param string $fileId The ID of the file.
1234 * @param string $permissionId The ID of the permission.
1235 * @param array $optParams Optional parameters.
1236 * @return Google_Service_Drive_Permission
1237 */
1238 public function get($fileId, $permissionId, $optParams = array())
1239 {
1240 $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
1241 $params = array_merge($params, $optParams);
1242 return $this->call('get', array($params), "Google_Service_Drive_Permission");
1243 }
1244
1245 /**
1246 * Lists a file's permissions. (permissions.listPermissions)
1247 *
1248 * @param string $fileId The ID of the file.
1249 * @param array $optParams Optional parameters.
1250 * @return Google_Service_Drive_PermissionList
1251 */
1252 public function listPermissions($fileId, $optParams = array())
1253 {
1254 $params = array('fileId' => $fileId);
1255 $params = array_merge($params, $optParams);
1256 return $this->call('list', array($params), "Google_Service_Drive_PermissionList");
1257 }
1258
1259 /**
1260 * Updates a permission with patch semantics. (permissions.update)
1261 *
1262 * @param string $fileId The ID of the file.
1263 * @param string $permissionId The ID of the permission.
1264 * @param Google_Permission $postBody
1265 * @param array $optParams Optional parameters.
1266 *
1267 * @opt_param bool transferOwnership Whether to transfer ownership to the
1268 * specified user and downgrade the current owner to a writer. This parameter is
1269 * required as an acknowledgement of the side effect.
1270 * @return Google_Service_Drive_Permission
1271 */
1272 public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array())
1273 {
1274 $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
1275 $params = array_merge($params, $optParams);
1276 return $this->call('update', array($params), "Google_Service_Drive_Permission");
1277 }
1278 }
1279
1280 /**
1281 * The "replies" collection of methods.
1282 * Typical usage is:
1283 * <code>
1284 * $driveService = new Google_Service_Drive(...);
1285 * $replies = $driveService->replies;
1286 * </code>
1287 */
1288 class Google_Service_Drive_Replies_Resource extends Google_Service_Resource
1289 {
1290
1291 /**
1292 * Creates a new reply to a comment. (replies.create)
1293 *
1294 * @param string $fileId The ID of the file.
1295 * @param string $commentId The ID of the comment.
1296 * @param Google_Reply $postBody
1297 * @param array $optParams Optional parameters.
1298 * @return Google_Service_Drive_Reply
1299 */
1300 public function create($fileId, $commentId, Google_Service_Drive_Reply $postBody, $optParams = array())
1301 {
1302 $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
1303 $params = array_merge($params, $optParams);
1304 return $this->call('create', array($params), "Google_Service_Drive_Reply");
1305 }
1306
1307 /**
1308 * Deletes a reply. (replies.delete)
1309 *
1310 * @param string $fileId The ID of the file.
1311 * @param string $commentId The ID of the comment.
1312 * @param string $replyId The ID of the reply.
1313 * @param array $optParams Optional parameters.
1314 */
1315 public function delete($fileId, $commentId, $replyId, $optParams = array())
1316 {
1317 $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId);
1318 $params = array_merge($params, $optParams);
1319 return $this->call('delete', array($params));
1320 }
1321
1322 /**
1323 * Gets a reply by ID. (replies.get)
1324 *
1325 * @param string $fileId The ID of the file.
1326 * @param string $commentId The ID of the comment.
1327 * @param string $replyId The ID of the reply.
1328 * @param array $optParams Optional parameters.
1329 *
1330 * @opt_param bool includeDeleted Whether to return deleted replies. Deleted
1331 * replies will not include their original content.
1332 * @return Google_Service_Drive_Reply
1333 */
1334 public function get($fileId, $commentId, $replyId, $optParams = array())
1335 {
1336 $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId);
1337 $params = array_merge($params, $optParams);
1338 return $this->call('get', array($params), "Google_Service_Drive_Reply");
1339 }
1340
1341 /**
1342 * Lists a comment's replies. (replies.listReplies)
1343 *
1344 * @param string $fileId The ID of the file.
1345 * @param string $commentId The ID of the comment.
1346 * @param array $optParams Optional parameters.
1347 *
1348 * @opt_param bool includeDeleted Whether to include deleted replies. Deleted
1349 * replies will not include their original content.
1350 * @opt_param int pageSize The maximum number of replies to return per page.
1351 * @opt_param string pageToken The token for continuing a previous list request
1352 * on the next page. This should be set to the value of 'nextPageToken' from the
1353 * previous response.
1354 * @return Google_Service_Drive_ReplyList
1355 */
1356 public function listReplies($fileId, $commentId, $optParams = array())
1357 {
1358 $params = array('fileId' => $fileId, 'commentId' => $commentId);
1359 $params = array_merge($params, $optParams);
1360 return $this->call('list', array($params), "Google_Service_Drive_ReplyList");
1361 }
1362
1363 /**
1364 * Updates a reply with patch semantics. (replies.update)
1365 *
1366 * @param string $fileId The ID of the file.
1367 * @param string $commentId The ID of the comment.
1368 * @param string $replyId The ID of the reply.
1369 * @param Google_Reply $postBody
1370 * @param array $optParams Optional parameters.
1371 * @return Google_Service_Drive_Reply
1372 */
1373 public function update($fileId, $commentId, $replyId, Google_Service_Drive_Reply $postBody, $optParams = array())
1374 {
1375 $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody);
1376 $params = array_merge($params, $optParams);
1377 return $this->call('update', array($params), "Google_Service_Drive_Reply");
1378 }
1379 }
1380
1381 /**
1382 * The "revisions" collection of methods.
1383 * Typical usage is:
1384 * <code>
1385 * $driveService = new Google_Service_Drive(...);
1386 * $revisions = $driveService->revisions;
1387 * </code>
1388 */
1389 class Google_Service_Drive_Revisions_Resource extends Google_Service_Resource
1390 {
1391
1392 /**
1393 * Permanently deletes a revision. This method is only applicable to files with
1394 * binary content in Drive. (revisions.delete)
1395 *
1396 * @param string $fileId The ID of the file.
1397 * @param string $revisionId The ID of the revision.
1398 * @param array $optParams Optional parameters.
1399 */
1400 public function delete($fileId, $revisionId, $optParams = array())
1401 {
1402 $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
1403 $params = array_merge($params, $optParams);
1404 return $this->call('delete', array($params));
1405 }
1406
1407 /**
1408 * Gets a revision's metadata or content by ID. (revisions.get)
1409 *
1410 * @param string $fileId The ID of the file.
1411 * @param string $revisionId The ID of the revision.
1412 * @param array $optParams Optional parameters.
1413 *
1414 * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
1415 * of downloading known malware or other abusive files. This is only applicable
1416 * when alt=media.
1417 * @return Google_Service_Drive_Revision
1418 */
1419 public function get($fileId, $revisionId, $optParams = array())
1420 {
1421 $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
1422 $params = array_merge($params, $optParams);
1423 return $this->call('get', array($params), "Google_Service_Drive_Revision");
1424 }
1425
1426 /**
1427 * Lists a file's revisions. (revisions.listRevisions)
1428 *
1429 * @param string $fileId The ID of the file.
1430 * @param array $optParams Optional parameters.
1431 * @return Google_Service_Drive_RevisionList
1432 */
1433 public function listRevisions($fileId, $optParams = array())
1434 {
1435 $params = array('fileId' => $fileId);
1436 $params = array_merge($params, $optParams);
1437 return $this->call('list', array($params), "Google_Service_Drive_RevisionList");
1438 }
1439
1440 /**
1441 * Updates a revision with patch semantics. (revisions.update)
1442 *
1443 * @param string $fileId The ID of the file.
1444 * @param string $revisionId The ID of the revision.
1445 * @param Google_Revision $postBody
1446 * @param array $optParams Optional parameters.
1447 * @return Google_Service_Drive_Revision
1448 */
1449 public function update($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array())
1450 {
1451 $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
1452 $params = array_merge($params, $optParams);
1453 return $this->call('update', array($params), "Google_Service_Drive_Revision");
1454 }
1455 }
1456
1457
1458
1459
1460 class Google_Service_Drive_About extends Google_Collection
1461 {
1462 protected $collection_key = 'folderColorPalette';
1463 protected $internal_gapi_mappings = array(
1464 );
1465 public $appInstalled;
1466 public $exportFormats;
1467 public $folderColorPalette;
1468 public $importFormats;
1469 public $kind;
1470 public $maxImportSizes;
1471 public $maxUploadSize;
1472 protected $storageQuotaType = 'Google_Service_Drive_AboutStorageQuota';
1473 protected $storageQuotaDataType = '';
1474 protected $userType = 'Google_Service_Drive_User';
1475 protected $userDataType = '';
1476
1477
1478 public function setAppInstalled($appInstalled)
1479 {
1480 $this->appInstalled = $appInstalled;
1481 }
1482 public function getAppInstalled()
1483 {
1484 return $this->appInstalled;
1485 }
1486 public function setExportFormats($exportFormats)
1487 {
1488 $this->exportFormats = $exportFormats;
1489 }
1490 public function getExportFormats()
1491 {
1492 return $this->exportFormats;
1493 }
1494 public function setFolderColorPalette($folderColorPalette)
1495 {
1496 $this->folderColorPalette = $folderColorPalette;
1497 }
1498 public function getFolderColorPalette()
1499 {
1500 return $this->folderColorPalette;
1501 }
1502 public function setImportFormats($importFormats)
1503 {
1504 $this->importFormats = $importFormats;
1505 }
1506 public function getImportFormats()
1507 {
1508 return $this->importFormats;
1509 }
1510 public function setKind($kind)
1511 {
1512 $this->kind = $kind;
1513 }
1514 public function getKind()
1515 {
1516 return $this->kind;
1517 }
1518 public function setMaxImportSizes($maxImportSizes)
1519 {
1520 $this->maxImportSizes = $maxImportSizes;
1521 }
1522 public function getMaxImportSizes()
1523 {
1524 return $this->maxImportSizes;
1525 }
1526 public function setMaxUploadSize($maxUploadSize)
1527 {
1528 $this->maxUploadSize = $maxUploadSize;
1529 }
1530 public function getMaxUploadSize()
1531 {
1532 return $this->maxUploadSize;
1533 }
1534 public function setStorageQuota(Google_Service_Drive_AboutStorageQuota $storageQuota)
1535 {
1536 $this->storageQuota = $storageQuota;
1537 }
1538 public function getStorageQuota()
1539 {
1540 return $this->storageQuota;
1541 }
1542 public function setUser(Google_Service_Drive_User $user)
1543 {
1544 $this->user = $user;
1545 }
1546 public function getUser()
1547 {
1548 return $this->user;
1549 }
1550 }
1551
1552 class Google_Service_Drive_AboutStorageQuota extends Google_Model
1553 {
1554 protected $internal_gapi_mappings = array(
1555 );
1556 public $limit;
1557 public $usage;
1558 public $usageInDrive;
1559 public $usageInDriveTrash;
1560
1561
1562 public function setLimit($limit)
1563 {
1564 $this->limit = $limit;
1565 }
1566 public function getLimit()
1567 {
1568 return $this->limit;
1569 }
1570 public function setUsage($usage)
1571 {
1572 $this->usage = $usage;
1573 }
1574 public function getUsage()
1575 {
1576 return $this->usage;
1577 }
1578 public function setUsageInDrive($usageInDrive)
1579 {
1580 $this->usageInDrive = $usageInDrive;
1581 }
1582 public function getUsageInDrive()
1583 {
1584 return $this->usageInDrive;
1585 }
1586 public function setUsageInDriveTrash($usageInDriveTrash)
1587 {
1588 $this->usageInDriveTrash = $usageInDriveTrash;
1589 }
1590 public function getUsageInDriveTrash()
1591 {
1592 return $this->usageInDriveTrash;
1593 }
1594 }
1595
1596 class Google_Service_Drive_Change extends Google_Model
1597 {
1598 protected $internal_gapi_mappings = array(
1599 );
1600 protected $fileType = 'Google_Service_Drive_DriveFile';
1601 protected $fileDataType = '';
1602 public $fileId;
1603 public $kind;
1604 public $removed;
1605 public $time;
1606
1607
1608 public function setFile(Google_Service_Drive_DriveFile $file)
1609 {
1610 $this->file = $file;
1611 }
1612 public function getFile()
1613 {
1614 return $this->file;
1615 }
1616 public function setFileId($fileId)
1617 {
1618 $this->fileId = $fileId;
1619 }
1620 public function getFileId()
1621 {
1622 return $this->fileId;
1623 }
1624 public function setKind($kind)
1625 {
1626 $this->kind = $kind;
1627 }
1628 public function getKind()
1629 {
1630 return $this->kind;
1631 }
1632 public function setRemoved($removed)
1633 {
1634 $this->removed = $removed;
1635 }
1636 public function getRemoved()
1637 {
1638 return $this->removed;
1639 }
1640 public function setTime($time)
1641 {
1642 $this->time = $time;
1643 }
1644 public function getTime()
1645 {
1646 return $this->time;
1647 }
1648 }
1649
1650 class Google_Service_Drive_ChangeList extends Google_Collection
1651 {
1652 protected $collection_key = 'changes';
1653 protected $internal_gapi_mappings = array(
1654 );
1655 protected $changesType = 'Google_Service_Drive_Change';
1656 protected $changesDataType = 'array';
1657 public $kind;
1658 public $newStartPageToken;
1659 public $nextPageToken;
1660
1661
1662 public function setChanges($changes)
1663 {
1664 $this->changes = $changes;
1665 }
1666 public function getChanges()
1667 {
1668 return $this->changes;
1669 }
1670 public function setKind($kind)
1671 {
1672 $this->kind = $kind;
1673 }
1674 public function getKind()
1675 {
1676 return $this->kind;
1677 }
1678 public function setNewStartPageToken($newStartPageToken)
1679 {
1680 $this->newStartPageToken = $newStartPageToken;
1681 }
1682 public function getNewStartPageToken()
1683 {
1684 return $this->newStartPageToken;
1685 }
1686 public function setNextPageToken($nextPageToken)
1687 {
1688 $this->nextPageToken = $nextPageToken;
1689 }
1690 public function getNextPageToken()
1691 {
1692 return $this->nextPageToken;
1693 }
1694 }
1695
1696 class Google_Service_Drive_Channel extends Google_Model
1697 {
1698 protected $internal_gapi_mappings = array(
1699 );
1700 public $address;
1701 public $expiration;
1702 public $id;
1703 public $kind;
1704 public $params;
1705 public $payload;
1706 public $resourceId;
1707 public $resourceUri;
1708 public $token;
1709 public $type;
1710
1711
1712 public function setAddress($address)
1713 {
1714 $this->address = $address;
1715 }
1716 public function getAddress()
1717 {
1718 return $this->address;
1719 }
1720 public function setExpiration($expiration)
1721 {
1722 $this->expiration = $expiration;
1723 }
1724 public function getExpiration()
1725 {
1726 return $this->expiration;
1727 }
1728 public function setId($id)
1729 {
1730 $this->id = $id;
1731 }
1732 public function getId()
1733 {
1734 return $this->id;
1735 }
1736 public function setKind($kind)
1737 {
1738 $this->kind = $kind;
1739 }
1740 public function getKind()
1741 {
1742 return $this->kind;
1743 }
1744 public function setParams($params)
1745 {
1746 $this->params = $params;
1747 }
1748 public function getParams()
1749 {
1750 return $this->params;
1751 }
1752 public function setPayload($payload)
1753 {
1754 $this->payload = $payload;
1755 }
1756 public function getPayload()
1757 {
1758 return $this->payload;
1759 }
1760 public function setResourceId($resourceId)
1761 {
1762 $this->resourceId = $resourceId;
1763 }
1764 public function getResourceId()
1765 {
1766 return $this->resourceId;
1767 }
1768 public function setResourceUri($resourceUri)
1769 {
1770 $this->resourceUri = $resourceUri;
1771 }
1772 public function getResourceUri()
1773 {
1774 return $this->resourceUri;
1775 }
1776 public function setToken($token)
1777 {
1778 $this->token = $token;
1779 }
1780 public function getToken()
1781 {
1782 return $this->token;
1783 }
1784 public function setType($type)
1785 {
1786 $this->type = $type;
1787 }
1788 public function getType()
1789 {
1790 return $this->type;
1791 }
1792 }
1793
1794 class Google_Service_Drive_Comment extends Google_Collection
1795 {
1796 protected $collection_key = 'replies';
1797 protected $internal_gapi_mappings = array(
1798 );
1799 public $anchor;
1800 protected $authorType = 'Google_Service_Drive_User';
1801 protected $authorDataType = '';
1802 public $content;
1803 public $createdTime;
1804 public $deleted;
1805 public $htmlContent;
1806 public $id;
1807 public $kind;
1808 public $modifiedTime;
1809 protected $quotedFileContentType = 'Google_Service_Drive_CommentQuotedFileContent';
1810 protected $quotedFileContentDataType = '';
1811 protected $repliesType = 'Google_Service_Drive_Reply';
1812 protected $repliesDataType = 'array';
1813 public $resolved;
1814
1815
1816 public function setAnchor($anchor)
1817 {
1818 $this->anchor = $anchor;
1819 }
1820 public function getAnchor()
1821 {
1822 return $this->anchor;
1823 }
1824 public function setAuthor(Google_Service_Drive_User $author)
1825 {
1826 $this->author = $author;
1827 }
1828 public function getAuthor()
1829 {
1830 return $this->author;
1831 }
1832 public function setContent($content)
1833 {
1834 $this->content = $content;
1835 }
1836 public function getContent()
1837 {
1838 return $this->content;
1839 }
1840 public function setCreatedTime($createdTime)
1841 {
1842 $this->createdTime = $createdTime;
1843 }
1844 public function getCreatedTime()
1845 {
1846 return $this->createdTime;
1847 }
1848 public function setDeleted($deleted)
1849 {
1850 $this->deleted = $deleted;
1851 }
1852 public function getDeleted()
1853 {
1854 return $this->deleted;
1855 }
1856 public function setHtmlContent($htmlContent)
1857 {
1858 $this->htmlContent = $htmlContent;
1859 }
1860 public function getHtmlContent()
1861 {
1862 return $this->htmlContent;
1863 }
1864 public function setId($id)
1865 {
1866 $this->id = $id;
1867 }
1868 public function getId()
1869 {
1870 return $this->id;
1871 }
1872 public function setKind($kind)
1873 {
1874 $this->kind = $kind;
1875 }
1876 public function getKind()
1877 {
1878 return $this->kind;
1879 }
1880 public function setModifiedTime($modifiedTime)
1881 {
1882 $this->modifiedTime = $modifiedTime;
1883 }
1884 public function getModifiedTime()
1885 {
1886 return $this->modifiedTime;
1887 }
1888 public function setQuotedFileContent(Google_Service_Drive_CommentQuotedFileContent $quotedFileContent)
1889 {
1890 $this->quotedFileContent = $quotedFileContent;
1891 }
1892 public function getQuotedFileContent()
1893 {
1894 return $this->quotedFileContent;
1895 }
1896 public function setReplies($replies)
1897 {
1898 $this->replies = $replies;
1899 }
1900 public function getReplies()
1901 {
1902 return $this->replies;
1903 }
1904 public function setResolved($resolved)
1905 {
1906 $this->resolved = $resolved;
1907 }
1908 public function getResolved()
1909 {
1910 return $this->resolved;
1911 }
1912 }
1913
1914 class Google_Service_Drive_CommentList extends Google_Collection
1915 {
1916 protected $collection_key = 'comments';
1917 protected $internal_gapi_mappings = array(
1918 );
1919 protected $commentsType = 'Google_Service_Drive_Comment';
1920 protected $commentsDataType = 'array';
1921 public $kind;
1922 public $nextPageToken;
1923
1924
1925 public function setComments($comments)
1926 {
1927 $this->comments = $comments;
1928 }
1929 public function getComments()
1930 {
1931 return $this->comments;
1932 }
1933 public function setKind($kind)
1934 {
1935 $this->kind = $kind;
1936 }
1937 public function getKind()
1938 {
1939 return $this->kind;
1940 }
1941 public function setNextPageToken($nextPageToken)
1942 {
1943 $this->nextPageToken = $nextPageToken;
1944 }
1945 public function getNextPageToken()
1946 {
1947 return $this->nextPageToken;
1948 }
1949 }
1950
1951 class Google_Service_Drive_CommentQuotedFileContent extends Google_Model
1952 {
1953 protected $internal_gapi_mappings = array(
1954 );
1955 public $mimeType;
1956 public $value;
1957
1958
1959 public function setMimeType($mimeType)
1960 {
1961 $this->mimeType = $mimeType;
1962 }
1963 public function getMimeType()
1964 {
1965 return $this->mimeType;
1966 }
1967 public function setValue($value)
1968 {
1969 $this->value = $value;
1970 }
1971 public function getValue()
1972 {
1973 return $this->value;
1974 }
1975 }
1976
1977 class Google_Service_Drive_DriveFile extends Google_Collection
1978 {
1979 protected $collection_key = 'spaces';
1980 protected $internal_gapi_mappings = array(
1981 );
1982 public $appProperties;
1983 protected $capabilitiesType = 'Google_Service_Drive_DriveFileCapabilities';
1984 protected $capabilitiesDataType = '';
1985 protected $contentHintsType = 'Google_Service_Drive_DriveFileContentHints';
1986 protected $contentHintsDataType = '';
1987 public $createdTime;
1988 public $description;
1989 public $explicitlyTrashed;
1990 public $fileExtension;
1991 public $folderColorRgb;
1992 public $fullFileExtension;
1993 public $headRevisionId;
1994 public $iconLink;
1995 public $id;
1996 protected $imageMediaMetadataType = 'Google_Service_Drive_DriveFileImageMediaMetadata';
1997 protected $imageMediaMetadataDataType = '';
1998 public $kind;
1999 protected $lastModifyingUserType = 'Google_Service_Drive_User';
2000 protected $lastModifyingUserDataType = '';
2001 public $md5Checksum;
2002 public $mimeType;
2003 public $modifiedByMeTime;
2004 public $modifiedTime;
2005 public $name;
2006 public $originalFilename;
2007 public $ownedByMe;
2008 protected $ownersType = 'Google_Service_Drive_User';
2009 protected $ownersDataType = 'array';
2010 public $parents;
2011 protected $permissionsType = 'Google_Service_Drive_Permission';
2012 protected $permissionsDataType = 'array';
2013 public $properties;
2014 public $quotaBytesUsed;
2015 public $shared;
2016 public $sharedWithMeTime;
2017 protected $sharingUserType = 'Google_Service_Drive_User';
2018 protected $sharingUserDataType = '';
2019 public $size;
2020 public $spaces;
2021 public $starred;
2022 public $thumbnailLink;
2023 public $trashed;
2024 public $version;
2025 protected $videoMediaMetadataType = 'Google_Service_Drive_DriveFileVideoMediaMetadata';
2026 protected $videoMediaMetadataDataType = '';
2027 public $viewedByMe;
2028 public $viewedByMeTime;
2029 public $viewersCanCopyContent;
2030 public $webContentLink;
2031 public $webViewLink;
2032 public $writersCanShare;
2033
2034
2035 public function setAppProperties($appProperties)
2036 {
2037 $this->appProperties = $appProperties;
2038 }
2039 public function getAppProperties()
2040 {
2041 return $this->appProperties;
2042 }
2043 public function setCapabilities(Google_Service_Drive_DriveFileCapabilities $capabilities)
2044 {
2045 $this->capabilities = $capabilities;
2046 }
2047 public function getCapabilities()
2048 {
2049 return $this->capabilities;
2050 }
2051 public function setContentHints(Google_Service_Drive_DriveFileContentHints $contentHints)
2052 {
2053 $this->contentHints = $contentHints;
2054 }
2055 public function getContentHints()
2056 {
2057 return $this->contentHints;
2058 }
2059 public function setCreatedTime($createdTime)
2060 {
2061 $this->createdTime = $createdTime;
2062 }
2063 public function getCreatedTime()
2064 {
2065 return $this->createdTime;
2066 }
2067 public function setDescription($description)
2068 {
2069 $this->description = $description;
2070 }
2071 public function getDescription()
2072 {
2073 return $this->description;
2074 }
2075 public function setExplicitlyTrashed($explicitlyTrashed)
2076 {
2077 $this->explicitlyTrashed = $explicitlyTrashed;
2078 }
2079 public function getExplicitlyTrashed()
2080 {
2081 return $this->explicitlyTrashed;
2082 }
2083 public function setFileExtension($fileExtension)
2084 {
2085 $this->fileExtension = $fileExtension;
2086 }
2087 public function getFileExtension()
2088 {
2089 return $this->fileExtension;
2090 }
2091 public function setFolderColorRgb($folderColorRgb)
2092 {
2093 $this->folderColorRgb = $folderColorRgb;
2094 }
2095 public function getFolderColorRgb()
2096 {
2097 return $this->folderColorRgb;
2098 }
2099 public function setFullFileExtension($fullFileExtension)
2100 {
2101 $this->fullFileExtension = $fullFileExtension;
2102 }
2103 public function getFullFileExtension()
2104 {
2105 return $this->fullFileExtension;
2106 }
2107 public function setHeadRevisionId($headRevisionId)
2108 {
2109 $this->headRevisionId = $headRevisionId;
2110 }
2111 public function getHeadRevisionId()
2112 {
2113 return $this->headRevisionId;
2114 }
2115 public function setIconLink($iconLink)
2116 {
2117 $this->iconLink = $iconLink;
2118 }
2119 public function getIconLink()
2120 {
2121 return $this->iconLink;
2122 }
2123 public function setId($id)
2124 {
2125 $this->id = $id;
2126 }
2127 public function getId()
2128 {
2129 return $this->id;
2130 }
2131 public function setImageMediaMetadata(Google_Service_Drive_DriveFileImageMediaMetadata $imageMediaMetadata)
2132 {
2133 $this->imageMediaMetadata = $imageMediaMetadata;
2134 }
2135 public function getImageMediaMetadata()
2136 {
2137 return $this->imageMediaMetadata;
2138 }
2139 public function setKind($kind)
2140 {
2141 $this->kind = $kind;
2142 }
2143 public function getKind()
2144 {
2145 return $this->kind;
2146 }
2147 public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser)
2148 {
2149 $this->lastModifyingUser = $lastModifyingUser;
2150 }
2151 public function getLastModifyingUser()
2152 {
2153 return $this->lastModifyingUser;
2154 }
2155 public function setMd5Checksum($md5Checksum)
2156 {
2157 $this->md5Checksum = $md5Checksum;
2158 }
2159 public function getMd5Checksum()
2160 {
2161 return $this->md5Checksum;
2162 }
2163 public function setMimeType($mimeType)
2164 {
2165 $this->mimeType = $mimeType;
2166 }
2167 public function getMimeType()
2168 {
2169 return $this->mimeType;
2170 }
2171 public function setModifiedByMeTime($modifiedByMeTime)
2172 {
2173 $this->modifiedByMeTime = $modifiedByMeTime;
2174 }
2175 public function getModifiedByMeTime()
2176 {
2177 return $this->modifiedByMeTime;
2178 }
2179 public function setModifiedTime($modifiedTime)
2180 {
2181 $this->modifiedTime = $modifiedTime;
2182 }
2183 public function getModifiedTime()
2184 {
2185 return $this->modifiedTime;
2186 }
2187 public function setName($name)
2188 {
2189 $this->name = $name;
2190 }
2191 public function getName()
2192 {
2193 return $this->name;
2194 }
2195 public function setOriginalFilename($originalFilename)
2196 {
2197 $this->originalFilename = $originalFilename;
2198 }
2199 public function getOriginalFilename()
2200 {
2201 return $this->originalFilename;
2202 }
2203 public function setOwnedByMe($ownedByMe)
2204 {
2205 $this->ownedByMe = $ownedByMe;
2206 }
2207 public function getOwnedByMe()
2208 {
2209 return $this->ownedByMe;
2210 }
2211 public function setOwners($owners)
2212 {
2213 $this->owners = $owners;
2214 }
2215 public function getOwners()
2216 {
2217 return $this->owners;
2218 }
2219 public function setParents($parents)
2220 {
2221 $this->parents = $parents;
2222 }
2223 public function getParents()
2224 {
2225 return $this->parents;
2226 }
2227 public function setPermissions($permissions)
2228 {
2229 $this->permissions = $permissions;
2230 }
2231 public function getPermissions()
2232 {
2233 return $this->permissions;
2234 }
2235 public function setProperties($properties)
2236 {
2237 $this->properties = $properties;
2238 }
2239 public function getProperties()
2240 {
2241 return $this->properties;
2242 }
2243 public function setQuotaBytesUsed($quotaBytesUsed)
2244 {
2245 $this->quotaBytesUsed = $quotaBytesUsed;
2246 }
2247 public function getQuotaBytesUsed()
2248 {
2249 return $this->quotaBytesUsed;
2250 }
2251 public function setShared($shared)
2252 {
2253 $this->shared = $shared;
2254 }
2255 public function getShared()
2256 {
2257 return $this->shared;
2258 }
2259 public function setSharedWithMeTime($sharedWithMeTime)
2260 {
2261 $this->sharedWithMeTime = $sharedWithMeTime;
2262 }
2263 public function getSharedWithMeTime()
2264 {
2265 return $this->sharedWithMeTime;
2266 }
2267 public function setSharingUser(Google_Service_Drive_User $sharingUser)
2268 {
2269 $this->sharingUser = $sharingUser;
2270 }
2271 public function getSharingUser()
2272 {
2273 return $this->sharingUser;
2274 }
2275 public function setSize($size)
2276 {
2277 $this->size = $size;
2278 }
2279 public function getSize()
2280 {
2281 return $this->size;
2282 }
2283 public function setSpaces($spaces)
2284 {
2285 $this->spaces = $spaces;
2286 }
2287 public function getSpaces()
2288 {
2289 return $this->spaces;
2290 }
2291 public function setStarred($starred)
2292 {
2293 $this->starred = $starred;
2294 }
2295 public function getStarred()
2296 {
2297 return $this->starred;
2298 }
2299 public function setThumbnailLink($thumbnailLink)
2300 {
2301 $this->thumbnailLink = $thumbnailLink;
2302 }
2303 public function getThumbnailLink()
2304 {
2305 return $this->thumbnailLink;
2306 }
2307 public function setTrashed($trashed)
2308 {
2309 $this->trashed = $trashed;
2310 }
2311 public function getTrashed()
2312 {
2313 return $this->trashed;
2314 }
2315 public function setVersion($version)
2316 {
2317 $this->version = $version;
2318 }
2319 public function getVersion()
2320 {
2321 return $this->version;
2322 }
2323 public function setVideoMediaMetadata(Google_Service_Drive_DriveFileVideoMediaMetadata $videoMediaMetadata)
2324 {
2325 $this->videoMediaMetadata = $videoMediaMetadata;
2326 }
2327 public function getVideoMediaMetadata()
2328 {
2329 return $this->videoMediaMetadata;
2330 }
2331 public function setViewedByMe($viewedByMe)
2332 {
2333 $this->viewedByMe = $viewedByMe;
2334 }
2335 public function getViewedByMe()
2336 {
2337 return $this->viewedByMe;
2338 }
2339 public function setViewedByMeTime($viewedByMeTime)
2340 {
2341 $this->viewedByMeTime = $viewedByMeTime;
2342 }
2343 public function getViewedByMeTime()
2344 {
2345 return $this->viewedByMeTime;
2346 }
2347 public function setViewersCanCopyContent($viewersCanCopyContent)
2348 {
2349 $this->viewersCanCopyContent = $viewersCanCopyContent;
2350 }
2351 public function getViewersCanCopyContent()
2352 {
2353 return $this->viewersCanCopyContent;
2354 }
2355 public function setWebContentLink($webContentLink)
2356 {
2357 $this->webContentLink = $webContentLink;
2358 }
2359 public function getWebContentLink()
2360 {
2361 return $this->webContentLink;
2362 }
2363 public function setWebViewLink($webViewLink)
2364 {
2365 $this->webViewLink = $webViewLink;
2366 }
2367 public function getWebViewLink()
2368 {
2369 return $this->webViewLink;
2370 }
2371 public function setWritersCanShare($writersCanShare)
2372 {
2373 $this->writersCanShare = $writersCanShare;
2374 }
2375 public function getWritersCanShare()
2376 {
2377 return $this->writersCanShare;
2378 }
2379 }
2380
2381 class Google_Service_Drive_DriveFileCapabilities extends Google_Model
2382 {
2383 protected $internal_gapi_mappings = array(
2384 );
2385 public $canComment;
2386 public $canCopy;
2387 public $canEdit;
2388 public $canShare;
2389
2390
2391 public function setCanComment($canComment)
2392 {
2393 $this->canComment = $canComment;
2394 }
2395 public function getCanComment()
2396 {
2397 return $this->canComment;
2398 }
2399 public function setCanCopy($canCopy)
2400 {
2401 $this->canCopy = $canCopy;
2402 }
2403 public function getCanCopy()
2404 {
2405 return $this->canCopy;
2406 }
2407 public function setCanEdit($canEdit)
2408 {
2409 $this->canEdit = $canEdit;
2410 }
2411 public function getCanEdit()
2412 {
2413 return $this->canEdit;
2414 }
2415 public function setCanShare($canShare)
2416 {
2417 $this->canShare = $canShare;
2418 }
2419 public function getCanShare()
2420 {
2421 return $this->canShare;
2422 }
2423 }
2424
2425 class Google_Service_Drive_DriveFileContentHints extends Google_Model
2426 {
2427 protected $internal_gapi_mappings = array(
2428 );
2429 public $indexableText;
2430 protected $thumbnailType = 'Google_Service_Drive_DriveFileContentHintsThumbnail';
2431 protected $thumbnailDataType = '';
2432
2433
2434 public function setIndexableText($indexableText)
2435 {
2436 $this->indexableText = $indexableText;
2437 }
2438 public function getIndexableText()
2439 {
2440 return $this->indexableText;
2441 }
2442 public function setThumbnail(Google_Service_Drive_DriveFileContentHintsThumbnail $thumbnail)
2443 {
2444 $this->thumbnail = $thumbnail;
2445 }
2446 public function getThumbnail()
2447 {
2448 return $this->thumbnail;
2449 }
2450 }
2451
2452 class Google_Service_Drive_DriveFileContentHintsThumbnail extends Google_Model
2453 {
2454 protected $internal_gapi_mappings = array(
2455 );
2456 public $image;
2457 public $mimeType;
2458
2459
2460 public function setImage($image)
2461 {
2462 $this->image = $image;
2463 }
2464 public function getImage()
2465 {
2466 return $this->image;
2467 }
2468 public function setMimeType($mimeType)
2469 {
2470 $this->mimeType = $mimeType;
2471 }
2472 public function getMimeType()
2473 {
2474 return $this->mimeType;
2475 }
2476 }
2477
2478 class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model
2479 {
2480 protected $internal_gapi_mappings = array(
2481 );
2482 public $aperture;
2483 public $cameraMake;
2484 public $cameraModel;
2485 public $colorSpace;
2486 public $exposureBias;
2487 public $exposureMode;
2488 public $exposureTime;
2489 public $flashUsed;
2490 public $focalLength;
2491 public $height;
2492 public $isoSpeed;
2493 public $lens;
2494 protected $locationType = 'Google_Service_Drive_DriveFileImageMediaMetadataLocation';
2495 protected $locationDataType = '';
2496 public $maxApertureValue;
2497 public $meteringMode;
2498 public $rotation;
2499 public $sensor;
2500 public $subjectDistance;
2501 public $time;
2502 public $whiteBalance;
2503 public $width;
2504
2505
2506 public function setAperture($aperture)
2507 {
2508 $this->aperture = $aperture;
2509 }
2510 public function getAperture()
2511 {
2512 return $this->aperture;
2513 }
2514 public function setCameraMake($cameraMake)
2515 {
2516 $this->cameraMake = $cameraMake;
2517 }
2518 public function getCameraMake()
2519 {
2520 return $this->cameraMake;
2521 }
2522 public function setCameraModel($cameraModel)
2523 {
2524 $this->cameraModel = $cameraModel;
2525 }
2526 public function getCameraModel()
2527 {
2528 return $this->cameraModel;
2529 }
2530 public function setColorSpace($colorSpace)
2531 {
2532 $this->colorSpace = $colorSpace;
2533 }
2534 public function getColorSpace()
2535 {
2536 return $this->colorSpace;
2537 }
2538 public function setExposureBias($exposureBias)
2539 {
2540 $this->exposureBias = $exposureBias;
2541 }
2542 public function getExposureBias()
2543 {
2544 return $this->exposureBias;
2545 }
2546 public function setExposureMode($exposureMode)
2547 {
2548 $this->exposureMode = $exposureMode;
2549 }
2550 public function getExposureMode()
2551 {
2552 return $this->exposureMode;
2553 }
2554 public function setExposureTime($exposureTime)
2555 {
2556 $this->exposureTime = $exposureTime;
2557 }
2558 public function getExposureTime()
2559 {
2560 return $this->exposureTime;
2561 }
2562 public function setFlashUsed($flashUsed)
2563 {
2564 $this->flashUsed = $flashUsed;
2565 }
2566 public function getFlashUsed()
2567 {
2568 return $this->flashUsed;
2569 }
2570 public function setFocalLength($focalLength)
2571 {
2572 $this->focalLength = $focalLength;
2573 }
2574 public function getFocalLength()
2575 {
2576 return $this->focalLength;
2577 }
2578 public function setHeight($height)
2579 {
2580 $this->height = $height;
2581 }
2582 public function getHeight()
2583 {
2584 return $this->height;
2585 }
2586 public function setIsoSpeed($isoSpeed)
2587 {
2588 $this->isoSpeed = $isoSpeed;
2589 }
2590 public function getIsoSpeed()
2591 {
2592 return $this->isoSpeed;
2593 }
2594 public function setLens($lens)
2595 {
2596 $this->lens = $lens;
2597 }
2598 public function getLens()
2599 {
2600 return $this->lens;
2601 }
2602 public function setLocation(Google_Service_Drive_DriveFileImageMediaMetadataLocation $location)
2603 {
2604 $this->location = $location;
2605 }
2606 public function getLocation()
2607 {
2608 return $this->location;
2609 }
2610 public function setMaxApertureValue($maxApertureValue)
2611 {
2612 $this->maxApertureValue = $maxApertureValue;
2613 }
2614 public function getMaxApertureValue()
2615 {
2616 return $this->maxApertureValue;
2617 }
2618 public function setMeteringMode($meteringMode)
2619 {
2620 $this->meteringMode = $meteringMode;
2621 }
2622 public function getMeteringMode()
2623 {
2624 return $this->meteringMode;
2625 }
2626 public function setRotation($rotation)
2627 {
2628 $this->rotation = $rotation;
2629 }
2630 public function getRotation()
2631 {
2632 return $this->rotation;
2633 }
2634 public function setSensor($sensor)
2635 {
2636 $this->sensor = $sensor;
2637 }
2638 public function getSensor()
2639 {
2640 return $this->sensor;
2641 }
2642 public function setSubjectDistance($subjectDistance)
2643 {
2644 $this->subjectDistance = $subjectDistance;
2645 }
2646 public function getSubjectDistance()
2647 {
2648 return $this->subjectDistance;
2649 }
2650 public function setTime($time)
2651 {
2652 $this->time = $time;
2653 }
2654 public function getTime()
2655 {
2656 return $this->time;
2657 }
2658 public function setWhiteBalance($whiteBalance)
2659 {
2660 $this->whiteBalance = $whiteBalance;
2661 }
2662 public function getWhiteBalance()
2663 {
2664 return $this->whiteBalance;
2665 }
2666 public function setWidth($width)
2667 {
2668 $this->width = $width;
2669 }
2670 public function getWidth()
2671 {
2672 return $this->width;
2673 }
2674 }
2675
2676 class Google_Service_Drive_DriveFileImageMediaMetadataLocation extends Google_Model
2677 {
2678 protected $internal_gapi_mappings = array(
2679 );
2680 public $altitude;
2681 public $latitude;
2682 public $longitude;
2683
2684
2685 public function setAltitude($altitude)
2686 {
2687 $this->altitude = $altitude;
2688 }
2689 public function getAltitude()
2690 {
2691 return $this->altitude;
2692 }
2693 public function setLatitude($latitude)
2694 {
2695 $this->latitude = $latitude;
2696 }
2697 public function getLatitude()
2698 {
2699 return $this->latitude;
2700 }
2701 public function setLongitude($longitude)
2702 {
2703 $this->longitude = $longitude;
2704 }
2705 public function getLongitude()
2706 {
2707 return $this->longitude;
2708 }
2709 }
2710
2711 class Google_Service_Drive_DriveFileVideoMediaMetadata extends Google_Model
2712 {
2713 protected $internal_gapi_mappings = array(
2714 );
2715 public $durationMillis;
2716 public $height;
2717 public $width;
2718
2719
2720 public function setDurationMillis($durationMillis)
2721 {
2722 $this->durationMillis = $durationMillis;
2723 }
2724 public function getDurationMillis()
2725 {
2726 return $this->durationMillis;
2727 }
2728 public function setHeight($height)
2729 {
2730 $this->height = $height;
2731 }
2732 public function getHeight()
2733 {
2734 return $this->height;
2735 }
2736 public function setWidth($width)
2737 {
2738 $this->width = $width;
2739 }
2740 public function getWidth()
2741 {
2742 return $this->width;
2743 }
2744 }
2745
2746 class Google_Service_Drive_FileList extends Google_Collection
2747 {
2748 protected $collection_key = 'files';
2749 protected $internal_gapi_mappings = array(
2750 );
2751 protected $filesType = 'Google_Service_Drive_DriveFile';
2752 protected $filesDataType = 'array';
2753 public $kind;
2754 public $nextPageToken;
2755
2756
2757 public function setFiles($files)
2758 {
2759 $this->files = $files;
2760 }
2761 public function getFiles()
2762 {
2763 return $this->files;
2764 }
2765 public function setKind($kind)
2766 {
2767 $this->kind = $kind;
2768 }
2769 public function getKind()
2770 {
2771 return $this->kind;
2772 }
2773 public function setNextPageToken($nextPageToken)
2774 {
2775 $this->nextPageToken = $nextPageToken;
2776 }
2777 public function getNextPageToken()
2778 {
2779 return $this->nextPageToken;
2780 }
2781 }
2782
2783 class Google_Service_Drive_GeneratedIds extends Google_Collection
2784 {
2785 protected $collection_key = 'ids';
2786 protected $internal_gapi_mappings = array(
2787 );
2788 public $ids;
2789 public $kind;
2790 public $space;
2791
2792
2793 public function setIds($ids)
2794 {
2795 $this->ids = $ids;
2796 }
2797 public function getIds()
2798 {
2799 return $this->ids;
2800 }
2801 public function setKind($kind)
2802 {
2803 $this->kind = $kind;
2804 }
2805 public function getKind()
2806 {
2807 return $this->kind;
2808 }
2809 public function setSpace($space)
2810 {
2811 $this->space = $space;
2812 }
2813 public function getSpace()
2814 {
2815 return $this->space;
2816 }
2817 }
2818
2819 class Google_Service_Drive_Permission extends Google_Model
2820 {
2821 protected $internal_gapi_mappings = array(
2822 );
2823 public $allowFileDiscovery;
2824 public $displayName;
2825 public $domain;
2826 public $emailAddress;
2827 public $id;
2828 public $kind;
2829 public $photoLink;
2830 public $role;
2831 public $type;
2832
2833
2834 public function setAllowFileDiscovery($allowFileDiscovery)
2835 {
2836 $this->allowFileDiscovery = $allowFileDiscovery;
2837 }
2838 public function getAllowFileDiscovery()
2839 {
2840 return $this->allowFileDiscovery;
2841 }
2842 public function setDisplayName($displayName)
2843 {
2844 $this->displayName = $displayName;
2845 }
2846 public function getDisplayName()
2847 {
2848 return $this->displayName;
2849 }
2850 public function setDomain($domain)
2851 {
2852 $this->domain = $domain;
2853 }
2854 public function getDomain()
2855 {
2856 return $this->domain;
2857 }
2858 public function setEmailAddress($emailAddress)
2859 {
2860 $this->emailAddress = $emailAddress;
2861 }
2862 public function getEmailAddress()
2863 {
2864 return $this->emailAddress;
2865 }
2866 public function setId($id)
2867 {
2868 $this->id = $id;
2869 }
2870 public function getId()
2871 {
2872 return $this->id;
2873 }
2874 public function setKind($kind)
2875 {
2876 $this->kind = $kind;
2877 }
2878 public function getKind()
2879 {
2880 return $this->kind;
2881 }
2882 public function setPhotoLink($photoLink)
2883 {
2884 $this->photoLink = $photoLink;
2885 }
2886 public function getPhotoLink()
2887 {
2888 return $this->photoLink;
2889 }
2890 public function setRole($role)
2891 {
2892 $this->role = $role;
2893 }
2894 public function getRole()
2895 {
2896 return $this->role;
2897 }
2898 public function setType($type)
2899 {
2900 $this->type = $type;
2901 }
2902 public function getType()
2903 {
2904 return $this->type;
2905 }
2906 }
2907
2908 class Google_Service_Drive_PermissionList extends Google_Collection
2909 {
2910 protected $collection_key = 'permissions';
2911 protected $internal_gapi_mappings = array(
2912 );
2913 public $kind;
2914 protected $permissionsType = 'Google_Service_Drive_Permission';
2915 protected $permissionsDataType = 'array';
2916
2917
2918 public function setKind($kind)
2919 {
2920 $this->kind = $kind;
2921 }
2922 public function getKind()
2923 {
2924 return $this->kind;
2925 }
2926 public function setPermissions($permissions)
2927 {
2928 $this->permissions = $permissions;
2929 }
2930 public function getPermissions()
2931 {
2932 return $this->permissions;
2933 }
2934 }
2935
2936 class Google_Service_Drive_Reply extends Google_Model
2937 {
2938 protected $internal_gapi_mappings = array(
2939 );
2940 public $action;
2941 protected $authorType = 'Google_Service_Drive_User';
2942 protected $authorDataType = '';
2943 public $content;
2944 public $createdTime;
2945 public $deleted;
2946 public $htmlContent;
2947 public $id;
2948 public $kind;
2949 public $modifiedTime;
2950
2951
2952 public function setAction($action)
2953 {
2954 $this->action = $action;
2955 }
2956 public function getAction()
2957 {
2958 return $this->action;
2959 }
2960 public function setAuthor(Google_Service_Drive_User $author)
2961 {
2962 $this->author = $author;
2963 }
2964 public function getAuthor()
2965 {
2966 return $this->author;
2967 }
2968 public function setContent($content)
2969 {
2970 $this->content = $content;
2971 }
2972 public function getContent()
2973 {
2974 return $this->content;
2975 }
2976 public function setCreatedTime($createdTime)
2977 {
2978 $this->createdTime = $createdTime;
2979 }
2980 public function getCreatedTime()
2981 {
2982 return $this->createdTime;
2983 }
2984 public function setDeleted($deleted)
2985 {
2986 $this->deleted = $deleted;
2987 }
2988 public function getDeleted()
2989 {
2990 return $this->deleted;
2991 }
2992 public function setHtmlContent($htmlContent)
2993 {
2994 $this->htmlContent = $htmlContent;
2995 }
2996 public function getHtmlContent()
2997 {
2998 return $this->htmlContent;
2999 }
3000 public function setId($id)
3001 {
3002 $this->id = $id;
3003 }
3004 public function getId()
3005 {
3006 return $this->id;
3007 }
3008 public function setKind($kind)
3009 {
3010 $this->kind = $kind;
3011 }
3012 public function getKind()
3013 {
3014 return $this->kind;
3015 }
3016 public function setModifiedTime($modifiedTime)
3017 {
3018 $this->modifiedTime = $modifiedTime;
3019 }
3020 public function getModifiedTime()
3021 {
3022 return $this->modifiedTime;
3023 }
3024 }
3025
3026 class Google_Service_Drive_ReplyList extends Google_Collection
3027 {
3028 protected $collection_key = 'replies';
3029 protected $internal_gapi_mappings = array(
3030 );
3031 public $kind;
3032 public $nextPageToken;
3033 protected $repliesType = 'Google_Service_Drive_Reply';
3034 protected $repliesDataType = 'array';
3035
3036
3037 public function setKind($kind)
3038 {
3039 $this->kind = $kind;
3040 }
3041 public function getKind()
3042 {
3043 return $this->kind;
3044 }
3045 public function setNextPageToken($nextPageToken)
3046 {
3047 $this->nextPageToken = $nextPageToken;
3048 }
3049 public function getNextPageToken()
3050 {
3051 return $this->nextPageToken;
3052 }
3053 public function setReplies($replies)
3054 {
3055 $this->replies = $replies;
3056 }
3057 public function getReplies()
3058 {
3059 return $this->replies;
3060 }
3061 }
3062
3063 class Google_Service_Drive_Revision extends Google_Model
3064 {
3065 protected $internal_gapi_mappings = array(
3066 );
3067 public $id;
3068 public $keepForever;
3069 public $kind;
3070 protected $lastModifyingUserType = 'Google_Service_Drive_User';
3071 protected $lastModifyingUserDataType = '';
3072 public $md5Checksum;
3073 public $mimeType;
3074 public $modifiedTime;
3075 public $originalFilename;
3076 public $publishAuto;
3077 public $published;
3078 public $publishedOutsideDomain;
3079 public $size;
3080
3081
3082 public function setId($id)
3083 {
3084 $this->id = $id;
3085 }
3086 public function getId()
3087 {
3088 return $this->id;
3089 }
3090 public function setKeepForever($keepForever)
3091 {
3092 $this->keepForever = $keepForever;
3093 }
3094 public function getKeepForever()
3095 {
3096 return $this->keepForever;
3097 }
3098 public function setKind($kind)
3099 {
3100 $this->kind = $kind;
3101 }
3102 public function getKind()
3103 {
3104 return $this->kind;
3105 }
3106 public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser)
3107 {
3108 $this->lastModifyingUser = $lastModifyingUser;
3109 }
3110 public function getLastModifyingUser()
3111 {
3112 return $this->lastModifyingUser;
3113 }
3114 public function setMd5Checksum($md5Checksum)
3115 {
3116 $this->md5Checksum = $md5Checksum;
3117 }
3118 public function getMd5Checksum()
3119 {
3120 return $this->md5Checksum;
3121 }
3122 public function setMimeType($mimeType)
3123 {
3124 $this->mimeType = $mimeType;
3125 }
3126 public function getMimeType()
3127 {
3128 return $this->mimeType;
3129 }
3130 public function setModifiedTime($modifiedTime)
3131 {
3132 $this->modifiedTime = $modifiedTime;
3133 }
3134 public function getModifiedTime()
3135 {
3136 return $this->modifiedTime;
3137 }
3138 public function setOriginalFilename($originalFilename)
3139 {
3140 $this->originalFilename = $originalFilename;
3141 }
3142 public function getOriginalFilename()
3143 {
3144 return $this->originalFilename;
3145 }
3146 public function setPublishAuto($publishAuto)
3147 {
3148 $this->publishAuto = $publishAuto;
3149 }
3150 public function getPublishAuto()
3151 {
3152 return $this->publishAuto;
3153 }
3154 public function setPublished($published)
3155 {
3156 $this->published = $published;
3157 }
3158 public function getPublished()
3159 {
3160 return $this->published;
3161 }
3162 public function setPublishedOutsideDomain($publishedOutsideDomain)
3163 {
3164 $this->publishedOutsideDomain = $publishedOutsideDomain;
3165 }
3166 public function getPublishedOutsideDomain()
3167 {
3168 return $this->publishedOutsideDomain;
3169 }
3170 public function setSize($size)
3171 {
3172 $this->size = $size;
3173 }
3174 public function getSize()
3175 {
3176 return $this->size;
3177 }
3178 }
3179
3180 class Google_Service_Drive_RevisionList extends Google_Collection
3181 {
3182 protected $collection_key = 'revisions';
3183 protected $internal_gapi_mappings = array(
3184 );
3185 public $kind;
3186 protected $revisionsType = 'Google_Service_Drive_Revision';
3187 protected $revisionsDataType = 'array';
3188
3189
3190 public function setKind($kind)
3191 {
3192 $this->kind = $kind;
3193 }
3194 public function getKind()
3195 {
3196 return $this->kind;
3197 }
3198 public function setRevisions($revisions)
3199 {
3200 $this->revisions = $revisions;
3201 }
3202 public function getRevisions()
3203 {
3204 return $this->revisions;
3205 }
3206 }
3207
3208 class Google_Service_Drive_StartPageToken extends Google_Model
3209 {
3210 protected $internal_gapi_mappings = array(
3211 );
3212 public $kind;
3213 public $startPageToken;
3214
3215
3216 public function setKind($kind)
3217 {
3218 $this->kind = $kind;
3219 }
3220 public function getKind()
3221 {
3222 return $this->kind;
3223 }
3224 public function setStartPageToken($startPageToken)
3225 {
3226 $this->startPageToken = $startPageToken;
3227 }
3228 public function getStartPageToken()
3229 {
3230 return $this->startPageToken;
3231 }
3232 }
3233
3234 class Google_Service_Drive_User extends Google_Model
3235 {
3236 protected $internal_gapi_mappings = array(
3237 );
3238 public $displayName;
3239 public $emailAddress;
3240 public $kind;
3241 public $me;
3242 public $permissionId;
3243 public $photoLink;
3244
3245
3246 public function setDisplayName($displayName)
3247 {
3248 $this->displayName = $displayName;
3249 }
3250 public function getDisplayName()
3251 {
3252 return $this->displayName;
3253 }
3254 public function setEmailAddress($emailAddress)
3255 {
3256 $this->emailAddress = $emailAddress;
3257 }
3258 public function getEmailAddress()
3259 {
3260 return $this->emailAddress;
3261 }
3262 public function setKind($kind)
3263 {
3264 $this->kind = $kind;
3265 }
3266 public function getKind()
3267 {
3268 return $this->kind;
3269 }
3270 public function setMe($me)
3271 {
3272 $this->me = $me;
3273 }
3274 public function getMe()
3275 {
3276 return $this->me;
3277 }
3278 public function setPermissionId($permissionId)
3279 {
3280 $this->permissionId = $permissionId;
3281 }
3282 public function getPermissionId()
3283 {
3284 return $this->permissionId;
3285 }
3286 public function setPhotoLink($photoLink)
3287 {
3288 $this->photoLink = $photoLink;
3289 }
3290 public function getPhotoLink()
3291 {
3292 return $this->photoLink;
3293 }
3294 }
3295