PluginProbe
ManageWP Worker / 3.9.28
ManageWP Worker v3.9.28
4.9.38 4.9.37 4.9.36 4.9.35 4.9.34 3.8.7 3.8.8 3.9.0 3.9.1 3.9.10 3.9.11 3.9.12 3.9.13 3.9.14 3.9.15 3.9.16 3.9.17 3.9.18 3.9.19 3.9.2 3.9.20 3.9.21 3.9.22 3.9.23 3.9.24 All 73 releases
worker / lib / google-api-client / contrib / Google_DriveService.php

Google_DriveService.php in ManageWP Worker 3.9.28, at lib/google-api-client/contrib/Google_DriveService.php

2,158 lines 83.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16
17 /**
18 * The "files" collection of methods.
19 * Typical usage is:
20 * <code>
21 * $driveService = new Google_DriveService(...);
22 * $files = $driveService->files;
23 * </code>
24 */
25 class Google_FilesServiceResource extends Google_ServiceResource {
26
27
28 /**
29 * Insert a new file. (files.insert)
30 *
31 * @param Google_DriveFile $postBody
32 * @param array $optParams Optional parameters.
33 *
34 * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
35 * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
36 * @opt_param string sourceLanguage The language of the original file to be translated.
37 * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
38 * @opt_param bool pinned Whether to pin the head revision of the uploaded file.
39 * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
40 * @opt_param string timedTextTrackName The timed text track name.
41 * @opt_param string timedTextLanguage The language of the timed text.
42 * @return Google_DriveFile
43 */
44 public function insert(Google_DriveFile $postBody, $optParams = array()) {
45 $params = array('postBody' => $postBody);
46 $params = array_merge($params, $optParams);
47 $data = $this->__call('insert', array($params));
48 if ($this->useObjects()) {
49 return new Google_DriveFile($data);
50 } else {
51 return $data;
52 }
53 }
54 /**
55 * Restores a file from the trash. (files.untrash)
56 *
57 * @param string $fileId The ID of the file to untrash.
58 * @param array $optParams Optional parameters.
59 * @return Google_DriveFile
60 */
61 public function untrash($fileId, $optParams = array()) {
62 $params = array('fileId' => $fileId);
63 $params = array_merge($params, $optParams);
64 $data = $this->__call('untrash', array($params));
65 if ($this->useObjects()) {
66 return new Google_DriveFile($data);
67 } else {
68 return $data;
69 }
70 }
71 /**
72 * Moves a file to the trash. (files.trash)
73 *
74 * @param string $fileId The ID of the file to trash.
75 * @param array $optParams Optional parameters.
76 * @return Google_DriveFile
77 */
78 public function trash($fileId, $optParams = array()) {
79 $params = array('fileId' => $fileId);
80 $params = array_merge($params, $optParams);
81 $data = $this->__call('trash', array($params));
82 if ($this->useObjects()) {
83 return new Google_DriveFile($data);
84 } else {
85 return $data;
86 }
87 }
88 /**
89 * Gets a file's metadata by ID. (files.get)
90 *
91 * @param string $fileId The ID for the file in question.
92 * @param array $optParams Optional parameters.
93 *
94 * @opt_param bool updateViewedDate Whether to update the view date after successfully retrieving the file.
95 * @opt_param string projection This parameter is deprecated and has no function.
96 * @return Google_DriveFile
97 */
98 public function get($fileId, $optParams = array()) {
99 $params = array('fileId' => $fileId);
100 $params = array_merge($params, $optParams);
101 $data = $this->__call('get', array($params));
102 if ($this->useObjects()) {
103 return new Google_DriveFile($data);
104 } else {
105 return $data;
106 }
107 }
108 /**
109 * Lists the user's files. (files.list)
110 *
111 * @param array $optParams Optional parameters.
112 *
113 * @opt_param string q Query string for searching files.
114 * @opt_param string pageToken Page token for files.
115 * @opt_param string projection This parameter is deprecated and has no function.
116 * @opt_param int maxResults Maximum number of files to return.
117 * @return Google_FileList
118 */
119 public function listFiles($optParams = array()) {
120 $params = array();
121 $params = array_merge($params, $optParams);
122 $data = $this->__call('list', array($params));
123 if ($this->useObjects()) {
124 return new Google_FileList($data);
125 } else {
126 return $data;
127 }
128 }
129 /**
130 * Updates file metadata and/or content (files.update)
131 *
132 * @param string $fileId The ID of the file to update.
133 * @param Google_DriveFile $postBody
134 * @param array $optParams Optional parameters.
135 *
136 * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
137 * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
138 * @opt_param bool setModifiedDate Whether to set the modified date with the supplied modified date.
139 * @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file.
140 * @opt_param string sourceLanguage The language of the original file to be translated.
141 * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
142 * @opt_param bool pinned Whether to pin the new revision.
143 * @opt_param bool newRevision Whether a blob upload should create a new revision. If false, the blob data in the current head revision will be replaced.
144 * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
145 * @opt_param string timedTextLanguage The language of the timed text.
146 * @opt_param string timedTextTrackName The timed text track name.
147 * @return Google_DriveFile
148 */
149 public function update($fileId, Google_DriveFile $postBody, $optParams = array()) {
150 $params = array('fileId' => $fileId, 'postBody' => $postBody);
151 $params = array_merge($params, $optParams);
152 $data = $this->__call('update', array($params));
153 if ($this->useObjects()) {
154 return new Google_DriveFile($data);
155 } else {
156 return $data;
157 }
158 }
159 /**
160 * Updates file metadata and/or content. This method supports patch semantics. (files.patch)
161 *
162 * @param string $fileId The ID of the file to update.
163 * @param Google_DriveFile $postBody
164 * @param array $optParams Optional parameters.
165 *
166 * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
167 * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
168 * @opt_param bool setModifiedDate Whether to set the modified date with the supplied modified date.
169 * @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file.
170 * @opt_param string sourceLanguage The language of the original file to be translated.
171 * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
172 * @opt_param bool pinned Whether to pin the new revision.
173 * @opt_param bool newRevision Whether a blob upload should create a new revision. If false, the blob data in the current head revision will be replaced.
174 * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
175 * @opt_param string timedTextLanguage The language of the timed text.
176 * @opt_param string timedTextTrackName The timed text track name.
177 * @return Google_DriveFile
178 */
179 public function patch($fileId, Google_DriveFile $postBody, $optParams = array()) {
180 $params = array('fileId' => $fileId, 'postBody' => $postBody);
181 $params = array_merge($params, $optParams);
182 $data = $this->__call('patch', array($params));
183 if ($this->useObjects()) {
184 return new Google_DriveFile($data);
185 } else {
186 return $data;
187 }
188 }
189 /**
190 * Set the file's updated time to the current server time. (files.touch)
191 *
192 * @param string $fileId The ID of the file to update.
193 * @param array $optParams Optional parameters.
194 * @return Google_DriveFile
195 */
196 public function touch($fileId, $optParams = array()) {
197 $params = array('fileId' => $fileId);
198 $params = array_merge($params, $optParams);
199 $data = $this->__call('touch', array($params));
200 if ($this->useObjects()) {
201 return new Google_DriveFile($data);
202 } else {
203 return $data;
204 }
205 }
206 /**
207 * Creates a copy of the specified file. (files.copy)
208 *
209 * @param string $fileId The ID of the file to copy.
210 * @param Google_DriveFile $postBody
211 * @param array $optParams Optional parameters.
212 *
213 * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
214 * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
215 * @opt_param string sourceLanguage The language of the original file to be translated.
216 * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
217 * @opt_param bool pinned Whether to pin the head revision of the new copy.
218 * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
219 * @opt_param string timedTextLanguage The language of the timed text.
220 * @opt_param string timedTextTrackName The timed text track name.
221 * @return Google_DriveFile
222 */
223 public function copy($fileId, Google_DriveFile $postBody, $optParams = array()) {
224 $params = array('fileId' => $fileId, 'postBody' => $postBody);
225 $params = array_merge($params, $optParams);
226 $data = $this->__call('copy', array($params));
227 if ($this->useObjects()) {
228 return new Google_DriveFile($data);
229 } else {
230 return $data;
231 }
232 }
233 /**
234 * Permanently deletes a file by ID. Skips the trash. (files.delete)
235 *
236 * @param string $fileId The ID of the file to delete.
237 * @param array $optParams Optional parameters.
238 */
239 public function delete($fileId, $optParams = array()) {
240 $params = array('fileId' => $fileId);
241 $params = array_merge($params, $optParams);
242 $data = $this->__call('delete', array($params));
243 return $data;
244 }
245 }
246
247 /**
248 * The "about" collection of methods.
249 * Typical usage is:
250 * <code>
251 * $driveService = new Google_DriveService(...);
252 * $about = $driveService->about;
253 * </code>
254 */
255 class Google_AboutServiceResource extends Google_ServiceResource {
256
257
258 /**
259 * Gets the information about the current user along with Drive API settings (about.get)
260 *
261 * @param array $optParams Optional parameters.
262 *
263 * @opt_param bool includeSubscribed Whether to include subscribed items when calculating the number of remaining change IDs
264 * @opt_param string maxChangeIdCount Maximum number of remaining change IDs to count
265 * @opt_param string startChangeId Change ID to start counting from when calculating number of remaining change IDs
266 * @return Google_About
267 */
268 public function get($optParams = array()) {
269 $params = array();
270 $params = array_merge($params, $optParams);
271 $data = $this->__call('get', array($params));
272 if ($this->useObjects()) {
273 return new Google_About($data);
274 } else {
275 return $data;
276 }
277 }
278 }
279
280 /**
281 * The "apps" collection of methods.
282 * Typical usage is:
283 * <code>
284 * $driveService = new Google_DriveService(...);
285 * $apps = $driveService->apps;
286 * </code>
287 */
288 class Google_AppsServiceResource extends Google_ServiceResource {
289
290
291 /**
292 * Lists a user's apps. (apps.list)
293 *
294 * @param array $optParams Optional parameters.
295 * @return Google_AppList
296 */
297 public function listApps($optParams = array()) {
298 $params = array();
299 $params = array_merge($params, $optParams);
300 $data = $this->__call('list', array($params));
301 if ($this->useObjects()) {
302 return new Google_AppList($data);
303 } else {
304 return $data;
305 }
306 }
307 /**
308 * Gets a specific app. (apps.get)
309 *
310 * @param string $appId The ID of the app.
311 * @param array $optParams Optional parameters.
312 * @return Google_App
313 */
314 public function get($appId, $optParams = array()) {
315 $params = array('appId' => $appId);
316 $params = array_merge($params, $optParams);
317 $data = $this->__call('get', array($params));
318 if ($this->useObjects()) {
319 return new Google_App($data);
320 } else {
321 return $data;
322 }
323 }
324 }
325
326 /**
327 * The "parents" collection of methods.
328 * Typical usage is:
329 * <code>
330 * $driveService = new Google_DriveService(...);
331 * $parents = $driveService->parents;
332 * </code>
333 */
334 class Google_ParentsServiceResource extends Google_ServiceResource {
335
336
337 /**
338 * Adds a parent folder for a file. (parents.insert)
339 *
340 * @param string $fileId The ID of the file.
341 * @param Google_ParentReference $postBody
342 * @param array $optParams Optional parameters.
343 * @return Google_ParentReference
344 */
345 public function insert($fileId, Google_ParentReference $postBody, $optParams = array()) {
346 $params = array('fileId' => $fileId, 'postBody' => $postBody);
347 $params = array_merge($params, $optParams);
348 $data = $this->__call('insert', array($params));
349 if ($this->useObjects()) {
350 return new Google_ParentReference($data);
351 } else {
352 return $data;
353 }
354 }
355 /**
356 * Gets a specific parent reference. (parents.get)
357 *
358 * @param string $fileId The ID of the file.
359 * @param string $parentId The ID of the parent.
360 * @param array $optParams Optional parameters.
361 * @return Google_ParentReference
362 */
363 public function get($fileId, $parentId, $optParams = array()) {
364 $params = array('fileId' => $fileId, 'parentId' => $parentId);
365 $params = array_merge($params, $optParams);
366 $data = $this->__call('get', array($params));
367 if ($this->useObjects()) {
368 return new Google_ParentReference($data);
369 } else {
370 return $data;
371 }
372 }
373 /**
374 * Lists a file's parents. (parents.list)
375 *
376 * @param string $fileId The ID of the file.
377 * @param array $optParams Optional parameters.
378 * @return Google_ParentList
379 */
380 public function listParents($fileId, $optParams = array()) {
381 $params = array('fileId' => $fileId);
382 $params = array_merge($params, $optParams);
383 $data = $this->__call('list', array($params));
384 if ($this->useObjects()) {
385 return new Google_ParentList($data);
386 } else {
387 return $data;
388 }
389 }
390 /**
391 * Removes a parent from a file. (parents.delete)
392 *
393 * @param string $fileId The ID of the file.
394 * @param string $parentId The ID of the parent.
395 * @param array $optParams Optional parameters.
396 */
397 public function delete($fileId, $parentId, $optParams = array()) {
398 $params = array('fileId' => $fileId, 'parentId' => $parentId);
399 $params = array_merge($params, $optParams);
400 $data = $this->__call('delete', array($params));
401 return $data;
402 }
403 }
404
405 /**
406 * The "revisions" collection of methods.
407 * Typical usage is:
408 * <code>
409 * $driveService = new Google_DriveService(...);
410 * $revisions = $driveService->revisions;
411 * </code>
412 */
413 class Google_RevisionsServiceResource extends Google_ServiceResource {
414
415
416 /**
417 * Updates a revision. This method supports patch semantics. (revisions.patch)
418 *
419 * @param string $fileId The ID for the file.
420 * @param string $revisionId The ID for the revision.
421 * @param Google_Revision $postBody
422 * @param array $optParams Optional parameters.
423 * @return Google_Revision
424 */
425 public function patch($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) {
426 $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
427 $params = array_merge($params, $optParams);
428 $data = $this->__call('patch', array($params));
429 if ($this->useObjects()) {
430 return new Google_Revision($data);
431 } else {
432 return $data;
433 }
434 }
435 /**
436 * Gets a specific revision. (revisions.get)
437 *
438 * @param string $fileId The ID of the file.
439 * @param string $revisionId The ID of the revision.
440 * @param array $optParams Optional parameters.
441 * @return Google_Revision
442 */
443 public function get($fileId, $revisionId, $optParams = array()) {
444 $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
445 $params = array_merge($params, $optParams);
446 $data = $this->__call('get', array($params));
447 if ($this->useObjects()) {
448 return new Google_Revision($data);
449 } else {
450 return $data;
451 }
452 }
453 /**
454 * Lists a file's revisions. (revisions.list)
455 *
456 * @param string $fileId The ID of the file.
457 * @param array $optParams Optional parameters.
458 * @return Google_RevisionList
459 */
460 public function listRevisions($fileId, $optParams = array()) {
461 $params = array('fileId' => $fileId);
462 $params = array_merge($params, $optParams);
463 $data = $this->__call('list', array($params));
464 if ($this->useObjects()) {
465 return new Google_RevisionList($data);
466 } else {
467 return $data;
468 }
469 }
470 /**
471 * Updates a revision. (revisions.update)
472 *
473 * @param string $fileId The ID for the file.
474 * @param string $revisionId The ID for the revision.
475 * @param Google_Revision $postBody
476 * @param array $optParams Optional parameters.
477 * @return Google_Revision
478 */
479 public function update($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) {
480 $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
481 $params = array_merge($params, $optParams);
482 $data = $this->__call('update', array($params));
483 if ($this->useObjects()) {
484 return new Google_Revision($data);
485 } else {
486 return $data;
487 }
488 }
489 /**
490 * Removes a revision. (revisions.delete)
491 *
492 * @param string $fileId The ID of the file.
493 * @param string $revisionId The ID of the revision.
494 * @param array $optParams Optional parameters.
495 */
496 public function delete($fileId, $revisionId, $optParams = array()) {
497 $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
498 $params = array_merge($params, $optParams);
499 $data = $this->__call('delete', array($params));
500 return $data;
501 }
502 }
503
504 /**
505 * The "changes" collection of methods.
506 * Typical usage is:
507 * <code>
508 * $driveService = new Google_DriveService(...);
509 * $changes = $driveService->changes;
510 * </code>
511 */
512 class Google_ChangesServiceResource extends Google_ServiceResource {
513
514
515 /**
516 * Lists the changes for a user. (changes.list)
517 *
518 * @param array $optParams Optional parameters.
519 *
520 * @opt_param bool includeSubscribed Whether to include subscribed items.
521 * @opt_param string startChangeId Change ID to start listing changes from.
522 * @opt_param bool includeDeleted Whether to include deleted items.
523 * @opt_param int maxResults Maximum number of changes to return.
524 * @opt_param string pageToken Page token for changes.
525 * @return Google_ChangeList
526 */
527 public function listChanges($optParams = array()) {
528 $params = array();
529 $params = array_merge($params, $optParams);
530 $data = $this->__call('list', array($params));
531 if ($this->useObjects()) {
532 return new Google_ChangeList($data);
533 } else {
534 return $data;
535 }
536 }
537 /**
538 * Gets a specific change. (changes.get)
539 *
540 * @param string $changeId The ID of the change.
541 * @param array $optParams Optional parameters.
542 * @return Google_Change
543 */
544 public function get($changeId, $optParams = array()) {
545 $params = array('changeId' => $changeId);
546 $params = array_merge($params, $optParams);
547 $data = $this->__call('get', array($params));
548 if ($this->useObjects()) {
549 return new Google_Change($data);
550 } else {
551 return $data;
552 }
553 }
554 }
555
556 /**
557 * The "children" collection of methods.
558 * Typical usage is:
559 * <code>
560 * $driveService = new Google_DriveService(...);
561 * $children = $driveService->children;
562 * </code>
563 */
564 class Google_ChildrenServiceResource extends Google_ServiceResource {
565
566
567 /**
568 * Inserts a file into a folder. (children.insert)
569 *
570 * @param string $folderId The ID of the folder.
571 * @param Google_ChildReference $postBody
572 * @param array $optParams Optional parameters.
573 * @return Google_ChildReference
574 */
575 public function insert($folderId, Google_ChildReference $postBody, $optParams = array()) {
576 $params = array('folderId' => $folderId, 'postBody' => $postBody);
577 $params = array_merge($params, $optParams);
578 $data = $this->__call('insert', array($params));
579 if ($this->useObjects()) {
580 return new Google_ChildReference($data);
581 } else {
582 return $data;
583 }
584 }
585 /**
586 * Gets a specific child reference. (children.get)
587 *
588 * @param string $folderId The ID of the folder.
589 * @param string $childId The ID of the child.
590 * @param array $optParams Optional parameters.
591 * @return Google_ChildReference
592 */
593 public function get($folderId, $childId, $optParams = array()) {
594 $params = array('folderId' => $folderId, 'childId' => $childId);
595 $params = array_merge($params, $optParams);
596 $data = $this->__call('get', array($params));
597 if ($this->useObjects()) {
598 return new Google_ChildReference($data);
599 } else {
600 return $data;
601 }
602 }
603 /**
604 * Lists a folder's children. (children.list)
605 *
606 * @param string $folderId The ID of the folder.
607 * @param array $optParams Optional parameters.
608 *
609 * @opt_param string q Query string for searching children.
610 * @opt_param string pageToken Page token for children.
611 * @opt_param int maxResults Maximum number of children to return.
612 * @return Google_ChildList
613 */
614 public function listChildren($folderId, $optParams = array()) {
615 $params = array('folderId' => $folderId);
616 $params = array_merge($params, $optParams);
617 $data = $this->__call('list', array($params));
618 if ($this->useObjects()) {
619 return new Google_ChildList($data);
620 } else {
621 return $data;
622 }
623 }
624 /**
625 * Removes a child from a folder. (children.delete)
626 *
627 * @param string $folderId The ID of the folder.
628 * @param string $childId The ID of the child.
629 * @param array $optParams Optional parameters.
630 */
631 public function delete($folderId, $childId, $optParams = array()) {
632 $params = array('folderId' => $folderId, 'childId' => $childId);
633 $params = array_merge($params, $optParams);
634 $data = $this->__call('delete', array($params));
635 return $data;
636 }
637 }
638
639 /**
640 * The "permissions" collection of methods.
641 * Typical usage is:
642 * <code>
643 * $driveService = new Google_DriveService(...);
644 * $permissions = $driveService->permissions;
645 * </code>
646 */
647 class Google_PermissionsServiceResource extends Google_ServiceResource {
648
649
650 /**
651 * Inserts a permission for a file. (permissions.insert)
652 *
653 * @param string $fileId The ID for the file.
654 * @param Google_Permission $postBody
655 * @param array $optParams Optional parameters.
656 *
657 * @opt_param bool sendNotificationEmails Whether to send notification emails.
658 * @return Google_Permission
659 */
660 public function insert($fileId, Google_Permission $postBody, $optParams = array()) {
661 $params = array('fileId' => $fileId, 'postBody' => $postBody);
662 $params = array_merge($params, $optParams);
663 $data = $this->__call('insert', array($params));
664 if ($this->useObjects()) {
665 return new Google_Permission($data);
666 } else {
667 return $data;
668 }
669 }
670 /**
671 * Gets a permission by ID. (permissions.get)
672 *
673 * @param string $fileId The ID for the file.
674 * @param string $permissionId The ID for the permission.
675 * @param array $optParams Optional parameters.
676 * @return Google_Permission
677 */
678 public function get($fileId, $permissionId, $optParams = array()) {
679 $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
680 $params = array_merge($params, $optParams);
681 $data = $this->__call('get', array($params));
682 if ($this->useObjects()) {
683 return new Google_Permission($data);
684 } else {
685 return $data;
686 }
687 }
688 /**
689 * Lists a file's permissions. (permissions.list)
690 *
691 * @param string $fileId The ID for the file.
692 * @param array $optParams Optional parameters.
693 * @return Google_PermissionList
694 */
695 public function listPermissions($fileId, $optParams = array()) {
696 $params = array('fileId' => $fileId);
697 $params = array_merge($params, $optParams);
698 $data = $this->__call('list', array($params));
699 if ($this->useObjects()) {
700 return new Google_PermissionList($data);
701 } else {
702 return $data;
703 }
704 }
705 /**
706 * Updates a permission. (permissions.update)
707 *
708 * @param string $fileId The ID for the file.
709 * @param string $permissionId The ID for the permission.
710 * @param Google_Permission $postBody
711 * @param array $optParams Optional parameters.
712 * @return Google_Permission
713 */
714 public function update($fileId, $permissionId, Google_Permission $postBody, $optParams = array()) {
715 $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
716 $params = array_merge($params, $optParams);
717 $data = $this->__call('update', array($params));
718 if ($this->useObjects()) {
719 return new Google_Permission($data);
720 } else {
721 return $data;
722 }
723 }
724 /**
725 * Updates a permission. This method supports patch semantics. (permissions.patch)
726 *
727 * @param string $fileId The ID for the file.
728 * @param string $permissionId The ID for the permission.
729 * @param Google_Permission $postBody
730 * @param array $optParams Optional parameters.
731 * @return Google_Permission
732 */
733 public function patch($fileId, $permissionId, Google_Permission $postBody, $optParams = array()) {
734 $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
735 $params = array_merge($params, $optParams);
736 $data = $this->__call('patch', array($params));
737 if ($this->useObjects()) {
738 return new Google_Permission($data);
739 } else {
740 return $data;
741 }
742 }
743 /**
744 * Deletes a permission from a file. (permissions.delete)
745 *
746 * @param string $fileId The ID for the file.
747 * @param string $permissionId The ID for the permission.
748 * @param array $optParams Optional parameters.
749 */
750 public function delete($fileId, $permissionId, $optParams = array()) {
751 $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
752 $params = array_merge($params, $optParams);
753 $data = $this->__call('delete', array($params));
754 return $data;
755 }
756 }
757
758 /**
759 * Service definition for Google_Drive (v2).
760 *
761 * <p>
762 * The API to interact with Drive.
763 * </p>
764 *
765 * <p>
766 * For more information about this service, see the
767 * <a href="https://developers.google.com/drive/" target="_blank">API Documentation</a>
768 * </p>
769 *
770 * @author Google, Inc.
771 */
772 class Google_DriveService extends Google_Service {
773 public $files;
774 public $about;
775 public $apps;
776 public $parents;
777 public $revisions;
778 public $changes;
779 public $children;
780 public $permissions;
781 /**
782 * Constructs the internal representation of the Drive service.
783 *
784 * @param Google_Client $client
785 */
786 public function __construct(Google_Client $client) {
787 $this->servicePath = 'drive/v2/';
788 $this->version = 'v2';
789 $this->serviceName = 'drive';
790
791 $client->addService($this->serviceName, $this->version);
792 $this->files = new Google_FilesServiceResource($this, $this->serviceName, 'files', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}}, "supportsMediaUpload": true, "request": {"$ref": "File"}, "mediaUpload": {"maxSize": "10GB", "protocols": {"simple": {"path": "/upload/drive/v2/files", "multipart": true}, "resumable": {"path": "/resumable/upload/drive/v2/files", "multipart": true}}, "accept": ["*/*"]}, "response": {"$ref": "File"}, "httpMethod": "POST", "path": "files", "id": "drive.files.insert"}, "untrash": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.untrash", "httpMethod": "POST", "path": "files/{fileId}/untrash", "response": {"$ref": "File"}}, "trash": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.trash", "httpMethod": "POST", "path": "files/{fileId}/trash", "response": {"$ref": "File"}}, "get": {"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"], "parameters": {"updateViewedDate": {"default": "false", "type": "boolean", "location": "query"}, "projection": {"enum": ["BASIC", "FULL"], "type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.get", "httpMethod": "GET", "path": "files/{fileId}", "response": {"$ref": "File"}}, "list": {"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"], "parameters": {"q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projection": {"enum": ["BASIC", "FULL"], "type": "string", "location": "query"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}}, "response": {"$ref": "FileList"}, "httpMethod": "GET", "path": "files", "id": "drive.files.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "setModifiedDate": {"default": "false", "type": "boolean", "location": "query"}, "updateViewedDate": {"default": "true", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "newRevision": {"default": "true", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "supportsMediaUpload": true, "request": {"$ref": "File"}, "mediaUpload": {"maxSize": "10GB", "protocols": {"simple": {"path": "/upload/drive/v2/files/{fileId}", "multipart": true}, "resumable": {"path": "/resumable/upload/drive/v2/files/{fileId}", "multipart": true}}, "accept": ["*/*"]}, "response": {"$ref": "File"}, "httpMethod": "PUT", "path": "files/{fileId}", "id": "drive.files.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "setModifiedDate": {"default": "false", "type": "boolean", "location": "query"}, "updateViewedDate": {"default": "true", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "newRevision": {"default": "true", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "httpMethod": "PATCH", "path": "files/{fileId}", "id": "drive.files.patch"}, "touch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.touch", "httpMethod": "POST", "path": "files/{fileId}/touch", "response": {"$ref": "File"}}, "copy": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "httpMethod": "POST", "path": "files/{fileId}/copy", "id": "drive.files.copy"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}", "id": "drive.files.delete", "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
793 $this->about = new Google_AboutServiceResource($this, $this->serviceName, 'about', json_decode('{"methods": {"get": {"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"], "parameters": {"includeSubscribed": {"default": "true", "type": "boolean", "location": "query"}, "maxChangeIdCount": {"default": "1", "type": "string", "location": "query", "format": "int64"}, "startChangeId": {"type": "string", "location": "query", "format": "int64"}}, "response": {"$ref": "About"}, "httpMethod": "GET", "path": "about", "id": "drive.about.get"}}}', true));
794 $this->apps = new Google_AppsServiceResource($this, $this->serviceName, 'apps', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/drive.apps.readonly"], "path": "apps", "response": {"$ref": "AppList"}, "id": "drive.apps.list", "httpMethod": "GET"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive.apps.readonly"], "parameters": {"appId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.apps.get", "httpMethod": "GET", "path": "apps/{appId}", "response": {"$ref": "App"}}}}', true));
795 $this->parents = new Google_ParentsServiceResource($this, $this->serviceName, 'parents', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "ParentReference"}, "response": {"$ref": "ParentReference"}, "httpMethod": "POST", "path": "files/{fileId}/parents", "id": "drive.parents.insert"}, "get": {"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"], "parameters": {"parentId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.parents.get", "httpMethod": "GET", "path": "files/{fileId}/parents/{parentId}", "response": {"$ref": "ParentReference"}}, "list": {"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"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.parents.list", "httpMethod": "GET", "path": "files/{fileId}/parents", "response": {"$ref": "ParentList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/parents/{parentId}", "id": "drive.parents.delete", "parameters": {"parentId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
796 $this->revisions = new Google_RevisionsServiceResource($this, $this->serviceName, 'revisions', json_decode('{"methods": {"patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "httpMethod": "PATCH", "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.patch"}, "get": {"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"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.revisions.get", "httpMethod": "GET", "path": "files/{fileId}/revisions/{revisionId}", "response": {"$ref": "Revision"}}, "list": {"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"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.revisions.list", "httpMethod": "GET", "path": "files/{fileId}/revisions", "response": {"$ref": "RevisionList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "httpMethod": "PUT", "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.update"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.delete", "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
797 $this->changes = new Google_ChangesServiceResource($this, $this->serviceName, 'changes', json_decode('{"methods": {"list": {"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"], "parameters": {"includeSubscribed": {"default": "true", "type": "boolean", "location": "query"}, "startChangeId": {"type": "string", "location": "query", "format": "int64"}, "includeDeleted": {"default": "true", "type": "boolean", "location": "query"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "ChangeList"}, "httpMethod": "GET", "path": "changes", "id": "drive.changes.list"}, "get": {"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"], "parameters": {"changeId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.changes.get", "httpMethod": "GET", "path": "changes/{changeId}", "response": {"$ref": "Change"}}}}', true));
798 $this->children = new Google_ChildrenServiceResource($this, $this->serviceName, 'children', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "ChildReference"}, "response": {"$ref": "ChildReference"}, "httpMethod": "POST", "path": "files/{folderId}/children", "id": "drive.children.insert"}, "get": {"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"], "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}, "childId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.children.get", "httpMethod": "GET", "path": "files/{folderId}/children/{childId}", "response": {"$ref": "ChildReference"}}, "list": {"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"], "parameters": {"q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "folderId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}}, "id": "drive.children.list", "httpMethod": "GET", "path": "files/{folderId}/children", "response": {"$ref": "ChildList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{folderId}/children/{childId}", "id": "drive.children.delete", "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}, "childId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
799 $this->permissions = new Google_PermissionsServiceResource($this, $this->serviceName, 'permissions', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"sendNotificationEmails": {"default": "true", "type": "boolean", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "POST", "path": "files/{fileId}/permissions", "id": "drive.permissions.insert"}, "get": {"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"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.permissions.get", "httpMethod": "GET", "path": "files/{fileId}/permissions/{permissionId}", "response": {"$ref": "Permission"}}, "list": {"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"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.permissions.list", "httpMethod": "GET", "path": "files/{fileId}/permissions", "response": {"$ref": "PermissionList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "PUT", "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "PATCH", "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.delete", "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
800
801 }
802 }
803
804 class Google_About extends Google_Model {
805 public $kind;
806 protected $__featuresType = 'Google_AboutFeatures';
807 protected $__featuresDataType = 'array';
808 public $features;
809 public $quotaBytesUsed;
810 public $permissionId;
811 protected $__maxUploadSizesType = 'Google_AboutMaxUploadSizes';
812 protected $__maxUploadSizesDataType = 'array';
813 public $maxUploadSizes;
814 public $name;
815 public $remainingChangeIds;
816 protected $__additionalRoleInfoType = 'Google_AboutAdditionalRoleInfo';
817 protected $__additionalRoleInfoDataType = 'array';
818 public $additionalRoleInfo;
819 public $etag;
820 protected $__importFormatsType = 'Google_AboutImportFormats';
821 protected $__importFormatsDataType = 'array';
822 public $importFormats;
823 public $quotaBytesTotal;
824 public $rootFolderId;
825 public $largestChangeId;
826 public $quotaBytesUsedInTrash;
827 protected $__exportFormatsType = 'Google_AboutExportFormats';
828 protected $__exportFormatsDataType = 'array';
829 public $exportFormats;
830 public $domainSharingPolicy;
831 public $selfLink;
832 public $isCurrentAppInstalled;
833 public function setKind($kind) {
834 $this->kind = $kind;
835 }
836 public function getKind() {
837 return $this->kind;
838 }
839 public function setFeatures(/* array(Google_AboutFeatures) */ $features) {
840 $this->assertIsArray($features, 'Google_AboutFeatures', __METHOD__);
841 $this->features = $features;
842 }
843 public function getFeatures() {
844 return $this->features;
845 }
846 public function setQuotaBytesUsed($quotaBytesUsed) {
847 $this->quotaBytesUsed = $quotaBytesUsed;
848 }
849 public function getQuotaBytesUsed() {
850 return $this->quotaBytesUsed;
851 }
852 public function setPermissionId($permissionId) {
853 $this->permissionId = $permissionId;
854 }
855 public function getPermissionId() {
856 return $this->permissionId;
857 }
858 public function setMaxUploadSizes(/* array(Google_AboutMaxUploadSizes) */ $maxUploadSizes) {
859 $this->assertIsArray($maxUploadSizes, 'Google_AboutMaxUploadSizes', __METHOD__);
860 $this->maxUploadSizes = $maxUploadSizes;
861 }
862 public function getMaxUploadSizes() {
863 return $this->maxUploadSizes;
864 }
865 public function setName($name) {
866 $this->name = $name;
867 }
868 public function getName() {
869 return $this->name;
870 }
871 public function setRemainingChangeIds($remainingChangeIds) {
872 $this->remainingChangeIds = $remainingChangeIds;
873 }
874 public function getRemainingChangeIds() {
875 return $this->remainingChangeIds;
876 }
877 public function setAdditionalRoleInfo(/* array(Google_AboutAdditionalRoleInfo) */ $additionalRoleInfo) {
878 $this->assertIsArray($additionalRoleInfo, 'Google_AboutAdditionalRoleInfo', __METHOD__);
879 $this->additionalRoleInfo = $additionalRoleInfo;
880 }
881 public function getAdditionalRoleInfo() {
882 return $this->additionalRoleInfo;
883 }
884 public function setEtag($etag) {
885 $this->etag = $etag;
886 }
887 public function getEtag() {
888 return $this->etag;
889 }
890 public function setImportFormats(/* array(Google_AboutImportFormats) */ $importFormats) {
891 $this->assertIsArray($importFormats, 'Google_AboutImportFormats', __METHOD__);
892 $this->importFormats = $importFormats;
893 }
894 public function getImportFormats() {
895 return $this->importFormats;
896 }
897 public function setQuotaBytesTotal($quotaBytesTotal) {
898 $this->quotaBytesTotal = $quotaBytesTotal;
899 }
900 public function getQuotaBytesTotal() {
901 return $this->quotaBytesTotal;
902 }
903 public function setRootFolderId($rootFolderId) {
904 $this->rootFolderId = $rootFolderId;
905 }
906 public function getRootFolderId() {
907 return $this->rootFolderId;
908 }
909 public function setLargestChangeId($largestChangeId) {
910 $this->largestChangeId = $largestChangeId;
911 }
912 public function getLargestChangeId() {
913 return $this->largestChangeId;
914 }
915 public function setQuotaBytesUsedInTrash($quotaBytesUsedInTrash) {
916 $this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash;
917 }
918 public function getQuotaBytesUsedInTrash() {
919 return $this->quotaBytesUsedInTrash;
920 }
921 public function setExportFormats(/* array(Google_AboutExportFormats) */ $exportFormats) {
922 $this->assertIsArray($exportFormats, 'Google_AboutExportFormats', __METHOD__);
923 $this->exportFormats = $exportFormats;
924 }
925 public function getExportFormats() {
926 return $this->exportFormats;
927 }
928 public function setDomainSharingPolicy($domainSharingPolicy) {
929 $this->domainSharingPolicy = $domainSharingPolicy;
930 }
931 public function getDomainSharingPolicy() {
932 return $this->domainSharingPolicy;
933 }
934 public function setSelfLink($selfLink) {
935 $this->selfLink = $selfLink;
936 }
937 public function getSelfLink() {
938 return $this->selfLink;
939 }
940 public function setIsCurrentAppInstalled($isCurrentAppInstalled) {
941 $this->isCurrentAppInstalled = $isCurrentAppInstalled;
942 }
943 public function getIsCurrentAppInstalled() {
944 return $this->isCurrentAppInstalled;
945 }
946 }
947
948 class Google_AboutAdditionalRoleInfo extends Google_Model {
949 protected $__roleSetsType = 'Google_AboutAdditionalRoleInfoRoleSets';
950 protected $__roleSetsDataType = 'array';
951 public $roleSets;
952 public $type;
953 public function setRoleSets(/* array(Google_AboutAdditionalRoleInfoRoleSets) */ $roleSets) {
954 $this->assertIsArray($roleSets, 'Google_AboutAdditionalRoleInfoRoleSets', __METHOD__);
955 $this->roleSets = $roleSets;
956 }
957 public function getRoleSets() {
958 return $this->roleSets;
959 }
960 public function setType($type) {
961 $this->type = $type;
962 }
963 public function getType() {
964 return $this->type;
965 }
966 }
967
968 class Google_AboutAdditionalRoleInfoRoleSets extends Google_Model {
969 public $primaryRole;
970 public $additionalRoles;
971 public function setPrimaryRole($primaryRole) {
972 $this->primaryRole = $primaryRole;
973 }
974 public function getPrimaryRole() {
975 return $this->primaryRole;
976 }
977 public function setAdditionalRoles(/* array(Google_string) */ $additionalRoles) {
978 $this->assertIsArray($additionalRoles, 'Google_string', __METHOD__);
979 $this->additionalRoles = $additionalRoles;
980 }
981 public function getAdditionalRoles() {
982 return $this->additionalRoles;
983 }
984 }
985
986 class Google_AboutExportFormats extends Google_Model {
987 public $source;
988 public $targets;
989 public function setSource($source) {
990 $this->source = $source;
991 }
992 public function getSource() {
993 return $this->source;
994 }
995 public function setTargets(/* array(Google_string) */ $targets) {
996 $this->assertIsArray($targets, 'Google_string', __METHOD__);
997 $this->targets = $targets;
998 }
999 public function getTargets() {
1000 return $this->targets;
1001 }
1002 }
1003
1004 class Google_AboutFeatures extends Google_Model {
1005 public $featureName;
1006 public $featureRate;
1007 public function setFeatureName($featureName) {
1008 $this->featureName = $featureName;
1009 }
1010 public function getFeatureName() {
1011 return $this->featureName;
1012 }
1013 public function setFeatureRate($featureRate) {
1014 $this->featureRate = $featureRate;
1015 }
1016 public function getFeatureRate() {
1017 return $this->featureRate;
1018 }
1019 }
1020
1021 class Google_AboutImportFormats extends Google_Model {
1022 public $source;
1023 public $targets;
1024 public function setSource($source) {
1025 $this->source = $source;
1026 }
1027 public function getSource() {
1028 return $this->source;
1029 }
1030 public function setTargets(/* array(Google_string) */ $targets) {
1031 $this->assertIsArray($targets, 'Google_string', __METHOD__);
1032 $this->targets = $targets;
1033 }
1034 public function getTargets() {
1035 return $this->targets;
1036 }
1037 }
1038
1039 class Google_AboutMaxUploadSizes extends Google_Model {
1040 public $type;
1041 public $size;
1042 public function setType($type) {
1043 $this->type = $type;
1044 }
1045 public function getType() {
1046 return $this->type;
1047 }
1048 public function setSize($size) {
1049 $this->size = $size;
1050 }
1051 public function getSize() {
1052 return $this->size;
1053 }
1054 }
1055
1056 class Google_App extends Google_Model {
1057 public $kind;
1058 public $primaryFileExtensions;
1059 public $useByDefault;
1060 public $name;
1061 protected $__iconsType = 'Google_AppIcons';
1062 protected $__iconsDataType = 'array';
1063 public $icons;
1064 public $secondaryFileExtensions;
1065 public $installed;
1066 public $productUrl;
1067 public $secondaryMimeTypes;
1068 public $authorized;
1069 public $supportsCreate;
1070 public $supportsImport;
1071 public $primaryMimeTypes;
1072 public $id;
1073 public $objectType;
1074 public function setKind($kind) {
1075 $this->kind = $kind;
1076 }
1077 public function getKind() {
1078 return $this->kind;
1079 }
1080 public function setPrimaryFileExtensions(/* array(Google_string) */ $primaryFileExtensions) {
1081 $this->assertIsArray($primaryFileExtensions, 'Google_string', __METHOD__);
1082 $this->primaryFileExtensions = $primaryFileExtensions;
1083 }
1084 public function getPrimaryFileExtensions() {
1085 return $this->primaryFileExtensions;
1086 }
1087 public function setUseByDefault($useByDefault) {
1088 $this->useByDefault = $useByDefault;
1089 }
1090 public function getUseByDefault() {
1091 return $this->useByDefault;
1092 }
1093 public function setName($name) {
1094 $this->name = $name;
1095 }
1096 public function getName() {
1097 return $this->name;
1098 }
1099 public function setIcons(/* array(Google_AppIcons) */ $icons) {
1100 $this->assertIsArray($icons, 'Google_AppIcons', __METHOD__);
1101 $this->icons = $icons;
1102 }
1103 public function getIcons() {
1104 return $this->icons;
1105 }
1106 public function setSecondaryFileExtensions(/* array(Google_string) */ $secondaryFileExtensions) {
1107 $this->assertIsArray($secondaryFileExtensions, 'Google_string', __METHOD__);
1108 $this->secondaryFileExtensions = $secondaryFileExtensions;
1109 }
1110 public function getSecondaryFileExtensions() {
1111 return $this->secondaryFileExtensions;
1112 }
1113 public function setInstalled($installed) {
1114 $this->installed = $installed;
1115 }
1116 public function getInstalled() {
1117 return $this->installed;
1118 }
1119 public function setProductUrl($productUrl) {
1120 $this->productUrl = $productUrl;
1121 }
1122 public function getProductUrl() {
1123 return $this->productUrl;
1124 }
1125 public function setSecondaryMimeTypes(/* array(Google_string) */ $secondaryMimeTypes) {
1126 $this->assertIsArray($secondaryMimeTypes, 'Google_string', __METHOD__);
1127 $this->secondaryMimeTypes = $secondaryMimeTypes;
1128 }
1129 public function getSecondaryMimeTypes() {
1130 return $this->secondaryMimeTypes;
1131 }
1132 public function setAuthorized($authorized) {
1133 $this->authorized = $authorized;
1134 }
1135 public function getAuthorized() {
1136 return $this->authorized;
1137 }
1138 public function setSupportsCreate($supportsCreate) {
1139 $this->supportsCreate = $supportsCreate;
1140 }
1141 public function getSupportsCreate() {
1142 return $this->supportsCreate;
1143 }
1144 public function setSupportsImport($supportsImport) {
1145 $this->supportsImport = $supportsImport;
1146 }
1147 public function getSupportsImport() {
1148 return $this->supportsImport;
1149 }
1150 public function setPrimaryMimeTypes(/* array(Google_string) */ $primaryMimeTypes) {
1151 $this->assertIsArray($primaryMimeTypes, 'Google_string', __METHOD__);
1152 $this->primaryMimeTypes = $primaryMimeTypes;
1153 }
1154 public function getPrimaryMimeTypes() {
1155 return $this->primaryMimeTypes;
1156 }
1157 public function setId($id) {
1158 $this->id = $id;
1159 }
1160 public function getId() {
1161 return $this->id;
1162 }
1163 public function setObjectType($objectType) {
1164 $this->objectType = $objectType;
1165 }
1166 public function getObjectType() {
1167 return $this->objectType;
1168 }
1169 }
1170
1171 class Google_AppIcons extends Google_Model {
1172 public $category;
1173 public $iconUrl;
1174 public $size;
1175 public function setCategory($category) {
1176 $this->category = $category;
1177 }
1178 public function getCategory() {
1179 return $this->category;
1180 }
1181 public function setIconUrl($iconUrl) {
1182 $this->iconUrl = $iconUrl;
1183 }
1184 public function getIconUrl() {
1185 return $this->iconUrl;
1186 }
1187 public function setSize($size) {
1188 $this->size = $size;
1189 }
1190 public function getSize() {
1191 return $this->size;
1192 }
1193 }
1194
1195 class Google_AppList extends Google_Model {
1196 protected $__itemsType = 'Google_App';
1197 protected $__itemsDataType = 'array';
1198 public $items;
1199 public $kind;
1200 public $etag;
1201 public $selfLink;
1202 public function setItems(/* array(Google_App) */ $items) {
1203 $this->assertIsArray($items, 'Google_App', __METHOD__);
1204 $this->items = $items;
1205 }
1206 public function getItems() {
1207 return $this->items;
1208 }
1209 public function setKind($kind) {
1210 $this->kind = $kind;
1211 }
1212 public function getKind() {
1213 return $this->kind;
1214 }
1215 public function setEtag($etag) {
1216 $this->etag = $etag;
1217 }
1218 public function getEtag() {
1219 return $this->etag;
1220 }
1221 public function setSelfLink($selfLink) {
1222 $this->selfLink = $selfLink;
1223 }
1224 public function getSelfLink() {
1225 return $this->selfLink;
1226 }
1227 }
1228
1229 class Google_Change extends Google_Model {
1230 public $kind;
1231 public $deleted;
1232 protected $__fileType = 'Google_DriveFile';
1233 protected $__fileDataType = '';
1234 public $file;
1235 public $id;
1236 public $selfLink;
1237 public $fileId;
1238 public function setKind($kind) {
1239 $this->kind = $kind;
1240 }
1241 public function getKind() {
1242 return $this->kind;
1243 }
1244 public function setDeleted($deleted) {
1245 $this->deleted = $deleted;
1246 }
1247 public function getDeleted() {
1248 return $this->deleted;
1249 }
1250 public function setFile(Google_DriveFile $file) {
1251 $this->file = $file;
1252 }
1253 public function getFile() {
1254 return $this->file;
1255 }
1256 public function setId($id) {
1257 $this->id = $id;
1258 }
1259 public function getId() {
1260 return $this->id;
1261 }
1262 public function setSelfLink($selfLink) {
1263 $this->selfLink = $selfLink;
1264 }
1265 public function getSelfLink() {
1266 return $this->selfLink;
1267 }
1268 public function setFileId($fileId) {
1269 $this->fileId = $fileId;
1270 }
1271 public function getFileId() {
1272 return $this->fileId;
1273 }
1274 }
1275
1276 class Google_ChangeList extends Google_Model {
1277 public $nextPageToken;
1278 public $kind;
1279 protected $__itemsType = 'Google_Change';
1280 protected $__itemsDataType = 'array';
1281 public $items;
1282 public $nextLink;
1283 public $etag;
1284 public $largestChangeId;
1285 public $selfLink;
1286 public function setNextPageToken($nextPageToken) {
1287 $this->nextPageToken = $nextPageToken;
1288 }
1289 public function getNextPageToken() {
1290 return $this->nextPageToken;
1291 }
1292 public function setKind($kind) {
1293 $this->kind = $kind;
1294 }
1295 public function getKind() {
1296 return $this->kind;
1297 }
1298 public function setItems(/* array(Google_Change) */ $items) {
1299 $this->assertIsArray($items, 'Google_Change', __METHOD__);
1300 $this->items = $items;
1301 }
1302 public function getItems() {
1303 return $this->items;
1304 }
1305 public function setNextLink($nextLink) {
1306 $this->nextLink = $nextLink;
1307 }
1308 public function getNextLink() {
1309 return $this->nextLink;
1310 }
1311 public function setEtag($etag) {
1312 $this->etag = $etag;
1313 }
1314 public function getEtag() {
1315 return $this->etag;
1316 }
1317 public function setLargestChangeId($largestChangeId) {
1318 $this->largestChangeId = $largestChangeId;
1319 }
1320 public function getLargestChangeId() {
1321 return $this->largestChangeId;
1322 }
1323 public function setSelfLink($selfLink) {
1324 $this->selfLink = $selfLink;
1325 }
1326 public function getSelfLink() {
1327 return $this->selfLink;
1328 }
1329 }
1330
1331 class Google_ChildList extends Google_Model {
1332 public $nextPageToken;
1333 public $kind;
1334 protected $__itemsType = 'Google_ChildReference';
1335 protected $__itemsDataType = 'array';
1336 public $items;
1337 public $nextLink;
1338 public $etag;
1339 public $selfLink;
1340 public function setNextPageToken($nextPageToken) {
1341 $this->nextPageToken = $nextPageToken;
1342 }
1343 public function getNextPageToken() {
1344 return $this->nextPageToken;
1345 }
1346 public function setKind($kind) {
1347 $this->kind = $kind;
1348 }
1349 public function getKind() {
1350 return $this->kind;
1351 }
1352 public function setItems(/* array(Google_ChildReference) */ $items) {
1353 $this->assertIsArray($items, 'Google_ChildReference', __METHOD__);
1354 $this->items = $items;
1355 }
1356 public function getItems() {
1357 return $this->items;
1358 }
1359 public function setNextLink($nextLink) {
1360 $this->nextLink = $nextLink;
1361 }
1362 public function getNextLink() {
1363 return $this->nextLink;
1364 }
1365 public function setEtag($etag) {
1366 $this->etag = $etag;
1367 }
1368 public function getEtag() {
1369 return $this->etag;
1370 }
1371 public function setSelfLink($selfLink) {
1372 $this->selfLink = $selfLink;
1373 }
1374 public function getSelfLink() {
1375 return $this->selfLink;
1376 }
1377 }
1378
1379 class Google_ChildReference extends Google_Model {
1380 public $kind;
1381 public $childLink;
1382 public $id;
1383 public $selfLink;
1384 public function setKind($kind) {
1385 $this->kind = $kind;
1386 }
1387 public function getKind() {
1388 return $this->kind;
1389 }
1390 public function setChildLink($childLink) {
1391 $this->childLink = $childLink;
1392 }
1393 public function getChildLink() {
1394 return $this->childLink;
1395 }
1396 public function setId($id) {
1397 $this->id = $id;
1398 }
1399 public function getId() {
1400 return $this->id;
1401 }
1402 public function setSelfLink($selfLink) {
1403 $this->selfLink = $selfLink;
1404 }
1405 public function getSelfLink() {
1406 return $this->selfLink;
1407 }
1408 }
1409
1410 class Google_DriveFile extends Google_Model {
1411 public $mimeType;
1412 public $thumbnailLink;
1413 protected $__labelsType = 'Google_DriveFileLabels';
1414 protected $__labelsDataType = '';
1415 public $labels;
1416 protected $__indexableTextType = 'Google_DriveFileIndexableText';
1417 protected $__indexableTextDataType = '';
1418 public $indexableText;
1419 public $explicitlyTrashed;
1420 public $etag;
1421 public $lastModifyingUserName;
1422 public $writersCanShare;
1423 public $id;
1424 public $title;
1425 public $ownerNames;
1426 public $sharedWithMeDate;
1427 public $lastViewedByMeDate;
1428 protected $__parentsType = 'Google_ParentReference';
1429 protected $__parentsDataType = 'array';
1430 public $parents;
1431 public $exportLinks;
1432 public $originalFilename;
1433 public $description;
1434 public $webContentLink;
1435 public $editable;
1436 public $kind;
1437 public $quotaBytesUsed;
1438 public $fileSize;
1439 public $createdDate;
1440 public $md5Checksum;
1441 protected $__imageMediaMetadataType = 'Google_DriveFileImageMediaMetadata';
1442 protected $__imageMediaMetadataDataType = '';
1443 public $imageMediaMetadata;
1444 public $embedLink;
1445 public $alternateLink;
1446 public $modifiedByMeDate;
1447 public $downloadUrl;
1448 protected $__userPermissionType = 'Google_Permission';
1449 protected $__userPermissionDataType = '';
1450 public $userPermission;
1451 public $fileExtension;
1452 public $selfLink;
1453 public $modifiedDate;
1454 public function setMimeType($mimeType) {
1455 $this->mimeType = $mimeType;
1456 }
1457 public function getMimeType() {
1458 return $this->mimeType;
1459 }
1460 public function setThumbnailLink($thumbnailLink) {
1461 $this->thumbnailLink = $thumbnailLink;
1462 }
1463 public function getThumbnailLink() {
1464 return $this->thumbnailLink;
1465 }
1466 public function setLabels(Google_DriveFileLabels $labels) {
1467 $this->labels = $labels;
1468 }
1469 public function getLabels() {
1470 return $this->labels;
1471 }
1472 public function setIndexableText(Google_DriveFileIndexableText $indexableText) {
1473 $this->indexableText = $indexableText;
1474 }
1475 public function getIndexableText() {
1476 return $this->indexableText;
1477 }
1478 public function setExplicitlyTrashed($explicitlyTrashed) {
1479 $this->explicitlyTrashed = $explicitlyTrashed;
1480 }
1481 public function getExplicitlyTrashed() {
1482 return $this->explicitlyTrashed;
1483 }
1484 public function setEtag($etag) {
1485 $this->etag = $etag;
1486 }
1487 public function getEtag() {
1488 return $this->etag;
1489 }
1490 public function setLastModifyingUserName($lastModifyingUserName) {
1491 $this->lastModifyingUserName = $lastModifyingUserName;
1492 }
1493 public function getLastModifyingUserName() {
1494 return $this->lastModifyingUserName;
1495 }
1496 public function setWritersCanShare($writersCanShare) {
1497 $this->writersCanShare = $writersCanShare;
1498 }
1499 public function getWritersCanShare() {
1500 return $this->writersCanShare;
1501 }
1502 public function setId($id) {
1503 $this->id = $id;
1504 }
1505 public function getId() {
1506 return $this->id;
1507 }
1508 public function setTitle($title) {
1509 $this->title = $title;
1510 }
1511 public function getTitle() {
1512 return $this->title;
1513 }
1514 public function setOwnerNames(/* array(Google_string) */ $ownerNames) {
1515 $this->assertIsArray($ownerNames, 'Google_string', __METHOD__);
1516 $this->ownerNames = $ownerNames;
1517 }
1518 public function getOwnerNames() {
1519 return $this->ownerNames;
1520 }
1521 public function setSharedWithMeDate($sharedWithMeDate) {
1522 $this->sharedWithMeDate = $sharedWithMeDate;
1523 }
1524 public function getSharedWithMeDate() {
1525 return $this->sharedWithMeDate;
1526 }
1527 public function setLastViewedByMeDate($lastViewedByMeDate) {
1528 $this->lastViewedByMeDate = $lastViewedByMeDate;
1529 }
1530 public function getLastViewedByMeDate() {
1531 return $this->lastViewedByMeDate;
1532 }
1533 public function setParents(/* array(Google_ParentReference) */ $parents) {
1534 $this->assertIsArray($parents, 'Google_ParentReference', __METHOD__);
1535 $this->parents = $parents;
1536 }
1537 public function getParents() {
1538 return $this->parents;
1539 }
1540 public function setExportLinks($exportLinks) {
1541 $this->exportLinks = $exportLinks;
1542 }
1543 public function getExportLinks() {
1544 return $this->exportLinks;
1545 }
1546 public function setOriginalFilename($originalFilename) {
1547 $this->originalFilename = $originalFilename;
1548 }
1549 public function getOriginalFilename() {
1550 return $this->originalFilename;
1551 }
1552 public function setDescription($description) {
1553 $this->description = $description;
1554 }
1555 public function getDescription() {
1556 return $this->description;
1557 }
1558 public function setWebContentLink($webContentLink) {
1559 $this->webContentLink = $webContentLink;
1560 }
1561 public function getWebContentLink() {
1562 return $this->webContentLink;
1563 }
1564 public function setEditable($editable) {
1565 $this->editable = $editable;
1566 }
1567 public function getEditable() {
1568 return $this->editable;
1569 }
1570 public function setKind($kind) {
1571 $this->kind = $kind;
1572 }
1573 public function getKind() {
1574 return $this->kind;
1575 }
1576 public function setQuotaBytesUsed($quotaBytesUsed) {
1577 $this->quotaBytesUsed = $quotaBytesUsed;
1578 }
1579 public function getQuotaBytesUsed() {
1580 return $this->quotaBytesUsed;
1581 }
1582 public function setFileSize($fileSize) {
1583 $this->fileSize = $fileSize;
1584 }
1585 public function getFileSize() {
1586 return $this->fileSize;
1587 }
1588 public function setCreatedDate($createdDate) {
1589 $this->createdDate = $createdDate;
1590 }
1591 public function getCreatedDate() {
1592 return $this->createdDate;
1593 }
1594 public function setMd5Checksum($md5Checksum) {
1595 $this->md5Checksum = $md5Checksum;
1596 }
1597 public function getMd5Checksum() {
1598 return $this->md5Checksum;
1599 }
1600 public function setImageMediaMetadata(Google_DriveFileImageMediaMetadata $imageMediaMetadata) {
1601 $this->imageMediaMetadata = $imageMediaMetadata;
1602 }
1603 public function getImageMediaMetadata() {
1604 return $this->imageMediaMetadata;
1605 }
1606 public function setEmbedLink($embedLink) {
1607 $this->embedLink = $embedLink;
1608 }
1609 public function getEmbedLink() {
1610 return $this->embedLink;
1611 }
1612 public function setAlternateLink($alternateLink) {
1613 $this->alternateLink = $alternateLink;
1614 }
1615 public function getAlternateLink() {
1616 return $this->alternateLink;
1617 }
1618 public function setModifiedByMeDate($modifiedByMeDate) {
1619 $this->modifiedByMeDate = $modifiedByMeDate;
1620 }
1621 public function getModifiedByMeDate() {
1622 return $this->modifiedByMeDate;
1623 }
1624 public function setDownloadUrl($downloadUrl) {
1625 $this->downloadUrl = $downloadUrl;
1626 }
1627 public function getDownloadUrl() {
1628 return $this->downloadUrl;
1629 }
1630 public function setUserPermission(Google_Permission $userPermission) {
1631 $this->userPermission = $userPermission;
1632 }
1633 public function getUserPermission() {
1634 return $this->userPermission;
1635 }
1636 public function setFileExtension($fileExtension) {
1637 $this->fileExtension = $fileExtension;
1638 }
1639 public function getFileExtension() {
1640 return $this->fileExtension;
1641 }
1642 public function setSelfLink($selfLink) {
1643 $this->selfLink = $selfLink;
1644 }
1645 public function getSelfLink() {
1646 return $this->selfLink;
1647 }
1648 public function setModifiedDate($modifiedDate) {
1649 $this->modifiedDate = $modifiedDate;
1650 }
1651 public function getModifiedDate() {
1652 return $this->modifiedDate;
1653 }
1654 }
1655
1656 class Google_DriveFileImageMediaMetadata extends Google_Model {
1657 public $width;
1658 public $rotation;
1659 protected $__locationType = 'Google_DriveFileImageMediaMetadataLocation';
1660 protected $__locationDataType = '';
1661 public $location;
1662 public $height;
1663 public function setWidth($width) {
1664 $this->width = $width;
1665 }
1666 public function getWidth() {
1667 return $this->width;
1668 }
1669 public function setRotation($rotation) {
1670 $this->rotation = $rotation;
1671 }
1672 public function getRotation() {
1673 return $this->rotation;
1674 }
1675 public function setLocation(Google_DriveFileImageMediaMetadataLocation $location) {
1676 $this->location = $location;
1677 }
1678 public function getLocation() {
1679 return $this->location;
1680 }
1681 public function setHeight($height) {
1682 $this->height = $height;
1683 }
1684 public function getHeight() {
1685 return $this->height;
1686 }
1687 }
1688
1689 class Google_DriveFileImageMediaMetadataLocation extends Google_Model {
1690 public $latitude;
1691 public $altitude;
1692 public $longitude;
1693 public function setLatitude($latitude) {
1694 $this->latitude = $latitude;
1695 }
1696 public function getLatitude() {
1697 return $this->latitude;
1698 }
1699 public function setAltitude($altitude) {
1700 $this->altitude = $altitude;
1701 }
1702 public function getAltitude() {
1703 return $this->altitude;
1704 }
1705 public function setLongitude($longitude) {
1706 $this->longitude = $longitude;
1707 }
1708 public function getLongitude() {
1709 return $this->longitude;
1710 }
1711 }
1712
1713 class Google_DriveFileIndexableText extends Google_Model {
1714 public $text;
1715 public function setText($text) {
1716 $this->text = $text;
1717 }
1718 public function getText() {
1719 return $this->text;
1720 }
1721 }
1722
1723 class Google_DriveFileLabels extends Google_Model {
1724 public $restricted;
1725 public $hidden;
1726 public $viewed;
1727 public $starred;
1728 public $trashed;
1729 public function setRestricted($restricted) {
1730 $this->restricted = $restricted;
1731 }
1732 public function getRestricted() {
1733 return $this->restricted;
1734 }
1735 public function setHidden($hidden) {
1736 $this->hidden = $hidden;
1737 }
1738 public function getHidden() {
1739 return $this->hidden;
1740 }
1741 public function setViewed($viewed) {
1742 $this->viewed = $viewed;
1743 }
1744 public function getViewed() {
1745 return $this->viewed;
1746 }
1747 public function setStarred($starred) {
1748 $this->starred = $starred;
1749 }
1750 public function getStarred() {
1751 return $this->starred;
1752 }
1753 public function setTrashed($trashed) {
1754 $this->trashed = $trashed;
1755 }
1756 public function getTrashed() {
1757 return $this->trashed;
1758 }
1759 }
1760
1761 class Google_FileList extends Google_Model {
1762 public $nextPageToken;
1763 public $kind;
1764 protected $__itemsType = 'Google_DriveFile';
1765 protected $__itemsDataType = 'array';
1766 public $items;
1767 public $nextLink;
1768 public $etag;
1769 public $selfLink;
1770 public function setNextPageToken($nextPageToken) {
1771 $this->nextPageToken = $nextPageToken;
1772 }
1773 public function getNextPageToken() {
1774 return $this->nextPageToken;
1775 }
1776 public function setKind($kind) {
1777 $this->kind = $kind;
1778 }
1779 public function getKind() {
1780 return $this->kind;
1781 }
1782 public function setItems(/* array(Google_DriveFile) */ $items) {
1783 $this->assertIsArray($items, 'Google_DriveFile', __METHOD__);
1784 $this->items = $items;
1785 }
1786 public function getItems() {
1787 return $this->items;
1788 }
1789 public function setNextLink($nextLink) {
1790 $this->nextLink = $nextLink;
1791 }
1792 public function getNextLink() {
1793 return $this->nextLink;
1794 }
1795 public function setEtag($etag) {
1796 $this->etag = $etag;
1797 }
1798 public function getEtag() {
1799 return $this->etag;
1800 }
1801 public function setSelfLink($selfLink) {
1802 $this->selfLink = $selfLink;
1803 }
1804 public function getSelfLink() {
1805 return $this->selfLink;
1806 }
1807 }
1808
1809 class Google_ParentList extends Google_Model {
1810 protected $__itemsType = 'Google_ParentReference';
1811 protected $__itemsDataType = 'array';
1812 public $items;
1813 public $kind;
1814 public $etag;
1815 public $selfLink;
1816 public function setItems(/* array(Google_ParentReference) */ $items) {
1817 $this->assertIsArray($items, 'Google_ParentReference', __METHOD__);
1818 $this->items = $items;
1819 }
1820 public function getItems() {
1821 return $this->items;
1822 }
1823 public function setKind($kind) {
1824 $this->kind = $kind;
1825 }
1826 public function getKind() {
1827 return $this->kind;
1828 }
1829 public function setEtag($etag) {
1830 $this->etag = $etag;
1831 }
1832 public function getEtag() {
1833 return $this->etag;
1834 }
1835 public function setSelfLink($selfLink) {
1836 $this->selfLink = $selfLink;
1837 }
1838 public function getSelfLink() {
1839 return $this->selfLink;
1840 }
1841 }
1842
1843 class Google_ParentReference extends Google_Model {
1844 public $selfLink;
1845 public $kind;
1846 public $id;
1847 public $isRoot;
1848 public $parentLink;
1849 public function setSelfLink($selfLink) {
1850 $this->selfLink = $selfLink;
1851 }
1852 public function getSelfLink() {
1853 return $this->selfLink;
1854 }
1855 public function setKind($kind) {
1856 $this->kind = $kind;
1857 }
1858 public function getKind() {
1859 return $this->kind;
1860 }
1861 public function setId($id) {
1862 $this->id = $id;
1863 }
1864 public function getId() {
1865 return $this->id;
1866 }
1867 public function setIsRoot($isRoot) {
1868 $this->isRoot = $isRoot;
1869 }
1870 public function getIsRoot() {
1871 return $this->isRoot;
1872 }
1873 public function setParentLink($parentLink) {
1874 $this->parentLink = $parentLink;
1875 }
1876 public function getParentLink() {
1877 return $this->parentLink;
1878 }
1879 }
1880
1881 class Google_Permission extends Google_Model {
1882 public $withLink;
1883 public $kind;
1884 public $name;
1885 public $value;
1886 public $id;
1887 public $authKey;
1888 public $etag;
1889 public $role;
1890 public $photoLink;
1891 public $type;
1892 public $additionalRoles;
1893 public $selfLink;
1894 public function setWithLink($withLink) {
1895 $this->withLink = $withLink;
1896 }
1897 public function getWithLink() {
1898 return $this->withLink;
1899 }
1900 public function setKind($kind) {
1901 $this->kind = $kind;
1902 }
1903 public function getKind() {
1904 return $this->kind;
1905 }
1906 public function setName($name) {
1907 $this->name = $name;
1908 }
1909 public function getName() {
1910 return $this->name;
1911 }
1912 public function setValue($value) {
1913 $this->value = $value;
1914 }
1915 public function getValue() {
1916 return $this->value;
1917 }
1918 public function setId($id) {
1919 $this->id = $id;
1920 }
1921 public function getId() {
1922 return $this->id;
1923 }
1924 public function setAuthKey($authKey) {
1925 $this->authKey = $authKey;
1926 }
1927 public function getAuthKey() {
1928 return $this->authKey;
1929 }
1930 public function setEtag($etag) {
1931 $this->etag = $etag;
1932 }
1933 public function getEtag() {
1934 return $this->etag;
1935 }
1936 public function setRole($role) {
1937 $this->role = $role;
1938 }
1939 public function getRole() {
1940 return $this->role;
1941 }
1942 public function setPhotoLink($photoLink) {
1943 $this->photoLink = $photoLink;
1944 }
1945 public function getPhotoLink() {
1946 return $this->photoLink;
1947 }
1948 public function setType($type) {
1949 $this->type = $type;
1950 }
1951 public function getType() {
1952 return $this->type;
1953 }
1954 public function setAdditionalRoles(/* array(Google_string) */ $additionalRoles) {
1955 $this->assertIsArray($additionalRoles, 'Google_string', __METHOD__);
1956 $this->additionalRoles = $additionalRoles;
1957 }
1958 public function getAdditionalRoles() {
1959 return $this->additionalRoles;
1960 }
1961 public function setSelfLink($selfLink) {
1962 $this->selfLink = $selfLink;
1963 }
1964 public function getSelfLink() {
1965 return $this->selfLink;
1966 }
1967 }
1968
1969 class Google_PermissionList extends Google_Model {
1970 protected $__itemsType = 'Google_Permission';
1971 protected $__itemsDataType = 'array';
1972 public $items;
1973 public $kind;
1974 public $etag;
1975 public $selfLink;
1976 public function setItems(/* array(Google_Permission) */ $items) {
1977 $this->assertIsArray($items, 'Google_Permission', __METHOD__);
1978 $this->items = $items;
1979 }
1980 public function getItems() {
1981 return $this->items;
1982 }
1983 public function setKind($kind) {
1984 $this->kind = $kind;
1985 }
1986 public function getKind() {
1987 return $this->kind;
1988 }
1989 public function setEtag($etag) {
1990 $this->etag = $etag;
1991 }
1992 public function getEtag() {
1993 return $this->etag;
1994 }
1995 public function setSelfLink($selfLink) {
1996 $this->selfLink = $selfLink;
1997 }
1998 public function getSelfLink() {
1999 return $this->selfLink;
2000 }
2001 }
2002
2003 class Google_Revision extends Google_Model {
2004 public $mimeType;
2005 public $pinned;
2006 public $kind;
2007 public $publishedLink;
2008 public $publishedOutsideDomain;
2009 public $publishAuto;
2010 public $published;
2011 public $downloadUrl;
2012 public $selfLink;
2013 public $etag;
2014 public $fileSize;
2015 public $exportLinks;
2016 public $lastModifyingUserName;
2017 public $originalFilename;
2018 public $id;
2019 public $md5Checksum;
2020 public $modifiedDate;
2021 public function setMimeType($mimeType) {
2022 $this->mimeType = $mimeType;
2023 }
2024 public function getMimeType() {
2025 return $this->mimeType;
2026 }
2027 public function setPinned($pinned) {
2028 $this->pinned = $pinned;
2029 }
2030 public function getPinned() {
2031 return $this->pinned;
2032 }
2033 public function setKind($kind) {
2034 $this->kind = $kind;
2035 }
2036 public function getKind() {
2037 return $this->kind;
2038 }
2039 public function setPublishedLink($publishedLink) {
2040 $this->publishedLink = $publishedLink;
2041 }
2042 public function getPublishedLink() {
2043 return $this->publishedLink;
2044 }
2045 public function setPublishedOutsideDomain($publishedOutsideDomain) {
2046 $this->publishedOutsideDomain = $publishedOutsideDomain;
2047 }
2048 public function getPublishedOutsideDomain() {
2049 return $this->publishedOutsideDomain;
2050 }
2051 public function setPublishAuto($publishAuto) {
2052 $this->publishAuto = $publishAuto;
2053 }
2054 public function getPublishAuto() {
2055 return $this->publishAuto;
2056 }
2057 public function setPublished($published) {
2058 $this->published = $published;
2059 }
2060 public function getPublished() {
2061 return $this->published;
2062 }
2063 public function setDownloadUrl($downloadUrl) {
2064 $this->downloadUrl = $downloadUrl;
2065 }
2066 public function getDownloadUrl() {
2067 return $this->downloadUrl;
2068 }
2069 public function setSelfLink($selfLink) {
2070 $this->selfLink = $selfLink;
2071 }
2072 public function getSelfLink() {
2073 return $this->selfLink;
2074 }
2075 public function setEtag($etag) {
2076 $this->etag = $etag;
2077 }
2078 public function getEtag() {
2079 return $this->etag;
2080 }
2081 public function setFileSize($fileSize) {
2082 $this->fileSize = $fileSize;
2083 }
2084 public function getFileSize() {
2085 return $this->fileSize;
2086 }
2087 public function setExportLinks($exportLinks) {
2088 $this->exportLinks = $exportLinks;
2089 }
2090 public function getExportLinks() {
2091 return $this->exportLinks;
2092 }
2093 public function setLastModifyingUserName($lastModifyingUserName) {
2094 $this->lastModifyingUserName = $lastModifyingUserName;
2095 }
2096 public function getLastModifyingUserName() {
2097 return $this->lastModifyingUserName;
2098 }
2099 public function setOriginalFilename($originalFilename) {
2100 $this->originalFilename = $originalFilename;
2101 }
2102 public function getOriginalFilename() {
2103 return $this->originalFilename;
2104 }
2105 public function setId($id) {
2106 $this->id = $id;
2107 }
2108 public function getId() {
2109 return $this->id;
2110 }
2111 public function setMd5Checksum($md5Checksum) {
2112 $this->md5Checksum = $md5Checksum;
2113 }
2114 public function getMd5Checksum() {
2115 return $this->md5Checksum;
2116 }
2117 public function setModifiedDate($modifiedDate) {
2118 $this->modifiedDate = $modifiedDate;
2119 }
2120 public function getModifiedDate() {
2121 return $this->modifiedDate;
2122 }
2123 }
2124
2125 class Google_RevisionList extends Google_Model {
2126 protected $__itemsType = 'Google_Revision';
2127 protected $__itemsDataType = 'array';
2128 public $items;
2129 public $kind;
2130 public $etag;
2131 public $selfLink;
2132 public function setItems(/* array(Google_Revision) */ $items) {
2133 $this->assertIsArray($items, 'Google_Revision', __METHOD__);
2134 $this->items = $items;
2135 }
2136 public function getItems() {
2137 return $this->items;
2138 }
2139 public function setKind($kind) {
2140 $this->kind = $kind;
2141 }
2142 public function getKind() {
2143 return $this->kind;
2144 }
2145 public function setEtag($etag) {
2146 $this->etag = $etag;
2147 }
2148 public function getEtag() {
2149 return $this->etag;
2150 }
2151 public function setSelfLink($selfLink) {
2152 $this->selfLink = $selfLink;
2153 }
2154 public function getSelfLink() {
2155 return $this->selfLink;
2156 }
2157 }
2158