source: vendor/google/apiclient-services/src/Drive.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload new project files

  • Property mode set to 100644
File size: 47.2 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for Drive (v3).
24 *
25 * <p>
26 * The Google Drive API allows clients to access resources from Google Drive.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.google.com/drive/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Drive extends \Google\Service
36{
37 /** See, edit, create, and delete all of your Google Drive files. */
38 const DRIVE =
39 "https://www.googleapis.com/auth/drive";
40 /** See, create, and delete its own configuration data in your Google Drive. */
41 const DRIVE_APPDATA =
42 "https://www.googleapis.com/auth/drive.appdata";
43 /** View your Google Drive apps. */
44 const DRIVE_APPS_READONLY =
45 "https://www.googleapis.com/auth/drive.apps.readonly";
46 /** See, edit, create, and delete only the specific Google Drive files you use with this app. */
47 const DRIVE_FILE =
48 "https://www.googleapis.com/auth/drive.file";
49 /** See and download your Google Drive files that were created or edited by Google Meet.. */
50 const DRIVE_MEET_READONLY =
51 "https://www.googleapis.com/auth/drive.meet.readonly";
52 /** View and manage metadata of files in your Google Drive. */
53 const DRIVE_METADATA =
54 "https://www.googleapis.com/auth/drive.metadata";
55 /** See information about your Google Drive files. */
56 const DRIVE_METADATA_READONLY =
57 "https://www.googleapis.com/auth/drive.metadata.readonly";
58 /** View the photos, videos and albums in your Google Photos. */
59 const DRIVE_PHOTOS_READONLY =
60 "https://www.googleapis.com/auth/drive.photos.readonly";
61 /** See and download all your Google Drive files. */
62 const DRIVE_READONLY =
63 "https://www.googleapis.com/auth/drive.readonly";
64 /** Modify your Google Apps Script scripts' behavior. */
65 const DRIVE_SCRIPTS =
66 "https://www.googleapis.com/auth/drive.scripts";
67
68 public $about;
69 public $accessproposals;
70 public $apps;
71 public $changes;
72 public $channels;
73 public $comments;
74 public $drives;
75 public $files;
76 public $operation;
77 public $operations;
78 public $permissions;
79 public $replies;
80 public $revisions;
81 public $teamdrives;
82 public $rootUrlTemplate;
83
84 /**
85 * Constructs the internal representation of the Drive service.
86 *
87 * @param Client|array $clientOrConfig The client used to deliver requests, or a
88 * config array to pass to a new Client instance.
89 * @param string $rootUrl The root URL used for requests to the service.
90 */
91 public function __construct($clientOrConfig = [], $rootUrl = null)
92 {
93 parent::__construct($clientOrConfig);
94 $this->rootUrl = $rootUrl ?: 'https://www.googleapis.com/';
95 $this->rootUrlTemplate = $rootUrl ?: 'https://www.UNIVERSE_DOMAIN/';
96 $this->servicePath = 'drive/v3/';
97 $this->batchPath = 'batch/drive/v3';
98 $this->version = 'v3';
99 $this->serviceName = 'drive';
100
101 $this->about = new Drive\Resource\About(
102 $this,
103 $this->serviceName,
104 'about',
105 [
106 'methods' => [
107 'get' => [
108 'path' => 'about',
109 'httpMethod' => 'GET',
110 'parameters' => [],
111 ],
112 ]
113 ]
114 );
115 $this->accessproposals = new Drive\Resource\Accessproposals(
116 $this,
117 $this->serviceName,
118 'accessproposals',
119 [
120 'methods' => [
121 'get' => [
122 'path' => 'files/{fileId}/accessproposals/{proposalId}',
123 'httpMethod' => 'GET',
124 'parameters' => [
125 'fileId' => [
126 'location' => 'path',
127 'type' => 'string',
128 'required' => true,
129 ],
130 'proposalId' => [
131 'location' => 'path',
132 'type' => 'string',
133 'required' => true,
134 ],
135 ],
136 ],'list' => [
137 'path' => 'files/{fileId}/accessproposals',
138 'httpMethod' => 'GET',
139 'parameters' => [
140 'fileId' => [
141 'location' => 'path',
142 'type' => 'string',
143 'required' => true,
144 ],
145 'pageSize' => [
146 'location' => 'query',
147 'type' => 'integer',
148 ],
149 'pageToken' => [
150 'location' => 'query',
151 'type' => 'string',
152 ],
153 ],
154 ],'resolve' => [
155 'path' => 'files/{fileId}/accessproposals/{proposalId}:resolve',
156 'httpMethod' => 'POST',
157 'parameters' => [
158 'fileId' => [
159 'location' => 'path',
160 'type' => 'string',
161 'required' => true,
162 ],
163 'proposalId' => [
164 'location' => 'path',
165 'type' => 'string',
166 'required' => true,
167 ],
168 ],
169 ],
170 ]
171 ]
172 );
173 $this->apps = new Drive\Resource\Apps(
174 $this,
175 $this->serviceName,
176 'apps',
177 [
178 'methods' => [
179 'get' => [
180 'path' => 'apps/{appId}',
181 'httpMethod' => 'GET',
182 'parameters' => [
183 'appId' => [
184 'location' => 'path',
185 'type' => 'string',
186 'required' => true,
187 ],
188 ],
189 ],'list' => [
190 'path' => 'apps',
191 'httpMethod' => 'GET',
192 'parameters' => [
193 'appFilterExtensions' => [
194 'location' => 'query',
195 'type' => 'string',
196 ],
197 'appFilterMimeTypes' => [
198 'location' => 'query',
199 'type' => 'string',
200 ],
201 'languageCode' => [
202 'location' => 'query',
203 'type' => 'string',
204 ],
205 ],
206 ],
207 ]
208 ]
209 );
210 $this->changes = new Drive\Resource\Changes(
211 $this,
212 $this->serviceName,
213 'changes',
214 [
215 'methods' => [
216 'getStartPageToken' => [
217 'path' => 'changes/startPageToken',
218 'httpMethod' => 'GET',
219 'parameters' => [
220 'driveId' => [
221 'location' => 'query',
222 'type' => 'string',
223 ],
224 'supportsAllDrives' => [
225 'location' => 'query',
226 'type' => 'boolean',
227 ],
228 'supportsTeamDrives' => [
229 'location' => 'query',
230 'type' => 'boolean',
231 ],
232 'teamDriveId' => [
233 'location' => 'query',
234 'type' => 'string',
235 ],
236 ],
237 ],'list' => [
238 'path' => 'changes',
239 'httpMethod' => 'GET',
240 'parameters' => [
241 'pageToken' => [
242 'location' => 'query',
243 'type' => 'string',
244 'required' => true,
245 ],
246 'driveId' => [
247 'location' => 'query',
248 'type' => 'string',
249 ],
250 'includeCorpusRemovals' => [
251 'location' => 'query',
252 'type' => 'boolean',
253 ],
254 'includeItemsFromAllDrives' => [
255 'location' => 'query',
256 'type' => 'boolean',
257 ],
258 'includeLabels' => [
259 'location' => 'query',
260 'type' => 'string',
261 ],
262 'includePermissionsForView' => [
263 'location' => 'query',
264 'type' => 'string',
265 ],
266 'includeRemoved' => [
267 'location' => 'query',
268 'type' => 'boolean',
269 ],
270 'includeTeamDriveItems' => [
271 'location' => 'query',
272 'type' => 'boolean',
273 ],
274 'pageSize' => [
275 'location' => 'query',
276 'type' => 'integer',
277 ],
278 'restrictToMyDrive' => [
279 'location' => 'query',
280 'type' => 'boolean',
281 ],
282 'spaces' => [
283 'location' => 'query',
284 'type' => 'string',
285 ],
286 'supportsAllDrives' => [
287 'location' => 'query',
288 'type' => 'boolean',
289 ],
290 'supportsTeamDrives' => [
291 'location' => 'query',
292 'type' => 'boolean',
293 ],
294 'teamDriveId' => [
295 'location' => 'query',
296 'type' => 'string',
297 ],
298 ],
299 ],'watch' => [
300 'path' => 'changes/watch',
301 'httpMethod' => 'POST',
302 'parameters' => [
303 'pageToken' => [
304 'location' => 'query',
305 'type' => 'string',
306 'required' => true,
307 ],
308 'driveId' => [
309 'location' => 'query',
310 'type' => 'string',
311 ],
312 'includeCorpusRemovals' => [
313 'location' => 'query',
314 'type' => 'boolean',
315 ],
316 'includeItemsFromAllDrives' => [
317 'location' => 'query',
318 'type' => 'boolean',
319 ],
320 'includeLabels' => [
321 'location' => 'query',
322 'type' => 'string',
323 ],
324 'includePermissionsForView' => [
325 'location' => 'query',
326 'type' => 'string',
327 ],
328 'includeRemoved' => [
329 'location' => 'query',
330 'type' => 'boolean',
331 ],
332 'includeTeamDriveItems' => [
333 'location' => 'query',
334 'type' => 'boolean',
335 ],
336 'pageSize' => [
337 'location' => 'query',
338 'type' => 'integer',
339 ],
340 'restrictToMyDrive' => [
341 'location' => 'query',
342 'type' => 'boolean',
343 ],
344 'spaces' => [
345 'location' => 'query',
346 'type' => 'string',
347 ],
348 'supportsAllDrives' => [
349 'location' => 'query',
350 'type' => 'boolean',
351 ],
352 'supportsTeamDrives' => [
353 'location' => 'query',
354 'type' => 'boolean',
355 ],
356 'teamDriveId' => [
357 'location' => 'query',
358 'type' => 'string',
359 ],
360 ],
361 ],
362 ]
363 ]
364 );
365 $this->channels = new Drive\Resource\Channels(
366 $this,
367 $this->serviceName,
368 'channels',
369 [
370 'methods' => [
371 'stop' => [
372 'path' => 'channels/stop',
373 'httpMethod' => 'POST',
374 'parameters' => [],
375 ],
376 ]
377 ]
378 );
379 $this->comments = new Drive\Resource\Comments(
380 $this,
381 $this->serviceName,
382 'comments',
383 [
384 'methods' => [
385 'create' => [
386 'path' => 'files/{fileId}/comments',
387 'httpMethod' => 'POST',
388 'parameters' => [
389 'fileId' => [
390 'location' => 'path',
391 'type' => 'string',
392 'required' => true,
393 ],
394 ],
395 ],'delete' => [
396 'path' => 'files/{fileId}/comments/{commentId}',
397 'httpMethod' => 'DELETE',
398 'parameters' => [
399 'fileId' => [
400 'location' => 'path',
401 'type' => 'string',
402 'required' => true,
403 ],
404 'commentId' => [
405 'location' => 'path',
406 'type' => 'string',
407 'required' => true,
408 ],
409 ],
410 ],'get' => [
411 'path' => 'files/{fileId}/comments/{commentId}',
412 'httpMethod' => 'GET',
413 'parameters' => [
414 'fileId' => [
415 'location' => 'path',
416 'type' => 'string',
417 'required' => true,
418 ],
419 'commentId' => [
420 'location' => 'path',
421 'type' => 'string',
422 'required' => true,
423 ],
424 'includeDeleted' => [
425 'location' => 'query',
426 'type' => 'boolean',
427 ],
428 ],
429 ],'list' => [
430 'path' => 'files/{fileId}/comments',
431 'httpMethod' => 'GET',
432 'parameters' => [
433 'fileId' => [
434 'location' => 'path',
435 'type' => 'string',
436 'required' => true,
437 ],
438 'includeDeleted' => [
439 'location' => 'query',
440 'type' => 'boolean',
441 ],
442 'pageSize' => [
443 'location' => 'query',
444 'type' => 'integer',
445 ],
446 'pageToken' => [
447 'location' => 'query',
448 'type' => 'string',
449 ],
450 'startModifiedTime' => [
451 'location' => 'query',
452 'type' => 'string',
453 ],
454 ],
455 ],'update' => [
456 'path' => 'files/{fileId}/comments/{commentId}',
457 'httpMethod' => 'PATCH',
458 'parameters' => [
459 'fileId' => [
460 'location' => 'path',
461 'type' => 'string',
462 'required' => true,
463 ],
464 'commentId' => [
465 'location' => 'path',
466 'type' => 'string',
467 'required' => true,
468 ],
469 ],
470 ],
471 ]
472 ]
473 );
474 $this->drives = new Drive\Resource\Drives(
475 $this,
476 $this->serviceName,
477 'drives',
478 [
479 'methods' => [
480 'create' => [
481 'path' => 'drives',
482 'httpMethod' => 'POST',
483 'parameters' => [
484 'requestId' => [
485 'location' => 'query',
486 'type' => 'string',
487 'required' => true,
488 ],
489 ],
490 ],'delete' => [
491 'path' => 'drives/{driveId}',
492 'httpMethod' => 'DELETE',
493 'parameters' => [
494 'driveId' => [
495 'location' => 'path',
496 'type' => 'string',
497 'required' => true,
498 ],
499 'allowItemDeletion' => [
500 'location' => 'query',
501 'type' => 'boolean',
502 ],
503 'useDomainAdminAccess' => [
504 'location' => 'query',
505 'type' => 'boolean',
506 ],
507 ],
508 ],'get' => [
509 'path' => 'drives/{driveId}',
510 'httpMethod' => 'GET',
511 'parameters' => [
512 'driveId' => [
513 'location' => 'path',
514 'type' => 'string',
515 'required' => true,
516 ],
517 'useDomainAdminAccess' => [
518 'location' => 'query',
519 'type' => 'boolean',
520 ],
521 ],
522 ],'hide' => [
523 'path' => 'drives/{driveId}/hide',
524 'httpMethod' => 'POST',
525 'parameters' => [
526 'driveId' => [
527 'location' => 'path',
528 'type' => 'string',
529 'required' => true,
530 ],
531 ],
532 ],'list' => [
533 'path' => 'drives',
534 'httpMethod' => 'GET',
535 'parameters' => [
536 'pageSize' => [
537 'location' => 'query',
538 'type' => 'integer',
539 ],
540 'pageToken' => [
541 'location' => 'query',
542 'type' => 'string',
543 ],
544 'q' => [
545 'location' => 'query',
546 'type' => 'string',
547 ],
548 'useDomainAdminAccess' => [
549 'location' => 'query',
550 'type' => 'boolean',
551 ],
552 ],
553 ],'unhide' => [
554 'path' => 'drives/{driveId}/unhide',
555 'httpMethod' => 'POST',
556 'parameters' => [
557 'driveId' => [
558 'location' => 'path',
559 'type' => 'string',
560 'required' => true,
561 ],
562 ],
563 ],'update' => [
564 'path' => 'drives/{driveId}',
565 'httpMethod' => 'PATCH',
566 'parameters' => [
567 'driveId' => [
568 'location' => 'path',
569 'type' => 'string',
570 'required' => true,
571 ],
572 'useDomainAdminAccess' => [
573 'location' => 'query',
574 'type' => 'boolean',
575 ],
576 ],
577 ],
578 ]
579 ]
580 );
581 $this->files = new Drive\Resource\Files(
582 $this,
583 $this->serviceName,
584 'files',
585 [
586 'methods' => [
587 'copy' => [
588 'path' => 'files/{fileId}/copy',
589 'httpMethod' => 'POST',
590 'parameters' => [
591 'fileId' => [
592 'location' => 'path',
593 'type' => 'string',
594 'required' => true,
595 ],
596 'enforceSingleParent' => [
597 'location' => 'query',
598 'type' => 'boolean',
599 ],
600 'ignoreDefaultVisibility' => [
601 'location' => 'query',
602 'type' => 'boolean',
603 ],
604 'includeLabels' => [
605 'location' => 'query',
606 'type' => 'string',
607 ],
608 'includePermissionsForView' => [
609 'location' => 'query',
610 'type' => 'string',
611 ],
612 'keepRevisionForever' => [
613 'location' => 'query',
614 'type' => 'boolean',
615 ],
616 'ocrLanguage' => [
617 'location' => 'query',
618 'type' => 'string',
619 ],
620 'supportsAllDrives' => [
621 'location' => 'query',
622 'type' => 'boolean',
623 ],
624 'supportsTeamDrives' => [
625 'location' => 'query',
626 'type' => 'boolean',
627 ],
628 ],
629 ],'create' => [
630 'path' => 'files',
631 'httpMethod' => 'POST',
632 'parameters' => [
633 'enforceSingleParent' => [
634 'location' => 'query',
635 'type' => 'boolean',
636 ],
637 'ignoreDefaultVisibility' => [
638 'location' => 'query',
639 'type' => 'boolean',
640 ],
641 'includeLabels' => [
642 'location' => 'query',
643 'type' => 'string',
644 ],
645 'includePermissionsForView' => [
646 'location' => 'query',
647 'type' => 'string',
648 ],
649 'keepRevisionForever' => [
650 'location' => 'query',
651 'type' => 'boolean',
652 ],
653 'ocrLanguage' => [
654 'location' => 'query',
655 'type' => 'string',
656 ],
657 'supportsAllDrives' => [
658 'location' => 'query',
659 'type' => 'boolean',
660 ],
661 'supportsTeamDrives' => [
662 'location' => 'query',
663 'type' => 'boolean',
664 ],
665 'useContentAsIndexableText' => [
666 'location' => 'query',
667 'type' => 'boolean',
668 ],
669 ],
670 ],'delete' => [
671 'path' => 'files/{fileId}',
672 'httpMethod' => 'DELETE',
673 'parameters' => [
674 'fileId' => [
675 'location' => 'path',
676 'type' => 'string',
677 'required' => true,
678 ],
679 'enforceSingleParent' => [
680 'location' => 'query',
681 'type' => 'boolean',
682 ],
683 'supportsAllDrives' => [
684 'location' => 'query',
685 'type' => 'boolean',
686 ],
687 'supportsTeamDrives' => [
688 'location' => 'query',
689 'type' => 'boolean',
690 ],
691 ],
692 ],'download' => [
693 'path' => 'files/{fileId}/download',
694 'httpMethod' => 'POST',
695 'parameters' => [
696 'fileId' => [
697 'location' => 'path',
698 'type' => 'string',
699 'required' => true,
700 ],
701 'mimeType' => [
702 'location' => 'query',
703 'type' => 'string',
704 ],
705 'revisionId' => [
706 'location' => 'query',
707 'type' => 'string',
708 ],
709 ],
710 ],'emptyTrash' => [
711 'path' => 'files/trash',
712 'httpMethod' => 'DELETE',
713 'parameters' => [
714 'driveId' => [
715 'location' => 'query',
716 'type' => 'string',
717 ],
718 'enforceSingleParent' => [
719 'location' => 'query',
720 'type' => 'boolean',
721 ],
722 ],
723 ],'export' => [
724 'path' => 'files/{fileId}/export',
725 'httpMethod' => 'GET',
726 'parameters' => [
727 'fileId' => [
728 'location' => 'path',
729 'type' => 'string',
730 'required' => true,
731 ],
732 'mimeType' => [
733 'location' => 'query',
734 'type' => 'string',
735 'required' => true,
736 ],
737 ],
738 ],'generateIds' => [
739 'path' => 'files/generateIds',
740 'httpMethod' => 'GET',
741 'parameters' => [
742 'count' => [
743 'location' => 'query',
744 'type' => 'integer',
745 ],
746 'space' => [
747 'location' => 'query',
748 'type' => 'string',
749 ],
750 'type' => [
751 'location' => 'query',
752 'type' => 'string',
753 ],
754 ],
755 ],'get' => [
756 'path' => 'files/{fileId}',
757 'httpMethod' => 'GET',
758 'parameters' => [
759 'fileId' => [
760 'location' => 'path',
761 'type' => 'string',
762 'required' => true,
763 ],
764 'acknowledgeAbuse' => [
765 'location' => 'query',
766 'type' => 'boolean',
767 ],
768 'includeLabels' => [
769 'location' => 'query',
770 'type' => 'string',
771 ],
772 'includePermissionsForView' => [
773 'location' => 'query',
774 'type' => 'string',
775 ],
776 'supportsAllDrives' => [
777 'location' => 'query',
778 'type' => 'boolean',
779 ],
780 'supportsTeamDrives' => [
781 'location' => 'query',
782 'type' => 'boolean',
783 ],
784 ],
785 ],'list' => [
786 'path' => 'files',
787 'httpMethod' => 'GET',
788 'parameters' => [
789 'corpora' => [
790 'location' => 'query',
791 'type' => 'string',
792 ],
793 'corpus' => [
794 'location' => 'query',
795 'type' => 'string',
796 ],
797 'driveId' => [
798 'location' => 'query',
799 'type' => 'string',
800 ],
801 'includeItemsFromAllDrives' => [
802 'location' => 'query',
803 'type' => 'boolean',
804 ],
805 'includeLabels' => [
806 'location' => 'query',
807 'type' => 'string',
808 ],
809 'includePermissionsForView' => [
810 'location' => 'query',
811 'type' => 'string',
812 ],
813 'includeTeamDriveItems' => [
814 'location' => 'query',
815 'type' => 'boolean',
816 ],
817 'orderBy' => [
818 'location' => 'query',
819 'type' => 'string',
820 ],
821 'pageSize' => [
822 'location' => 'query',
823 'type' => 'integer',
824 ],
825 'pageToken' => [
826 'location' => 'query',
827 'type' => 'string',
828 ],
829 'q' => [
830 'location' => 'query',
831 'type' => 'string',
832 ],
833 'spaces' => [
834 'location' => 'query',
835 'type' => 'string',
836 ],
837 'supportsAllDrives' => [
838 'location' => 'query',
839 'type' => 'boolean',
840 ],
841 'supportsTeamDrives' => [
842 'location' => 'query',
843 'type' => 'boolean',
844 ],
845 'teamDriveId' => [
846 'location' => 'query',
847 'type' => 'string',
848 ],
849 ],
850 ],'listLabels' => [
851 'path' => 'files/{fileId}/listLabels',
852 'httpMethod' => 'GET',
853 'parameters' => [
854 'fileId' => [
855 'location' => 'path',
856 'type' => 'string',
857 'required' => true,
858 ],
859 'maxResults' => [
860 'location' => 'query',
861 'type' => 'integer',
862 ],
863 'pageToken' => [
864 'location' => 'query',
865 'type' => 'string',
866 ],
867 ],
868 ],'modifyLabels' => [
869 'path' => 'files/{fileId}/modifyLabels',
870 'httpMethod' => 'POST',
871 'parameters' => [
872 'fileId' => [
873 'location' => 'path',
874 'type' => 'string',
875 'required' => true,
876 ],
877 ],
878 ],'update' => [
879 'path' => 'files/{fileId}',
880 'httpMethod' => 'PATCH',
881 'parameters' => [
882 'fileId' => [
883 'location' => 'path',
884 'type' => 'string',
885 'required' => true,
886 ],
887 'addParents' => [
888 'location' => 'query',
889 'type' => 'string',
890 ],
891 'enforceSingleParent' => [
892 'location' => 'query',
893 'type' => 'boolean',
894 ],
895 'includeLabels' => [
896 'location' => 'query',
897 'type' => 'string',
898 ],
899 'includePermissionsForView' => [
900 'location' => 'query',
901 'type' => 'string',
902 ],
903 'keepRevisionForever' => [
904 'location' => 'query',
905 'type' => 'boolean',
906 ],
907 'ocrLanguage' => [
908 'location' => 'query',
909 'type' => 'string',
910 ],
911 'removeParents' => [
912 'location' => 'query',
913 'type' => 'string',
914 ],
915 'supportsAllDrives' => [
916 'location' => 'query',
917 'type' => 'boolean',
918 ],
919 'supportsTeamDrives' => [
920 'location' => 'query',
921 'type' => 'boolean',
922 ],
923 'useContentAsIndexableText' => [
924 'location' => 'query',
925 'type' => 'boolean',
926 ],
927 ],
928 ],'watch' => [
929 'path' => 'files/{fileId}/watch',
930 'httpMethod' => 'POST',
931 'parameters' => [
932 'fileId' => [
933 'location' => 'path',
934 'type' => 'string',
935 'required' => true,
936 ],
937 'acknowledgeAbuse' => [
938 'location' => 'query',
939 'type' => 'boolean',
940 ],
941 'includeLabels' => [
942 'location' => 'query',
943 'type' => 'string',
944 ],
945 'includePermissionsForView' => [
946 'location' => 'query',
947 'type' => 'string',
948 ],
949 'supportsAllDrives' => [
950 'location' => 'query',
951 'type' => 'boolean',
952 ],
953 'supportsTeamDrives' => [
954 'location' => 'query',
955 'type' => 'boolean',
956 ],
957 ],
958 ],
959 ]
960 ]
961 );
962 $this->operation = new Drive\Resource\Operation(
963 $this,
964 $this->serviceName,
965 'operation',
966 [
967 'methods' => [
968 'cancel' => [
969 'path' => 'operation/{name}:cancel',
970 'httpMethod' => 'POST',
971 'parameters' => [
972 'name' => [
973 'location' => 'path',
974 'type' => 'string',
975 'required' => true,
976 ],
977 ],
978 ],'delete' => [
979 'path' => 'operation/{name}',
980 'httpMethod' => 'DELETE',
981 'parameters' => [
982 'name' => [
983 'location' => 'path',
984 'type' => 'string',
985 'required' => true,
986 ],
987 ],
988 ],
989 ]
990 ]
991 );
992 $this->operations = new Drive\Resource\Operations(
993 $this,
994 $this->serviceName,
995 'operations',
996 [
997 'methods' => [
998 'get' => [
999 'path' => 'operations/{name}',
1000 'httpMethod' => 'GET',
1001 'parameters' => [
1002 'name' => [
1003 'location' => 'path',
1004 'type' => 'string',
1005 'required' => true,
1006 ],
1007 ],
1008 ],'list' => [
1009 'path' => 'operations',
1010 'httpMethod' => 'GET',
1011 'parameters' => [
1012 'filter' => [
1013 'location' => 'query',
1014 'type' => 'string',
1015 ],
1016 'name' => [
1017 'location' => 'query',
1018 'type' => 'string',
1019 ],
1020 'pageSize' => [
1021 'location' => 'query',
1022 'type' => 'integer',
1023 ],
1024 'pageToken' => [
1025 'location' => 'query',
1026 'type' => 'string',
1027 ],
1028 ],
1029 ],
1030 ]
1031 ]
1032 );
1033 $this->permissions = new Drive\Resource\Permissions(
1034 $this,
1035 $this->serviceName,
1036 'permissions',
1037 [
1038 'methods' => [
1039 'create' => [
1040 'path' => 'files/{fileId}/permissions',
1041 'httpMethod' => 'POST',
1042 'parameters' => [
1043 'fileId' => [
1044 'location' => 'path',
1045 'type' => 'string',
1046 'required' => true,
1047 ],
1048 'emailMessage' => [
1049 'location' => 'query',
1050 'type' => 'string',
1051 ],
1052 'enforceSingleParent' => [
1053 'location' => 'query',
1054 'type' => 'boolean',
1055 ],
1056 'moveToNewOwnersRoot' => [
1057 'location' => 'query',
1058 'type' => 'boolean',
1059 ],
1060 'sendNotificationEmail' => [
1061 'location' => 'query',
1062 'type' => 'boolean',
1063 ],
1064 'supportsAllDrives' => [
1065 'location' => 'query',
1066 'type' => 'boolean',
1067 ],
1068 'supportsTeamDrives' => [
1069 'location' => 'query',
1070 'type' => 'boolean',
1071 ],
1072 'transferOwnership' => [
1073 'location' => 'query',
1074 'type' => 'boolean',
1075 ],
1076 'useDomainAdminAccess' => [
1077 'location' => 'query',
1078 'type' => 'boolean',
1079 ],
1080 ],
1081 ],'delete' => [
1082 'path' => 'files/{fileId}/permissions/{permissionId}',
1083 'httpMethod' => 'DELETE',
1084 'parameters' => [
1085 'fileId' => [
1086 'location' => 'path',
1087 'type' => 'string',
1088 'required' => true,
1089 ],
1090 'permissionId' => [
1091 'location' => 'path',
1092 'type' => 'string',
1093 'required' => true,
1094 ],
1095 'supportsAllDrives' => [
1096 'location' => 'query',
1097 'type' => 'boolean',
1098 ],
1099 'supportsTeamDrives' => [
1100 'location' => 'query',
1101 'type' => 'boolean',
1102 ],
1103 'useDomainAdminAccess' => [
1104 'location' => 'query',
1105 'type' => 'boolean',
1106 ],
1107 ],
1108 ],'get' => [
1109 'path' => 'files/{fileId}/permissions/{permissionId}',
1110 'httpMethod' => 'GET',
1111 'parameters' => [
1112 'fileId' => [
1113 'location' => 'path',
1114 'type' => 'string',
1115 'required' => true,
1116 ],
1117 'permissionId' => [
1118 'location' => 'path',
1119 'type' => 'string',
1120 'required' => true,
1121 ],
1122 'supportsAllDrives' => [
1123 'location' => 'query',
1124 'type' => 'boolean',
1125 ],
1126 'supportsTeamDrives' => [
1127 'location' => 'query',
1128 'type' => 'boolean',
1129 ],
1130 'useDomainAdminAccess' => [
1131 'location' => 'query',
1132 'type' => 'boolean',
1133 ],
1134 ],
1135 ],'list' => [
1136 'path' => 'files/{fileId}/permissions',
1137 'httpMethod' => 'GET',
1138 'parameters' => [
1139 'fileId' => [
1140 'location' => 'path',
1141 'type' => 'string',
1142 'required' => true,
1143 ],
1144 'includePermissionsForView' => [
1145 'location' => 'query',
1146 'type' => 'string',
1147 ],
1148 'pageSize' => [
1149 'location' => 'query',
1150 'type' => 'integer',
1151 ],
1152 'pageToken' => [
1153 'location' => 'query',
1154 'type' => 'string',
1155 ],
1156 'supportsAllDrives' => [
1157 'location' => 'query',
1158 'type' => 'boolean',
1159 ],
1160 'supportsTeamDrives' => [
1161 'location' => 'query',
1162 'type' => 'boolean',
1163 ],
1164 'useDomainAdminAccess' => [
1165 'location' => 'query',
1166 'type' => 'boolean',
1167 ],
1168 ],
1169 ],'update' => [
1170 'path' => 'files/{fileId}/permissions/{permissionId}',
1171 'httpMethod' => 'PATCH',
1172 'parameters' => [
1173 'fileId' => [
1174 'location' => 'path',
1175 'type' => 'string',
1176 'required' => true,
1177 ],
1178 'permissionId' => [
1179 'location' => 'path',
1180 'type' => 'string',
1181 'required' => true,
1182 ],
1183 'removeExpiration' => [
1184 'location' => 'query',
1185 'type' => 'boolean',
1186 ],
1187 'supportsAllDrives' => [
1188 'location' => 'query',
1189 'type' => 'boolean',
1190 ],
1191 'supportsTeamDrives' => [
1192 'location' => 'query',
1193 'type' => 'boolean',
1194 ],
1195 'transferOwnership' => [
1196 'location' => 'query',
1197 'type' => 'boolean',
1198 ],
1199 'useDomainAdminAccess' => [
1200 'location' => 'query',
1201 'type' => 'boolean',
1202 ],
1203 ],
1204 ],
1205 ]
1206 ]
1207 );
1208 $this->replies = new Drive\Resource\Replies(
1209 $this,
1210 $this->serviceName,
1211 'replies',
1212 [
1213 'methods' => [
1214 'create' => [
1215 'path' => 'files/{fileId}/comments/{commentId}/replies',
1216 'httpMethod' => 'POST',
1217 'parameters' => [
1218 'fileId' => [
1219 'location' => 'path',
1220 'type' => 'string',
1221 'required' => true,
1222 ],
1223 'commentId' => [
1224 'location' => 'path',
1225 'type' => 'string',
1226 'required' => true,
1227 ],
1228 ],
1229 ],'delete' => [
1230 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
1231 'httpMethod' => 'DELETE',
1232 'parameters' => [
1233 'fileId' => [
1234 'location' => 'path',
1235 'type' => 'string',
1236 'required' => true,
1237 ],
1238 'commentId' => [
1239 'location' => 'path',
1240 'type' => 'string',
1241 'required' => true,
1242 ],
1243 'replyId' => [
1244 'location' => 'path',
1245 'type' => 'string',
1246 'required' => true,
1247 ],
1248 ],
1249 ],'get' => [
1250 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
1251 'httpMethod' => 'GET',
1252 'parameters' => [
1253 'fileId' => [
1254 'location' => 'path',
1255 'type' => 'string',
1256 'required' => true,
1257 ],
1258 'commentId' => [
1259 'location' => 'path',
1260 'type' => 'string',
1261 'required' => true,
1262 ],
1263 'replyId' => [
1264 'location' => 'path',
1265 'type' => 'string',
1266 'required' => true,
1267 ],
1268 'includeDeleted' => [
1269 'location' => 'query',
1270 'type' => 'boolean',
1271 ],
1272 ],
1273 ],'list' => [
1274 'path' => 'files/{fileId}/comments/{commentId}/replies',
1275 'httpMethod' => 'GET',
1276 'parameters' => [
1277 'fileId' => [
1278 'location' => 'path',
1279 'type' => 'string',
1280 'required' => true,
1281 ],
1282 'commentId' => [
1283 'location' => 'path',
1284 'type' => 'string',
1285 'required' => true,
1286 ],
1287 'includeDeleted' => [
1288 'location' => 'query',
1289 'type' => 'boolean',
1290 ],
1291 'pageSize' => [
1292 'location' => 'query',
1293 'type' => 'integer',
1294 ],
1295 'pageToken' => [
1296 'location' => 'query',
1297 'type' => 'string',
1298 ],
1299 ],
1300 ],'update' => [
1301 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
1302 'httpMethod' => 'PATCH',
1303 'parameters' => [
1304 'fileId' => [
1305 'location' => 'path',
1306 'type' => 'string',
1307 'required' => true,
1308 ],
1309 'commentId' => [
1310 'location' => 'path',
1311 'type' => 'string',
1312 'required' => true,
1313 ],
1314 'replyId' => [
1315 'location' => 'path',
1316 'type' => 'string',
1317 'required' => true,
1318 ],
1319 ],
1320 ],
1321 ]
1322 ]
1323 );
1324 $this->revisions = new Drive\Resource\Revisions(
1325 $this,
1326 $this->serviceName,
1327 'revisions',
1328 [
1329 'methods' => [
1330 'delete' => [
1331 'path' => 'files/{fileId}/revisions/{revisionId}',
1332 'httpMethod' => 'DELETE',
1333 'parameters' => [
1334 'fileId' => [
1335 'location' => 'path',
1336 'type' => 'string',
1337 'required' => true,
1338 ],
1339 'revisionId' => [
1340 'location' => 'path',
1341 'type' => 'string',
1342 'required' => true,
1343 ],
1344 ],
1345 ],'get' => [
1346 'path' => 'files/{fileId}/revisions/{revisionId}',
1347 'httpMethod' => 'GET',
1348 'parameters' => [
1349 'fileId' => [
1350 'location' => 'path',
1351 'type' => 'string',
1352 'required' => true,
1353 ],
1354 'revisionId' => [
1355 'location' => 'path',
1356 'type' => 'string',
1357 'required' => true,
1358 ],
1359 'acknowledgeAbuse' => [
1360 'location' => 'query',
1361 'type' => 'boolean',
1362 ],
1363 ],
1364 ],'list' => [
1365 'path' => 'files/{fileId}/revisions',
1366 'httpMethod' => 'GET',
1367 'parameters' => [
1368 'fileId' => [
1369 'location' => 'path',
1370 'type' => 'string',
1371 'required' => true,
1372 ],
1373 'pageSize' => [
1374 'location' => 'query',
1375 'type' => 'integer',
1376 ],
1377 'pageToken' => [
1378 'location' => 'query',
1379 'type' => 'string',
1380 ],
1381 ],
1382 ],'update' => [
1383 'path' => 'files/{fileId}/revisions/{revisionId}',
1384 'httpMethod' => 'PATCH',
1385 'parameters' => [
1386 'fileId' => [
1387 'location' => 'path',
1388 'type' => 'string',
1389 'required' => true,
1390 ],
1391 'revisionId' => [
1392 'location' => 'path',
1393 'type' => 'string',
1394 'required' => true,
1395 ],
1396 ],
1397 ],
1398 ]
1399 ]
1400 );
1401 $this->teamdrives = new Drive\Resource\Teamdrives(
1402 $this,
1403 $this->serviceName,
1404 'teamdrives',
1405 [
1406 'methods' => [
1407 'create' => [
1408 'path' => 'teamdrives',
1409 'httpMethod' => 'POST',
1410 'parameters' => [
1411 'requestId' => [
1412 'location' => 'query',
1413 'type' => 'string',
1414 'required' => true,
1415 ],
1416 ],
1417 ],'delete' => [
1418 'path' => 'teamdrives/{teamDriveId}',
1419 'httpMethod' => 'DELETE',
1420 'parameters' => [
1421 'teamDriveId' => [
1422 'location' => 'path',
1423 'type' => 'string',
1424 'required' => true,
1425 ],
1426 ],
1427 ],'get' => [
1428 'path' => 'teamdrives/{teamDriveId}',
1429 'httpMethod' => 'GET',
1430 'parameters' => [
1431 'teamDriveId' => [
1432 'location' => 'path',
1433 'type' => 'string',
1434 'required' => true,
1435 ],
1436 'useDomainAdminAccess' => [
1437 'location' => 'query',
1438 'type' => 'boolean',
1439 ],
1440 ],
1441 ],'list' => [
1442 'path' => 'teamdrives',
1443 'httpMethod' => 'GET',
1444 'parameters' => [
1445 'pageSize' => [
1446 'location' => 'query',
1447 'type' => 'integer',
1448 ],
1449 'pageToken' => [
1450 'location' => 'query',
1451 'type' => 'string',
1452 ],
1453 'q' => [
1454 'location' => 'query',
1455 'type' => 'string',
1456 ],
1457 'useDomainAdminAccess' => [
1458 'location' => 'query',
1459 'type' => 'boolean',
1460 ],
1461 ],
1462 ],'update' => [
1463 'path' => 'teamdrives/{teamDriveId}',
1464 'httpMethod' => 'PATCH',
1465 'parameters' => [
1466 'teamDriveId' => [
1467 'location' => 'path',
1468 'type' => 'string',
1469 'required' => true,
1470 ],
1471 'useDomainAdminAccess' => [
1472 'location' => 'query',
1473 'type' => 'boolean',
1474 ],
1475 ],
1476 ],
1477 ]
1478 ]
1479 );
1480 }
1481}
1482
1483// Adding a class alias for backwards compatibility with the previous class name.
1484class_alias(Drive::class, 'Google_Service_Drive');
Note: See TracBrowser for help on using the repository browser.