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 /** 18 * The "about" collection of methods. 19 * Typical usage is: 20 * <code> 21 * $driveService = new Google_DriveService(...); 22 * $about = $driveService->about; 23 * </code> 24 */ 25 class Google_AboutServiceResource extends Google_ServiceResource { 26 27 /** 28 * Gets the information about the current user along with Drive API settings (about.get) 29 * 30 * @param array $optParams Optional parameters. 31 * 32 * @opt_param bool includeSubscribed When calculating the number of remaining change IDs, whether to include shared files and public files the user has opened. When set to false, this counts only change IDs for owned files and any shared or public files that the user has explictly added to a folder in Drive. 33 * @opt_param string maxChangeIdCount Maximum number of remaining change IDs to count 34 * @opt_param string startChangeId Change ID to start counting from when calculating number of remaining change IDs 35 * @return Google_About 36 */ 37 public function get($optParams = array()) { 38 $params = array(); 39 $params = array_merge($params, $optParams); 40 $data = $this->__call('get', array($params)); 41 if ($this->useObjects()) { 42 return new Google_About($data); 43 } else { 44 return $data; 45 } 46 } 47 } 48 49 /** 50 * The "apps" collection of methods. 51 * Typical usage is: 52 * <code> 53 * $driveService = new Google_DriveService(...); 54 * $apps = $driveService->apps; 55 * </code> 56 */ 57 class Google_AppsServiceResource extends Google_ServiceResource { 58 59 /** 60 * Gets a specific app. (apps.get) 61 * 62 * @param string $appId The ID of the app. 63 * @param array $optParams Optional parameters. 64 * @return Google_App 65 */ 66 public function get($appId, $optParams = array()) { 67 $params = array('appId' => $appId); 68 $params = array_merge($params, $optParams); 69 $data = $this->__call('get', array($params)); 70 if ($this->useObjects()) { 71 return new Google_App($data); 72 } else { 73 return $data; 74 } 75 } 76 /** 77 * Lists a user's installed apps. (apps.list) 78 * 79 * @param array $optParams Optional parameters. 80 * @return Google_AppList 81 */ 82 public function listApps($optParams = array()) { 83 $params = array(); 84 $params = array_merge($params, $optParams); 85 $data = $this->__call('list', array($params)); 86 if ($this->useObjects()) { 87 return new Google_AppList($data); 88 } else { 89 return $data; 90 } 91 } 92 } 93 94 /** 95 * The "changes" collection of methods. 96 * Typical usage is: 97 * <code> 98 * $driveService = new Google_DriveService(...); 99 * $changes = $driveService->changes; 100 * </code> 101 */ 102 class Google_ChangesServiceResource extends Google_ServiceResource { 103 104 /** 105 * Gets a specific change. (changes.get) 106 * 107 * @param string $changeId The ID of the change. 108 * @param array $optParams Optional parameters. 109 * @return Google_Change 110 */ 111 public function get($changeId, $optParams = array()) { 112 $params = array('changeId' => $changeId); 113 $params = array_merge($params, $optParams); 114 $data = $this->__call('get', array($params)); 115 if ($this->useObjects()) { 116 return new Google_Change($data); 117 } else { 118 return $data; 119 } 120 } 121 /** 122 * Lists the changes for a user. (changes.list) 123 * 124 * @param array $optParams Optional parameters. 125 * 126 * @opt_param bool includeDeleted Whether to include deleted items. 127 * @opt_param bool includeSubscribed Whether to include shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explictly added to a folder in Drive. 128 * @opt_param int maxResults Maximum number of changes to return. 129 * @opt_param string pageToken Page token for changes. 130 * @opt_param string startChangeId Change ID to start listing changes from. 131 * @return Google_ChangeList 132 */ 133 public function listChanges($optParams = array()) { 134 $params = array(); 135 $params = array_merge($params, $optParams); 136 $data = $this->__call('list', array($params)); 137 if ($this->useObjects()) { 138 return new Google_ChangeList($data); 139 } else { 140 return $data; 141 } 142 } 143 /** 144 * Subscribe to changes for a user. (changes.watch) 145 * 146 * @param Google_Channel $postBody 147 * @param array $optParams Optional parameters. 148 * 149 * @opt_param bool includeDeleted Whether to include deleted items. 150 * @opt_param bool includeSubscribed Whether to include shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explictly added to a folder in Drive. 151 * @opt_param int maxResults Maximum number of changes to return. 152 * @opt_param string pageToken Page token for changes. 153 * @opt_param string startChangeId Change ID to start listing changes from. 154 * @return Google_Channel 155 */ 156 public function watch(Google_Channel $postBody, $optParams = array()) { 157 $params = array('postBody' => $postBody); 158 $params = array_merge($params, $optParams); 159 $data = $this->__call('watch', array($params)); 160 if ($this->useObjects()) { 161 return new Google_Channel($data); 162 } else { 163 return $data; 164 } 165 } 166 } 167 168 /** 169 * The "channels" collection of methods. 170 * Typical usage is: 171 * <code> 172 * $driveService = new Google_DriveService(...); 173 * $channels = $driveService->channels; 174 * </code> 175 */ 176 class Google_ChannelsServiceResource extends Google_ServiceResource { 177 178 /** 179 * (channels.stop) 180 * 181 * @param Google_Channel $postBody 182 * @param array $optParams Optional parameters. 183 */ 184 public function stop(Google_Channel $postBody, $optParams = array()) { 185 $params = array('postBody' => $postBody); 186 $params = array_merge($params, $optParams); 187 $data = $this->__call('stop', array($params)); 188 return $data; 189 } 190 } 191 192 /** 193 * The "children" collection of methods. 194 * Typical usage is: 195 * <code> 196 * $driveService = new Google_DriveService(...); 197 * $children = $driveService->children; 198 * </code> 199 */ 200 class Google_ChildrenServiceResource extends Google_ServiceResource { 201 202 /** 203 * Removes a child from a folder. (children.delete) 204 * 205 * @param string $folderId The ID of the folder. 206 * @param string $childId The ID of the child. 207 * @param array $optParams Optional parameters. 208 */ 209 public function delete($folderId, $childId, $optParams = array()) { 210 $params = array('folderId' => $folderId, 'childId' => $childId); 211 $params = array_merge($params, $optParams); 212 $data = $this->__call('delete', array($params)); 213 return $data; 214 } 215 /** 216 * Gets a specific child reference. (children.get) 217 * 218 * @param string $folderId The ID of the folder. 219 * @param string $childId The ID of the child. 220 * @param array $optParams Optional parameters. 221 * @return Google_ChildReference 222 */ 223 public function get($folderId, $childId, $optParams = array()) { 224 $params = array('folderId' => $folderId, 'childId' => $childId); 225 $params = array_merge($params, $optParams); 226 $data = $this->__call('get', array($params)); 227 if ($this->useObjects()) { 228 return new Google_ChildReference($data); 229 } else { 230 return $data; 231 } 232 } 233 /** 234 * Inserts a file into a folder. (children.insert) 235 * 236 * @param string $folderId The ID of the folder. 237 * @param Google_ChildReference $postBody 238 * @param array $optParams Optional parameters. 239 * @return Google_ChildReference 240 */ 241 public function insert($folderId, Google_ChildReference $postBody, $optParams = array()) { 242 $params = array('folderId' => $folderId, 'postBody' => $postBody); 243 $params = array_merge($params, $optParams); 244 $data = $this->__call('insert', array($params)); 245 if ($this->useObjects()) { 246 return new Google_ChildReference($data); 247 } else { 248 return $data; 249 } 250 } 251 /** 252 * Lists a folder's children. (children.list) 253 * 254 * @param string $folderId The ID of the folder. 255 * @param array $optParams Optional parameters. 256 * 257 * @opt_param int maxResults Maximum number of children to return. 258 * @opt_param string pageToken Page token for children. 259 * @opt_param string q Query string for searching children. 260 * @return Google_ChildList 261 */ 262 public function listChildren($folderId, $optParams = array()) { 263 $params = array('folderId' => $folderId); 264 $params = array_merge($params, $optParams); 265 $data = $this->__call('list', array($params)); 266 if ($this->useObjects()) { 267 return new Google_ChildList($data); 268 } else { 269 return $data; 270 } 271 } 272 } 273 274 /** 275 * The "comments" collection of methods. 276 * Typical usage is: 277 * <code> 278 * $driveService = new Google_DriveService(...); 279 * $comments = $driveService->comments; 280 * </code> 281 */ 282 class Google_CommentsServiceResource extends Google_ServiceResource { 283 284 /** 285 * Deletes a comment. (comments.delete) 286 * 287 * @param string $fileId The ID of the file. 288 * @param string $commentId The ID of the comment. 289 * @param array $optParams Optional parameters. 290 */ 291 public function delete($fileId, $commentId, $optParams = array()) { 292 $params = array('fileId' => $fileId, 'commentId' => $commentId); 293 $params = array_merge($params, $optParams); 294 $data = $this->__call('delete', array($params)); 295 return $data; 296 } 297 /** 298 * Gets a comment by ID. (comments.get) 299 * 300 * @param string $fileId The ID of the file. 301 * @param string $commentId The ID of the comment. 302 * @param array $optParams Optional parameters. 303 * 304 * @opt_param bool includeDeleted If set, this will succeed when retrieving a deleted comment, and will include any deleted replies. 305 * @return Google_Comment 306 */ 307 public function get($fileId, $commentId, $optParams = array()) { 308 $params = array('fileId' => $fileId, 'commentId' => $commentId); 309 $params = array_merge($params, $optParams); 310 $data = $this->__call('get', array($params)); 311 if ($this->useObjects()) { 312 return new Google_Comment($data); 313 } else { 314 return $data; 315 } 316 } 317 /** 318 * Creates a new comment on the given file. (comments.insert) 319 * 320 * @param string $fileId The ID of the file. 321 * @param Google_Comment $postBody 322 * @param array $optParams Optional parameters. 323 * @return Google_Comment 324 */ 325 public function insert($fileId, Google_Comment $postBody, $optParams = array()) { 326 $params = array('fileId' => $fileId, 'postBody' => $postBody); 327 $params = array_merge($params, $optParams); 328 $data = $this->__call('insert', array($params)); 329 if ($this->useObjects()) { 330 return new Google_Comment($data); 331 } else { 332 return $data; 333 } 334 } 335 /** 336 * Lists a file's comments. (comments.list) 337 * 338 * @param string $fileId The ID of the file. 339 * @param array $optParams Optional parameters. 340 * 341 * @opt_param bool includeDeleted If set, all comments and replies, including deleted comments and replies (with content stripped) will be returned. 342 * @opt_param int maxResults The maximum number of discussions to include in the response, used for paging. 343 * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. 344 * @opt_param string updatedMin Only discussions that were updated after this timestamp will be returned. Formatted as an RFC 3339 timestamp. 345 * @return Google_CommentList 346 */ 347 public function listComments($fileId, $optParams = array()) { 348 $params = array('fileId' => $fileId); 349 $params = array_merge($params, $optParams); 350 $data = $this->__call('list', array($params)); 351 if ($this->useObjects()) { 352 return new Google_CommentList($data); 353 } else { 354 return $data; 355 } 356 } 357 /** 358 * Updates an existing comment. This method supports patch semantics. (comments.patch) 359 * 360 * @param string $fileId The ID of the file. 361 * @param string $commentId The ID of the comment. 362 * @param Google_Comment $postBody 363 * @param array $optParams Optional parameters. 364 * @return Google_Comment 365 */ 366 public function patch($fileId, $commentId, Google_Comment $postBody, $optParams = array()) { 367 $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); 368 $params = array_merge($params, $optParams); 369 $data = $this->__call('patch', array($params)); 370 if ($this->useObjects()) { 371 return new Google_Comment($data); 372 } else { 373 return $data; 374 } 375 } 376 /** 377 * Updates an existing comment. (comments.update) 378 * 379 * @param string $fileId The ID of the file. 380 * @param string $commentId The ID of the comment. 381 * @param Google_Comment $postBody 382 * @param array $optParams Optional parameters. 383 * @return Google_Comment 384 */ 385 public function update($fileId, $commentId, Google_Comment $postBody, $optParams = array()) { 386 $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); 387 $params = array_merge($params, $optParams); 388 $data = $this->__call('update', array($params)); 389 if ($this->useObjects()) { 390 return new Google_Comment($data); 391 } else { 392 return $data; 393 } 394 } 395 } 396 397 /** 398 * The "files" collection of methods. 399 * Typical usage is: 400 * <code> 401 * $driveService = new Google_DriveService(...); 402 * $files = $driveService->files; 403 * </code> 404 */ 405 class Google_FilesServiceResource extends Google_ServiceResource { 406 407 /** 408 * Creates a copy of the specified file. (files.copy) 409 * 410 * @param string $fileId The ID of the file to copy. 411 * @param Google_DriveFile $postBody 412 * @param array $optParams Optional parameters. 413 * 414 * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format. 415 * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. 416 * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. 417 * @opt_param bool pinned Whether to pin the head revision of the new copy. 418 * @opt_param string timedTextLanguage The language of the timed text. 419 * @opt_param string timedTextTrackName The timed text track name. 420 * @opt_param string visibility The visibility of the new file. This parameter is only relevant when the source is not a native Google Doc and convert=false. 421 * @return Google_DriveFile 422 */ 423 public function copy($fileId, Google_DriveFile $postBody, $optParams = array()) { 424 $params = array('fileId' => $fileId, 'postBody' => $postBody); 425 $params = array_merge($params, $optParams); 426 $data = $this->__call('copy', array($params)); 427 if ($this->useObjects()) { 428 return new Google_DriveFile($data); 429 } else { 430 return $data; 431 } 432 } 433 /** 434 * Permanently deletes a file by ID. Skips the trash. (files.delete) 435 * 436 * @param string $fileId The ID of the file to delete. 437 * @param array $optParams Optional parameters. 438 */ 439 public function delete($fileId, $optParams = array()) { 440 $params = array('fileId' => $fileId); 441 $params = array_merge($params, $optParams); 442 $data = $this->__call('delete', array($params)); 443 return $data; 444 } 445 /** 446 * Gets a file's metadata by ID. (files.get) 447 * 448 * @param string $fileId The ID for the file in question. 449 * @param array $optParams Optional parameters. 450 * 451 * @opt_param string projection This parameter is deprecated and has no function. 452 * @opt_param bool updateViewedDate Whether to update the view date after successfully retrieving the file. 453 * @return Google_DriveFile 454 */ 455 public function get($fileId, $optParams = array()) { 456 $params = array('fileId' => $fileId); 457 $params = array_merge($params, $optParams); 458 $data = $this->__call('get', array($params)); 459 if ($this->useObjects()) { 460 return new Google_DriveFile($data); 461 } else { 462 return $data; 463 } 464 } 465 /** 466 * Insert a new file. (files.insert) 467 * 468 * @param Google_DriveFile $postBody 469 * @param array $optParams Optional parameters. 470 * 471 * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format. 472 * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. 473 * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. 474 * @opt_param bool pinned Whether to pin the head revision of the uploaded file. 475 * @opt_param string timedTextLanguage The language of the timed text. 476 * @opt_param string timedTextTrackName The timed text track name. 477 * @opt_param bool useContentAsIndexableText Whether to use the content as indexable text. 478 * @opt_param string visibility The visibility of the new file. This parameter is only relevant when convert=false. 479 * @return Google_DriveFile 480 */ 481 public function insert(Google_DriveFile $postBody, $optParams = array()) { 482 $params = array('postBody' => $postBody); 483 $params = array_merge($params, $optParams); 484 $data = $this->__call('insert', array($params)); 485 if ($this->useObjects()) { 486 return new Google_DriveFile($data); 487 } else { 488 return $data; 489 } 490 } 491 /** 492 * Lists the user's files. (files.list) 493 * 494 * @param array $optParams Optional parameters. 495 * 496 * @opt_param int maxResults Maximum number of files to return. 497 * @opt_param string pageToken Page token for files. 498 * @opt_param string projection This parameter is deprecated and has no function. 499 * @opt_param string q Query string for searching files. 500 * @return Google_FileList 501 */ 502 public function listFiles($optParams = array()) { 503 $params = array(); 504 $params = array_merge($params, $optParams); 505 $data = $this->__call('list', array($params)); 506 if ($this->useObjects()) { 507 return new Google_FileList($data); 508 } else { 509 return $data; 510 } 511 } 512 /** 513 * Updates file metadata and/or content. This method supports patch semantics. (files.patch) 514 * 515 * @param string $fileId The ID of the file to update. 516 * @param Google_DriveFile $postBody 517 * @param array $optParams Optional parameters. 518 * 519 * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format. 520 * @opt_param bool newRevision Whether a blob upload should create a new revision. If not set or false, the blob data in the current head revision is replaced. If true, a new blob is created as head revision, and previous revisions are preserved (causing increased use of the user's data storage quota). 521 * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. 522 * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. 523 * @opt_param bool pinned Whether to pin the new revision. 524 * @opt_param bool setModifiedDate Whether to set the modified date with the supplied modified date. 525 * @opt_param string timedTextLanguage The language of the timed text. 526 * @opt_param string timedTextTrackName The timed text track name. 527 * @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file. 528 * @opt_param bool useContentAsIndexableText Whether to use the content as indexable text. 529 * @return Google_DriveFile 530 */ 531 public function patch($fileId, Google_DriveFile $postBody, $optParams = array()) { 532 $params = array('fileId' => $fileId, 'postBody' => $postBody); 533 $params = array_merge($params, $optParams); 534 $data = $this->__call('patch', array($params)); 535 if ($this->useObjects()) { 536 return new Google_DriveFile($data); 537 } else { 538 return $data; 539 } 540 } 541 /** 542 * Set the file's updated time to the current server time. (files.touch) 543 * 544 * @param string $fileId The ID of the file to update. 545 * @param array $optParams Optional parameters. 546 * @return Google_DriveFile 547 */ 548 public function touch($fileId, $optParams = array()) { 549 $params = array('fileId' => $fileId); 550 $params = array_merge($params, $optParams); 551 $data = $this->__call('touch', array($params)); 552 if ($this->useObjects()) { 553 return new Google_DriveFile($data); 554 } else { 555 return $data; 556 } 557 } 558 /** 559 * Moves a file to the trash. (files.trash) 560 * 561 * @param string $fileId The ID of the file to trash. 562 * @param array $optParams Optional parameters. 563 * @return Google_DriveFile 564 */ 565 public function trash($fileId, $optParams = array()) { 566 $params = array('fileId' => $fileId); 567 $params = array_merge($params, $optParams); 568 $data = $this->__call('trash', array($params)); 569 if ($this->useObjects()) { 570 return new Google_DriveFile($data); 571 } else { 572 return $data; 573 } 574 } 575 /** 576 * Restores a file from the trash. (files.untrash) 577 * 578 * @param string $fileId The ID of the file to untrash. 579 * @param array $optParams Optional parameters. 580 * @return Google_DriveFile 581 */ 582 public function untrash($fileId, $optParams = array()) { 583 $params = array('fileId' => $fileId); 584 $params = array_merge($params, $optParams); 585 $data = $this->__call('untrash', array($params)); 586 if ($this->useObjects()) { 587 return new Google_DriveFile($data); 588 } else { 589 return $data; 590 } 591 } 592 /** 593 * Updates file metadata and/or content. (files.update) 594 * 595 * @param string $fileId The ID of the file to update. 596 * @param Google_DriveFile $postBody 597 * @param array $optParams Optional parameters. 598 * 599 * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format. 600 * @opt_param bool newRevision Whether a blob upload should create a new revision. If not set or false, the blob data in the current head revision is replaced. If true, a new blob is created as head revision, and previous revisions are preserved (causing increased use of the user's data storage quota). 601 * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. 602 * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. 603 * @opt_param bool pinned Whether to pin the new revision. 604 * @opt_param bool setModifiedDate Whether to set the modified date with the supplied modified date. 605 * @opt_param string timedTextLanguage The language of the timed text. 606 * @opt_param string timedTextTrackName The timed text track name. 607 * @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file. 608 * @opt_param bool useContentAsIndexableText Whether to use the content as indexable text. 609 * @return Google_DriveFile 610 */ 611 public function update($fileId, Google_DriveFile $postBody, $optParams = array()) { 612 $params = array('fileId' => $fileId, 'postBody' => $postBody); 613 $params = array_merge($params, $optParams); 614 $data = $this->__call('update', array($params)); 615 if ($this->useObjects()) { 616 return new Google_DriveFile($data); 617 } else { 618 return $data; 619 } 620 } 621 /** 622 * Subscribe to changes on a file (files.watch) 623 * 624 * @param string $fileId The ID for the file in question. 625 * @param Google_Channel $postBody 626 * @param array $optParams Optional parameters. 627 * 628 * @opt_param string projection This parameter is deprecated and has no function. 629 * @opt_param bool updateViewedDate Whether to update the view date after successfully retrieving the file. 630 * @return Google_Channel 631 */ 632 public function watch($fileId, Google_Channel $postBody, $optParams = array()) { 633 $params = array('fileId' => $fileId, 'postBody' => $postBody); 634 $params = array_merge($params, $optParams); 635 $data = $this->__call('watch', array($params)); 636 if ($this->useObjects()) { 637 return new Google_Channel($data); 638 } else { 639 return $data; 640 } 641 } 642 } 643 644 /** 645 * The "parents" collection of methods. 646 * Typical usage is: 647 * <code> 648 * $driveService = new Google_DriveService(...); 649 * $parents = $driveService->parents; 650 * </code> 651 */ 652 class Google_ParentsServiceResource extends Google_ServiceResource { 653 654 /** 655 * Removes a parent from a file. (parents.delete) 656 * 657 * @param string $fileId The ID of the file. 658 * @param string $parentId The ID of the parent. 659 * @param array $optParams Optional parameters. 660 */ 661 public function delete($fileId, $parentId, $optParams = array()) { 662 $params = array('fileId' => $fileId, 'parentId' => $parentId); 663 $params = array_merge($params, $optParams); 664 $data = $this->__call('delete', array($params)); 665 return $data; 666 } 667 /** 668 * Gets a specific parent reference. (parents.get) 669 * 670 * @param string $fileId The ID of the file. 671 * @param string $parentId The ID of the parent. 672 * @param array $optParams Optional parameters. 673 * @return Google_ParentReference 674 */ 675 public function get($fileId, $parentId, $optParams = array()) { 676 $params = array('fileId' => $fileId, 'parentId' => $parentId); 677 $params = array_merge($params, $optParams); 678 $data = $this->__call('get', array($params)); 679 if ($this->useObjects()) { 680 return new Google_ParentReference($data); 681 } else { 682 return $data; 683 } 684 } 685 /** 686 * Adds a parent folder for a file. (parents.insert) 687 * 688 * @param string $fileId The ID of the file. 689 * @param Google_ParentReference $postBody 690 * @param array $optParams Optional parameters. 691 * @return Google_ParentReference 692 */ 693 public function insert($fileId, Google_ParentReference $postBody, $optParams = array()) { 694 $params = array('fileId' => $fileId, 'postBody' => $postBody); 695 $params = array_merge($params, $optParams); 696 $data = $this->__call('insert', array($params)); 697 if ($this->useObjects()) { 698 return new Google_ParentReference($data); 699 } else { 700 return $data; 701 } 702 } 703 /** 704 * Lists a file's parents. (parents.list) 705 * 706 * @param string $fileId The ID of the file. 707 * @param array $optParams Optional parameters. 708 * @return Google_ParentList 709 */ 710 public function listParents($fileId, $optParams = array()) { 711 $params = array('fileId' => $fileId); 712 $params = array_merge($params, $optParams); 713 $data = $this->__call('list', array($params)); 714 if ($this->useObjects()) { 715 return new Google_ParentList($data); 716 } else { 717 return $data; 718 } 719 } 720 } 721 722 /** 723 * The "permissions" collection of methods. 724 * Typical usage is: 725 * <code> 726 * $driveService = new Google_DriveService(...); 727 * $permissions = $driveService->permissions; 728 * </code> 729 */ 730 class Google_PermissionsServiceResource extends Google_ServiceResource { 731 732 /** 733 * Deletes a permission from a file. (permissions.delete) 734 * 735 * @param string $fileId The ID for the file. 736 * @param string $permissionId The ID for the permission. 737 * @param array $optParams Optional parameters. 738 */ 739 public function delete($fileId, $permissionId, $optParams = array()) { 740 $params = array('fileId' => $fileId, 'permissionId' => $permissionId); 741 $params = array_merge($params, $optParams); 742 $data = $this->__call('delete', array($params)); 743 return $data; 744 } 745 /** 746 * Gets a permission by ID. (permissions.get) 747 * 748 * @param string $fileId The ID for the file. 749 * @param string $permissionId The ID for the permission. 750 * @param array $optParams Optional parameters. 751 * @return Google_Permission 752 */ 753 public function get($fileId, $permissionId, $optParams = array()) { 754 $params = array('fileId' => $fileId, 'permissionId' => $permissionId); 755 $params = array_merge($params, $optParams); 756 $data = $this->__call('get', array($params)); 757 if ($this->useObjects()) { 758 return new Google_Permission($data); 759 } else { 760 return $data; 761 } 762 } 763 /** 764 * Inserts a permission for a file. (permissions.insert) 765 * 766 * @param string $fileId The ID for the file. 767 * @param Google_Permission $postBody 768 * @param array $optParams Optional parameters. 769 * 770 * @opt_param string emailMessage A custom message to include in notification emails. 771 * @opt_param bool sendNotificationEmails Whether to send notification emails when sharing to users or groups. 772 * @return Google_Permission 773 */ 774 public function insert($fileId, Google_Permission $postBody, $optParams = array()) { 775 $params = array('fileId' => $fileId, 'postBody' => $postBody); 776 $params = array_merge($params, $optParams); 777 $data = $this->__call('insert', array($params)); 778 if ($this->useObjects()) { 779 return new Google_Permission($data); 780 } else { 781 return $data; 782 } 783 } 784 /** 785 * Lists a file's permissions. (permissions.list) 786 * 787 * @param string $fileId The ID for the file. 788 * @param array $optParams Optional parameters. 789 * @return Google_PermissionList 790 */ 791 public function listPermissions($fileId, $optParams = array()) { 792 $params = array('fileId' => $fileId); 793 $params = array_merge($params, $optParams); 794 $data = $this->__call('list', array($params)); 795 if ($this->useObjects()) { 796 return new Google_PermissionList($data); 797 } else { 798 return $data; 799 } 800 } 801 /** 802 * Updates a permission. This method supports patch semantics. (permissions.patch) 803 * 804 * @param string $fileId The ID for the file. 805 * @param string $permissionId The ID for the permission. 806 * @param Google_Permission $postBody 807 * @param array $optParams Optional parameters. 808 * 809 * @opt_param bool transferOwnership Whether changing a role to 'owner' should also downgrade the current owners to writers. 810 * @return Google_Permission 811 */ 812 public function patch($fileId, $permissionId, Google_Permission $postBody, $optParams = array()) { 813 $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); 814 $params = array_merge($params, $optParams); 815 $data = $this->__call('patch', array($params)); 816 if ($this->useObjects()) { 817 return new Google_Permission($data); 818 } else { 819 return $data; 820 } 821 } 822 /** 823 * Updates a permission. (permissions.update) 824 * 825 * @param string $fileId The ID for the file. 826 * @param string $permissionId The ID for the permission. 827 * @param Google_Permission $postBody 828 * @param array $optParams Optional parameters. 829 * 830 * @opt_param bool transferOwnership Whether changing a role to 'owner' should also downgrade the current owners to writers. 831 * @return Google_Permission 832 */ 833 public function update($fileId, $permissionId, Google_Permission $postBody, $optParams = array()) { 834 $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); 835 $params = array_merge($params, $optParams); 836 $data = $this->__call('update', array($params)); 837 if ($this->useObjects()) { 838 return new Google_Permission($data); 839 } else { 840 return $data; 841 } 842 } 843 } 844 845 /** 846 * The "properties" collection of methods. 847 * Typical usage is: 848 * <code> 849 * $driveService = new Google_DriveService(...); 850 * $properties = $driveService->properties; 851 * </code> 852 */ 853 class Google_PropertiesServiceResource extends Google_ServiceResource { 854 855 /** 856 * Deletes a property. (properties.delete) 857 * 858 * @param string $fileId The ID of the file. 859 * @param string $propertyKey The key of the property. 860 * @param array $optParams Optional parameters. 861 * 862 * @opt_param string visibility The visibility of the property. 863 */ 864 public function delete($fileId, $propertyKey, $optParams = array()) { 865 $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey); 866 $params = array_merge($params, $optParams); 867 $data = $this->__call('delete', array($params)); 868 return $data; 869 } 870 /** 871 * Gets a property by its key. (properties.get) 872 * 873 * @param string $fileId The ID of the file. 874 * @param string $propertyKey The key of the property. 875 * @param array $optParams Optional parameters. 876 * 877 * @opt_param string visibility The visibility of the property. 878 * @return Google_Property 879 */ 880 public function get($fileId, $propertyKey, $optParams = array()) { 881 $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey); 882 $params = array_merge($params, $optParams); 883 $data = $this->__call('get', array($params)); 884 if ($this->useObjects()) { 885 return new Google_Property($data); 886 } else { 887 return $data; 888 } 889 } 890 /** 891 * Adds a property to a file. (properties.insert) 892 * 893 * @param string $fileId The ID of the file. 894 * @param Google_Property $postBody 895 * @param array $optParams Optional parameters. 896 * @return Google_Property 897 */ 898 public function insert($fileId, Google_Property $postBody, $optParams = array()) { 899 $params = array('fileId' => $fileId, 'postBody' => $postBody); 900 $params = array_merge($params, $optParams); 901 $data = $this->__call('insert', array($params)); 902 if ($this->useObjects()) { 903 return new Google_Property($data); 904 } else { 905 return $data; 906 } 907 } 908 /** 909 * Lists a file's properties. (properties.list) 910 * 911 * @param string $fileId The ID of the file. 912 * @param array $optParams Optional parameters. 913 * @return Google_PropertyList 914 */ 915 public function listProperties($fileId, $optParams = array()) { 916 $params = array('fileId' => $fileId); 917 $params = array_merge($params, $optParams); 918 $data = $this->__call('list', array($params)); 919 if ($this->useObjects()) { 920 return new Google_PropertyList($data); 921 } else { 922 return $data; 923 } 924 } 925 /** 926 * Updates a property. This method supports patch semantics. (properties.patch) 927 * 928 * @param string $fileId The ID of the file. 929 * @param string $propertyKey The key of the property. 930 * @param Google_Property $postBody 931 * @param array $optParams Optional parameters. 932 * 933 * @opt_param string visibility The visibility of the property. 934 * @return Google_Property 935 */ 936 public function patch($fileId, $propertyKey, Google_Property $postBody, $optParams = array()) { 937 $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody); 938 $params = array_merge($params, $optParams); 939 $data = $this->__call('patch', array($params)); 940 if ($this->useObjects()) { 941 return new Google_Property($data); 942 } else { 943 return $data; 944 } 945 } 946 /** 947 * Updates a property. (properties.update) 948 * 949 * @param string $fileId The ID of the file. 950 * @param string $propertyKey The key of the property. 951 * @param Google_Property $postBody 952 * @param array $optParams Optional parameters. 953 * 954 * @opt_param string visibility The visibility of the property. 955 * @return Google_Property 956 */ 957 public function update($fileId, $propertyKey, Google_Property $postBody, $optParams = array()) { 958 $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody); 959 $params = array_merge($params, $optParams); 960 $data = $this->__call('update', array($params)); 961 if ($this->useObjects()) { 962 return new Google_Property($data); 963 } else { 964 return $data; 965 } 966 } 967 } 968 969 /** 970 * The "realtime" collection of methods. 971 * Typical usage is: 972 * <code> 973 * $driveService = new Google_DriveService(...); 974 * $realtime = $driveService->realtime; 975 * </code> 976 */ 977 class Google_RealtimeServiceResource extends Google_ServiceResource { 978 979 /** 980 * Exports the contents of the Realtime API data model associated with this file as JSON. 981 * (realtime.get) 982 * 983 * @param string $fileId The ID of the file that the Realtime API data model is associated with. 984 * @param array $optParams Optional parameters. 985 */ 986 public function get($fileId, $optParams = array()) { 987 $params = array('fileId' => $fileId); 988 $params = array_merge($params, $optParams); 989 $data = $this->__call('get', array($params)); 990 return $data; 991 } 992 } 993 994 /** 995 * The "replies" collection of methods. 996 * Typical usage is: 997 * <code> 998 * $driveService = new Google_DriveService(...); 999 * $replies = $driveService->replies; 1000 * </code> 1001 */ 1002 class Google_RepliesServiceResource extends Google_ServiceResource { 1003 1004 /** 1005 * Deletes a reply. (replies.delete) 1006 * 1007 * @param string $fileId The ID of the file. 1008 * @param string $commentId The ID of the comment. 1009 * @param string $replyId The ID of the reply. 1010 * @param array $optParams Optional parameters. 1011 */ 1012 public function delete($fileId, $commentId, $replyId, $optParams = array()) { 1013 $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); 1014 $params = array_merge($params, $optParams); 1015 $data = $this->__call('delete', array($params)); 1016 return $data; 1017 } 1018 /** 1019 * Gets a reply. (replies.get) 1020 * 1021 * @param string $fileId The ID of the file. 1022 * @param string $commentId The ID of the comment. 1023 * @param string $replyId The ID of the reply. 1024 * @param array $optParams Optional parameters. 1025 * 1026 * @opt_param bool includeDeleted If set, this will succeed when retrieving a deleted reply. 1027 * @return Google_CommentReply 1028 */ 1029 public function get($fileId, $commentId, $replyId, $optParams = array()) { 1030 $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); 1031 $params = array_merge($params, $optParams); 1032 $data = $this->__call('get', array($params)); 1033 if ($this->useObjects()) { 1034 return new Google_CommentReply($data); 1035 } else { 1036 return $data; 1037 } 1038 } 1039 /** 1040 * Creates a new reply to the given comment. (replies.insert) 1041 * 1042 * @param string $fileId The ID of the file. 1043 * @param string $commentId The ID of the comment. 1044 * @param Google_CommentReply $postBody 1045 * @param array $optParams Optional parameters. 1046 * @return Google_CommentReply 1047 */ 1048 public function insert($fileId, $commentId, Google_CommentReply $postBody, $optParams = array()) { 1049 $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); 1050 $params = array_merge($params, $optParams); 1051 $data = $this->__call('insert', array($params)); 1052 if ($this->useObjects()) { 1053 return new Google_CommentReply($data); 1054 } else { 1055 return $data; 1056 } 1057 } 1058 /** 1059 * Lists all of the replies to a comment. (replies.list) 1060 * 1061 * @param string $fileId The ID of the file. 1062 * @param string $commentId The ID of the comment. 1063 * @param array $optParams Optional parameters. 1064 * 1065 * @opt_param bool includeDeleted If set, all replies, including deleted replies (with content stripped) will be returned. 1066 * @opt_param int maxResults The maximum number of replies to include in the response, used for paging. 1067 * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. 1068 * @return Google_CommentReplyList 1069 */ 1070 public function listReplies($fileId, $commentId, $optParams = array()) { 1071 $params = array('fileId' => $fileId, 'commentId' => $commentId); 1072 $params = array_merge($params, $optParams); 1073 $data = $this->__call('list', array($params)); 1074 if ($this->useObjects()) { 1075 return new Google_CommentReplyList($data); 1076 } else { 1077 return $data; 1078 } 1079 } 1080 /** 1081 * Updates an existing reply. This method supports patch semantics. (replies.patch) 1082 * 1083 * @param string $fileId The ID of the file. 1084 * @param string $commentId The ID of the comment. 1085 * @param string $replyId The ID of the reply. 1086 * @param Google_CommentReply $postBody 1087 * @param array $optParams Optional parameters. 1088 * @return Google_CommentReply 1089 */ 1090 public function patch($fileId, $commentId, $replyId, Google_CommentReply $postBody, $optParams = array()) { 1091 $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); 1092 $params = array_merge($params, $optParams); 1093 $data = $this->__call('patch', array($params)); 1094 if ($this->useObjects()) { 1095 return new Google_CommentReply($data); 1096 } else { 1097 return $data; 1098 } 1099 } 1100 /** 1101 * Updates an existing reply. (replies.update) 1102 * 1103 * @param string $fileId The ID of the file. 1104 * @param string $commentId The ID of the comment. 1105 * @param string $replyId The ID of the reply. 1106 * @param Google_CommentReply $postBody 1107 * @param array $optParams Optional parameters. 1108 * @return Google_CommentReply 1109 */ 1110 public function update($fileId, $commentId, $replyId, Google_CommentReply $postBody, $optParams = array()) { 1111 $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); 1112 $params = array_merge($params, $optParams); 1113 $data = $this->__call('update', array($params)); 1114 if ($this->useObjects()) { 1115 return new Google_CommentReply($data); 1116 } else { 1117 return $data; 1118 } 1119 } 1120 } 1121 1122 /** 1123 * The "revisions" collection of methods. 1124 * Typical usage is: 1125 * <code> 1126 * $driveService = new Google_DriveService(...); 1127 * $revisions = $driveService->revisions; 1128 * </code> 1129 */ 1130 class Google_RevisionsServiceResource extends Google_ServiceResource { 1131 1132 /** 1133 * Removes a revision. (revisions.delete) 1134 * 1135 * @param string $fileId The ID of the file. 1136 * @param string $revisionId The ID of the revision. 1137 * @param array $optParams Optional parameters. 1138 */ 1139 public function delete($fileId, $revisionId, $optParams = array()) { 1140 $params = array('fileId' => $fileId, 'revisionId' => $revisionId); 1141 $params = array_merge($params, $optParams); 1142 $data = $this->__call('delete', array($params)); 1143 return $data; 1144 } 1145 /** 1146 * Gets a specific revision. (revisions.get) 1147 * 1148 * @param string $fileId The ID of the file. 1149 * @param string $revisionId The ID of the revision. 1150 * @param array $optParams Optional parameters. 1151 * @return Google_Revision 1152 */ 1153 public function get($fileId, $revisionId, $optParams = array()) { 1154 $params = array('fileId' => $fileId, 'revisionId' => $revisionId); 1155 $params = array_merge($params, $optParams); 1156 $data = $this->__call('get', array($params)); 1157 if ($this->useObjects()) { 1158 return new Google_Revision($data); 1159 } else { 1160 return $data; 1161 } 1162 } 1163 /** 1164 * Lists a file's revisions. (revisions.list) 1165 * 1166 * @param string $fileId The ID of the file. 1167 * @param array $optParams Optional parameters. 1168 * @return Google_RevisionList 1169 */ 1170 public function listRevisions($fileId, $optParams = array()) { 1171 $params = array('fileId' => $fileId); 1172 $params = array_merge($params, $optParams); 1173 $data = $this->__call('list', array($params)); 1174 if ($this->useObjects()) { 1175 return new Google_RevisionList($data); 1176 } else { 1177 return $data; 1178 } 1179 } 1180 /** 1181 * Updates a revision. This method supports patch semantics. (revisions.patch) 1182 * 1183 * @param string $fileId The ID for the file. 1184 * @param string $revisionId The ID for the revision. 1185 * @param Google_Revision $postBody 1186 * @param array $optParams Optional parameters. 1187 * @return Google_Revision 1188 */ 1189 public function patch($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) { 1190 $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); 1191 $params = array_merge($params, $optParams); 1192 $data = $this->__call('patch', array($params)); 1193 if ($this->useObjects()) { 1194 return new Google_Revision($data); 1195 } else { 1196 return $data; 1197 } 1198 } 1199 /** 1200 * Updates a revision. (revisions.update) 1201 * 1202 * @param string $fileId The ID for the file. 1203 * @param string $revisionId The ID for the revision. 1204 * @param Google_Revision $postBody 1205 * @param array $optParams Optional parameters. 1206 * @return Google_Revision 1207 */ 1208 public function update($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) { 1209 $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); 1210 $params = array_merge($params, $optParams); 1211 $data = $this->__call('update', array($params)); 1212 if ($this->useObjects()) { 1213 return new Google_Revision($data); 1214 } else { 1215 return $data; 1216 } 1217 } 1218 } 1219 1220/** 1221 * Service definition for Google_Drive (v2). 1222 * 1223 * <p> 1224 * The API to interact with Drive. 1225 * </p> 1226 * 1227 * <p> 1228 * For more information about this service, see the 1229 * <a href="https://developers.google.com/drive/" target="_blank">API Documentation</a> 1230 * </p> 1231 * 1232 * @author Google, Inc. 1233 */ 1234class Google_DriveService extends Google_Service { 1235 public $about; 1236 public $apps; 1237 public $changes; 1238 public $channels; 1239 public $children; 1240 public $comments; 1241 public $files; 1242 public $parents; 1243 public $permissions; 1244 public $properties; 1245 public $realtime; 1246 public $replies; 1247 public $revisions; 1248 /** 1249 * Constructs the internal representation of the Drive service. 1250 * 1251 * @param Google_Client $client 1252 */ 1253 public function __construct(Google_Client $client) { 1254 $this->servicePath = 'drive/v2/'; 1255 $this->version = 'v2'; 1256 $this->serviceName = 'drive'; 1257 1258 $client->addService($this->serviceName, $this->version); 1259 $this->about = new Google_AboutServiceResource($this, $this->serviceName, 'about', json_decode('{"methods": {"get": {"id": "drive.about.get", "path": "about", "httpMethod": "GET", "parameters": {"includeSubscribed": {"type": "boolean", "default": "true", "location": "query"}, "maxChangeIdCount": {"type": "string", "default": "1", "format": "int64", "location": "query"}, "startChangeId": {"type": "string", "format": "int64", "location": "query"}}, "response": {"$ref": "About"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}}}', true)); 1260 $this->apps = new Google_AppsServiceResource($this, $this->serviceName, 'apps', json_decode('{"methods": {"get": {"id": "drive.apps.get", "path": "apps/{appId}", "httpMethod": "GET", "parameters": {"appId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "App"}, "scopes": ["https://www.googleapis.com/auth/drive.apps.readonly"]}, "list": {"id": "drive.apps.list", "path": "apps", "httpMethod": "GET", "response": {"$ref": "AppList"}, "scopes": ["https://www.googleapis.com/auth/drive.apps.readonly"]}}}', true)); 1261 $this->changes = new Google_ChangesServiceResource($this, $this->serviceName, 'changes', json_decode('{"methods": {"get": {"id": "drive.changes.get", "path": "changes/{changeId}", "httpMethod": "GET", "parameters": {"changeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Change"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "list": {"id": "drive.changes.list", "path": "changes", "httpMethod": "GET", "parameters": {"includeDeleted": {"type": "boolean", "default": "true", "location": "query"}, "includeSubscribed": {"type": "boolean", "default": "true", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "int32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "startChangeId": {"type": "string", "format": "int64", "location": "query"}}, "response": {"$ref": "ChangeList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "supportsSubscription": true}, "watch": {"id": "drive.changes.watch", "path": "changes/watch", "httpMethod": "POST", "parameters": {"includeDeleted": {"type": "boolean", "default": "true", "location": "query"}, "includeSubscribed": {"type": "boolean", "default": "true", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "int32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "startChangeId": {"type": "string", "format": "int64", "location": "query"}}, "request": {"$ref": "Channel"}, "response": {"$ref": "Channel"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "supportsSubscription": true}}}', true)); 1262 $this->channels = new Google_ChannelsServiceResource($this, $this->serviceName, 'channels', json_decode('{"methods": {"stop": {"id": "drive.channels.stop", "path": "channels/stop", "httpMethod": "POST", "request": {"$ref": "Channel"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}}}', true)); 1263 $this->children = new Google_ChildrenServiceResource($this, $this->serviceName, 'children', json_decode('{"methods": {"delete": {"id": "drive.children.delete", "path": "files/{folderId}/children/{childId}", "httpMethod": "DELETE", "parameters": {"childId": {"type": "string", "required": true, "location": "path"}, "folderId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.children.get", "path": "files/{folderId}/children/{childId}", "httpMethod": "GET", "parameters": {"childId": {"type": "string", "required": true, "location": "path"}, "folderId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ChildReference"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "insert": {"id": "drive.children.insert", "path": "files/{folderId}/children", "httpMethod": "POST", "parameters": {"folderId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ChildReference"}, "response": {"$ref": "ChildReference"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "list": {"id": "drive.children.list", "path": "files/{folderId}/children", "httpMethod": "GET", "parameters": {"folderId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "default": "100", "format": "int32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}}, "response": {"$ref": "ChildList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}}}', true)); 1264 $this->comments = new Google_CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"delete": {"id": "drive.comments.delete", "path": "files/{fileId}/comments/{commentId}", "httpMethod": "DELETE", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly"]}, "get": {"id": "drive.comments.get", "path": "files/{fileId}/comments/{commentId}", "httpMethod": "GET", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}, "includeDeleted": {"type": "boolean", "default": "false", "location": "query"}}, "response": {"$ref": "Comment"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly"]}, "insert": {"id": "drive.comments.insert", "path": "files/{fileId}/comments", "httpMethod": "POST", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Comment"}, "response": {"$ref": "Comment"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly"]}, "list": {"id": "drive.comments.list", "path": "files/{fileId}/comments", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "includeDeleted": {"type": "boolean", "default": "false", "location": "query"}, "maxResults": {"type": "integer", "default": "20", "format": "int32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}}, "response": {"$ref": "CommentList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly"]}, "patch": {"id": "drive.comments.patch", "path": "files/{fileId}/comments/{commentId}", "httpMethod": "PATCH", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Comment"}, "response": {"$ref": "Comment"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "update": {"id": "drive.comments.update", "path": "files/{fileId}/comments/{commentId}", "httpMethod": "PUT", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Comment"}, "response": {"$ref": "Comment"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}}}', true)); 1265 $this->files = new Google_FilesServiceResource($this, $this->serviceName, 'files', json_decode('{"methods": {"copy": {"id": "drive.files.copy", "path": "files/{fileId}/copy", "httpMethod": "POST", "parameters": {"convert": {"type": "boolean", "default": "false", "location": "query"}, "fileId": {"type": "string", "required": true, "location": "path"}, "ocr": {"type": "boolean", "default": "false", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"type": "boolean", "default": "false", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "visibility": {"type": "string", "default": "DEFAULT", "enum": ["DEFAULT", "PRIVATE"], "location": "query"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file"]}, "delete": {"id": "drive.files.delete", "path": "files/{fileId}", "httpMethod": "DELETE", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.files.get", "path": "files/{fileId}", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["BASIC", "FULL"], "location": "query"}, "updateViewedDate": {"type": "boolean", "default": "false", "location": "query"}}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "supportsSubscription": true}, "insert": {"id": "drive.files.insert", "path": "files", "httpMethod": "POST", "parameters": {"convert": {"type": "boolean", "default": "false", "location": "query"}, "ocr": {"type": "boolean", "default": "false", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"type": "boolean", "default": "false", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "useContentAsIndexableText": {"type": "boolean", "default": "false", "location": "query"}, "visibility": {"type": "string", "default": "DEFAULT", "enum": ["DEFAULT", "PRIVATE"], "location": "query"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["*/*"], "maxSize": "10GB", "protocols": {"simple": {"multipart": true, "path": "/upload/drive/v2/files"}, "resumable": {"multipart": true, "path": "/resumable/upload/drive/v2/files"}}}, "supportsSubscription": true}, "list": {"id": "drive.files.list", "path": "files", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "default": "100", "format": "int32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projection": {"type": "string", "enum": ["BASIC", "FULL"], "location": "query"}, "q": {"type": "string", "location": "query"}}, "response": {"$ref": "FileList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "patch": {"id": "drive.files.patch", "path": "files/{fileId}", "httpMethod": "PATCH", "parameters": {"convert": {"type": "boolean", "default": "false", "location": "query"}, "fileId": {"type": "string", "required": true, "location": "path"}, "newRevision": {"type": "boolean", "default": "true", "location": "query"}, "ocr": {"type": "boolean", "default": "false", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"type": "boolean", "default": "false", "location": "query"}, "setModifiedDate": {"type": "boolean", "default": "false", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "updateViewedDate": {"type": "boolean", "default": "true", "location": "query"}, "useContentAsIndexableText": {"type": "boolean", "default": "false", "location": "query"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.scripts"]}, "touch": {"id": "drive.files.touch", "path": "files/{fileId}/touch", "httpMethod": "POST", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file"]}, "trash": {"id": "drive.files.trash", "path": "files/{fileId}/trash", "httpMethod": "POST", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file"]}, "untrash": {"id": "drive.files.untrash", "path": "files/{fileId}/untrash", "httpMethod": "POST", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file"]}, "update": {"id": "drive.files.update", "path": "files/{fileId}", "httpMethod": "PUT", "parameters": {"convert": {"type": "boolean", "default": "false", "location": "query"}, "fileId": {"type": "string", "required": true, "location": "path"}, "newRevision": {"type": "boolean", "default": "true", "location": "query"}, "ocr": {"type": "boolean", "default": "false", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"type": "boolean", "default": "false", "location": "query"}, "setModifiedDate": {"type": "boolean", "default": "false", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "updateViewedDate": {"type": "boolean", "default": "true", "location": "query"}, "useContentAsIndexableText": {"type": "boolean", "default": "false", "location": "query"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.scripts"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["*/*"], "maxSize": "10GB", "protocols": {"simple": {"multipart": true, "path": "/upload/drive/v2/files/{fileId}"}, "resumable": {"multipart": true, "path": "/resumable/upload/drive/v2/files/{fileId}"}}}}, "watch": {"id": "drive.files.watch", "path": "files/{fileId}/watch", "httpMethod": "POST", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["BASIC", "FULL"], "location": "query"}, "updateViewedDate": {"type": "boolean", "default": "false", "location": "query"}}, "request": {"$ref": "Channel"}, "response": {"$ref": "Channel"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "supportsSubscription": true}}}', true)); 1266 $this->parents = new Google_ParentsServiceResource($this, $this->serviceName, 'parents', json_decode('{"methods": {"delete": {"id": "drive.parents.delete", "path": "files/{fileId}/parents/{parentId}", "httpMethod": "DELETE", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "parentId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.parents.get", "path": "files/{fileId}/parents/{parentId}", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "parentId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ParentReference"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "insert": {"id": "drive.parents.insert", "path": "files/{fileId}/parents", "httpMethod": "POST", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ParentReference"}, "response": {"$ref": "ParentReference"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "list": {"id": "drive.parents.list", "path": "files/{fileId}/parents", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ParentList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}}}', true)); 1267 $this->permissions = new Google_PermissionsServiceResource($this, $this->serviceName, 'permissions', json_decode('{"methods": {"delete": {"id": "drive.permissions.delete", "path": "files/{fileId}/permissions/{permissionId}", "httpMethod": "DELETE", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "permissionId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.permissions.get", "path": "files/{fileId}/permissions/{permissionId}", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "permissionId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Permission"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "insert": {"id": "drive.permissions.insert", "path": "files/{fileId}/permissions", "httpMethod": "POST", "parameters": {"emailMessage": {"type": "string", "location": "query"}, "fileId": {"type": "string", "required": true, "location": "path"}, "sendNotificationEmails": {"type": "boolean", "default": "true", "location": "query"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "list": {"id": "drive.permissions.list", "path": "files/{fileId}/permissions", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "PermissionList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "patch": {"id": "drive.permissions.patch", "path": "files/{fileId}/permissions/{permissionId}", "httpMethod": "PATCH", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "permissionId": {"type": "string", "required": true, "location": "path"}, "transferOwnership": {"type": "boolean", "default": "false", "location": "query"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "update": {"id": "drive.permissions.update", "path": "files/{fileId}/permissions/{permissionId}", "httpMethod": "PUT", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "permissionId": {"type": "string", "required": true, "location": "path"}, "transferOwnership": {"type": "boolean", "default": "false", "location": "query"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}}}', true)); 1268 $this->properties = new Google_PropertiesServiceResource($this, $this->serviceName, 'properties', json_decode('{"methods": {"delete": {"id": "drive.properties.delete", "path": "files/{fileId}/properties/{propertyKey}", "httpMethod": "DELETE", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "propertyKey": {"type": "string", "required": true, "location": "path"}, "visibility": {"type": "string", "default": "private", "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.properties.get", "path": "files/{fileId}/properties/{propertyKey}", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "propertyKey": {"type": "string", "required": true, "location": "path"}, "visibility": {"type": "string", "default": "private", "location": "query"}}, "response": {"$ref": "Property"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "insert": {"id": "drive.properties.insert", "path": "files/{fileId}/properties", "httpMethod": "POST", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Property"}, "response": {"$ref": "Property"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "list": {"id": "drive.properties.list", "path": "files/{fileId}/properties", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "PropertyList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "patch": {"id": "drive.properties.patch", "path": "files/{fileId}/properties/{propertyKey}", "httpMethod": "PATCH", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "propertyKey": {"type": "string", "required": true, "location": "path"}, "visibility": {"type": "string", "default": "private", "location": "query"}}, "request": {"$ref": "Property"}, "response": {"$ref": "Property"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "update": {"id": "drive.properties.update", "path": "files/{fileId}/properties/{propertyKey}", "httpMethod": "PUT", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "propertyKey": {"type": "string", "required": true, "location": "path"}, "visibility": {"type": "string", "default": "private", "location": "query"}}, "request": {"$ref": "Property"}, "response": {"$ref": "Property"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}}}', true)); 1269 $this->realtime = new Google_RealtimeServiceResource($this, $this->serviceName, 'realtime', json_decode('{"methods": {"get": {"id": "drive.realtime.get", "path": "files/{fileId}/realtime", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly"], "supportsMediaDownload": true}}}', true)); 1270 $this->replies = new Google_RepliesServiceResource($this, $this->serviceName, 'replies', json_decode('{"methods": {"delete": {"id": "drive.replies.delete", "path": "files/{fileId}/comments/{commentId}/replies/{replyId}", "httpMethod": "DELETE", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}, "replyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.replies.get", "path": "files/{fileId}/comments/{commentId}/replies/{replyId}", "httpMethod": "GET", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}, "includeDeleted": {"type": "boolean", "default": "false", "location": "query"}, "replyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CommentReply"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly"]}, "insert": {"id": "drive.replies.insert", "path": "files/{fileId}/comments/{commentId}/replies", "httpMethod": "POST", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CommentReply"}, "response": {"$ref": "CommentReply"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "list": {"id": "drive.replies.list", "path": "files/{fileId}/comments/{commentId}/replies", "httpMethod": "GET", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}, "includeDeleted": {"type": "boolean", "default": "false", "location": "query"}, "maxResults": {"type": "integer", "default": "20", "format": "int32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CommentReplyList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly"]}, "patch": {"id": "drive.replies.patch", "path": "files/{fileId}/comments/{commentId}/replies/{replyId}", "httpMethod": "PATCH", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}, "replyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CommentReply"}, "response": {"$ref": "CommentReply"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "update": {"id": "drive.replies.update", "path": "files/{fileId}/comments/{commentId}/replies/{replyId}", "httpMethod": "PUT", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}, "replyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CommentReply"}, "response": {"$ref": "CommentReply"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}}}', true)); 1271 $this->revisions = new Google_RevisionsServiceResource($this, $this->serviceName, 'revisions', json_decode('{"methods": {"delete": {"id": "drive.revisions.delete", "path": "files/{fileId}/revisions/{revisionId}", "httpMethod": "DELETE", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "revisionId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.revisions.get", "path": "files/{fileId}/revisions/{revisionId}", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "revisionId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Revision"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "list": {"id": "drive.revisions.list", "path": "files/{fileId}/revisions", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "RevisionList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "patch": {"id": "drive.revisions.patch", "path": "files/{fileId}/revisions/{revisionId}", "httpMethod": "PATCH", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "revisionId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "update": {"id": "drive.revisions.update", "path": "files/{fileId}/revisions/{revisionId}", "httpMethod": "PUT", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "revisionId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}}}', true)); 1272 1273 } 1274} 1275 1276 1277 1278class Google_About extends Google_Model { 1279 protected $__additionalRoleInfoType = 'Google_AboutAdditionalRoleInfo'; 1280 protected $__additionalRoleInfoDataType = 'array'; 1281 public $additionalRoleInfo; 1282 public $domainSharingPolicy; 1283 public $etag; 1284 protected $__exportFormatsType = 'Google_AboutExportFormats'; 1285 protected $__exportFormatsDataType = 'array'; 1286 public $exportFormats; 1287 protected $__featuresType = 'Google_AboutFeatures'; 1288 protected $__featuresDataType = 'array'; 1289 public $features; 1290 protected $__importFormatsType = 'Google_AboutImportFormats'; 1291 protected $__importFormatsDataType = 'array'; 1292 public $importFormats; 1293 public $isCurrentAppInstalled; 1294 public $kind; 1295 public $largestChangeId; 1296 protected $__maxUploadSizesType = 'Google_AboutMaxUploadSizes'; 1297 protected $__maxUploadSizesDataType = 'array'; 1298 public $maxUploadSizes; 1299 public $name; 1300 public $permissionId; 1301 public $quotaBytesTotal; 1302 public $quotaBytesUsed; 1303 public $quotaBytesUsedAggregate; 1304 public $quotaBytesUsedInTrash; 1305 public $remainingChangeIds; 1306 public $rootFolderId; 1307 public $selfLink; 1308 protected $__userType = 'Google_User'; 1309 protected $__userDataType = ''; 1310 public $user; 1311 public function setAdditionalRoleInfo(/* array(Google_AboutAdditionalRoleInfo) */ $additionalRoleInfo) { 1312 $this->assertIsArray($additionalRoleInfo, 'Google_AboutAdditionalRoleInfo', __METHOD__); 1313 $this->additionalRoleInfo = $additionalRoleInfo; 1314 } 1315 public function getAdditionalRoleInfo() { 1316 return $this->additionalRoleInfo; 1317 } 1318 public function setDomainSharingPolicy( $domainSharingPolicy) { 1319 $this->domainSharingPolicy = $domainSharingPolicy; 1320 } 1321 public function getDomainSharingPolicy() { 1322 return $this->domainSharingPolicy; 1323 } 1324 public function setEtag( $etag) { 1325 $this->etag = $etag; 1326 } 1327 public function getEtag() { 1328 return $this->etag; 1329 } 1330 public function setExportFormats(/* array(Google_AboutExportFormats) */ $exportFormats) { 1331 $this->assertIsArray($exportFormats, 'Google_AboutExportFormats', __METHOD__); 1332 $this->exportFormats = $exportFormats; 1333 } 1334 public function getExportFormats() { 1335 return $this->exportFormats; 1336 } 1337 public function setFeatures(/* array(Google_AboutFeatures) */ $features) { 1338 $this->assertIsArray($features, 'Google_AboutFeatures', __METHOD__); 1339 $this->features = $features; 1340 } 1341 public function getFeatures() { 1342 return $this->features; 1343 } 1344 public function setImportFormats(/* array(Google_AboutImportFormats) */ $importFormats) { 1345 $this->assertIsArray($importFormats, 'Google_AboutImportFormats', __METHOD__); 1346 $this->importFormats = $importFormats; 1347 } 1348 public function getImportFormats() { 1349 return $this->importFormats; 1350 } 1351 public function setIsCurrentAppInstalled( $isCurrentAppInstalled) { 1352 $this->isCurrentAppInstalled = $isCurrentAppInstalled; 1353 } 1354 public function getIsCurrentAppInstalled() { 1355 return $this->isCurrentAppInstalled; 1356 } 1357 public function setKind( $kind) { 1358 $this->kind = $kind; 1359 } 1360 public function getKind() { 1361 return $this->kind; 1362 } 1363 public function setLargestChangeId( $largestChangeId) { 1364 $this->largestChangeId = $largestChangeId; 1365 } 1366 public function getLargestChangeId() { 1367 return $this->largestChangeId; 1368 } 1369 public function setMaxUploadSizes(/* array(Google_AboutMaxUploadSizes) */ $maxUploadSizes) { 1370 $this->assertIsArray($maxUploadSizes, 'Google_AboutMaxUploadSizes', __METHOD__); 1371 $this->maxUploadSizes = $maxUploadSizes; 1372 } 1373 public function getMaxUploadSizes() { 1374 return $this->maxUploadSizes; 1375 } 1376 public function setName( $name) { 1377 $this->name = $name; 1378 } 1379 public function getName() { 1380 return $this->name; 1381 } 1382 public function setPermissionId( $permissionId) { 1383 $this->permissionId = $permissionId; 1384 } 1385 public function getPermissionId() { 1386 return $this->permissionId; 1387 } 1388 public function setQuotaBytesTotal( $quotaBytesTotal) { 1389 $this->quotaBytesTotal = $quotaBytesTotal; 1390 } 1391 public function getQuotaBytesTotal() { 1392 return $this->quotaBytesTotal; 1393 } 1394 public function setQuotaBytesUsed( $quotaBytesUsed) { 1395 $this->quotaBytesUsed = $quotaBytesUsed; 1396 } 1397 public function getQuotaBytesUsed() { 1398 return $this->quotaBytesUsed; 1399 } 1400 public function setQuotaBytesUsedAggregate( $quotaBytesUsedAggregate) { 1401 $this->quotaBytesUsedAggregate = $quotaBytesUsedAggregate; 1402 } 1403 public function getQuotaBytesUsedAggregate() { 1404 return $this->quotaBytesUsedAggregate; 1405 } 1406 public function setQuotaBytesUsedInTrash( $quotaBytesUsedInTrash) { 1407 $this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash; 1408 } 1409 public function getQuotaBytesUsedInTrash() { 1410 return $this->quotaBytesUsedInTrash; 1411 } 1412 public function setRemainingChangeIds( $remainingChangeIds) { 1413 $this->remainingChangeIds = $remainingChangeIds; 1414 } 1415 public function getRemainingChangeIds() { 1416 return $this->remainingChangeIds; 1417 } 1418 public function setRootFolderId( $rootFolderId) { 1419 $this->rootFolderId = $rootFolderId; 1420 } 1421 public function getRootFolderId() { 1422 return $this->rootFolderId; 1423 } 1424 public function setSelfLink( $selfLink) { 1425 $this->selfLink = $selfLink; 1426 } 1427 public function getSelfLink() { 1428 return $this->selfLink; 1429 } 1430 public function setUser(Google_User $user) { 1431 $this->user = $user; 1432 } 1433 public function getUser() { 1434 return $this->user; 1435 } 1436} 1437 1438class Google_AboutAdditionalRoleInfo extends Google_Model { 1439 protected $__roleSetsType = 'Google_AboutAdditionalRoleInfoRoleSets'; 1440 protected $__roleSetsDataType = 'array'; 1441 public $roleSets; 1442 public $type; 1443 public function setRoleSets(/* array(Google_AboutAdditionalRoleInfoRoleSets) */ $roleSets) { 1444 $this->assertIsArray($roleSets, 'Google_AboutAdditionalRoleInfoRoleSets', __METHOD__); 1445 $this->roleSets = $roleSets; 1446 } 1447 public function getRoleSets() { 1448 return $this->roleSets; 1449 } 1450 public function setType( $type) { 1451 $this->type = $type; 1452 } 1453 public function getType() { 1454 return $this->type; 1455 } 1456} 1457 1458class Google_AboutAdditionalRoleInfoRoleSets extends Google_Model { 1459 public $additionalRoles; 1460 public $primaryRole; 1461 public function setAdditionalRoles(/* array(Google_string) */ $additionalRoles) { 1462 $this->assertIsArray($additionalRoles, 'Google_string', __METHOD__); 1463 $this->additionalRoles = $additionalRoles; 1464 } 1465 public function getAdditionalRoles() { 1466 return $this->additionalRoles; 1467 } 1468 public function setPrimaryRole( $primaryRole) { 1469 $this->primaryRole = $primaryRole; 1470 } 1471 public function getPrimaryRole() { 1472 return $this->primaryRole; 1473 } 1474} 1475 1476class Google_AboutExportFormats extends Google_Model { 1477 public $source; 1478 public $targets; 1479 public function setSource( $source) { 1480 $this->source = $source; 1481 } 1482 public function getSource() { 1483 return $this->source; 1484 } 1485 public function setTargets(/* array(Google_string) */ $targets) { 1486 $this->assertIsArray($targets, 'Google_string', __METHOD__); 1487 $this->targets = $targets; 1488 } 1489 public function getTargets() { 1490 return $this->targets; 1491 } 1492} 1493 1494class Google_AboutFeatures extends Google_Model { 1495 public $featureName; 1496 public $featureRate; 1497 public function setFeatureName( $featureName) { 1498 $this->featureName = $featureName; 1499 } 1500 public function getFeatureName() { 1501 return $this->featureName; 1502 } 1503 public function setFeatureRate( $featureRate) { 1504 $this->featureRate = $featureRate; 1505 } 1506 public function getFeatureRate() { 1507 return $this->featureRate; 1508 } 1509} 1510 1511class Google_AboutImportFormats extends Google_Model { 1512 public $source; 1513 public $targets; 1514 public function setSource( $source) { 1515 $this->source = $source; 1516 } 1517 public function getSource() { 1518 return $this->source; 1519 } 1520 public function setTargets(/* array(Google_string) */ $targets) { 1521 $this->assertIsArray($targets, 'Google_string', __METHOD__); 1522 $this->targets = $targets; 1523 } 1524 public function getTargets() { 1525 return $this->targets; 1526 } 1527} 1528 1529class Google_AboutMaxUploadSizes extends Google_Model { 1530 public $size; 1531 public $type; 1532 public function setSize( $size) { 1533 $this->size = $size; 1534 } 1535 public function getSize() { 1536 return $this->size; 1537 } 1538 public function setType( $type) { 1539 $this->type = $type; 1540 } 1541 public function getType() { 1542 return $this->type; 1543 } 1544} 1545 1546class Google_App extends Google_Model { 1547 public $authorized; 1548 protected $__iconsType = 'Google_AppIcons'; 1549 protected $__iconsDataType = 'array'; 1550 public $icons; 1551 public $id; 1552 public $installed; 1553 public $kind; 1554 public $longDescription; 1555 public $name; 1556 public $objectType; 1557 public $openUrlTemplate; 1558 public $primaryFileExtensions; 1559 public $primaryMimeTypes; 1560 public $productId; 1561 public $productUrl; 1562 public $secondaryFileExtensions; 1563 public $secondaryMimeTypes; 1564 public $shortDescription; 1565 public $supportsCreate; 1566 public $supportsImport; 1567 public $supportsMultiOpen; 1568 public $useByDefault; 1569 public function setAuthorized( $authorized) { 1570 $this->authorized = $authorized; 1571 } 1572 public function getAuthorized() { 1573 return $this->authorized; 1574 } 1575 public function setIcons(/* array(Google_AppIcons) */ $icons) { 1576 $this->assertIsArray($icons, 'Google_AppIcons', __METHOD__); 1577 $this->icons = $icons; 1578 } 1579 public function getIcons() { 1580 return $this->icons; 1581 } 1582 public function setId( $id) { 1583 $this->id = $id; 1584 } 1585 public function getId() { 1586 return $this->id; 1587 } 1588 public function setInstalled( $installed) { 1589 $this->installed = $installed; 1590 } 1591 public function getInstalled() { 1592 return $this->installed; 1593 } 1594 public function setKind( $kind) { 1595 $this->kind = $kind; 1596 } 1597 public function getKind() { 1598 return $this->kind; 1599 } 1600 public function setLongDescription( $longDescription) { 1601 $this->longDescription = $longDescription; 1602 } 1603 public function getLongDescription() { 1604 return $this->longDescription; 1605 } 1606 public function setName( $name) { 1607 $this->name = $name; 1608 } 1609 public function getName() { 1610 return $this->name; 1611 } 1612 public function setObjectType( $objectType) { 1613 $this->objectType = $objectType; 1614 } 1615 public function getObjectType() { 1616 return $this->objectType; 1617 } 1618 public function setOpenUrlTemplate( $openUrlTemplate) { 1619 $this->openUrlTemplate = $openUrlTemplate; 1620 } 1621 public function getOpenUrlTemplate() { 1622 return $this->openUrlTemplate; 1623 } 1624 public function setPrimaryFileExtensions(/* array(Google_string) */ $primaryFileExtensions) { 1625 $this->assertIsArray($primaryFileExtensions, 'Google_string', __METHOD__); 1626 $this->primaryFileExtensions = $primaryFileExtensions; 1627 } 1628 public function getPrimaryFileExtensions() { 1629 return $this->primaryFileExtensions; 1630 } 1631 public function setPrimaryMimeTypes(/* array(Google_string) */ $primaryMimeTypes) { 1632 $this->assertIsArray($primaryMimeTypes, 'Google_string', __METHOD__); 1633 $this->primaryMimeTypes = $primaryMimeTypes; 1634 } 1635 public function getPrimaryMimeTypes() { 1636 return $this->primaryMimeTypes; 1637 } 1638 public function setProductId( $productId) { 1639 $this->productId = $productId; 1640 } 1641 public function getProductId() { 1642 return $this->productId; 1643 } 1644 public function setProductUrl( $productUrl) { 1645 $this->productUrl = $productUrl; 1646 } 1647 public function getProductUrl() { 1648 return $this->productUrl; 1649 } 1650 public function setSecondaryFileExtensions(/* array(Google_string) */ $secondaryFileExtensions) { 1651 $this->assertIsArray($secondaryFileExtensions, 'Google_string', __METHOD__); 1652 $this->secondaryFileExtensions = $secondaryFileExtensions; 1653 } 1654 public function getSecondaryFileExtensions() { 1655 return $this->secondaryFileExtensions; 1656 } 1657 public function setSecondaryMimeTypes(/* array(Google_string) */ $secondaryMimeTypes) { 1658 $this->assertIsArray($secondaryMimeTypes, 'Google_string', __METHOD__); 1659 $this->secondaryMimeTypes = $secondaryMimeTypes; 1660 } 1661 public function getSecondaryMimeTypes() { 1662 return $this->secondaryMimeTypes; 1663 } 1664 public function setShortDescription( $shortDescription) { 1665 $this->shortDescription = $shortDescription; 1666 } 1667 public function getShortDescription() { 1668 return $this->shortDescription; 1669 } 1670 public function setSupportsCreate( $supportsCreate) { 1671 $this->supportsCreate = $supportsCreate; 1672 } 1673 public function getSupportsCreate() { 1674 return $this->supportsCreate; 1675 } 1676 public function setSupportsImport( $supportsImport) { 1677 $this->supportsImport = $supportsImport; 1678 } 1679 public function getSupportsImport() { 1680 return $this->supportsImport; 1681 } 1682 public function setSupportsMultiOpen( $supportsMultiOpen) { 1683 $this->supportsMultiOpen = $supportsMultiOpen; 1684 } 1685 public function getSupportsMultiOpen() { 1686 return $this->supportsMultiOpen; 1687 } 1688 public function setUseByDefault( $useByDefault) { 1689 $this->useByDefault = $useByDefault; 1690 } 1691 public function getUseByDefault() { 1692 return $this->useByDefault; 1693 } 1694} 1695 1696class Google_AppIcons extends Google_Model { 1697 public $category; 1698 public $iconUrl; 1699 public $size; 1700 public function setCategory( $category) { 1701 $this->category = $category; 1702 } 1703 public function getCategory() { 1704 return $this->category; 1705 } 1706 public function setIconUrl( $iconUrl) { 1707 $this->iconUrl = $iconUrl; 1708 } 1709 public function getIconUrl() { 1710 return $this->iconUrl; 1711 } 1712 public function setSize( $size) { 1713 $this->size = $size; 1714 } 1715 public function getSize() { 1716 return $this->size; 1717 } 1718} 1719 1720class Google_AppList extends Google_Model { 1721 public $etag; 1722 protected $__itemsType = 'Google_App'; 1723 protected $__itemsDataType = 'array'; 1724 public $items; 1725 public $kind; 1726 public $selfLink; 1727 public function setEtag( $etag) { 1728 $this->etag = $etag; 1729 } 1730 public function getEtag() { 1731 return $this->etag; 1732 } 1733 public function setItems(/* array(Google_App) */ $items) { 1734 $this->assertIsArray($items, 'Google_App', __METHOD__); 1735 $this->items = $items; 1736 } 1737 public function getItems() { 1738 return $this->items; 1739 } 1740 public function setKind( $kind) { 1741 $this->kind = $kind; 1742 } 1743 public function getKind() { 1744 return $this->kind; 1745 } 1746 public function setSelfLink( $selfLink) { 1747 $this->selfLink = $selfLink; 1748 } 1749 public function getSelfLink() { 1750 return $this->selfLink; 1751 } 1752} 1753 1754class Google_Change extends Google_Model { 1755 public $deleted; 1756 protected $__fileType = 'Google_DriveFile'; 1757 protected $__fileDataType = ''; 1758 public $file; 1759 public $fileId; 1760 public $id; 1761 public $kind; 1762 public $selfLink; 1763 public function setDeleted( $deleted) { 1764 $this->deleted = $deleted; 1765 } 1766 public function getDeleted() { 1767 return $this->deleted; 1768 } 1769 public function setFile(Google_DriveFile $file) { 1770 $this->file = $file; 1771 } 1772 public function getFile() { 1773 return $this->file; 1774 } 1775 public function setFileId( $fileId) { 1776 $this->fileId = $fileId; 1777 } 1778 public function getFileId() { 1779 return $this->fileId; 1780 } 1781 public function setId( $id) { 1782 $this->id = $id; 1783 } 1784 public function getId() { 1785 return $this->id; 1786 } 1787 public function setKind( $kind) { 1788 $this->kind = $kind; 1789 } 1790 public function getKind() { 1791 return $this->kind; 1792 } 1793 public function setSelfLink( $selfLink) { 1794 $this->selfLink = $selfLink; 1795 } 1796 public function getSelfLink() { 1797 return $this->selfLink; 1798 } 1799} 1800 1801class Google_ChangeList extends Google_Model { 1802 public $etag; 1803 protected $__itemsType = 'Google_Change'; 1804 protected $__itemsDataType = 'array'; 1805 public $items; 1806 public $kind; 1807 public $largestChangeId; 1808 public $nextLink; 1809 public $nextPageToken; 1810 public $selfLink; 1811 public function setEtag( $etag) { 1812 $this->etag = $etag; 1813 } 1814 public function getEtag() { 1815 return $this->etag; 1816 } 1817 public function setItems(/* array(Google_Change) */ $items) { 1818 $this->assertIsArray($items, 'Google_Change', __METHOD__); 1819 $this->items = $items; 1820 } 1821 public function getItems() { 1822 return $this->items; 1823 } 1824 public function setKind( $kind) { 1825 $this->kind = $kind; 1826 } 1827 public function getKind() { 1828 return $this->kind; 1829 } 1830 public function setLargestChangeId( $largestChangeId) { 1831 $this->largestChangeId = $largestChangeId; 1832 } 1833 public function getLargestChangeId() { 1834 return $this->largestChangeId; 1835 } 1836 public function setNextLink( $nextLink) { 1837 $this->nextLink = $nextLink; 1838 } 1839 public function getNextLink() { 1840 return $this->nextLink; 1841 } 1842 public function setNextPageToken( $nextPageToken) { 1843 $this->nextPageToken = $nextPageToken; 1844 } 1845 public function getNextPageToken() { 1846 return $this->nextPageToken; 1847 } 1848 public function setSelfLink( $selfLink) { 1849 $this->selfLink = $selfLink; 1850 } 1851 public function getSelfLink() { 1852 return $this->selfLink; 1853 } 1854} 1855 1856class Google_Channel extends Google_Model { 1857 public $address; 1858 public $expiration; 1859 public $id; 1860 public $kind; 1861 public $params; 1862 public $resourceId; 1863 public $resourceUri; 1864 public $token; 1865 public $type; 1866 public function setAddress( $address) { 1867 $this->address = $address; 1868 } 1869 public function getAddress() { 1870 return $this->address; 1871 } 1872 public function setExpiration( $expiration) { 1873 $this->expiration = $expiration; 1874 } 1875 public function getExpiration() { 1876 return $this->expiration; 1877 } 1878 public function setId( $id) { 1879 $this->id = $id; 1880 } 1881 public function getId() { 1882 return $this->id; 1883 } 1884 public function setKind( $kind) { 1885 $this->kind = $kind; 1886 } 1887 public function getKind() { 1888 return $this->kind; 1889 } 1890 public function setParams( $params) { 1891 $this->params = $params; 1892 } 1893 public function getParams() { 1894 return $this->params; 1895 } 1896 public function setResourceId( $resourceId) { 1897 $this->resourceId = $resourceId; 1898 } 1899 public function getResourceId() { 1900 return $this->resourceId; 1901 } 1902 public function setResourceUri( $resourceUri) { 1903 $this->resourceUri = $resourceUri; 1904 } 1905 public function getResourceUri() { 1906 return $this->resourceUri; 1907 } 1908 public function setToken( $token) { 1909 $this->token = $token; 1910 } 1911 public function getToken() { 1912 return $this->token; 1913 } 1914 public function setType( $type) { 1915 $this->type = $type; 1916 } 1917 public function getType() { 1918 return $this->type; 1919 } 1920} 1921 1922class Google_ChildList extends Google_Model { 1923 public $etag; 1924 protected $__itemsType = 'Google_ChildReference'; 1925 protected $__itemsDataType = 'array'; 1926 public $items; 1927 public $kind; 1928 public $nextLink; 1929 public $nextPageToken; 1930 public $selfLink; 1931 public function setEtag( $etag) { 1932 $this->etag = $etag; 1933 } 1934 public function getEtag() { 1935 return $this->etag; 1936 } 1937 public function setItems(/* array(Google_ChildReference) */ $items) { 1938 $this->assertIsArray($items, 'Google_ChildReference', __METHOD__); 1939 $this->items = $items; 1940 } 1941 public function getItems() { 1942 return $this->items; 1943 } 1944 public function setKind( $kind) { 1945 $this->kind = $kind; 1946 } 1947 public function getKind() { 1948 return $this->kind; 1949 } 1950 public function setNextLink( $nextLink) { 1951 $this->nextLink = $nextLink; 1952 } 1953 public function getNextLink() { 1954 return $this->nextLink; 1955 } 1956 public function setNextPageToken( $nextPageToken) { 1957 $this->nextPageToken = $nextPageToken; 1958 } 1959 public function getNextPageToken() { 1960 return $this->nextPageToken; 1961 } 1962 public function setSelfLink( $selfLink) { 1963 $this->selfLink = $selfLink; 1964 } 1965 public function getSelfLink() { 1966 return $this->selfLink; 1967 } 1968} 1969 1970class Google_ChildReference extends Google_Model { 1971 public $childLink; 1972 public $id; 1973 public $kind; 1974 public $selfLink; 1975 public function setChildLink( $childLink) { 1976 $this->childLink = $childLink; 1977 } 1978 public function getChildLink() { 1979 return $this->childLink; 1980 } 1981 public function setId( $id) { 1982 $this->id = $id; 1983 } 1984 public function getId() { 1985 return $this->id; 1986 } 1987 public function setKind( $kind) { 1988 $this->kind = $kind; 1989 } 1990 public function getKind() { 1991 return $this->kind; 1992 } 1993 public function setSelfLink( $selfLink) { 1994 $this->selfLink = $selfLink; 1995 } 1996 public function getSelfLink() { 1997 return $this->selfLink; 1998 } 1999} 2000 2001class Google_Comment extends Google_Model { 2002 public $anchor; 2003 protected $__authorType = 'Google_User'; 2004 protected $__authorDataType = ''; 2005 public $author; 2006 public $commentId; 2007 public $content; 2008 protected $__contextType = 'Google_CommentContext'; 2009 protected $__contextDataType = ''; 2010 public $context; 2011 public $createdDate; 2012 public $deleted; 2013 public $fileId; 2014 public $fileTitle; 2015 public $htmlContent; 2016 public $kind; 2017 public $modifiedDate; 2018 protected $__repliesType = 'Google_CommentReply'; 2019 protected $__repliesDataType = 'array'; 2020 public $replies; 2021 public $selfLink; 2022 public $status; 2023 public function setAnchor( $anchor) { 2024 $this->anchor = $anchor; 2025 } 2026 public function getAnchor() { 2027 return $this->anchor; 2028 } 2029 public function setAuthor(Google_User $author) { 2030 $this->author = $author; 2031 } 2032 public function getAuthor() { 2033 return $this->author; 2034 } 2035 public function setCommentId( $commentId) { 2036 $this->commentId = $commentId; 2037 } 2038 public function getCommentId() { 2039 return $this->commentId; 2040 } 2041 public function setContent( $content) { 2042 $this->content = $content; 2043 } 2044 public function getContent() { 2045 return $this->content; 2046 } 2047 public function setContext(Google_CommentContext $context) { 2048 $this->context = $context; 2049 } 2050 public function getContext() { 2051 return $this->context; 2052 } 2053 public function setCreatedDate( $createdDate) { 2054 $this->createdDate = $createdDate; 2055 } 2056 public function getCreatedDate() { 2057 return $this->createdDate; 2058 } 2059 public function setDeleted( $deleted) { 2060 $this->deleted = $deleted; 2061 } 2062 public function getDeleted() { 2063 return $this->deleted; 2064 } 2065 public function setFileId( $fileId) { 2066 $this->fileId = $fileId; 2067 } 2068 public function getFileId() { 2069 return $this->fileId; 2070 } 2071 public function setFileTitle( $fileTitle) { 2072 $this->fileTitle = $fileTitle; 2073 } 2074 public function getFileTitle() { 2075 return $this->fileTitle; 2076 } 2077 public function setHtmlContent( $htmlContent) { 2078 $this->htmlContent = $htmlContent; 2079 } 2080 public function getHtmlContent() { 2081 return $this->htmlContent; 2082 } 2083 public function setKind( $kind) { 2084 $this->kind = $kind; 2085 } 2086 public function getKind() { 2087 return $this->kind; 2088 } 2089 public function setModifiedDate( $modifiedDate) { 2090 $this->modifiedDate = $modifiedDate; 2091 } 2092 public function getModifiedDate() { 2093 return $this->modifiedDate; 2094 } 2095 public function setReplies(/* array(Google_CommentReply) */ $replies) { 2096 $this->assertIsArray($replies, 'Google_CommentReply', __METHOD__); 2097 $this->replies = $replies; 2098 } 2099 public function getReplies() { 2100 return $this->replies; 2101 } 2102 public function setSelfLink( $selfLink) { 2103 $this->selfLink = $selfLink; 2104 } 2105 public function getSelfLink() { 2106 return $this->selfLink; 2107 } 2108 public function setStatus( $status) { 2109 $this->status = $status; 2110 } 2111 public function getStatus() { 2112 return $this->status; 2113 } 2114} 2115 2116class Google_CommentContext extends Google_Model { 2117 public $type; 2118 public $value; 2119 public function setType( $type) { 2120 $this->type = $type; 2121 } 2122 public function getType() { 2123 return $this->type; 2124 } 2125 public function setValue( $value) { 2126 $this->value = $value; 2127 } 2128 public function getValue() { 2129 return $this->value; 2130 } 2131} 2132 2133class Google_CommentList extends Google_Model { 2134 protected $__itemsType = 'Google_Comment'; 2135 protected $__itemsDataType = 'array'; 2136 public $items; 2137 public $kind; 2138 public $nextLink; 2139 public $nextPageToken; 2140 public $selfLink; 2141 public function setItems(/* array(Google_Comment) */ $items) { 2142 $this->assertIsArray($items, 'Google_Comment', __METHOD__); 2143 $this->items = $items; 2144 } 2145 public function getItems() { 2146 return $this->items; 2147 } 2148 public function setKind( $kind) { 2149 $this->kind = $kind; 2150 } 2151 public function getKind() { 2152 return $this->kind; 2153 } 2154 public function setNextLink( $nextLink) { 2155 $this->nextLink = $nextLink; 2156 } 2157 public function getNextLink() { 2158 return $this->nextLink; 2159 } 2160 public function setNextPageToken( $nextPageToken) { 2161 $this->nextPageToken = $nextPageToken; 2162 } 2163 public function getNextPageToken() { 2164 return $this->nextPageToken; 2165 } 2166 public function setSelfLink( $selfLink) { 2167 $this->selfLink = $selfLink; 2168 } 2169 public function getSelfLink() { 2170 return $this->selfLink; 2171 } 2172} 2173 2174class Google_CommentReply extends Google_Model { 2175 protected $__authorType = 'Google_User'; 2176 protected $__authorDataType = ''; 2177 public $author; 2178 public $content; 2179 public $createdDate; 2180 public $deleted; 2181 public $htmlContent; 2182 public $kind; 2183 public $modifiedDate; 2184 public $replyId; 2185 public $verb; 2186 public function setAuthor(Google_User $author) { 2187 $this->author = $author; 2188 } 2189 public function getAuthor() { 2190 return $this->author; 2191 } 2192 public function setContent( $content) { 2193 $this->content = $content; 2194 } 2195 public function getContent() { 2196 return $this->content; 2197 } 2198 public function setCreatedDate( $createdDate) { 2199 $this->createdDate = $createdDate; 2200 } 2201 public function getCreatedDate() { 2202 return $this->createdDate; 2203 } 2204 public function setDeleted( $deleted) { 2205 $this->deleted = $deleted; 2206 } 2207 public function getDeleted() { 2208 return $this->deleted; 2209 } 2210 public function setHtmlContent( $htmlContent) { 2211 $this->htmlContent = $htmlContent; 2212 } 2213 public function getHtmlContent() { 2214 return $this->htmlContent; 2215 } 2216 public function setKind( $kind) { 2217 $this->kind = $kind; 2218 } 2219 public function getKind() { 2220 return $this->kind; 2221 } 2222 public function setModifiedDate( $modifiedDate) { 2223 $this->modifiedDate = $modifiedDate; 2224 } 2225 public function getModifiedDate() { 2226 return $this->modifiedDate; 2227 } 2228 public function setReplyId( $replyId) { 2229 $this->replyId = $replyId; 2230 } 2231 public function getReplyId() { 2232 return $this->replyId; 2233 } 2234 public function setVerb( $verb) { 2235 $this->verb = $verb; 2236 } 2237 public function getVerb() { 2238 return $this->verb; 2239 } 2240} 2241 2242class Google_CommentReplyList extends Google_Model { 2243 protected $__itemsType = 'Google_CommentReply'; 2244 protected $__itemsDataType = 'array'; 2245 public $items; 2246 public $kind; 2247 public $nextLink; 2248 public $nextPageToken; 2249 public $selfLink; 2250 public function setItems(/* array(Google_CommentReply) */ $items) { 2251 $this->assertIsArray($items, 'Google_CommentReply', __METHOD__); 2252 $this->items = $items; 2253 } 2254 public function getItems() { 2255 return $this->items; 2256 } 2257 public function setKind( $kind) { 2258 $this->kind = $kind; 2259 } 2260 public function getKind() { 2261 return $this->kind; 2262 } 2263 public function setNextLink( $nextLink) { 2264 $this->nextLink = $nextLink; 2265 } 2266 public function getNextLink() { 2267 return $this->nextLink; 2268 } 2269 public function setNextPageToken( $nextPageToken) { 2270 $this->nextPageToken = $nextPageToken; 2271 } 2272 public function getNextPageToken() { 2273 return $this->nextPageToken; 2274 } 2275 public function setSelfLink( $selfLink) { 2276 $this->selfLink = $selfLink; 2277 } 2278 public function getSelfLink() { 2279 return $this->selfLink; 2280 } 2281} 2282 2283class Google_DriveFile extends Google_Model { 2284 public $alternateLink; 2285 public $appDataContents; 2286 public $createdDate; 2287 public $defaultOpenWithLink; 2288 public $description; 2289 public $downloadUrl; 2290 public $editable; 2291 public $embedLink; 2292 public $etag; 2293 public $explicitlyTrashed; 2294 public $exportLinks; 2295 public $fileExtension; 2296 public $fileSize; 2297 public $headRevisionId; 2298 public $iconLink; 2299 public $id; 2300 protected $__imageMediaMetadataType = 'Google_DriveFileImageMediaMetadata'; 2301 protected $__imageMediaMetadataDataType = ''; 2302 public $imageMediaMetadata; 2303 protected $__indexableTextType = 'Google_DriveFileIndexableText'; 2304 protected $__indexableTextDataType = ''; 2305 public $indexableText; 2306 public $kind; 2307 protected $__labelsType = 'Google_DriveFileLabels'; 2308 protected $__labelsDataType = ''; 2309 public $labels; 2310 protected $__lastModifyingUserType = 'Google_User'; 2311 protected $__lastModifyingUserDataType = ''; 2312 public $lastModifyingUser; 2313 public $lastModifyingUserName; 2314 public $lastViewedByMeDate; 2315 public $md5Checksum; 2316 public $mimeType; 2317 public $modifiedByMeDate; 2318 public $modifiedDate; 2319 public $openWithLinks; 2320 public $originalFilename; 2321 public $ownerNames; 2322 protected $__ownersType = 'Google_User'; 2323 protected $__ownersDataType = 'array'; 2324 public $owners; 2325 protected $__parentsType = 'Google_ParentReference'; 2326 protected $__parentsDataType = 'array'; 2327 public $parents; 2328 public $quotaBytesUsed; 2329 public $selfLink; 2330 public $shared; 2331 public $sharedWithMeDate; 2332 protected $__thumbnailType = 'Google_DriveFileThumbnail'; 2333 protected $__thumbnailDataType = ''; 2334 public $thumbnail; 2335 public $thumbnailLink; 2336 public $title; 2337 protected $__userPermissionType = 'Google_Permission'; 2338 protected $__userPermissionDataType = ''; 2339 public $userPermission; 2340 public $webContentLink; 2341 public $webViewLink; 2342 public $writersCanShare; 2343 public function setAlternateLink( $alternateLink) { 2344 $this->alternateLink = $alternateLink; 2345 } 2346 public function getAlternateLink() { 2347 return $this->alternateLink; 2348 } 2349 public function setAppDataContents( $appDataContents) { 2350 $this->appDataContents = $appDataContents; 2351 } 2352 public function getAppDataContents() { 2353 return $this->appDataContents; 2354 } 2355 public function setCreatedDate( $createdDate) { 2356 $this->createdDate = $createdDate; 2357 } 2358 public function getCreatedDate() { 2359 return $this->createdDate; 2360 } 2361 public function setDefaultOpenWithLink( $defaultOpenWithLink) { 2362 $this->defaultOpenWithLink = $defaultOpenWithLink; 2363 } 2364 public function getDefaultOpenWithLink() { 2365 return $this->defaultOpenWithLink; 2366 } 2367 public function setDescription( $description) { 2368 $this->description = $description; 2369 } 2370 public function getDescription() { 2371 return $this->description; 2372 } 2373 public function setDownloadUrl( $downloadUrl) { 2374 $this->downloadUrl = $downloadUrl; 2375 } 2376 public function getDownloadUrl() { 2377 return $this->downloadUrl; 2378 } 2379 public function setEditable( $editable) { 2380 $this->editable = $editable; 2381 } 2382 public function getEditable() { 2383 return $this->editable; 2384 } 2385 public function setEmbedLink( $embedLink) { 2386 $this->embedLink = $embedLink; 2387 } 2388 public function getEmbedLink() { 2389 return $this->embedLink; 2390 } 2391 public function setEtag( $etag) { 2392 $this->etag = $etag; 2393 } 2394 public function getEtag() { 2395 return $this->etag; 2396 } 2397 public function setExplicitlyTrashed( $explicitlyTrashed) { 2398 $this->explicitlyTrashed = $explicitlyTrashed; 2399 } 2400 public function getExplicitlyTrashed() { 2401 return $this->explicitlyTrashed; 2402 } 2403 public function setExportLinks( $exportLinks) { 2404 $this->exportLinks = $exportLinks; 2405 } 2406 public function getExportLinks() { 2407 return $this->exportLinks; 2408 } 2409 public function setFileExtension( $fileExtension) { 2410 $this->fileExtension = $fileExtension; 2411 } 2412 public function getFileExtension() { 2413 return $this->fileExtension; 2414 } 2415 public function setFileSize( $fileSize) { 2416 $this->fileSize = $fileSize; 2417 } 2418 public function getFileSize() { 2419 return $this->fileSize; 2420 } 2421 public function setHeadRevisionId( $headRevisionId) { 2422 $this->headRevisionId = $headRevisionId; 2423 } 2424 public function getHeadRevisionId() { 2425 return $this->headRevisionId; 2426 } 2427 public function setIconLink( $iconLink) { 2428 $this->iconLink = $iconLink; 2429 } 2430 public function getIconLink() { 2431 return $this->iconLink; 2432 } 2433 public function setId( $id) { 2434 $this->id = $id; 2435 } 2436 public function getId() { 2437 return $this->id; 2438 } 2439 public function setImageMediaMetadata(Google_DriveFileImageMediaMetadata $imageMediaMetadata) { 2440 $this->imageMediaMetadata = $imageMediaMetadata; 2441 } 2442 public function getImageMediaMetadata() { 2443 return $this->imageMediaMetadata; 2444 } 2445 public function setIndexableText(Google_DriveFileIndexableText $indexableText) { 2446 $this->indexableText = $indexableText; 2447 } 2448 public function getIndexableText() { 2449 return $this->indexableText; 2450 } 2451 public function setKind( $kind) { 2452 $this->kind = $kind; 2453 } 2454 public function getKind() { 2455 return $this->kind; 2456 } 2457 public function setLabels(Google_DriveFileLabels $labels) { 2458 $this->labels = $labels; 2459 } 2460 public function getLabels() { 2461 return $this->labels; 2462 } 2463 public function setLastModifyingUser(Google_User $lastModifyingUser) { 2464 $this->lastModifyingUser = $lastModifyingUser; 2465 } 2466 public function getLastModifyingUser() { 2467 return $this->lastModifyingUser; 2468 } 2469 public function setLastModifyingUserName( $lastModifyingUserName) { 2470 $this->lastModifyingUserName = $lastModifyingUserName; 2471 } 2472 public function getLastModifyingUserName() { 2473 return $this->lastModifyingUserName; 2474 } 2475 public function setLastViewedByMeDate( $lastViewedByMeDate) { 2476 $this->lastViewedByMeDate = $lastViewedByMeDate; 2477 } 2478 public function getLastViewedByMeDate() { 2479 return $this->lastViewedByMeDate; 2480 } 2481 public function setMd5Checksum( $md5Checksum) { 2482 $this->md5Checksum = $md5Checksum; 2483 } 2484 public function getMd5Checksum() { 2485 return $this->md5Checksum; 2486 } 2487 public function setMimeType( $mimeType) { 2488 $this->mimeType = $mimeType; 2489 } 2490 public function getMimeType() { 2491 return $this->mimeType; 2492 } 2493 public function setModifiedByMeDate( $modifiedByMeDate) { 2494 $this->modifiedByMeDate = $modifiedByMeDate; 2495 } 2496 public function getModifiedByMeDate() { 2497 return $this->modifiedByMeDate; 2498 } 2499 public function setModifiedDate( $modifiedDate) { 2500 $this->modifiedDate = $modifiedDate; 2501 } 2502 public function getModifiedDate() { 2503 return $this->modifiedDate; 2504 } 2505 public function setOpenWithLinks( $openWithLinks) { 2506 $this->openWithLinks = $openWithLinks; 2507 } 2508 public function getOpenWithLinks() { 2509 return $this->openWithLinks; 2510 } 2511 public function setOriginalFilename( $originalFilename) { 2512 $this->originalFilename = $originalFilename; 2513 } 2514 public function getOriginalFilename() { 2515 return $this->originalFilename; 2516 } 2517 public function setOwnerNames(/* array(Google_string) */ $ownerNames) { 2518 $this->assertIsArray($ownerNames, 'Google_string', __METHOD__); 2519 $this->ownerNames = $ownerNames; 2520 } 2521 public function getOwnerNames() { 2522 return $this->ownerNames; 2523 } 2524 public function setOwners(/* array(Google_User) */ $owners) { 2525 $this->assertIsArray($owners, 'Google_User', __METHOD__); 2526 $this->owners = $owners; 2527 } 2528 public function getOwners() { 2529 return $this->owners; 2530 } 2531 public function setParents(/* array(Google_ParentReference) */ $parents) { 2532 $this->assertIsArray($parents, 'Google_ParentReference', __METHOD__); 2533 $this->parents = $parents; 2534 } 2535 public function getParents() { 2536 return $this->parents; 2537 } 2538 public function setQuotaBytesUsed( $quotaBytesUsed) { 2539 $this->quotaBytesUsed = $quotaBytesUsed; 2540 } 2541 public function getQuotaBytesUsed() { 2542 return $this->quotaBytesUsed; 2543 } 2544 public function setSelfLink( $selfLink) { 2545 $this->selfLink = $selfLink; 2546 } 2547 public function getSelfLink() { 2548 return $this->selfLink; 2549 } 2550 public function setShared( $shared) { 2551 $this->shared = $shared; 2552 } 2553 public function getShared() { 2554 return $this->shared; 2555 } 2556 public function setSharedWithMeDate( $sharedWithMeDate) { 2557 $this->sharedWithMeDate = $sharedWithMeDate; 2558 } 2559 public function getSharedWithMeDate() { 2560 return $this->sharedWithMeDate; 2561 } 2562 public function setThumbnail(Google_DriveFileThumbnail $thumbnail) { 2563 $this->thumbnail = $thumbnail; 2564 } 2565 public function getThumbnail() { 2566 return $this->thumbnail; 2567 } 2568 public function setThumbnailLink( $thumbnailLink) { 2569 $this->thumbnailLink = $thumbnailLink; 2570 } 2571 public function getThumbnailLink() { 2572 return $this->thumbnailLink; 2573 } 2574 public function setTitle( $title) { 2575 $this->title = $title; 2576 } 2577 public function getTitle() { 2578 return $this->title; 2579 } 2580 public function setUserPermission(Google_Permission $userPermission) { 2581 $this->userPermission = $userPermission; 2582 } 2583 public function getUserPermission() { 2584 return $this->userPermission; 2585 } 2586 public function setWebContentLink( $webContentLink) { 2587 $this->webContentLink = $webContentLink; 2588 } 2589 public function getWebContentLink() { 2590 return $this->webContentLink; 2591 } 2592 public function setWebViewLink( $webViewLink) { 2593 $this->webViewLink = $webViewLink; 2594 } 2595 public function getWebViewLink() { 2596 return $this->webViewLink; 2597 } 2598 public function setWritersCanShare( $writersCanShare) { 2599 $this->writersCanShare = $writersCanShare; 2600 } 2601 public function getWritersCanShare() { 2602 return $this->writersCanShare; 2603 } 2604} 2605 2606class Google_DriveFileImageMediaMetadata extends Google_Model { 2607 public $aperture; 2608 public $cameraMake; 2609 public $cameraModel; 2610 public $colorSpace; 2611 public $date; 2612 public $exposureBias; 2613 public $exposureMode; 2614 public $exposureTime; 2615 public $flashUsed; 2616 public $focalLength; 2617 public $height; 2618 public $isoSpeed; 2619 public $lens; 2620 protected $__locationType = 'Google_DriveFileImageMediaMetadataLocation'; 2621 protected $__locationDataType = ''; 2622 public $location; 2623 public $maxApertureValue; 2624 public $meteringMode; 2625 public $rotation; 2626 public $sensor; 2627 public $subjectDistance; 2628 public $whiteBalance; 2629 public $width; 2630 public function setAperture( $aperture) { 2631 $this->aperture = $aperture; 2632 } 2633 public function getAperture() { 2634 return $this->aperture; 2635 } 2636 public function setCameraMake( $cameraMake) { 2637 $this->cameraMake = $cameraMake; 2638 } 2639 public function getCameraMake() { 2640 return $this->cameraMake; 2641 } 2642 public function setCameraModel( $cameraModel) { 2643 $this->cameraModel = $cameraModel; 2644 } 2645 public function getCameraModel() { 2646 return $this->cameraModel; 2647 } 2648 public function setColorSpace( $colorSpace) { 2649 $this->colorSpace = $colorSpace; 2650 } 2651 public function getColorSpace() { 2652 return $this->colorSpace; 2653 } 2654 public function setDate( $date) { 2655 $this->date = $date; 2656 } 2657 public function getDate() { 2658 return $this->date; 2659 } 2660 public function setExposureBias( $exposureBias) { 2661 $this->exposureBias = $exposureBias; 2662 } 2663 public function getExposureBias() { 2664 return $this->exposureBias; 2665 } 2666 public function setExposureMode( $exposureMode) { 2667 $this->exposureMode = $exposureMode; 2668 } 2669 public function getExposureMode() { 2670 return $this->exposureMode; 2671 } 2672 public function setExposureTime( $exposureTime) { 2673 $this->exposureTime = $exposureTime; 2674 } 2675 public function getExposureTime() { 2676 return $this->exposureTime; 2677 } 2678 public function setFlashUsed( $flashUsed) { 2679 $this->flashUsed = $flashUsed; 2680 } 2681 public function getFlashUsed() { 2682 return $this->flashUsed; 2683 } 2684 public function setFocalLength( $focalLength) { 2685 $this->focalLength = $focalLength; 2686 } 2687 public function getFocalLength() { 2688 return $this->focalLength; 2689 } 2690 public function setHeight( $height) { 2691 $this->height = $height; 2692 } 2693 public function getHeight() { 2694 return $this->height; 2695 } 2696 public function setIsoSpeed( $isoSpeed) { 2697 $this->isoSpeed = $isoSpeed; 2698 } 2699 public function getIsoSpeed() { 2700 return $this->isoSpeed; 2701 } 2702 public function setLens( $lens) { 2703 $this->lens = $lens; 2704 } 2705 public function getLens() { 2706 return $this->lens; 2707 } 2708 public function setLocation(Google_DriveFileImageMediaMetadataLocation $location) { 2709 $this->location = $location; 2710 } 2711 public function getLocation() { 2712 return $this->location; 2713 } 2714 public function setMaxApertureValue( $maxApertureValue) { 2715 $this->maxApertureValue = $maxApertureValue; 2716 } 2717 public function getMaxApertureValue() { 2718 return $this->maxApertureValue; 2719 } 2720 public function setMeteringMode( $meteringMode) { 2721 $this->meteringMode = $meteringMode; 2722 } 2723 public function getMeteringMode() { 2724 return $this->meteringMode; 2725 } 2726 public function setRotation( $rotation) { 2727 $this->rotation = $rotation; 2728 } 2729 public function getRotation() { 2730 return $this->rotation; 2731 } 2732 public function setSensor( $sensor) { 2733 $this->sensor = $sensor; 2734 } 2735 public function getSensor() { 2736 return $this->sensor; 2737 } 2738 public function setSubjectDistance( $subjectDistance) { 2739 $this->subjectDistance = $subjectDistance; 2740 } 2741 public function getSubjectDistance() { 2742 return $this->subjectDistance; 2743 } 2744 public function setWhiteBalance( $whiteBalance) { 2745 $this->whiteBalance = $whiteBalance; 2746 } 2747 public function getWhiteBalance() { 2748 return $this->whiteBalance; 2749 } 2750 public function setWidth( $width) { 2751 $this->width = $width; 2752 } 2753 public function getWidth() { 2754 return $this->width; 2755 } 2756} 2757 2758class Google_DriveFileImageMediaMetadataLocation extends Google_Model { 2759 public $altitude; 2760 public $latitude; 2761 public $longitude; 2762 public function setAltitude( $altitude) { 2763 $this->altitude = $altitude; 2764 } 2765 public function getAltitude() { 2766 return $this->altitude; 2767 } 2768 public function setLatitude( $latitude) { 2769 $this->latitude = $latitude; 2770 } 2771 public function getLatitude() { 2772 return $this->latitude; 2773 } 2774 public function setLongitude( $longitude) { 2775 $this->longitude = $longitude; 2776 } 2777 public function getLongitude() { 2778 return $this->longitude; 2779 } 2780} 2781 2782class Google_DriveFileIndexableText extends Google_Model { 2783 public $text; 2784 public function setText( $text) { 2785 $this->text = $text; 2786 } 2787 public function getText() { 2788 return $this->text; 2789 } 2790} 2791 2792class Google_DriveFileLabels extends Google_Model { 2793 public $hidden; 2794 public $restricted; 2795 public $starred; 2796 public $trashed; 2797 public $viewed; 2798 public function setHidden( $hidden) { 2799 $this->hidden = $hidden; 2800 } 2801 public function getHidden() { 2802 return $this->hidden; 2803 } 2804 public function setRestricted( $restricted) { 2805 $this->restricted = $restricted; 2806 } 2807 public function getRestricted() { 2808 return $this->restricted; 2809 } 2810 public function setStarred( $starred) { 2811 $this->starred = $starred; 2812 } 2813 public function getStarred() { 2814 return $this->starred; 2815 } 2816 public function setTrashed( $trashed) { 2817 $this->trashed = $trashed; 2818 } 2819 public function getTrashed() { 2820 return $this->trashed; 2821 } 2822 public function setViewed( $viewed) { 2823 $this->viewed = $viewed; 2824 } 2825 public function getViewed() { 2826 return $this->viewed; 2827 } 2828} 2829 2830class Google_DriveFileThumbnail extends Google_Model { 2831 public $image; 2832 public $mimeType; 2833 public function setImage( $image) { 2834 $this->image = $image; 2835 } 2836 public function getImage() { 2837 return $this->image; 2838 } 2839 public function setMimeType( $mimeType) { 2840 $this->mimeType = $mimeType; 2841 } 2842 public function getMimeType() { 2843 return $this->mimeType; 2844 } 2845} 2846 2847class Google_FileList extends Google_Model { 2848 public $etag; 2849 protected $__itemsType = 'Google_DriveFile'; 2850 protected $__itemsDataType = 'array'; 2851 public $items; 2852 public $kind; 2853 public $nextLink; 2854 public $nextPageToken; 2855 public $selfLink; 2856 public function setEtag( $etag) { 2857 $this->etag = $etag; 2858 } 2859 public function getEtag() { 2860 return $this->etag; 2861 } 2862 public function setItems(/* array(Google_DriveFile) */ $items) { 2863 $this->assertIsArray($items, 'Google_DriveFile', __METHOD__); 2864 $this->items = $items; 2865 } 2866 public function getItems() { 2867 return $this->items; 2868 } 2869 public function setKind( $kind) { 2870 $this->kind = $kind; 2871 } 2872 public function getKind() { 2873 return $this->kind; 2874 } 2875 public function setNextLink( $nextLink) { 2876 $this->nextLink = $nextLink; 2877 } 2878 public function getNextLink() { 2879 return $this->nextLink; 2880 } 2881 public function setNextPageToken( $nextPageToken) { 2882 $this->nextPageToken = $nextPageToken; 2883 } 2884 public function getNextPageToken() { 2885 return $this->nextPageToken; 2886 } 2887 public function setSelfLink( $selfLink) { 2888 $this->selfLink = $selfLink; 2889 } 2890 public function getSelfLink() { 2891 return $this->selfLink; 2892 } 2893} 2894 2895class Google_ParentList extends Google_Model { 2896 public $etag; 2897 protected $__itemsType = 'Google_ParentReference'; 2898 protected $__itemsDataType = 'array'; 2899 public $items; 2900 public $kind; 2901 public $selfLink; 2902 public function setEtag( $etag) { 2903 $this->etag = $etag; 2904 } 2905 public function getEtag() { 2906 return $this->etag; 2907 } 2908 public function setItems(/* array(Google_ParentReference) */ $items) { 2909 $this->assertIsArray($items, 'Google_ParentReference', __METHOD__); 2910 $this->items = $items; 2911 } 2912 public function getItems() { 2913 return $this->items; 2914 } 2915 public function setKind( $kind) { 2916 $this->kind = $kind; 2917 } 2918 public function getKind() { 2919 return $this->kind; 2920 } 2921 public function setSelfLink( $selfLink) { 2922 $this->selfLink = $selfLink; 2923 } 2924 public function getSelfLink() { 2925 return $this->selfLink; 2926 } 2927} 2928 2929class Google_ParentReference extends Google_Model { 2930 public $id; 2931 public $isRoot; 2932 public $kind; 2933 public $parentLink; 2934 public $selfLink; 2935 public function setId( $id) { 2936 $this->id = $id; 2937 } 2938 public function getId() { 2939 return $this->id; 2940 } 2941 public function setIsRoot( $isRoot) { 2942 $this->isRoot = $isRoot; 2943 } 2944 public function getIsRoot() { 2945 return $this->isRoot; 2946 } 2947 public function setKind( $kind) { 2948 $this->kind = $kind; 2949 } 2950 public function getKind() { 2951 return $this->kind; 2952 } 2953 public function setParentLink( $parentLink) { 2954 $this->parentLink = $parentLink; 2955 } 2956 public function getParentLink() { 2957 return $this->parentLink; 2958 } 2959 public function setSelfLink( $selfLink) { 2960 $this->selfLink = $selfLink; 2961 } 2962 public function getSelfLink() { 2963 return $this->selfLink; 2964 } 2965} 2966 2967class Google_Permission extends Google_Model { 2968 public $additionalRoles; 2969 public $authKey; 2970 public $etag; 2971 public $id; 2972 public $kind; 2973 public $name; 2974 public $photoLink; 2975 public $role; 2976 public $selfLink; 2977 public $type; 2978 public $value; 2979 public $withLink; 2980 public function setAdditionalRoles(/* array(Google_string) */ $additionalRoles) { 2981 $this->assertIsArray($additionalRoles, 'Google_string', __METHOD__); 2982 $this->additionalRoles = $additionalRoles; 2983 } 2984 public function getAdditionalRoles() { 2985 return $this->additionalRoles; 2986 } 2987 public function setAuthKey( $authKey) { 2988 $this->authKey = $authKey; 2989 } 2990 public function getAuthKey() { 2991 return $this->authKey; 2992 } 2993 public function setEtag( $etag) { 2994 $this->etag = $etag; 2995 } 2996 public function getEtag() { 2997 return $this->etag; 2998 } 2999 public function setId( $id) { 3000 $this->id = $id; 3001 } 3002 public function getId() { 3003 return $this->id; 3004 } 3005 public function setKind( $kind) { 3006 $this->kind = $kind; 3007 } 3008 public function getKind() { 3009 return $this->kind; 3010 } 3011 public function setName( $name) { 3012 $this->name = $name; 3013 } 3014 public function getName() { 3015 return $this->name; 3016 } 3017 public function setPhotoLink( $photoLink) { 3018 $this->photoLink = $photoLink; 3019 } 3020 public function getPhotoLink() { 3021 return $this->photoLink; 3022 } 3023 public function setRole( $role) { 3024 $this->role = $role; 3025 } 3026 public function getRole() { 3027 return $this->role; 3028 } 3029 public function setSelfLink( $selfLink) { 3030 $this->selfLink = $selfLink; 3031 } 3032 public function getSelfLink() { 3033 return $this->selfLink; 3034 } 3035 public function setType( $type) { 3036 $this->type = $type; 3037 } 3038 public function getType() { 3039 return $this->type; 3040 } 3041 public function setValue( $value) { 3042 $this->value = $value; 3043 } 3044 public function getValue() { 3045 return $this->value; 3046 } 3047 public function setWithLink( $withLink) { 3048 $this->withLink = $withLink; 3049 } 3050 public function getWithLink() { 3051 return $this->withLink; 3052 } 3053} 3054 3055class Google_PermissionList extends Google_Model { 3056 public $etag; 3057 protected $__itemsType = 'Google_Permission'; 3058 protected $__itemsDataType = 'array'; 3059 public $items; 3060 public $kind; 3061 public $selfLink; 3062 public function setEtag( $etag) { 3063 $this->etag = $etag; 3064 } 3065 public function getEtag() { 3066 return $this->etag; 3067 } 3068 public function setItems(/* array(Google_Permission) */ $items) { 3069 $this->assertIsArray($items, 'Google_Permission', __METHOD__); 3070 $this->items = $items; 3071 } 3072 public function getItems() { 3073 return $this->items; 3074 } 3075 public function setKind( $kind) { 3076 $this->kind = $kind; 3077 } 3078 public function getKind() { 3079 return $this->kind; 3080 } 3081 public function setSelfLink( $selfLink) { 3082 $this->selfLink = $selfLink; 3083 } 3084 public function getSelfLink() { 3085 return $this->selfLink; 3086 } 3087} 3088 3089class Google_Property extends Google_Model { 3090 public $etag; 3091 public $key; 3092 public $kind; 3093 public $selfLink; 3094 public $value; 3095 public $visibility; 3096 public function setEtag( $etag) { 3097 $this->etag = $etag; 3098 } 3099 public function getEtag() { 3100 return $this->etag; 3101 } 3102 public function setKey( $key) { 3103 $this->key = $key; 3104 } 3105 public function getKey() { 3106 return $this->key; 3107 } 3108 public function setKind( $kind) { 3109 $this->kind = $kind; 3110 } 3111 public function getKind() { 3112 return $this->kind; 3113 } 3114 public function setSelfLink( $selfLink) { 3115 $this->selfLink = $selfLink; 3116 } 3117 public function getSelfLink() { 3118 return $this->selfLink; 3119 } 3120 public function setValue( $value) { 3121 $this->value = $value; 3122 } 3123 public function getValue() { 3124 return $this->value; 3125 } 3126 public function setVisibility( $visibility) { 3127 $this->visibility = $visibility; 3128 } 3129 public function getVisibility() { 3130 return $this->visibility; 3131 } 3132} 3133 3134class Google_PropertyList extends Google_Model { 3135 public $etag; 3136 protected $__itemsType = 'Google_Property'; 3137 protected $__itemsDataType = 'array'; 3138 public $items; 3139 public $kind; 3140 public $selfLink; 3141 public function setEtag( $etag) { 3142 $this->etag = $etag; 3143 } 3144 public function getEtag() { 3145 return $this->etag; 3146 } 3147 public function setItems(/* array(Google_Property) */ $items) { 3148 $this->assertIsArray($items, 'Google_Property', __METHOD__); 3149 $this->items = $items; 3150 } 3151 public function getItems() { 3152 return $this->items; 3153 } 3154 public function setKind( $kind) { 3155 $this->kind = $kind; 3156 } 3157 public function getKind() { 3158 return $this->kind; 3159 } 3160 public function setSelfLink( $selfLink) { 3161 $this->selfLink = $selfLink; 3162 } 3163 public function getSelfLink() { 3164 return $this->selfLink; 3165 } 3166} 3167 3168class Google_Revision extends Google_Model { 3169 public $downloadUrl; 3170 public $etag; 3171 public $exportLinks; 3172 public $fileSize; 3173 public $id; 3174 public $kind; 3175 protected $__lastModifyingUserType = 'Google_User'; 3176 protected $__lastModifyingUserDataType = ''; 3177 public $lastModifyingUser; 3178 public $lastModifyingUserName; 3179 public $md5Checksum; 3180 public $mimeType; 3181 public $modifiedDate; 3182 public $originalFilename; 3183 public $pinned; 3184 public $publishAuto; 3185 public $published; 3186 public $publishedLink; 3187 public $publishedOutsideDomain; 3188 public $selfLink; 3189 public function setDownloadUrl( $downloadUrl) { 3190 $this->downloadUrl = $downloadUrl; 3191 } 3192 public function getDownloadUrl() { 3193 return $this->downloadUrl; 3194 } 3195 public function setEtag( $etag) { 3196 $this->etag = $etag; 3197 } 3198 public function getEtag() { 3199 return $this->etag; 3200 } 3201 public function setExportLinks( $exportLinks) { 3202 $this->exportLinks = $exportLinks; 3203 } 3204 public function getExportLinks() { 3205 return $this->exportLinks; 3206 } 3207 public function setFileSize( $fileSize) { 3208 $this->fileSize = $fileSize; 3209 } 3210 public function getFileSize() { 3211 return $this->fileSize; 3212 } 3213 public function setId( $id) { 3214 $this->id = $id; 3215 } 3216 public function getId() { 3217 return $this->id; 3218 } 3219 public function setKind( $kind) { 3220 $this->kind = $kind; 3221 } 3222 public function getKind() { 3223 return $this->kind; 3224 } 3225 public function setLastModifyingUser(Google_User $lastModifyingUser) { 3226 $this->lastModifyingUser = $lastModifyingUser; 3227 } 3228 public function getLastModifyingUser() { 3229 return $this->lastModifyingUser; 3230 } 3231 public function setLastModifyingUserName( $lastModifyingUserName) { 3232 $this->lastModifyingUserName = $lastModifyingUserName; 3233 } 3234 public function getLastModifyingUserName() { 3235 return $this->lastModifyingUserName; 3236 } 3237 public function setMd5Checksum( $md5Checksum) { 3238 $this->md5Checksum = $md5Checksum; 3239 } 3240 public function getMd5Checksum() { 3241 return $this->md5Checksum; 3242 } 3243 public function setMimeType( $mimeType) { 3244 $this->mimeType = $mimeType; 3245 } 3246 public function getMimeType() { 3247 return $this->mimeType; 3248 } 3249 public function setModifiedDate( $modifiedDate) { 3250 $this->modifiedDate = $modifiedDate; 3251 } 3252 public function getModifiedDate() { 3253 return $this->modifiedDate; 3254 } 3255 public function setOriginalFilename( $originalFilename) { 3256 $this->originalFilename = $originalFilename; 3257 } 3258 public function getOriginalFilename() { 3259 return $this->originalFilename; 3260 } 3261 public function setPinned( $pinned) { 3262 $this->pinned = $pinned; 3263 } 3264 public function getPinned() { 3265 return $this->pinned; 3266 } 3267 public function setPublishAuto( $publishAuto) { 3268 $this->publishAuto = $publishAuto; 3269 } 3270 public function getPublishAuto() { 3271 return $this->publishAuto; 3272 } 3273 public function setPublished( $published) { 3274 $this->published = $published; 3275 } 3276 public function getPublished() { 3277 return $this->published; 3278 } 3279 public function setPublishedLink( $publishedLink) { 3280 $this->publishedLink = $publishedLink; 3281 } 3282 public function getPublishedLink() { 3283 return $this->publishedLink; 3284 } 3285 public function setPublishedOutsideDomain( $publishedOutsideDomain) { 3286 $this->publishedOutsideDomain = $publishedOutsideDomain; 3287 } 3288 public function getPublishedOutsideDomain() { 3289 return $this->publishedOutsideDomain; 3290 } 3291 public function setSelfLink( $selfLink) { 3292 $this->selfLink = $selfLink; 3293 } 3294 public function getSelfLink() { 3295 return $this->selfLink; 3296 } 3297} 3298 3299class Google_RevisionList extends Google_Model { 3300 public $etag; 3301 protected $__itemsType = 'Google_Revision'; 3302 protected $__itemsDataType = 'array'; 3303 public $items; 3304 public $kind; 3305 public $selfLink; 3306 public function setEtag( $etag) { 3307 $this->etag = $etag; 3308 } 3309 public function getEtag() { 3310 return $this->etag; 3311 } 3312 public function setItems(/* array(Google_Revision) */ $items) { 3313 $this->assertIsArray($items, 'Google_Revision', __METHOD__); 3314 $this->items = $items; 3315 } 3316 public function getItems() { 3317 return $this->items; 3318 } 3319 public function setKind( $kind) { 3320 $this->kind = $kind; 3321 } 3322 public function getKind() { 3323 return $this->kind; 3324 } 3325 public function setSelfLink( $selfLink) { 3326 $this->selfLink = $selfLink; 3327 } 3328 public function getSelfLink() { 3329 return $this->selfLink; 3330 } 3331} 3332 3333class Google_User extends Google_Model { 3334 public $displayName; 3335 public $isAuthenticatedUser; 3336 public $kind; 3337 public $permissionId; 3338 protected $__pictureType = 'Google_UserPicture'; 3339 protected $__pictureDataType = ''; 3340 public $picture; 3341 public function setDisplayName( $displayName) { 3342 $this->displayName = $displayName; 3343 } 3344 public function getDisplayName() { 3345 return $this->displayName; 3346 } 3347 public function setIsAuthenticatedUser( $isAuthenticatedUser) { 3348 $this->isAuthenticatedUser = $isAuthenticatedUser; 3349 } 3350 public function getIsAuthenticatedUser() { 3351 return $this->isAuthenticatedUser; 3352 } 3353 public function setKind( $kind) { 3354 $this->kind = $kind; 3355 } 3356 public function getKind() { 3357 return $this->kind; 3358 } 3359 public function setPermissionId( $permissionId) { 3360 $this->permissionId = $permissionId; 3361 } 3362 public function getPermissionId() { 3363 return $this->permissionId; 3364 } 3365 public function setPicture(Google_UserPicture $picture) { 3366 $this->picture = $picture; 3367 } 3368 public function getPicture() { 3369 return $this->picture; 3370 } 3371} 3372 3373class Google_UserPicture extends Google_Model { 3374 public $url; 3375 public function setUrl( $url) { 3376 $this->url = $url; 3377 } 3378 public function getUrl() { 3379 return $this->url; 3380 } 3381} 3382