PageRenderTime 65ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 1ms

/lib/google/src/Google/Service/Drive.php

https://bitbucket.org/moodle/moodle
PHP | 5775 lines | 4719 code | 209 blank | 847 comment | 0 complexity | ad6db14b18940915d03c426efb07e51d MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1, BSD-3-Clause, MIT, GPL-3.0
  1. <?php
  2. /*
  3. * Copyright 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for Drive (v2).
  19. *
  20. * <p>
  21. * The API to interact with Drive.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/drive/" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_Drive extends Google_Service
  31. {
  32. /** View and manage the files in your Google Drive. */
  33. const DRIVE =
  34. "https://www.googleapis.com/auth/drive";
  35. /** View and manage its own configuration data in your Google Drive. */
  36. const DRIVE_APPDATA =
  37. "https://www.googleapis.com/auth/drive.appdata";
  38. /** View your Google Drive apps. */
  39. const DRIVE_APPS_READONLY =
  40. "https://www.googleapis.com/auth/drive.apps.readonly";
  41. /** View and manage Google Drive files and folders that you have opened or created with this app. */
  42. const DRIVE_FILE =
  43. "https://www.googleapis.com/auth/drive.file";
  44. /** View and manage metadata of files in your Google Drive. */
  45. const DRIVE_METADATA =
  46. "https://www.googleapis.com/auth/drive.metadata";
  47. /** View metadata for files in your Google Drive. */
  48. const DRIVE_METADATA_READONLY =
  49. "https://www.googleapis.com/auth/drive.metadata.readonly";
  50. /** View the photos, videos and albums in your Google Photos. */
  51. const DRIVE_PHOTOS_READONLY =
  52. "https://www.googleapis.com/auth/drive.photos.readonly";
  53. /** View the files in your Google Drive. */
  54. const DRIVE_READONLY =
  55. "https://www.googleapis.com/auth/drive.readonly";
  56. /** Modify your Google Apps Script scripts' behavior. */
  57. const DRIVE_SCRIPTS =
  58. "https://www.googleapis.com/auth/drive.scripts";
  59. public $about;
  60. public $apps;
  61. public $changes;
  62. public $channels;
  63. public $children;
  64. public $comments;
  65. public $files;
  66. public $parents;
  67. public $permissions;
  68. public $properties;
  69. public $realtime;
  70. public $replies;
  71. public $revisions;
  72. /**
  73. * Constructs the internal representation of the Drive service.
  74. *
  75. * @param Google_Client $client
  76. */
  77. public function __construct(Google_Client $client)
  78. {
  79. parent::__construct($client);
  80. $this->rootUrl = 'https://www.googleapis.com/';
  81. $this->servicePath = 'drive/v2/';
  82. $this->version = 'v2';
  83. $this->serviceName = 'drive';
  84. $this->about = new Google_Service_Drive_About_Resource(
  85. $this,
  86. $this->serviceName,
  87. 'about',
  88. array(
  89. 'methods' => array(
  90. 'get' => array(
  91. 'path' => 'about',
  92. 'httpMethod' => 'GET',
  93. 'parameters' => array(
  94. 'includeSubscribed' => array(
  95. 'location' => 'query',
  96. 'type' => 'boolean',
  97. ),
  98. 'maxChangeIdCount' => array(
  99. 'location' => 'query',
  100. 'type' => 'string',
  101. ),
  102. 'startChangeId' => array(
  103. 'location' => 'query',
  104. 'type' => 'string',
  105. ),
  106. ),
  107. ),
  108. )
  109. )
  110. );
  111. $this->apps = new Google_Service_Drive_Apps_Resource(
  112. $this,
  113. $this->serviceName,
  114. 'apps',
  115. array(
  116. 'methods' => array(
  117. 'get' => array(
  118. 'path' => 'apps/{appId}',
  119. 'httpMethod' => 'GET',
  120. 'parameters' => array(
  121. 'appId' => array(
  122. 'location' => 'path',
  123. 'type' => 'string',
  124. 'required' => true,
  125. ),
  126. ),
  127. ),'list' => array(
  128. 'path' => 'apps',
  129. 'httpMethod' => 'GET',
  130. 'parameters' => array(
  131. 'languageCode' => array(
  132. 'location' => 'query',
  133. 'type' => 'string',
  134. ),
  135. 'appFilterExtensions' => array(
  136. 'location' => 'query',
  137. 'type' => 'string',
  138. ),
  139. 'appFilterMimeTypes' => array(
  140. 'location' => 'query',
  141. 'type' => 'string',
  142. ),
  143. ),
  144. ),
  145. )
  146. )
  147. );
  148. $this->changes = new Google_Service_Drive_Changes_Resource(
  149. $this,
  150. $this->serviceName,
  151. 'changes',
  152. array(
  153. 'methods' => array(
  154. 'get' => array(
  155. 'path' => 'changes/{changeId}',
  156. 'httpMethod' => 'GET',
  157. 'parameters' => array(
  158. 'changeId' => array(
  159. 'location' => 'path',
  160. 'type' => 'string',
  161. 'required' => true,
  162. ),
  163. ),
  164. ),'list' => array(
  165. 'path' => 'changes',
  166. 'httpMethod' => 'GET',
  167. 'parameters' => array(
  168. 'includeSubscribed' => array(
  169. 'location' => 'query',
  170. 'type' => 'boolean',
  171. ),
  172. 'includeDeleted' => array(
  173. 'location' => 'query',
  174. 'type' => 'boolean',
  175. ),
  176. 'maxResults' => array(
  177. 'location' => 'query',
  178. 'type' => 'integer',
  179. ),
  180. 'pageToken' => array(
  181. 'location' => 'query',
  182. 'type' => 'string',
  183. ),
  184. 'spaces' => array(
  185. 'location' => 'query',
  186. 'type' => 'string',
  187. ),
  188. 'startChangeId' => array(
  189. 'location' => 'query',
  190. 'type' => 'string',
  191. ),
  192. ),
  193. ),'watch' => array(
  194. 'path' => 'changes/watch',
  195. 'httpMethod' => 'POST',
  196. 'parameters' => array(
  197. 'includeSubscribed' => array(
  198. 'location' => 'query',
  199. 'type' => 'boolean',
  200. ),
  201. 'includeDeleted' => array(
  202. 'location' => 'query',
  203. 'type' => 'boolean',
  204. ),
  205. 'maxResults' => array(
  206. 'location' => 'query',
  207. 'type' => 'integer',
  208. ),
  209. 'pageToken' => array(
  210. 'location' => 'query',
  211. 'type' => 'string',
  212. ),
  213. 'spaces' => array(
  214. 'location' => 'query',
  215. 'type' => 'string',
  216. ),
  217. 'startChangeId' => array(
  218. 'location' => 'query',
  219. 'type' => 'string',
  220. ),
  221. ),
  222. ),
  223. )
  224. )
  225. );
  226. $this->channels = new Google_Service_Drive_Channels_Resource(
  227. $this,
  228. $this->serviceName,
  229. 'channels',
  230. array(
  231. 'methods' => array(
  232. 'stop' => array(
  233. 'path' => 'channels/stop',
  234. 'httpMethod' => 'POST',
  235. 'parameters' => array(),
  236. ),
  237. )
  238. )
  239. );
  240. $this->children = new Google_Service_Drive_Children_Resource(
  241. $this,
  242. $this->serviceName,
  243. 'children',
  244. array(
  245. 'methods' => array(
  246. 'delete' => array(
  247. 'path' => 'files/{folderId}/children/{childId}',
  248. 'httpMethod' => 'DELETE',
  249. 'parameters' => array(
  250. 'folderId' => array(
  251. 'location' => 'path',
  252. 'type' => 'string',
  253. 'required' => true,
  254. ),
  255. 'childId' => array(
  256. 'location' => 'path',
  257. 'type' => 'string',
  258. 'required' => true,
  259. ),
  260. ),
  261. ),'get' => array(
  262. 'path' => 'files/{folderId}/children/{childId}',
  263. 'httpMethod' => 'GET',
  264. 'parameters' => array(
  265. 'folderId' => array(
  266. 'location' => 'path',
  267. 'type' => 'string',
  268. 'required' => true,
  269. ),
  270. 'childId' => array(
  271. 'location' => 'path',
  272. 'type' => 'string',
  273. 'required' => true,
  274. ),
  275. ),
  276. ),'insert' => array(
  277. 'path' => 'files/{folderId}/children',
  278. 'httpMethod' => 'POST',
  279. 'parameters' => array(
  280. 'folderId' => array(
  281. 'location' => 'path',
  282. 'type' => 'string',
  283. 'required' => true,
  284. ),
  285. ),
  286. ),'list' => array(
  287. 'path' => 'files/{folderId}/children',
  288. 'httpMethod' => 'GET',
  289. 'parameters' => array(
  290. 'folderId' => array(
  291. 'location' => 'path',
  292. 'type' => 'string',
  293. 'required' => true,
  294. ),
  295. 'orderBy' => array(
  296. 'location' => 'query',
  297. 'type' => 'string',
  298. ),
  299. 'pageToken' => array(
  300. 'location' => 'query',
  301. 'type' => 'string',
  302. ),
  303. 'q' => array(
  304. 'location' => 'query',
  305. 'type' => 'string',
  306. ),
  307. 'maxResults' => array(
  308. 'location' => 'query',
  309. 'type' => 'integer',
  310. ),
  311. ),
  312. ),
  313. )
  314. )
  315. );
  316. $this->comments = new Google_Service_Drive_Comments_Resource(
  317. $this,
  318. $this->serviceName,
  319. 'comments',
  320. array(
  321. 'methods' => array(
  322. 'delete' => array(
  323. 'path' => 'files/{fileId}/comments/{commentId}',
  324. 'httpMethod' => 'DELETE',
  325. 'parameters' => array(
  326. 'fileId' => array(
  327. 'location' => 'path',
  328. 'type' => 'string',
  329. 'required' => true,
  330. ),
  331. 'commentId' => array(
  332. 'location' => 'path',
  333. 'type' => 'string',
  334. 'required' => true,
  335. ),
  336. ),
  337. ),'get' => array(
  338. 'path' => 'files/{fileId}/comments/{commentId}',
  339. 'httpMethod' => 'GET',
  340. 'parameters' => array(
  341. 'fileId' => array(
  342. 'location' => 'path',
  343. 'type' => 'string',
  344. 'required' => true,
  345. ),
  346. 'commentId' => array(
  347. 'location' => 'path',
  348. 'type' => 'string',
  349. 'required' => true,
  350. ),
  351. 'includeDeleted' => array(
  352. 'location' => 'query',
  353. 'type' => 'boolean',
  354. ),
  355. ),
  356. ),'insert' => array(
  357. 'path' => 'files/{fileId}/comments',
  358. 'httpMethod' => 'POST',
  359. 'parameters' => array(
  360. 'fileId' => array(
  361. 'location' => 'path',
  362. 'type' => 'string',
  363. 'required' => true,
  364. ),
  365. ),
  366. ),'list' => array(
  367. 'path' => 'files/{fileId}/comments',
  368. 'httpMethod' => 'GET',
  369. 'parameters' => array(
  370. 'fileId' => array(
  371. 'location' => 'path',
  372. 'type' => 'string',
  373. 'required' => true,
  374. ),
  375. 'pageToken' => array(
  376. 'location' => 'query',
  377. 'type' => 'string',
  378. ),
  379. 'updatedMin' => array(
  380. 'location' => 'query',
  381. 'type' => 'string',
  382. ),
  383. 'includeDeleted' => array(
  384. 'location' => 'query',
  385. 'type' => 'boolean',
  386. ),
  387. 'maxResults' => array(
  388. 'location' => 'query',
  389. 'type' => 'integer',
  390. ),
  391. ),
  392. ),'patch' => array(
  393. 'path' => 'files/{fileId}/comments/{commentId}',
  394. 'httpMethod' => 'PATCH',
  395. 'parameters' => array(
  396. 'fileId' => array(
  397. 'location' => 'path',
  398. 'type' => 'string',
  399. 'required' => true,
  400. ),
  401. 'commentId' => array(
  402. 'location' => 'path',
  403. 'type' => 'string',
  404. 'required' => true,
  405. ),
  406. ),
  407. ),'update' => array(
  408. 'path' => 'files/{fileId}/comments/{commentId}',
  409. 'httpMethod' => 'PUT',
  410. 'parameters' => array(
  411. 'fileId' => array(
  412. 'location' => 'path',
  413. 'type' => 'string',
  414. 'required' => true,
  415. ),
  416. 'commentId' => array(
  417. 'location' => 'path',
  418. 'type' => 'string',
  419. 'required' => true,
  420. ),
  421. ),
  422. ),
  423. )
  424. )
  425. );
  426. $this->files = new Google_Service_Drive_Files_Resource(
  427. $this,
  428. $this->serviceName,
  429. 'files',
  430. array(
  431. 'methods' => array(
  432. 'copy' => array(
  433. 'path' => 'files/{fileId}/copy',
  434. 'httpMethod' => 'POST',
  435. 'parameters' => array(
  436. 'fileId' => array(
  437. 'location' => 'path',
  438. 'type' => 'string',
  439. 'required' => true,
  440. ),
  441. 'convert' => array(
  442. 'location' => 'query',
  443. 'type' => 'boolean',
  444. ),
  445. 'ocrLanguage' => array(
  446. 'location' => 'query',
  447. 'type' => 'string',
  448. ),
  449. 'visibility' => array(
  450. 'location' => 'query',
  451. 'type' => 'string',
  452. ),
  453. 'pinned' => array(
  454. 'location' => 'query',
  455. 'type' => 'boolean',
  456. ),
  457. 'ocr' => array(
  458. 'location' => 'query',
  459. 'type' => 'boolean',
  460. ),
  461. 'timedTextTrackName' => array(
  462. 'location' => 'query',
  463. 'type' => 'string',
  464. ),
  465. 'timedTextLanguage' => array(
  466. 'location' => 'query',
  467. 'type' => 'string',
  468. ),
  469. ),
  470. ),'delete' => array(
  471. 'path' => 'files/{fileId}',
  472. 'httpMethod' => 'DELETE',
  473. 'parameters' => array(
  474. 'fileId' => array(
  475. 'location' => 'path',
  476. 'type' => 'string',
  477. 'required' => true,
  478. ),
  479. ),
  480. ),'emptyTrash' => array(
  481. 'path' => 'files/trash',
  482. 'httpMethod' => 'DELETE',
  483. 'parameters' => array(),
  484. ),'generateIds' => array(
  485. 'path' => 'files/generateIds',
  486. 'httpMethod' => 'GET',
  487. 'parameters' => array(
  488. 'maxResults' => array(
  489. 'location' => 'query',
  490. 'type' => 'integer',
  491. ),
  492. 'space' => array(
  493. 'location' => 'query',
  494. 'type' => 'string',
  495. ),
  496. ),
  497. ),'get' => array(
  498. 'path' => 'files/{fileId}',
  499. 'httpMethod' => 'GET',
  500. 'parameters' => array(
  501. 'fileId' => array(
  502. 'location' => 'path',
  503. 'type' => 'string',
  504. 'required' => true,
  505. ),
  506. 'acknowledgeAbuse' => array(
  507. 'location' => 'query',
  508. 'type' => 'boolean',
  509. ),
  510. 'updateViewedDate' => array(
  511. 'location' => 'query',
  512. 'type' => 'boolean',
  513. ),
  514. 'revisionId' => array(
  515. 'location' => 'query',
  516. 'type' => 'string',
  517. ),
  518. 'projection' => array(
  519. 'location' => 'query',
  520. 'type' => 'string',
  521. ),
  522. ),
  523. ),'insert' => array(
  524. 'path' => 'files',
  525. 'httpMethod' => 'POST',
  526. 'parameters' => array(
  527. 'convert' => array(
  528. 'location' => 'query',
  529. 'type' => 'boolean',
  530. ),
  531. 'useContentAsIndexableText' => array(
  532. 'location' => 'query',
  533. 'type' => 'boolean',
  534. ),
  535. 'ocrLanguage' => array(
  536. 'location' => 'query',
  537. 'type' => 'string',
  538. ),
  539. 'visibility' => array(
  540. 'location' => 'query',
  541. 'type' => 'string',
  542. ),
  543. 'pinned' => array(
  544. 'location' => 'query',
  545. 'type' => 'boolean',
  546. ),
  547. 'ocr' => array(
  548. 'location' => 'query',
  549. 'type' => 'boolean',
  550. ),
  551. 'timedTextTrackName' => array(
  552. 'location' => 'query',
  553. 'type' => 'string',
  554. ),
  555. 'timedTextLanguage' => array(
  556. 'location' => 'query',
  557. 'type' => 'string',
  558. ),
  559. ),
  560. ),'list' => array(
  561. 'path' => 'files',
  562. 'httpMethod' => 'GET',
  563. 'parameters' => array(
  564. 'orderBy' => array(
  565. 'location' => 'query',
  566. 'type' => 'string',
  567. ),
  568. 'projection' => array(
  569. 'location' => 'query',
  570. 'type' => 'string',
  571. ),
  572. 'maxResults' => array(
  573. 'location' => 'query',
  574. 'type' => 'integer',
  575. ),
  576. 'q' => array(
  577. 'location' => 'query',
  578. 'type' => 'string',
  579. ),
  580. 'pageToken' => array(
  581. 'location' => 'query',
  582. 'type' => 'string',
  583. ),
  584. 'spaces' => array(
  585. 'location' => 'query',
  586. 'type' => 'string',
  587. ),
  588. 'corpus' => array(
  589. 'location' => 'query',
  590. 'type' => 'string',
  591. ),
  592. ),
  593. ),'patch' => array(
  594. 'path' => 'files/{fileId}',
  595. 'httpMethod' => 'PATCH',
  596. 'parameters' => array(
  597. 'fileId' => array(
  598. 'location' => 'path',
  599. 'type' => 'string',
  600. 'required' => true,
  601. ),
  602. 'addParents' => array(
  603. 'location' => 'query',
  604. 'type' => 'string',
  605. ),
  606. 'modifiedDateBehavior' => array(
  607. 'location' => 'query',
  608. 'type' => 'string',
  609. ),
  610. 'removeParents' => array(
  611. 'location' => 'query',
  612. 'type' => 'string',
  613. ),
  614. 'updateViewedDate' => array(
  615. 'location' => 'query',
  616. 'type' => 'boolean',
  617. ),
  618. 'setModifiedDate' => array(
  619. 'location' => 'query',
  620. 'type' => 'boolean',
  621. ),
  622. 'useContentAsIndexableText' => array(
  623. 'location' => 'query',
  624. 'type' => 'boolean',
  625. ),
  626. 'convert' => array(
  627. 'location' => 'query',
  628. 'type' => 'boolean',
  629. ),
  630. 'ocrLanguage' => array(
  631. 'location' => 'query',
  632. 'type' => 'string',
  633. ),
  634. 'pinned' => array(
  635. 'location' => 'query',
  636. 'type' => 'boolean',
  637. ),
  638. 'newRevision' => array(
  639. 'location' => 'query',
  640. 'type' => 'boolean',
  641. ),
  642. 'ocr' => array(
  643. 'location' => 'query',
  644. 'type' => 'boolean',
  645. ),
  646. 'timedTextLanguage' => array(
  647. 'location' => 'query',
  648. 'type' => 'string',
  649. ),
  650. 'timedTextTrackName' => array(
  651. 'location' => 'query',
  652. 'type' => 'string',
  653. ),
  654. ),
  655. ),'touch' => array(
  656. 'path' => 'files/{fileId}/touch',
  657. 'httpMethod' => 'POST',
  658. 'parameters' => array(
  659. 'fileId' => array(
  660. 'location' => 'path',
  661. 'type' => 'string',
  662. 'required' => true,
  663. ),
  664. ),
  665. ),'trash' => array(
  666. 'path' => 'files/{fileId}/trash',
  667. 'httpMethod' => 'POST',
  668. 'parameters' => array(
  669. 'fileId' => array(
  670. 'location' => 'path',
  671. 'type' => 'string',
  672. 'required' => true,
  673. ),
  674. ),
  675. ),'untrash' => array(
  676. 'path' => 'files/{fileId}/untrash',
  677. 'httpMethod' => 'POST',
  678. 'parameters' => array(
  679. 'fileId' => array(
  680. 'location' => 'path',
  681. 'type' => 'string',
  682. 'required' => true,
  683. ),
  684. ),
  685. ),'update' => array(
  686. 'path' => 'files/{fileId}',
  687. 'httpMethod' => 'PUT',
  688. 'parameters' => array(
  689. 'fileId' => array(
  690. 'location' => 'path',
  691. 'type' => 'string',
  692. 'required' => true,
  693. ),
  694. 'addParents' => array(
  695. 'location' => 'query',
  696. 'type' => 'string',
  697. ),
  698. 'modifiedDateBehavior' => array(
  699. 'location' => 'query',
  700. 'type' => 'string',
  701. ),
  702. 'removeParents' => array(
  703. 'location' => 'query',
  704. 'type' => 'string',
  705. ),
  706. 'updateViewedDate' => array(
  707. 'location' => 'query',
  708. 'type' => 'boolean',
  709. ),
  710. 'setModifiedDate' => array(
  711. 'location' => 'query',
  712. 'type' => 'boolean',
  713. ),
  714. 'useContentAsIndexableText' => array(
  715. 'location' => 'query',
  716. 'type' => 'boolean',
  717. ),
  718. 'convert' => array(
  719. 'location' => 'query',
  720. 'type' => 'boolean',
  721. ),
  722. 'ocrLanguage' => array(
  723. 'location' => 'query',
  724. 'type' => 'string',
  725. ),
  726. 'pinned' => array(
  727. 'location' => 'query',
  728. 'type' => 'boolean',
  729. ),
  730. 'newRevision' => array(
  731. 'location' => 'query',
  732. 'type' => 'boolean',
  733. ),
  734. 'ocr' => array(
  735. 'location' => 'query',
  736. 'type' => 'boolean',
  737. ),
  738. 'timedTextLanguage' => array(
  739. 'location' => 'query',
  740. 'type' => 'string',
  741. ),
  742. 'timedTextTrackName' => array(
  743. 'location' => 'query',
  744. 'type' => 'string',
  745. ),
  746. ),
  747. ),'watch' => array(
  748. 'path' => 'files/{fileId}/watch',
  749. 'httpMethod' => 'POST',
  750. 'parameters' => array(
  751. 'fileId' => array(
  752. 'location' => 'path',
  753. 'type' => 'string',
  754. 'required' => true,
  755. ),
  756. 'acknowledgeAbuse' => array(
  757. 'location' => 'query',
  758. 'type' => 'boolean',
  759. ),
  760. 'updateViewedDate' => array(
  761. 'location' => 'query',
  762. 'type' => 'boolean',
  763. ),
  764. 'revisionId' => array(
  765. 'location' => 'query',
  766. 'type' => 'string',
  767. ),
  768. 'projection' => array(
  769. 'location' => 'query',
  770. 'type' => 'string',
  771. ),
  772. ),
  773. ),
  774. )
  775. )
  776. );
  777. $this->parents = new Google_Service_Drive_Parents_Resource(
  778. $this,
  779. $this->serviceName,
  780. 'parents',
  781. array(
  782. 'methods' => array(
  783. 'delete' => array(
  784. 'path' => 'files/{fileId}/parents/{parentId}',
  785. 'httpMethod' => 'DELETE',
  786. 'parameters' => array(
  787. 'fileId' => array(
  788. 'location' => 'path',
  789. 'type' => 'string',
  790. 'required' => true,
  791. ),
  792. 'parentId' => array(
  793. 'location' => 'path',
  794. 'type' => 'string',
  795. 'required' => true,
  796. ),
  797. ),
  798. ),'get' => array(
  799. 'path' => 'files/{fileId}/parents/{parentId}',
  800. 'httpMethod' => 'GET',
  801. 'parameters' => array(
  802. 'fileId' => array(
  803. 'location' => 'path',
  804. 'type' => 'string',
  805. 'required' => true,
  806. ),
  807. 'parentId' => array(
  808. 'location' => 'path',
  809. 'type' => 'string',
  810. 'required' => true,
  811. ),
  812. ),
  813. ),'insert' => array(
  814. 'path' => 'files/{fileId}/parents',
  815. 'httpMethod' => 'POST',
  816. 'parameters' => array(
  817. 'fileId' => array(
  818. 'location' => 'path',
  819. 'type' => 'string',
  820. 'required' => true,
  821. ),
  822. ),
  823. ),'list' => array(
  824. 'path' => 'files/{fileId}/parents',
  825. 'httpMethod' => 'GET',
  826. 'parameters' => array(
  827. 'fileId' => array(
  828. 'location' => 'path',
  829. 'type' => 'string',
  830. 'required' => true,
  831. ),
  832. ),
  833. ),
  834. )
  835. )
  836. );
  837. $this->permissions = new Google_Service_Drive_Permissions_Resource(
  838. $this,
  839. $this->serviceName,
  840. 'permissions',
  841. array(
  842. 'methods' => array(
  843. 'delete' => array(
  844. 'path' => 'files/{fileId}/permissions/{permissionId}',
  845. 'httpMethod' => 'DELETE',
  846. 'parameters' => array(
  847. 'fileId' => array(
  848. 'location' => 'path',
  849. 'type' => 'string',
  850. 'required' => true,
  851. ),
  852. 'permissionId' => array(
  853. 'location' => 'path',
  854. 'type' => 'string',
  855. 'required' => true,
  856. ),
  857. ),
  858. ),'get' => array(
  859. 'path' => 'files/{fileId}/permissions/{permissionId}',
  860. 'httpMethod' => 'GET',
  861. 'parameters' => array(
  862. 'fileId' => array(
  863. 'location' => 'path',
  864. 'type' => 'string',
  865. 'required' => true,
  866. ),
  867. 'permissionId' => array(
  868. 'location' => 'path',
  869. 'type' => 'string',
  870. 'required' => true,
  871. ),
  872. ),
  873. ),'getIdForEmail' => array(
  874. 'path' => 'permissionIds/{email}',
  875. 'httpMethod' => 'GET',
  876. 'parameters' => array(
  877. 'email' => array(
  878. 'location' => 'path',
  879. 'type' => 'string',
  880. 'required' => true,
  881. ),
  882. ),
  883. ),'insert' => array(
  884. 'path' => 'files/{fileId}/permissions',
  885. 'httpMethod' => 'POST',
  886. 'parameters' => array(
  887. 'fileId' => array(
  888. 'location' => 'path',
  889. 'type' => 'string',
  890. 'required' => true,
  891. ),
  892. 'emailMessage' => array(
  893. 'location' => 'query',
  894. 'type' => 'string',
  895. ),
  896. 'sendNotificationEmails' => array(
  897. 'location' => 'query',
  898. 'type' => 'boolean',
  899. ),
  900. ),
  901. ),'list' => array(
  902. 'path' => 'files/{fileId}/permissions',
  903. 'httpMethod' => 'GET',
  904. 'parameters' => array(
  905. 'fileId' => array(
  906. 'location' => 'path',
  907. 'type' => 'string',
  908. 'required' => true,
  909. ),
  910. ),
  911. ),'patch' => array(
  912. 'path' => 'files/{fileId}/permissions/{permissionId}',
  913. 'httpMethod' => 'PATCH',
  914. 'parameters' => array(
  915. 'fileId' => array(
  916. 'location' => 'path',
  917. 'type' => 'string',
  918. 'required' => true,
  919. ),
  920. 'permissionId' => array(
  921. 'location' => 'path',
  922. 'type' => 'string',
  923. 'required' => true,
  924. ),
  925. 'transferOwnership' => array(
  926. 'location' => 'query',
  927. 'type' => 'boolean',
  928. ),
  929. ),
  930. ),'update' => array(
  931. 'path' => 'files/{fileId}/permissions/{permissionId}',
  932. 'httpMethod' => 'PUT',
  933. 'parameters' => array(
  934. 'fileId' => array(
  935. 'location' => 'path',
  936. 'type' => 'string',
  937. 'required' => true,
  938. ),
  939. 'permissionId' => array(
  940. 'location' => 'path',
  941. 'type' => 'string',
  942. 'required' => true,
  943. ),
  944. 'transferOwnership' => array(
  945. 'location' => 'query',
  946. 'type' => 'boolean',
  947. ),
  948. ),
  949. ),
  950. )
  951. )
  952. );
  953. $this->properties = new Google_Service_Drive_Properties_Resource(
  954. $this,
  955. $this->serviceName,
  956. 'properties',
  957. array(
  958. 'methods' => array(
  959. 'delete' => array(
  960. 'path' => 'files/{fileId}/properties/{propertyKey}',
  961. 'httpMethod' => 'DELETE',
  962. 'parameters' => array(
  963. 'fileId' => array(
  964. 'location' => 'path',
  965. 'type' => 'string',
  966. 'required' => true,
  967. ),
  968. 'propertyKey' => array(
  969. 'location' => 'path',
  970. 'type' => 'string',
  971. 'required' => true,
  972. ),
  973. 'visibility' => array(
  974. 'location' => 'query',
  975. 'type' => 'string',
  976. ),
  977. ),
  978. ),'get' => array(
  979. 'path' => 'files/{fileId}/properties/{propertyKey}',
  980. 'httpMethod' => 'GET',
  981. 'parameters' => array(
  982. 'fileId' => array(
  983. 'location' => 'path',
  984. 'type' => 'string',
  985. 'required' => true,
  986. ),
  987. 'propertyKey' => array(
  988. 'location' => 'path',
  989. 'type' => 'string',
  990. 'required' => true,
  991. ),
  992. 'visibility' => array(
  993. 'location' => 'query',
  994. 'type' => 'string',
  995. ),
  996. ),
  997. ),'insert' => array(
  998. 'path' => 'files/{fileId}/properties',
  999. 'httpMethod' => 'POST',
  1000. 'parameters' => array(
  1001. 'fileId' => array(
  1002. 'location' => 'path',
  1003. 'type' => 'string',
  1004. 'required' => true,
  1005. ),
  1006. ),
  1007. ),'list' => array(
  1008. 'path' => 'files/{fileId}/properties',
  1009. 'httpMethod' => 'GET',
  1010. 'parameters' => array(
  1011. 'fileId' => array(
  1012. 'location' => 'path',
  1013. 'type' => 'string',
  1014. 'required' => true,
  1015. ),
  1016. ),
  1017. ),'patch' => array(
  1018. 'path' => 'files/{fileId}/properties/{propertyKey}',
  1019. 'httpMethod' => 'PATCH',
  1020. 'parameters' => array(
  1021. 'fileId' => array(
  1022. 'location' => 'path',
  1023. 'type' => 'string',
  1024. 'required' => true,
  1025. ),
  1026. 'propertyKey' => array(
  1027. 'location' => 'path',
  1028. 'type' => 'string',
  1029. 'required' => true,
  1030. ),
  1031. 'visibility' => array(
  1032. 'location' => 'query',
  1033. 'type' => 'string',
  1034. ),
  1035. ),
  1036. ),'update' => array(
  1037. 'path' => 'files/{fileId}/properties/{propertyKey}',
  1038. 'httpMethod' => 'PUT',
  1039. 'parameters' => array(
  1040. 'fileId' => array(
  1041. 'location' => 'path',
  1042. 'type' => 'string',
  1043. 'required' => true,
  1044. ),
  1045. 'propertyKey' => array(
  1046. 'location' => 'path',
  1047. 'type' => 'string',
  1048. 'required' => true,
  1049. ),
  1050. 'visibility' => array(
  1051. 'location' => 'query',
  1052. 'type' => 'string',
  1053. ),
  1054. ),
  1055. ),
  1056. )
  1057. )
  1058. );
  1059. $this->realtime = new Google_Service_Drive_Realtime_Resource(
  1060. $this,
  1061. $this->serviceName,
  1062. 'realtime',
  1063. array(
  1064. 'methods' => array(
  1065. 'get' => array(
  1066. 'path' => 'files/{fileId}/realtime',
  1067. 'httpMethod' => 'GET',
  1068. 'parameters' => array(
  1069. 'fileId' => array(
  1070. 'location' => 'path',
  1071. 'type' => 'string',
  1072. 'required' => true,
  1073. ),
  1074. 'revision' => array(
  1075. 'location' => 'query',
  1076. 'type' => 'integer',
  1077. ),
  1078. ),
  1079. ),'update' => array(
  1080. 'path' => 'files/{fileId}/realtime',
  1081. 'httpMethod' => 'PUT',
  1082. 'parameters' => array(
  1083. 'fileId' => array(
  1084. 'location' => 'path',
  1085. 'type' => 'string',
  1086. 'required' => true,
  1087. ),
  1088. 'baseRevision' => array(
  1089. 'location' => 'query',
  1090. 'type' => 'string',
  1091. ),
  1092. ),
  1093. ),
  1094. )
  1095. )
  1096. );
  1097. $this->replies = new Google_Service_Drive_Replies_Resource(
  1098. $this,
  1099. $this->serviceName,
  1100. 'replies',
  1101. array(
  1102. 'methods' => array(
  1103. 'delete' => array(
  1104. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
  1105. 'httpMethod' => 'DELETE',
  1106. 'parameters' => array(
  1107. 'fileId' => array(
  1108. 'location' => 'path',
  1109. 'type' => 'string',
  1110. 'required' => true,
  1111. ),
  1112. 'commentId' => array(
  1113. 'location' => 'path',
  1114. 'type' => 'string',
  1115. 'required' => true,
  1116. ),
  1117. 'replyId' => array(
  1118. 'location' => 'path',
  1119. 'type' => 'string',
  1120. 'required' => true,
  1121. ),
  1122. ),
  1123. ),'get' => array(
  1124. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
  1125. 'httpMethod' => 'GET',
  1126. 'parameters' => array(
  1127. 'fileId' => array(
  1128. 'location' => 'path',
  1129. 'type' => 'string',
  1130. 'required' => true,
  1131. ),
  1132. 'commentId' => array(
  1133. 'location' => 'path',
  1134. 'type' => 'string',
  1135. 'required' => true,
  1136. ),
  1137. 'replyId' => array(
  1138. 'location' => 'path',
  1139. 'type' => 'string',
  1140. 'required' => true,
  1141. ),
  1142. 'includeDeleted' => array(
  1143. 'location' => 'query',
  1144. 'type' => 'boolean',
  1145. ),
  1146. ),
  1147. ),'insert' => array(
  1148. 'path' => 'files/{fileId}/comments/{commentId}/replies',
  1149. 'httpMethod' => 'POST',
  1150. 'parameters' => array(
  1151. 'fileId' => array(
  1152. 'location' => 'path',
  1153. 'type' => 'string',
  1154. 'required' => true,
  1155. ),
  1156. 'commentId' => array(
  1157. 'location' => 'path',
  1158. 'type' => 'string',
  1159. 'required' => true,
  1160. ),
  1161. ),
  1162. ),'list' => array(
  1163. 'path' => 'files/{fileId}/comments/{commentId}/replies',
  1164. 'httpMethod' => 'GET',
  1165. 'parameters' => array(
  1166. 'fileId' => array(
  1167. 'location' => 'path',
  1168. 'type' => 'string',
  1169. 'required' => true,
  1170. ),
  1171. 'commentId' => array(
  1172. 'location' => 'path',
  1173. 'type' => 'string',
  1174. 'required' => true,
  1175. ),
  1176. 'pageToken' => array(
  1177. 'location' => 'query',
  1178. 'type' => 'string',
  1179. ),
  1180. 'includeDeleted' => array(
  1181. 'location' => 'query',
  1182. 'type' => 'boolean',
  1183. ),
  1184. 'maxResults' => array(
  1185. 'location' => 'query',
  1186. 'type' => 'integer',
  1187. ),
  1188. ),
  1189. ),'patch' => array(
  1190. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
  1191. 'httpMethod' => 'PATCH',
  1192. 'parameters' => array(
  1193. 'fileId' => array(
  1194. 'location' => 'path',
  1195. 'type' => 'string',
  1196. 'required' => true,
  1197. ),
  1198. 'commentId' => array(
  1199. 'location' => 'path',
  1200. 'type' => 'string',
  1201. 'required' => true,
  1202. ),
  1203. 'replyId' => array(
  1204. 'location' => 'path',
  1205. 'type' => 'string',
  1206. 'required' => true,
  1207. ),
  1208. ),
  1209. ),'update' => array(
  1210. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
  1211. 'httpMethod' => 'PUT',
  1212. 'parameters' => array(
  1213. 'fileId' => array(
  1214. 'location' => 'path',
  1215. 'type' => 'string',
  1216. 'required' => true,
  1217. ),
  1218. 'commentId' => array(
  1219. 'location' => 'path',
  1220. 'type' => 'string',
  1221. 'required' => true,
  1222. ),
  1223. 'replyId' => array(
  1224. 'location' => 'path',
  1225. 'type' => 'string',
  1226. 'required' => true,
  1227. ),
  1228. ),
  1229. ),
  1230. )
  1231. )
  1232. );
  1233. $this->revisions = new Google_Service_Drive_Revisions_Resource(
  1234. $this,
  1235. $this->serviceName,
  1236. 'revisions',
  1237. array(
  1238. 'methods' => array(
  1239. 'delete' => array(
  1240. 'path' => 'files/{fileId}/revisions/{revisionId}',
  1241. 'httpMethod' => 'DELETE',
  1242. 'parameters' => array(
  1243. 'fileId' => array(
  1244. 'location' => 'path',
  1245. 'type' => 'string',
  1246. 'required' => true,
  1247. ),
  1248. 'revisionId' => array(
  1249. 'location' => 'path',
  1250. 'type' => 'string',
  1251. 'required' => true,
  1252. ),
  1253. ),
  1254. ),'get' => array(
  1255. 'path' => 'files/{fileId}/revisions/{revisionId}',
  1256. 'httpMethod' => 'GET',
  1257. 'parameters' => array(
  1258. 'fileId' => array(
  1259. 'location' => 'path',
  1260. 'type' => 'string',
  1261. 'required' => true,
  1262. ),
  1263. 'revisionId' => array(
  1264. 'location' => 'path',
  1265. 'type' => 'string',
  1266. 'required' => true,
  1267. ),
  1268. ),
  1269. ),'list' => array(
  1270. 'path' => 'files/{fileId}/revisions',
  1271. 'httpMethod' => 'GET',
  1272. 'parameters' => array(
  1273. 'fileId' => array(
  1274. 'location' => 'path',
  1275. 'type' => 'string',
  1276. 'required' => true,
  1277. ),
  1278. ),
  1279. ),'patch' => array(
  1280. 'path' => 'files/{fileId}/revisions/{revisionId}',
  1281. 'httpMethod' => 'PATCH',
  1282. 'parameters' => array(
  1283. 'fileId' => array(
  1284. 'location' => 'path',
  1285. 'type' => 'string',
  1286. 'required' => true,
  1287. ),
  1288. 'revisionId' => array(
  1289. 'location' => 'path',
  1290. 'type' => 'string',
  1291. 'required' => true,
  1292. ),
  1293. ),
  1294. ),'update' => array(
  1295. 'path' => 'files/{fileId}/revisions/{revisionId}',
  1296. 'httpMethod' => 'PUT',
  1297. 'parameters' => array(
  1298. 'fileId' => array(
  1299. 'location' => 'path',
  1300. 'type' => 'string',
  1301. 'required' => true,
  1302. ),
  1303. 'revisionId' => array(
  1304. 'location' => 'path',
  1305. 'type' => 'string',
  1306. 'required' => true,
  1307. ),
  1308. ),
  1309. ),
  1310. )
  1311. )
  1312. );
  1313. }
  1314. }
  1315. /**
  1316. * The "about" collection of methods.
  1317. * Typical usage is:
  1318. * <code>
  1319. * $driveService = new Google_Service_Drive(...);
  1320. * $about = $driveService->about;
  1321. * </code>
  1322. */
  1323. class Google_Service_Drive_About_Resource extends Google_Service_Resource
  1324. {
  1325. /**
  1326. * Gets the information about the current user along with Drive API settings
  1327. * (about.get)
  1328. *
  1329. * @param array $optParams Optional parameters.
  1330. *
  1331. * @opt_param bool includeSubscribed When calculating the number of remaining
  1332. * change IDs, whether to include public files the user has opened and shared
  1333. * files. When set to false, this counts only change IDs for owned files and any
  1334. * shared or public files that the user has explicitly added to a folder they
  1335. * own.
  1336. * @opt_param string maxChangeIdCount Maximum number of remaining change IDs to
  1337. * count
  1338. * @opt_param string startChangeId Change ID to start counting from when
  1339. * calculating number of remaining change IDs
  1340. * @return Google_Service_Drive_About
  1341. */
  1342. public function get($optParams = array())
  1343. {
  1344. $params = array();
  1345. $params = array_merge($params, $optParams);
  1346. return $this->call('get', array($params), "Google_Service_Drive_About");
  1347. }
  1348. }
  1349. /**
  1350. * The "apps" collection of methods.
  1351. * Typical usage is:
  1352. * <code>
  1353. * $driveService = new Google_Service_Drive(...);
  1354. * $apps = $driveService->apps;
  1355. * </code>
  1356. */
  1357. class Google_Service_Drive_Apps_Resource extends Google_Service_Resource
  1358. {
  1359. /**
  1360. * Gets a specific app. (apps.get)
  1361. *
  1362. * @param string $appId The ID of the app.
  1363. * @param array $optParams Optional parameters.
  1364. * @return Google_Service_Drive_App
  1365. */
  1366. public function get($appId, $optParams = array())
  1367. {
  1368. $params = array('appId' => $appId);
  1369. $params = array_merge($params, $optParams);
  1370. return $this->call('get', array($params), "Google_Service_Drive_App");
  1371. }
  1372. /**
  1373. * Lists a user's installed apps. (apps.listApps)
  1374. *
  1375. * @param array $optParams Optional parameters.
  1376. *
  1377. * @opt_param string languageCode A language or locale code, as defined by BCP
  1378. * 47, with some extensions from Unicode's LDML format
  1379. * (http://www.unicode.org/reports/tr35/).
  1380. * @opt_param string appFilterExtensions A comma-separated list of file
  1381. * extensions for open with filtering. All apps within the given app query scope
  1382. * which can open any of the given file extensions will be included in the
  1383. * response. If appFilterMimeTypes are provided as well, the result is a union
  1384. * of the two resulting app lists.
  1385. * @opt_param string appFilterMimeTypes A comma-separated list of MIME types for
  1386. * open with filtering. All apps within the given app query scope which can open
  1387. * any of the given MIME types will be included in the response. If
  1388. * appFilterExtensions are provided as well, the result is a union of the two
  1389. * resulting app lists.
  1390. * @return Google_Service_Drive_AppList
  1391. */
  1392. public function listApps($optParams = array())
  1393. {
  1394. $params = array();
  1395. $params = array_merge($params, $optParams);
  1396. return $this->call('list', array($params), "Google_Service_Drive_AppList");
  1397. }
  1398. }
  1399. /**
  1400. * The "changes" collection of methods.
  1401. * Typical usage is:
  1402. * <code>
  1403. * $driveService = new Google_Service_Drive(...);
  1404. * $changes = $driveService->changes;
  1405. * </code>
  1406. */
  1407. class Google_Service_Drive_Changes_Resource extends Google_Service_Resource
  1408. {
  1409. /**
  1410. * Gets a specific change. (changes.get)
  1411. *
  1412. * @param string $changeId The ID of the change.
  1413. * @param array $optParams Optional parameters.
  1414. * @return Google_Service_Drive_Change
  1415. */
  1416. public function get($changeId, $optParams = array())
  1417. {
  1418. $params = array('changeId' => $changeId);
  1419. $params = array_merge($params, $optParams);
  1420. return $this->call('get', array($params), "Google_Service_Drive_Change");
  1421. }
  1422. /**
  1423. * Lists the changes for a user. (changes.listChanges)
  1424. *
  1425. * @param array $optParams Optional parameters.
  1426. *
  1427. * @opt_param bool includeSubscribed Whether to include public files the user
  1428. * has opened and shared files. When set to false, the list only includes owned
  1429. * files plus any shared or public files the user has explicitly added to a
  1430. * folder they own.
  1431. * @opt_param bool includeDeleted Whether to include deleted items.
  1432. * @opt_param int maxResults Maximum number of changes to return.
  1433. * @opt_param string pageToken Page token for changes.
  1434. * @opt_param string spaces A comma-separated list of spaces to query. Supported
  1435. * values are 'drive', 'appDataFolder' and 'photos'.
  1436. * @opt_param string startChangeId Change ID to start listing changes from.
  1437. * @return Google_Service_Drive_ChangeList
  1438. */
  1439. public function listChanges($optParams = array())
  1440. {
  1441. $params = array();
  1442. $params = array_merge($params, $optParams);
  1443. return $this->call('list', array($params), "Google_Service_Drive_ChangeList");
  1444. }
  1445. /**
  1446. * Subscribe to changes for a user. (changes.watch)
  1447. *
  1448. * @param Google_Channel $postBody
  1449. * @param array $optParams Optional parameters.
  1450. *
  1451. * @opt_param bool includeSubscribed Whether to include public files the user
  1452. * has opened and shared files. When set to false, the list only includes owned
  1453. * files plus any shared or public files the user has explicitly added to a
  1454. * folder they own.
  1455. * @opt_param bool includeDeleted Whether to include deleted items.
  1456. * @opt_param int maxResults Maximum number of changes to return.
  1457. * @opt_param string pageToken Page token for changes.
  1458. * @opt_param string spaces A comma-separated list of spaces to query. Supported
  1459. * values are 'drive', 'appDataFolder' and 'photos'.
  1460. * @opt_param string startChangeId Change ID to start listing changes from.
  1461. * @return Google_Service_Drive_Channel
  1462. */
  1463. public function watch(Google_Service_Drive_Channel $postBody, $optParams = array())
  1464. {
  1465. $params = array('postBody' => $postBody);
  1466. $params = array_merge($params, $optParams);
  1467. return $this->call('watch', array($params), "Google_Service_Drive_Channel");
  1468. }
  1469. }
  1470. /**
  1471. * The "channels" collection of methods.
  1472. * Typical usage is:
  1473. * <code>
  1474. * $driveService = new Google_Service_Drive(...);
  1475. * $channels = $driveService->channels;
  1476. * </code>
  1477. */
  1478. class Google_Service_Drive_Channels_Resource extends Google_Service_Resource
  1479. {
  1480. /**
  1481. * Stop watching resources through this channel (channels.stop)
  1482. *
  1483. * @param Google_Channel $postBody
  1484. * @param array $optParams Optional parameters.
  1485. */
  1486. public function stop(Google_Service_Drive_Channel $postBody, $optParams = array())
  1487. {
  1488. $params = array('postBody' => $postBody);
  1489. $params = array_merge($params, $optParams);
  1490. return $this->call('stop', array($params));
  1491. }
  1492. }
  1493. /**
  1494. * The "children" collection of methods.
  1495. * Typical usage is:
  1496. * <code>
  1497. * $driveService = new Google_Service_Drive(...);
  1498. * $children = $driveService->children;
  1499. * </code>
  1500. */
  1501. class Google_Service_Drive_Children_Resource extends Google_Service_Resource
  1502. {
  1503. /**
  1504. * Removes a child from a folder. (children.delete)
  1505. *
  1506. * @param string $folderId The ID of the folder.
  1507. * @param string $childId The ID of the child.
  1508. * @param array $optParams Optional parameters.
  1509. */
  1510. public function delete($folderId, $childId, $optParams = array())
  1511. {
  1512. $params = array('folderId' => $folderId, 'childId' => $childId);
  1513. $params = array_merge($params, $optParams);
  1514. return $this->call('delete', array($params));
  1515. }
  1516. /**
  1517. * Gets a specific child reference. (children.get)
  1518. *
  1519. * @param string $folderId The ID of the folder.
  1520. * @param string $childId The ID of the child.
  1521. * @param array $optParams Optional parameters.
  1522. * @return Google_Service_Drive_ChildReference
  1523. */
  1524. public function get($folderId, $childId, $optParams = array())
  1525. {
  1526. $params = array('folderId' => $folderId, 'childId' => $childId);
  1527. $params = array_merge($params, $optParams);
  1528. return $this->call('get', array($params), "Google_Service_Drive_ChildReference");
  1529. }
  1530. /**
  1531. * Inserts a file into a folder. (children.insert)
  1532. *
  1533. * @param string $folderId The ID of the folder.
  1534. * @param Google_ChildReference $postBody
  1535. * @param array $optParams Optional parameters.
  1536. * @return Google_Service_Drive_ChildReference
  1537. */
  1538. public function insert($folderId, Google_Service_Drive_ChildReference $postBody, $optParams = array())
  1539. {
  1540. $params = array('folderId' => $folderId, 'postBody' => $postBody);
  1541. $params = array_merge($params, $optParams);
  1542. return $this->call('insert', array($params), "Google_Service_Drive_ChildReference");
  1543. }
  1544. /**
  1545. * Lists a folder's children. (children.listChildren)
  1546. *
  1547. * @param string $folderId The ID of the folder.
  1548. * @param array $optParams Optional parameters.
  1549. *
  1550. * @opt_param string orderBy A comma-separated list of sort keys. Valid keys are
  1551. * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate',
  1552. * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred',
  1553. * and 'title'. Each key sorts ascending by default, but may be reversed with
  1554. * the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title.
  1555. * Please note that there is a current limitation for users with approximately
  1556. * one million files in which the requested sort order is ignored.
  1557. * @opt_param string pageToken Page token for children.
  1558. * @opt_param string q Query string for searching children.
  1559. * @opt_param int maxResults Maximum number of children to return.
  1560. * @return Google_Service_Drive_ChildList
  1561. */
  1562. public function listChildren($folderId, $optParams = array())
  1563. {
  1564. $params = array('folderId' => $folderId);
  1565. $params = array_merge($params, $optParams);
  1566. return $this->call('list', array($params), "Google_Service_Drive_ChildList");
  1567. }
  1568. }
  1569. /**
  1570. * The "comments" collection of methods.
  1571. * Typical usage is:
  1572. * <code>
  1573. * $driveService = new Google_Service_Drive(...);
  1574. * $comments = $driveService->comments;
  1575. * </code>
  1576. */
  1577. class Google_Service_Drive_Comments_Resource extends Google_Service_Resource
  1578. {
  1579. /**
  1580. * Deletes a comment. (comments.delete)
  1581. *
  1582. * @param string $fileId The ID of the file.
  1583. * @param string $commentId The ID of the comment.
  1584. * @param array $optParams Optional parameters.
  1585. */
  1586. public function delete($fileId, $commentId, $optParams = array())
  1587. {
  1588. $params = array('fileId' => $fileId, 'commentId' => $commentId);
  1589. $params = array_merge($params, $optParams);
  1590. return $this->call('delete', array($params));
  1591. }
  1592. /**
  1593. * Gets a comment by ID. (comments.get)
  1594. *
  1595. * @param string $fileId The ID of the file.
  1596. * @param string $commentId The ID of the comment.
  1597. * @param array $optParams Optional parameters.
  1598. *
  1599. * @opt_param bool includeDeleted If set, this will succeed when retrieving a
  1600. * deleted comment, and will include any deleted replies.
  1601. * @return Google_Service_Drive_Comment
  1602. */
  1603. public function get($fileId, $commentId, $optParams = array())
  1604. {
  1605. $params = array('fileId' => $fileId, 'commentId' => $commentId);
  1606. $params = array_merge($params, $optParams);
  1607. return $this->call('get', array($params), "Google_Service_Drive_Comment");
  1608. }
  1609. /**
  1610. * Creates a new comment on the given file. (comments.insert)
  1611. *
  1612. * @param string $fileId The ID of the file.
  1613. * @param Google_Comment $postBody
  1614. * @param array $optParams Optional parameters.
  1615. * @return Google_Service_Drive_Comment
  1616. */
  1617. public function insert($fileId, Google_Service_Drive_Comment $postBody, $optParams = array())
  1618. {
  1619. $params = array('fileId' => $fileId, 'postBody' => $postBody);
  1620. $params = array_merge($params, $optParams);
  1621. return $this->call('insert', array($params), "Google_Service_Drive_Comment");
  1622. }
  1623. /**
  1624. * Lists a file's comments. (comments.listComments)
  1625. *
  1626. * @param string $fileId The ID of the file.
  1627. * @param array $optParams Optional parameters.
  1628. *
  1629. * @opt_param string pageToken The continuation token, used to page through
  1630. * large result sets. To get the next page of results, set this parameter to the
  1631. * value of "nextPageToken" from the previous response.
  1632. * @opt_param string updatedMin Only discussions that were updated after this
  1633. * timestamp will be returned. Formatted as an RFC 3339 timestamp.
  1634. * @opt_param bool includeDeleted If set, all comments and replies, including
  1635. * deleted comments and replies (with content stripped) will be returned.
  1636. * @opt_param int maxResults The maximum number of discussions to include in the
  1637. * response, used for paging.
  1638. * @return Google_Service_Drive_CommentList
  1639. */
  1640. public function listComments($fileId, $optParams = array())
  1641. {
  1642. $params = array('fileId' => $fileId);
  1643. $params = array_merge($params, $optParams);
  1644. return $this->call('list', array($params), "Google_Service_Drive_CommentList");
  1645. }
  1646. /**
  1647. * Updates an existing comment. This method supports patch semantics.
  1648. * (comments.patch)
  1649. *
  1650. * @param string $fileId The ID of the file.
  1651. * @param string $commentId The ID of the comment.
  1652. * @param Google_Comment $postBody
  1653. * @param array $optParams Optional parameters.
  1654. * @return Google_Service_Drive_Comment
  1655. */
  1656. public function patch($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array())
  1657. {
  1658. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
  1659. $params = array_merge($params, $optParams);
  1660. return $this->call('patch', array($params), "Google_Service_Drive_Comment");
  1661. }
  1662. /**
  1663. * Updates an existing comment. (comments.update)
  1664. *
  1665. * @param string $fileId The ID of the file.
  1666. * @param string $commentId The ID of the comment.
  1667. * @param Google_Comment $postBody
  1668. * @param array $optParams Optional parameters.
  1669. * @return Google_Service_Drive_Comment
  1670. */
  1671. public function update($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array())
  1672. {
  1673. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
  1674. $params = array_merge($params, $optParams);
  1675. return $this->call('update', array($params), "Google_Service_Drive_Comment");
  1676. }
  1677. }
  1678. /**
  1679. * The "files" collection of methods.
  1680. * Typical usage is:
  1681. * <code>
  1682. * $driveService = new Google_Service_Drive(...);
  1683. * $files = $driveService->files;
  1684. * </code>
  1685. */
  1686. class Google_Service_Drive_Files_Resource extends Google_Service_Resource
  1687. {
  1688. /**
  1689. * Creates a copy of the specified file. (files.copy)
  1690. *
  1691. * @param string $fileId The ID of the file to copy.
  1692. * @param Google_DriveFile $postBody
  1693. * @param array $optParams Optional parameters.
  1694. *
  1695. * @opt_param bool convert Whether to convert this file to the corresponding
  1696. * Google Docs format.
  1697. * @opt_param string ocrLanguage If ocr is true, hints at the language to use.
  1698. * Valid values are BCP 47 codes.
  1699. * @opt_param string visibility The visibility of the new file. This parameter
  1700. * is only relevant when the source is not a native Google Doc and
  1701. * convert=false.
  1702. * @opt_param bool pinned Whether to pin the head revision of the new copy. A
  1703. * file can have a maximum of 200 pinned revisions.
  1704. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf
  1705. * uploads.
  1706. * @opt_param string timedTextTrackName The timed text track name.
  1707. * @opt_param string timedTextLanguage The language of the timed text.
  1708. * @return Google_Service_Drive_DriveFile
  1709. */
  1710. public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array())
  1711. {
  1712. $params = array('fileId' => $fileId, 'postBody' => $postBody);
  1713. $params = array_merge($params, $optParams);
  1714. return $this->call('copy', array($params), "Google_Service_Drive_DriveFile");
  1715. }
  1716. /**
  1717. * Permanently deletes a file by ID. Skips the trash. The currently
  1718. * authenticated user must own the file. (files.delete)
  1719. *
  1720. * @param string $fileId The ID of the file to delete.
  1721. * @param array $optParams Optional parameters.
  1722. */
  1723. public function delete($fileId, $optParams = array())
  1724. {
  1725. $params = array('fileId' => $fileId);
  1726. $params = array_merge($params, $optParams);
  1727. return $this->call('delete', array($params));
  1728. }
  1729. /**
  1730. * Permanently deletes all of the user's trashed files. (files.emptyTrash)
  1731. *
  1732. * @param array $optParams Optional parameters.
  1733. */
  1734. public function emptyTrash($optParams = array())
  1735. {
  1736. $params = array();
  1737. $params = array_merge($params, $optParams);
  1738. return $this->call('emptyTrash', array($params));
  1739. }
  1740. /**
  1741. * Generates a set of file IDs which can be provided in insert requests.
  1742. * (files.generateIds)
  1743. *
  1744. * @param array $optParams Optional parameters.
  1745. *
  1746. * @opt_param int maxResults Maximum number of IDs to return.
  1747. * @opt_param string space The space in which the IDs can be used to create new
  1748. * files. Supported values are 'drive' and 'appDataFolder'.
  1749. * @return Google_Service_Drive_GeneratedIds
  1750. */
  1751. public function generateIds($optParams = array())
  1752. {
  1753. $params = array();
  1754. $params = array_merge($params, $optParams);
  1755. return $this->call('generateIds', array($params), "Google_Service_Drive_GeneratedIds");
  1756. }
  1757. /**
  1758. * Gets a file's metadata by ID. (files.get)
  1759. *
  1760. * @param string $fileId The ID for the file in question.
  1761. * @param array $optParams Optional parameters.
  1762. *
  1763. * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
  1764. * of downloading known malware or other abusive files.
  1765. * @opt_param bool updateViewedDate Deprecated: Use files.update with
  1766. * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request
  1767. * body.
  1768. * @opt_param string revisionId Specifies the Revision ID that should be
  1769. * downloaded. Ignored unless alt=media is specified.
  1770. * @opt_param string projection This parameter is deprecated and has no
  1771. * function.
  1772. * @return Google_Service_Drive_DriveFile
  1773. */
  1774. public function get($fileId, $optParams = array())
  1775. {
  1776. $params = array('fileId' => $fileId);
  1777. $params = array_merge($params, $optParams);
  1778. return $this->call('get', array($params), "Google_Service_Drive_DriveFile");
  1779. }
  1780. /**
  1781. * Insert a new file. (files.insert)
  1782. *
  1783. * @param Google_DriveFile $postBody
  1784. * @param array $optParams Optional parameters.
  1785. *
  1786. * @opt_param bool convert Whether to convert this file to the corresponding
  1787. * Google Docs format.
  1788. * @opt_param bool useContentAsIndexableText Whether to use the content as
  1789. * indexable text.
  1790. * @opt_param string ocrLanguage If ocr is true, hints at the language to use.
  1791. * Valid values are BCP 47 codes.
  1792. * @opt_param string visibility The visibility of the new file. This parameter
  1793. * is only relevant when convert=false.
  1794. * @opt_param bool pinned Whether to pin the head revision of the uploaded file.
  1795. * A file can have a maximum of 200 pinned revisions.
  1796. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf
  1797. * uploads.
  1798. * @opt_param string timedTextTrackName The timed text track name.
  1799. * @opt_param string timedTextLanguage The language of the timed text.
  1800. * @return Google_Service_Drive_DriveFile
  1801. */
  1802. public function insert(Google_Service_Drive_DriveFile $postBody, $optParams = array())
  1803. {
  1804. $params = array('postBody' => $postBody);
  1805. $params = array_merge($params, $optParams);
  1806. return $this->call('insert', array($params), "Google_Service_Drive_DriveFile");
  1807. }
  1808. /**
  1809. * Lists the user's files. (files.listFiles)
  1810. *
  1811. * @param array $optParams Optional parameters.
  1812. *
  1813. * @opt_param string orderBy A comma-separated list of sort keys. Valid keys are
  1814. * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate',
  1815. * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred',
  1816. * and 'title'. Each key sorts ascending by default, but may be reversed with
  1817. * the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title.
  1818. * Please note that there is a current limitation for users with approximately
  1819. * one million files in which the requested sort order is ignored.
  1820. * @opt_param string projection This parameter is deprecated and has no
  1821. * function.
  1822. * @opt_param int maxResults Maximum number of files to return.
  1823. * @opt_param string q Query string for searching files.
  1824. * @opt_param string pageToken Page token for files.
  1825. * @opt_param string spaces A comma-separated list of spaces to query. Supported
  1826. * values are 'drive', 'appDataFolder' and 'photos'.
  1827. * @opt_param string corpus The body of items (files/documents) to which the
  1828. * query applies.
  1829. * @return Google_Service_Drive_FileList
  1830. */
  1831. public function listFiles($optParams = array())
  1832. {
  1833. $params = array();
  1834. $params = array_merge($params, $optParams);
  1835. return $this->call('list', array($params), "Google_Service_Drive_FileList");
  1836. }
  1837. /**
  1838. * Updates file metadata and/or content. This method supports patch semantics.
  1839. * (files.patch)
  1840. *
  1841. * @param string $fileId The ID of the file to update.
  1842. * @param Google_DriveFile $postBody
  1843. * @param array $optParams Optional parameters.
  1844. *
  1845. * @opt_param string addParents Comma-separated list of parent IDs to add.
  1846. * @opt_param string modifiedDateBehavior Determines the behavior in which
  1847. * modifiedDate is updated. This overrides setModifiedDate.
  1848. * @opt_param string removeParents Comma-separated list of parent IDs to remove.
  1849. * @opt_param bool updateViewedDate Whether to update the view date after
  1850. * successfully updating the file.
  1851. * @opt_param bool setModifiedDate Whether to set the modified date with the
  1852. * supplied modified date.
  1853. * @opt_param bool useContentAsIndexableText Whether to use the content as
  1854. * indexable text.
  1855. * @opt_param bool convert This parameter is deprecated and has no function.
  1856. * @opt_param string ocrLanguage If ocr is true, hints at the language to use.
  1857. * Valid values are BCP 47 codes.
  1858. * @opt_param bool pinned Whether to pin the new revision. A file can have a
  1859. * maximum of 200 pinned revisions.
  1860. * @opt_param bool newRevision Whether a blob upload should create a new
  1861. * revision. If false, the blob data in the current head revision is replaced.
  1862. * If true or not set, a new blob is created as head revision, and previous
  1863. * unpinned revisions are preserved for a short period of time. Pinned revisions
  1864. * are stored indefinitely, using additional storage quota, up to a maximum of
  1865. * 200 revisions. For details on how revisions are retained, see the Drive Help
  1866. * Center.
  1867. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf
  1868. * uploads.
  1869. * @opt_param string timedTextLanguage The language of the timed text.
  1870. * @opt_param string timedTextTrackName The timed text track name.
  1871. * @return Google_Service_Drive_DriveFile
  1872. */
  1873. public function patch($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array())
  1874. {
  1875. $params = array('fileId' => $fileId, 'postBody' => $postBody);
  1876. $params = array_merge($params, $optParams);
  1877. return $this->call('patch', array($params), "Google_Service_Drive_DriveFile");
  1878. }
  1879. /**
  1880. * Set the file's updated time to the current server time. (files.touch)
  1881. *
  1882. * @param string $fileId The ID of the file to update.
  1883. * @param array $optParams Optional parameters.
  1884. * @return Google_Service_Drive_DriveFile
  1885. */
  1886. public function touch($fileId, $optParams = array())
  1887. {
  1888. $params = array('fileId' => $fileId);
  1889. $params = array_merge($params, $optParams);
  1890. return $this->call('touch', array($params), "Google_Service_Drive_DriveFile");
  1891. }
  1892. /**
  1893. * Moves a file to the trash. The currently authenticated user must own the
  1894. * file. (files.trash)
  1895. *
  1896. * @param string $fileId The ID of the file to trash.
  1897. * @param array $optParams Optional parameters.
  1898. * @return Google_Service_Drive_DriveFile
  1899. */
  1900. public function trash($fileId, $optParams = array())
  1901. {
  1902. $params = array('fileId' => $fileId);
  1903. $params = array_merge($params, $optParams);
  1904. return $this->call('trash', array($params), "Google_Service_Drive_DriveFile");
  1905. }
  1906. /**
  1907. * Restores a file from the trash. (files.untrash)
  1908. *
  1909. * @param string $fileId The ID of the file to untrash.
  1910. * @param array $optParams Optional parameters.
  1911. * @return Google_Service_Drive_DriveFile
  1912. */
  1913. public function untrash($fileId, $optParams = array())
  1914. {
  1915. $params = array('fileId' => $fileId);
  1916. $params = array_merge($params, $optParams);
  1917. return $this->call('untrash', array($params), "Google_Service_Drive_DriveFile");
  1918. }
  1919. /**
  1920. * Updates file metadata and/or content. (files.update)
  1921. *
  1922. * @param string $fileId The ID of the file to update.
  1923. * @param Google_DriveFile $postBody
  1924. * @param array $optParams Optional parameters.
  1925. *
  1926. * @opt_param string addParents Comma-separated list of parent IDs to add.
  1927. * @opt_param string modifiedDateBehavior Determines the behavior in which
  1928. * modifiedDate is updated. This overrides setModifiedDate.
  1929. * @opt_param string removeParents Comma-separated list of parent IDs to remove.
  1930. * @opt_param bool updateViewedDate Whether to update the view date after
  1931. * successfully updating the file.
  1932. * @opt_param bool setModifiedDate Whether to set the modified date with the
  1933. * supplied modified date.
  1934. * @opt_param bool useContentAsIndexableText Whether to use the content as
  1935. * indexable text.
  1936. * @opt_param bool convert This parameter is deprecated and has no function.
  1937. * @opt_param string ocrLanguage If ocr is true, hints at the language to use.
  1938. * Valid values are BCP 47 codes.
  1939. * @opt_param bool pinned Whether to pin the new revision. A file can have a
  1940. * maximum of 200 pinned revisions.
  1941. * @opt_param bool newRevision Whether a blob upload should create a new
  1942. * revision. If false, the blob data in the current head revision is replaced.
  1943. * If true or not set, a new blob is created as head revision, and previous
  1944. * unpinned revisions are preserved for a short period of time. Pinned revisions
  1945. * are stored indefinitely, using additional storage quota, up to a maximum of
  1946. * 200 revisions. For details on how revisions are retained, see the Drive Help
  1947. * Center.
  1948. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf
  1949. * uploads.
  1950. * @opt_param string timedTextLanguage The language of the timed text.
  1951. * @opt_param string timedTextTrackName The timed text track name.
  1952. * @return Google_Service_Drive_DriveFile
  1953. */
  1954. public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array())
  1955. {
  1956. $params = array('fileId' => $fileId, 'postBody' => $postBody);
  1957. $params = array_merge($params, $optParams);
  1958. return $this->call('update', array($params), "Google_Service_Drive_DriveFile");
  1959. }
  1960. /**
  1961. * Subscribe to changes on a file (files.watch)
  1962. *
  1963. * @param string $fileId The ID for the file in question.
  1964. * @param Google_Channel $postBody
  1965. * @param array $optParams Optional parameters.
  1966. *
  1967. * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
  1968. * of downloading known malware or other abusive files.
  1969. * @opt_param bool updateViewedDate Deprecated: Use files.update with
  1970. * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request
  1971. * body.
  1972. * @opt_param string revisionId Specifies the Revision ID that should be
  1973. * downloaded. Ignored unless alt=media is specified.
  1974. * @opt_param string projection This parameter is deprecated and has no
  1975. * function.
  1976. * @return Google_Service_Drive_Channel
  1977. */
  1978. public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array())
  1979. {
  1980. $params = array('fileId' => $fileId, 'postBody' => $postBody);
  1981. $params = array_merge($params, $optParams);
  1982. return $this->call('watch', array($params), "Google_Service_Drive_Channel");
  1983. }
  1984. }
  1985. /**
  1986. * The "parents" collection of methods.
  1987. * Typical usage is:
  1988. * <code>
  1989. * $driveService = new Google_Service_Drive(...);
  1990. * $parents = $driveService->parents;
  1991. * </code>
  1992. */
  1993. class Google_Service_Drive_Parents_Resource extends Google_Service_Resource
  1994. {
  1995. /**
  1996. * Removes a parent from a file. (parents.delete)
  1997. *
  1998. * @param string $fileId The ID of the file.
  1999. * @param string $parentId The ID of the parent.
  2000. * @param array $optParams Optional parameters.
  2001. */
  2002. public function delete($fileId, $parentId, $optParams = array())
  2003. {
  2004. $params = array('fileId' => $fileId, 'parentId' => $parentId);
  2005. $params = array_merge($params, $optParams);
  2006. return $this->call('delete', array($params));
  2007. }
  2008. /**
  2009. * Gets a specific parent reference. (parents.get)
  2010. *
  2011. * @param string $fileId The ID of the file.
  2012. * @param string $parentId The ID of the parent.
  2013. * @param array $optParams Optional parameters.
  2014. * @return Google_Service_Drive_ParentReference
  2015. */
  2016. public function get($fileId, $parentId, $optParams = array())
  2017. {
  2018. $params = array('fileId' => $fileId, 'parentId' => $parentId);
  2019. $params = array_merge($params, $optParams);
  2020. return $this->call('get', array($params), "Google_Service_Drive_ParentReference");
  2021. }
  2022. /**
  2023. * Adds a parent folder for a file. (parents.insert)
  2024. *
  2025. * @param string $fileId The ID of the file.
  2026. * @param Google_ParentReference $postBody
  2027. * @param array $optParams Optional parameters.
  2028. * @return Google_Service_Drive_ParentReference
  2029. */
  2030. public function insert($fileId, Google_Service_Drive_ParentReference $postBody, $optParams = array())
  2031. {
  2032. $params = array('fileId' => $fileId, 'postBody' => $postBody);
  2033. $params = array_merge($params, $optParams);
  2034. return $this->call('insert', array($params), "Google_Service_Drive_ParentReference");
  2035. }
  2036. /**
  2037. * Lists a file's parents. (parents.listParents)
  2038. *
  2039. * @param string $fileId The ID of the file.
  2040. * @param array $optParams Optional parameters.
  2041. * @return Google_Service_Drive_ParentList
  2042. */
  2043. public function listParents($fileId, $optParams = array())
  2044. {
  2045. $params = array('fileId' => $fileId);
  2046. $params = array_merge($params, $optParams);
  2047. return $this->call('list', array($params), "Google_Service_Drive_ParentList");
  2048. }
  2049. }
  2050. /**
  2051. * The "permissions" collection of methods.
  2052. * Typical usage is:
  2053. * <code>
  2054. * $driveService = new Google_Service_Drive(...);
  2055. * $permissions = $driveService->permissions;
  2056. * </code>
  2057. */
  2058. class Google_Service_Drive_Permissions_Resource extends Google_Service_Resource
  2059. {
  2060. /**
  2061. * Deletes a permission from a file. (permissions.delete)
  2062. *
  2063. * @param string $fileId The ID for the file.
  2064. * @param string $permissionId The ID for the permission.
  2065. * @param array $optParams Optional parameters.
  2066. */
  2067. public function delete($fileId, $permissionId, $optParams = array())
  2068. {
  2069. $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
  2070. $params = array_merge($params, $optParams);
  2071. return $this->call('delete', array($params));
  2072. }
  2073. /**
  2074. * Gets a permission by ID. (permissions.get)
  2075. *
  2076. * @param string $fileId The ID for the file.
  2077. * @param string $permissionId The ID for the permission.
  2078. * @param array $optParams Optional parameters.
  2079. * @return Google_Service_Drive_Permission
  2080. */
  2081. public function get($fileId, $permissionId, $optParams = array())
  2082. {
  2083. $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
  2084. $params = array_merge($params, $optParams);
  2085. return $this->call('get', array($params), "Google_Service_Drive_Permission");
  2086. }
  2087. /**
  2088. * Returns the permission ID for an email address. (permissions.getIdForEmail)
  2089. *
  2090. * @param string $email The email address for which to return a permission ID
  2091. * @param array $optParams Optional parameters.
  2092. * @return Google_Service_Drive_PermissionId
  2093. */
  2094. public function getIdForEmail($email, $optParams = array())
  2095. {
  2096. $params = array('email' => $email);
  2097. $params = array_merge($params, $optParams);
  2098. return $this->call('getIdForEmail', array($params), "Google_Service_Drive_PermissionId");
  2099. }
  2100. /**
  2101. * Inserts a permission for a file. (permissions.insert)
  2102. *
  2103. * @param string $fileId The ID for the file.
  2104. * @param Google_Permission $postBody
  2105. * @param array $optParams Optional parameters.
  2106. *
  2107. * @opt_param string emailMessage A custom message to include in notification
  2108. * emails.
  2109. * @opt_param bool sendNotificationEmails Whether to send notification emails
  2110. * when sharing to users or groups. This parameter is ignored and an email is
  2111. * sent if the role is owner.
  2112. * @return Google_Service_Drive_Permission
  2113. */
  2114. public function insert($fileId, Google_Service_Drive_Permission $postBody, $optParams = array())
  2115. {
  2116. $params = array('fileId' => $fileId, 'postBody' => $postBody);
  2117. $params = array_merge($params, $optParams);
  2118. return $this->call('insert', array($params), "Google_Service_Drive_Permission");
  2119. }
  2120. /**
  2121. * Lists a file's permissions. (permissions.listPermissions)
  2122. *
  2123. * @param string $fileId The ID for the file.
  2124. * @param array $optParams Optional parameters.
  2125. * @return Google_Service_Drive_PermissionList
  2126. */
  2127. public function listPermissions($fileId, $optParams = array())
  2128. {
  2129. $params = array('fileId' => $fileId);
  2130. $params = array_merge($params, $optParams);
  2131. return $this->call('list', array($params), "Google_Service_Drive_PermissionList");
  2132. }
  2133. /**
  2134. * Updates a permission using patch semantics. (permissions.patch)
  2135. *
  2136. * @param string $fileId The ID for the file.
  2137. * @param string $permissionId The ID for the permission.
  2138. * @param Google_Permission $postBody
  2139. * @param array $optParams Optional parameters.
  2140. *
  2141. * @opt_param bool transferOwnership Whether changing a role to 'owner'
  2142. * downgrades the current owners to writers. Does nothing if the specified role
  2143. * is not 'owner'.
  2144. * @return Google_Service_Drive_Permission
  2145. */
  2146. public function patch($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array())
  2147. {
  2148. $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
  2149. $params = array_merge($params, $optParams);
  2150. return $this->call('patch', array($params), "Google_Service_Drive_Permission");
  2151. }
  2152. /**
  2153. * Updates a permission. (permissions.update)
  2154. *
  2155. * @param string $fileId The ID for the file.
  2156. * @param string $permissionId The ID for the permission.
  2157. * @param Google_Permission $postBody
  2158. * @param array $optParams Optional parameters.
  2159. *
  2160. * @opt_param bool transferOwnership Whether changing a role to 'owner'
  2161. * downgrades the current owners to writers. Does nothing if the specified role
  2162. * is not 'owner'.
  2163. * @return Google_Service_Drive_Permission
  2164. */
  2165. public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array())
  2166. {
  2167. $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
  2168. $params = array_merge($params, $optParams);
  2169. return $this->call('update', array($params), "Google_Service_Drive_Permission");
  2170. }
  2171. }
  2172. /**
  2173. * The "properties" collection of methods.
  2174. * Typical usage is:
  2175. * <code>
  2176. * $driveService = new Google_Service_Drive(...);
  2177. * $properties = $driveService->properties;
  2178. * </code>
  2179. */
  2180. class Google_Service_Drive_Properties_Resource extends Google_Service_Resource
  2181. {
  2182. /**
  2183. * Deletes a property. (properties.delete)
  2184. *
  2185. * @param string $fileId The ID of the file.
  2186. * @param string $propertyKey The key of the property.
  2187. * @param array $optParams Optional parameters.
  2188. *
  2189. * @opt_param string visibility The visibility of the property.
  2190. */
  2191. public function delete($fileId, $propertyKey, $optParams = array())
  2192. {
  2193. $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey);
  2194. $params = array_merge($params, $optParams);
  2195. return $this->call('delete', array($params));
  2196. }
  2197. /**
  2198. * Gets a property by its key. (properties.get)
  2199. *
  2200. * @param string $fileId The ID of the file.
  2201. * @param string $propertyKey The key of the property.
  2202. * @param array $optParams Optional parameters.
  2203. *
  2204. * @opt_param string visibility The visibility of the property.
  2205. * @return Google_Service_Drive_Property
  2206. */
  2207. public function get($fileId, $propertyKey, $optParams = array())
  2208. {
  2209. $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey);
  2210. $params = array_merge($params, $optParams);
  2211. return $this->call('get', array($params), "Google_Service_Drive_Property");
  2212. }
  2213. /**
  2214. * Adds a property to a file. (properties.insert)
  2215. *
  2216. * @param string $fileId The ID of the file.
  2217. * @param Google_Property $postBody
  2218. * @param array $optParams Optional parameters.
  2219. * @return Google_Service_Drive_Property
  2220. */
  2221. public function insert($fileId, Google_Service_Drive_Property $postBody, $optParams = array())
  2222. {
  2223. $params = array('fileId' => $fileId, 'postBody' => $postBody);
  2224. $params = array_merge($params, $optParams);
  2225. return $this->call('insert', array($params), "Google_Service_Drive_Property");
  2226. }
  2227. /**
  2228. * Lists a file's properties. (properties.listProperties)
  2229. *
  2230. * @param string $fileId The ID of the file.
  2231. * @param array $optParams Optional parameters.
  2232. * @return Google_Service_Drive_PropertyList
  2233. */
  2234. public function listProperties($fileId, $optParams = array())
  2235. {
  2236. $params = array('fileId' => $fileId);
  2237. $params = array_merge($params, $optParams);
  2238. return $this->call('list', array($params), "Google_Service_Drive_PropertyList");
  2239. }
  2240. /**
  2241. * Updates a property. This method supports patch semantics. (properties.patch)
  2242. *
  2243. * @param string $fileId The ID of the file.
  2244. * @param string $propertyKey The key of the property.
  2245. * @param Google_Property $postBody
  2246. * @param array $optParams Optional parameters.
  2247. *
  2248. * @opt_param string visibility The visibility of the property.
  2249. * @return Google_Service_Drive_Property
  2250. */
  2251. public function patch($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array())
  2252. {
  2253. $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody);
  2254. $params = array_merge($params, $optParams);
  2255. return $this->call('patch', array($params), "Google_Service_Drive_Property");
  2256. }
  2257. /**
  2258. * Updates a property. (properties.update)
  2259. *
  2260. * @param string $fileId The ID of the file.
  2261. * @param string $propertyKey The key of the property.
  2262. * @param Google_Property $postBody
  2263. * @param array $optParams Optional parameters.
  2264. *
  2265. * @opt_param string visibility The visibility of the property.
  2266. * @return Google_Service_Drive_Property
  2267. */
  2268. public function update($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array())
  2269. {
  2270. $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody);
  2271. $params = array_merge($params, $optParams);
  2272. return $this->call('update', array($params), "Google_Service_Drive_Property");
  2273. }
  2274. }
  2275. /**
  2276. * The "realtime" collection of methods.
  2277. * Typical usage is:
  2278. * <code>
  2279. * $driveService = new Google_Service_Drive(...);
  2280. * $realtime = $driveService->realtime;
  2281. * </code>
  2282. */
  2283. class Google_Service_Drive_Realtime_Resource extends Google_Service_Resource
  2284. {
  2285. /**
  2286. * Exports the contents of the Realtime API data model associated with this file
  2287. * as JSON. (realtime.get)
  2288. *
  2289. * @param string $fileId The ID of the file that the Realtime API data model is
  2290. * associated with.
  2291. * @param array $optParams Optional parameters.
  2292. *
  2293. * @opt_param int revision The revision of the Realtime API data model to
  2294. * export. Revisions start at 1 (the initial empty data model) and are
  2295. * incremented with each change. If this parameter is excluded, the most recent
  2296. * data model will be returned.
  2297. */
  2298. public function get($fileId, $optParams = array())
  2299. {
  2300. $params = array('fileId' => $fileId);
  2301. $params = array_merge($params, $optParams);
  2302. return $this->call('get', array($params));
  2303. }
  2304. /**
  2305. * Overwrites the Realtime API data model associated with this file with the
  2306. * provided JSON data model. (realtime.update)
  2307. *
  2308. * @param string $fileId The ID of the file that the Realtime API data model is
  2309. * associated with.
  2310. * @param array $optParams Optional parameters.
  2311. *
  2312. * @opt_param string baseRevision The revision of the model to diff the uploaded
  2313. * model against. If set, the uploaded model is diffed against the provided
  2314. * revision and those differences are merged with any changes made to the model
  2315. * after the provided revision. If not set, the uploaded model replaces the
  2316. * current model on the server.
  2317. */
  2318. public function update($fileId, $optParams = array())
  2319. {
  2320. $params = array('fileId' => $fileId);
  2321. $params = array_merge($params, $optParams);
  2322. return $this->call('update', array($params));
  2323. }
  2324. }
  2325. /**
  2326. * The "replies" collection of methods.
  2327. * Typical usage is:
  2328. * <code>
  2329. * $driveService = new Google_Service_Drive(...);
  2330. * $replies = $driveService->replies;
  2331. * </code>
  2332. */
  2333. class Google_Service_Drive_Replies_Resource extends Google_Service_Resource
  2334. {
  2335. /**
  2336. * Deletes a reply. (replies.delete)
  2337. *
  2338. * @param string $fileId The ID of the file.
  2339. * @param string $commentId The ID of the comment.
  2340. * @param string $replyId The ID of the reply.
  2341. * @param array $optParams Optional parameters.
  2342. */
  2343. public function delete($fileId, $commentId, $replyId, $optParams = array())
  2344. {
  2345. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId);
  2346. $params = array_merge($params, $optParams);
  2347. return $this->call('delete', array($params));
  2348. }
  2349. /**
  2350. * Gets a reply. (replies.get)
  2351. *
  2352. * @param string $fileId The ID of the file.
  2353. * @param string $commentId The ID of the comment.
  2354. * @param string $replyId The ID of the reply.
  2355. * @param array $optParams Optional parameters.
  2356. *
  2357. * @opt_param bool includeDeleted If set, this will succeed when retrieving a
  2358. * deleted reply.
  2359. * @return Google_Service_Drive_CommentReply
  2360. */
  2361. public function get($fileId, $commentId, $replyId, $optParams = array())
  2362. {
  2363. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId);
  2364. $params = array_merge($params, $optParams);
  2365. return $this->call('get', array($params), "Google_Service_Drive_CommentReply");
  2366. }
  2367. /**
  2368. * Creates a new reply to the given comment. (replies.insert)
  2369. *
  2370. * @param string $fileId The ID of the file.
  2371. * @param string $commentId The ID of the comment.
  2372. * @param Google_CommentReply $postBody
  2373. * @param array $optParams Optional parameters.
  2374. * @return Google_Service_Drive_CommentReply
  2375. */
  2376. public function insert($fileId, $commentId, Google_Service_Drive_CommentReply $postBody, $optParams = array())
  2377. {
  2378. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
  2379. $params = array_merge($params, $optParams);
  2380. return $this->call('insert', array($params), "Google_Service_Drive_CommentReply");
  2381. }
  2382. /**
  2383. * Lists all of the replies to a comment. (replies.listReplies)
  2384. *
  2385. * @param string $fileId The ID of the file.
  2386. * @param string $commentId The ID of the comment.
  2387. * @param array $optParams Optional parameters.
  2388. *
  2389. * @opt_param string pageToken The continuation token, used to page through
  2390. * large result sets. To get the next page of results, set this parameter to the
  2391. * value of "nextPageToken" from the previous response.
  2392. * @opt_param bool includeDeleted If set, all replies, including deleted replies
  2393. * (with content stripped) will be returned.
  2394. * @opt_param int maxResults The maximum number of replies to include in the
  2395. * response, used for paging.
  2396. * @return Google_Service_Drive_CommentReplyList
  2397. */
  2398. public function listReplies($fileId, $commentId, $optParams = array())
  2399. {
  2400. $params = array('fileId' => $fileId, 'commentId' => $commentId);
  2401. $params = array_merge($params, $optParams);
  2402. return $this->call('list', array($params), "Google_Service_Drive_CommentReplyList");
  2403. }
  2404. /**
  2405. * Updates an existing reply. This method supports patch semantics.
  2406. * (replies.patch)
  2407. *
  2408. * @param string $fileId The ID of the file.
  2409. * @param string $commentId The ID of the comment.
  2410. * @param string $replyId The ID of the reply.
  2411. * @param Google_CommentReply $postBody
  2412. * @param array $optParams Optional parameters.
  2413. * @return Google_Service_Drive_CommentReply
  2414. */
  2415. public function patch($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array())
  2416. {
  2417. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody);
  2418. $params = array_merge($params, $optParams);
  2419. return $this->call('patch', array($params), "Google_Service_Drive_CommentReply");
  2420. }
  2421. /**
  2422. * Updates an existing reply. (replies.update)
  2423. *
  2424. * @param string $fileId The ID of the file.
  2425. * @param string $commentId The ID of the comment.
  2426. * @param string $replyId The ID of the reply.
  2427. * @param Google_CommentReply $postBody
  2428. * @param array $optParams Optional parameters.
  2429. * @return Google_Service_Drive_CommentReply
  2430. */
  2431. public function update($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array())
  2432. {
  2433. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody);
  2434. $params = array_merge($params, $optParams);
  2435. return $this->call('update', array($params), "Google_Service_Drive_CommentReply");
  2436. }
  2437. }
  2438. /**
  2439. * The "revisions" collection of methods.
  2440. * Typical usage is:
  2441. * <code>
  2442. * $driveService = new Google_Service_Drive(...);
  2443. * $revisions = $driveService->revisions;
  2444. * </code>
  2445. */
  2446. class Google_Service_Drive_Revisions_Resource extends Google_Service_Resource
  2447. {
  2448. /**
  2449. * Removes a revision. (revisions.delete)
  2450. *
  2451. * @param string $fileId The ID of the file.
  2452. * @param string $revisionId The ID of the revision.
  2453. * @param array $optParams Optional parameters.
  2454. */
  2455. public function delete($fileId, $revisionId, $optParams = array())
  2456. {
  2457. $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
  2458. $params = array_merge($params, $optParams);
  2459. return $this->call('delete', array($params));
  2460. }
  2461. /**
  2462. * Gets a specific revision. (revisions.get)
  2463. *
  2464. * @param string $fileId The ID of the file.
  2465. * @param string $revisionId The ID of the revision.
  2466. * @param array $optParams Optional parameters.
  2467. * @return Google_Service_Drive_Revision
  2468. */
  2469. public function get($fileId, $revisionId, $optParams = array())
  2470. {
  2471. $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
  2472. $params = array_merge($params, $optParams);
  2473. return $this->call('get', array($params), "Google_Service_Drive_Revision");
  2474. }
  2475. /**
  2476. * Lists a file's revisions. (revisions.listRevisions)
  2477. *
  2478. * @param string $fileId The ID of the file.
  2479. * @param array $optParams Optional parameters.
  2480. * @return Google_Service_Drive_RevisionList
  2481. */
  2482. public function listRevisions($fileId, $optParams = array())
  2483. {
  2484. $params = array('fileId' => $fileId);
  2485. $params = array_merge($params, $optParams);
  2486. return $this->call('list', array($params), "Google_Service_Drive_RevisionList");
  2487. }
  2488. /**
  2489. * Updates a revision. This method supports patch semantics. (revisions.patch)
  2490. *
  2491. * @param string $fileId The ID for the file.
  2492. * @param string $revisionId The ID for the revision.
  2493. * @param Google_Revision $postBody
  2494. * @param array $optParams Optional parameters.
  2495. * @return Google_Service_Drive_Revision
  2496. */
  2497. public function patch($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array())
  2498. {
  2499. $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
  2500. $params = array_merge($params, $optParams);
  2501. return $this->call('patch', array($params), "Google_Service_Drive_Revision");
  2502. }
  2503. /**
  2504. * Updates a revision. (revisions.update)
  2505. *
  2506. * @param string $fileId The ID for the file.
  2507. * @param string $revisionId The ID for the revision.
  2508. * @param Google_Revision $postBody
  2509. * @param array $optParams Optional parameters.
  2510. * @return Google_Service_Drive_Revision
  2511. */
  2512. public function update($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array())
  2513. {
  2514. $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
  2515. $params = array_merge($params, $optParams);
  2516. return $this->call('update', array($params), "Google_Service_Drive_Revision");
  2517. }
  2518. }
  2519. class Google_Service_Drive_About extends Google_Collection
  2520. {
  2521. protected $collection_key = 'quotaBytesByService';
  2522. protected $internal_gapi_mappings = array(
  2523. );
  2524. protected $additionalRoleInfoType = 'Google_Service_Drive_AboutAdditionalRoleInfo';
  2525. protected $additionalRoleInfoDataType = 'array';
  2526. public $domainSharingPolicy;
  2527. public $etag;
  2528. protected $exportFormatsType = 'Google_Service_Drive_AboutExportFormats';
  2529. protected $exportFormatsDataType = 'array';
  2530. protected $featuresType = 'Google_Service_Drive_AboutFeatures';
  2531. protected $featuresDataType = 'array';
  2532. public $folderColorPalette;
  2533. protected $importFormatsType = 'Google_Service_Drive_AboutImportFormats';
  2534. protected $importFormatsDataType = 'array';
  2535. public $isCurrentAppInstalled;
  2536. public $kind;
  2537. public $languageCode;
  2538. public $largestChangeId;
  2539. protected $maxUploadSizesType = 'Google_Service_Drive_AboutMaxUploadSizes';
  2540. protected $maxUploadSizesDataType = 'array';
  2541. public $name;
  2542. public $permissionId;
  2543. protected $quotaBytesByServiceType = 'Google_Service_Drive_AboutQuotaBytesByService';
  2544. protected $quotaBytesByServiceDataType = 'array';
  2545. public $quotaBytesTotal;
  2546. public $quotaBytesUsed;
  2547. public $quotaBytesUsedAggregate;
  2548. public $quotaBytesUsedInTrash;
  2549. public $quotaType;
  2550. public $remainingChangeIds;
  2551. public $rootFolderId;
  2552. public $selfLink;
  2553. protected $userType = 'Google_Service_Drive_User';
  2554. protected $userDataType = '';
  2555. public function setAdditionalRoleInfo($additionalRoleInfo)
  2556. {
  2557. $this->additionalRoleInfo = $additionalRoleInfo;
  2558. }
  2559. public function getAdditionalRoleInfo()
  2560. {
  2561. return $this->additionalRoleInfo;
  2562. }
  2563. public function setDomainSharingPolicy($domainSharingPolicy)
  2564. {
  2565. $this->domainSharingPolicy = $domainSharingPolicy;
  2566. }
  2567. public function getDomainSharingPolicy()
  2568. {
  2569. return $this->domainSharingPolicy;
  2570. }
  2571. public function setEtag($etag)
  2572. {
  2573. $this->etag = $etag;
  2574. }
  2575. public function getEtag()
  2576. {
  2577. return $this->etag;
  2578. }
  2579. public function setExportFormats($exportFormats)
  2580. {
  2581. $this->exportFormats = $exportFormats;
  2582. }
  2583. public function getExportFormats()
  2584. {
  2585. return $this->exportFormats;
  2586. }
  2587. public function setFeatures($features)
  2588. {
  2589. $this->features = $features;
  2590. }
  2591. public function getFeatures()
  2592. {
  2593. return $this->features;
  2594. }
  2595. public function setFolderColorPalette($folderColorPalette)
  2596. {
  2597. $this->folderColorPalette = $folderColorPalette;
  2598. }
  2599. public function getFolderColorPalette()
  2600. {
  2601. return $this->folderColorPalette;
  2602. }
  2603. public function setImportFormats($importFormats)
  2604. {
  2605. $this->importFormats = $importFormats;
  2606. }
  2607. public function getImportFormats()
  2608. {
  2609. return $this->importFormats;
  2610. }
  2611. public function setIsCurrentAppInstalled($isCurrentAppInstalled)
  2612. {
  2613. $this->isCurrentAppInstalled = $isCurrentAppInstalled;
  2614. }
  2615. public function getIsCurrentAppInstalled()
  2616. {
  2617. return $this->isCurrentAppInstalled;
  2618. }
  2619. public function setKind($kind)
  2620. {
  2621. $this->kind = $kind;
  2622. }
  2623. public function getKind()
  2624. {
  2625. return $this->kind;
  2626. }
  2627. public function setLanguageCode($languageCode)
  2628. {
  2629. $this->languageCode = $languageCode;
  2630. }
  2631. public function getLanguageCode()
  2632. {
  2633. return $this->languageCode;
  2634. }
  2635. public function setLargestChangeId($largestChangeId)
  2636. {
  2637. $this->largestChangeId = $largestChangeId;
  2638. }
  2639. public function getLargestChangeId()
  2640. {
  2641. return $this->largestChangeId;
  2642. }
  2643. public function setMaxUploadSizes($maxUploadSizes)
  2644. {
  2645. $this->maxUploadSizes = $maxUploadSizes;
  2646. }
  2647. public function getMaxUploadSizes()
  2648. {
  2649. return $this->maxUploadSizes;
  2650. }
  2651. public function setName($name)
  2652. {
  2653. $this->name = $name;
  2654. }
  2655. public function getName()
  2656. {
  2657. return $this->name;
  2658. }
  2659. public function setPermissionId($permissionId)
  2660. {
  2661. $this->permissionId = $permissionId;
  2662. }
  2663. public function getPermissionId()
  2664. {
  2665. return $this->permissionId;
  2666. }
  2667. public function setQuotaBytesByService($quotaBytesByService)
  2668. {
  2669. $this->quotaBytesByService = $quotaBytesByService;
  2670. }
  2671. public function getQuotaBytesByService()
  2672. {
  2673. return $this->quotaBytesByService;
  2674. }
  2675. public function setQuotaBytesTotal($quotaBytesTotal)
  2676. {
  2677. $this->quotaBytesTotal = $quotaBytesTotal;
  2678. }
  2679. public function getQuotaBytesTotal()
  2680. {
  2681. return $this->quotaBytesTotal;
  2682. }
  2683. public function setQuotaBytesUsed($quotaBytesUsed)
  2684. {
  2685. $this->quotaBytesUsed = $quotaBytesUsed;
  2686. }
  2687. public function getQuotaBytesUsed()
  2688. {
  2689. return $this->quotaBytesUsed;
  2690. }
  2691. public function setQuotaBytesUsedAggregate($quotaBytesUsedAggregate)
  2692. {
  2693. $this->quotaBytesUsedAggregate = $quotaBytesUsedAggregate;
  2694. }
  2695. public function getQuotaBytesUsedAggregate()
  2696. {
  2697. return $this->quotaBytesUsedAggregate;
  2698. }
  2699. public function setQuotaBytesUsedInTrash($quotaBytesUsedInTrash)
  2700. {
  2701. $this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash;
  2702. }
  2703. public function getQuotaBytesUsedInTrash()
  2704. {
  2705. return $this->quotaBytesUsedInTrash;
  2706. }
  2707. public function setQuotaType($quotaType)
  2708. {
  2709. $this->quotaType = $quotaType;
  2710. }
  2711. public function getQuotaType()
  2712. {
  2713. return $this->quotaType;
  2714. }
  2715. public function setRemainingChangeIds($remainingChangeIds)
  2716. {
  2717. $this->remainingChangeIds = $remainingChangeIds;
  2718. }
  2719. public function getRemainingChangeIds()
  2720. {
  2721. return $this->remainingChangeIds;
  2722. }
  2723. public function setRootFolderId($rootFolderId)
  2724. {
  2725. $this->rootFolderId = $rootFolderId;
  2726. }
  2727. public function getRootFolderId()
  2728. {
  2729. return $this->rootFolderId;
  2730. }
  2731. public function setSelfLink($selfLink)
  2732. {
  2733. $this->selfLink = $selfLink;
  2734. }
  2735. public function getSelfLink()
  2736. {
  2737. return $this->selfLink;
  2738. }
  2739. public function setUser(Google_Service_Drive_User $user)
  2740. {
  2741. $this->user = $user;
  2742. }
  2743. public function getUser()
  2744. {
  2745. return $this->user;
  2746. }
  2747. }
  2748. class Google_Service_Drive_AboutAdditionalRoleInfo extends Google_Collection
  2749. {
  2750. protected $collection_key = 'roleSets';
  2751. protected $internal_gapi_mappings = array(
  2752. );
  2753. protected $roleSetsType = 'Google_Service_Drive_AboutAdditionalRoleInfoRoleSets';
  2754. protected $roleSetsDataType = 'array';
  2755. public $type;
  2756. public function setRoleSets($roleSets)
  2757. {
  2758. $this->roleSets = $roleSets;
  2759. }
  2760. public function getRoleSets()
  2761. {
  2762. return $this->roleSets;
  2763. }
  2764. public function setType($type)
  2765. {
  2766. $this->type = $type;
  2767. }
  2768. public function getType()
  2769. {
  2770. return $this->type;
  2771. }
  2772. }
  2773. class Google_Service_Drive_AboutAdditionalRoleInfoRoleSets extends Google_Collection
  2774. {
  2775. protected $collection_key = 'additionalRoles';
  2776. protected $internal_gapi_mappings = array(
  2777. );
  2778. public $additionalRoles;
  2779. public $primaryRole;
  2780. public function setAdditionalRoles($additionalRoles)
  2781. {
  2782. $this->additionalRoles = $additionalRoles;
  2783. }
  2784. public function getAdditionalRoles()
  2785. {
  2786. return $this->additionalRoles;
  2787. }
  2788. public function setPrimaryRole($primaryRole)
  2789. {
  2790. $this->primaryRole = $primaryRole;
  2791. }
  2792. public function getPrimaryRole()
  2793. {
  2794. return $this->primaryRole;
  2795. }
  2796. }
  2797. class Google_Service_Drive_AboutExportFormats extends Google_Collection
  2798. {
  2799. protected $collection_key = 'targets';
  2800. protected $internal_gapi_mappings = array(
  2801. );
  2802. public $source;
  2803. public $targets;
  2804. public function setSource($source)
  2805. {
  2806. $this->source = $source;
  2807. }
  2808. public function getSource()
  2809. {
  2810. return $this->source;
  2811. }
  2812. public function setTargets($targets)
  2813. {
  2814. $this->targets = $targets;
  2815. }
  2816. public function getTargets()
  2817. {
  2818. return $this->targets;
  2819. }
  2820. }
  2821. class Google_Service_Drive_AboutFeatures extends Google_Model
  2822. {
  2823. protected $internal_gapi_mappings = array(
  2824. );
  2825. public $featureName;
  2826. public $featureRate;
  2827. public function setFeatureName($featureName)
  2828. {
  2829. $this->featureName = $featureName;
  2830. }
  2831. public function getFeatureName()
  2832. {
  2833. return $this->featureName;
  2834. }
  2835. public function setFeatureRate($featureRate)
  2836. {
  2837. $this->featureRate = $featureRate;
  2838. }
  2839. public function getFeatureRate()
  2840. {
  2841. return $this->featureRate;
  2842. }
  2843. }
  2844. class Google_Service_Drive_AboutImportFormats extends Google_Collection
  2845. {
  2846. protected $collection_key = 'targets';
  2847. protected $internal_gapi_mappings = array(
  2848. );
  2849. public $source;
  2850. public $targets;
  2851. public function setSource($source)
  2852. {
  2853. $this->source = $source;
  2854. }
  2855. public function getSource()
  2856. {
  2857. return $this->source;
  2858. }
  2859. public function setTargets($targets)
  2860. {
  2861. $this->targets = $targets;
  2862. }
  2863. public function getTargets()
  2864. {
  2865. return $this->targets;
  2866. }
  2867. }
  2868. class Google_Service_Drive_AboutMaxUploadSizes extends Google_Model
  2869. {
  2870. protected $internal_gapi_mappings = array(
  2871. );
  2872. public $size;
  2873. public $type;
  2874. public function setSize($size)
  2875. {
  2876. $this->size = $size;
  2877. }
  2878. public function getSize()
  2879. {
  2880. return $this->size;
  2881. }
  2882. public function setType($type)
  2883. {
  2884. $this->type = $type;
  2885. }
  2886. public function getType()
  2887. {
  2888. return $this->type;
  2889. }
  2890. }
  2891. class Google_Service_Drive_AboutQuotaBytesByService extends Google_Model
  2892. {
  2893. protected $internal_gapi_mappings = array(
  2894. );
  2895. public $bytesUsed;
  2896. public $serviceName;
  2897. public function setBytesUsed($bytesUsed)
  2898. {
  2899. $this->bytesUsed = $bytesUsed;
  2900. }
  2901. public function getBytesUsed()
  2902. {
  2903. return $this->bytesUsed;
  2904. }
  2905. public function setServiceName($serviceName)
  2906. {
  2907. $this->serviceName = $serviceName;
  2908. }
  2909. public function getServiceName()
  2910. {
  2911. return $this->serviceName;
  2912. }
  2913. }
  2914. class Google_Service_Drive_App extends Google_Collection
  2915. {
  2916. protected $collection_key = 'secondaryMimeTypes';
  2917. protected $internal_gapi_mappings = array(
  2918. );
  2919. public $authorized;
  2920. public $createInFolderTemplate;
  2921. public $createUrl;
  2922. public $hasDriveWideScope;
  2923. protected $iconsType = 'Google_Service_Drive_AppIcons';
  2924. protected $iconsDataType = 'array';
  2925. public $id;
  2926. public $installed;
  2927. public $kind;
  2928. public $longDescription;
  2929. public $name;
  2930. public $objectType;
  2931. public $openUrlTemplate;
  2932. public $primaryFileExtensions;
  2933. public $primaryMimeTypes;
  2934. public $productId;
  2935. public $productUrl;
  2936. public $secondaryFileExtensions;
  2937. public $secondaryMimeTypes;
  2938. public $shortDescription;
  2939. public $supportsCreate;
  2940. public $supportsImport;
  2941. public $supportsMultiOpen;
  2942. public $supportsOfflineCreate;
  2943. public $useByDefault;
  2944. public function setAuthorized($authorized)
  2945. {
  2946. $this->authorized = $authorized;
  2947. }
  2948. public function getAuthorized()
  2949. {
  2950. return $this->authorized;
  2951. }
  2952. public function setCreateInFolderTemplate($createInFolderTemplate)
  2953. {
  2954. $this->createInFolderTemplate = $createInFolderTemplate;
  2955. }
  2956. public function getCreateInFolderTemplate()
  2957. {
  2958. return $this->createInFolderTemplate;
  2959. }
  2960. public function setCreateUrl($createUrl)
  2961. {
  2962. $this->createUrl = $createUrl;
  2963. }
  2964. public function getCreateUrl()
  2965. {
  2966. return $this->createUrl;
  2967. }
  2968. public function setHasDriveWideScope($hasDriveWideScope)
  2969. {
  2970. $this->hasDriveWideScope = $hasDriveWideScope;
  2971. }
  2972. public function getHasDriveWideScope()
  2973. {
  2974. return $this->hasDriveWideScope;
  2975. }
  2976. public function setIcons($icons)
  2977. {
  2978. $this->icons = $icons;
  2979. }
  2980. public function getIcons()
  2981. {
  2982. return $this->icons;
  2983. }
  2984. public function setId($id)
  2985. {
  2986. $this->id = $id;
  2987. }
  2988. public function getId()
  2989. {
  2990. return $this->id;
  2991. }
  2992. public function setInstalled($installed)
  2993. {
  2994. $this->installed = $installed;
  2995. }
  2996. public function getInstalled()
  2997. {
  2998. return $this->installed;
  2999. }
  3000. public function setKind($kind)
  3001. {
  3002. $this->kind = $kind;
  3003. }
  3004. public function getKind()
  3005. {
  3006. return $this->kind;
  3007. }
  3008. public function setLongDescription($longDescription)
  3009. {
  3010. $this->longDescription = $longDescription;
  3011. }
  3012. public function getLongDescription()
  3013. {
  3014. return $this->longDescription;
  3015. }
  3016. public function setName($name)
  3017. {
  3018. $this->name = $name;
  3019. }
  3020. public function getName()
  3021. {
  3022. return $this->name;
  3023. }
  3024. public function setObjectType($objectType)
  3025. {
  3026. $this->objectType = $objectType;
  3027. }
  3028. public function getObjectType()
  3029. {
  3030. return $this->objectType;
  3031. }
  3032. public function setOpenUrlTemplate($openUrlTemplate)
  3033. {
  3034. $this->openUrlTemplate = $openUrlTemplate;
  3035. }
  3036. public function getOpenUrlTemplate()
  3037. {
  3038. return $this->openUrlTemplate;
  3039. }
  3040. public function setPrimaryFileExtensions($primaryFileExtensions)
  3041. {
  3042. $this->primaryFileExtensions = $primaryFileExtensions;
  3043. }
  3044. public function getPrimaryFileExtensions()
  3045. {
  3046. return $this->primaryFileExtensions;
  3047. }
  3048. public function setPrimaryMimeTypes($primaryMimeTypes)
  3049. {
  3050. $this->primaryMimeTypes = $primaryMimeTypes;
  3051. }
  3052. public function getPrimaryMimeTypes()
  3053. {
  3054. return $this->primaryMimeTypes;
  3055. }
  3056. public function setProductId($productId)
  3057. {
  3058. $this->productId = $productId;
  3059. }
  3060. public function getProductId()
  3061. {
  3062. return $this->productId;
  3063. }
  3064. public function setProductUrl($productUrl)
  3065. {
  3066. $this->productUrl = $productUrl;
  3067. }
  3068. public function getProductUrl()
  3069. {
  3070. return $this->productUrl;
  3071. }
  3072. public function setSecondaryFileExtensions($secondaryFileExtensions)
  3073. {
  3074. $this->secondaryFileExtensions = $secondaryFileExtensions;
  3075. }
  3076. public function getSecondaryFileExtensions()
  3077. {
  3078. return $this->secondaryFileExtensions;
  3079. }
  3080. public function setSecondaryMimeTypes($secondaryMimeTypes)
  3081. {
  3082. $this->secondaryMimeTypes = $secondaryMimeTypes;
  3083. }
  3084. public function getSecondaryMimeTypes()
  3085. {
  3086. return $this->secondaryMimeTypes;
  3087. }
  3088. public function setShortDescription($shortDescription)
  3089. {
  3090. $this->shortDescription = $shortDescription;
  3091. }
  3092. public function getShortDescription()
  3093. {
  3094. return $this->shortDescription;
  3095. }
  3096. public function setSupportsCreate($supportsCreate)
  3097. {
  3098. $this->supportsCreate = $supportsCreate;
  3099. }
  3100. public function getSupportsCreate()
  3101. {
  3102. return $this->supportsCreate;
  3103. }
  3104. public function setSupportsImport($supportsImport)
  3105. {
  3106. $this->supportsImport = $supportsImport;
  3107. }
  3108. public function getSupportsImport()
  3109. {
  3110. return $this->supportsImport;
  3111. }
  3112. public function setSupportsMultiOpen($supportsMultiOpen)
  3113. {
  3114. $this->supportsMultiOpen = $supportsMultiOpen;
  3115. }
  3116. public function getSupportsMultiOpen()
  3117. {
  3118. return $this->supportsMultiOpen;
  3119. }
  3120. public function setSupportsOfflineCreate($supportsOfflineCreate)
  3121. {
  3122. $this->supportsOfflineCreate = $supportsOfflineCreate;
  3123. }
  3124. public function getSupportsOfflineCreate()
  3125. {
  3126. return $this->supportsOfflineCreate;
  3127. }
  3128. public function setUseByDefault($useByDefault)
  3129. {
  3130. $this->useByDefault = $useByDefault;
  3131. }
  3132. public function getUseByDefault()
  3133. {
  3134. return $this->useByDefault;
  3135. }
  3136. }
  3137. class Google_Service_Drive_AppIcons extends Google_Model
  3138. {
  3139. protected $internal_gapi_mappings = array(
  3140. );
  3141. public $category;
  3142. public $iconUrl;
  3143. public $size;
  3144. public function setCategory($category)
  3145. {
  3146. $this->category = $category;
  3147. }
  3148. public function getCategory()
  3149. {
  3150. return $this->category;
  3151. }
  3152. public function setIconUrl($iconUrl)
  3153. {
  3154. $this->iconUrl = $iconUrl;
  3155. }
  3156. public function getIconUrl()
  3157. {
  3158. return $this->iconUrl;
  3159. }
  3160. public function setSize($size)
  3161. {
  3162. $this->size = $size;
  3163. }
  3164. public function getSize()
  3165. {
  3166. return $this->size;
  3167. }
  3168. }
  3169. class Google_Service_Drive_AppList extends Google_Collection
  3170. {
  3171. protected $collection_key = 'items';
  3172. protected $internal_gapi_mappings = array(
  3173. );
  3174. public $defaultAppIds;
  3175. public $etag;
  3176. protected $itemsType = 'Google_Service_Drive_App';
  3177. protected $itemsDataType = 'array';
  3178. public $kind;
  3179. public $selfLink;
  3180. public function setDefaultAppIds($defaultAppIds)
  3181. {
  3182. $this->defaultAppIds = $defaultAppIds;
  3183. }
  3184. public function getDefaultAppIds()
  3185. {
  3186. return $this->defaultAppIds;
  3187. }
  3188. public function setEtag($etag)
  3189. {
  3190. $this->etag = $etag;
  3191. }
  3192. public function getEtag()
  3193. {
  3194. return $this->etag;
  3195. }
  3196. public function setItems($items)
  3197. {
  3198. $this->items = $items;
  3199. }
  3200. public function getItems()
  3201. {
  3202. return $this->items;
  3203. }
  3204. public function setKind($kind)
  3205. {
  3206. $this->kind = $kind;
  3207. }
  3208. public function getKind()
  3209. {
  3210. return $this->kind;
  3211. }
  3212. public function setSelfLink($selfLink)
  3213. {
  3214. $this->selfLink = $selfLink;
  3215. }
  3216. public function getSelfLink()
  3217. {
  3218. return $this->selfLink;
  3219. }
  3220. }
  3221. class Google_Service_Drive_Change extends Google_Model
  3222. {
  3223. protected $internal_gapi_mappings = array(
  3224. );
  3225. public $deleted;
  3226. protected $fileType = 'Google_Service_Drive_DriveFile';
  3227. protected $fileDataType = '';
  3228. public $fileId;
  3229. public $id;
  3230. public $kind;
  3231. public $modificationDate;
  3232. public $selfLink;
  3233. public function setDeleted($deleted)
  3234. {
  3235. $this->deleted = $deleted;
  3236. }
  3237. public function getDeleted()
  3238. {
  3239. return $this->deleted;
  3240. }
  3241. public function setFile(Google_Service_Drive_DriveFile $file)
  3242. {
  3243. $this->file = $file;
  3244. }
  3245. public function getFile()
  3246. {
  3247. return $this->file;
  3248. }
  3249. public function setFileId($fileId)
  3250. {
  3251. $this->fileId = $fileId;
  3252. }
  3253. public function getFileId()
  3254. {
  3255. return $this->fileId;
  3256. }
  3257. public function setId($id)
  3258. {
  3259. $this->id = $id;
  3260. }
  3261. public function getId()
  3262. {
  3263. return $this->id;
  3264. }
  3265. public function setKind($kind)
  3266. {
  3267. $this->kind = $kind;
  3268. }
  3269. public function getKind()
  3270. {
  3271. return $this->kind;
  3272. }
  3273. public function setModificationDate($modificationDate)
  3274. {
  3275. $this->modificationDate = $modificationDate;
  3276. }
  3277. public function getModificationDate()
  3278. {
  3279. return $this->modificationDate;
  3280. }
  3281. public function setSelfLink($selfLink)
  3282. {
  3283. $this->selfLink = $selfLink;
  3284. }
  3285. public function getSelfLink()
  3286. {
  3287. return $this->selfLink;
  3288. }
  3289. }
  3290. class Google_Service_Drive_ChangeList extends Google_Collection
  3291. {
  3292. protected $collection_key = 'items';
  3293. protected $internal_gapi_mappings = array(
  3294. );
  3295. public $etag;
  3296. protected $itemsType = 'Google_Service_Drive_Change';
  3297. protected $itemsDataType = 'array';
  3298. public $kind;
  3299. public $largestChangeId;
  3300. public $nextLink;
  3301. public $nextPageToken;
  3302. public $selfLink;
  3303. public function setEtag($etag)
  3304. {
  3305. $this->etag = $etag;
  3306. }
  3307. public function getEtag()
  3308. {
  3309. return $this->etag;
  3310. }
  3311. public function setItems($items)
  3312. {
  3313. $this->items = $items;
  3314. }
  3315. public function getItems()
  3316. {
  3317. return $this->items;
  3318. }
  3319. public function setKind($kind)
  3320. {
  3321. $this->kind = $kind;
  3322. }
  3323. public function getKind()
  3324. {
  3325. return $this->kind;
  3326. }
  3327. public function setLargestChangeId($largestChangeId)
  3328. {
  3329. $this->largestChangeId = $largestChangeId;
  3330. }
  3331. public function getLargestChangeId()
  3332. {
  3333. return $this->largestChangeId;
  3334. }
  3335. public function setNextLink($nextLink)
  3336. {
  3337. $this->nextLink = $nextLink;
  3338. }
  3339. public function getNextLink()
  3340. {
  3341. return $this->nextLink;
  3342. }
  3343. public function setNextPageToken($nextPageToken)
  3344. {
  3345. $this->nextPageToken = $nextPageToken;
  3346. }
  3347. public function getNextPageToken()
  3348. {
  3349. return $this->nextPageToken;
  3350. }
  3351. public function setSelfLink($selfLink)
  3352. {
  3353. $this->selfLink = $selfLink;
  3354. }
  3355. public function getSelfLink()
  3356. {
  3357. return $this->selfLink;
  3358. }
  3359. }
  3360. class Google_Service_Drive_Channel extends Google_Model
  3361. {
  3362. protected $internal_gapi_mappings = array(
  3363. );
  3364. public $address;
  3365. public $expiration;
  3366. public $id;
  3367. public $kind;
  3368. public $params;
  3369. public $payload;
  3370. public $resourceId;
  3371. public $resourceUri;
  3372. public $token;
  3373. public $type;
  3374. public function setAddress($address)
  3375. {
  3376. $this->address = $address;
  3377. }
  3378. public function getAddress()
  3379. {
  3380. return $this->address;
  3381. }
  3382. public function setExpiration($expiration)
  3383. {
  3384. $this->expiration = $expiration;
  3385. }
  3386. public function getExpiration()
  3387. {
  3388. return $this->expiration;
  3389. }
  3390. public function setId($id)
  3391. {
  3392. $this->id = $id;
  3393. }
  3394. public function getId()
  3395. {
  3396. return $this->id;
  3397. }
  3398. public function setKind($kind)
  3399. {
  3400. $this->kind = $kind;
  3401. }
  3402. public function getKind()
  3403. {
  3404. return $this->kind;
  3405. }
  3406. public function setParams($params)
  3407. {
  3408. $this->params = $params;
  3409. }
  3410. public function getParams()
  3411. {
  3412. return $this->params;
  3413. }
  3414. public function setPayload($payload)
  3415. {
  3416. $this->payload = $payload;
  3417. }
  3418. public function getPayload()
  3419. {
  3420. return $this->payload;
  3421. }
  3422. public function setResourceId($resourceId)
  3423. {
  3424. $this->resourceId = $resourceId;
  3425. }
  3426. public function getResourceId()
  3427. {
  3428. return $this->resourceId;
  3429. }
  3430. public function setResourceUri($resourceUri)
  3431. {
  3432. $this->resourceUri = $resourceUri;
  3433. }
  3434. public function getResourceUri()
  3435. {
  3436. return $this->resourceUri;
  3437. }
  3438. public function setToken($token)
  3439. {
  3440. $this->token = $token;
  3441. }
  3442. public function getToken()
  3443. {
  3444. return $this->token;
  3445. }
  3446. public function setType($type)
  3447. {
  3448. $this->type = $type;
  3449. }
  3450. public function getType()
  3451. {
  3452. return $this->type;
  3453. }
  3454. }
  3455. class Google_Service_Drive_ChannelParams extends Google_Model
  3456. {
  3457. }
  3458. class Google_Service_Drive_ChildList extends Google_Collection
  3459. {
  3460. protected $collection_key = 'items';
  3461. protected $internal_gapi_mappings = array(
  3462. );
  3463. public $etag;
  3464. protected $itemsType = 'Google_Service_Drive_ChildReference';
  3465. protected $itemsDataType = 'array';
  3466. public $kind;
  3467. public $nextLink;
  3468. public $nextPageToken;
  3469. public $selfLink;
  3470. public function setEtag($etag)
  3471. {
  3472. $this->etag = $etag;
  3473. }
  3474. public function getEtag()
  3475. {
  3476. return $this->etag;
  3477. }
  3478. public function setItems($items)
  3479. {
  3480. $this->items = $items;
  3481. }
  3482. public function getItems()
  3483. {
  3484. return $this->items;
  3485. }
  3486. public function setKind($kind)
  3487. {
  3488. $this->kind = $kind;
  3489. }
  3490. public function getKind()
  3491. {
  3492. return $this->kind;
  3493. }
  3494. public function setNextLink($nextLink)
  3495. {
  3496. $this->nextLink = $nextLink;
  3497. }
  3498. public function getNextLink()
  3499. {
  3500. return $this->nextLink;
  3501. }
  3502. public function setNextPageToken($nextPageToken)
  3503. {
  3504. $this->nextPageToken = $nextPageToken;
  3505. }
  3506. public function getNextPageToken()
  3507. {
  3508. return $this->nextPageToken;
  3509. }
  3510. public function setSelfLink($selfLink)
  3511. {
  3512. $this->selfLink = $selfLink;
  3513. }
  3514. public function getSelfLink()
  3515. {
  3516. return $this->selfLink;
  3517. }
  3518. }
  3519. class Google_Service_Drive_ChildReference extends Google_Model
  3520. {
  3521. protected $internal_gapi_mappings = array(
  3522. );
  3523. public $childLink;
  3524. public $id;
  3525. public $kind;
  3526. public $selfLink;
  3527. public function setChildLink($childLink)
  3528. {
  3529. $this->childLink = $childLink;
  3530. }
  3531. public function getChildLink()
  3532. {
  3533. return $this->childLink;
  3534. }
  3535. public function setId($id)
  3536. {
  3537. $this->id = $id;
  3538. }
  3539. public function getId()
  3540. {
  3541. return $this->id;
  3542. }
  3543. public function setKind($kind)
  3544. {
  3545. $this->kind = $kind;
  3546. }
  3547. public function getKind()
  3548. {
  3549. return $this->kind;
  3550. }
  3551. public function setSelfLink($selfLink)
  3552. {
  3553. $this->selfLink = $selfLink;
  3554. }
  3555. public function getSelfLink()
  3556. {
  3557. return $this->selfLink;
  3558. }
  3559. }
  3560. class Google_Service_Drive_Comment extends Google_Collection
  3561. {
  3562. protected $collection_key = 'replies';
  3563. protected $internal_gapi_mappings = array(
  3564. );
  3565. public $anchor;
  3566. protected $authorType = 'Google_Service_Drive_User';
  3567. protected $authorDataType = '';
  3568. public $commentId;
  3569. public $content;
  3570. protected $contextType = 'Google_Service_Drive_CommentContext';
  3571. protected $contextDataType = '';
  3572. public $createdDate;
  3573. public $deleted;
  3574. public $fileId;
  3575. public $fileTitle;
  3576. public $htmlContent;
  3577. public $kind;
  3578. public $modifiedDate;
  3579. protected $repliesType = 'Google_Service_Drive_CommentReply';
  3580. protected $repliesDataType = 'array';
  3581. public $selfLink;
  3582. public $status;
  3583. public function setAnchor($anchor)
  3584. {
  3585. $this->anchor = $anchor;
  3586. }
  3587. public function getAnchor()
  3588. {
  3589. return $this->anchor;
  3590. }
  3591. public function setAuthor(Google_Service_Drive_User $author)
  3592. {
  3593. $this->author = $author;
  3594. }
  3595. public function getAuthor()
  3596. {
  3597. return $this->author;
  3598. }
  3599. public function setCommentId($commentId)
  3600. {
  3601. $this->commentId = $commentId;
  3602. }
  3603. public function getCommentId()
  3604. {
  3605. return $this->commentId;
  3606. }
  3607. public function setContent($content)
  3608. {
  3609. $this->content = $content;
  3610. }
  3611. public function getContent()
  3612. {
  3613. return $this->content;
  3614. }
  3615. public function setContext(Google_Service_Drive_CommentContext $context)
  3616. {
  3617. $this->context = $context;
  3618. }
  3619. public function getContext()
  3620. {
  3621. return $this->context;
  3622. }
  3623. public function setCreatedDate($createdDate)
  3624. {
  3625. $this->createdDate = $createdDate;
  3626. }
  3627. public function getCreatedDate()
  3628. {
  3629. return $this->createdDate;
  3630. }
  3631. public function setDeleted($deleted)
  3632. {
  3633. $this->deleted = $deleted;
  3634. }
  3635. public function getDeleted()
  3636. {
  3637. return $this->deleted;
  3638. }
  3639. public function setFileId($fileId)
  3640. {
  3641. $this->fileId = $fileId;
  3642. }
  3643. public function getFileId()
  3644. {
  3645. return $this->fileId;
  3646. }
  3647. public function setFileTitle($fileTitle)
  3648. {
  3649. $this->fileTitle = $fileTitle;
  3650. }
  3651. public function getFileTitle()
  3652. {
  3653. return $this->fileTitle;
  3654. }
  3655. public function setHtmlContent($htmlContent)
  3656. {
  3657. $this->htmlContent = $htmlContent;
  3658. }
  3659. public function getHtmlContent()
  3660. {
  3661. return $this->htmlContent;
  3662. }
  3663. public function setKind($kind)
  3664. {
  3665. $this->kind = $kind;
  3666. }
  3667. public function getKind()
  3668. {
  3669. return $this->kind;
  3670. }
  3671. public function setModifiedDate($modifiedDate)
  3672. {
  3673. $this->modifiedDate = $modifiedDate;
  3674. }
  3675. public function getModifiedDate()
  3676. {
  3677. return $this->modifiedDate;
  3678. }
  3679. public function setReplies($replies)
  3680. {
  3681. $this->replies = $replies;
  3682. }
  3683. public function getReplies()
  3684. {
  3685. return $this->replies;
  3686. }
  3687. public function setSelfLink($selfLink)
  3688. {
  3689. $this->selfLink = $selfLink;
  3690. }
  3691. public function getSelfLink()
  3692. {
  3693. return $this->selfLink;
  3694. }
  3695. public function setStatus($status)
  3696. {
  3697. $this->status = $status;
  3698. }
  3699. public function getStatus()
  3700. {
  3701. return $this->status;
  3702. }
  3703. }
  3704. class Google_Service_Drive_CommentContext extends Google_Model
  3705. {
  3706. protected $internal_gapi_mappings = array(
  3707. );
  3708. public $type;
  3709. public $value;
  3710. public function setType($type)
  3711. {
  3712. $this->type = $type;
  3713. }
  3714. public function getType()
  3715. {
  3716. return $this->type;
  3717. }
  3718. public function setValue($value)
  3719. {
  3720. $this->value = $value;
  3721. }
  3722. public function getValue()
  3723. {
  3724. return $this->value;
  3725. }
  3726. }
  3727. class Google_Service_Drive_CommentList extends Google_Collection
  3728. {
  3729. protected $collection_key = 'items';
  3730. protected $internal_gapi_mappings = array(
  3731. );
  3732. protected $itemsType = 'Google_Service_Drive_Comment';
  3733. protected $itemsDataType = 'array';
  3734. public $kind;
  3735. public $nextLink;
  3736. public $nextPageToken;
  3737. public $selfLink;
  3738. public function setItems($items)
  3739. {
  3740. $this->items = $items;
  3741. }
  3742. public function getItems()
  3743. {
  3744. return $this->items;
  3745. }
  3746. public function setKind($kind)
  3747. {
  3748. $this->kind = $kind;
  3749. }
  3750. public function getKind()
  3751. {
  3752. return $this->kind;
  3753. }
  3754. public function setNextLink($nextLink)
  3755. {
  3756. $this->nextLink = $nextLink;
  3757. }
  3758. public function getNextLink()
  3759. {
  3760. return $this->nextLink;
  3761. }
  3762. public function setNextPageToken($nextPageToken)
  3763. {
  3764. $this->nextPageToken = $nextPageToken;
  3765. }
  3766. public function getNextPageToken()
  3767. {
  3768. return $this->nextPageToken;
  3769. }
  3770. public function setSelfLink($selfLink)
  3771. {
  3772. $this->selfLink = $selfLink;
  3773. }
  3774. public function getSelfLink()
  3775. {
  3776. return $this->selfLink;
  3777. }
  3778. }
  3779. class Google_Service_Drive_CommentReply extends Google_Model
  3780. {
  3781. protected $internal_gapi_mappings = array(
  3782. );
  3783. protected $authorType = 'Google_Service_Drive_User';
  3784. protected $authorDataType = '';
  3785. public $content;
  3786. public $createdDate;
  3787. public $deleted;
  3788. public $htmlContent;
  3789. public $kind;
  3790. public $modifiedDate;
  3791. public $replyId;
  3792. public $verb;
  3793. public function setAuthor(Google_Service_Drive_User $author)
  3794. {
  3795. $this->author = $author;
  3796. }
  3797. public function getAuthor()
  3798. {
  3799. return $this->author;
  3800. }
  3801. public function setContent($content)
  3802. {
  3803. $this->content = $content;
  3804. }
  3805. public function getContent()
  3806. {
  3807. return $this->content;
  3808. }
  3809. public function setCreatedDate($createdDate)
  3810. {
  3811. $this->createdDate = $createdDate;
  3812. }
  3813. public function getCreatedDate()
  3814. {
  3815. return $this->createdDate;
  3816. }
  3817. public function setDeleted($deleted)
  3818. {
  3819. $this->deleted = $deleted;
  3820. }
  3821. public function getDeleted()
  3822. {
  3823. return $this->deleted;
  3824. }
  3825. public function setHtmlContent($htmlContent)
  3826. {
  3827. $this->htmlContent = $htmlContent;
  3828. }
  3829. public function getHtmlContent()
  3830. {
  3831. return $this->htmlContent;
  3832. }
  3833. public function setKind($kind)
  3834. {
  3835. $this->kind = $kind;
  3836. }
  3837. public function getKind()
  3838. {
  3839. return $this->kind;
  3840. }
  3841. public function setModifiedDate($modifiedDate)
  3842. {
  3843. $this->modifiedDate = $modifiedDate;
  3844. }
  3845. public function getModifiedDate()
  3846. {
  3847. return $this->modifiedDate;
  3848. }
  3849. public function setReplyId($replyId)
  3850. {
  3851. $this->replyId = $replyId;
  3852. }
  3853. public function getReplyId()
  3854. {
  3855. return $this->replyId;
  3856. }
  3857. public function setVerb($verb)
  3858. {
  3859. $this->verb = $verb;
  3860. }
  3861. public function getVerb()
  3862. {
  3863. return $this->verb;
  3864. }
  3865. }
  3866. class Google_Service_Drive_CommentReplyList extends Google_Collection
  3867. {
  3868. protected $collection_key = 'items';
  3869. protected $internal_gapi_mappings = array(
  3870. );
  3871. protected $itemsType = 'Google_Service_Drive_CommentReply';
  3872. protected $itemsDataType = 'array';
  3873. public $kind;
  3874. public $nextLink;
  3875. public $nextPageToken;
  3876. public $selfLink;
  3877. public function setItems($items)
  3878. {
  3879. $this->items = $items;
  3880. }
  3881. public function getItems()
  3882. {
  3883. return $this->items;
  3884. }
  3885. public function setKind($kind)
  3886. {
  3887. $this->kind = $kind;
  3888. }
  3889. public function getKind()
  3890. {
  3891. return $this->kind;
  3892. }
  3893. public function setNextLink($nextLink)
  3894. {
  3895. $this->nextLink = $nextLink;
  3896. }
  3897. public function getNextLink()
  3898. {
  3899. return $this->nextLink;
  3900. }
  3901. public function setNextPageToken($nextPageToken)
  3902. {
  3903. $this->nextPageToken = $nextPageToken;
  3904. }
  3905. public function getNextPageToken()
  3906. {
  3907. return $this->nextPageToken;
  3908. }
  3909. public function setSelfLink($selfLink)
  3910. {
  3911. $this->selfLink = $selfLink;
  3912. }
  3913. public function getSelfLink()
  3914. {
  3915. return $this->selfLink;
  3916. }
  3917. }
  3918. class Google_Service_Drive_DriveFile extends Google_Collection
  3919. {
  3920. protected $collection_key = 'spaces';
  3921. protected $internal_gapi_mappings = array(
  3922. );
  3923. public $alternateLink;
  3924. public $appDataContents;
  3925. public $canComment;
  3926. public $copyable;
  3927. public $createdDate;
  3928. public $defaultOpenWithLink;
  3929. public $description;
  3930. public $downloadUrl;
  3931. public $editable;
  3932. public $embedLink;
  3933. public $etag;
  3934. public $explicitlyTrashed;
  3935. public $exportLinks;
  3936. public $fileExtension;
  3937. public $fileSize;
  3938. public $folderColorRgb;
  3939. public $fullFileExtension;
  3940. public $headRevisionId;
  3941. public $iconLink;
  3942. public $id;
  3943. protected $imageMediaMetadataType = 'Google_Service_Drive_DriveFileImageMediaMetadata';
  3944. protected $imageMediaMetadataDataType = '';
  3945. protected $indexableTextType = 'Google_Service_Drive_DriveFileIndexableText';
  3946. protected $indexableTextDataType = '';
  3947. public $kind;
  3948. protected $labelsType = 'Google_Service_Drive_DriveFileLabels';
  3949. protected $labelsDataType = '';
  3950. protected $lastModifyingUserType = 'Google_Service_Drive_User';
  3951. protected $lastModifyingUserDataType = '';
  3952. public $lastModifyingUserName;
  3953. public $lastViewedByMeDate;
  3954. public $markedViewedByMeDate;
  3955. public $md5Checksum;
  3956. public $mimeType;
  3957. public $modifiedByMeDate;
  3958. public $modifiedDate;
  3959. public $openWithLinks;
  3960. public $originalFilename;
  3961. public $ownedByMe;
  3962. public $ownerNames;
  3963. protected $ownersType = 'Google_Service_Drive_User';
  3964. protected $ownersDataType = 'array';
  3965. protected $parentsType = 'Google_Service_Drive_ParentReference';
  3966. protected $parentsDataType = 'array';
  3967. protected $permissionsType = 'Google_Service_Drive_Permission';
  3968. protected $permissionsDataType = 'array';
  3969. protected $propertiesType = 'Google_Service_Drive_Property';
  3970. protected $propertiesDataType = 'array';
  3971. public $quotaBytesUsed;
  3972. public $selfLink;
  3973. public $shareable;
  3974. public $shared;
  3975. public $sharedWithMeDate;
  3976. protected $sharingUserType = 'Google_Service_Drive_User';
  3977. protected $sharingUserDataType = '';
  3978. public $spaces;
  3979. protected $thumbnailType = 'Google_Service_Drive_DriveFileThumbnail';
  3980. protected $thumbnailDataType = '';
  3981. public $thumbnailLink;
  3982. public $title;
  3983. protected $userPermissionType = 'Google_Service_Drive_Permission';
  3984. protected $userPermissionDataType = '';
  3985. public $version;
  3986. protected $videoMediaMetadataType = 'Google_Service_Drive_DriveFileVideoMediaMetadata';
  3987. protected $videoMediaMetadataDataType = '';
  3988. public $webContentLink;
  3989. public $webViewLink;
  3990. public $writersCanShare;
  3991. public function setAlternateLink($alternateLink)
  3992. {
  3993. $this->alternateLink = $alternateLink;
  3994. }
  3995. public function getAlternateLink()
  3996. {
  3997. return $this->alternateLink;
  3998. }
  3999. public function setAppDataContents($appDataContents)
  4000. {
  4001. $this->appDataContents = $appDataContents;
  4002. }
  4003. public function getAppDataContents()
  4004. {
  4005. return $this->appDataContents;
  4006. }
  4007. public function setCanComment($canComment)
  4008. {
  4009. $this->canComment = $canComment;
  4010. }
  4011. public function getCanComment()
  4012. {
  4013. return $this->canComment;
  4014. }
  4015. public function setCopyable($copyable)
  4016. {
  4017. $this->copyable = $copyable;
  4018. }
  4019. public function getCopyable()
  4020. {
  4021. return $this->copyable;
  4022. }
  4023. public function setCreatedDate($createdDate)
  4024. {
  4025. $this->createdDate = $createdDate;
  4026. }
  4027. public function getCreatedDate()
  4028. {
  4029. return $this->createdDate;
  4030. }
  4031. public function setDefaultOpenWithLink($defaultOpenWithLink)
  4032. {
  4033. $this->defaultOpenWithLink = $defaultOpenWithLink;
  4034. }
  4035. public function getDefaultOpenWithLink()
  4036. {
  4037. return $this->defaultOpenWithLink;
  4038. }
  4039. public function setDescription($description)
  4040. {
  4041. $this->description = $description;
  4042. }
  4043. public function getDescription()
  4044. {
  4045. return $this->description;
  4046. }
  4047. public function setDownloadUrl($downloadUrl)
  4048. {
  4049. $this->downloadUrl = $downloadUrl;
  4050. }
  4051. public function getDownloadUrl()
  4052. {
  4053. return $this->downloadUrl;
  4054. }
  4055. public function setEditable($editable)
  4056. {
  4057. $this->editable = $editable;
  4058. }
  4059. public function getEditable()
  4060. {
  4061. return $this->editable;
  4062. }
  4063. public function setEmbedLink($embedLink)
  4064. {
  4065. $this->embedLink = $embedLink;
  4066. }
  4067. public function getEmbedLink()
  4068. {
  4069. return $this->embedLink;
  4070. }
  4071. public function setEtag($etag)
  4072. {
  4073. $this->etag = $etag;
  4074. }
  4075. public function getEtag()
  4076. {
  4077. return $this->etag;
  4078. }
  4079. public function setExplicitlyTrashed($explicitlyTrashed)
  4080. {
  4081. $this->explicitlyTrashed = $explicitlyTrashed;
  4082. }
  4083. public function getExplicitlyTrashed()
  4084. {
  4085. return $this->explicitlyTrashed;
  4086. }
  4087. public function setExportLinks($exportLinks)
  4088. {
  4089. $this->exportLinks = $exportLinks;
  4090. }
  4091. public function getExportLinks()
  4092. {
  4093. return $this->exportLinks;
  4094. }
  4095. public function setFileExtension($fileExtension)
  4096. {
  4097. $this->fileExtension = $fileExtension;
  4098. }
  4099. public function getFileExtension()
  4100. {
  4101. return $this->fileExtension;
  4102. }
  4103. public function setFileSize($fileSize)
  4104. {
  4105. $this->fileSize = $fileSize;
  4106. }
  4107. public function getFileSize()
  4108. {
  4109. return $this->fileSize;
  4110. }
  4111. public function setFolderColorRgb($folderColorRgb)
  4112. {
  4113. $this->folderColorRgb = $folderColorRgb;
  4114. }
  4115. public function getFolderColorRgb()
  4116. {
  4117. return $this->folderColorRgb;
  4118. }
  4119. public function setFullFileExtension($fullFileExtension)
  4120. {
  4121. $this->fullFileExtension = $fullFileExtension;
  4122. }
  4123. public function getFullFileExtension()
  4124. {
  4125. return $this->fullFileExtension;
  4126. }
  4127. public function setHeadRevisionId($headRevisionId)
  4128. {
  4129. $this->headRevisionId = $headRevisionId;
  4130. }
  4131. public function getHeadRevisionId()
  4132. {
  4133. return $this->headRevisionId;
  4134. }
  4135. public function setIconLink($iconLink)
  4136. {
  4137. $this->iconLink = $iconLink;
  4138. }
  4139. public function getIconLink()
  4140. {
  4141. return $this->iconLink;
  4142. }
  4143. public function setId($id)
  4144. {
  4145. $this->id = $id;
  4146. }
  4147. public function getId()
  4148. {
  4149. return $this->id;
  4150. }
  4151. public function setImageMediaMetadata(Google_Service_Drive_DriveFileImageMediaMetadata $imageMediaMetadata)
  4152. {
  4153. $this->imageMediaMetadata = $imageMediaMetadata;
  4154. }
  4155. public function getImageMediaMetadata()
  4156. {
  4157. return $this->imageMediaMetadata;
  4158. }
  4159. public function setIndexableText(Google_Service_Drive_DriveFileIndexableText $indexableText)
  4160. {
  4161. $this->indexableText = $indexableText;
  4162. }
  4163. public function getIndexableText()
  4164. {
  4165. return $this->indexableText;
  4166. }
  4167. public function setKind($kind)
  4168. {
  4169. $this->kind = $kind;
  4170. }
  4171. public function getKind()
  4172. {
  4173. return $this->kind;
  4174. }
  4175. public function setLabels(Google_Service_Drive_DriveFileLabels $labels)
  4176. {
  4177. $this->labels = $labels;
  4178. }
  4179. public function getLabels()
  4180. {
  4181. return $this->labels;
  4182. }
  4183. public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser)
  4184. {
  4185. $this->lastModifyingUser = $lastModifyingUser;
  4186. }
  4187. public function getLastModifyingUser()
  4188. {
  4189. return $this->lastModifyingUser;
  4190. }
  4191. public function setLastModifyingUserName($lastModifyingUserName)
  4192. {
  4193. $this->lastModifyingUserName = $lastModifyingUserName;
  4194. }
  4195. public function getLastModifyingUserName()
  4196. {
  4197. return $this->lastModifyingUserName;
  4198. }
  4199. public function setLastViewedByMeDate($lastViewedByMeDate)
  4200. {
  4201. $this->lastViewedByMeDate = $lastViewedByMeDate;
  4202. }
  4203. public function getLastViewedByMeDate()
  4204. {
  4205. return $this->lastViewedByMeDate;
  4206. }
  4207. public function setMarkedViewedByMeDate($markedViewedByMeDate)
  4208. {
  4209. $this->markedViewedByMeDate = $markedViewedByMeDate;
  4210. }
  4211. public function getMarkedViewedByMeDate()
  4212. {
  4213. return $this->markedViewedByMeDate;
  4214. }
  4215. public function setMd5Checksum($md5Checksum)
  4216. {
  4217. $this->md5Checksum = $md5Checksum;
  4218. }
  4219. public function getMd5Checksum()
  4220. {
  4221. return $this->md5Checksum;
  4222. }
  4223. public function setMimeType($mimeType)
  4224. {
  4225. $this->mimeType = $mimeType;
  4226. }
  4227. public function getMimeType()
  4228. {
  4229. return $this->mimeType;
  4230. }
  4231. public function setModifiedByMeDate($modifiedByMeDate)
  4232. {
  4233. $this->modifiedByMeDate = $modifiedByMeDate;
  4234. }
  4235. public function getModifiedByMeDate()
  4236. {
  4237. return $this->modifiedByMeDate;
  4238. }
  4239. public function setModifiedDate($modifiedDate)
  4240. {
  4241. $this->modifiedDate = $modifiedDate;
  4242. }
  4243. public function getModifiedDate()
  4244. {
  4245. return $this->modifiedDate;
  4246. }
  4247. public function setOpenWithLinks($openWithLinks)
  4248. {
  4249. $this->openWithLinks = $openWithLinks;
  4250. }
  4251. public function getOpenWithLinks()
  4252. {
  4253. return $this->openWithLinks;
  4254. }
  4255. public function setOriginalFilename($originalFilename)
  4256. {
  4257. $this->originalFilename = $originalFilename;
  4258. }
  4259. public function getOriginalFilename()
  4260. {
  4261. return $this->originalFilename;
  4262. }
  4263. public function setOwnedByMe($ownedByMe)
  4264. {
  4265. $this->ownedByMe = $ownedByMe;
  4266. }
  4267. public function getOwnedByMe()
  4268. {
  4269. return $this->ownedByMe;
  4270. }
  4271. public function setOwnerNames($ownerNames)
  4272. {
  4273. $this->ownerNames = $ownerNames;
  4274. }
  4275. public function getOwnerNames()
  4276. {
  4277. return $this->ownerNames;
  4278. }
  4279. public function setOwners($owners)
  4280. {
  4281. $this->owners = $owners;
  4282. }
  4283. public function getOwners()
  4284. {
  4285. return $this->owners;
  4286. }
  4287. public function setParents($parents)
  4288. {
  4289. $this->parents = $parents;
  4290. }
  4291. public function getParents()
  4292. {
  4293. return $this->parents;
  4294. }
  4295. public function setPermissions($permissions)
  4296. {
  4297. $this->permissions = $permissions;
  4298. }
  4299. public function getPermissions()
  4300. {
  4301. return $this->permissions;
  4302. }
  4303. public function setProperties($properties)
  4304. {
  4305. $this->properties = $properties;
  4306. }
  4307. public function getProperties()
  4308. {
  4309. return $this->properties;
  4310. }
  4311. public function setQuotaBytesUsed($quotaBytesUsed)
  4312. {
  4313. $this->quotaBytesUsed = $quotaBytesUsed;
  4314. }
  4315. public function getQuotaBytesUsed()
  4316. {
  4317. return $this->quotaBytesUsed;
  4318. }
  4319. public function setSelfLink($selfLink)
  4320. {
  4321. $this->selfLink = $selfLink;
  4322. }
  4323. public function getSelfLink()
  4324. {
  4325. return $this->selfLink;
  4326. }
  4327. public function setShareable($shareable)
  4328. {
  4329. $this->shareable = $shareable;
  4330. }
  4331. public function getShareable()
  4332. {
  4333. return $this->shareable;
  4334. }
  4335. public function setShared($shared)
  4336. {
  4337. $this->shared = $shared;
  4338. }
  4339. public function getShared()
  4340. {
  4341. return $this->shared;
  4342. }
  4343. public function setSharedWithMeDate($sharedWithMeDate)
  4344. {
  4345. $this->sharedWithMeDate = $sharedWithMeDate;
  4346. }
  4347. public function getSharedWithMeDate()
  4348. {
  4349. return $this->sharedWithMeDate;
  4350. }
  4351. public function setSharingUser(Google_Service_Drive_User $sharingUser)
  4352. {
  4353. $this->sharingUser = $sharingUser;
  4354. }
  4355. public function getSharingUser()
  4356. {
  4357. return $this->sharingUser;
  4358. }
  4359. public function setSpaces($spaces)
  4360. {
  4361. $this->spaces = $spaces;
  4362. }
  4363. public function getSpaces()
  4364. {
  4365. return $this->spaces;
  4366. }
  4367. public function setThumbnail(Google_Service_Drive_DriveFileThumbnail $thumbnail)
  4368. {
  4369. $this->thumbnail = $thumbnail;
  4370. }
  4371. public function getThumbnail()
  4372. {
  4373. return $this->thumbnail;
  4374. }
  4375. public function setThumbnailLink($thumbnailLink)
  4376. {
  4377. $this->thumbnailLink = $thumbnailLink;
  4378. }
  4379. public function getThumbnailLink()
  4380. {
  4381. return $this->thumbnailLink;
  4382. }
  4383. public function setTitle($title)
  4384. {
  4385. $this->title = $title;
  4386. }
  4387. public function getTitle()
  4388. {
  4389. return $this->title;
  4390. }
  4391. public function setUserPermission(Google_Service_Drive_Permission $userPermission)
  4392. {
  4393. $this->userPermission = $userPermission;
  4394. }
  4395. public function getUserPermission()
  4396. {
  4397. return $this->userPermission;
  4398. }
  4399. public function setVersion($version)
  4400. {
  4401. $this->version = $version;
  4402. }
  4403. public function getVersion()
  4404. {
  4405. return $this->version;
  4406. }
  4407. public function setVideoMediaMetadata(Google_Service_Drive_DriveFileVideoMediaMetadata $videoMediaMetadata)
  4408. {
  4409. $this->videoMediaMetadata = $videoMediaMetadata;
  4410. }
  4411. public function getVideoMediaMetadata()
  4412. {
  4413. return $this->videoMediaMetadata;
  4414. }
  4415. public function setWebContentLink($webContentLink)
  4416. {
  4417. $this->webContentLink = $webContentLink;
  4418. }
  4419. public function getWebContentLink()
  4420. {
  4421. return $this->webContentLink;
  4422. }
  4423. public function setWebViewLink($webViewLink)
  4424. {
  4425. $this->webViewLink = $webViewLink;
  4426. }
  4427. public function getWebViewLink()
  4428. {
  4429. return $this->webViewLink;
  4430. }
  4431. public function setWritersCanShare($writersCanShare)
  4432. {
  4433. $this->writersCanShare = $writersCanShare;
  4434. }
  4435. public function getWritersCanShare()
  4436. {
  4437. return $this->writersCanShare;
  4438. }
  4439. }
  4440. class Google_Service_Drive_DriveFileExportLinks extends Google_Model
  4441. {
  4442. }
  4443. class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model
  4444. {
  4445. protected $internal_gapi_mappings = array(
  4446. );
  4447. public $aperture;
  4448. public $cameraMake;
  4449. public $cameraModel;
  4450. public $colorSpace;
  4451. public $date;
  4452. public $exposureBias;
  4453. public $exposureMode;
  4454. public $exposureTime;
  4455. public $flashUsed;
  4456. public $focalLength;
  4457. public $height;
  4458. public $isoSpeed;
  4459. public $lens;
  4460. protected $locationType = 'Google_Service_Drive_DriveFileImageMediaMetadataLocation';
  4461. protected $locationDataType = '';
  4462. public $maxApertureValue;
  4463. public $meteringMode;
  4464. public $rotation;
  4465. public $sensor;
  4466. public $subjectDistance;
  4467. public $whiteBalance;
  4468. public $width;
  4469. public function setAperture($aperture)
  4470. {
  4471. $this->aperture = $aperture;
  4472. }
  4473. public function getAperture()
  4474. {
  4475. return $this->aperture;
  4476. }
  4477. public function setCameraMake($cameraMake)
  4478. {
  4479. $this->cameraMake = $cameraMake;
  4480. }
  4481. public function getCameraMake()
  4482. {
  4483. return $this->cameraMake;
  4484. }
  4485. public function setCameraModel($cameraModel)
  4486. {
  4487. $this->cameraModel = $cameraModel;
  4488. }
  4489. public function getCameraModel()
  4490. {
  4491. return $this->cameraModel;
  4492. }
  4493. public function setColorSpace($colorSpace)
  4494. {
  4495. $this->colorSpace = $colorSpace;
  4496. }
  4497. public function getColorSpace()
  4498. {
  4499. return $this->colorSpace;
  4500. }
  4501. public function setDate($date)
  4502. {
  4503. $this->date = $date;
  4504. }
  4505. public function getDate()
  4506. {
  4507. return $this->date;
  4508. }
  4509. public function setExposureBias($exposureBias)
  4510. {
  4511. $this->exposureBias = $exposureBias;
  4512. }
  4513. public function getExposureBias()
  4514. {
  4515. return $this->exposureBias;
  4516. }
  4517. public function setExposureMode($exposureMode)
  4518. {
  4519. $this->exposureMode = $exposureMode;
  4520. }
  4521. public function getExposureMode()
  4522. {
  4523. return $this->exposureMode;
  4524. }
  4525. public function setExposureTime($exposureTime)
  4526. {
  4527. $this->exposureTime = $exposureTime;
  4528. }
  4529. public function getExposureTime()
  4530. {
  4531. return $this->exposureTime;
  4532. }
  4533. public function setFlashUsed($flashUsed)
  4534. {
  4535. $this->flashUsed = $flashUsed;
  4536. }
  4537. public function getFlashUsed()
  4538. {
  4539. return $this->flashUsed;
  4540. }
  4541. public function setFocalLength($focalLength)
  4542. {
  4543. $this->focalLength = $focalLength;
  4544. }
  4545. public function getFocalLength()
  4546. {
  4547. return $this->focalLength;
  4548. }
  4549. public function setHeight($height)
  4550. {
  4551. $this->height = $height;
  4552. }
  4553. public function getHeight()
  4554. {
  4555. return $this->height;
  4556. }
  4557. public function setIsoSpeed($isoSpeed)
  4558. {
  4559. $this->isoSpeed = $isoSpeed;
  4560. }
  4561. public function getIsoSpeed()
  4562. {
  4563. return $this->isoSpeed;
  4564. }
  4565. public function setLens($lens)
  4566. {
  4567. $this->lens = $lens;
  4568. }
  4569. public function getLens()
  4570. {
  4571. return $this->lens;
  4572. }
  4573. public function setLocation(Google_Service_Drive_DriveFileImageMediaMetadataLocation $location)
  4574. {
  4575. $this->location = $location;
  4576. }
  4577. public function getLocation()
  4578. {
  4579. return $this->location;
  4580. }
  4581. public function setMaxApertureValue($maxApertureValue)
  4582. {
  4583. $this->maxApertureValue = $maxApertureValue;
  4584. }
  4585. public function getMaxApertureValue()
  4586. {
  4587. return $this->maxApertureValue;
  4588. }
  4589. public function setMeteringMode($meteringMode)
  4590. {
  4591. $this->meteringMode = $meteringMode;
  4592. }
  4593. public function getMeteringMode()
  4594. {
  4595. return $this->meteringMode;
  4596. }
  4597. public function setRotation($rotation)
  4598. {
  4599. $this->rotation = $rotation;
  4600. }
  4601. public function getRotation()
  4602. {
  4603. return $this->rotation;
  4604. }
  4605. public function setSensor($sensor)
  4606. {
  4607. $this->sensor = $sensor;
  4608. }
  4609. public function getSensor()
  4610. {
  4611. return $this->sensor;
  4612. }
  4613. public function setSubjectDistance($subjectDistance)
  4614. {
  4615. $this->subjectDistance = $subjectDistance;
  4616. }
  4617. public function getSubjectDistance()
  4618. {
  4619. return $this->subjectDistance;
  4620. }
  4621. public function setWhiteBalance($whiteBalance)
  4622. {
  4623. $this->whiteBalance = $whiteBalance;
  4624. }
  4625. public function getWhiteBalance()
  4626. {
  4627. return $this->whiteBalance;
  4628. }
  4629. public function setWidth($width)
  4630. {
  4631. $this->width = $width;
  4632. }
  4633. public function getWidth()
  4634. {
  4635. return $this->width;
  4636. }
  4637. }
  4638. class Google_Service_Drive_DriveFileImageMediaMetadataLocation extends Google_Model
  4639. {
  4640. protected $internal_gapi_mappings = array(
  4641. );
  4642. public $altitude;
  4643. public $latitude;
  4644. public $longitude;
  4645. public function setAltitude($altitude)
  4646. {
  4647. $this->altitude = $altitude;
  4648. }
  4649. public function getAltitude()
  4650. {
  4651. return $this->altitude;
  4652. }
  4653. public function setLatitude($latitude)
  4654. {
  4655. $this->latitude = $latitude;
  4656. }
  4657. public function getLatitude()
  4658. {
  4659. return $this->latitude;
  4660. }
  4661. public function setLongitude($longitude)
  4662. {
  4663. $this->longitude = $longitude;
  4664. }
  4665. public function getLongitude()
  4666. {
  4667. return $this->longitude;
  4668. }
  4669. }
  4670. class Google_Service_Drive_DriveFileIndexableText extends Google_Model
  4671. {
  4672. protected $internal_gapi_mappings = array(
  4673. );
  4674. public $text;
  4675. public function setText($text)
  4676. {
  4677. $this->text = $text;
  4678. }
  4679. public function getText()
  4680. {
  4681. return $this->text;
  4682. }
  4683. }
  4684. class Google_Service_Drive_DriveFileLabels extends Google_Model
  4685. {
  4686. protected $internal_gapi_mappings = array(
  4687. );
  4688. public $hidden;
  4689. public $restricted;
  4690. public $starred;
  4691. public $trashed;
  4692. public $viewed;
  4693. public function setHidden($hidden)
  4694. {
  4695. $this->hidden = $hidden;
  4696. }
  4697. public function getHidden()
  4698. {
  4699. return $this->hidden;
  4700. }
  4701. public function setRestricted($restricted)
  4702. {
  4703. $this->restricted = $restricted;
  4704. }
  4705. public function getRestricted()
  4706. {
  4707. return $this->restricted;
  4708. }
  4709. public function setStarred($starred)
  4710. {
  4711. $this->starred = $starred;
  4712. }
  4713. public function getStarred()
  4714. {
  4715. return $this->starred;
  4716. }
  4717. public function setTrashed($trashed)
  4718. {
  4719. $this->trashed = $trashed;
  4720. }
  4721. public function getTrashed()
  4722. {
  4723. return $this->trashed;
  4724. }
  4725. public function setViewed($viewed)
  4726. {
  4727. $this->viewed = $viewed;
  4728. }
  4729. public function getViewed()
  4730. {
  4731. return $this->viewed;
  4732. }
  4733. }
  4734. class Google_Service_Drive_DriveFileOpenWithLinks extends Google_Model
  4735. {
  4736. }
  4737. class Google_Service_Drive_DriveFileThumbnail extends Google_Model
  4738. {
  4739. protected $internal_gapi_mappings = array(
  4740. );
  4741. public $image;
  4742. public $mimeType;
  4743. public function setImage($image)
  4744. {
  4745. $this->image = $image;
  4746. }
  4747. public function getImage()
  4748. {
  4749. return $this->image;
  4750. }
  4751. public function setMimeType($mimeType)
  4752. {
  4753. $this->mimeType = $mimeType;
  4754. }
  4755. public function getMimeType()
  4756. {
  4757. return $this->mimeType;
  4758. }
  4759. }
  4760. class Google_Service_Drive_DriveFileVideoMediaMetadata extends Google_Model
  4761. {
  4762. protected $internal_gapi_mappings = array(
  4763. );
  4764. public $durationMillis;
  4765. public $height;
  4766. public $width;
  4767. public function setDurationMillis($durationMillis)
  4768. {
  4769. $this->durationMillis = $durationMillis;
  4770. }
  4771. public function getDurationMillis()
  4772. {
  4773. return $this->durationMillis;
  4774. }
  4775. public function setHeight($height)
  4776. {
  4777. $this->height = $height;
  4778. }
  4779. public function getHeight()
  4780. {
  4781. return $this->height;
  4782. }
  4783. public function setWidth($width)
  4784. {
  4785. $this->width = $width;
  4786. }
  4787. public function getWidth()
  4788. {
  4789. return $this->width;
  4790. }
  4791. }
  4792. class Google_Service_Drive_FileList extends Google_Collection
  4793. {
  4794. protected $collection_key = 'items';
  4795. protected $internal_gapi_mappings = array(
  4796. );
  4797. public $etag;
  4798. protected $itemsType = 'Google_Service_Drive_DriveFile';
  4799. protected $itemsDataType = 'array';
  4800. public $kind;
  4801. public $nextLink;
  4802. public $nextPageToken;
  4803. public $selfLink;
  4804. public function setEtag($etag)
  4805. {
  4806. $this->etag = $etag;
  4807. }
  4808. public function getEtag()
  4809. {
  4810. return $this->etag;
  4811. }
  4812. public function setItems($items)
  4813. {
  4814. $this->items = $items;
  4815. }
  4816. public function getItems()
  4817. {
  4818. return $this->items;
  4819. }
  4820. public function setKind($kind)
  4821. {
  4822. $this->kind = $kind;
  4823. }
  4824. public function getKind()
  4825. {
  4826. return $this->kind;
  4827. }
  4828. public function setNextLink($nextLink)
  4829. {
  4830. $this->nextLink = $nextLink;
  4831. }
  4832. public function getNextLink()
  4833. {
  4834. return $this->nextLink;
  4835. }
  4836. public function setNextPageToken($nextPageToken)
  4837. {
  4838. $this->nextPageToken = $nextPageToken;
  4839. }
  4840. public function getNextPageToken()
  4841. {
  4842. return $this->nextPageToken;
  4843. }
  4844. public function setSelfLink($selfLink)
  4845. {
  4846. $this->selfLink = $selfLink;
  4847. }
  4848. public function getSelfLink()
  4849. {
  4850. return $this->selfLink;
  4851. }
  4852. }
  4853. class Google_Service_Drive_GeneratedIds extends Google_Collection
  4854. {
  4855. protected $collection_key = 'ids';
  4856. protected $internal_gapi_mappings = array(
  4857. );
  4858. public $ids;
  4859. public $kind;
  4860. public $space;
  4861. public function setIds($ids)
  4862. {
  4863. $this->ids = $ids;
  4864. }
  4865. public function getIds()
  4866. {
  4867. return $this->ids;
  4868. }
  4869. public function setKind($kind)
  4870. {
  4871. $this->kind = $kind;
  4872. }
  4873. public function getKind()
  4874. {
  4875. return $this->kind;
  4876. }
  4877. public function setSpace($space)
  4878. {
  4879. $this->space = $space;
  4880. }
  4881. public function getSpace()
  4882. {
  4883. return $this->space;
  4884. }
  4885. }
  4886. class Google_Service_Drive_ParentList extends Google_Collection
  4887. {
  4888. protected $collection_key = 'items';
  4889. protected $internal_gapi_mappings = array(
  4890. );
  4891. public $etag;
  4892. protected $itemsType = 'Google_Service_Drive_ParentReference';
  4893. protected $itemsDataType = 'array';
  4894. public $kind;
  4895. public $selfLink;
  4896. public function setEtag($etag)
  4897. {
  4898. $this->etag = $etag;
  4899. }
  4900. public function getEtag()
  4901. {
  4902. return $this->etag;
  4903. }
  4904. public function setItems($items)
  4905. {
  4906. $this->items = $items;
  4907. }
  4908. public function getItems()
  4909. {
  4910. return $this->items;
  4911. }
  4912. public function setKind($kind)
  4913. {
  4914. $this->kind = $kind;
  4915. }
  4916. public function getKind()
  4917. {
  4918. return $this->kind;
  4919. }
  4920. public function setSelfLink($selfLink)
  4921. {
  4922. $this->selfLink = $selfLink;
  4923. }
  4924. public function getSelfLink()
  4925. {
  4926. return $this->selfLink;
  4927. }
  4928. }
  4929. class Google_Service_Drive_ParentReference extends Google_Model
  4930. {
  4931. protected $internal_gapi_mappings = array(
  4932. );
  4933. public $id;
  4934. public $isRoot;
  4935. public $kind;
  4936. public $parentLink;
  4937. public $selfLink;
  4938. public function setId($id)
  4939. {
  4940. $this->id = $id;
  4941. }
  4942. public function getId()
  4943. {
  4944. return $this->id;
  4945. }
  4946. public function setIsRoot($isRoot)
  4947. {
  4948. $this->isRoot = $isRoot;
  4949. }
  4950. public function getIsRoot()
  4951. {
  4952. return $this->isRoot;
  4953. }
  4954. public function setKind($kind)
  4955. {
  4956. $this->kind = $kind;
  4957. }
  4958. public function getKind()
  4959. {
  4960. return $this->kind;
  4961. }
  4962. public function setParentLink($parentLink)
  4963. {
  4964. $this->parentLink = $parentLink;
  4965. }
  4966. public function getParentLink()
  4967. {
  4968. return $this->parentLink;
  4969. }
  4970. public function setSelfLink($selfLink)
  4971. {
  4972. $this->selfLink = $selfLink;
  4973. }
  4974. public function getSelfLink()
  4975. {
  4976. return $this->selfLink;
  4977. }
  4978. }
  4979. class Google_Service_Drive_Permission extends Google_Collection
  4980. {
  4981. protected $collection_key = 'additionalRoles';
  4982. protected $internal_gapi_mappings = array(
  4983. );
  4984. public $additionalRoles;
  4985. public $authKey;
  4986. public $domain;
  4987. public $emailAddress;
  4988. public $etag;
  4989. public $id;
  4990. public $kind;
  4991. public $name;
  4992. public $photoLink;
  4993. public $role;
  4994. public $selfLink;
  4995. public $type;
  4996. public $value;
  4997. public $withLink;
  4998. public function setAdditionalRoles($additionalRoles)
  4999. {
  5000. $this->additionalRoles = $additionalRoles;
  5001. }
  5002. public function getAdditionalRoles()
  5003. {
  5004. return $this->additionalRoles;
  5005. }
  5006. public function setAuthKey($authKey)
  5007. {
  5008. $this->authKey = $authKey;
  5009. }
  5010. public function getAuthKey()
  5011. {
  5012. return $this->authKey;
  5013. }
  5014. public function setDomain($domain)
  5015. {
  5016. $this->domain = $domain;
  5017. }
  5018. public function getDomain()
  5019. {
  5020. return $this->domain;
  5021. }
  5022. public function setEmailAddress($emailAddress)
  5023. {
  5024. $this->emailAddress = $emailAddress;
  5025. }
  5026. public function getEmailAddress()
  5027. {
  5028. return $this->emailAddress;
  5029. }
  5030. public function setEtag($etag)
  5031. {
  5032. $this->etag = $etag;
  5033. }
  5034. public function getEtag()
  5035. {
  5036. return $this->etag;
  5037. }
  5038. public function setId($id)
  5039. {
  5040. $this->id = $id;
  5041. }
  5042. public function getId()
  5043. {
  5044. return $this->id;
  5045. }
  5046. public function setKind($kind)
  5047. {
  5048. $this->kind = $kind;
  5049. }
  5050. public function getKind()
  5051. {
  5052. return $this->kind;
  5053. }
  5054. public function setName($name)
  5055. {
  5056. $this->name = $name;
  5057. }
  5058. public function getName()
  5059. {
  5060. return $this->name;
  5061. }
  5062. public function setPhotoLink($photoLink)
  5063. {
  5064. $this->photoLink = $photoLink;
  5065. }
  5066. public function getPhotoLink()
  5067. {
  5068. return $this->photoLink;
  5069. }
  5070. public function setRole($role)
  5071. {
  5072. $this->role = $role;
  5073. }
  5074. public function getRole()
  5075. {
  5076. return $this->role;
  5077. }
  5078. public function setSelfLink($selfLink)
  5079. {
  5080. $this->selfLink = $selfLink;
  5081. }
  5082. public function getSelfLink()
  5083. {
  5084. return $this->selfLink;
  5085. }
  5086. public function setType($type)
  5087. {
  5088. $this->type = $type;
  5089. }
  5090. public function getType()
  5091. {
  5092. return $this->type;
  5093. }
  5094. public function setValue($value)
  5095. {
  5096. $this->value = $value;
  5097. }
  5098. public function getValue()
  5099. {
  5100. return $this->value;
  5101. }
  5102. public function setWithLink($withLink)
  5103. {
  5104. $this->withLink = $withLink;
  5105. }
  5106. public function getWithLink()
  5107. {
  5108. return $this->withLink;
  5109. }
  5110. }
  5111. class Google_Service_Drive_PermissionId extends Google_Model
  5112. {
  5113. protected $internal_gapi_mappings = array(
  5114. );
  5115. public $id;
  5116. public $kind;
  5117. public function setId($id)
  5118. {
  5119. $this->id = $id;
  5120. }
  5121. public function getId()
  5122. {
  5123. return $this->id;
  5124. }
  5125. public function setKind($kind)
  5126. {
  5127. $this->kind = $kind;
  5128. }
  5129. public function getKind()
  5130. {
  5131. return $this->kind;
  5132. }
  5133. }
  5134. class Google_Service_Drive_PermissionList extends Google_Collection
  5135. {
  5136. protected $collection_key = 'items';
  5137. protected $internal_gapi_mappings = array(
  5138. );
  5139. public $etag;
  5140. protected $itemsType = 'Google_Service_Drive_Permission';
  5141. protected $itemsDataType = 'array';
  5142. public $kind;
  5143. public $selfLink;
  5144. public function setEtag($etag)
  5145. {
  5146. $this->etag = $etag;
  5147. }
  5148. public function getEtag()
  5149. {
  5150. return $this->etag;
  5151. }
  5152. public function setItems($items)
  5153. {
  5154. $this->items = $items;
  5155. }
  5156. public function getItems()
  5157. {
  5158. return $this->items;
  5159. }
  5160. public function setKind($kind)
  5161. {
  5162. $this->kind = $kind;
  5163. }
  5164. public function getKind()
  5165. {
  5166. return $this->kind;
  5167. }
  5168. public function setSelfLink($selfLink)
  5169. {
  5170. $this->selfLink = $selfLink;
  5171. }
  5172. public function getSelfLink()
  5173. {
  5174. return $this->selfLink;
  5175. }
  5176. }
  5177. class Google_Service_Drive_Property extends Google_Model
  5178. {
  5179. protected $internal_gapi_mappings = array(
  5180. );
  5181. public $etag;
  5182. public $key;
  5183. public $kind;
  5184. public $selfLink;
  5185. public $value;
  5186. public $visibility;
  5187. public function setEtag($etag)
  5188. {
  5189. $this->etag = $etag;
  5190. }
  5191. public function getEtag()
  5192. {
  5193. return $this->etag;
  5194. }
  5195. public function setKey($key)
  5196. {
  5197. $this->key = $key;
  5198. }
  5199. public function getKey()
  5200. {
  5201. return $this->key;
  5202. }
  5203. public function setKind($kind)
  5204. {
  5205. $this->kind = $kind;
  5206. }
  5207. public function getKind()
  5208. {
  5209. return $this->kind;
  5210. }
  5211. public function setSelfLink($selfLink)
  5212. {
  5213. $this->selfLink = $selfLink;
  5214. }
  5215. public function getSelfLink()
  5216. {
  5217. return $this->selfLink;
  5218. }
  5219. public function setValue($value)
  5220. {
  5221. $this->value = $value;
  5222. }
  5223. public function getValue()
  5224. {
  5225. return $this->value;
  5226. }
  5227. public function setVisibility($visibility)
  5228. {
  5229. $this->visibility = $visibility;
  5230. }
  5231. public function getVisibility()
  5232. {
  5233. return $this->visibility;
  5234. }
  5235. }
  5236. class Google_Service_Drive_PropertyList extends Google_Collection
  5237. {
  5238. protected $collection_key = 'items';
  5239. protected $internal_gapi_mappings = array(
  5240. );
  5241. public $etag;
  5242. protected $itemsType = 'Google_Service_Drive_Property';
  5243. protected $itemsDataType = 'array';
  5244. public $kind;
  5245. public $selfLink;
  5246. public function setEtag($etag)
  5247. {
  5248. $this->etag = $etag;
  5249. }
  5250. public function getEtag()
  5251. {
  5252. return $this->etag;
  5253. }
  5254. public function setItems($items)
  5255. {
  5256. $this->items = $items;
  5257. }
  5258. public function getItems()
  5259. {
  5260. return $this->items;
  5261. }
  5262. public function setKind($kind)
  5263. {
  5264. $this->kind = $kind;
  5265. }
  5266. public function getKind()
  5267. {
  5268. return $this->kind;
  5269. }
  5270. public function setSelfLink($selfLink)
  5271. {
  5272. $this->selfLink = $selfLink;
  5273. }
  5274. public function getSelfLink()
  5275. {
  5276. return $this->selfLink;
  5277. }
  5278. }
  5279. class Google_Service_Drive_Revision extends Google_Model
  5280. {
  5281. protected $internal_gapi_mappings = array(
  5282. );
  5283. public $downloadUrl;
  5284. public $etag;
  5285. public $exportLinks;
  5286. public $fileSize;
  5287. public $id;
  5288. public $kind;
  5289. protected $lastModifyingUserType = 'Google_Service_Drive_User';
  5290. protected $lastModifyingUserDataType = '';
  5291. public $lastModifyingUserName;
  5292. public $md5Checksum;
  5293. public $mimeType;
  5294. public $modifiedDate;
  5295. public $originalFilename;
  5296. public $pinned;
  5297. public $publishAuto;
  5298. public $published;
  5299. public $publishedLink;
  5300. public $publishedOutsideDomain;
  5301. public $selfLink;
  5302. public function setDownloadUrl($downloadUrl)
  5303. {
  5304. $this->downloadUrl = $downloadUrl;
  5305. }
  5306. public function getDownloadUrl()
  5307. {
  5308. return $this->downloadUrl;
  5309. }
  5310. public function setEtag($etag)
  5311. {
  5312. $this->etag = $etag;
  5313. }
  5314. public function getEtag()
  5315. {
  5316. return $this->etag;
  5317. }
  5318. public function setExportLinks($exportLinks)
  5319. {
  5320. $this->exportLinks = $exportLinks;
  5321. }
  5322. public function getExportLinks()
  5323. {
  5324. return $this->exportLinks;
  5325. }
  5326. public function setFileSize($fileSize)
  5327. {
  5328. $this->fileSize = $fileSize;
  5329. }
  5330. public function getFileSize()
  5331. {
  5332. return $this->fileSize;
  5333. }
  5334. public function setId($id)
  5335. {
  5336. $this->id = $id;
  5337. }
  5338. public function getId()
  5339. {
  5340. return $this->id;
  5341. }
  5342. public function setKind($kind)
  5343. {
  5344. $this->kind = $kind;
  5345. }
  5346. public function getKind()
  5347. {
  5348. return $this->kind;
  5349. }
  5350. public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser)
  5351. {
  5352. $this->lastModifyingUser = $lastModifyingUser;
  5353. }
  5354. public function getLastModifyingUser()
  5355. {
  5356. return $this->lastModifyingUser;
  5357. }
  5358. public function setLastModifyingUserName($lastModifyingUserName)
  5359. {
  5360. $this->lastModifyingUserName = $lastModifyingUserName;
  5361. }
  5362. public function getLastModifyingUserName()
  5363. {
  5364. return $this->lastModifyingUserName;
  5365. }
  5366. public function setMd5Checksum($md5Checksum)
  5367. {
  5368. $this->md5Checksum = $md5Checksum;
  5369. }
  5370. public function getMd5Checksum()
  5371. {
  5372. return $this->md5Checksum;
  5373. }
  5374. public function setMimeType($mimeType)
  5375. {
  5376. $this->mimeType = $mimeType;
  5377. }
  5378. public function getMimeType()
  5379. {
  5380. return $this->mimeType;
  5381. }
  5382. public function setModifiedDate($modifiedDate)
  5383. {
  5384. $this->modifiedDate = $modifiedDate;
  5385. }
  5386. public function getModifiedDate()
  5387. {
  5388. return $this->modifiedDate;
  5389. }
  5390. public function setOriginalFilename($originalFilename)
  5391. {
  5392. $this->originalFilename = $originalFilename;
  5393. }
  5394. public function getOriginalFilename()
  5395. {
  5396. return $this->originalFilename;
  5397. }
  5398. public function setPinned($pinned)
  5399. {
  5400. $this->pinned = $pinned;
  5401. }
  5402. public function getPinned()
  5403. {
  5404. return $this->pinned;
  5405. }
  5406. public function setPublishAuto($publishAuto)
  5407. {
  5408. $this->publishAuto = $publishAuto;
  5409. }
  5410. public function getPublishAuto()
  5411. {
  5412. return $this->publishAuto;
  5413. }
  5414. public function setPublished($published)
  5415. {
  5416. $this->published = $published;
  5417. }
  5418. public function getPublished()
  5419. {
  5420. return $this->published;
  5421. }
  5422. public function setPublishedLink($publishedLink)
  5423. {
  5424. $this->publishedLink = $publishedLink;
  5425. }
  5426. public function getPublishedLink()
  5427. {
  5428. return $this->publishedLink;
  5429. }
  5430. public function setPublishedOutsideDomain($publishedOutsideDomain)
  5431. {
  5432. $this->publishedOutsideDomain = $publishedOutsideDomain;
  5433. }
  5434. public function getPublishedOutsideDomain()
  5435. {
  5436. return $this->publishedOutsideDomain;
  5437. }
  5438. public function setSelfLink($selfLink)
  5439. {
  5440. $this->selfLink = $selfLink;
  5441. }
  5442. public function getSelfLink()
  5443. {
  5444. return $this->selfLink;
  5445. }
  5446. }
  5447. class Google_Service_Drive_RevisionExportLinks extends Google_Model
  5448. {
  5449. }
  5450. class Google_Service_Drive_RevisionList extends Google_Collection
  5451. {
  5452. protected $collection_key = 'items';
  5453. protected $internal_gapi_mappings = array(
  5454. );
  5455. public $etag;
  5456. protected $itemsType = 'Google_Service_Drive_Revision';
  5457. protected $itemsDataType = 'array';
  5458. public $kind;
  5459. public $selfLink;
  5460. public function setEtag($etag)
  5461. {
  5462. $this->etag = $etag;
  5463. }
  5464. public function getEtag()
  5465. {
  5466. return $this->etag;
  5467. }
  5468. public function setItems($items)
  5469. {
  5470. $this->items = $items;
  5471. }
  5472. public function getItems()
  5473. {
  5474. return $this->items;
  5475. }
  5476. public function setKind($kind)
  5477. {
  5478. $this->kind = $kind;
  5479. }
  5480. public function getKind()
  5481. {
  5482. return $this->kind;
  5483. }
  5484. public function setSelfLink($selfLink)
  5485. {
  5486. $this->selfLink = $selfLink;
  5487. }
  5488. public function getSelfLink()
  5489. {
  5490. return $this->selfLink;
  5491. }
  5492. }
  5493. class Google_Service_Drive_User extends Google_Model
  5494. {
  5495. protected $internal_gapi_mappings = array(
  5496. );
  5497. public $displayName;
  5498. public $emailAddress;
  5499. public $isAuthenticatedUser;
  5500. public $kind;
  5501. public $permissionId;
  5502. protected $pictureType = 'Google_Service_Drive_UserPicture';
  5503. protected $pictureDataType = '';
  5504. public function setDisplayName($displayName)
  5505. {
  5506. $this->displayName = $displayName;
  5507. }
  5508. public function getDisplayName()
  5509. {
  5510. return $this->displayName;
  5511. }
  5512. public function setEmailAddress($emailAddress)
  5513. {
  5514. $this->emailAddress = $emailAddress;
  5515. }
  5516. public function getEmailAddress()
  5517. {
  5518. return $this->emailAddress;
  5519. }
  5520. public function setIsAuthenticatedUser($isAuthenticatedUser)
  5521. {
  5522. $this->isAuthenticatedUser = $isAuthenticatedUser;
  5523. }
  5524. public function getIsAuthenticatedUser()
  5525. {
  5526. return $this->isAuthenticatedUser;
  5527. }
  5528. public function setKind($kind)
  5529. {
  5530. $this->kind = $kind;
  5531. }
  5532. public function getKind()
  5533. {
  5534. return $this->kind;
  5535. }
  5536. public function setPermissionId($permissionId)
  5537. {
  5538. $this->permissionId = $permissionId;
  5539. }
  5540. public function getPermissionId()
  5541. {
  5542. return $this->permissionId;
  5543. }
  5544. public function setPicture(Google_Service_Drive_UserPicture $picture)
  5545. {
  5546. $this->picture = $picture;
  5547. }
  5548. public function getPicture()
  5549. {
  5550. return $this->picture;
  5551. }
  5552. }
  5553. class Google_Service_Drive_UserPicture extends Google_Model
  5554. {
  5555. protected $internal_gapi_mappings = array(
  5556. );
  5557. public $url;
  5558. public function setUrl($url)
  5559. {
  5560. $this->url = $url;
  5561. }
  5562. public function getUrl()
  5563. {
  5564. return $this->url;
  5565. }
  5566. }