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 18/** 19 * Service definition for Drive (v3). 20 * 21 * <p> 22 * Manages files in Drive including uploading, downloading, searching, detecting 23 * changes, and updating sharing permissions.</p> 24 * 25 * <p> 26 * For more information about this service, see the API 27 * <a href="https://developers.google.com/drive/" target="_blank">Documentation</a> 28 * </p> 29 * 30 * @author Google, Inc. 31 */ 32class Google_Service_Drive extends Google_Service 33{ 34 /** See, edit, create, and delete all of your Google Drive files. */ 35 const DRIVE = 36 "https://www.googleapis.com/auth/drive"; 37 /** View and manage its own configuration data in your Google Drive. */ 38 const DRIVE_APPDATA = 39 "https://www.googleapis.com/auth/drive.appdata"; 40 /** View and manage Google Drive files and folders that you have opened or created with this app. */ 41 const DRIVE_FILE = 42 "https://www.googleapis.com/auth/drive.file"; 43 /** View and manage metadata of files in your Google Drive. */ 44 const DRIVE_METADATA = 45 "https://www.googleapis.com/auth/drive.metadata"; 46 /** View metadata for files in your Google Drive. */ 47 const DRIVE_METADATA_READONLY = 48 "https://www.googleapis.com/auth/drive.metadata.readonly"; 49 /** View the photos, videos and albums in your Google Photos. */ 50 const DRIVE_PHOTOS_READONLY = 51 "https://www.googleapis.com/auth/drive.photos.readonly"; 52 /** See and download all your Google Drive files. */ 53 const DRIVE_READONLY = 54 "https://www.googleapis.com/auth/drive.readonly"; 55 /** Modify your Google Apps Script scripts' behavior. */ 56 const DRIVE_SCRIPTS = 57 "https://www.googleapis.com/auth/drive.scripts"; 58 59 public $about; 60 public $changes; 61 public $channels; 62 public $comments; 63 public $drives; 64 public $files; 65 public $permissions; 66 public $replies; 67 public $revisions; 68 public $teamdrives; 69 70 /** 71 * Constructs the internal representation of the Drive service. 72 * 73 * @param Google_Client $client 74 */ 75 public function __construct(Google_Client $client) 76 { 77 parent::__construct($client); 78 $this->rootUrl = 'https://www.googleapis.com/'; 79 $this->servicePath = 'drive/v3/'; 80 $this->batchPath = 'batch/drive/v3'; 81 $this->version = 'v3'; 82 $this->serviceName = 'drive'; 83 84 $this->about = new Google_Service_Drive_Resource_About( 85 $this, 86 $this->serviceName, 87 'about', 88 array( 89 'methods' => array( 90 'get' => array( 91 'path' => 'about', 92 'httpMethod' => 'GET', 93 'parameters' => array(), 94 ), 95 ) 96 ) 97 ); 98 $this->changes = new Google_Service_Drive_Resource_Changes( 99 $this, 100 $this->serviceName, 101 'changes', 102 array( 103 'methods' => array( 104 'getStartPageToken' => array( 105 'path' => 'changes/startPageToken', 106 'httpMethod' => 'GET', 107 'parameters' => array( 108 'driveId' => array( 109 'location' => 'query', 110 'type' => 'string', 111 ), 112 'supportsAllDrives' => array( 113 'location' => 'query', 114 'type' => 'boolean', 115 ), 116 'supportsTeamDrives' => array( 117 'location' => 'query', 118 'type' => 'boolean', 119 ), 120 'teamDriveId' => array( 121 'location' => 'query', 122 'type' => 'string', 123 ), 124 ), 125 ),'list' => array( 126 'path' => 'changes', 127 'httpMethod' => 'GET', 128 'parameters' => array( 129 'pageToken' => array( 130 'location' => 'query', 131 'type' => 'string', 132 'required' => true, 133 ), 134 'driveId' => array( 135 'location' => 'query', 136 'type' => 'string', 137 ), 138 'includeCorpusRemovals' => array( 139 'location' => 'query', 140 'type' => 'boolean', 141 ), 142 'includeItemsFromAllDrives' => array( 143 'location' => 'query', 144 'type' => 'boolean', 145 ), 146 'includeRemoved' => array( 147 'location' => 'query', 148 'type' => 'boolean', 149 ), 150 'includeTeamDriveItems' => array( 151 'location' => 'query', 152 'type' => 'boolean', 153 ), 154 'pageSize' => array( 155 'location' => 'query', 156 'type' => 'integer', 157 ), 158 'restrictToMyDrive' => array( 159 'location' => 'query', 160 'type' => 'boolean', 161 ), 162 'spaces' => array( 163 'location' => 'query', 164 'type' => 'string', 165 ), 166 'supportsAllDrives' => array( 167 'location' => 'query', 168 'type' => 'boolean', 169 ), 170 'supportsTeamDrives' => array( 171 'location' => 'query', 172 'type' => 'boolean', 173 ), 174 'teamDriveId' => array( 175 'location' => 'query', 176 'type' => 'string', 177 ), 178 ), 179 ),'watch' => array( 180 'path' => 'changes/watch', 181 'httpMethod' => 'POST', 182 'parameters' => array( 183 'pageToken' => array( 184 'location' => 'query', 185 'type' => 'string', 186 'required' => true, 187 ), 188 'driveId' => array( 189 'location' => 'query', 190 'type' => 'string', 191 ), 192 'includeCorpusRemovals' => array( 193 'location' => 'query', 194 'type' => 'boolean', 195 ), 196 'includeItemsFromAllDrives' => array( 197 'location' => 'query', 198 'type' => 'boolean', 199 ), 200 'includeRemoved' => array( 201 'location' => 'query', 202 'type' => 'boolean', 203 ), 204 'includeTeamDriveItems' => array( 205 'location' => 'query', 206 'type' => 'boolean', 207 ), 208 'pageSize' => array( 209 'location' => 'query', 210 'type' => 'integer', 211 ), 212 'restrictToMyDrive' => array( 213 'location' => 'query', 214 'type' => 'boolean', 215 ), 216 'spaces' => array( 217 'location' => 'query', 218 'type' => 'string', 219 ), 220 'supportsAllDrives' => array( 221 'location' => 'query', 222 'type' => 'boolean', 223 ), 224 'supportsTeamDrives' => array( 225 'location' => 'query', 226 'type' => 'boolean', 227 ), 228 'teamDriveId' => array( 229 'location' => 'query', 230 'type' => 'string', 231 ), 232 ), 233 ), 234 ) 235 ) 236 ); 237 $this->channels = new Google_Service_Drive_Resource_Channels( 238 $this, 239 $this->serviceName, 240 'channels', 241 array( 242 'methods' => array( 243 'stop' => array( 244 'path' => 'channels/stop', 245 'httpMethod' => 'POST', 246 'parameters' => array(), 247 ), 248 ) 249 ) 250 ); 251 $this->comments = new Google_Service_Drive_Resource_Comments( 252 $this, 253 $this->serviceName, 254 'comments', 255 array( 256 'methods' => array( 257 'create' => array( 258 'path' => 'files/{fileId}/comments', 259 'httpMethod' => 'POST', 260 'parameters' => array( 261 'fileId' => array( 262 'location' => 'path', 263 'type' => 'string', 264 'required' => true, 265 ), 266 ), 267 ),'delete' => array( 268 'path' => 'files/{fileId}/comments/{commentId}', 269 'httpMethod' => 'DELETE', 270 'parameters' => array( 271 'fileId' => array( 272 'location' => 'path', 273 'type' => 'string', 274 'required' => true, 275 ), 276 'commentId' => array( 277 'location' => 'path', 278 'type' => 'string', 279 'required' => true, 280 ), 281 ), 282 ),'get' => array( 283 'path' => 'files/{fileId}/comments/{commentId}', 284 'httpMethod' => 'GET', 285 'parameters' => array( 286 'fileId' => array( 287 'location' => 'path', 288 'type' => 'string', 289 'required' => true, 290 ), 291 'commentId' => array( 292 'location' => 'path', 293 'type' => 'string', 294 'required' => true, 295 ), 296 'includeDeleted' => array( 297 'location' => 'query', 298 'type' => 'boolean', 299 ), 300 ), 301 ),'list' => array( 302 'path' => 'files/{fileId}/comments', 303 'httpMethod' => 'GET', 304 'parameters' => array( 305 'fileId' => array( 306 'location' => 'path', 307 'type' => 'string', 308 'required' => true, 309 ), 310 'includeDeleted' => array( 311 'location' => 'query', 312 'type' => 'boolean', 313 ), 314 'pageSize' => array( 315 'location' => 'query', 316 'type' => 'integer', 317 ), 318 'pageToken' => array( 319 'location' => 'query', 320 'type' => 'string', 321 ), 322 'startModifiedTime' => array( 323 'location' => 'query', 324 'type' => 'string', 325 ), 326 ), 327 ),'update' => array( 328 'path' => 'files/{fileId}/comments/{commentId}', 329 'httpMethod' => 'PATCH', 330 'parameters' => array( 331 'fileId' => array( 332 'location' => 'path', 333 'type' => 'string', 334 'required' => true, 335 ), 336 'commentId' => array( 337 'location' => 'path', 338 'type' => 'string', 339 'required' => true, 340 ), 341 ), 342 ), 343 ) 344 ) 345 ); 346 $this->drives = new Google_Service_Drive_Resource_Drives( 347 $this, 348 $this->serviceName, 349 'drives', 350 array( 351 'methods' => array( 352 'create' => array( 353 'path' => 'drives', 354 'httpMethod' => 'POST', 355 'parameters' => array( 356 'requestId' => array( 357 'location' => 'query', 358 'type' => 'string', 359 'required' => true, 360 ), 361 ), 362 ),'delete' => array( 363 'path' => 'drives/{driveId}', 364 'httpMethod' => 'DELETE', 365 'parameters' => array( 366 'driveId' => array( 367 'location' => 'path', 368 'type' => 'string', 369 'required' => true, 370 ), 371 ), 372 ),'get' => array( 373 'path' => 'drives/{driveId}', 374 'httpMethod' => 'GET', 375 'parameters' => array( 376 'driveId' => array( 377 'location' => 'path', 378 'type' => 'string', 379 'required' => true, 380 ), 381 'useDomainAdminAccess' => array( 382 'location' => 'query', 383 'type' => 'boolean', 384 ), 385 ), 386 ),'hide' => array( 387 'path' => 'drives/{driveId}/hide', 388 'httpMethod' => 'POST', 389 'parameters' => array( 390 'driveId' => array( 391 'location' => 'path', 392 'type' => 'string', 393 'required' => true, 394 ), 395 ), 396 ),'list' => array( 397 'path' => 'drives', 398 'httpMethod' => 'GET', 399 'parameters' => array( 400 'pageSize' => array( 401 'location' => 'query', 402 'type' => 'integer', 403 ), 404 'pageToken' => array( 405 'location' => 'query', 406 'type' => 'string', 407 ), 408 'q' => array( 409 'location' => 'query', 410 'type' => 'string', 411 ), 412 'useDomainAdminAccess' => array( 413 'location' => 'query', 414 'type' => 'boolean', 415 ), 416 ), 417 ),'unhide' => array( 418 'path' => 'drives/{driveId}/unhide', 419 'httpMethod' => 'POST', 420 'parameters' => array( 421 'driveId' => array( 422 'location' => 'path', 423 'type' => 'string', 424 'required' => true, 425 ), 426 ), 427 ),'update' => array( 428 'path' => 'drives/{driveId}', 429 'httpMethod' => 'PATCH', 430 'parameters' => array( 431 'driveId' => array( 432 'location' => 'path', 433 'type' => 'string', 434 'required' => true, 435 ), 436 'useDomainAdminAccess' => array( 437 'location' => 'query', 438 'type' => 'boolean', 439 ), 440 ), 441 ), 442 ) 443 ) 444 ); 445 $this->files = new Google_Service_Drive_Resource_Files( 446 $this, 447 $this->serviceName, 448 'files', 449 array( 450 'methods' => array( 451 'copy' => array( 452 'path' => 'files/{fileId}/copy', 453 'httpMethod' => 'POST', 454 'parameters' => array( 455 'fileId' => array( 456 'location' => 'path', 457 'type' => 'string', 458 'required' => true, 459 ), 460 'ignoreDefaultVisibility' => array( 461 'location' => 'query', 462 'type' => 'boolean', 463 ), 464 'keepRevisionForever' => array( 465 'location' => 'query', 466 'type' => 'boolean', 467 ), 468 'ocrLanguage' => array( 469 'location' => 'query', 470 'type' => 'string', 471 ), 472 'supportsAllDrives' => array( 473 'location' => 'query', 474 'type' => 'boolean', 475 ), 476 'supportsTeamDrives' => array( 477 'location' => 'query', 478 'type' => 'boolean', 479 ), 480 ), 481 ),'create' => array( 482 'path' => 'files', 483 'httpMethod' => 'POST', 484 'parameters' => array( 485 'ignoreDefaultVisibility' => array( 486 'location' => 'query', 487 'type' => 'boolean', 488 ), 489 'keepRevisionForever' => array( 490 'location' => 'query', 491 'type' => 'boolean', 492 ), 493 'ocrLanguage' => array( 494 'location' => 'query', 495 'type' => 'string', 496 ), 497 'supportsAllDrives' => array( 498 'location' => 'query', 499 'type' => 'boolean', 500 ), 501 'supportsTeamDrives' => array( 502 'location' => 'query', 503 'type' => 'boolean', 504 ), 505 'useContentAsIndexableText' => array( 506 'location' => 'query', 507 'type' => 'boolean', 508 ), 509 ), 510 ),'delete' => array( 511 'path' => 'files/{fileId}', 512 'httpMethod' => 'DELETE', 513 'parameters' => array( 514 'fileId' => array( 515 'location' => 'path', 516 'type' => 'string', 517 'required' => true, 518 ), 519 'supportsAllDrives' => array( 520 'location' => 'query', 521 'type' => 'boolean', 522 ), 523 'supportsTeamDrives' => array( 524 'location' => 'query', 525 'type' => 'boolean', 526 ), 527 ), 528 ),'emptyTrash' => array( 529 'path' => 'files/trash', 530 'httpMethod' => 'DELETE', 531 'parameters' => array(), 532 ),'export' => array( 533 'path' => 'files/{fileId}/export', 534 'httpMethod' => 'GET', 535 'parameters' => array( 536 'fileId' => array( 537 'location' => 'path', 538 'type' => 'string', 539 'required' => true, 540 ), 541 'mimeType' => array( 542 'location' => 'query', 543 'type' => 'string', 544 'required' => true, 545 ), 546 ), 547 ),'generateIds' => array( 548 'path' => 'files/generateIds', 549 'httpMethod' => 'GET', 550 'parameters' => array( 551 'count' => array( 552 'location' => 'query', 553 'type' => 'integer', 554 ), 555 'space' => array( 556 'location' => 'query', 557 'type' => 'string', 558 ), 559 ), 560 ),'get' => array( 561 'path' => 'files/{fileId}', 562 'httpMethod' => 'GET', 563 'parameters' => array( 564 'fileId' => array( 565 'location' => 'path', 566 'type' => 'string', 567 'required' => true, 568 ), 569 'acknowledgeAbuse' => array( 570 'location' => 'query', 571 'type' => 'boolean', 572 ), 573 'supportsAllDrives' => array( 574 'location' => 'query', 575 'type' => 'boolean', 576 ), 577 'supportsTeamDrives' => array( 578 'location' => 'query', 579 'type' => 'boolean', 580 ), 581 ), 582 ),'list' => array( 583 'path' => 'files', 584 'httpMethod' => 'GET', 585 'parameters' => array( 586 'corpora' => array( 587 'location' => 'query', 588 'type' => 'string', 589 ), 590 'corpus' => array( 591 'location' => 'query', 592 'type' => 'string', 593 ), 594 'driveId' => array( 595 'location' => 'query', 596 'type' => 'string', 597 ), 598 'includeItemsFromAllDrives' => array( 599 'location' => 'query', 600 'type' => 'boolean', 601 ), 602 'includeTeamDriveItems' => array( 603 'location' => 'query', 604 'type' => 'boolean', 605 ), 606 'orderBy' => array( 607 'location' => 'query', 608 'type' => 'string', 609 ), 610 'pageSize' => array( 611 'location' => 'query', 612 'type' => 'integer', 613 ), 614 'pageToken' => array( 615 'location' => 'query', 616 'type' => 'string', 617 ), 618 'q' => array( 619 'location' => 'query', 620 'type' => 'string', 621 ), 622 'spaces' => array( 623 'location' => 'query', 624 'type' => 'string', 625 ), 626 'supportsAllDrives' => array( 627 'location' => 'query', 628 'type' => 'boolean', 629 ), 630 'supportsTeamDrives' => array( 631 'location' => 'query', 632 'type' => 'boolean', 633 ), 634 'teamDriveId' => array( 635 'location' => 'query', 636 'type' => 'string', 637 ), 638 ), 639 ),'update' => array( 640 'path' => 'files/{fileId}', 641 'httpMethod' => 'PATCH', 642 'parameters' => array( 643 'fileId' => array( 644 'location' => 'path', 645 'type' => 'string', 646 'required' => true, 647 ), 648 'addParents' => array( 649 'location' => 'query', 650 'type' => 'string', 651 ), 652 'keepRevisionForever' => array( 653 'location' => 'query', 654 'type' => 'boolean', 655 ), 656 'ocrLanguage' => array( 657 'location' => 'query', 658 'type' => 'string', 659 ), 660 'removeParents' => array( 661 'location' => 'query', 662 'type' => 'string', 663 ), 664 'supportsAllDrives' => array( 665 'location' => 'query', 666 'type' => 'boolean', 667 ), 668 'supportsTeamDrives' => array( 669 'location' => 'query', 670 'type' => 'boolean', 671 ), 672 'useContentAsIndexableText' => array( 673 'location' => 'query', 674 'type' => 'boolean', 675 ), 676 ), 677 ),'watch' => array( 678 'path' => 'files/{fileId}/watch', 679 'httpMethod' => 'POST', 680 'parameters' => array( 681 'fileId' => array( 682 'location' => 'path', 683 'type' => 'string', 684 'required' => true, 685 ), 686 'acknowledgeAbuse' => array( 687 'location' => 'query', 688 'type' => 'boolean', 689 ), 690 'supportsAllDrives' => array( 691 'location' => 'query', 692 'type' => 'boolean', 693 ), 694 'supportsTeamDrives' => array( 695 'location' => 'query', 696 'type' => 'boolean', 697 ), 698 ), 699 ), 700 ) 701 ) 702 ); 703 $this->permissions = new Google_Service_Drive_Resource_Permissions( 704 $this, 705 $this->serviceName, 706 'permissions', 707 array( 708 'methods' => array( 709 'create' => array( 710 'path' => 'files/{fileId}/permissions', 711 'httpMethod' => 'POST', 712 'parameters' => array( 713 'fileId' => array( 714 'location' => 'path', 715 'type' => 'string', 716 'required' => true, 717 ), 718 'emailMessage' => array( 719 'location' => 'query', 720 'type' => 'string', 721 ), 722 'sendNotificationEmail' => array( 723 'location' => 'query', 724 'type' => 'boolean', 725 ), 726 'supportsAllDrives' => array( 727 'location' => 'query', 728 'type' => 'boolean', 729 ), 730 'supportsTeamDrives' => array( 731 'location' => 'query', 732 'type' => 'boolean', 733 ), 734 'transferOwnership' => array( 735 'location' => 'query', 736 'type' => 'boolean', 737 ), 738 'useDomainAdminAccess' => array( 739 'location' => 'query', 740 'type' => 'boolean', 741 ), 742 ), 743 ),'delete' => array( 744 'path' => 'files/{fileId}/permissions/{permissionId}', 745 'httpMethod' => 'DELETE', 746 'parameters' => array( 747 'fileId' => array( 748 'location' => 'path', 749 'type' => 'string', 750 'required' => true, 751 ), 752 'permissionId' => array( 753 'location' => 'path', 754 'type' => 'string', 755 'required' => true, 756 ), 757 'supportsAllDrives' => array( 758 'location' => 'query', 759 'type' => 'boolean', 760 ), 761 'supportsTeamDrives' => array( 762 'location' => 'query', 763 'type' => 'boolean', 764 ), 765 'useDomainAdminAccess' => array( 766 'location' => 'query', 767 'type' => 'boolean', 768 ), 769 ), 770 ),'get' => array( 771 'path' => 'files/{fileId}/permissions/{permissionId}', 772 'httpMethod' => 'GET', 773 'parameters' => array( 774 'fileId' => array( 775 'location' => 'path', 776 'type' => 'string', 777 'required' => true, 778 ), 779 'permissionId' => array( 780 'location' => 'path', 781 'type' => 'string', 782 'required' => true, 783 ), 784 'supportsAllDrives' => array( 785 'location' => 'query', 786 'type' => 'boolean', 787 ), 788 'supportsTeamDrives' => array( 789 'location' => 'query', 790 'type' => 'boolean', 791 ), 792 'useDomainAdminAccess' => array( 793 'location' => 'query', 794 'type' => 'boolean', 795 ), 796 ), 797 ),'list' => array( 798 'path' => 'files/{fileId}/permissions', 799 'httpMethod' => 'GET', 800 'parameters' => array( 801 'fileId' => array( 802 'location' => 'path', 803 'type' => 'string', 804 'required' => true, 805 ), 806 'pageSize' => array( 807 'location' => 'query', 808 'type' => 'integer', 809 ), 810 'pageToken' => array( 811 'location' => 'query', 812 'type' => 'string', 813 ), 814 'supportsAllDrives' => array( 815 'location' => 'query', 816 'type' => 'boolean', 817 ), 818 'supportsTeamDrives' => array( 819 'location' => 'query', 820 'type' => 'boolean', 821 ), 822 'useDomainAdminAccess' => array( 823 'location' => 'query', 824 'type' => 'boolean', 825 ), 826 ), 827 ),'update' => array( 828 'path' => 'files/{fileId}/permissions/{permissionId}', 829 'httpMethod' => 'PATCH', 830 'parameters' => array( 831 'fileId' => array( 832 'location' => 'path', 833 'type' => 'string', 834 'required' => true, 835 ), 836 'permissionId' => array( 837 'location' => 'path', 838 'type' => 'string', 839 'required' => true, 840 ), 841 'removeExpiration' => array( 842 'location' => 'query', 843 'type' => 'boolean', 844 ), 845 'supportsAllDrives' => array( 846 'location' => 'query', 847 'type' => 'boolean', 848 ), 849 'supportsTeamDrives' => array( 850 'location' => 'query', 851 'type' => 'boolean', 852 ), 853 'transferOwnership' => array( 854 'location' => 'query', 855 'type' => 'boolean', 856 ), 857 'useDomainAdminAccess' => array( 858 'location' => 'query', 859 'type' => 'boolean', 860 ), 861 ), 862 ), 863 ) 864 ) 865 ); 866 $this->replies = new Google_Service_Drive_Resource_Replies( 867 $this, 868 $this->serviceName, 869 'replies', 870 array( 871 'methods' => array( 872 'create' => array( 873 'path' => 'files/{fileId}/comments/{commentId}/replies', 874 'httpMethod' => 'POST', 875 'parameters' => array( 876 'fileId' => array( 877 'location' => 'path', 878 'type' => 'string', 879 'required' => true, 880 ), 881 'commentId' => array( 882 'location' => 'path', 883 'type' => 'string', 884 'required' => true, 885 ), 886 ), 887 ),'delete' => array( 888 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', 889 'httpMethod' => 'DELETE', 890 'parameters' => array( 891 'fileId' => array( 892 'location' => 'path', 893 'type' => 'string', 894 'required' => true, 895 ), 896 'commentId' => array( 897 'location' => 'path', 898 'type' => 'string', 899 'required' => true, 900 ), 901 'replyId' => array( 902 'location' => 'path', 903 'type' => 'string', 904 'required' => true, 905 ), 906 ), 907 ),'get' => array( 908 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', 909 'httpMethod' => 'GET', 910 'parameters' => array( 911 'fileId' => array( 912 'location' => 'path', 913 'type' => 'string', 914 'required' => true, 915 ), 916 'commentId' => array( 917 'location' => 'path', 918 'type' => 'string', 919 'required' => true, 920 ), 921 'replyId' => array( 922 'location' => 'path', 923 'type' => 'string', 924 'required' => true, 925 ), 926 'includeDeleted' => array( 927 'location' => 'query', 928 'type' => 'boolean', 929 ), 930 ), 931 ),'list' => array( 932 'path' => 'files/{fileId}/comments/{commentId}/replies', 933 'httpMethod' => 'GET', 934 'parameters' => array( 935 'fileId' => array( 936 'location' => 'path', 937 'type' => 'string', 938 'required' => true, 939 ), 940 'commentId' => array( 941 'location' => 'path', 942 'type' => 'string', 943 'required' => true, 944 ), 945 'includeDeleted' => array( 946 'location' => 'query', 947 'type' => 'boolean', 948 ), 949 'pageSize' => array( 950 'location' => 'query', 951 'type' => 'integer', 952 ), 953 'pageToken' => array( 954 'location' => 'query', 955 'type' => 'string', 956 ), 957 ), 958 ),'update' => array( 959 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', 960 'httpMethod' => 'PATCH', 961 'parameters' => array( 962 'fileId' => array( 963 'location' => 'path', 964 'type' => 'string', 965 'required' => true, 966 ), 967 'commentId' => array( 968 'location' => 'path', 969 'type' => 'string', 970 'required' => true, 971 ), 972 'replyId' => array( 973 'location' => 'path', 974 'type' => 'string', 975 'required' => true, 976 ), 977 ), 978 ), 979 ) 980 ) 981 ); 982 $this->revisions = new Google_Service_Drive_Resource_Revisions( 983 $this, 984 $this->serviceName, 985 'revisions', 986 array( 987 'methods' => array( 988 'delete' => array( 989 'path' => 'files/{fileId}/revisions/{revisionId}', 990 'httpMethod' => 'DELETE', 991 'parameters' => array( 992 'fileId' => array( 993 'location' => 'path', 994 'type' => 'string', 995 'required' => true, 996 ), 997 'revisionId' => array( 998 'location' => 'path', 999 'type' => 'string', 1000 'required' => true, 1001 ), 1002 ), 1003 ),'get' => array( 1004 'path' => 'files/{fileId}/revisions/{revisionId}', 1005 'httpMethod' => 'GET', 1006 'parameters' => array( 1007 'fileId' => array( 1008 'location' => 'path', 1009 'type' => 'string', 1010 'required' => true, 1011 ), 1012 'revisionId' => array( 1013 'location' => 'path', 1014 'type' => 'string', 1015 'required' => true, 1016 ), 1017 'acknowledgeAbuse' => array( 1018 'location' => 'query', 1019 'type' => 'boolean', 1020 ), 1021 ), 1022 ),'list' => array( 1023 'path' => 'files/{fileId}/revisions', 1024 'httpMethod' => 'GET', 1025 'parameters' => array( 1026 'fileId' => array( 1027 'location' => 'path', 1028 'type' => 'string', 1029 'required' => true, 1030 ), 1031 'pageSize' => array( 1032 'location' => 'query', 1033 'type' => 'integer', 1034 ), 1035 'pageToken' => array( 1036 'location' => 'query', 1037 'type' => 'string', 1038 ), 1039 ), 1040 ),'update' => array( 1041 'path' => 'files/{fileId}/revisions/{revisionId}', 1042 'httpMethod' => 'PATCH', 1043 'parameters' => array( 1044 'fileId' => array( 1045 'location' => 'path', 1046 'type' => 'string', 1047 'required' => true, 1048 ), 1049 'revisionId' => array( 1050 'location' => 'path', 1051 'type' => 'string', 1052 'required' => true, 1053 ), 1054 ), 1055 ), 1056 ) 1057 ) 1058 ); 1059 $this->teamdrives = new Google_Service_Drive_Resource_Teamdrives( 1060 $this, 1061 $this->serviceName, 1062 'teamdrives', 1063 array( 1064 'methods' => array( 1065 'create' => array( 1066 'path' => 'teamdrives', 1067 'httpMethod' => 'POST', 1068 'parameters' => array( 1069 'requestId' => array( 1070 'location' => 'query', 1071 'type' => 'string', 1072 'required' => true, 1073 ), 1074 ), 1075 ),'delete' => array( 1076 'path' => 'teamdrives/{teamDriveId}', 1077 'httpMethod' => 'DELETE', 1078 'parameters' => array( 1079 'teamDriveId' => array( 1080 'location' => 'path', 1081 'type' => 'string', 1082 'required' => true, 1083 ), 1084 ), 1085 ),'get' => array( 1086 'path' => 'teamdrives/{teamDriveId}', 1087 'httpMethod' => 'GET', 1088 'parameters' => array( 1089 'teamDriveId' => array( 1090 'location' => 'path', 1091 'type' => 'string', 1092 'required' => true, 1093 ), 1094 'useDomainAdminAccess' => array( 1095 'location' => 'query', 1096 'type' => 'boolean', 1097 ), 1098 ), 1099 ),'list' => array( 1100 'path' => 'teamdrives', 1101 'httpMethod' => 'GET', 1102 'parameters' => array( 1103 'pageSize' => array( 1104 'location' => 'query', 1105 'type' => 'integer', 1106 ), 1107 'pageToken' => array( 1108 'location' => 'query', 1109 'type' => 'string', 1110 ), 1111 'q' => array( 1112 'location' => 'query', 1113 'type' => 'string', 1114 ), 1115 'useDomainAdminAccess' => array( 1116 'location' => 'query', 1117 'type' => 'boolean', 1118 ), 1119 ), 1120 ),'update' => array( 1121 'path' => 'teamdrives/{teamDriveId}', 1122 'httpMethod' => 'PATCH', 1123 'parameters' => array( 1124 'teamDriveId' => array( 1125 'location' => 'path', 1126 'type' => 'string', 1127 'required' => true, 1128 ), 1129 'useDomainAdminAccess' => array( 1130 'location' => 'query', 1131 'type' => 'boolean', 1132 ), 1133 ), 1134 ), 1135 ) 1136 ) 1137 ); 1138 } 1139} 1140