PageRenderTime 55ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

/htdocs/xampp/src/contrib/Google_DriveService.php

https://bitbucket.org/adarshj/convenient_website
PHP | 2157 lines | 1690 code | 54 blank | 413 comment | 58 complexity | 49689e610b50e54ffb37fc09bb7bcf31 MD5 | raw file
Possible License(s): Apache-2.0, MPL-2.0-no-copyleft-exception, LGPL-2.1, BSD-2-Clause, GPL-2.0, LGPL-3.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 "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 setEtag($etag) {
  856. $this->etag = $etag;
  857. }
  858. public function getEtag() {
  859. return $this->etag;
  860. }
  861. public function setImportFormats(/* array(Google_AboutImportFormats) */ $importFormats) {
  862. $this->assertIsArray($importFormats, 'Google_AboutImportFormats', __METHOD__);
  863. $this->importFormats = $importFormats;
  864. }
  865. public function getImportFormats() {
  866. return $this->importFormats;
  867. }
  868. public function setQuotaBytesTotal($quotaBytesTotal) {
  869. $this->quotaBytesTotal = $quotaBytesTotal;
  870. }
  871. public function getQuotaBytesTotal() {
  872. return $this->quotaBytesTotal;
  873. }
  874. public function setRootFolderId($rootFolderId) {
  875. $this->rootFolderId = $rootFolderId;
  876. }
  877. public function getRootFolderId() {
  878. return $this->rootFolderId;
  879. }
  880. public function setLargestChangeId($largestChangeId) {
  881. $this->largestChangeId = $largestChangeId;
  882. }
  883. public function getLargestChangeId() {
  884. return $this->largestChangeId;
  885. }
  886. public function setQuotaBytesUsedInTrash($quotaBytesUsedInTrash) {
  887. $this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash;
  888. }
  889. public function getQuotaBytesUsedInTrash() {
  890. return $this->quotaBytesUsedInTrash;
  891. }
  892. public function setExportFormats(/* array(Google_AboutExportFormats) */ $exportFormats) {
  893. $this->assertIsArray($exportFormats, 'Google_AboutExportFormats', __METHOD__);
  894. $this->exportFormats = $exportFormats;
  895. }
  896. public function getExportFormats() {
  897. return $this->exportFormats;
  898. }
  899. public function setDomainSharingPolicy($domainSharingPolicy) {
  900. $this->domainSharingPolicy = $domainSharingPolicy;
  901. }
  902. public function getDomainSharingPolicy() {
  903. return $this->domainSharingPolicy;
  904. }
  905. public function setSelfLink($selfLink) {
  906. $this->selfLink = $selfLink;
  907. }
  908. public function getSelfLink() {
  909. return $this->selfLink;
  910. }
  911. public function setIsCurrentAppInstalled($isCurrentAppInstalled) {
  912. $this->isCurrentAppInstalled = $isCurrentAppInstalled;
  913. }
  914. public function getIsCurrentAppInstalled() {
  915. return $this->isCurrentAppInstalled;
  916. }
  917. }
  918. class Google_AboutAdditionalRoleInfo extends Google_Model {
  919. protected $__roleSetsType = 'Google_AboutAdditionalRoleInfoRoleSets';
  920. protected $__roleSetsDataType = 'array';
  921. public $roleSets;
  922. public $type;
  923. public function setRoleSets(/* array(Google_AboutAdditionalRoleInfoRoleSets) */ $roleSets) {
  924. $this->assertIsArray($roleSets, 'Google_AboutAdditionalRoleInfoRoleSets', __METHOD__);
  925. $this->roleSets = $roleSets;
  926. }
  927. public function getRoleSets() {
  928. return $this->roleSets;
  929. }
  930. public function setType($type) {
  931. $this->type = $type;
  932. }
  933. public function getType() {
  934. return $this->type;
  935. }
  936. }
  937. class Google_AboutAdditionalRoleInfoRoleSets extends Google_Model {
  938. public $primaryRole;
  939. public $additionalRoles;
  940. public function setPrimaryRole($primaryRole) {
  941. $this->primaryRole = $primaryRole;
  942. }
  943. public function getPrimaryRole() {
  944. return $this->primaryRole;
  945. }
  946. public function setAdditionalRoles(/* array(Google_string) */ $additionalRoles) {
  947. $this->assertIsArray($additionalRoles, 'Google_string', __METHOD__);
  948. $this->additionalRoles = $additionalRoles;
  949. }
  950. public function getAdditionalRoles() {
  951. return $this->additionalRoles;
  952. }
  953. }
  954. class Google_AboutExportFormats extends Google_Model {
  955. public $source;
  956. public $targets;
  957. public function setSource($source) {
  958. $this->source = $source;
  959. }
  960. public function getSource() {
  961. return $this->source;
  962. }
  963. public function setTargets(/* array(Google_string) */ $targets) {
  964. $this->assertIsArray($targets, 'Google_string', __METHOD__);
  965. $this->targets = $targets;
  966. }
  967. public function getTargets() {
  968. return $this->targets;
  969. }
  970. }
  971. class Google_AboutFeatures extends Google_Model {
  972. public $featureName;
  973. public $featureRate;
  974. public function setFeatureName($featureName) {
  975. $this->featureName = $featureName;
  976. }
  977. public function getFeatureName() {
  978. return $this->featureName;
  979. }
  980. public function setFeatureRate($featureRate) {
  981. $this->featureRate = $featureRate;
  982. }
  983. public function getFeatureRate() {
  984. return $this->featureRate;
  985. }
  986. }
  987. class Google_AboutImportFormats extends Google_Model {
  988. public $source;
  989. public $targets;
  990. public function setSource($source) {
  991. $this->source = $source;
  992. }
  993. public function getSource() {
  994. return $this->source;
  995. }
  996. public function setTargets(/* array(Google_string) */ $targets) {
  997. $this->assertIsArray($targets, 'Google_string', __METHOD__);
  998. $this->targets = $targets;
  999. }
  1000. public function getTargets() {
  1001. return $this->targets;
  1002. }
  1003. }
  1004. class Google_AboutMaxUploadSizes extends Google_Model {
  1005. public $type;
  1006. public $size;
  1007. public function setType($type) {
  1008. $this->type = $type;
  1009. }
  1010. public function getType() {
  1011. return $this->type;
  1012. }
  1013. public function setSize($size) {
  1014. $this->size = $size;
  1015. }
  1016. public function getSize() {
  1017. return $this->size;
  1018. }
  1019. }
  1020. class Google_App extends Google_Model {
  1021. public $kind;
  1022. public $primaryFileExtensions;
  1023. public $useByDefault;
  1024. public $name;
  1025. protected $__iconsType = 'Google_AppIcons';
  1026. protected $__iconsDataType = 'array';
  1027. public $icons;
  1028. public $secondaryFileExtensions;
  1029. public $installed;
  1030. public $productUrl;
  1031. public $secondaryMimeTypes;
  1032. public $authorized;
  1033. public $supportsCreate;
  1034. public $supportsImport;
  1035. public $primaryMimeTypes;
  1036. public $id;
  1037. public $objectType;
  1038. public function setKind($kind) {
  1039. $this->kind = $kind;
  1040. }
  1041. public function getKind() {
  1042. return $this->kind;
  1043. }
  1044. public function setPrimaryFileExtensions(/* array(Google_string) */ $primaryFileExtensions) {
  1045. $this->assertIsArray($primaryFileExtensions, 'Google_string', __METHOD__);
  1046. $this->primaryFileExtensions = $primaryFileExtensions;
  1047. }
  1048. public function getPrimaryFileExtensions() {
  1049. return $this->primaryFileExtensions;
  1050. }
  1051. public function setUseByDefault($useByDefault) {
  1052. $this->useByDefault = $useByDefault;
  1053. }
  1054. public function getUseByDefault() {
  1055. return $this->useByDefault;
  1056. }
  1057. public function setName($name) {
  1058. $this->name = $name;
  1059. }
  1060. public function getName() {
  1061. return $this->name;
  1062. }
  1063. public function setIcons(/* array(Google_AppIcons) */ $icons) {
  1064. $this->assertIsArray($icons, 'Google_AppIcons', __METHOD__);
  1065. $this->icons = $icons;
  1066. }
  1067. public function getIcons() {
  1068. return $this->icons;
  1069. }
  1070. public function setSecondaryFileExtensions(/* array(Google_string) */ $secondaryFileExtensions) {
  1071. $this->assertIsArray($secondaryFileExtensions, 'Google_string', __METHOD__);
  1072. $this->secondaryFileExtensions = $secondaryFileExtensions;
  1073. }
  1074. public function getSecondaryFileExtensions() {
  1075. return $this->secondaryFileExtensions;
  1076. }
  1077. public function setInstalled($installed) {
  1078. $this->installed = $installed;
  1079. }
  1080. public function getInstalled() {
  1081. return $this->installed;
  1082. }
  1083. public function setProductUrl($productUrl) {
  1084. $this->productUrl = $productUrl;
  1085. }
  1086. public function getProductUrl() {
  1087. return $this->productUrl;
  1088. }
  1089. public function setSecondaryMimeTypes(/* array(Google_string) */ $secondaryMimeTypes) {
  1090. $this->assertIsArray($secondaryMimeTypes, 'Google_string', __METHOD__);
  1091. $this->secondaryMimeTypes = $secondaryMimeTypes;
  1092. }
  1093. public function getSecondaryMimeTypes() {
  1094. return $this->secondaryMimeTypes;
  1095. }
  1096. public function setAuthorized($authorized) {
  1097. $this->authorized = $authorized;
  1098. }
  1099. public function getAuthorized() {
  1100. return $this->authorized;
  1101. }
  1102. public function setSupportsCreate($supportsCreate) {
  1103. $this->supportsCreate = $supportsCreate;
  1104. }
  1105. public function getSupportsCreate() {
  1106. return $this->supportsCreate;
  1107. }
  1108. public function setSupportsImport($supportsImport) {
  1109. $this->supportsImport = $supportsImport;
  1110. }
  1111. public function getSupportsImport() {
  1112. return $this->supportsImport;
  1113. }
  1114. public function setPrimaryMimeTypes(/* array(Google_string) */ $primaryMimeTypes) {
  1115. $this->assertIsArray($primaryMimeTypes, 'Google_string', __METHOD__);
  1116. $this->primaryMimeTypes = $primaryMimeTypes;
  1117. }
  1118. public function getPrimaryMimeTypes() {
  1119. return $this->primaryMimeTypes;
  1120. }
  1121. public function setId($id) {
  1122. $this->id = $id;
  1123. }
  1124. public function getId() {
  1125. return $this->id;
  1126. }
  1127. public function setObjectType($objectType) {
  1128. $this->objectType = $objectType;
  1129. }
  1130. public function getObjectType() {
  1131. return $this->objectType;
  1132. }
  1133. }
  1134. class Google_AppIcons extends Google_Model {
  1135. public $category;
  1136. public $iconUrl;
  1137. public $size;
  1138. public function setCategory($category) {
  1139. $this->category = $category;
  1140. }
  1141. public function getCategory() {
  1142. return $this->category;
  1143. }
  1144. public function setIconUrl($iconUrl) {
  1145. $this->iconUrl = $iconUrl;
  1146. }
  1147. public function getIconUrl() {
  1148. return $this->iconUrl;
  1149. }
  1150. public function setSize($size) {
  1151. $this->size = $size;
  1152. }
  1153. public function getSize() {
  1154. return $this->size;
  1155. }
  1156. }
  1157. class Google_AppList extends Google_Model {
  1158. protected $__itemsType = 'Google_App';
  1159. protected $__itemsDataType = 'array';
  1160. public $items;
  1161. public $kind;
  1162. public $etag;
  1163. public $selfLink;
  1164. public function setItems(/* array(Google_App) */ $items) {
  1165. $this->assertIsArray($items, 'Google_App', __METHOD__);
  1166. $this->items = $items;
  1167. }
  1168. public function getItems() {
  1169. return $this->items;
  1170. }
  1171. public function setKind($kind) {
  1172. $this->kind = $kind;
  1173. }
  1174. public function getKind() {
  1175. return $this->kind;
  1176. }
  1177. public function setEtag($etag) {
  1178. $this->etag = $etag;
  1179. }
  1180. public function getEtag() {
  1181. return $this->etag;
  1182. }
  1183. public function setSelfLink($selfLink) {
  1184. $this->selfLink = $selfLink;
  1185. }
  1186. public function getSelfLink() {
  1187. return $this->selfLink;
  1188. }
  1189. }
  1190. class Google_Change extends Google_Model {
  1191. public $kind;
  1192. public $deleted;
  1193. protected $__fileType = 'Google_DriveFile';
  1194. protected $__fileDataType = '';
  1195. public $file;
  1196. public $id;
  1197. public $selfLink;
  1198. public $fileId;
  1199. public function setKind($kind) {
  1200. $this->kind = $kind;
  1201. }
  1202. public function getKind() {
  1203. return $this->kind;
  1204. }
  1205. public function setDeleted($deleted) {
  1206. $this->deleted = $deleted;
  1207. }
  1208. public function getDeleted() {
  1209. return $this->deleted;
  1210. }
  1211. public function setFile(Google_DriveFile $file) {
  1212. $this->file = $file;
  1213. }
  1214. public function getFile() {
  1215. return $this->file;
  1216. }
  1217. public function setId($id) {
  1218. $this->id = $id;
  1219. }
  1220. public function getId() {
  1221. return $this->id;
  1222. }
  1223. public function setSelfLink($selfLink) {
  1224. $this->selfLink = $selfLink;
  1225. }
  1226. public function getSelfLink() {
  1227. return $this->selfLink;
  1228. }
  1229. public function setFileId($fileId) {
  1230. $this->fileId = $fileId;
  1231. }
  1232. public function getFileId() {
  1233. return $this->fileId;
  1234. }
  1235. }
  1236. class Google_ChangeList extends Google_Model {
  1237. public $nextPageToken;
  1238. public $kind;
  1239. protected $__itemsType = 'Google_Change';
  1240. protected $__itemsDataType = 'array';
  1241. public $items;
  1242. public $nextLink;
  1243. public $etag;
  1244. public $largestChangeId;
  1245. public $selfLink;
  1246. public function setNextPageToken($nextPageToken) {
  1247. $this->nextPageToken = $nextPageToken;
  1248. }
  1249. public function getNextPageToken() {
  1250. return $this->nextPageToken;
  1251. }
  1252. public function setKind($kind) {
  1253. $this->kind = $kind;
  1254. }
  1255. public function getKind() {
  1256. return $this->kind;
  1257. }
  1258. public function setItems(/* array(Google_Change) */ $items) {
  1259. $this->assertIsArray($items, 'Google_Change', __METHOD__);
  1260. $this->items = $items;
  1261. }
  1262. public function getItems() {
  1263. return $this->items;
  1264. }
  1265. public function setNextLink($nextLink) {
  1266. $this->nextLink = $nextLink;
  1267. }
  1268. public function getNextLink() {
  1269. return $this->nextLink;
  1270. }
  1271. public function setEtag($etag) {
  1272. $this->etag = $etag;
  1273. }
  1274. public function getEtag() {
  1275. return $this->etag;
  1276. }
  1277. public function setLargestChangeId($largestChangeId) {
  1278. $this->largestChangeId = $largestChangeId;
  1279. }
  1280. public function getLargestChangeId() {
  1281. return $this->largestChangeId;
  1282. }
  1283. public function setSelfLink($selfLink) {
  1284. $this->selfLink = $selfLink;
  1285. }
  1286. public function getSelfLink() {
  1287. return $this->selfLink;
  1288. }
  1289. }
  1290. class Google_ChildList extends Google_Model {
  1291. public $nextPageToken;
  1292. public $kind;
  1293. protected $__itemsType = 'Google_ChildReference';
  1294. protected $__itemsDataType = 'array';
  1295. public $items;
  1296. public $nextLink;
  1297. public $etag;
  1298. public $selfLink;
  1299. public function setNextPageToken($nextPageToken) {
  1300. $this->nextPageToken = $nextPageToken;
  1301. }
  1302. public function getNextPageToken() {
  1303. return $this->nextPageToken;
  1304. }
  1305. public function setKind($kind) {
  1306. $this->kind = $kind;
  1307. }
  1308. public function getKind() {
  1309. return $this->kind;
  1310. }
  1311. public function setItems(/* array(Google_ChildReference) */ $items) {
  1312. $this->assertIsArray($items, 'Google_ChildReference', __METHOD__);
  1313. $this->items = $items;
  1314. }
  1315. public function getItems() {
  1316. return $this->items;
  1317. }
  1318. public function setNextLink($nextLink) {
  1319. $this->nextLink = $nextLink;
  1320. }
  1321. public function getNextLink() {
  1322. return $this->nextLink;
  1323. }
  1324. public function setEtag($etag) {
  1325. $this->etag = $etag;
  1326. }
  1327. public function getEtag() {
  1328. return $this->etag;
  1329. }
  1330. public function setSelfLink($selfLink) {
  1331. $this->selfLink = $selfLink;
  1332. }
  1333. public function getSelfLink() {
  1334. return $this->selfLink;
  1335. }
  1336. }
  1337. class Google_ChildReference extends Google_Model {
  1338. public $kind;
  1339. public $childLink;
  1340. public $id;
  1341. public $selfLink;
  1342. public function setKind($kind) {
  1343. $this->kind = $kind;
  1344. }
  1345. public function getKind() {
  1346. return $this->kind;
  1347. }
  1348. public function setChildLink($childLink) {
  1349. $this->childLink = $childLink;
  1350. }
  1351. public function getChildLink() {
  1352. return $this->childLink;
  1353. }
  1354. public function setId($id) {
  1355. $this->id = $id;
  1356. }
  1357. public function getId() {
  1358. return $this->id;
  1359. }
  1360. public function setSelfLink($selfLink) {
  1361. $this->selfLink = $selfLink;
  1362. }
  1363. public function getSelfLink() {
  1364. return $this->selfLink;
  1365. }
  1366. }
  1367. class Google_DriveFile extends Google_Model {
  1368. public $mimeType;
  1369. public $thumbnailLink;
  1370. protected $__labelsType = 'Google_DriveFileLabels';
  1371. protected $__labelsDataType = '';
  1372. public $labels;
  1373. protected $__indexableTextType = 'Google_DriveFileIndexableText';
  1374. protected $__indexableTextDataType = '';
  1375. public $indexableText;
  1376. public $explicitlyTrashed;
  1377. public $etag;
  1378. public $lastModifyingUserName;
  1379. public $writersCanShare;
  1380. public $id;
  1381. public $title;
  1382. public $ownerNames;
  1383. public $sharedWithMeDate;
  1384. public $lastViewedByMeDate;
  1385. protected $__parentsType = 'Google_ParentReference';
  1386. protected $__parentsDataType = 'array';
  1387. public $parents;
  1388. public $exportLinks;
  1389. public $originalFilename;
  1390. public $description;
  1391. public $webContentLink;
  1392. public $editable;
  1393. public $kind;
  1394. public $quotaBytesUsed;
  1395. public $fileSize;
  1396. public $createdDate;
  1397. public $md5Checksum;
  1398. protected $__imageMediaMetadataType = 'Google_DriveFileImageMediaMetadata';
  1399. protected $__imageMediaMetadataDataType = '';
  1400. public $imageMediaMetadata;
  1401. public $embedLink;
  1402. public $alternateLink;
  1403. public $modifiedByMeDate;
  1404. public $downloadUrl;
  1405. protected $__userPermissionType = 'Google_Permission';
  1406. protected $__userPermissionDataType = '';
  1407. public $userPermission;
  1408. public $fileExtension;
  1409. public $selfLink;
  1410. public $modifiedDate;
  1411. public function setMimeType($mimeType) {
  1412. $this->mimeType = $mimeType;
  1413. }
  1414. public function getMimeType() {
  1415. return $this->mimeType;
  1416. }
  1417. public function setThumbnailLink($thumbnailLink) {
  1418. $this->thumbnailLink = $thumbnailLink;
  1419. }
  1420. public function getThumbnailLink() {
  1421. return $this->thumbnailLink;
  1422. }
  1423. public function setLabels(Google_DriveFileLabels $labels) {
  1424. $this->labels = $labels;
  1425. }
  1426. public function getLabels() {
  1427. return $this->labels;
  1428. }
  1429. public function setIndexableText(Google_DriveFileIndexableText $indexableText) {
  1430. $this->indexableText = $indexableText;
  1431. }
  1432. public function getIndexableText() {
  1433. return $this->indexableText;
  1434. }
  1435. public function setExplicitlyTrashed($explicitlyTrashed) {
  1436. $this->explicitlyTrashed = $explicitlyTrashed;
  1437. }
  1438. public function getExplicitlyTrashed() {
  1439. return $this->explicitlyTrashed;
  1440. }
  1441. public function setEtag($etag) {
  1442. $this->etag = $etag;
  1443. }
  1444. public function getEtag() {
  1445. return $this->etag;
  1446. }
  1447. public function setLastModifyingUserName($lastModifyingUserName) {
  1448. $this->lastModifyingUserName = $lastModifyingUserName;
  1449. }
  1450. public function getLastModifyingUserName() {
  1451. return $this->lastModifyingUserName;
  1452. }
  1453. public function setWritersCanShare($writersCanShare) {
  1454. $this->writersCanShare = $writersCanShare;
  1455. }
  1456. public function getWritersCanShare() {
  1457. return $this->writersCanShare;
  1458. }
  1459. public function setId($id) {
  1460. $this->id = $id;
  1461. }
  1462. public function getId() {
  1463. return $this->id;
  1464. }
  1465. public function setTitle($title) {
  1466. $this->title = $title;
  1467. }
  1468. public function getTitle() {
  1469. return $this->title;
  1470. }
  1471. public function setOwnerNames(/* array(Google_string) */ $ownerNames) {
  1472. $this->assertIsArray($ownerNames, 'Google_string', __METHOD__);
  1473. $this->ownerNames = $ownerNames;
  1474. }
  1475. public function getOwnerNames() {
  1476. return $this->ownerNames;
  1477. }
  1478. public function setSharedWithMeDate($sharedWithMeDate) {
  1479. $this->sharedWithMeDate = $sharedWithMeDate;
  1480. }
  1481. public function getSharedWithMeDate() {
  1482. return $this->sharedWithMeDate;
  1483. }
  1484. public function setLastViewedByMeDate($lastViewedByMeDate) {
  1485. $this->lastViewedByMeDate = $lastViewedByMeDate;
  1486. }
  1487. public function getLastViewedByMeDate() {
  1488. return $this->lastViewedByMeDate;
  1489. }
  1490. public function setParents(/* array(Google_ParentReference) */ $parents) {
  1491. $this->assertIsArray($parents, 'Google_ParentReference', __METHOD__);
  1492. $this->parents = $parents;
  1493. }
  1494. public function getParents() {
  1495. return $this->parents;
  1496. }
  1497. public function setExportLinks($exportLinks) {
  1498. $this->exportLinks = $exportLinks;
  1499. }
  1500. public function getExportLinks() {
  1501. return $this->exportLinks;
  1502. }
  1503. public function setOriginalFilename($originalFilename) {
  1504. $this->originalFilename = $originalFilename;
  1505. }
  1506. public function getOriginalFilename() {
  1507. return $this->originalFilename;
  1508. }
  1509. public function setDescription($description) {
  1510. $this->description = $description;
  1511. }
  1512. public function getDescription() {
  1513. return $this->description;
  1514. }
  1515. public function setWebContentLink($webContentLink) {
  1516. $this->webContentLink = $webContentLink;
  1517. }
  1518. public function getWebContentLink() {
  1519. return $this->webContentLink;
  1520. }
  1521. public function setEditable($editable) {
  1522. $this->editable = $editable;
  1523. }
  1524. public function getEditable() {
  1525. return $this->editable;
  1526. }
  1527. public function setKind($kind) {
  1528. $this->kind = $kind;
  1529. }
  1530. public function getKind() {
  1531. return $this->kind;
  1532. }
  1533. public function setQuotaBytesUsed($quotaBytesUsed) {
  1534. $this->quotaBytesUsed = $quotaBytesUsed;
  1535. }
  1536. public function getQuotaBytesUsed() {
  1537. return $this->quotaBytesUsed;
  1538. }
  1539. public function setFileSize($fileSize) {
  1540. $this->fileSize = $fileSize;
  1541. }
  1542. public function getFileSize() {
  1543. return $this->fileSize;
  1544. }
  1545. public function setCreatedDate($createdDate) {
  1546. $this->createdDate = $createdDate;
  1547. }
  1548. public function getCreatedDate() {
  1549. return $this->createdDate;
  1550. }
  1551. public function setMd5Checksum($md5Checksum) {
  1552. $this->md5Checksum = $md5Checksum;
  1553. }
  1554. public function getMd5Checksum() {
  1555. return $this->md5Checksum;
  1556. }
  1557. public function setImageMediaMetadata(Google_DriveFileImageMediaMetadata $imageMediaMetadata) {
  1558. $this->imageMediaMetadata = $imageMediaMetadata;
  1559. }
  1560. public function getImageMediaMetadata() {
  1561. return $this->imageMediaMetadata;
  1562. }
  1563. public function setEmbedLink($embedLink) {
  1564. $this->embedLink = $embedLink;
  1565. }
  1566. public function getEmbedLink() {
  1567. return $this->embedLink;
  1568. }
  1569. public function setAlternateLink($alternateLink) {
  1570. $this->alternateLink = $alternateLink;
  1571. }
  1572. public function getAlternateLink() {
  1573. return $this->alternateLink;
  1574. }
  1575. public function setModifiedByMeDate($modifiedByMeDate) {
  1576. $this->modifiedByMeDate = $modifiedByMeDate;
  1577. }
  1578. public function getModifiedByMeDate() {
  1579. return $this->modifiedByMeDate;
  1580. }
  1581. public function setDownloadUrl($downloadUrl) {
  1582. $this->downloadUrl = $downloadUrl;
  1583. }
  1584. public function getDownloadUrl() {
  1585. return $this->downloadUrl;
  1586. }
  1587. public function setUserPermission(Google_Permission $userPermission) {
  1588. $this->userPermission = $userPermission;
  1589. }
  1590. public function getUserPermission() {
  1591. return $this->userPermission;
  1592. }
  1593. public function setFileExtension($fileExtension) {
  1594. $this->fileExtension = $fileExtension;
  1595. }
  1596. public function getFileExtension() {
  1597. return $this->fileExtension;
  1598. }
  1599. public function setSelfLink($selfLink) {
  1600. $this->selfLink = $selfLink;
  1601. }
  1602. public function getSelfLink() {
  1603. return $this->selfLink;
  1604. }
  1605. public function setModifiedDate($modifiedDate) {
  1606. $this->modifiedDate = $modifiedDate;
  1607. }
  1608. public function getModifiedDate() {
  1609. return $this->modifiedDate;
  1610. }
  1611. }
  1612. class Google_DriveFileImageMediaMetadata extends Google_Model {
  1613. public $width;
  1614. public $rotation;
  1615. protected $__locationType = 'Google_DriveFileImageMediaMetadataLocation';
  1616. protected $__locationDataType = '';
  1617. public $location;
  1618. public $height;
  1619. public function setWidth($width) {
  1620. $this->width = $width;
  1621. }
  1622. public function getWidth() {
  1623. return $this->width;
  1624. }
  1625. public function setRotation($rotation) {
  1626. $this->rotation = $rotation;
  1627. }
  1628. public function getRotation() {
  1629. return $this->rotation;
  1630. }
  1631. public function setLocation(Google_DriveFileImageMediaMetadataLocation $location) {
  1632. $this->location = $location;
  1633. }
  1634. public function getLocation() {
  1635. return $this->location;
  1636. }
  1637. public function setHeight($height) {
  1638. $this->height = $height;
  1639. }
  1640. public function getHeight() {
  1641. return $this->height;
  1642. }
  1643. }
  1644. class Google_DriveFileImageMediaMetadataLocation extends Google_Model {
  1645. public $latitude;
  1646. public $altitude;
  1647. public $longitude;
  1648. public function setLatitude($latitude) {
  1649. $this->latitude = $latitude;
  1650. }
  1651. public function getLatitude() {
  1652. return $this->latitude;
  1653. }
  1654. public function setAltitude($altitude) {
  1655. $this->altitude = $altitude;
  1656. }
  1657. public function getAltitude() {
  1658. return $this->altitude;
  1659. }
  1660. public function setLongitude($longitude) {
  1661. $this->longitude = $longitude;
  1662. }
  1663. public function getLongitude() {
  1664. return $this->longitude;
  1665. }
  1666. }
  1667. class Google_DriveFileIndexableText extends Google_Model {
  1668. public $text;
  1669. public function setText($text) {
  1670. $this->text = $text;
  1671. }
  1672. public function getText() {
  1673. return $this->text;
  1674. }
  1675. }
  1676. class Google_DriveFileLabels extends Google_Model {
  1677. public $restricted;
  1678. public $hidden;
  1679. public $viewed;
  1680. public $starred;
  1681. public $trashed;
  1682. public function setRestricted($restricted) {
  1683. $this->restricted = $restricted;
  1684. }
  1685. public function getRestricted() {
  1686. return $this->restricted;
  1687. }
  1688. public function setHidden($hidden) {
  1689. $this->hidden = $hidden;
  1690. }
  1691. public function getHidden() {
  1692. return $this->hidden;
  1693. }
  1694. public function setViewed($viewed) {
  1695. $this->viewed = $viewed;
  1696. }
  1697. public function getViewed() {
  1698. return $this->viewed;
  1699. }
  1700. public function setStarred($starred) {
  1701. $this->starred = $starred;
  1702. }
  1703. public function getStarred() {
  1704. return $this->starred;
  1705. }
  1706. public function setTrashed($trashed) {
  1707. $this->trashed = $trashed;
  1708. }
  1709. public function getTrashed() {
  1710. return $this->trashed;
  1711. }
  1712. }
  1713. class Google_FileList extends Google_Model {
  1714. public $nextPageToken;
  1715. public $kind;
  1716. protected $__itemsType = 'Google_DriveFile';
  1717. protected $__itemsDataType = 'array';
  1718. public $items;
  1719. public $nextLink;
  1720. public $etag;
  1721. public $selfLink;
  1722. public function setNextPageToken($nextPageToken) {
  1723. $this->nextPageToken = $nextPageToken;
  1724. }
  1725. public function getNextPageToken() {
  1726. return $this->nextPageToken;
  1727. }
  1728. public function setKind($kind) {
  1729. $this->kind = $kind;
  1730. }
  1731. public function getKind() {
  1732. return $this->kind;
  1733. }
  1734. public function setItems(/* array(Google_DriveFile) */ $items) {
  1735. $this->assertIsArray($items, 'Google_DriveFile', __METHOD__);
  1736. $this->items = $items;
  1737. }
  1738. public function getItems() {
  1739. return $this->items;
  1740. }
  1741. public function setNextLink($nextLink) {
  1742. $this->nextLink = $nextLink;
  1743. }
  1744. public function getNextLink() {
  1745. return $this->nextLink;
  1746. }
  1747. public function setEtag($etag) {
  1748. $this->etag = $etag;
  1749. }
  1750. public function getEtag() {
  1751. return $this->etag;
  1752. }
  1753. public function setSelfLink($selfLink) {
  1754. $this->selfLink = $selfLink;
  1755. }
  1756. public function getSelfLink() {
  1757. return $this->selfLink;
  1758. }
  1759. }
  1760. class Google_ParentList extends Google_Model {
  1761. protected $__itemsType = 'Google_ParentReference';
  1762. protected $__itemsDataType = 'array';
  1763. public $items;
  1764. public $kind;
  1765. public $etag;
  1766. public $selfLink;
  1767. public function setItems(/* array(Google_ParentReference) */ $items) {
  1768. $this->assertIsArray($items, 'Google_ParentReference', __METHOD__);
  1769. $this->items = $items;
  1770. }
  1771. public function getItems() {
  1772. return $this->items;
  1773. }
  1774. public function setKind($kind) {
  1775. $this->kind = $kind;
  1776. }
  1777. public function getKind() {
  1778. return $this->kind;
  1779. }
  1780. public function setEtag($etag) {
  1781. $this->etag = $etag;
  1782. }
  1783. public function getEtag() {
  1784. return $this->etag;
  1785. }
  1786. public function setSelfLink($selfLink) {
  1787. $this->selfLink = $selfLink;
  1788. }
  1789. public function getSelfLink() {
  1790. return $this->selfLink;
  1791. }
  1792. }
  1793. class Google_ParentReference extends Google_Model {
  1794. public $selfLink;
  1795. public $kind;
  1796. public $id;
  1797. public $isRoot;
  1798. public $parentLink;
  1799. public function setSelfLink($selfLink) {
  1800. $this->selfLink = $selfLink;
  1801. }
  1802. public function getSelfLink() {
  1803. return $this->selfLink;
  1804. }
  1805. public function setKind($kind) {
  1806. $this->kind = $kind;
  1807. }
  1808. public function getKind() {
  1809. return $this->kind;
  1810. }
  1811. public function setId($id) {
  1812. $this->id = $id;
  1813. }
  1814. public function getId() {
  1815. return $this->id;
  1816. }
  1817. public function setIsRoot($isRoot) {
  1818. $this->isRoot = $isRoot;
  1819. }
  1820. public function getIsRoot() {
  1821. return $this->isRoot;
  1822. }
  1823. public function setParentLink($parentLink) {
  1824. $this->parentLink = $parentLink;
  1825. }
  1826. public function getParentLink() {
  1827. return $this->parentLink;
  1828. }
  1829. }
  1830. class Google_Permission extends Google_Model {
  1831. public $withLink;
  1832. public $kind;
  1833. public $name;
  1834. public $value;
  1835. public $id;
  1836. public $authKey;
  1837. public $etag;
  1838. public $role;
  1839. public $photoLink;
  1840. public $type;
  1841. public $additionalRoles;
  1842. public $selfLink;
  1843. public function setWithLink($withLink) {
  1844. $this->withLink = $withLink;
  1845. }
  1846. public function getWithLink() {
  1847. return $this->withLink;
  1848. }
  1849. public function setKind($kind) {
  1850. $this->kind = $kind;
  1851. }
  1852. public function getKind() {
  1853. return $this->kind;
  1854. }
  1855. public function setName($name) {
  1856. $this->name = $name;
  1857. }
  1858. public function getName() {
  1859. return $this->name;
  1860. }
  1861. public function setValue($value) {
  1862. $this->value = $value;
  1863. }
  1864. public function getValue() {
  1865. return $this->value;
  1866. }
  1867. public function setId($id) {
  1868. $this->id = $id;
  1869. }
  1870. public function getId() {
  1871. return $this->id;
  1872. }
  1873. public function setAuthKey($authKey) {
  1874. $this->authKey = $authKey;
  1875. }
  1876. public function getAuthKey() {
  1877. return $this->authKey;
  1878. }
  1879. public function setEtag($etag) {
  1880. $this->etag = $etag;
  1881. }
  1882. public function getEtag() {
  1883. return $this->etag;
  1884. }
  1885. public function setRole($role) {
  1886. $this->role = $role;
  1887. }
  1888. public function getRole() {
  1889. return $this->role;
  1890. }
  1891. public function setPhotoLink($photoLink) {
  1892. $this->photoLink = $photoLink;
  1893. }
  1894. public function getPhotoLink() {
  1895. return $this->photoLink;
  1896. }
  1897. public function setType($type) {
  1898. $this->type = $type;
  1899. }
  1900. public function getType() {
  1901. return $this->type;
  1902. }
  1903. public function setAdditionalRoles(/* array(Google_string) */ $additionalRoles) {
  1904. $this->assertIsArray($additionalRoles, 'Google_string', __METHOD__);
  1905. $this->additionalRoles = $additionalRoles;
  1906. }
  1907. public function getAdditionalRoles() {
  1908. return $this->additionalRoles;
  1909. }
  1910. public function setSelfLink($selfLink) {
  1911. $this->selfLink = $selfLink;
  1912. }
  1913. public function getSelfLink() {
  1914. return $this->selfLink;
  1915. }
  1916. }
  1917. class Google_PermissionList extends Google_Model {
  1918. protected $__itemsType = 'Google_Permission';
  1919. protected $__itemsDataType = 'array';
  1920. public $items;
  1921. public $kind;
  1922. public $etag;
  1923. public $selfLink;
  1924. public function setItems(/* array(Google_Permission) */ $items) {
  1925. $this->assertIsArray($items, 'Google_Permission', __METHOD__);
  1926. $this->items = $items;
  1927. }
  1928. public function getItems() {
  1929. return $this->items;
  1930. }
  1931. public function setKind($kind) {
  1932. $this->kind = $kind;
  1933. }
  1934. public function getKind() {
  1935. return $this->kind;
  1936. }
  1937. public function setEtag($etag) {
  1938. $this->etag = $etag;
  1939. }
  1940. public function getEtag() {
  1941. return $this->etag;
  1942. }
  1943. public function setSelfLink($selfLink) {
  1944. $this->selfLink = $selfLink;
  1945. }
  1946. public function getSelfLink() {
  1947. return $this->selfLink;
  1948. }
  1949. }
  1950. class Google_Revision extends Google_Model {
  1951. public $mimeType;
  1952. public $pinned;
  1953. public $kind;
  1954. public $publishedLink;
  1955. public $publishedOutsideDomain;
  1956. public $publishAuto;
  1957. public $published;
  1958. public $downloadUrl;
  1959. public $selfLink;
  1960. public $etag;
  1961. public $fileSize;
  1962. public $exportLinks;
  1963. public $lastModifyingUserName;
  1964. public $originalFilename;
  1965. public $id;
  1966. public $md5Checksum;
  1967. public $modifiedDate;
  1968. public function setMimeType($mimeType) {
  1969. $this->mimeType = $mimeType;
  1970. }
  1971. public function getMimeType() {
  1972. return $this->mimeType;
  1973. }
  1974. public function setPinned($pinned) {
  1975. $this->pinned = $pinned;
  1976. }
  1977. public function getPinned() {
  1978. return $this->pinned;
  1979. }
  1980. public function setKind($kind) {
  1981. $this->kind = $kind;
  1982. }
  1983. public function getKind() {
  1984. return $this->kind;
  1985. }
  1986. public function setPublishedLink($publishedLink) {
  1987. $this->publishedLink = $publishedLink;
  1988. }
  1989. public function getPublishedLink() {
  1990. return $this->publishedLink;
  1991. }
  1992. public function setPublishedOutsideDomain($publishedOutsideDomain) {
  1993. $this->publishedOutsideDomain = $publishedOutsideDomain;
  1994. }
  1995. public function getPublishedOutsideDomain() {
  1996. return $this->publishedOutsideDomain;
  1997. }
  1998. public function setPublishAuto($publishAuto) {
  1999. $this->publishAuto = $publishAuto;
  2000. }
  2001. public function getPublishAuto() {
  2002. return $this->publishAuto;
  2003. }
  2004. public function setPublished($published) {
  2005. $this->published = $published;
  2006. }
  2007. public function getPublished() {
  2008. return $this->published;
  2009. }
  2010. public function setDownloadUrl($downloadUrl) {
  2011. $this->downloadUrl = $downloadUrl;
  2012. }
  2013. public function getDownloadUrl() {
  2014. return $this->downloadUrl;
  2015. }
  2016. public function setSelfLink($selfLink) {
  2017. $this->selfLink = $selfLink;
  2018. }
  2019. public function getSelfLink() {
  2020. return $this->selfLink;
  2021. }
  2022. public function setEtag($etag) {
  2023. $this->etag = $etag;
  2024. }
  2025. public function getEtag() {
  2026. return $this->etag;
  2027. }
  2028. public function setFileSize($fileSize) {
  2029. $this->fileSize = $fileSize;
  2030. }
  2031. public function getFileSize() {
  2032. return $this->fileSize;
  2033. }
  2034. public function setExportLinks($exportLinks) {
  2035. $this->exportLinks = $exportLinks;
  2036. }
  2037. public function getExportLinks() {
  2038. return $this->exportLinks;
  2039. }
  2040. public function setLastModifyingUserName($lastModifyingUserName) {
  2041. $this->lastModifyingUserName = $lastModifyingUserName;
  2042. }
  2043. public function getLastModifyingUserName() {
  2044. return $this->lastModifyingUserName;
  2045. }
  2046. public function setOriginalFilename($originalFilename) {
  2047. $this->originalFilename = $originalFilename;
  2048. }
  2049. public function getOriginalFilename() {
  2050. return $this->originalFilename;
  2051. }
  2052. public function setId($id) {
  2053. $this->id = $id;
  2054. }
  2055. public function getId() {
  2056. return $this->id;
  2057. }
  2058. public function setMd5Checksum($md5Checksum) {
  2059. $this->md5Checksum = $md5Checksum;
  2060. }
  2061. public function getMd5Checksum() {
  2062. return $this->md5Checksum;
  2063. }
  2064. public function setModifiedDate($modifiedDate) {
  2065. $this->modifiedDate = $modifiedDate;
  2066. }
  2067. public function getModifiedDate() {
  2068. return $this->modifiedDate;
  2069. }
  2070. }
  2071. class Google_RevisionList extends Google_Model {
  2072. protected $__itemsType = 'Google_Revision';
  2073. protected $__itemsDataType = 'array';
  2074. public $items;
  2075. public $kind;
  2076. public $etag;
  2077. public $selfLink;
  2078. public function setItems(/* array(Google_Revision) */ $items) {
  2079. $this->assertIsArray($items, 'Google_Revision', __METHOD__);
  2080. $this->items = $items;
  2081. }
  2082. public function getItems() {
  2083. return $this->items;
  2084. }
  2085. public function setKind($kind) {
  2086. $this->kind = $kind;
  2087. }
  2088. public function getKind() {
  2089. return $this->kind;
  2090. }
  2091. public function setEtag($etag) {
  2092. $this->etag = $etag;
  2093. }
  2094. public function getEtag() {
  2095. return $this->etag;
  2096. }
  2097. public function setSelfLink($selfLink) {
  2098. $this->selfLink = $selfLink;
  2099. }
  2100. public function getSelfLink() {
  2101. return $this->selfLink;
  2102. }
  2103. }