PageRenderTime 48ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 1ms

/lib/google/contrib/Google_DriveService.php

https://bitbucket.org/synergylearning/campusconnect
PHP | 2157 lines | 1690 code | 54 blank | 413 comment | 58 complexity | 49689e610b50e54ffb37fc09bb7bcf31 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, LGPL-2.1, Apache-2.0, BSD-3-Clause, AGPL-3.0

Large files files are truncated, but you can click here to view the full file

  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 "files" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $driveService = new Google_DriveService(...);
  20. * $files = $driveService->files;
  21. * </code>
  22. */
  23. class Google_FilesServiceResource extends Google_ServiceResource {
  24. /**
  25. * Insert a new file. (files.insert)
  26. *
  27. * @param Google_DriveFile $postBody
  28. * @param array $optParams Optional parameters.
  29. *
  30. * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
  31. * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
  32. * @opt_param string sourceLanguage The language of the original file to be translated.
  33. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
  34. * @opt_param bool pinned Whether to pin the head revision of the uploaded file.
  35. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
  36. * @opt_param string timedTextTrackName The timed text track name.
  37. * @opt_param string timedTextLanguage The language of the timed text.
  38. * @return Google_DriveFile
  39. */
  40. public function insert(Google_DriveFile $postBody, $optParams = array()) {
  41. $params = array('postBody' => $postBody);
  42. $params = array_merge($params, $optParams);
  43. $data = $this->__call('insert', array($params));
  44. if ($this->useObjects()) {
  45. return new Google_DriveFile($data);
  46. } else {
  47. return $data;
  48. }
  49. }
  50. /**
  51. * Restores a file from the trash. (files.untrash)
  52. *
  53. * @param string $fileId The ID of the file to untrash.
  54. * @param array $optParams Optional parameters.
  55. * @return Google_DriveFile
  56. */
  57. public function untrash($fileId, $optParams = array()) {
  58. $params = array('fileId' => $fileId);
  59. $params = array_merge($params, $optParams);
  60. $data = $this->__call('untrash', array($params));
  61. if ($this->useObjects()) {
  62. return new Google_DriveFile($data);
  63. } else {
  64. return $data;
  65. }
  66. }
  67. /**
  68. * Moves a file to the trash. (files.trash)
  69. *
  70. * @param string $fileId The ID of the file to trash.
  71. * @param array $optParams Optional parameters.
  72. * @return Google_DriveFile
  73. */
  74. public function trash($fileId, $optParams = array()) {
  75. $params = array('fileId' => $fileId);
  76. $params = array_merge($params, $optParams);
  77. $data = $this->__call('trash', array($params));
  78. if ($this->useObjects()) {
  79. return new Google_DriveFile($data);
  80. } else {
  81. return $data;
  82. }
  83. }
  84. /**
  85. * Gets a file's metadata by ID. (files.get)
  86. *
  87. * @param string $fileId The ID for the file in question.
  88. * @param array $optParams Optional parameters.
  89. *
  90. * @opt_param bool updateViewedDate Whether to update the view date after successfully retrieving the file.
  91. * @opt_param string projection This parameter is deprecated and has no function.
  92. * @return Google_DriveFile
  93. */
  94. public function get($fileId, $optParams = array()) {
  95. $params = array('fileId' => $fileId);
  96. $params = array_merge($params, $optParams);
  97. $data = $this->__call('get', array($params));
  98. if ($this->useObjects()) {
  99. return new Google_DriveFile($data);
  100. } else {
  101. return $data;
  102. }
  103. }
  104. /**
  105. * Lists the user's files. (files.list)
  106. *
  107. * @param array $optParams Optional parameters.
  108. *
  109. * @opt_param string q Query string for searching files.
  110. * @opt_param string pageToken Page token for files.
  111. * @opt_param string projection This parameter is deprecated and has no function.
  112. * @opt_param int maxResults Maximum number of files to return.
  113. * @return Google_FileList
  114. */
  115. public function listFiles($optParams = array()) {
  116. $params = array();
  117. $params = array_merge($params, $optParams);
  118. $data = $this->__call('list', array($params));
  119. if ($this->useObjects()) {
  120. return new Google_FileList($data);
  121. } else {
  122. return $data;
  123. }
  124. }
  125. /**
  126. * Updates file metadata and/or content (files.update)
  127. *
  128. * @param string $fileId The ID of the file to update.
  129. * @param Google_DriveFile $postBody
  130. * @param array $optParams Optional parameters.
  131. *
  132. * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
  133. * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
  134. * @opt_param bool setModifiedDate Whether to set the modified date with the supplied modified date.
  135. * @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file.
  136. * @opt_param string sourceLanguage The language of the original file to be translated.
  137. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
  138. * @opt_param bool pinned Whether to pin the new revision.
  139. * @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.
  140. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
  141. * @opt_param string timedTextLanguage The language of the timed text.
  142. * @opt_param string timedTextTrackName The timed text track name.
  143. * @return Google_DriveFile
  144. */
  145. public function update($fileId, Google_DriveFile $postBody, $optParams = array()) {
  146. $params = array('fileId' => $fileId, 'postBody' => $postBody);
  147. $params = array_merge($params, $optParams);
  148. $data = $this->__call('update', array($params));
  149. if ($this->useObjects()) {
  150. return new Google_DriveFile($data);
  151. } else {
  152. return $data;
  153. }
  154. }
  155. /**
  156. * Updates file metadata and/or content. This method supports patch semantics. (files.patch)
  157. *
  158. * @param string $fileId The ID of the file to update.
  159. * @param Google_DriveFile $postBody
  160. * @param array $optParams Optional parameters.
  161. *
  162. * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
  163. * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
  164. * @opt_param bool setModifiedDate Whether to set the modified date with the supplied modified date.
  165. * @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file.
  166. * @opt_param string sourceLanguage The language of the original file to be translated.
  167. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
  168. * @opt_param bool pinned Whether to pin the new revision.
  169. * @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.
  170. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
  171. * @opt_param string timedTextLanguage The language of the timed text.
  172. * @opt_param string timedTextTrackName The timed text track name.
  173. * @return Google_DriveFile
  174. */
  175. public function patch($fileId, Google_DriveFile $postBody, $optParams = array()) {
  176. $params = array('fileId' => $fileId, 'postBody' => $postBody);
  177. $params = array_merge($params, $optParams);
  178. $data = $this->__call('patch', array($params));
  179. if ($this->useObjects()) {
  180. return new Google_DriveFile($data);
  181. } else {
  182. return $data;
  183. }
  184. }
  185. /**
  186. * Set the file's updated time to the current server time. (files.touch)
  187. *
  188. * @param string $fileId The ID of the file to update.
  189. * @param array $optParams Optional parameters.
  190. * @return Google_DriveFile
  191. */
  192. public function touch($fileId, $optParams = array()) {
  193. $params = array('fileId' => $fileId);
  194. $params = array_merge($params, $optParams);
  195. $data = $this->__call('touch', array($params));
  196. if ($this->useObjects()) {
  197. return new Google_DriveFile($data);
  198. } else {
  199. return $data;
  200. }
  201. }
  202. /**
  203. * Creates a copy of the specified file. (files.copy)
  204. *
  205. * @param string $fileId The ID of the file to copy.
  206. * @param Google_DriveFile $postBody
  207. * @param array $optParams Optional parameters.
  208. *
  209. * @opt_param bool convert Whether to convert this file to the corresponding Google Docs format.
  210. * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
  211. * @opt_param string sourceLanguage The language of the original file to be translated.
  212. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
  213. * @opt_param bool pinned Whether to pin the head revision of the new copy.
  214. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, or .gif uploads.
  215. * @opt_param string timedTextLanguage The language of the timed text.
  216. * @opt_param string timedTextTrackName The timed text track name.
  217. * @return Google_DriveFile
  218. */
  219. public function copy($fileId, Google_DriveFile $postBody, $optParams = array()) {
  220. $params = array('fileId' => $fileId, 'postBody' => $postBody);
  221. $params = array_merge($params, $optParams);
  222. $data = $this->__call('copy', array($params));
  223. if ($this->useObjects()) {
  224. return new Google_DriveFile($data);
  225. } else {
  226. return $data;
  227. }
  228. }
  229. /**
  230. * Permanently deletes a file by ID. Skips the trash. (files.delete)
  231. *
  232. * @param string $fileId The ID of the file to delete.
  233. * @param array $optParams Optional parameters.
  234. */
  235. public function delete($fileId, $optParams = array()) {
  236. $params = array('fileId' => $fileId);
  237. $params = array_merge($params, $optParams);
  238. $data = $this->__call('delete', array($params));
  239. return $data;
  240. }
  241. }
  242. /**
  243. * The "about" collection of methods.
  244. * Typical usage is:
  245. * <code>
  246. * $driveService = new Google_DriveService(...);
  247. * $about = $driveService->about;
  248. * </code>
  249. */
  250. class Google_AboutServiceResource extends Google_ServiceResource {
  251. /**
  252. * Gets the information about the current user along with Drive API settings (about.get)
  253. *
  254. * @param array $optParams Optional parameters.
  255. *
  256. * @opt_param bool includeSubscribed Whether to include subscribed items when calculating the number of remaining change IDs
  257. * @opt_param string maxChangeIdCount Maximum number of remaining change IDs to count
  258. * @opt_param string startChangeId Change ID to start counting from when calculating number of remaining change IDs
  259. * @return Google_About
  260. */
  261. public function get($optParams = array()) {
  262. $params = array();
  263. $params = array_merge($params, $optParams);
  264. $data = $this->__call('get', array($params));
  265. if ($this->useObjects()) {
  266. return new Google_About($data);
  267. } else {
  268. return $data;
  269. }
  270. }
  271. }
  272. /**
  273. * The "apps" collection of methods.
  274. * Typical usage is:
  275. * <code>
  276. * $driveService = new Google_DriveService(...);
  277. * $apps = $driveService->apps;
  278. * </code>
  279. */
  280. class Google_AppsServiceResource extends Google_ServiceResource {
  281. /**
  282. * Lists a user's apps. (apps.list)
  283. *
  284. * @param array $optParams Optional parameters.
  285. * @return Google_AppList
  286. */
  287. public function listApps($optParams = array()) {
  288. $params = array();
  289. $params = array_merge($params, $optParams);
  290. $data = $this->__call('list', array($params));
  291. if ($this->useObjects()) {
  292. return new Google_AppList($data);
  293. } else {
  294. return $data;
  295. }
  296. }
  297. /**
  298. * Gets a specific app. (apps.get)
  299. *
  300. * @param string $appId The ID of the app.
  301. * @param array $optParams Optional parameters.
  302. * @return Google_App
  303. */
  304. public function get($appId, $optParams = array()) {
  305. $params = array('appId' => $appId);
  306. $params = array_merge($params, $optParams);
  307. $data = $this->__call('get', array($params));
  308. if ($this->useObjects()) {
  309. return new Google_App($data);
  310. } else {
  311. return $data;
  312. }
  313. }
  314. }
  315. /**
  316. * The "parents" collection of methods.
  317. * Typical usage is:
  318. * <code>
  319. * $driveService = new Google_DriveService(...);
  320. * $parents = $driveService->parents;
  321. * </code>
  322. */
  323. class Google_ParentsServiceResource extends Google_ServiceResource {
  324. /**
  325. * Adds a parent folder for a file. (parents.insert)
  326. *
  327. * @param string $fileId The ID of the file.
  328. * @param Google_ParentReference $postBody
  329. * @param array $optParams Optional parameters.
  330. * @return Google_ParentReference
  331. */
  332. public function insert($fileId, Google_ParentReference $postBody, $optParams = array()) {
  333. $params = array('fileId' => $fileId, 'postBody' => $postBody);
  334. $params = array_merge($params, $optParams);
  335. $data = $this->__call('insert', array($params));
  336. if ($this->useObjects()) {
  337. return new Google_ParentReference($data);
  338. } else {
  339. return $data;
  340. }
  341. }
  342. /**
  343. * Gets a specific parent reference. (parents.get)
  344. *
  345. * @param string $fileId The ID of the file.
  346. * @param string $parentId The ID of the parent.
  347. * @param array $optParams Optional parameters.
  348. * @return Google_ParentReference
  349. */
  350. public function get($fileId, $parentId, $optParams = array()) {
  351. $params = array('fileId' => $fileId, 'parentId' => $parentId);
  352. $params = array_merge($params, $optParams);
  353. $data = $this->__call('get', array($params));
  354. if ($this->useObjects()) {
  355. return new Google_ParentReference($data);
  356. } else {
  357. return $data;
  358. }
  359. }
  360. /**
  361. * Lists a file's parents. (parents.list)
  362. *
  363. * @param string $fileId The ID of the file.
  364. * @param array $optParams Optional parameters.
  365. * @return Google_ParentList
  366. */
  367. public function listParents($fileId, $optParams = array()) {
  368. $params = array('fileId' => $fileId);
  369. $params = array_merge($params, $optParams);
  370. $data = $this->__call('list', array($params));
  371. if ($this->useObjects()) {
  372. return new Google_ParentList($data);
  373. } else {
  374. return $data;
  375. }
  376. }
  377. /**
  378. * Removes a parent from a file. (parents.delete)
  379. *
  380. * @param string $fileId The ID of the file.
  381. * @param string $parentId The ID of the parent.
  382. * @param array $optParams Optional parameters.
  383. */
  384. public function delete($fileId, $parentId, $optParams = array()) {
  385. $params = array('fileId' => $fileId, 'parentId' => $parentId);
  386. $params = array_merge($params, $optParams);
  387. $data = $this->__call('delete', array($params));
  388. return $data;
  389. }
  390. }
  391. /**
  392. * The "revisions" collection of methods.
  393. * Typical usage is:
  394. * <code>
  395. * $driveService = new Google_DriveService(...);
  396. * $revisions = $driveService->revisions;
  397. * </code>
  398. */
  399. class Google_RevisionsServiceResource extends Google_ServiceResource {
  400. /**
  401. * Updates a revision. This method supports patch semantics. (revisions.patch)
  402. *
  403. * @param string $fileId The ID for the file.
  404. * @param string $revisionId The ID for the revision.
  405. * @param Google_Revision $postBody
  406. * @param array $optParams Optional parameters.
  407. * @return Google_Revision
  408. */
  409. public function patch($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) {
  410. $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
  411. $params = array_merge($params, $optParams);
  412. $data = $this->__call('patch', array($params));
  413. if ($this->useObjects()) {
  414. return new Google_Revision($data);
  415. } else {
  416. return $data;
  417. }
  418. }
  419. /**
  420. * Gets a specific revision. (revisions.get)
  421. *
  422. * @param string $fileId The ID of the file.
  423. * @param string $revisionId The ID of the revision.
  424. * @param array $optParams Optional parameters.
  425. * @return Google_Revision
  426. */
  427. public function get($fileId, $revisionId, $optParams = array()) {
  428. $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
  429. $params = array_merge($params, $optParams);
  430. $data = $this->__call('get', array($params));
  431. if ($this->useObjects()) {
  432. return new Google_Revision($data);
  433. } else {
  434. return $data;
  435. }
  436. }
  437. /**
  438. * Lists a file's revisions. (revisions.list)
  439. *
  440. * @param string $fileId The ID of the file.
  441. * @param array $optParams Optional parameters.
  442. * @return Google_RevisionList
  443. */
  444. public function listRevisions($fileId, $optParams = array()) {
  445. $params = array('fileId' => $fileId);
  446. $params = array_merge($params, $optParams);
  447. $data = $this->__call('list', array($params));
  448. if ($this->useObjects()) {
  449. return new Google_RevisionList($data);
  450. } else {
  451. return $data;
  452. }
  453. }
  454. /**
  455. * Updates a revision. (revisions.update)
  456. *
  457. * @param string $fileId The ID for the file.
  458. * @param string $revisionId The ID for the revision.
  459. * @param Google_Revision $postBody
  460. * @param array $optParams Optional parameters.
  461. * @return Google_Revision
  462. */
  463. public function update($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) {
  464. $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
  465. $params = array_merge($params, $optParams);
  466. $data = $this->__call('update', array($params));
  467. if ($this->useObjects()) {
  468. return new Google_Revision($data);
  469. } else {
  470. return $data;
  471. }
  472. }
  473. /**
  474. * Removes a revision. (revisions.delete)
  475. *
  476. * @param string $fileId The ID of the file.
  477. * @param string $revisionId The ID of the revision.
  478. * @param array $optParams Optional parameters.
  479. */
  480. public function delete($fileId, $revisionId, $optParams = array()) {
  481. $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
  482. $params = array_merge($params, $optParams);
  483. $data = $this->__call('delete', array($params));
  484. return $data;
  485. }
  486. }
  487. /**
  488. * The "changes" collection of methods.
  489. * Typical usage is:
  490. * <code>
  491. * $driveService = new Google_DriveService(...);
  492. * $changes = $driveService->changes;
  493. * </code>
  494. */
  495. class Google_ChangesServiceResource extends Google_ServiceResource {
  496. /**
  497. * Lists the changes for a user. (changes.list)
  498. *
  499. * @param array $optParams Optional parameters.
  500. *
  501. * @opt_param bool includeSubscribed Whether to include subscribed items.
  502. * @opt_param string startChangeId Change ID to start listing changes from.
  503. * @opt_param bool includeDeleted Whether to include deleted items.
  504. * @opt_param int maxResults Maximum number of changes to return.
  505. * @opt_param string pageToken Page token for changes.
  506. * @return Google_ChangeList
  507. */
  508. public function listChanges($optParams = array()) {
  509. $params = array();
  510. $params = array_merge($params, $optParams);
  511. $data = $this->__call('list', array($params));
  512. if ($this->useObjects()) {
  513. return new Google_ChangeList($data);
  514. } else {
  515. return $data;
  516. }
  517. }
  518. /**
  519. * Gets a specific change. (changes.get)
  520. *
  521. * @param string $changeId The ID of the change.
  522. * @param array $optParams Optional parameters.
  523. * @return Google_Change
  524. */
  525. public function get($changeId, $optParams = array()) {
  526. $params = array('changeId' => $changeId);
  527. $params = array_merge($params, $optParams);
  528. $data = $this->__call('get', array($params));
  529. if ($this->useObjects()) {
  530. return new Google_Change($data);
  531. } else {
  532. return $data;
  533. }
  534. }
  535. }
  536. /**
  537. * The "children" collection of methods.
  538. * Typical usage is:
  539. * <code>
  540. * $driveService = new Google_DriveService(...);
  541. * $children = $driveService->children;
  542. * </code>
  543. */
  544. class Google_ChildrenServiceResource extends Google_ServiceResource {
  545. /**
  546. * Inserts a file into a folder. (children.insert)
  547. *
  548. * @param string $folderId The ID of the folder.
  549. * @param Google_ChildReference $postBody
  550. * @param array $optParams Optional parameters.
  551. * @return Google_ChildReference
  552. */
  553. public function insert($folderId, Google_ChildReference $postBody, $optParams = array()) {
  554. $params = array('folderId' => $folderId, 'postBody' => $postBody);
  555. $params = array_merge($params, $optParams);
  556. $data = $this->__call('insert', array($params));
  557. if ($this->useObjects()) {
  558. return new Google_ChildReference($data);
  559. } else {
  560. return $data;
  561. }
  562. }
  563. /**
  564. * Gets a specific child reference. (children.get)
  565. *
  566. * @param string $folderId The ID of the folder.
  567. * @param string $childId The ID of the child.
  568. * @param array $optParams Optional parameters.
  569. * @return Google_ChildReference
  570. */
  571. public function get($folderId, $childId, $optParams = array()) {
  572. $params = array('folderId' => $folderId, 'childId' => $childId);
  573. $params = array_merge($params, $optParams);
  574. $data = $this->__call('get', array($params));
  575. if ($this->useObjects()) {
  576. return new Google_ChildReference($data);
  577. } else {
  578. return $data;
  579. }
  580. }
  581. /**
  582. * Lists a folder's children. (children.list)
  583. *
  584. * @param string $folderId The ID of the folder.
  585. * @param array $optParams Optional parameters.
  586. *
  587. * @opt_param string q Query string for searching children.
  588. * @opt_param string pageToken Page token for children.
  589. * @opt_param int maxResults Maximum number of children to return.
  590. * @return Google_ChildList
  591. */
  592. public function listChildren($folderId, $optParams = array()) {
  593. $params = array('folderId' => $folderId);
  594. $params = array_merge($params, $optParams);
  595. $data = $this->__call('list', array($params));
  596. if ($this->useObjects()) {
  597. return new Google_ChildList($data);
  598. } else {
  599. return $data;
  600. }
  601. }
  602. /**
  603. * Removes a child from a folder. (children.delete)
  604. *
  605. * @param string $folderId The ID of the folder.
  606. * @param string $childId The ID of the child.
  607. * @param array $optParams Optional parameters.
  608. */
  609. public function delete($folderId, $childId, $optParams = array()) {
  610. $params = array('folderId' => $folderId, 'childId' => $childId);
  611. $params = array_merge($params, $optParams);
  612. $data = $this->__call('delete', array($params));
  613. return $data;
  614. }
  615. }
  616. /**
  617. * The "permissions" collection of methods.
  618. * Typical usage is:
  619. * <code>
  620. * $driveService = new Google_DriveService(...);
  621. * $permissions = $driveService->permissions;
  622. * </code>
  623. */
  624. class Google_PermissionsServiceResource extends Google_ServiceResource {
  625. /**
  626. * Inserts a permission for a file. (permissions.insert)
  627. *
  628. * @param string $fileId The ID for the file.
  629. * @param Google_Permission $postBody
  630. * @param array $optParams Optional parameters.
  631. *
  632. * @opt_param bool sendNotificationEmails Whether to send notification emails.
  633. * @return Google_Permission
  634. */
  635. public function insert($fileId, Google_Permission $postBody, $optParams = array()) {
  636. $params = array('fileId' => $fileId, 'postBody' => $postBody);
  637. $params = array_merge($params, $optParams);
  638. $data = $this->__call('insert', array($params));
  639. if ($this->useObjects()) {
  640. return new Google_Permission($data);
  641. } else {
  642. return $data;
  643. }
  644. }
  645. /**
  646. * Gets a permission by ID. (permissions.get)
  647. *
  648. * @param string $fileId The ID for the file.
  649. * @param string $permissionId The ID for the permission.
  650. * @param array $optParams Optional parameters.
  651. * @return Google_Permission
  652. */
  653. public function get($fileId, $permissionId, $optParams = array()) {
  654. $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
  655. $params = array_merge($params, $optParams);
  656. $data = $this->__call('get', array($params));
  657. if ($this->useObjects()) {
  658. return new Google_Permission($data);
  659. } else {
  660. return $data;
  661. }
  662. }
  663. /**
  664. * Lists a file's permissions. (permissions.list)
  665. *
  666. * @param string $fileId The ID for the file.
  667. * @param array $optParams Optional parameters.
  668. * @return Google_PermissionList
  669. */
  670. public function listPermissions($fileId, $optParams = array()) {
  671. $params = array('fileId' => $fileId);
  672. $params = array_merge($params, $optParams);
  673. $data = $this->__call('list', array($params));
  674. if ($this->useObjects()) {
  675. return new Google_PermissionList($data);
  676. } else {
  677. return $data;
  678. }
  679. }
  680. /**
  681. * Updates a permission. (permissions.update)
  682. *
  683. * @param string $fileId The ID for the file.
  684. * @param string $permissionId The ID for the permission.
  685. * @param Google_Permission $postBody
  686. * @param array $optParams Optional parameters.
  687. * @return Google_Permission
  688. */
  689. public function update($fileId, $permissionId, Google_Permission $postBody, $optParams = array()) {
  690. $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
  691. $params = array_merge($params, $optParams);
  692. $data = $this->__call('update', array($params));
  693. if ($this->useObjects()) {
  694. return new Google_Permission($data);
  695. } else {
  696. return $data;
  697. }
  698. }
  699. /**
  700. * Updates a permission. This method supports patch semantics. (permissions.patch)
  701. *
  702. * @param string $fileId The ID for the file.
  703. * @param string $permissionId The ID for the permission.
  704. * @param Google_Permission $postBody
  705. * @param array $optParams Optional parameters.
  706. * @return Google_Permission
  707. */
  708. public function patch($fileId, $permissionId, Google_Permission $postBody, $optParams = array()) {
  709. $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
  710. $params = array_merge($params, $optParams);
  711. $data = $this->__call('patch', array($params));
  712. if ($this->useObjects()) {
  713. return new Google_Permission($data);
  714. } else {
  715. return $data;
  716. }
  717. }
  718. /**
  719. * Deletes a permission from a file. (permissions.delete)
  720. *
  721. * @param string $fileId The ID for the file.
  722. * @param string $permissionId The ID for the permission.
  723. * @param array $optParams Optional parameters.
  724. */
  725. public function delete($fileId, $permissionId, $optParams = array()) {
  726. $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
  727. $params = array_merge($params, $optParams);
  728. $data = $this->__call('delete', array($params));
  729. return $data;
  730. }
  731. }
  732. /**
  733. * Service definition for Google_Drive (v2).
  734. *
  735. * <p>
  736. * The API to interact with Drive.
  737. * </p>
  738. *
  739. * <p>
  740. * For more information about this service, see the
  741. * <a href="https://developers.google.com/drive/" target="_blank">API Documentation</a>
  742. * </p>
  743. *
  744. * @author Google, Inc.
  745. */
  746. class Google_DriveService extends Google_Service {
  747. public $files;
  748. public $about;
  749. public $apps;
  750. public $parents;
  751. public $revisions;
  752. public $changes;
  753. public $children;
  754. public $permissions;
  755. /**
  756. * Constructs the internal representation of the Drive service.
  757. *
  758. * @param Google_Client $client
  759. */
  760. public function __construct(Google_Client $client) {
  761. $this->servicePath = 'drive/v2/';
  762. $this->version = 'v2';
  763. $this->serviceName = 'drive';
  764. $client->addService($this->serviceName, $this->version);
  765. $this->files = new Google_FilesServiceResource($this, $this->serviceName, 'files', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}}, "supportsMediaUpload": true, "request": {"$ref": "File"}, "mediaUpload": {"maxSize": "10GB", "protocols": {"simple": {"path": "/upload/drive/v2/files", "multipart": true}, "resumable": {"path": "/resumable/upload/drive/v2/files", "multipart": true}}, "accept": ["*/*"]}, "response": {"$ref": "File"}, "httpMethod": "POST", "path": "files", "id": "drive.files.insert"}, "untrash": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.untrash", "httpMethod": "POST", "path": "files/{fileId}/untrash", "response": {"$ref": "File"}}, "trash": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.trash", "httpMethod": "POST", "path": "files/{fileId}/trash", "response": {"$ref": "File"}}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"updateViewedDate": {"default": "false", "type": "boolean", "location": "query"}, "projection": {"enum": ["BASIC", "FULL"], "type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.get", "httpMethod": "GET", "path": "files/{fileId}", "response": {"$ref": "File"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projection": {"enum": ["BASIC", "FULL"], "type": "string", "location": "query"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}}, "response": {"$ref": "FileList"}, "httpMethod": "GET", "path": "files", "id": "drive.files.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "setModifiedDate": {"default": "false", "type": "boolean", "location": "query"}, "updateViewedDate": {"default": "true", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "newRevision": {"default": "true", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "supportsMediaUpload": true, "request": {"$ref": "File"}, "mediaUpload": {"maxSize": "10GB", "protocols": {"simple": {"path": "/upload/drive/v2/files/{fileId}", "multipart": true}, "resumable": {"path": "/resumable/upload/drive/v2/files/{fileId}", "multipart": true}}, "accept": ["*/*"]}, "response": {"$ref": "File"}, "httpMethod": "PUT", "path": "files/{fileId}", "id": "drive.files.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "setModifiedDate": {"default": "false", "type": "boolean", "location": "query"}, "updateViewedDate": {"default": "true", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "newRevision": {"default": "true", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "httpMethod": "PATCH", "path": "files/{fileId}", "id": "drive.files.patch"}, "touch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.touch", "httpMethod": "POST", "path": "files/{fileId}/touch", "response": {"$ref": "File"}}, "copy": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "httpMethod": "POST", "path": "files/{fileId}/copy", "id": "drive.files.copy"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}", "id": "drive.files.delete", "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  766. $this->about = new Google_AboutServiceResource($this, $this->serviceName, 'about', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"includeSubscribed": {"default": "true", "type": "boolean", "location": "query"}, "maxChangeIdCount": {"default": "1", "type": "string", "location": "query", "format": "int64"}, "startChangeId": {"type": "string", "location": "query", "format": "int64"}}, "response": {"$ref": "About"}, "httpMethod": "GET", "path": "about", "id": "drive.about.get"}}}', true));
  767. $this->apps = new Google_AppsServiceResource($this, $this->serviceName, 'apps', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/drive.apps.readonly"], "path": "apps", "response": {"$ref": "AppList"}, "id": "drive.apps.list", "httpMethod": "GET"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive.apps.readonly"], "parameters": {"appId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.apps.get", "httpMethod": "GET", "path": "apps/{appId}", "response": {"$ref": "App"}}}}', true));
  768. $this->parents = new Google_ParentsServiceResource($this, $this->serviceName, 'parents', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "ParentReference"}, "response": {"$ref": "ParentReference"}, "httpMethod": "POST", "path": "files/{fileId}/parents", "id": "drive.parents.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"parentId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.parents.get", "httpMethod": "GET", "path": "files/{fileId}/parents/{parentId}", "response": {"$ref": "ParentReference"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.parents.list", "httpMethod": "GET", "path": "files/{fileId}/parents", "response": {"$ref": "ParentList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/parents/{parentId}", "id": "drive.parents.delete", "parameters": {"parentId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  769. $this->revisions = new Google_RevisionsServiceResource($this, $this->serviceName, 'revisions', json_decode('{"methods": {"patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "httpMethod": "PATCH", "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.patch"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.revisions.get", "httpMethod": "GET", "path": "files/{fileId}/revisions/{revisionId}", "response": {"$ref": "Revision"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.revisions.list", "httpMethod": "GET", "path": "files/{fileId}/revisions", "response": {"$ref": "RevisionList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "httpMethod": "PUT", "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.update"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.delete", "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  770. $this->changes = new Google_ChangesServiceResource($this, $this->serviceName, 'changes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"includeSubscribed": {"default": "true", "type": "boolean", "location": "query"}, "startChangeId": {"type": "string", "location": "query", "format": "int64"}, "includeDeleted": {"default": "true", "type": "boolean", "location": "query"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "ChangeList"}, "httpMethod": "GET", "path": "changes", "id": "drive.changes.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"changeId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.changes.get", "httpMethod": "GET", "path": "changes/{changeId}", "response": {"$ref": "Change"}}}}', true));
  771. $this->children = new Google_ChildrenServiceResource($this, $this->serviceName, 'children', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "ChildReference"}, "response": {"$ref": "ChildReference"}, "httpMethod": "POST", "path": "files/{folderId}/children", "id": "drive.children.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}, "childId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.children.get", "httpMethod": "GET", "path": "files/{folderId}/children/{childId}", "response": {"$ref": "ChildReference"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "folderId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}}, "id": "drive.children.list", "httpMethod": "GET", "path": "files/{folderId}/children", "response": {"$ref": "ChildList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{folderId}/children/{childId}", "id": "drive.children.delete", "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}, "childId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  772. $this->permissions = new Google_PermissionsServiceResource($this, $this->serviceName, 'permissions', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"sendNotificationEmails": {"default": "true", "type": "boolean", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "POST", "path": "files/{fileId}/permissions", "id": "drive.permissions.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.permissions.get", "httpMethod": "GET", "path": "files/{fileId}/permissions/{permissionId}", "response": {"$ref": "Permission"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.permissions.list", "httpMethod": "GET", "path": "files/{fileId}/permissions", "response": {"$ref": "PermissionList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "PUT", "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "PATCH", "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.delete", "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  773. }
  774. }
  775. class Google_About extends Google_Model {
  776. public $kind;
  777. protected $__featuresType = 'Google_AboutFeatures';
  778. protected $__featuresDataType = 'array';
  779. public $features;
  780. public $quotaBytesUsed;
  781. public $permissionId;
  782. protected $__maxUploadSizesType = 'Google_AboutMaxUploadSizes';
  783. protected $__maxUploadSizesDataType = 'array';
  784. public $maxUploadSizes;
  785. public $name;
  786. public $remainingChangeIds;
  787. protected $__additionalRoleInfoType = 'Google_AboutAdditionalRoleInfo';
  788. protected $__additionalRoleInfoDataType = 'array';
  789. public $additionalRoleInfo;
  790. public $etag;
  791. protected $__importFormatsType = 'Google_AboutImportFormats';
  792. protected $__importFormatsDataType = 'array';
  793. public $importFormats;
  794. public $quotaBytesTotal;
  795. public $rootFolderId;
  796. public $largestChangeId;
  797. public $quotaBytesUsedInTrash;
  798. protected $__exportFormatsType = 'Google_AboutExportFormats';
  799. protected $__exportFormatsDataType = 'array';
  800. public $exportFormats;
  801. public $domainSharingPolicy;
  802. public $selfLink;
  803. public $isCurrentAppInstalled;
  804. public function setKind($kind) {
  805. $this->kind = $kind;
  806. }
  807. public function getKind() {
  808. return $this->kind;
  809. }
  810. public function setFeatures(/* array(Google_AboutFeatures) */ $features) {
  811. $this->assertIsArray($features, 'Google_AboutFeatures', __METHOD__);
  812. $this->features = $features;
  813. }
  814. public function getFeatures() {
  815. return $this->features;
  816. }
  817. public function setQuotaBytesUsed($quotaBytesUsed) {
  818. $this->quotaBytesUsed = $quotaBytesUsed;
  819. }
  820. public function getQuotaBytesUsed() {
  821. return $this->quotaBytesUsed;
  822. }
  823. public function setPermissionId($permissionId) {
  824. $this->permissionId = $permissionId;
  825. }
  826. public function getPermissionId() {
  827. return $this->permissionId;
  828. }
  829. public function setMaxUploadSizes(/* array(Google_AboutMaxUploadSizes) */ $maxUploadSizes) {
  830. $this->assertIsArray($maxUploadSizes, 'Google_AboutMaxUploadSizes', __METHOD__);
  831. $this->maxUploadSizes = $maxUploadSizes;
  832. }
  833. public function getMaxUploadSizes() {
  834. return $this->maxUploadSizes;
  835. }
  836. public function setName($name) {
  837. $this->name = $name;
  838. }
  839. public function getName() {
  840. return $this->name;
  841. }
  842. public function setRemainingChangeIds($remainingChangeIds) {
  843. $this->remainingChangeIds = $remainingChangeIds;
  844. }
  845. public function getRemainingChangeIds() {
  846. return $this->remainingChangeIds;
  847. }
  848. public function setAdditionalRoleInfo(/* array(Google_AboutAdditionalRoleInfo) */ $additionalRoleInfo) {
  849. $this->assertIsArray($additionalRoleInfo, 'Google_AboutAdditionalRoleInfo', __METHOD__);
  850. $this->additionalRoleInfo = $additionalRoleInfo;
  851. }
  852. public function getAdditionalRoleInfo() {
  853. return $this->additionalRoleInfo;
  854. }
  855. public function setEta

Large files files are truncated, but you can click here to view the full file