PageRenderTime 62ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 1ms

/social_network/GoogleAPI/src/contrib/Google_DriveService.php

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