/includes/api-libs/Google/Service/Drive.php

  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. /** 
  19. * Service definition for Drive (v2). 
  20. * 
  21. * <p> 
  22. * The API to interact with Drive.</p> 
  23. * 
  24. * <p> 
  25. * For more information about this service, see the API 
  26. * <a href="https://developers.google.com/drive/" target="_blank">Documentation</a> 
  27. * </p> 
  28. * 
  29. * @author Google, Inc. 
  30. */ 
  31. class Google_Service_Drive extends Google_Service 
  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 that you have opened or created with this app. */ 
  42. const DRIVE_FILE = 
  43. "https://www.googleapis.com/auth/drive.file"; 
  44. /** View metadata for files in your Google Drive. */ 
  45. const DRIVE_METADATA_READONLY = 
  46. "https://www.googleapis.com/auth/drive.metadata.readonly"; 
  47. /** View the files in your Google Drive. */ 
  48. const DRIVE_READONLY = 
  49. "https://www.googleapis.com/auth/drive.readonly"; 
  50. /** Modify your Google Apps Script scripts' behavior. */ 
  51. const DRIVE_SCRIPTS = 
  52. "https://www.googleapis.com/auth/drive.scripts"; 
  53.  
  54. public $about; 
  55. public $apps; 
  56. public $changes; 
  57. public $channels; 
  58. public $children; 
  59. public $comments; 
  60. public $files; 
  61. public $parents; 
  62. public $permissions; 
  63. public $properties; 
  64. public $realtime; 
  65. public $replies; 
  66. public $revisions; 
  67.  
  68.  
  69. /** 
  70. * Constructs the internal representation of the Drive service. 
  71. * 
  72. * @param Google_Client $client 
  73. */ 
  74. public function __construct(Google_Client $client) 
  75. parent::__construct($client); 
  76. $this->servicePath = 'drive/v2/'; 
  77. $this->version = 'v2'; 
  78. $this->serviceName = 'drive'; 
  79.  
  80. $this->about = new Google_Service_Drive_About_Resource( 
  81. $this,  
  82. $this->serviceName,  
  83. 'about',  
  84. array( 
  85. 'methods' => array( 
  86. 'get' => array( 
  87. 'path' => 'about',  
  88. 'httpMethod' => 'GET',  
  89. 'parameters' => array( 
  90. 'includeSubscribed' => array( 
  91. 'location' => 'query',  
  92. 'type' => 'boolean',  
  93. ),  
  94. 'maxChangeIdCount' => array( 
  95. 'location' => 'query',  
  96. 'type' => 'string',  
  97. ),  
  98. 'startChangeId' => array( 
  99. 'location' => 'query',  
  100. 'type' => 'string',  
  101. ),  
  102. ),  
  103. ),  
  104. ); 
  105. $this->apps = new Google_Service_Drive_Apps_Resource( 
  106. $this,  
  107. $this->serviceName,  
  108. 'apps',  
  109. array( 
  110. 'methods' => array( 
  111. 'get' => array( 
  112. 'path' => 'apps/{appId}',  
  113. 'httpMethod' => 'GET',  
  114. 'parameters' => array( 
  115. 'appId' => array( 
  116. 'location' => 'path',  
  117. 'type' => 'string',  
  118. 'required' => true,  
  119. ),  
  120. ),  
  121. ), 'list' => array( 
  122. 'path' => 'apps',  
  123. 'httpMethod' => 'GET',  
  124. 'parameters' => array( 
  125. 'languageCode' => array( 
  126. 'location' => 'query',  
  127. 'type' => 'string',  
  128. ),  
  129. 'appFilterExtensions' => array( 
  130. 'location' => 'query',  
  131. 'type' => 'string',  
  132. ),  
  133. 'appFilterMimeTypes' => array( 
  134. 'location' => 'query',  
  135. 'type' => 'string',  
  136. ),  
  137. ),  
  138. ),  
  139. ); 
  140. $this->changes = new Google_Service_Drive_Changes_Resource( 
  141. $this,  
  142. $this->serviceName,  
  143. 'changes',  
  144. array( 
  145. 'methods' => array( 
  146. 'get' => array( 
  147. 'path' => 'changes/{changeId}',  
  148. 'httpMethod' => 'GET',  
  149. 'parameters' => array( 
  150. 'changeId' => array( 
  151. 'location' => 'path',  
  152. 'type' => 'string',  
  153. 'required' => true,  
  154. ),  
  155. ),  
  156. ), 'list' => array( 
  157. 'path' => 'changes',  
  158. 'httpMethod' => 'GET',  
  159. 'parameters' => array( 
  160. 'includeSubscribed' => array( 
  161. 'location' => 'query',  
  162. 'type' => 'boolean',  
  163. ),  
  164. 'startChangeId' => array( 
  165. 'location' => 'query',  
  166. 'type' => 'string',  
  167. ),  
  168. 'includeDeleted' => array( 
  169. 'location' => 'query',  
  170. 'type' => 'boolean',  
  171. ),  
  172. 'maxResults' => array( 
  173. 'location' => 'query',  
  174. 'type' => 'integer',  
  175. ),  
  176. 'pageToken' => array( 
  177. 'location' => 'query',  
  178. 'type' => 'string',  
  179. ),  
  180. ),  
  181. ), 'watch' => array( 
  182. 'path' => 'changes/watch',  
  183. 'httpMethod' => 'POST',  
  184. 'parameters' => array( 
  185. 'includeSubscribed' => array( 
  186. 'location' => 'query',  
  187. 'type' => 'boolean',  
  188. ),  
  189. 'startChangeId' => array( 
  190. 'location' => 'query',  
  191. 'type' => 'string',  
  192. ),  
  193. 'includeDeleted' => array( 
  194. 'location' => 'query',  
  195. 'type' => 'boolean',  
  196. ),  
  197. 'maxResults' => array( 
  198. 'location' => 'query',  
  199. 'type' => 'integer',  
  200. ),  
  201. 'pageToken' => array( 
  202. 'location' => 'query',  
  203. 'type' => 'string',  
  204. ),  
  205. ),  
  206. ),  
  207. ); 
  208. $this->channels = new Google_Service_Drive_Channels_Resource( 
  209. $this,  
  210. $this->serviceName,  
  211. 'channels',  
  212. array( 
  213. 'methods' => array( 
  214. 'stop' => array( 
  215. 'path' => 'channels/stop',  
  216. 'httpMethod' => 'POST',  
  217. 'parameters' => array(),  
  218. ),  
  219. ); 
  220. $this->children = new Google_Service_Drive_Children_Resource( 
  221. $this,  
  222. $this->serviceName,  
  223. 'children',  
  224. array( 
  225. 'methods' => array( 
  226. 'delete' => array( 
  227. 'path' => 'files/{folderId}/children/{childId}',  
  228. 'httpMethod' => 'DELETE',  
  229. 'parameters' => array( 
  230. 'folderId' => array( 
  231. 'location' => 'path',  
  232. 'type' => 'string',  
  233. 'required' => true,  
  234. ),  
  235. 'childId' => array( 
  236. 'location' => 'path',  
  237. 'type' => 'string',  
  238. 'required' => true,  
  239. ),  
  240. ),  
  241. ), 'get' => array( 
  242. 'path' => 'files/{folderId}/children/{childId}',  
  243. 'httpMethod' => 'GET',  
  244. 'parameters' => array( 
  245. 'folderId' => array( 
  246. 'location' => 'path',  
  247. 'type' => 'string',  
  248. 'required' => true,  
  249. ),  
  250. 'childId' => array( 
  251. 'location' => 'path',  
  252. 'type' => 'string',  
  253. 'required' => true,  
  254. ),  
  255. ),  
  256. ), 'insert' => array( 
  257. 'path' => 'files/{folderId}/children',  
  258. 'httpMethod' => 'POST',  
  259. 'parameters' => array( 
  260. 'folderId' => array( 
  261. 'location' => 'path',  
  262. 'type' => 'string',  
  263. 'required' => true,  
  264. ),  
  265. ),  
  266. ), 'list' => array( 
  267. 'path' => 'files/{folderId}/children',  
  268. 'httpMethod' => 'GET',  
  269. 'parameters' => array( 
  270. 'folderId' => array( 
  271. 'location' => 'path',  
  272. 'type' => 'string',  
  273. 'required' => true,  
  274. ),  
  275. 'q' => array( 
  276. 'location' => 'query',  
  277. 'type' => 'string',  
  278. ),  
  279. 'pageToken' => array( 
  280. 'location' => 'query',  
  281. 'type' => 'string',  
  282. ),  
  283. 'maxResults' => array( 
  284. 'location' => 'query',  
  285. 'type' => 'integer',  
  286. ),  
  287. ),  
  288. ),  
  289. ); 
  290. $this->comments = new Google_Service_Drive_Comments_Resource( 
  291. $this,  
  292. $this->serviceName,  
  293. 'comments',  
  294. array( 
  295. 'methods' => array( 
  296. 'delete' => array( 
  297. 'path' => 'files/{fileId}/comments/{commentId}',  
  298. 'httpMethod' => 'DELETE',  
  299. 'parameters' => array( 
  300. 'fileId' => array( 
  301. 'location' => 'path',  
  302. 'type' => 'string',  
  303. 'required' => true,  
  304. ),  
  305. 'commentId' => array( 
  306. 'location' => 'path',  
  307. 'type' => 'string',  
  308. 'required' => true,  
  309. ),  
  310. ),  
  311. ), 'get' => array( 
  312. 'path' => 'files/{fileId}/comments/{commentId}',  
  313. 'httpMethod' => 'GET',  
  314. 'parameters' => array( 
  315. 'fileId' => array( 
  316. 'location' => 'path',  
  317. 'type' => 'string',  
  318. 'required' => true,  
  319. ),  
  320. 'commentId' => array( 
  321. 'location' => 'path',  
  322. 'type' => 'string',  
  323. 'required' => true,  
  324. ),  
  325. 'includeDeleted' => array( 
  326. 'location' => 'query',  
  327. 'type' => 'boolean',  
  328. ),  
  329. ),  
  330. ), 'insert' => array( 
  331. 'path' => 'files/{fileId}/comments',  
  332. 'httpMethod' => 'POST',  
  333. 'parameters' => array( 
  334. 'fileId' => array( 
  335. 'location' => 'path',  
  336. 'type' => 'string',  
  337. 'required' => true,  
  338. ),  
  339. ),  
  340. ), 'list' => array( 
  341. 'path' => 'files/{fileId}/comments',  
  342. 'httpMethod' => 'GET',  
  343. 'parameters' => array( 
  344. 'fileId' => array( 
  345. 'location' => 'path',  
  346. 'type' => 'string',  
  347. 'required' => true,  
  348. ),  
  349. 'pageToken' => array( 
  350. 'location' => 'query',  
  351. 'type' => 'string',  
  352. ),  
  353. 'updatedMin' => array( 
  354. 'location' => 'query',  
  355. 'type' => 'string',  
  356. ),  
  357. 'includeDeleted' => array( 
  358. 'location' => 'query',  
  359. 'type' => 'boolean',  
  360. ),  
  361. 'maxResults' => array( 
  362. 'location' => 'query',  
  363. 'type' => 'integer',  
  364. ),  
  365. ),  
  366. ), 'patch' => array( 
  367. 'path' => 'files/{fileId}/comments/{commentId}',  
  368. 'httpMethod' => 'PATCH',  
  369. 'parameters' => array( 
  370. 'fileId' => array( 
  371. 'location' => 'path',  
  372. 'type' => 'string',  
  373. 'required' => true,  
  374. ),  
  375. 'commentId' => array( 
  376. 'location' => 'path',  
  377. 'type' => 'string',  
  378. 'required' => true,  
  379. ),  
  380. ),  
  381. ), 'update' => array( 
  382. 'path' => 'files/{fileId}/comments/{commentId}',  
  383. 'httpMethod' => 'PUT',  
  384. 'parameters' => array( 
  385. 'fileId' => array( 
  386. 'location' => 'path',  
  387. 'type' => 'string',  
  388. 'required' => true,  
  389. ),  
  390. 'commentId' => array( 
  391. 'location' => 'path',  
  392. 'type' => 'string',  
  393. 'required' => true,  
  394. ),  
  395. ),  
  396. ),  
  397. ); 
  398. $this->files = new Google_Service_Drive_Files_Resource( 
  399. $this,  
  400. $this->serviceName,  
  401. 'files',  
  402. array( 
  403. 'methods' => array( 
  404. 'copy' => array( 
  405. 'path' => 'files/{fileId}/copy',  
  406. 'httpMethod' => 'POST',  
  407. 'parameters' => array( 
  408. 'fileId' => array( 
  409. 'location' => 'path',  
  410. 'type' => 'string',  
  411. 'required' => true,  
  412. ),  
  413. 'convert' => array( 
  414. 'location' => 'query',  
  415. 'type' => 'boolean',  
  416. ),  
  417. 'ocrLanguage' => array( 
  418. 'location' => 'query',  
  419. 'type' => 'string',  
  420. ),  
  421. 'visibility' => array( 
  422. 'location' => 'query',  
  423. 'type' => 'string',  
  424. ),  
  425. 'pinned' => array( 
  426. 'location' => 'query',  
  427. 'type' => 'boolean',  
  428. ),  
  429. 'ocr' => array( 
  430. 'location' => 'query',  
  431. 'type' => 'boolean',  
  432. ),  
  433. 'timedTextTrackName' => array( 
  434. 'location' => 'query',  
  435. 'type' => 'string',  
  436. ),  
  437. 'timedTextLanguage' => array( 
  438. 'location' => 'query',  
  439. 'type' => 'string',  
  440. ),  
  441. ),  
  442. ), 'delete' => array( 
  443. 'path' => 'files/{fileId}',  
  444. 'httpMethod' => 'DELETE',  
  445. 'parameters' => array( 
  446. 'fileId' => array( 
  447. 'location' => 'path',  
  448. 'type' => 'string',  
  449. 'required' => true,  
  450. ),  
  451. ),  
  452. ), 'emptyTrash' => array( 
  453. 'path' => 'files/trash',  
  454. 'httpMethod' => 'DELETE',  
  455. 'parameters' => array(),  
  456. ), 'get' => array( 
  457. 'path' => 'files/{fileId}',  
  458. 'httpMethod' => 'GET',  
  459. 'parameters' => array( 
  460. 'fileId' => array( 
  461. 'location' => 'path',  
  462. 'type' => 'string',  
  463. 'required' => true,  
  464. ),  
  465. 'acknowledgeAbuse' => array( 
  466. 'location' => 'query',  
  467. 'type' => 'boolean',  
  468. ),  
  469. 'updateViewedDate' => array( 
  470. 'location' => 'query',  
  471. 'type' => 'boolean',  
  472. ),  
  473. 'projection' => array( 
  474. 'location' => 'query',  
  475. 'type' => 'string',  
  476. ),  
  477. ),  
  478. ), 'insert' => array( 
  479. 'path' => 'files',  
  480. 'httpMethod' => 'POST',  
  481. 'parameters' => array( 
  482. 'convert' => array( 
  483. 'location' => 'query',  
  484. 'type' => 'boolean',  
  485. ),  
  486. 'useContentAsIndexableText' => array( 
  487. 'location' => 'query',  
  488. 'type' => 'boolean',  
  489. ),  
  490. 'ocrLanguage' => array( 
  491. 'location' => 'query',  
  492. 'type' => 'string',  
  493. ),  
  494. 'visibility' => array( 
  495. 'location' => 'query',  
  496. 'type' => 'string',  
  497. ),  
  498. 'pinned' => array( 
  499. 'location' => 'query',  
  500. 'type' => 'boolean',  
  501. ),  
  502. 'ocr' => array( 
  503. 'location' => 'query',  
  504. 'type' => 'boolean',  
  505. ),  
  506. 'timedTextTrackName' => array( 
  507. 'location' => 'query',  
  508. 'type' => 'string',  
  509. ),  
  510. 'timedTextLanguage' => array( 
  511. 'location' => 'query',  
  512. 'type' => 'string',  
  513. ),  
  514. ),  
  515. ), 'list' => array( 
  516. 'path' => 'files',  
  517. 'httpMethod' => 'GET',  
  518. 'parameters' => array( 
  519. 'q' => array( 
  520. 'location' => 'query',  
  521. 'type' => 'string',  
  522. ),  
  523. 'pageToken' => array( 
  524. 'location' => 'query',  
  525. 'type' => 'string',  
  526. ),  
  527. 'corpus' => array( 
  528. 'location' => 'query',  
  529. 'type' => 'string',  
  530. ),  
  531. 'projection' => array( 
  532. 'location' => 'query',  
  533. 'type' => 'string',  
  534. ),  
  535. 'maxResults' => array( 
  536. 'location' => 'query',  
  537. 'type' => 'integer',  
  538. ),  
  539. ),  
  540. ), 'patch' => array( 
  541. 'path' => 'files/{fileId}',  
  542. 'httpMethod' => 'PATCH',  
  543. 'parameters' => array( 
  544. 'fileId' => array( 
  545. 'location' => 'path',  
  546. 'type' => 'string',  
  547. 'required' => true,  
  548. ),  
  549. 'addParents' => array( 
  550. 'location' => 'query',  
  551. 'type' => 'string',  
  552. ),  
  553. 'updateViewedDate' => array( 
  554. 'location' => 'query',  
  555. 'type' => 'boolean',  
  556. ),  
  557. 'removeParents' => array( 
  558. 'location' => 'query',  
  559. 'type' => 'string',  
  560. ),  
  561. 'setModifiedDate' => array( 
  562. 'location' => 'query',  
  563. 'type' => 'boolean',  
  564. ),  
  565. 'convert' => array( 
  566. 'location' => 'query',  
  567. 'type' => 'boolean',  
  568. ),  
  569. 'useContentAsIndexableText' => array( 
  570. 'location' => 'query',  
  571. 'type' => 'boolean',  
  572. ),  
  573. 'ocrLanguage' => array( 
  574. 'location' => 'query',  
  575. 'type' => 'string',  
  576. ),  
  577. 'pinned' => array( 
  578. 'location' => 'query',  
  579. 'type' => 'boolean',  
  580. ),  
  581. 'newRevision' => array( 
  582. 'location' => 'query',  
  583. 'type' => 'boolean',  
  584. ),  
  585. 'ocr' => array( 
  586. 'location' => 'query',  
  587. 'type' => 'boolean',  
  588. ),  
  589. 'timedTextLanguage' => array( 
  590. 'location' => 'query',  
  591. 'type' => 'string',  
  592. ),  
  593. 'timedTextTrackName' => array( 
  594. 'location' => 'query',  
  595. 'type' => 'string',  
  596. ),  
  597. ),  
  598. ), 'touch' => array( 
  599. 'path' => 'files/{fileId}/touch',  
  600. 'httpMethod' => 'POST',  
  601. 'parameters' => array( 
  602. 'fileId' => array( 
  603. 'location' => 'path',  
  604. 'type' => 'string',  
  605. 'required' => true,  
  606. ),  
  607. ),  
  608. ), 'trash' => array( 
  609. 'path' => 'files/{fileId}/trash',  
  610. 'httpMethod' => 'POST',  
  611. 'parameters' => array( 
  612. 'fileId' => array( 
  613. 'location' => 'path',  
  614. 'type' => 'string',  
  615. 'required' => true,  
  616. ),  
  617. ),  
  618. ), 'untrash' => array( 
  619. 'path' => 'files/{fileId}/untrash',  
  620. 'httpMethod' => 'POST',  
  621. 'parameters' => array( 
  622. 'fileId' => array( 
  623. 'location' => 'path',  
  624. 'type' => 'string',  
  625. 'required' => true,  
  626. ),  
  627. ),  
  628. ), 'update' => array( 
  629. 'path' => 'files/{fileId}',  
  630. 'httpMethod' => 'PUT',  
  631. 'parameters' => array( 
  632. 'fileId' => array( 
  633. 'location' => 'path',  
  634. 'type' => 'string',  
  635. 'required' => true,  
  636. ),  
  637. 'addParents' => array( 
  638. 'location' => 'query',  
  639. 'type' => 'string',  
  640. ),  
  641. 'updateViewedDate' => array( 
  642. 'location' => 'query',  
  643. 'type' => 'boolean',  
  644. ),  
  645. 'removeParents' => array( 
  646. 'location' => 'query',  
  647. 'type' => 'string',  
  648. ),  
  649. 'setModifiedDate' => array( 
  650. 'location' => 'query',  
  651. 'type' => 'boolean',  
  652. ),  
  653. 'convert' => array( 
  654. 'location' => 'query',  
  655. 'type' => 'boolean',  
  656. ),  
  657. 'useContentAsIndexableText' => array( 
  658. 'location' => 'query',  
  659. 'type' => 'boolean',  
  660. ),  
  661. 'ocrLanguage' => array( 
  662. 'location' => 'query',  
  663. 'type' => 'string',  
  664. ),  
  665. 'pinned' => array( 
  666. 'location' => 'query',  
  667. 'type' => 'boolean',  
  668. ),  
  669. 'newRevision' => array( 
  670. 'location' => 'query',  
  671. 'type' => 'boolean',  
  672. ),  
  673. 'ocr' => array( 
  674. 'location' => 'query',  
  675. 'type' => 'boolean',  
  676. ),  
  677. 'timedTextLanguage' => array( 
  678. 'location' => 'query',  
  679. 'type' => 'string',  
  680. ),  
  681. 'timedTextTrackName' => array( 
  682. 'location' => 'query',  
  683. 'type' => 'string',  
  684. ),  
  685. ),  
  686. ), 'watch' => array( 
  687. 'path' => 'files/{fileId}/watch',  
  688. 'httpMethod' => 'POST',  
  689. 'parameters' => array( 
  690. 'fileId' => array( 
  691. 'location' => 'path',  
  692. 'type' => 'string',  
  693. 'required' => true,  
  694. ),  
  695. 'acknowledgeAbuse' => array( 
  696. 'location' => 'query',  
  697. 'type' => 'boolean',  
  698. ),  
  699. 'updateViewedDate' => array( 
  700. 'location' => 'query',  
  701. 'type' => 'boolean',  
  702. ),  
  703. 'projection' => array( 
  704. 'location' => 'query',  
  705. 'type' => 'string',  
  706. ),  
  707. ),  
  708. ),  
  709. ); 
  710. $this->parents = new Google_Service_Drive_Parents_Resource( 
  711. $this,  
  712. $this->serviceName,  
  713. 'parents',  
  714. array( 
  715. 'methods' => array( 
  716. 'delete' => array( 
  717. 'path' => 'files/{fileId}/parents/{parentId}',  
  718. 'httpMethod' => 'DELETE',  
  719. 'parameters' => array( 
  720. 'fileId' => array( 
  721. 'location' => 'path',  
  722. 'type' => 'string',  
  723. 'required' => true,  
  724. ),  
  725. 'parentId' => array( 
  726. 'location' => 'path',  
  727. 'type' => 'string',  
  728. 'required' => true,  
  729. ),  
  730. ),  
  731. ), 'get' => array( 
  732. 'path' => 'files/{fileId}/parents/{parentId}',  
  733. 'httpMethod' => 'GET',  
  734. 'parameters' => array( 
  735. 'fileId' => array( 
  736. 'location' => 'path',  
  737. 'type' => 'string',  
  738. 'required' => true,  
  739. ),  
  740. 'parentId' => array( 
  741. 'location' => 'path',  
  742. 'type' => 'string',  
  743. 'required' => true,  
  744. ),  
  745. ),  
  746. ), 'insert' => array( 
  747. 'path' => 'files/{fileId}/parents',  
  748. 'httpMethod' => 'POST',  
  749. 'parameters' => array( 
  750. 'fileId' => array( 
  751. 'location' => 'path',  
  752. 'type' => 'string',  
  753. 'required' => true,  
  754. ),  
  755. ),  
  756. ), 'list' => array( 
  757. 'path' => 'files/{fileId}/parents',  
  758. 'httpMethod' => 'GET',  
  759. 'parameters' => array( 
  760. 'fileId' => array( 
  761. 'location' => 'path',  
  762. 'type' => 'string',  
  763. 'required' => true,  
  764. ),  
  765. ),  
  766. ),  
  767. ); 
  768. $this->permissions = new Google_Service_Drive_Permissions_Resource( 
  769. $this,  
  770. $this->serviceName,  
  771. 'permissions',  
  772. array( 
  773. 'methods' => array( 
  774. 'delete' => array( 
  775. 'path' => 'files/{fileId}/permissions/{permissionId}',  
  776. 'httpMethod' => 'DELETE',  
  777. 'parameters' => array( 
  778. 'fileId' => array( 
  779. 'location' => 'path',  
  780. 'type' => 'string',  
  781. 'required' => true,  
  782. ),  
  783. 'permissionId' => array( 
  784. 'location' => 'path',  
  785. 'type' => 'string',  
  786. 'required' => true,  
  787. ),  
  788. ),  
  789. ), 'get' => array( 
  790. 'path' => 'files/{fileId}/permissions/{permissionId}',  
  791. 'httpMethod' => 'GET',  
  792. 'parameters' => array( 
  793. 'fileId' => array( 
  794. 'location' => 'path',  
  795. 'type' => 'string',  
  796. 'required' => true,  
  797. ),  
  798. 'permissionId' => array( 
  799. 'location' => 'path',  
  800. 'type' => 'string',  
  801. 'required' => true,  
  802. ),  
  803. ),  
  804. ), 'getIdForEmail' => array( 
  805. 'path' => 'permissionIds/{email}',  
  806. 'httpMethod' => 'GET',  
  807. 'parameters' => array( 
  808. 'email' => array( 
  809. 'location' => 'path',  
  810. 'type' => 'string',  
  811. 'required' => true,  
  812. ),  
  813. ),  
  814. ), 'insert' => array( 
  815. 'path' => 'files/{fileId}/permissions',  
  816. 'httpMethod' => 'POST',  
  817. 'parameters' => array( 
  818. 'fileId' => array( 
  819. 'location' => 'path',  
  820. 'type' => 'string',  
  821. 'required' => true,  
  822. ),  
  823. 'emailMessage' => array( 
  824. 'location' => 'query',  
  825. 'type' => 'string',  
  826. ),  
  827. 'sendNotificationEmails' => array( 
  828. 'location' => 'query',  
  829. 'type' => 'boolean',  
  830. ),  
  831. ),  
  832. ), 'list' => array( 
  833. 'path' => 'files/{fileId}/permissions',  
  834. 'httpMethod' => 'GET',  
  835. 'parameters' => array( 
  836. 'fileId' => array( 
  837. 'location' => 'path',  
  838. 'type' => 'string',  
  839. 'required' => true,  
  840. ),  
  841. ),  
  842. ), 'patch' => array( 
  843. 'path' => 'files/{fileId}/permissions/{permissionId}',  
  844. 'httpMethod' => 'PATCH',  
  845. 'parameters' => array( 
  846. 'fileId' => array( 
  847. 'location' => 'path',  
  848. 'type' => 'string',  
  849. 'required' => true,  
  850. ),  
  851. 'permissionId' => array( 
  852. 'location' => 'path',  
  853. 'type' => 'string',  
  854. 'required' => true,  
  855. ),  
  856. 'transferOwnership' => array( 
  857. 'location' => 'query',  
  858. 'type' => 'boolean',  
  859. ),  
  860. ),  
  861. ), 'update' => array( 
  862. 'path' => 'files/{fileId}/permissions/{permissionId}',  
  863. 'httpMethod' => 'PUT',  
  864. 'parameters' => array( 
  865. 'fileId' => array( 
  866. 'location' => 'path',  
  867. 'type' => 'string',  
  868. 'required' => true,  
  869. ),  
  870. 'permissionId' => array( 
  871. 'location' => 'path',  
  872. 'type' => 'string',  
  873. 'required' => true,  
  874. ),  
  875. 'transferOwnership' => array( 
  876. 'location' => 'query',  
  877. 'type' => 'boolean',  
  878. ),  
  879. ),  
  880. ),  
  881. ); 
  882. $this->properties = new Google_Service_Drive_Properties_Resource( 
  883. $this,  
  884. $this->serviceName,  
  885. 'properties',  
  886. array( 
  887. 'methods' => array( 
  888. 'delete' => array( 
  889. 'path' => 'files/{fileId}/properties/{propertyKey}',  
  890. 'httpMethod' => 'DELETE',  
  891. 'parameters' => array( 
  892. 'fileId' => array( 
  893. 'location' => 'path',  
  894. 'type' => 'string',  
  895. 'required' => true,  
  896. ),  
  897. 'propertyKey' => array( 
  898. 'location' => 'path',  
  899. 'type' => 'string',  
  900. 'required' => true,  
  901. ),  
  902. 'visibility' => array( 
  903. 'location' => 'query',  
  904. 'type' => 'string',  
  905. ),  
  906. ),  
  907. ), 'get' => array( 
  908. 'path' => 'files/{fileId}/properties/{propertyKey}',  
  909. 'httpMethod' => 'GET',  
  910. 'parameters' => array( 
  911. 'fileId' => array( 
  912. 'location' => 'path',  
  913. 'type' => 'string',  
  914. 'required' => true,  
  915. ),  
  916. 'propertyKey' => array( 
  917. 'location' => 'path',  
  918. 'type' => 'string',  
  919. 'required' => true,  
  920. ),  
  921. 'visibility' => array( 
  922. 'location' => 'query',  
  923. 'type' => 'string',  
  924. ),  
  925. ),  
  926. ), 'insert' => array( 
  927. 'path' => 'files/{fileId}/properties',  
  928. 'httpMethod' => 'POST',  
  929. 'parameters' => array( 
  930. 'fileId' => array( 
  931. 'location' => 'path',  
  932. 'type' => 'string',  
  933. 'required' => true,  
  934. ),  
  935. ),  
  936. ), 'list' => array( 
  937. 'path' => 'files/{fileId}/properties',  
  938. 'httpMethod' => 'GET',  
  939. 'parameters' => array( 
  940. 'fileId' => array( 
  941. 'location' => 'path',  
  942. 'type' => 'string',  
  943. 'required' => true,  
  944. ),  
  945. ),  
  946. ), 'patch' => array( 
  947. 'path' => 'files/{fileId}/properties/{propertyKey}',  
  948. 'httpMethod' => 'PATCH',  
  949. 'parameters' => array( 
  950. 'fileId' => array( 
  951. 'location' => 'path',  
  952. 'type' => 'string',  
  953. 'required' => true,  
  954. ),  
  955. 'propertyKey' => array( 
  956. 'location' => 'path',  
  957. 'type' => 'string',  
  958. 'required' => true,  
  959. ),  
  960. 'visibility' => array( 
  961. 'location' => 'query',  
  962. 'type' => 'string',  
  963. ),  
  964. ),  
  965. ), 'update' => array( 
  966. 'path' => 'files/{fileId}/properties/{propertyKey}',  
  967. 'httpMethod' => 'PUT',  
  968. 'parameters' => array( 
  969. 'fileId' => array( 
  970. 'location' => 'path',  
  971. 'type' => 'string',  
  972. 'required' => true,  
  973. ),  
  974. 'propertyKey' => array( 
  975. 'location' => 'path',  
  976. 'type' => 'string',  
  977. 'required' => true,  
  978. ),  
  979. 'visibility' => array( 
  980. 'location' => 'query',  
  981. 'type' => 'string',  
  982. ),  
  983. ),  
  984. ),  
  985. ); 
  986. $this->realtime = new Google_Service_Drive_Realtime_Resource( 
  987. $this,  
  988. $this->serviceName,  
  989. 'realtime',  
  990. array( 
  991. 'methods' => array( 
  992. 'get' => array( 
  993. 'path' => 'files/{fileId}/realtime',  
  994. 'httpMethod' => 'GET',  
  995. 'parameters' => array( 
  996. 'fileId' => array( 
  997. 'location' => 'path',  
  998. 'type' => 'string',  
  999. 'required' => true,  
  1000. ),  
  1001. 'revision' => array( 
  1002. 'location' => 'query',  
  1003. 'type' => 'integer',  
  1004. ),  
  1005. ),  
  1006. ), 'update' => array( 
  1007. 'path' => 'files/{fileId}/realtime',  
  1008. 'httpMethod' => 'PUT',  
  1009. 'parameters' => array( 
  1010. 'fileId' => array( 
  1011. 'location' => 'path',  
  1012. 'type' => 'string',  
  1013. 'required' => true,  
  1014. ),  
  1015. 'baseRevision' => array( 
  1016. 'location' => 'query',  
  1017. 'type' => 'string',  
  1018. ),  
  1019. ),  
  1020. ),  
  1021. ); 
  1022. $this->replies = new Google_Service_Drive_Replies_Resource( 
  1023. $this,  
  1024. $this->serviceName,  
  1025. 'replies',  
  1026. array( 
  1027. 'methods' => array( 
  1028. 'delete' => array( 
  1029. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',  
  1030. 'httpMethod' => 'DELETE',  
  1031. 'parameters' => array( 
  1032. 'fileId' => array( 
  1033. 'location' => 'path',  
  1034. 'type' => 'string',  
  1035. 'required' => true,  
  1036. ),  
  1037. 'commentId' => array( 
  1038. 'location' => 'path',  
  1039. 'type' => 'string',  
  1040. 'required' => true,  
  1041. ),  
  1042. 'replyId' => array( 
  1043. 'location' => 'path',  
  1044. 'type' => 'string',  
  1045. 'required' => true,  
  1046. ),  
  1047. ),  
  1048. ), 'get' => array( 
  1049. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',  
  1050. 'httpMethod' => 'GET',  
  1051. 'parameters' => array( 
  1052. 'fileId' => array( 
  1053. 'location' => 'path',  
  1054. 'type' => 'string',  
  1055. 'required' => true,  
  1056. ),  
  1057. 'commentId' => array( 
  1058. 'location' => 'path',  
  1059. 'type' => 'string',  
  1060. 'required' => true,  
  1061. ),  
  1062. 'replyId' => array( 
  1063. 'location' => 'path',  
  1064. 'type' => 'string',  
  1065. 'required' => true,  
  1066. ),  
  1067. 'includeDeleted' => array( 
  1068. 'location' => 'query',  
  1069. 'type' => 'boolean',  
  1070. ),  
  1071. ),  
  1072. ), 'insert' => array( 
  1073. 'path' => 'files/{fileId}/comments/{commentId}/replies',  
  1074. 'httpMethod' => 'POST',  
  1075. 'parameters' => array( 
  1076. 'fileId' => array( 
  1077. 'location' => 'path',  
  1078. 'type' => 'string',  
  1079. 'required' => true,  
  1080. ),  
  1081. 'commentId' => array( 
  1082. 'location' => 'path',  
  1083. 'type' => 'string',  
  1084. 'required' => true,  
  1085. ),  
  1086. ),  
  1087. ), 'list' => array( 
  1088. 'path' => 'files/{fileId}/comments/{commentId}/replies',  
  1089. 'httpMethod' => 'GET',  
  1090. 'parameters' => array( 
  1091. 'fileId' => array( 
  1092. 'location' => 'path',  
  1093. 'type' => 'string',  
  1094. 'required' => true,  
  1095. ),  
  1096. 'commentId' => array( 
  1097. 'location' => 'path',  
  1098. 'type' => 'string',  
  1099. 'required' => true,  
  1100. ),  
  1101. 'pageToken' => array( 
  1102. 'location' => 'query',  
  1103. 'type' => 'string',  
  1104. ),  
  1105. 'includeDeleted' => array( 
  1106. 'location' => 'query',  
  1107. 'type' => 'boolean',  
  1108. ),  
  1109. 'maxResults' => array( 
  1110. 'location' => 'query',  
  1111. 'type' => 'integer',  
  1112. ),  
  1113. ),  
  1114. ), 'patch' => array( 
  1115. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',  
  1116. 'httpMethod' => 'PATCH',  
  1117. 'parameters' => array( 
  1118. 'fileId' => array( 
  1119. 'location' => 'path',  
  1120. 'type' => 'string',  
  1121. 'required' => true,  
  1122. ),  
  1123. 'commentId' => array( 
  1124. 'location' => 'path',  
  1125. 'type' => 'string',  
  1126. 'required' => true,  
  1127. ),  
  1128. 'replyId' => array( 
  1129. 'location' => 'path',  
  1130. 'type' => 'string',  
  1131. 'required' => true,  
  1132. ),  
  1133. ),  
  1134. ), 'update' => array( 
  1135. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',  
  1136. 'httpMethod' => 'PUT',  
  1137. 'parameters' => array( 
  1138. 'fileId' => array( 
  1139. 'location' => 'path',  
  1140. 'type' => 'string',  
  1141. 'required' => true,  
  1142. ),  
  1143. 'commentId' => array( 
  1144. 'location' => 'path',  
  1145. 'type' => 'string',  
  1146. 'required' => true,  
  1147. ),  
  1148. 'replyId' => array( 
  1149. 'location' => 'path',  
  1150. 'type' => 'string',  
  1151. 'required' => true,  
  1152. ),  
  1153. ),  
  1154. ),  
  1155. ); 
  1156. $this->revisions = new Google_Service_Drive_Revisions_Resource( 
  1157. $this,  
  1158. $this->serviceName,  
  1159. 'revisions',  
  1160. array( 
  1161. 'methods' => array( 
  1162. 'delete' => array( 
  1163. 'path' => 'files/{fileId}/revisions/{revisionId}',  
  1164. 'httpMethod' => 'DELETE',  
  1165. 'parameters' => array( 
  1166. 'fileId' => array( 
  1167. 'location' => 'path',  
  1168. 'type' => 'string',  
  1169. 'required' => true,  
  1170. ),  
  1171. 'revisionId' => array( 
  1172. 'location' => 'path',  
  1173. 'type' => 'string',  
  1174. 'required' => true,  
  1175. ),  
  1176. ),  
  1177. ), 'get' => array( 
  1178. 'path' => 'files/{fileId}/revisions/{revisionId}',  
  1179. 'httpMethod' => 'GET',  
  1180. 'parameters' => array( 
  1181. 'fileId' => array( 
  1182. 'location' => 'path',  
  1183. 'type' => 'string',  
  1184. 'required' => true,  
  1185. ),  
  1186. 'revisionId' => array( 
  1187. 'location' => 'path',  
  1188. 'type' => 'string',  
  1189. 'required' => true,  
  1190. ),  
  1191. ),  
  1192. ), 'list' => array( 
  1193. 'path' => 'files/{fileId}/revisions',  
  1194. 'httpMethod' => 'GET',  
  1195. 'parameters' => array( 
  1196. 'fileId' => array( 
  1197. 'location' => 'path',  
  1198. 'type' => 'string',  
  1199. 'required' => true,  
  1200. ),  
  1201. ),  
  1202. ), 'patch' => array( 
  1203. 'path' => 'files/{fileId}/revisions/{revisionId}',  
  1204. 'httpMethod' => 'PATCH',  
  1205. 'parameters' => array( 
  1206. 'fileId' => array( 
  1207. 'location' => 'path',  
  1208. 'type' => 'string',  
  1209. 'required' => true,  
  1210. ),  
  1211. 'revisionId' => array( 
  1212. 'location' => 'path',  
  1213. 'type' => 'string',  
  1214. 'required' => true,  
  1215. ),  
  1216. ),  
  1217. ), 'update' => array( 
  1218. 'path' => 'files/{fileId}/revisions/{revisionId}',  
  1219. 'httpMethod' => 'PUT',  
  1220. 'parameters' => array( 
  1221. 'fileId' => array( 
  1222. 'location' => 'path',  
  1223. 'type' => 'string',  
  1224. 'required' => true,  
  1225. ),  
  1226. 'revisionId' => array( 
  1227. 'location' => 'path',  
  1228. 'type' => 'string',  
  1229. 'required' => true,  
  1230. ),  
  1231. ),  
  1232. ),  
  1233. ); 
  1234.  
  1235.  
  1236. /** 
  1237. * The "about" collection of methods. 
  1238. * Typical usage is: 
  1239. * <code> 
  1240. * $driveService = new Google_Service_Drive(...); 
  1241. * $about = $driveService->about; 
  1242. * </code> 
  1243. */ 
  1244. class Google_Service_Drive_About_Resource extends Google_Service_Resource 
  1245.  
  1246. /** 
  1247. * Gets the information about the current user along with Drive API settings 
  1248. * (about.get) 
  1249. * 
  1250. * @param array $optParams Optional parameters. 
  1251. * 
  1252. * @opt_param bool includeSubscribed When calculating the number of remaining 
  1253. * change IDs, whether to include public files the user has opened and shared 
  1254. * files. When set to false, this counts only change IDs for owned files and any 
  1255. * shared or public files that the user has explicitly added to a folder they 
  1256. * own. 
  1257. * @opt_param string maxChangeIdCount Maximum number of remaining change IDs to 
  1258. * count 
  1259. * @opt_param string startChangeId Change ID to start counting from when 
  1260. * calculating number of remaining change IDs 
  1261. * @return Google_Service_Drive_About 
  1262. */ 
  1263. public function get($optParams = array()) 
  1264. $params = array(); 
  1265. $params = array_merge($params, $optParams); 
  1266. return $this->call('get', array($params), "Google_Service_Drive_About"); 
  1267.  
  1268. /** 
  1269. * The "apps" collection of methods. 
  1270. * Typical usage is: 
  1271. * <code> 
  1272. * $driveService = new Google_Service_Drive(...); 
  1273. * $apps = $driveService->apps; 
  1274. * </code> 
  1275. */ 
  1276. class Google_Service_Drive_Apps_Resource extends Google_Service_Resource 
  1277.  
  1278. /** 
  1279. * Gets a specific app. (apps.get) 
  1280. * 
  1281. * @param string $appId The ID of the app. 
  1282. * @param array $optParams Optional parameters. 
  1283. * @return Google_Service_Drive_App 
  1284. */ 
  1285. public function get($appId, $optParams = array()) 
  1286. $params = array('appId' => $appId); 
  1287. $params = array_merge($params, $optParams); 
  1288. return $this->call('get', array($params), "Google_Service_Drive_App"); 
  1289.  
  1290. /** 
  1291. * Lists a user's installed apps. (apps.listApps) 
  1292. * 
  1293. * @param array $optParams Optional parameters. 
  1294. * 
  1295. * @opt_param string languageCode A language or locale code, as defined by BCP 
  1296. * 47, with some extensions from Unicode's LDML format 
  1297. * (http://www.unicode.org/reports/tr35/). 
  1298. * @opt_param string appFilterExtensions A comma-separated list of file 
  1299. * extensions for open with filtering. All apps within the given app query scope 
  1300. * which can open any of the given file extensions will be included in the 
  1301. * response. If appFilterMimeTypes are provided as well, the result is a union 
  1302. * of the two resulting app lists. 
  1303. * @opt_param string appFilterMimeTypes A comma-separated list of MIME types for 
  1304. * open with filtering. All apps within the given app query scope which can open 
  1305. * any of the given MIME types will be included in the response. If 
  1306. * appFilterExtensions are provided as well, the result is a union of the two 
  1307. * resulting app lists. 
  1308. * @return Google_Service_Drive_AppList 
  1309. */ 
  1310. public function listApps($optParams = array()) 
  1311. $params = array(); 
  1312. $params = array_merge($params, $optParams); 
  1313. return $this->call('list', array($params), "Google_Service_Drive_AppList"); 
  1314.  
  1315. /** 
  1316. * The "changes" collection of methods. 
  1317. * Typical usage is: 
  1318. * <code> 
  1319. * $driveService = new Google_Service_Drive(...); 
  1320. * $changes = $driveService->changes; 
  1321. * </code> 
  1322. */ 
  1323. class Google_Service_Drive_Changes_Resource extends Google_Service_Resource 
  1324.  
  1325. /** 
  1326. * Gets a specific change. (changes.get) 
  1327. * 
  1328. * @param string $changeId The ID of the change. 
  1329. * @param array $optParams Optional parameters. 
  1330. * @return Google_Service_Drive_Change 
  1331. */ 
  1332. public function get($changeId, $optParams = array()) 
  1333. $params = array('changeId' => $changeId); 
  1334. $params = array_merge($params, $optParams); 
  1335. return $this->call('get', array($params), "Google_Service_Drive_Change"); 
  1336.  
  1337. /** 
  1338. * Lists the changes for a user. (changes.listChanges) 
  1339. * 
  1340. * @param array $optParams Optional parameters. 
  1341. * 
  1342. * @opt_param bool includeSubscribed Whether to include public files the user 
  1343. * has opened and shared files. When set to false, the list only includes owned 
  1344. * files plus any shared or public files the user has explicitly added to a 
  1345. * folder they own. 
  1346. * @opt_param string startChangeId Change ID to start listing changes from. 
  1347. * @opt_param bool includeDeleted Whether to include deleted items. 
  1348. * @opt_param int maxResults Maximum number of changes to return. 
  1349. * @opt_param string pageToken Page token for changes. 
  1350. * @return Google_Service_Drive_ChangeList 
  1351. */ 
  1352. public function listChanges($optParams = array()) 
  1353. $params = array(); 
  1354. $params = array_merge($params, $optParams); 
  1355. return $this->call('list', array($params), "Google_Service_Drive_ChangeList"); 
  1356.  
  1357. /** 
  1358. * Subscribe to changes for a user. (changes.watch) 
  1359. * 
  1360. * @param Google_Channel $postBody 
  1361. * @param array $optParams Optional parameters. 
  1362. * 
  1363. * @opt_param bool includeSubscribed Whether to include public files the user 
  1364. * has opened and shared files. When set to false, the list only includes owned 
  1365. * files plus any shared or public files the user has explicitly added to a 
  1366. * folder they own. 
  1367. * @opt_param string startChangeId Change ID to start listing changes from. 
  1368. * @opt_param bool includeDeleted Whether to include deleted items. 
  1369. * @opt_param int maxResults Maximum number of changes to return. 
  1370. * @opt_param string pageToken Page token for changes. 
  1371. * @return Google_Service_Drive_Channel 
  1372. */ 
  1373. public function watch(Google_Service_Drive_Channel $postBody, $optParams = array()) 
  1374. $params = array('postBody' => $postBody); 
  1375. $params = array_merge($params, $optParams); 
  1376. return $this->call('watch', array($params), "Google_Service_Drive_Channel"); 
  1377.  
  1378. /** 
  1379. * The "channels" collection of methods. 
  1380. * Typical usage is: 
  1381. * <code> 
  1382. * $driveService = new Google_Service_Drive(...); 
  1383. * $channels = $driveService->channels; 
  1384. * </code> 
  1385. */ 
  1386. class Google_Service_Drive_Channels_Resource extends Google_Service_Resource 
  1387.  
  1388. /** 
  1389. * Stop watching resources through this channel (channels.stop) 
  1390. * 
  1391. * @param Google_Channel $postBody 
  1392. * @param array $optParams Optional parameters. 
  1393. */ 
  1394. public function stop(Google_Service_Drive_Channel $postBody, $optParams = array()) 
  1395. $params = array('postBody' => $postBody); 
  1396. $params = array_merge($params, $optParams); 
  1397. return $this->call('stop', array($params)); 
  1398.  
  1399. /** 
  1400. * The "children" collection of methods. 
  1401. * Typical usage is: 
  1402. * <code> 
  1403. * $driveService = new Google_Service_Drive(...); 
  1404. * $children = $driveService->children; 
  1405. * </code> 
  1406. */ 
  1407. class Google_Service_Drive_Children_Resource extends Google_Service_Resource 
  1408.  
  1409. /** 
  1410. * Removes a child from a folder. (children.delete) 
  1411. * 
  1412. * @param string $folderId The ID of the folder. 
  1413. * @param string $childId The ID of the child. 
  1414. * @param array $optParams Optional parameters. 
  1415. */ 
  1416. public function delete($folderId, $childId, $optParams = array()) 
  1417. $params = array('folderId' => $folderId, 'childId' => $childId); 
  1418. $params = array_merge($params, $optParams); 
  1419. return $this->call('delete', array($params)); 
  1420.  
  1421. /** 
  1422. * Gets a specific child reference. (children.get) 
  1423. * 
  1424. * @param string $folderId The ID of the folder. 
  1425. * @param string $childId The ID of the child. 
  1426. * @param array $optParams Optional parameters. 
  1427. * @return Google_Service_Drive_ChildReference 
  1428. */ 
  1429. public function get($folderId, $childId, $optParams = array()) 
  1430. $params = array('folderId' => $folderId, 'childId' => $childId); 
  1431. $params = array_merge($params, $optParams); 
  1432. return $this->call('get', array($params), "Google_Service_Drive_ChildReference"); 
  1433.  
  1434. /** 
  1435. * Inserts a file into a folder. (children.insert) 
  1436. * 
  1437. * @param string $folderId The ID of the folder. 
  1438. * @param Google_ChildReference $postBody 
  1439. * @param array $optParams Optional parameters. 
  1440. * @return Google_Service_Drive_ChildReference 
  1441. */ 
  1442. public function insert($folderId, Google_Service_Drive_ChildReference $postBody, $optParams = array()) 
  1443. $params = array('folderId' => $folderId, 'postBody' => $postBody); 
  1444. $params = array_merge($params, $optParams); 
  1445. return $this->call('insert', array($params), "Google_Service_Drive_ChildReference"); 
  1446.  
  1447. /** 
  1448. * Lists a folder's children. (children.listChildren) 
  1449. * 
  1450. * @param string $folderId The ID of the folder. 
  1451. * @param array $optParams Optional parameters. 
  1452. * 
  1453. * @opt_param string q Query string for searching children. 
  1454. * @opt_param string pageToken Page token for children. 
  1455. * @opt_param int maxResults Maximum number of children to return. 
  1456. * @return Google_Service_Drive_ChildList 
  1457. */ 
  1458. public function listChildren($folderId, $optParams = array()) 
  1459. $params = array('folderId' => $folderId); 
  1460. $params = array_merge($params, $optParams); 
  1461. return $this->call('list', array($params), "Google_Service_Drive_ChildList"); 
  1462.  
  1463. /** 
  1464. * The "comments" collection of methods. 
  1465. * Typical usage is: 
  1466. * <code> 
  1467. * $driveService = new Google_Service_Drive(...); 
  1468. * $comments = $driveService->comments; 
  1469. * </code> 
  1470. */ 
  1471. class Google_Service_Drive_Comments_Resource extends Google_Service_Resource 
  1472.  
  1473. /** 
  1474. * Deletes a comment. (comments.delete) 
  1475. * 
  1476. * @param string $fileId The ID of the file. 
  1477. * @param string $commentId The ID of the comment. 
  1478. * @param array $optParams Optional parameters. 
  1479. */ 
  1480. public function delete($fileId, $commentId, $optParams = array()) 
  1481. $params = array('fileId' => $fileId, 'commentId' => $commentId); 
  1482. $params = array_merge($params, $optParams); 
  1483. return $this->call('delete', array($params)); 
  1484.  
  1485. /** 
  1486. * Gets a comment by ID. (comments.get) 
  1487. * 
  1488. * @param string $fileId The ID of the file. 
  1489. * @param string $commentId The ID of the comment. 
  1490. * @param array $optParams Optional parameters. 
  1491. * 
  1492. * @opt_param bool includeDeleted If set, this will succeed when retrieving a 
  1493. * deleted comment, and will include any deleted replies. 
  1494. * @return Google_Service_Drive_Comment 
  1495. */ 
  1496. public function get($fileId, $commentId, $optParams = array()) 
  1497. $params = array('fileId' => $fileId, 'commentId' => $commentId); 
  1498. $params = array_merge($params, $optParams); 
  1499. return $this->call('get', array($params), "Google_Service_Drive_Comment"); 
  1500.  
  1501. /** 
  1502. * Creates a new comment on the given file. (comments.insert) 
  1503. * 
  1504. * @param string $fileId The ID of the file. 
  1505. * @param Google_Comment $postBody 
  1506. * @param array $optParams Optional parameters. 
  1507. * @return Google_Service_Drive_Comment 
  1508. */ 
  1509. public function insert($fileId, Google_Service_Drive_Comment $postBody, $optParams = array()) 
  1510. $params = array('fileId' => $fileId, 'postBody' => $postBody); 
  1511. $params = array_merge($params, $optParams); 
  1512. return $this->call('insert', array($params), "Google_Service_Drive_Comment"); 
  1513.  
  1514. /** 
  1515. * Lists a file's comments. (comments.listComments) 
  1516. * 
  1517. * @param string $fileId The ID of the file. 
  1518. * @param array $optParams Optional parameters. 
  1519. * 
  1520. * @opt_param string pageToken The continuation token, used to page through 
  1521. * large result sets. To get the next page of results, set this parameter to the 
  1522. * value of "nextPageToken" from the previous response. 
  1523. * @opt_param string updatedMin Only discussions that were updated after this 
  1524. * timestamp will be returned. Formatted as an RFC 3339 timestamp. 
  1525. * @opt_param bool includeDeleted If set, all comments and replies, including 
  1526. * deleted comments and replies (with content stripped) will be returned. 
  1527. * @opt_param int maxResults The maximum number of discussions to include in the 
  1528. * response, used for paging. 
  1529. * @return Google_Service_Drive_CommentList 
  1530. */ 
  1531. public function listComments($fileId, $optParams = array()) 
  1532. $params = array('fileId' => $fileId); 
  1533. $params = array_merge($params, $optParams); 
  1534. return $this->call('list', array($params), "Google_Service_Drive_CommentList"); 
  1535.  
  1536. /** 
  1537. * Updates an existing comment. This method supports patch semantics. 
  1538. * (comments.patch) 
  1539. * 
  1540. * @param string $fileId The ID of the file. 
  1541. * @param string $commentId The ID of the comment. 
  1542. * @param Google_Comment $postBody 
  1543. * @param array $optParams Optional parameters. 
  1544. * @return Google_Service_Drive_Comment 
  1545. */ 
  1546. public function patch($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array()) 
  1547. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); 
  1548. $params = array_merge($params, $optParams); 
  1549. return $this->call('patch', array($params), "Google_Service_Drive_Comment"); 
  1550.  
  1551. /** 
  1552. * Updates an existing comment. (comments.update) 
  1553. * 
  1554. * @param string $fileId The ID of the file. 
  1555. * @param string $commentId The ID of the comment. 
  1556. * @param Google_Comment $postBody 
  1557. * @param array $optParams Optional parameters. 
  1558. * @return Google_Service_Drive_Comment 
  1559. */ 
  1560. public function update($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array()) 
  1561. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); 
  1562. $params = array_merge($params, $optParams); 
  1563. return $this->call('update', array($params), "Google_Service_Drive_Comment"); 
  1564.  
  1565. /** 
  1566. * The "files" collection of methods. 
  1567. * Typical usage is: 
  1568. * <code> 
  1569. * $driveService = new Google_Service_Drive(...); 
  1570. * $files = $driveService->files; 
  1571. * </code> 
  1572. */ 
  1573. class Google_Service_Drive_Files_Resource extends Google_Service_Resource 
  1574.  
  1575. /** 
  1576. * Creates a copy of the specified file. (files.copy) 
  1577. * 
  1578. * @param string $fileId The ID of the file to copy. 
  1579. * @param Google_DriveFile $postBody 
  1580. * @param array $optParams Optional parameters. 
  1581. * 
  1582. * @opt_param bool convert Whether to convert this file to the corresponding 
  1583. * Google Docs format. 
  1584. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. 
  1585. * Valid values are ISO 639-1 codes. 
  1586. * @opt_param string visibility The visibility of the new file. This parameter 
  1587. * is only relevant when the source is not a native Google Doc and 
  1588. * convert=false. 
  1589. * @opt_param bool pinned Whether to pin the head revision of the new copy. A 
  1590. * file can have a maximum of 200 pinned revisions. 
  1591. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf 
  1592. * uploads. 
  1593. * @opt_param string timedTextTrackName The timed text track name. 
  1594. * @opt_param string timedTextLanguage The language of the timed text. 
  1595. * @return Google_Service_Drive_DriveFile 
  1596. */ 
  1597. public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) 
  1598. $params = array('fileId' => $fileId, 'postBody' => $postBody); 
  1599. $params = array_merge($params, $optParams); 
  1600. return $this->call('copy', array($params), "Google_Service_Drive_DriveFile"); 
  1601.  
  1602. /** 
  1603. * Permanently deletes a file by ID. Skips the trash. (files.delete) 
  1604. * 
  1605. * @param string $fileId The ID of the file to delete. 
  1606. * @param array $optParams Optional parameters. 
  1607. */ 
  1608. public function delete($fileId, $optParams = array()) 
  1609. $params = array('fileId' => $fileId); 
  1610. $params = array_merge($params, $optParams); 
  1611. return $this->call('delete', array($params)); 
  1612.  
  1613. /** 
  1614. * Permanently deletes all of the user's trashed files. (files.emptyTrash) 
  1615. * 
  1616. * @param array $optParams Optional parameters. 
  1617. */ 
  1618. public function emptyTrash($optParams = array()) 
  1619. $params = array(); 
  1620. $params = array_merge($params, $optParams); 
  1621. return $this->call('emptyTrash', array($params)); 
  1622.  
  1623. /** 
  1624. * Gets a file's metadata by ID. (files.get) 
  1625. * 
  1626. * @param string $fileId The ID for the file in question. 
  1627. * @param array $optParams Optional parameters. 
  1628. * 
  1629. * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk 
  1630. * of downloading known malware or other abusive files. 
  1631. * @opt_param bool updateViewedDate Whether to update the view date after 
  1632. * successfully retrieving the file. 
  1633. * @opt_param string projection This parameter is deprecated and has no 
  1634. * function. 
  1635. * @return Google_Service_Drive_DriveFile 
  1636. */ 
  1637. public function get($fileId, $optParams = array()) 
  1638. $params = array('fileId' => $fileId); 
  1639. $params = array_merge($params, $optParams); 
  1640. return $this->call('get', array($params), "Google_Service_Drive_DriveFile"); 
  1641.  
  1642. /** 
  1643. * Insert a new file. (files.insert) 
  1644. * 
  1645. * @param Google_DriveFile $postBody 
  1646. * @param array $optParams Optional parameters. 
  1647. * 
  1648. * @opt_param bool convert Whether to convert this file to the corresponding 
  1649. * Google Docs format. 
  1650. * @opt_param bool useContentAsIndexableText Whether to use the content as 
  1651. * indexable text. 
  1652. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. 
  1653. * Valid values are ISO 639-1 codes. 
  1654. * @opt_param string visibility The visibility of the new file. This parameter 
  1655. * is only relevant when convert=false. 
  1656. * @opt_param bool pinned Whether to pin the head revision of the uploaded file. 
  1657. * A file can have a maximum of 200 pinned revisions. 
  1658. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf 
  1659. * uploads. 
  1660. * @opt_param string timedTextTrackName The timed text track name. 
  1661. * @opt_param string timedTextLanguage The language of the timed text. 
  1662. * @return Google_Service_Drive_DriveFile 
  1663. */ 
  1664. public function insert(Google_Service_Drive_DriveFile $postBody, $optParams = array()) 
  1665. $params = array('postBody' => $postBody); 
  1666. $params = array_merge($params, $optParams); 
  1667. return $this->call('insert', array($params), "Google_Service_Drive_DriveFile"); 
  1668.  
  1669. /** 
  1670. * Lists the user's files. (files.listFiles) 
  1671. * 
  1672. * @param array $optParams Optional parameters. 
  1673. * 
  1674. * @opt_param string q Query string for searching files. 
  1675. * @opt_param string pageToken Page token for files. 
  1676. * @opt_param string corpus The body of items (files/documents) to which the 
  1677. * query applies. 
  1678. * @opt_param string projection This parameter is deprecated and has no 
  1679. * function. 
  1680. * @opt_param int maxResults Maximum number of files to return. 
  1681. * @return Google_Service_Drive_FileList 
  1682. */ 
  1683. public function listFiles($optParams = array()) 
  1684. $params = array(); 
  1685. $params = array_merge($params, $optParams); 
  1686. return $this->call('list', array($params), "Google_Service_Drive_FileList"); 
  1687.  
  1688. /** 
  1689. * Updates file metadata and/or content. This method supports patch semantics. 
  1690. * (files.patch) 
  1691. * 
  1692. * @param string $fileId The ID of the file to update. 
  1693. * @param Google_DriveFile $postBody 
  1694. * @param array $optParams Optional parameters. 
  1695. * 
  1696. * @opt_param string addParents Comma-separated list of parent IDs to add. 
  1697. * @opt_param bool updateViewedDate Whether to update the view date after 
  1698. * successfully updating the file. 
  1699. * @opt_param string removeParents Comma-separated list of parent IDs to remove. 
  1700. * @opt_param bool setModifiedDate Whether to set the modified date with the 
  1701. * supplied modified date. 
  1702. * @opt_param bool convert Whether to convert this file to the corresponding 
  1703. * Google Docs format. 
  1704. * @opt_param bool useContentAsIndexableText Whether to use the content as 
  1705. * indexable text. 
  1706. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. 
  1707. * Valid values are ISO 639-1 codes. 
  1708. * @opt_param bool pinned Whether to pin the new revision. A file can have a 
  1709. * maximum of 200 pinned revisions. 
  1710. * @opt_param bool newRevision Whether a blob upload should create a new 
  1711. * revision. If false, the blob data in the current head revision is replaced. 
  1712. * If true or not set, a new blob is created as head revision, and previous 
  1713. * revisions are preserved (causing increased use of the user's data storage 
  1714. * quota). 
  1715. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf 
  1716. * uploads. 
  1717. * @opt_param string timedTextLanguage The language of the timed text. 
  1718. * @opt_param string timedTextTrackName The timed text track name. 
  1719. * @return Google_Service_Drive_DriveFile 
  1720. */ 
  1721. public function patch($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) 
  1722. $params = array('fileId' => $fileId, 'postBody' => $postBody); 
  1723. $params = array_merge($params, $optParams); 
  1724. return $this->call('patch', array($params), "Google_Service_Drive_DriveFile"); 
  1725.  
  1726. /** 
  1727. * Set the file's updated time to the current server time. (files.touch) 
  1728. * 
  1729. * @param string $fileId The ID of the file to update. 
  1730. * @param array $optParams Optional parameters. 
  1731. * @return Google_Service_Drive_DriveFile 
  1732. */ 
  1733. public function touch($fileId, $optParams = array()) 
  1734. $params = array('fileId' => $fileId); 
  1735. $params = array_merge($params, $optParams); 
  1736. return $this->call('touch', array($params), "Google_Service_Drive_DriveFile"); 
  1737.  
  1738. /** 
  1739. * Moves a file to the trash. (files.trash) 
  1740. * 
  1741. * @param string $fileId The ID of the file to trash. 
  1742. * @param array $optParams Optional parameters. 
  1743. * @return Google_Service_Drive_DriveFile 
  1744. */ 
  1745. public function trash($fileId, $optParams = array()) 
  1746. $params = array('fileId' => $fileId); 
  1747. $params = array_merge($params, $optParams); 
  1748. return $this->call('trash', array($params), "Google_Service_Drive_DriveFile"); 
  1749.  
  1750. /** 
  1751. * Restores a file from the trash. (files.untrash) 
  1752. * 
  1753. * @param string $fileId The ID of the file to untrash. 
  1754. * @param array $optParams Optional parameters. 
  1755. * @return Google_Service_Drive_DriveFile 
  1756. */ 
  1757. public function untrash($fileId, $optParams = array()) 
  1758. $params = array('fileId' => $fileId); 
  1759. $params = array_merge($params, $optParams); 
  1760. return $this->call('untrash', array($params), "Google_Service_Drive_DriveFile"); 
  1761.  
  1762. /** 
  1763. * Updates file metadata and/or content. (files.update) 
  1764. * 
  1765. * @param string $fileId The ID of the file to update. 
  1766. * @param Google_DriveFile $postBody 
  1767. * @param array $optParams Optional parameters. 
  1768. * 
  1769. * @opt_param string addParents Comma-separated list of parent IDs to add. 
  1770. * @opt_param bool updateViewedDate Whether to update the view date after 
  1771. * successfully updating the file. 
  1772. * @opt_param string removeParents Comma-separated list of parent IDs to remove. 
  1773. * @opt_param bool setModifiedDate Whether to set the modified date with the 
  1774. * supplied modified date. 
  1775. * @opt_param bool convert Whether to convert this file to the corresponding 
  1776. * Google Docs format. 
  1777. * @opt_param bool useContentAsIndexableText Whether to use the content as 
  1778. * indexable text. 
  1779. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. 
  1780. * Valid values are ISO 639-1 codes. 
  1781. * @opt_param bool pinned Whether to pin the new revision. A file can have a 
  1782. * maximum of 200 pinned revisions. 
  1783. * @opt_param bool newRevision Whether a blob upload should create a new 
  1784. * revision. If false, the blob data in the current head revision is replaced. 
  1785. * If true or not set, a new blob is created as head revision, and previous 
  1786. * revisions are preserved (causing increased use of the user's data storage 
  1787. * quota). 
  1788. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf 
  1789. * uploads. 
  1790. * @opt_param string timedTextLanguage The language of the timed text. 
  1791. * @opt_param string timedTextTrackName The timed text track name. 
  1792. * @return Google_Service_Drive_DriveFile 
  1793. */ 
  1794. public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) 
  1795. $params = array('fileId' => $fileId, 'postBody' => $postBody); 
  1796. $params = array_merge($params, $optParams); 
  1797. return $this->call('update', array($params), "Google_Service_Drive_DriveFile"); 
  1798.  
  1799. /** 
  1800. * Subscribe to changes on a file (files.watch) 
  1801. * 
  1802. * @param string $fileId The ID for the file in question. 
  1803. * @param Google_Channel $postBody 
  1804. * @param array $optParams Optional parameters. 
  1805. * 
  1806. * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk 
  1807. * of downloading known malware or other abusive files. 
  1808. * @opt_param bool updateViewedDate Whether to update the view date after 
  1809. * successfully retrieving the file. 
  1810. * @opt_param string projection This parameter is deprecated and has no 
  1811. * function. 
  1812. * @return Google_Service_Drive_Channel 
  1813. */ 
  1814. public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array()) 
  1815. $params = array('fileId' => $fileId, 'postBody' => $postBody); 
  1816. $params = array_merge($params, $optParams); 
  1817. return $this->call('watch', array($params), "Google_Service_Drive_Channel"); 
  1818.  
  1819. /** 
  1820. * The "parents" collection of methods. 
  1821. * Typical usage is: 
  1822. * <code> 
  1823. * $driveService = new Google_Service_Drive(...); 
  1824. * $parents = $driveService->parents; 
  1825. * </code> 
  1826. */ 
  1827. class Google_Service_Drive_Parents_Resource extends Google_Service_Resource 
  1828.  
  1829. /** 
  1830. * Removes a parent from a file. (parents.delete) 
  1831. * 
  1832. * @param string $fileId The ID of the file. 
  1833. * @param string $parentId The ID of the parent. 
  1834. * @param array $optParams Optional parameters. 
  1835. */ 
  1836. public function delete($fileId, $parentId, $optParams = array()) 
  1837. $params = array('fileId' => $fileId, 'parentId' => $parentId); 
  1838. $params = array_merge($params, $optParams); 
  1839. return $this->call('delete', array($params)); 
  1840.  
  1841. /** 
  1842. * Gets a specific parent reference. (parents.get) 
  1843. * 
  1844. * @param string $fileId The ID of the file. 
  1845. * @param string $parentId The ID of the parent. 
  1846. * @param array $optParams Optional parameters. 
  1847. * @return Google_Service_Drive_ParentReference 
  1848. */ 
  1849. public function get($fileId, $parentId, $optParams = array()) 
  1850. $params = array('fileId' => $fileId, 'parentId' => $parentId); 
  1851. $params = array_merge($params, $optParams); 
  1852. return $this->call('get', array($params), "Google_Service_Drive_ParentReference"); 
  1853.  
  1854. /** 
  1855. * Adds a parent folder for a file. (parents.insert) 
  1856. * 
  1857. * @param string $fileId The ID of the file. 
  1858. * @param Google_ParentReference $postBody 
  1859. * @param array $optParams Optional parameters. 
  1860. * @return Google_Service_Drive_ParentReference 
  1861. */ 
  1862. public function insert($fileId, Google_Service_Drive_ParentReference $postBody, $optParams = array()) 
  1863. $params = array('fileId' => $fileId, 'postBody' => $postBody); 
  1864. $params = array_merge($params, $optParams); 
  1865. return $this->call('insert', array($params), "Google_Service_Drive_ParentReference"); 
  1866.  
  1867. /** 
  1868. * Lists a file's parents. (parents.listParents) 
  1869. * 
  1870. * @param string $fileId The ID of the file. 
  1871. * @param array $optParams Optional parameters. 
  1872. * @return Google_Service_Drive_ParentList 
  1873. */ 
  1874. public function listParents($fileId, $optParams = array()) 
  1875. $params = array('fileId' => $fileId); 
  1876. $params = array_merge($params, $optParams); 
  1877. return $this->call('list', array($params), "Google_Service_Drive_ParentList"); 
  1878.  
  1879. /** 
  1880. * The "permissions" collection of methods. 
  1881. * Typical usage is: 
  1882. * <code> 
  1883. * $driveService = new Google_Service_Drive(...); 
  1884. * $permissions = $driveService->permissions; 
  1885. * </code> 
  1886. */ 
  1887. class Google_Service_Drive_Permissions_Resource extends Google_Service_Resource 
  1888.  
  1889. /** 
  1890. * Deletes a permission from a file. (permissions.delete) 
  1891. * 
  1892. * @param string $fileId The ID for the file. 
  1893. * @param string $permissionId The ID for the permission. 
  1894. * @param array $optParams Optional parameters. 
  1895. */ 
  1896. public function delete($fileId, $permissionId, $optParams = array()) 
  1897. $params = array('fileId' => $fileId, 'permissionId' => $permissionId); 
  1898. $params = array_merge($params, $optParams); 
  1899. return $this->call('delete', array($params)); 
  1900.  
  1901. /** 
  1902. * Gets a permission by ID. (permissions.get) 
  1903. * 
  1904. * @param string $fileId The ID for the file. 
  1905. * @param string $permissionId The ID for the permission. 
  1906. * @param array $optParams Optional parameters. 
  1907. * @return Google_Service_Drive_Permission 
  1908. */ 
  1909. public function get($fileId, $permissionId, $optParams = array()) 
  1910. $params = array('fileId' => $fileId, 'permissionId' => $permissionId); 
  1911. $params = array_merge($params, $optParams); 
  1912. return $this->call('get', array($params), "Google_Service_Drive_Permission"); 
  1913.  
  1914. /** 
  1915. * Returns the permission ID for an email address. (permissions.getIdForEmail) 
  1916. * 
  1917. * @param string $email The email address for which to return a permission ID 
  1918. * @param array $optParams Optional parameters. 
  1919. * @return Google_Service_Drive_PermissionId 
  1920. */ 
  1921. public function getIdForEmail($email, $optParams = array()) 
  1922. $params = array('email' => $email); 
  1923. $params = array_merge($params, $optParams); 
  1924. return $this->call('getIdForEmail', array($params), "Google_Service_Drive_PermissionId"); 
  1925.  
  1926. /** 
  1927. * Inserts a permission for a file. (permissions.insert) 
  1928. * 
  1929. * @param string $fileId The ID for the file. 
  1930. * @param Google_Permission $postBody 
  1931. * @param array $optParams Optional parameters. 
  1932. * 
  1933. * @opt_param string emailMessage A custom message to include in notification 
  1934. * emails. 
  1935. * @opt_param bool sendNotificationEmails Whether to send notification emails 
  1936. * when sharing to users or groups. This parameter is ignored and an email is 
  1937. * sent if the role is owner. 
  1938. * @return Google_Service_Drive_Permission 
  1939. */ 
  1940. public function insert($fileId, Google_Service_Drive_Permission $postBody, $optParams = array()) 
  1941. $params = array('fileId' => $fileId, 'postBody' => $postBody); 
  1942. $params = array_merge($params, $optParams); 
  1943. return $this->call('insert', array($params), "Google_Service_Drive_Permission"); 
  1944.  
  1945. /** 
  1946. * Lists a file's permissions. (permissions.listPermissions) 
  1947. * 
  1948. * @param string $fileId The ID for the file. 
  1949. * @param array $optParams Optional parameters. 
  1950. * @return Google_Service_Drive_PermissionList 
  1951. */ 
  1952. public function listPermissions($fileId, $optParams = array()) 
  1953. $params = array('fileId' => $fileId); 
  1954. $params = array_merge($params, $optParams); 
  1955. return $this->call('list', array($params), "Google_Service_Drive_PermissionList"); 
  1956.  
  1957. /** 
  1958. * Updates a permission. This method supports patch semantics. 
  1959. * (permissions.patch) 
  1960. * 
  1961. * @param string $fileId The ID for the file. 
  1962. * @param string $permissionId The ID for the permission. 
  1963. * @param Google_Permission $postBody 
  1964. * @param array $optParams Optional parameters. 
  1965. * 
  1966. * @opt_param bool transferOwnership Whether changing a role to 'owner' should 
  1967. * also downgrade the current owners to writers. 
  1968. * @return Google_Service_Drive_Permission 
  1969. */ 
  1970. public function patch($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) 
  1971. $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); 
  1972. $params = array_merge($params, $optParams); 
  1973. return $this->call('patch', array($params), "Google_Service_Drive_Permission"); 
  1974.  
  1975. /** 
  1976. * Updates a permission. (permissions.update) 
  1977. * 
  1978. * @param string $fileId The ID for the file. 
  1979. * @param string $permissionId The ID for the permission. 
  1980. * @param Google_Permission $postBody 
  1981. * @param array $optParams Optional parameters. 
  1982. * 
  1983. * @opt_param bool transferOwnership Whether changing a role to 'owner' should 
  1984. * also downgrade the current owners to writers. 
  1985. * @return Google_Service_Drive_Permission 
  1986. */ 
  1987. public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) 
  1988. $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); 
  1989. $params = array_merge($params, $optParams); 
  1990. return $this->call('update', array($params), "Google_Service_Drive_Permission"); 
  1991.  
  1992. /** 
  1993. * The "properties" collection of methods. 
  1994. * Typical usage is: 
  1995. * <code> 
  1996. * $driveService = new Google_Service_Drive(...); 
  1997. * $properties = $driveService->properties; 
  1998. * </code> 
  1999. */ 
  2000. class Google_Service_Drive_Properties_Resource extends Google_Service_Resource 
  2001.  
  2002. /** 
  2003. * Deletes a property. (properties.delete) 
  2004. * 
  2005. * @param string $fileId The ID of the file. 
  2006. * @param string $propertyKey The key of the property. 
  2007. * @param array $optParams Optional parameters. 
  2008. * 
  2009. * @opt_param string visibility The visibility of the property. 
  2010. */ 
  2011. public function delete($fileId, $propertyKey, $optParams = array()) 
  2012. $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey); 
  2013. $params = array_merge($params, $optParams); 
  2014. return $this->call('delete', array($params)); 
  2015.  
  2016. /** 
  2017. * Gets a property by its key. (properties.get) 
  2018. * 
  2019. * @param string $fileId The ID of the file. 
  2020. * @param string $propertyKey The key of the property. 
  2021. * @param array $optParams Optional parameters. 
  2022. * 
  2023. * @opt_param string visibility The visibility of the property. 
  2024. * @return Google_Service_Drive_Property 
  2025. */ 
  2026. public function get($fileId, $propertyKey, $optParams = array()) 
  2027. $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey); 
  2028. $params = array_merge($params, $optParams); 
  2029. return $this->call('get', array($params), "Google_Service_Drive_Property"); 
  2030.  
  2031. /** 
  2032. * Adds a property to a file. (properties.insert) 
  2033. * 
  2034. * @param string $fileId The ID of the file. 
  2035. * @param Google_Property $postBody 
  2036. * @param array $optParams Optional parameters. 
  2037. * @return Google_Service_Drive_Property 
  2038. */ 
  2039. public function insert($fileId, Google_Service_Drive_Property $postBody, $optParams = array()) 
  2040. $params = array('fileId' => $fileId, 'postBody' => $postBody); 
  2041. $params = array_merge($params, $optParams); 
  2042. return $this->call('insert', array($params), "Google_Service_Drive_Property"); 
  2043.  
  2044. /** 
  2045. * Lists a file's properties. (properties.listProperties) 
  2046. * 
  2047. * @param string $fileId The ID of the file. 
  2048. * @param array $optParams Optional parameters. 
  2049. * @return Google_Service_Drive_PropertyList 
  2050. */ 
  2051. public function listProperties($fileId, $optParams = array()) 
  2052. $params = array('fileId' => $fileId); 
  2053. $params = array_merge($params, $optParams); 
  2054. return $this->call('list', array($params), "Google_Service_Drive_PropertyList"); 
  2055.  
  2056. /** 
  2057. * Updates a property. This method supports patch semantics. (properties.patch) 
  2058. * 
  2059. * @param string $fileId The ID of the file. 
  2060. * @param string $propertyKey The key of the property. 
  2061. * @param Google_Property $postBody 
  2062. * @param array $optParams Optional parameters. 
  2063. * 
  2064. * @opt_param string visibility The visibility of the property. 
  2065. * @return Google_Service_Drive_Property 
  2066. */ 
  2067. public function patch($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array()) 
  2068. $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody); 
  2069. $params = array_merge($params, $optParams); 
  2070. return $this->call('patch', array($params), "Google_Service_Drive_Property"); 
  2071.  
  2072. /** 
  2073. * Updates a property. (properties.update) 
  2074. * 
  2075. * @param string $fileId The ID of the file. 
  2076. * @param string $propertyKey The key of the property. 
  2077. * @param Google_Property $postBody 
  2078. * @param array $optParams Optional parameters. 
  2079. * 
  2080. * @opt_param string visibility The visibility of the property. 
  2081. * @return Google_Service_Drive_Property 
  2082. */ 
  2083. public function update($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array()) 
  2084. $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody); 
  2085. $params = array_merge($params, $optParams); 
  2086. return $this->call('update', array($params), "Google_Service_Drive_Property"); 
  2087.  
  2088. /** 
  2089. * The "realtime" collection of methods. 
  2090. * Typical usage is: 
  2091. * <code> 
  2092. * $driveService = new Google_Service_Drive(...); 
  2093. * $realtime = $driveService->realtime; 
  2094. * </code> 
  2095. */ 
  2096. class Google_Service_Drive_Realtime_Resource extends Google_Service_Resource 
  2097.  
  2098. /** 
  2099. * Exports the contents of the Realtime API data model associated with this file 
  2100. * as JSON. (realtime.get) 
  2101. * 
  2102. * @param string $fileId The ID of the file that the Realtime API data model is 
  2103. * associated with. 
  2104. * @param array $optParams Optional parameters. 
  2105. * 
  2106. * @opt_param int revision The revision of the Realtime API data model to 
  2107. * export. Revisions start at 1 (the initial empty data model) and are 
  2108. * incremented with each change. If this parameter is excluded, the most recent 
  2109. * data model will be returned. 
  2110. */ 
  2111. public function get($fileId, $optParams = array()) 
  2112. $params = array('fileId' => $fileId); 
  2113. $params = array_merge($params, $optParams); 
  2114. return $this->call('get', array($params)); 
  2115.  
  2116. /** 
  2117. * Overwrites the Realtime API data model associated with this file with the 
  2118. * provided JSON data model. (realtime.update) 
  2119. * 
  2120. * @param string $fileId The ID of the file that the Realtime API data model is 
  2121. * associated with. 
  2122. * @param array $optParams Optional parameters. 
  2123. * 
  2124. * @opt_param string baseRevision The revision of the model to diff the uploaded 
  2125. * model against. If set, the uploaded model is diffed against the provided 
  2126. * revision and those differences are merged with any changes made to the model 
  2127. * after the provided revision. If not set, the uploaded model replaces the 
  2128. * current model on the server. 
  2129. */ 
  2130. public function update($fileId, $optParams = array()) 
  2131. $params = array('fileId' => $fileId); 
  2132. $params = array_merge($params, $optParams); 
  2133. return $this->call('update', array($params)); 
  2134.  
  2135. /** 
  2136. * The "replies" collection of methods. 
  2137. * Typical usage is: 
  2138. * <code> 
  2139. * $driveService = new Google_Service_Drive(...); 
  2140. * $replies = $driveService->replies; 
  2141. * </code> 
  2142. */ 
  2143. class Google_Service_Drive_Replies_Resource extends Google_Service_Resource 
  2144.  
  2145. /** 
  2146. * Deletes a reply. (replies.delete) 
  2147. * 
  2148. * @param string $fileId The ID of the file. 
  2149. * @param string $commentId The ID of the comment. 
  2150. * @param string $replyId The ID of the reply. 
  2151. * @param array $optParams Optional parameters. 
  2152. */ 
  2153. public function delete($fileId, $commentId, $replyId, $optParams = array()) 
  2154. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); 
  2155. $params = array_merge($params, $optParams); 
  2156. return $this->call('delete', array($params)); 
  2157.  
  2158. /** 
  2159. * Gets a reply. (replies.get) 
  2160. * 
  2161. * @param string $fileId The ID of the file. 
  2162. * @param string $commentId The ID of the comment. 
  2163. * @param string $replyId The ID of the reply. 
  2164. * @param array $optParams Optional parameters. 
  2165. * 
  2166. * @opt_param bool includeDeleted If set, this will succeed when retrieving a 
  2167. * deleted reply. 
  2168. * @return Google_Service_Drive_CommentReply 
  2169. */ 
  2170. public function get($fileId, $commentId, $replyId, $optParams = array()) 
  2171. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); 
  2172. $params = array_merge($params, $optParams); 
  2173. return $this->call('get', array($params), "Google_Service_Drive_CommentReply"); 
  2174.  
  2175. /** 
  2176. * Creates a new reply to the given comment. (replies.insert) 
  2177. * 
  2178. * @param string $fileId The ID of the file. 
  2179. * @param string $commentId The ID of the comment. 
  2180. * @param Google_CommentReply $postBody 
  2181. * @param array $optParams Optional parameters. 
  2182. * @return Google_Service_Drive_CommentReply 
  2183. */ 
  2184. public function insert($fileId, $commentId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) 
  2185. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); 
  2186. $params = array_merge($params, $optParams); 
  2187. return $this->call('insert', array($params), "Google_Service_Drive_CommentReply"); 
  2188.  
  2189. /** 
  2190. * Lists all of the replies to a comment. (replies.listReplies) 
  2191. * 
  2192. * @param string $fileId The ID of the file. 
  2193. * @param string $commentId The ID of the comment. 
  2194. * @param array $optParams Optional parameters. 
  2195. * 
  2196. * @opt_param string pageToken The continuation token, used to page through 
  2197. * large result sets. To get the next page of results, set this parameter to the 
  2198. * value of "nextPageToken" from the previous response. 
  2199. * @opt_param bool includeDeleted If set, all replies, including deleted replies 
  2200. * (with content stripped) will be returned. 
  2201. * @opt_param int maxResults The maximum number of replies to include in the 
  2202. * response, used for paging. 
  2203. * @return Google_Service_Drive_CommentReplyList 
  2204. */ 
  2205. public function listReplies($fileId, $commentId, $optParams = array()) 
  2206. $params = array('fileId' => $fileId, 'commentId' => $commentId); 
  2207. $params = array_merge($params, $optParams); 
  2208. return $this->call('list', array($params), "Google_Service_Drive_CommentReplyList"); 
  2209.  
  2210. /** 
  2211. * Updates an existing reply. This method supports patch semantics. 
  2212. * (replies.patch) 
  2213. * 
  2214. * @param string $fileId The ID of the file. 
  2215. * @param string $commentId The ID of the comment. 
  2216. * @param string $replyId The ID of the reply. 
  2217. * @param Google_CommentReply $postBody 
  2218. * @param array $optParams Optional parameters. 
  2219. * @return Google_Service_Drive_CommentReply 
  2220. */ 
  2221. public function patch($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) 
  2222. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); 
  2223. $params = array_merge($params, $optParams); 
  2224. return $this->call('patch', array($params), "Google_Service_Drive_CommentReply"); 
  2225.  
  2226. /** 
  2227. * Updates an existing reply. (replies.update) 
  2228. * 
  2229. * @param string $fileId The ID of the file. 
  2230. * @param string $commentId The ID of the comment. 
  2231. * @param string $replyId The ID of the reply. 
  2232. * @param Google_CommentReply $postBody 
  2233. * @param array $optParams Optional parameters. 
  2234. * @return Google_Service_Drive_CommentReply 
  2235. */ 
  2236. public function update($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) 
  2237. $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); 
  2238. $params = array_merge($params, $optParams); 
  2239. return $this->call('update', array($params), "Google_Service_Drive_CommentReply"); 
  2240.  
  2241. /** 
  2242. * The "revisions" collection of methods. 
  2243. * Typical usage is: 
  2244. * <code> 
  2245. * $driveService = new Google_Service_Drive(...); 
  2246. * $revisions = $driveService->revisions; 
  2247. * </code> 
  2248. */ 
  2249. class Google_Service_Drive_Revisions_Resource extends Google_Service_Resource 
  2250.  
  2251. /** 
  2252. * Removes a revision. (revisions.delete) 
  2253. * 
  2254. * @param string $fileId The ID of the file. 
  2255. * @param string $revisionId The ID of the revision. 
  2256. * @param array $optParams Optional parameters. 
  2257. */ 
  2258. public function delete($fileId, $revisionId, $optParams = array()) 
  2259. $params = array('fileId' => $fileId, 'revisionId' => $revisionId); 
  2260. $params = array_merge($params, $optParams); 
  2261. return $this->call('delete', array($params)); 
  2262.  
  2263. /** 
  2264. * Gets a specific revision. (revisions.get) 
  2265. * 
  2266. * @param string $fileId The ID of the file. 
  2267. * @param string $revisionId The ID of the revision. 
  2268. * @param array $optParams Optional parameters. 
  2269. * @return Google_Service_Drive_Revision 
  2270. */ 
  2271. public function get($fileId, $revisionId, $optParams = array()) 
  2272. $params = array('fileId' => $fileId, 'revisionId' => $revisionId); 
  2273. $params = array_merge($params, $optParams); 
  2274. return $this->call('get', array($params), "Google_Service_Drive_Revision"); 
  2275.  
  2276. /** 
  2277. * Lists a file's revisions. (revisions.listRevisions) 
  2278. * 
  2279. * @param string $fileId The ID of the file. 
  2280. * @param array $optParams Optional parameters. 
  2281. * @return Google_Service_Drive_RevisionList 
  2282. */ 
  2283. public function listRevisions($fileId, $optParams = array()) 
  2284. $params = array('fileId' => $fileId); 
  2285. $params = array_merge($params, $optParams); 
  2286. return $this->call('list', array($params), "Google_Service_Drive_RevisionList"); 
  2287.  
  2288. /** 
  2289. * Updates a revision. This method supports patch semantics. (revisions.patch) 
  2290. * 
  2291. * @param string $fileId The ID for the file. 
  2292. * @param string $revisionId The ID for the revision. 
  2293. * @param Google_Revision $postBody 
  2294. * @param array $optParams Optional parameters. 
  2295. * @return Google_Service_Drive_Revision 
  2296. */ 
  2297. public function patch($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array()) 
  2298. $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); 
  2299. $params = array_merge($params, $optParams); 
  2300. return $this->call('patch', array($params), "Google_Service_Drive_Revision"); 
  2301.  
  2302. /** 
  2303. * Updates a revision. (revisions.update) 
  2304. * 
  2305. * @param string $fileId The ID for the file. 
  2306. * @param string $revisionId The ID for the revision. 
  2307. * @param Google_Revision $postBody 
  2308. * @param array $optParams Optional parameters. 
  2309. * @return Google_Service_Drive_Revision 
  2310. */ 
  2311. public function update($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array()) 
  2312. $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); 
  2313. $params = array_merge($params, $optParams); 
  2314. return $this->call('update', array($params), "Google_Service_Drive_Revision"); 
  2315.  
  2316.  
  2317.  
  2318.  
  2319. class Google_Service_Drive_About extends Google_Collection 
  2320. protected $collection_key = 'quotaBytesByService'; 
  2321. protected $internal_gapi_mappings = array( 
  2322. ); 
  2323. protected $additionalRoleInfoType = 'Google_Service_Drive_AboutAdditionalRoleInfo'; 
  2324. protected $additionalRoleInfoDataType = 'array'; 
  2325. public $domainSharingPolicy; 
  2326. public $etag; 
  2327. protected $exportFormatsType = 'Google_Service_Drive_AboutExportFormats'; 
  2328. protected $exportFormatsDataType = 'array'; 
  2329. protected $featuresType = 'Google_Service_Drive_AboutFeatures'; 
  2330. protected $featuresDataType = 'array'; 
  2331. public $folderColorPalette; 
  2332. protected $importFormatsType = 'Google_Service_Drive_AboutImportFormats'; 
  2333. protected $importFormatsDataType = 'array'; 
  2334. public $isCurrentAppInstalled; 
  2335. public $kind; 
  2336. public $languageCode; 
  2337. public $largestChangeId; 
  2338. protected $maxUploadSizesType = 'Google_Service_Drive_AboutMaxUploadSizes'; 
  2339. protected $maxUploadSizesDataType = 'array'; 
  2340. public $name; 
  2341. public $permissionId; 
  2342. protected $quotaBytesByServiceType = 'Google_Service_Drive_AboutQuotaBytesByService'; 
  2343. protected $quotaBytesByServiceDataType = 'array'; 
  2344. public $quotaBytesTotal; 
  2345. public $quotaBytesUsed; 
  2346. public $quotaBytesUsedAggregate; 
  2347. public $quotaBytesUsedInTrash; 
  2348. public $quotaType; 
  2349. public $remainingChangeIds; 
  2350. public $rootFolderId; 
  2351. public $selfLink; 
  2352. protected $userType = 'Google_Service_Drive_User'; 
  2353. protected $userDataType = ''; 
  2354.  
  2355.  
  2356. public function setAdditionalRoleInfo($additionalRoleInfo) 
  2357. $this->additionalRoleInfo = $additionalRoleInfo; 
  2358. public function getAdditionalRoleInfo() 
  2359. return $this->additionalRoleInfo; 
  2360. public function setDomainSharingPolicy($domainSharingPolicy) 
  2361. $this->domainSharingPolicy = $domainSharingPolicy; 
  2362. public function getDomainSharingPolicy() 
  2363. return $this->domainSharingPolicy; 
  2364. public function setEtag($etag) 
  2365. $this->etag = $etag; 
  2366. public function getEtag() 
  2367. return $this->etag; 
  2368. public function setExportFormats($exportFormats) 
  2369. $this->exportFormats = $exportFormats; 
  2370. public function getExportFormats() 
  2371. return $this->exportFormats; 
  2372. public function setFeatures($features) 
  2373. $this->features = $features; 
  2374. public function getFeatures() 
  2375. return $this->features; 
  2376. public function setFolderColorPalette($folderColorPalette) 
  2377. $this->folderColorPalette = $folderColorPalette; 
  2378. public function getFolderColorPalette() 
  2379. return $this->folderColorPalette; 
  2380. public function setImportFormats($importFormats) 
  2381. $this->importFormats = $importFormats; 
  2382. public function getImportFormats() 
  2383. return $this->importFormats; 
  2384. public function setIsCurrentAppInstalled($isCurrentAppInstalled) 
  2385. $this->isCurrentAppInstalled = $isCurrentAppInstalled; 
  2386. public function getIsCurrentAppInstalled() 
  2387. return $this->isCurrentAppInstalled; 
  2388. public function setKind($kind) 
  2389. $this->kind = $kind; 
  2390. public function getKind() 
  2391. return $this->kind; 
  2392. public function setLanguageCode($languageCode) 
  2393. $this->languageCode = $languageCode; 
  2394. public function getLanguageCode() 
  2395. return $this->languageCode; 
  2396. public function setLargestChangeId($largestChangeId) 
  2397. $this->largestChangeId = $largestChangeId; 
  2398. public function getLargestChangeId() 
  2399. return $this->largestChangeId; 
  2400. public function setMaxUploadSizes($maxUploadSizes) 
  2401. $this->maxUploadSizes = $maxUploadSizes; 
  2402. public function getMaxUploadSizes() 
  2403. return $this->maxUploadSizes; 
  2404. public function setName($name) 
  2405. $this->name = $name; 
  2406. public function getName() 
  2407. return $this->name; 
  2408. public function setPermissionId($permissionId) 
  2409. $this->permissionId = $permissionId; 
  2410. public function getPermissionId() 
  2411. return $this->permissionId; 
  2412. public function setQuotaBytesByService($quotaBytesByService) 
  2413. $this->quotaBytesByService = $quotaBytesByService; 
  2414. public function getQuotaBytesByService() 
  2415. return $this->quotaBytesByService; 
  2416. public function setQuotaBytesTotal($quotaBytesTotal) 
  2417. $this->quotaBytesTotal = $quotaBytesTotal; 
  2418. public function getQuotaBytesTotal() 
  2419. return $this->quotaBytesTotal; 
  2420. public function setQuotaBytesUsed($quotaBytesUsed) 
  2421. $this->quotaBytesUsed = $quotaBytesUsed; 
  2422. public function getQuotaBytesUsed() 
  2423. return $this->quotaBytesUsed; 
  2424. public function setQuotaBytesUsedAggregate($quotaBytesUsedAggregate) 
  2425. $this->quotaBytesUsedAggregate = $quotaBytesUsedAggregate; 
  2426. public function getQuotaBytesUsedAggregate() 
  2427. return $this->quotaBytesUsedAggregate; 
  2428. public function setQuotaBytesUsedInTrash($quotaBytesUsedInTrash) 
  2429. $this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash; 
  2430. public function getQuotaBytesUsedInTrash() 
  2431. return $this->quotaBytesUsedInTrash; 
  2432. public function setQuotaType($quotaType) 
  2433. $this->quotaType = $quotaType; 
  2434. public function getQuotaType() 
  2435. return $this->quotaType; 
  2436. public function setRemainingChangeIds($remainingChangeIds) 
  2437. $this->remainingChangeIds = $remainingChangeIds; 
  2438. public function getRemainingChangeIds() 
  2439. return $this->remainingChangeIds; 
  2440. public function setRootFolderId($rootFolderId) 
  2441. $this->rootFolderId = $rootFolderId; 
  2442. public function getRootFolderId() 
  2443. return $this->rootFolderId; 
  2444. public function setSelfLink($selfLink) 
  2445. $this->selfLink = $selfLink; 
  2446. public function getSelfLink() 
  2447. return $this->selfLink; 
  2448. public function setUser(Google_Service_Drive_User $user) 
  2449. $this->user = $user; 
  2450. public function getUser() 
  2451. return $this->user; 
  2452.  
  2453. class Google_Service_Drive_AboutAdditionalRoleInfo extends Google_Collection 
  2454. protected $collection_key = 'roleSets'; 
  2455. protected $internal_gapi_mappings = array( 
  2456. ); 
  2457. protected $roleSetsType = 'Google_Service_Drive_AboutAdditionalRoleInfoRoleSets'; 
  2458. protected $roleSetsDataType = 'array'; 
  2459. public $type; 
  2460.  
  2461.  
  2462. public function setRoleSets($roleSets) 
  2463. $this->roleSets = $roleSets; 
  2464. public function getRoleSets() 
  2465. return $this->roleSets; 
  2466. public function setType($type) 
  2467. $this->type = $type; 
  2468. public function getType() 
  2469. return $this->type; 
  2470.  
  2471. class Google_Service_Drive_AboutAdditionalRoleInfoRoleSets extends Google_Collection 
  2472. protected $collection_key = 'additionalRoles'; 
  2473. protected $internal_gapi_mappings = array( 
  2474. ); 
  2475. public $additionalRoles; 
  2476. public $primaryRole; 
  2477.  
  2478.  
  2479. public function setAdditionalRoles($additionalRoles) 
  2480. $this->additionalRoles = $additionalRoles; 
  2481. public function getAdditionalRoles() 
  2482. return $this->additionalRoles; 
  2483. public function setPrimaryRole($primaryRole) 
  2484. $this->primaryRole = $primaryRole; 
  2485. public function getPrimaryRole() 
  2486. return $this->primaryRole; 
  2487.  
  2488. class Google_Service_Drive_AboutExportFormats extends Google_Collection 
  2489. protected $collection_key = 'targets'; 
  2490. protected $internal_gapi_mappings = array( 
  2491. ); 
  2492. public $source; 
  2493. public $targets; 
  2494.  
  2495.  
  2496. public function setSource($source) 
  2497. $this->source = $source; 
  2498. public function getSource() 
  2499. return $this->source; 
  2500. public function setTargets($targets) 
  2501. $this->targets = $targets; 
  2502. public function getTargets() 
  2503. return $this->targets; 
  2504.  
  2505. class Google_Service_Drive_AboutFeatures extends Google_Model 
  2506. protected $internal_gapi_mappings = array( 
  2507. ); 
  2508. public $featureName; 
  2509. public $featureRate; 
  2510.  
  2511.  
  2512. public function setFeatureName($featureName) 
  2513. $this->featureName = $featureName; 
  2514. public function getFeatureName() 
  2515. return $this->featureName; 
  2516. public function setFeatureRate($featureRate) 
  2517. $this->featureRate = $featureRate; 
  2518. public function getFeatureRate() 
  2519. return $this->featureRate; 
  2520.  
  2521. class Google_Service_Drive_AboutImportFormats extends Google_Collection 
  2522. protected $collection_key = 'targets'; 
  2523. protected $internal_gapi_mappings = array( 
  2524. ); 
  2525. public $source; 
  2526. public $targets; 
  2527.  
  2528.  
  2529. public function setSource($source) 
  2530. $this->source = $source; 
  2531. public function getSource() 
  2532. return $this->source; 
  2533. public function setTargets($targets) 
  2534. $this->targets = $targets; 
  2535. public function getTargets() 
  2536. return $this->targets; 
  2537.  
  2538. class Google_Service_Drive_AboutMaxUploadSizes extends Google_Model 
  2539. protected $internal_gapi_mappings = array( 
  2540. ); 
  2541. public $size; 
  2542. public $type; 
  2543.  
  2544.  
  2545. public function setSize($size) 
  2546. $this->size = $size; 
  2547. public function getSize() 
  2548. return $this->size; 
  2549. public function setType($type) 
  2550. $this->type = $type; 
  2551. public function getType() 
  2552. return $this->type; 
  2553.  
  2554. class Google_Service_Drive_AboutQuotaBytesByService extends Google_Model 
  2555. protected $internal_gapi_mappings = array( 
  2556. ); 
  2557. public $bytesUsed; 
  2558. public $serviceName; 
  2559.  
  2560.  
  2561. public function setBytesUsed($bytesUsed) 
  2562. $this->bytesUsed = $bytesUsed; 
  2563. public function getBytesUsed() 
  2564. return $this->bytesUsed; 
  2565. public function setServiceName($serviceName) 
  2566. $this->serviceName = $serviceName; 
  2567. public function getServiceName() 
  2568. return $this->serviceName; 
  2569.  
  2570. class Google_Service_Drive_App extends Google_Collection 
  2571. protected $collection_key = 'secondaryMimeTypes'; 
  2572. protected $internal_gapi_mappings = array( 
  2573. ); 
  2574. public $authorized; 
  2575. public $createInFolderTemplate; 
  2576. public $createUrl; 
  2577. public $hasDriveWideScope; 
  2578. protected $iconsType = 'Google_Service_Drive_AppIcons'; 
  2579. protected $iconsDataType = 'array'; 
  2580. public $id; 
  2581. public $installed; 
  2582. public $kind; 
  2583. public $longDescription; 
  2584. public $name; 
  2585. public $objectType; 
  2586. public $openUrlTemplate; 
  2587. public $primaryFileExtensions; 
  2588. public $primaryMimeTypes; 
  2589. public $productId; 
  2590. public $productUrl; 
  2591. public $secondaryFileExtensions; 
  2592. public $secondaryMimeTypes; 
  2593. public $shortDescription; 
  2594. public $supportsCreate; 
  2595. public $supportsImport; 
  2596. public $supportsMultiOpen; 
  2597. public $supportsOfflineCreate; 
  2598. public $useByDefault; 
  2599.  
  2600.  
  2601. public function setAuthorized($authorized) 
  2602. $this->authorized = $authorized; 
  2603. public function getAuthorized() 
  2604. return $this->authorized; 
  2605. public function setCreateInFolderTemplate($createInFolderTemplate) 
  2606. $this->createInFolderTemplate = $createInFolderTemplate; 
  2607. public function getCreateInFolderTemplate() 
  2608. return $this->createInFolderTemplate; 
  2609. public function setCreateUrl($createUrl) 
  2610. $this->createUrl = $createUrl; 
  2611. public function getCreateUrl() 
  2612. return $this->createUrl; 
  2613. public function setHasDriveWideScope($hasDriveWideScope) 
  2614. $this->hasDriveWideScope = $hasDriveWideScope; 
  2615. public function getHasDriveWideScope() 
  2616. return $this->hasDriveWideScope; 
  2617. public function setIcons($icons) 
  2618. $this->icons = $icons; 
  2619. public function getIcons() 
  2620. return $this->icons; 
  2621. public function setId($id) 
  2622. $this->id = $id; 
  2623. public function getId() 
  2624. return $this->id; 
  2625. public function setInstalled($installed) 
  2626. $this->installed = $installed; 
  2627. public function getInstalled() 
  2628. return $this->installed; 
  2629. public function setKind($kind) 
  2630. $this->kind = $kind; 
  2631. public function getKind() 
  2632. return $this->kind; 
  2633. public function setLongDescription($longDescription) 
  2634. $this->longDescription = $longDescription; 
  2635. public function getLongDescription() 
  2636. return $this->longDescription; 
  2637. public function setName($name) 
  2638. $this->name = $name; 
  2639. public function getName() 
  2640. return $this->name; 
  2641. public function setObjectType($objectType) 
  2642. $this->objectType = $objectType; 
  2643. public function getObjectType() 
  2644. return $this->objectType; 
  2645. public function setOpenUrlTemplate($openUrlTemplate) 
  2646. $this->openUrlTemplate = $openUrlTemplate; 
  2647. public function getOpenUrlTemplate() 
  2648. return $this->openUrlTemplate; 
  2649. public function setPrimaryFileExtensions($primaryFileExtensions) 
  2650. $this->primaryFileExtensions = $primaryFileExtensions; 
  2651. public function getPrimaryFileExtensions() 
  2652. return $this->primaryFileExtensions; 
  2653. public function setPrimaryMimeTypes($primaryMimeTypes) 
  2654. $this->primaryMimeTypes = $primaryMimeTypes; 
  2655. public function getPrimaryMimeTypes() 
  2656. return $this->primaryMimeTypes; 
  2657. public function setProductId($productId) 
  2658. $this->productId = $productId; 
  2659. public function getProductId() 
  2660. return $this->productId; 
  2661. public function setProductUrl($productUrl) 
  2662. $this->productUrl = $productUrl; 
  2663. public function getProductUrl() 
  2664. return $this->productUrl; 
  2665. public function setSecondaryFileExtensions($secondaryFileExtensions) 
  2666. $this->secondaryFileExtensions = $secondaryFileExtensions; 
  2667. public function getSecondaryFileExtensions() 
  2668. return $this->secondaryFileExtensions; 
  2669. public function setSecondaryMimeTypes($secondaryMimeTypes) 
  2670. $this->secondaryMimeTypes = $secondaryMimeTypes; 
  2671. public function getSecondaryMimeTypes() 
  2672. return $this->secondaryMimeTypes; 
  2673. public function setShortDescription($shortDescription) 
  2674. $this->shortDescription = $shortDescription; 
  2675. public function getShortDescription() 
  2676. return $this->shortDescription; 
  2677. public function setSupportsCreate($supportsCreate) 
  2678. $this->supportsCreate = $supportsCreate; 
  2679. public function getSupportsCreate() 
  2680. return $this->supportsCreate; 
  2681. public function setSupportsImport($supportsImport) 
  2682. $this->supportsImport = $supportsImport; 
  2683. public function getSupportsImport() 
  2684. return $this->supportsImport; 
  2685. public function setSupportsMultiOpen($supportsMultiOpen) 
  2686. $this->supportsMultiOpen = $supportsMultiOpen; 
  2687. public function getSupportsMultiOpen() 
  2688. return $this->supportsMultiOpen; 
  2689. public function setSupportsOfflineCreate($supportsOfflineCreate) 
  2690. $this->supportsOfflineCreate = $supportsOfflineCreate; 
  2691. public function getSupportsOfflineCreate() 
  2692. return $this->supportsOfflineCreate; 
  2693. public function setUseByDefault($useByDefault) 
  2694. $this->useByDefault = $useByDefault; 
  2695. public function getUseByDefault() 
  2696. return $this->useByDefault; 
  2697.  
  2698. class Google_Service_Drive_AppIcons extends Google_Model 
  2699. protected $internal_gapi_mappings = array( 
  2700. ); 
  2701. public $category; 
  2702. public $iconUrl; 
  2703. public $size; 
  2704.  
  2705.  
  2706. public function setCategory($category) 
  2707. $this->category = $category; 
  2708. public function getCategory() 
  2709. return $this->category; 
  2710. public function setIconUrl($iconUrl) 
  2711. $this->iconUrl = $iconUrl; 
  2712. public function getIconUrl() 
  2713. return $this->iconUrl; 
  2714. public function setSize($size) 
  2715. $this->size = $size; 
  2716. public function getSize() 
  2717. return $this->size; 
  2718.  
  2719. class Google_Service_Drive_AppList extends Google_Collection 
  2720. protected $collection_key = 'items'; 
  2721. protected $internal_gapi_mappings = array( 
  2722. ); 
  2723. public $defaultAppIds; 
  2724. public $etag; 
  2725. protected $itemsType = 'Google_Service_Drive_App'; 
  2726. protected $itemsDataType = 'array'; 
  2727. public $kind; 
  2728. public $selfLink; 
  2729.  
  2730.  
  2731. public function setDefaultAppIds($defaultAppIds) 
  2732. $this->defaultAppIds = $defaultAppIds; 
  2733. public function getDefaultAppIds() 
  2734. return $this->defaultAppIds; 
  2735. public function setEtag($etag) 
  2736. $this->etag = $etag; 
  2737. public function getEtag() 
  2738. return $this->etag; 
  2739. public function setItems($items) 
  2740. $this->items = $items; 
  2741. public function getItems() 
  2742. return $this->items; 
  2743. public function setKind($kind) 
  2744. $this->kind = $kind; 
  2745. public function getKind() 
  2746. return $this->kind; 
  2747. public function setSelfLink($selfLink) 
  2748. $this->selfLink = $selfLink; 
  2749. public function getSelfLink() 
  2750. return $this->selfLink; 
  2751.  
  2752. class Google_Service_Drive_Change extends Google_Model 
  2753. protected $internal_gapi_mappings = array( 
  2754. ); 
  2755. public $deleted; 
  2756. protected $fileType = 'Google_Service_Drive_DriveFile'; 
  2757. protected $fileDataType = ''; 
  2758. public $fileId; 
  2759. public $id; 
  2760. public $kind; 
  2761. public $modificationDate; 
  2762. public $selfLink; 
  2763.  
  2764.  
  2765. public function setDeleted($deleted) 
  2766. $this->deleted = $deleted; 
  2767. public function getDeleted() 
  2768. return $this->deleted; 
  2769. public function setFile(Google_Service_Drive_DriveFile $file) 
  2770. $this->file = $file; 
  2771. public function getFile() 
  2772. return $this->file; 
  2773. public function setFileId($fileId) 
  2774. $this->fileId = $fileId; 
  2775. public function getFileId() 
  2776. return $this->fileId; 
  2777. public function setId($id) 
  2778. $this->id = $id; 
  2779. public function getId() 
  2780. return $this->id; 
  2781. public function setKind($kind) 
  2782. $this->kind = $kind; 
  2783. public function getKind() 
  2784. return $this->kind; 
  2785. public function setModificationDate($modificationDate) 
  2786. $this->modificationDate = $modificationDate; 
  2787. public function getModificationDate() 
  2788. return $this->modificationDate; 
  2789. public function setSelfLink($selfLink) 
  2790. $this->selfLink = $selfLink; 
  2791. public function getSelfLink() 
  2792. return $this->selfLink; 
  2793.  
  2794. class Google_Service_Drive_ChangeList extends Google_Collection 
  2795. protected $collection_key = 'items'; 
  2796. protected $internal_gapi_mappings = array( 
  2797. ); 
  2798. public $etag; 
  2799. protected $itemsType = 'Google_Service_Drive_Change'; 
  2800. protected $itemsDataType = 'array'; 
  2801. public $kind; 
  2802. public $largestChangeId; 
  2803. public $nextLink; 
  2804. public $nextPageToken; 
  2805. public $selfLink; 
  2806.  
  2807.  
  2808. public function setEtag($etag) 
  2809. $this->etag = $etag; 
  2810. public function getEtag() 
  2811. return $this->etag; 
  2812. public function setItems($items) 
  2813. $this->items = $items; 
  2814. public function getItems() 
  2815. return $this->items; 
  2816. public function setKind($kind) 
  2817. $this->kind = $kind; 
  2818. public function getKind() 
  2819. return $this->kind; 
  2820. public function setLargestChangeId($largestChangeId) 
  2821. $this->largestChangeId = $largestChangeId; 
  2822. public function getLargestChangeId() 
  2823. return $this->largestChangeId; 
  2824. public function setNextLink($nextLink) 
  2825. $this->nextLink = $nextLink; 
  2826. public function getNextLink() 
  2827. return $this->nextLink; 
  2828. public function setNextPageToken($nextPageToken) 
  2829. $this->nextPageToken = $nextPageToken; 
  2830. public function getNextPageToken() 
  2831. return $this->nextPageToken; 
  2832. public function setSelfLink($selfLink) 
  2833. $this->selfLink = $selfLink; 
  2834. public function getSelfLink() 
  2835. return $this->selfLink; 
  2836.  
  2837. class Google_Service_Drive_Channel extends Google_Model 
  2838. protected $internal_gapi_mappings = array( 
  2839. ); 
  2840. public $address; 
  2841. public $expiration; 
  2842. public $id; 
  2843. public $kind; 
  2844. public $params; 
  2845. public $payload; 
  2846. public $resourceId; 
  2847. public $resourceUri; 
  2848. public $token; 
  2849. public $type; 
  2850.  
  2851.  
  2852. public function setAddress($address) 
  2853. $this->address = $address; 
  2854. public function getAddress() 
  2855. return $this->address; 
  2856. public function setExpiration($expiration) 
  2857. $this->expiration = $expiration; 
  2858. public function getExpiration() 
  2859. return $this->expiration; 
  2860. public function setId($id) 
  2861. $this->id = $id; 
  2862. public function getId() 
  2863. return $this->id; 
  2864. public function setKind($kind) 
  2865. $this->kind = $kind; 
  2866. public function getKind() 
  2867. return $this->kind; 
  2868. public function setParams($params) 
  2869. $this->params = $params; 
  2870. public function getParams() 
  2871. return $this->params; 
  2872. public function setPayload($payload) 
  2873. $this->payload = $payload; 
  2874. public function getPayload() 
  2875. return $this->payload; 
  2876. public function setResourceId($resourceId) 
  2877. $this->resourceId = $resourceId; 
  2878. public function getResourceId() 
  2879. return $this->resourceId; 
  2880. public function setResourceUri($resourceUri) 
  2881. $this->resourceUri = $resourceUri; 
  2882. public function getResourceUri() 
  2883. return $this->resourceUri; 
  2884. public function setToken($token) 
  2885. $this->token = $token; 
  2886. public function getToken() 
  2887. return $this->token; 
  2888. public function setType($type) 
  2889. $this->type = $type; 
  2890. public function getType() 
  2891. return $this->type; 
  2892.  
  2893. class Google_Service_Drive_ChannelParams extends Google_Model 
  2894.  
  2895. class Google_Service_Drive_ChildList extends Google_Collection 
  2896. protected $collection_key = 'items'; 
  2897. protected $internal_gapi_mappings = array( 
  2898. ); 
  2899. public $etag; 
  2900. protected $itemsType = 'Google_Service_Drive_ChildReference'; 
  2901. protected $itemsDataType = 'array'; 
  2902. public $kind; 
  2903. public $nextLink; 
  2904. public $nextPageToken; 
  2905. public $selfLink; 
  2906.  
  2907.  
  2908. public function setEtag($etag) 
  2909. $this->etag = $etag; 
  2910. public function getEtag() 
  2911. return $this->etag; 
  2912. public function setItems($items) 
  2913. $this->items = $items; 
  2914. public function getItems() 
  2915. return $this->items; 
  2916. public function setKind($kind) 
  2917. $this->kind = $kind; 
  2918. public function getKind() 
  2919. return $this->kind; 
  2920. public function setNextLink($nextLink) 
  2921. $this->nextLink = $nextLink; 
  2922. public function getNextLink() 
  2923. return $this->nextLink; 
  2924. public function setNextPageToken($nextPageToken) 
  2925. $this->nextPageToken = $nextPageToken; 
  2926. public function getNextPageToken() 
  2927. return $this->nextPageToken; 
  2928. public function setSelfLink($selfLink) 
  2929. $this->selfLink = $selfLink; 
  2930. public function getSelfLink() 
  2931. return $this->selfLink; 
  2932.  
  2933. class Google_Service_Drive_ChildReference extends Google_Model 
  2934. protected $internal_gapi_mappings = array( 
  2935. ); 
  2936. public $childLink; 
  2937. public $id; 
  2938. public $kind; 
  2939. public $selfLink; 
  2940.  
  2941.  
  2942. public function setChildLink($childLink) 
  2943. $this->childLink = $childLink; 
  2944. public function getChildLink() 
  2945. return $this->childLink; 
  2946. public function setId($id) 
  2947. $this->id = $id; 
  2948. public function getId() 
  2949. return $this->id; 
  2950. public function setKind($kind) 
  2951. $this->kind = $kind; 
  2952. public function getKind() 
  2953. return $this->kind; 
  2954. public function setSelfLink($selfLink) 
  2955. $this->selfLink = $selfLink; 
  2956. public function getSelfLink() 
  2957. return $this->selfLink; 
  2958.  
  2959. class Google_Service_Drive_Comment extends Google_Collection 
  2960. protected $collection_key = 'replies'; 
  2961. protected $internal_gapi_mappings = array( 
  2962. ); 
  2963. public $anchor; 
  2964. protected $authorType = 'Google_Service_Drive_User'; 
  2965. protected $authorDataType = ''; 
  2966. public $commentId; 
  2967. public $content; 
  2968. protected $contextType = 'Google_Service_Drive_CommentContext'; 
  2969. protected $contextDataType = ''; 
  2970. public $createdDate; 
  2971. public $deleted; 
  2972. public $fileId; 
  2973. public $fileTitle; 
  2974. public $htmlContent; 
  2975. public $kind; 
  2976. public $modifiedDate; 
  2977. protected $repliesType = 'Google_Service_Drive_CommentReply'; 
  2978. protected $repliesDataType = 'array'; 
  2979. public $selfLink; 
  2980. public $status; 
  2981.  
  2982.  
  2983. public function setAnchor($anchor) 
  2984. $this->anchor = $anchor; 
  2985. public function getAnchor() 
  2986. return $this->anchor; 
  2987. public function setAuthor(Google_Service_Drive_User $author) 
  2988. $this->author = $author; 
  2989. public function getAuthor() 
  2990. return $this->author; 
  2991. public function setCommentId($commentId) 
  2992. $this->commentId = $commentId; 
  2993. public function getCommentId() 
  2994. return $this->commentId; 
  2995. public function setContent($content) 
  2996. $this->content = $content; 
  2997. public function getContent() 
  2998. return $this->content; 
  2999. public function setContext(Google_Service_Drive_CommentContext $context) 
  3000. $this->context = $context; 
  3001. public function getContext() 
  3002. return $this->context; 
  3003. public function setCreatedDate($createdDate) 
  3004. $this->createdDate = $createdDate; 
  3005. public function getCreatedDate() 
  3006. return $this->createdDate; 
  3007. public function setDeleted($deleted) 
  3008. $this->deleted = $deleted; 
  3009. public function getDeleted() 
  3010. return $this->deleted; 
  3011. public function setFileId($fileId) 
  3012. $this->fileId = $fileId; 
  3013. public function getFileId() 
  3014. return $this->fileId; 
  3015. public function setFileTitle($fileTitle) 
  3016. $this->fileTitle = $fileTitle; 
  3017. public function getFileTitle() 
  3018. return $this->fileTitle; 
  3019. public function setHtmlContent($htmlContent) 
  3020. $this->htmlContent = $htmlContent; 
  3021. public function getHtmlContent() 
  3022. return $this->htmlContent; 
  3023. public function setKind($kind) 
  3024. $this->kind = $kind; 
  3025. public function getKind() 
  3026. return $this->kind; 
  3027. public function setModifiedDate($modifiedDate) 
  3028. $this->modifiedDate = $modifiedDate; 
  3029. public function getModifiedDate() 
  3030. return $this->modifiedDate; 
  3031. public function setReplies($replies) 
  3032. $this->replies = $replies; 
  3033. public function getReplies() 
  3034. return $this->replies; 
  3035. public function setSelfLink($selfLink) 
  3036. $this->selfLink = $selfLink; 
  3037. public function getSelfLink() 
  3038. return $this->selfLink; 
  3039. public function setStatus($status) 
  3040. $this->status = $status; 
  3041. public function getStatus() 
  3042. return $this->status; 
  3043.  
  3044. class Google_Service_Drive_CommentContext extends Google_Model 
  3045. protected $internal_gapi_mappings = array( 
  3046. ); 
  3047. public $type; 
  3048. public $value; 
  3049.  
  3050.  
  3051. public function setType($type) 
  3052. $this->type = $type; 
  3053. public function getType() 
  3054. return $this->type; 
  3055. public function setValue($value) 
  3056. $this->value = $value; 
  3057. public function getValue() 
  3058. return $this->value; 
  3059.  
  3060. class Google_Service_Drive_CommentList extends Google_Collection 
  3061. protected $collection_key = 'items'; 
  3062. protected $internal_gapi_mappings = array( 
  3063. ); 
  3064. protected $itemsType = 'Google_Service_Drive_Comment'; 
  3065. protected $itemsDataType = 'array'; 
  3066. public $kind; 
  3067. public $nextLink; 
  3068. public $nextPageToken; 
  3069. public $selfLink; 
  3070.  
  3071.  
  3072. public function setItems($items) 
  3073. $this->items = $items; 
  3074. public function getItems() 
  3075. return $this->items; 
  3076. public function setKind($kind) 
  3077. $this->kind = $kind; 
  3078. public function getKind() 
  3079. return $this->kind; 
  3080. public function setNextLink($nextLink) 
  3081. $this->nextLink = $nextLink; 
  3082. public function getNextLink() 
  3083. return $this->nextLink; 
  3084. public function setNextPageToken($nextPageToken) 
  3085. $this->nextPageToken = $nextPageToken; 
  3086. public function getNextPageToken() 
  3087. return $this->nextPageToken; 
  3088. public function setSelfLink($selfLink) 
  3089. $this->selfLink = $selfLink; 
  3090. public function getSelfLink() 
  3091. return $this->selfLink; 
  3092.  
  3093. class Google_Service_Drive_CommentReply extends Google_Model 
  3094. protected $internal_gapi_mappings = array( 
  3095. ); 
  3096. protected $authorType = 'Google_Service_Drive_User'; 
  3097. protected $authorDataType = ''; 
  3098. public $content; 
  3099. public $createdDate; 
  3100. public $deleted; 
  3101. public $htmlContent; 
  3102. public $kind; 
  3103. public $modifiedDate; 
  3104. public $replyId; 
  3105. public $verb; 
  3106.  
  3107.  
  3108. public function setAuthor(Google_Service_Drive_User $author) 
  3109. $this->author = $author; 
  3110. public function getAuthor() 
  3111. return $this->author; 
  3112. public function setContent($content) 
  3113. $this->content = $content; 
  3114. public function getContent() 
  3115. return $this->content; 
  3116. public function setCreatedDate($createdDate) 
  3117. $this->createdDate = $createdDate; 
  3118. public function getCreatedDate() 
  3119. return $this->createdDate; 
  3120. public function setDeleted($deleted) 
  3121. $this->deleted = $deleted; 
  3122. public function getDeleted() 
  3123. return $this->deleted; 
  3124. public function setHtmlContent($htmlContent) 
  3125. $this->htmlContent = $htmlContent; 
  3126. public function getHtmlContent() 
  3127. return $this->htmlContent; 
  3128. public function setKind($kind) 
  3129. $this->kind = $kind; 
  3130. public function getKind() 
  3131. return $this->kind; 
  3132. public function setModifiedDate($modifiedDate) 
  3133. $this->modifiedDate = $modifiedDate; 
  3134. public function getModifiedDate() 
  3135. return $this->modifiedDate; 
  3136. public function setReplyId($replyId) 
  3137. $this->replyId = $replyId; 
  3138. public function getReplyId() 
  3139. return $this->replyId; 
  3140. public function setVerb($verb) 
  3141. $this->verb = $verb; 
  3142. public function getVerb() 
  3143. return $this->verb; 
  3144.  
  3145. class Google_Service_Drive_CommentReplyList extends Google_Collection 
  3146. protected $collection_key = 'items'; 
  3147. protected $internal_gapi_mappings = array( 
  3148. ); 
  3149. protected $itemsType = 'Google_Service_Drive_CommentReply'; 
  3150. protected $itemsDataType = 'array'; 
  3151. public $kind; 
  3152. public $nextLink; 
  3153. public $nextPageToken; 
  3154. public $selfLink; 
  3155.  
  3156.  
  3157. public function setItems($items) 
  3158. $this->items = $items; 
  3159. public function getItems() 
  3160. return $this->items; 
  3161. public function setKind($kind) 
  3162. $this->kind = $kind; 
  3163. public function getKind() 
  3164. return $this->kind; 
  3165. public function setNextLink($nextLink) 
  3166. $this->nextLink = $nextLink; 
  3167. public function getNextLink() 
  3168. return $this->nextLink; 
  3169. public function setNextPageToken($nextPageToken) 
  3170. $this->nextPageToken = $nextPageToken; 
  3171. public function getNextPageToken() 
  3172. return $this->nextPageToken; 
  3173. public function setSelfLink($selfLink) 
  3174. $this->selfLink = $selfLink; 
  3175. public function getSelfLink() 
  3176. return $this->selfLink; 
  3177.  
  3178. class Google_Service_Drive_DriveFile extends Google_Collection 
  3179. protected $collection_key = 'properties'; 
  3180. protected $internal_gapi_mappings = array( 
  3181. ); 
  3182. public $alternateLink; 
  3183. public $appDataContents; 
  3184. public $copyable; 
  3185. public $createdDate; 
  3186. public $defaultOpenWithLink; 
  3187. public $description; 
  3188. public $downloadUrl; 
  3189. public $editable; 
  3190. public $embedLink; 
  3191. public $etag; 
  3192. public $explicitlyTrashed; 
  3193. public $exportLinks; 
  3194. public $fileExtension; 
  3195. public $fileSize; 
  3196. public $folderColorRgb; 
  3197. public $headRevisionId; 
  3198. public $iconLink; 
  3199. public $id; 
  3200. protected $imageMediaMetadataType = 'Google_Service_Drive_DriveFileImageMediaMetadata'; 
  3201. protected $imageMediaMetadataDataType = ''; 
  3202. protected $indexableTextType = 'Google_Service_Drive_DriveFileIndexableText'; 
  3203. protected $indexableTextDataType = ''; 
  3204. public $kind; 
  3205. protected $labelsType = 'Google_Service_Drive_DriveFileLabels'; 
  3206. protected $labelsDataType = ''; 
  3207. protected $lastModifyingUserType = 'Google_Service_Drive_User'; 
  3208. protected $lastModifyingUserDataType = ''; 
  3209. public $lastModifyingUserName; 
  3210. public $lastViewedByMeDate; 
  3211. public $markedViewedByMeDate; 
  3212. public $md5Checksum; 
  3213. public $mimeType; 
  3214. public $modifiedByMeDate; 
  3215. public $modifiedDate; 
  3216. public $openWithLinks; 
  3217. public $originalFilename; 
  3218. public $ownerNames; 
  3219. protected $ownersType = 'Google_Service_Drive_User'; 
  3220. protected $ownersDataType = 'array'; 
  3221. protected $parentsType = 'Google_Service_Drive_ParentReference'; 
  3222. protected $parentsDataType = 'array'; 
  3223. protected $permissionsType = 'Google_Service_Drive_Permission'; 
  3224. protected $permissionsDataType = 'array'; 
  3225. protected $propertiesType = 'Google_Service_Drive_Property'; 
  3226. protected $propertiesDataType = 'array'; 
  3227. public $quotaBytesUsed; 
  3228. public $selfLink; 
  3229. public $shared; 
  3230. public $sharedWithMeDate; 
  3231. protected $sharingUserType = 'Google_Service_Drive_User'; 
  3232. protected $sharingUserDataType = ''; 
  3233. protected $thumbnailType = 'Google_Service_Drive_DriveFileThumbnail'; 
  3234. protected $thumbnailDataType = ''; 
  3235. public $thumbnailLink; 
  3236. public $title; 
  3237. protected $userPermissionType = 'Google_Service_Drive_Permission'; 
  3238. protected $userPermissionDataType = ''; 
  3239. public $version; 
  3240. protected $videoMediaMetadataType = 'Google_Service_Drive_DriveFileVideoMediaMetadata'; 
  3241. protected $videoMediaMetadataDataType = ''; 
  3242. public $webContentLink; 
  3243. public $webViewLink; 
  3244. public $writersCanShare; 
  3245.  
  3246.  
  3247. public function setAlternateLink($alternateLink) 
  3248. $this->alternateLink = $alternateLink; 
  3249. public function getAlternateLink() 
  3250. return $this->alternateLink; 
  3251. public function setAppDataContents($appDataContents) 
  3252. $this->appDataContents = $appDataContents; 
  3253. public function getAppDataContents() 
  3254. return $this->appDataContents; 
  3255. public function setCopyable($copyable) 
  3256. $this->copyable = $copyable; 
  3257. public function getCopyable() 
  3258. return $this->copyable; 
  3259. public function setCreatedDate($createdDate) 
  3260. $this->createdDate = $createdDate; 
  3261. public function getCreatedDate() 
  3262. return $this->createdDate; 
  3263. public function setDefaultOpenWithLink($defaultOpenWithLink) 
  3264. $this->defaultOpenWithLink = $defaultOpenWithLink; 
  3265. public function getDefaultOpenWithLink() 
  3266. return $this->defaultOpenWithLink; 
  3267. public function setDescription($description) 
  3268. $this->description = $description; 
  3269. public function getDescription() 
  3270. return $this->description; 
  3271. public function setDownloadUrl($downloadUrl) 
  3272. $this->downloadUrl = $downloadUrl; 
  3273. public function getDownloadUrl() 
  3274. return $this->downloadUrl; 
  3275. public function setEditable($editable) 
  3276. $this->editable = $editable; 
  3277. public function getEditable() 
  3278. return $this->editable; 
  3279. public function setEmbedLink($embedLink) 
  3280. $this->embedLink = $embedLink; 
  3281. public function getEmbedLink() 
  3282. return $this->embedLink; 
  3283. public function setEtag($etag) 
  3284. $this->etag = $etag; 
  3285. public function getEtag() 
  3286. return $this->etag; 
  3287. public function setExplicitlyTrashed($explicitlyTrashed) 
  3288. $this->explicitlyTrashed = $explicitlyTrashed; 
  3289. public function getExplicitlyTrashed() 
  3290. return $this->explicitlyTrashed; 
  3291. public function setExportLinks($exportLinks) 
  3292. $this->exportLinks = $exportLinks; 
  3293. public function getExportLinks() 
  3294. return $this->exportLinks; 
  3295. public function setFileExtension($fileExtension) 
  3296. $this->fileExtension = $fileExtension; 
  3297. public function getFileExtension() 
  3298. return $this->fileExtension; 
  3299. public function setFileSize($fileSize) 
  3300. $this->fileSize = $fileSize; 
  3301. public function getFileSize() 
  3302. return $this->fileSize; 
  3303. public function setFolderColorRgb($folderColorRgb) 
  3304. $this->folderColorRgb = $folderColorRgb; 
  3305. public function getFolderColorRgb() 
  3306. return $this->folderColorRgb; 
  3307. public function setHeadRevisionId($headRevisionId) 
  3308. $this->headRevisionId = $headRevisionId; 
  3309. public function getHeadRevisionId() 
  3310. return $this->headRevisionId; 
  3311. public function setIconLink($iconLink) 
  3312. $this->iconLink = $iconLink; 
  3313. public function getIconLink() 
  3314. return $this->iconLink; 
  3315. public function setId($id) 
  3316. $this->id = $id; 
  3317. public function getId() 
  3318. return $this->id; 
  3319. public function setImageMediaMetadata(Google_Service_Drive_DriveFileImageMediaMetadata $imageMediaMetadata) 
  3320. $this->imageMediaMetadata = $imageMediaMetadata; 
  3321. public function getImageMediaMetadata() 
  3322. return $this->imageMediaMetadata; 
  3323. public function setIndexableText(Google_Service_Drive_DriveFileIndexableText $indexableText) 
  3324. $this->indexableText = $indexableText; 
  3325. public function getIndexableText() 
  3326. return $this->indexableText; 
  3327. public function setKind($kind) 
  3328. $this->kind = $kind; 
  3329. public function getKind() 
  3330. return $this->kind; 
  3331. public function setLabels(Google_Service_Drive_DriveFileLabels $labels) 
  3332. $this->labels = $labels; 
  3333. public function getLabels() 
  3334. return $this->labels; 
  3335. public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser) 
  3336. $this->lastModifyingUser = $lastModifyingUser; 
  3337. public function getLastModifyingUser() 
  3338. return $this->lastModifyingUser; 
  3339. public function setLastModifyingUserName($lastModifyingUserName) 
  3340. $this->lastModifyingUserName = $lastModifyingUserName; 
  3341. public function getLastModifyingUserName() 
  3342. return $this->lastModifyingUserName; 
  3343. public function setLastViewedByMeDate($lastViewedByMeDate) 
  3344. $this->lastViewedByMeDate = $lastViewedByMeDate; 
  3345. public function getLastViewedByMeDate() 
  3346. return $this->lastViewedByMeDate; 
  3347. public function setMarkedViewedByMeDate($markedViewedByMeDate) 
  3348. $this->markedViewedByMeDate = $markedViewedByMeDate; 
  3349. public function getMarkedViewedByMeDate() 
  3350. return $this->markedViewedByMeDate; 
  3351. public function setMd5Checksum($md5Checksum) 
  3352. $this->md5Checksum = $md5Checksum; 
  3353. public function getMd5Checksum() 
  3354. return $this->md5Checksum; 
  3355. public function setMimeType($mimeType) 
  3356. $this->mimeType = $mimeType; 
  3357. public function getMimeType() 
  3358. return $this->mimeType; 
  3359. public function setModifiedByMeDate($modifiedByMeDate) 
  3360. $this->modifiedByMeDate = $modifiedByMeDate; 
  3361. public function getModifiedByMeDate() 
  3362. return $this->modifiedByMeDate; 
  3363. public function setModifiedDate($modifiedDate) 
  3364. $this->modifiedDate = $modifiedDate; 
  3365. public function getModifiedDate() 
  3366. return $this->modifiedDate; 
  3367. public function setOpenWithLinks($openWithLinks) 
  3368. $this->openWithLinks = $openWithLinks; 
  3369. public function getOpenWithLinks() 
  3370. return $this->openWithLinks; 
  3371. public function setOriginalFilename($originalFilename) 
  3372. $this->originalFilename = $originalFilename; 
  3373. public function getOriginalFilename() 
  3374. return $this->originalFilename; 
  3375. public function setOwnerNames($ownerNames) 
  3376. $this->ownerNames = $ownerNames; 
  3377. public function getOwnerNames() 
  3378. return $this->ownerNames; 
  3379. public function setOwners($owners) 
  3380. $this->owners = $owners; 
  3381. public function getOwners() 
  3382. return $this->owners; 
  3383. public function setParents($parents) 
  3384. $this->parents = $parents; 
  3385. public function getParents() 
  3386. return $this->parents; 
  3387. public function setPermissions($permissions) 
  3388. $this->permissions = $permissions; 
  3389. public function getPermissions() 
  3390. return $this->permissions; 
  3391. public function setProperties($properties) 
  3392. $this->properties = $properties; 
  3393. public function getProperties() 
  3394. return $this->properties; 
  3395. public function setQuotaBytesUsed($quotaBytesUsed) 
  3396. $this->quotaBytesUsed = $quotaBytesUsed; 
  3397. public function getQuotaBytesUsed() 
  3398. return $this->quotaBytesUsed; 
  3399. public function setSelfLink($selfLink) 
  3400. $this->selfLink = $selfLink; 
  3401. public function getSelfLink() 
  3402. return $this->selfLink; 
  3403. public function setShared($shared) 
  3404. $this->shared = $shared; 
  3405. public function getShared() 
  3406. return $this->shared; 
  3407. public function setSharedWithMeDate($sharedWithMeDate) 
  3408. $this->sharedWithMeDate = $sharedWithMeDate; 
  3409. public function getSharedWithMeDate() 
  3410. return $this->sharedWithMeDate; 
  3411. public function setSharingUser(Google_Service_Drive_User $sharingUser) 
  3412. $this->sharingUser = $sharingUser; 
  3413. public function getSharingUser() 
  3414. return $this->sharingUser; 
  3415. public function setThumbnail(Google_Service_Drive_DriveFileThumbnail $thumbnail) 
  3416. $this->thumbnail = $thumbnail; 
  3417. public function getThumbnail() 
  3418. return $this->thumbnail; 
  3419. public function setThumbnailLink($thumbnailLink) 
  3420. $this->thumbnailLink = $thumbnailLink; 
  3421. public function getThumbnailLink() 
  3422. return $this->thumbnailLink; 
  3423. public function setTitle($title) 
  3424. $this->title = $title; 
  3425. public function getTitle() 
  3426. return $this->title; 
  3427. public function setUserPermission(Google_Service_Drive_Permission $userPermission) 
  3428. $this->userPermission = $userPermission; 
  3429. public function getUserPermission() 
  3430. return $this->userPermission; 
  3431. public function setVersion($version) 
  3432. $this->version = $version; 
  3433. public function getVersion() 
  3434. return $this->version; 
  3435. public function setVideoMediaMetadata(Google_Service_Drive_DriveFileVideoMediaMetadata $videoMediaMetadata) 
  3436. $this->videoMediaMetadata = $videoMediaMetadata; 
  3437. public function getVideoMediaMetadata() 
  3438. return $this->videoMediaMetadata; 
  3439. public function setWebContentLink($webContentLink) 
  3440. $this->webContentLink = $webContentLink; 
  3441. public function getWebContentLink() 
  3442. return $this->webContentLink; 
  3443. public function setWebViewLink($webViewLink) 
  3444. $this->webViewLink = $webViewLink; 
  3445. public function getWebViewLink() 
  3446. return $this->webViewLink; 
  3447. public function setWritersCanShare($writersCanShare) 
  3448. $this->writersCanShare = $writersCanShare; 
  3449. public function getWritersCanShare() 
  3450. return $this->writersCanShare; 
  3451.  
  3452. class Google_Service_Drive_DriveFileExportLinks extends Google_Model 
  3453.  
  3454. class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model 
  3455. protected $internal_gapi_mappings = array( 
  3456. ); 
  3457. public $aperture; 
  3458. public $cameraMake; 
  3459. public $cameraModel; 
  3460. public $colorSpace; 
  3461. public $date; 
  3462. public $exposureBias; 
  3463. public $exposureMode; 
  3464. public $exposureTime; 
  3465. public $flashUsed; 
  3466. public $focalLength; 
  3467. public $height; 
  3468. public $isoSpeed; 
  3469. public $lens; 
  3470. protected $locationType = 'Google_Service_Drive_DriveFileImageMediaMetadataLocation'; 
  3471. protected $locationDataType = ''; 
  3472. public $maxApertureValue; 
  3473. public $meteringMode; 
  3474. public $rotation; 
  3475. public $sensor; 
  3476. public $subjectDistance; 
  3477. public $whiteBalance; 
  3478. public $width; 
  3479.  
  3480.  
  3481. public function setAperture($aperture) 
  3482. $this->aperture = $aperture; 
  3483. public function getAperture() 
  3484. return $this->aperture; 
  3485. public function setCameraMake($cameraMake) 
  3486. $this->cameraMake = $cameraMake; 
  3487. public function getCameraMake() 
  3488. return $this->cameraMake; 
  3489. public function setCameraModel($cameraModel) 
  3490. $this->cameraModel = $cameraModel; 
  3491. public function getCameraModel() 
  3492. return $this->cameraModel; 
  3493. public function setColorSpace($colorSpace) 
  3494. $this->colorSpace = $colorSpace; 
  3495. public function getColorSpace() 
  3496. return $this->colorSpace; 
  3497. public function setDate($date) 
  3498. $this->date = $date; 
  3499. public function getDate() 
  3500. return $this->date; 
  3501. public function setExposureBias($exposureBias) 
  3502. $this->exposureBias = $exposureBias; 
  3503. public function getExposureBias() 
  3504. return $this->exposureBias; 
  3505. public function setExposureMode($exposureMode) 
  3506. $this->exposureMode = $exposureMode; 
  3507. public function getExposureMode() 
  3508. return $this->exposureMode; 
  3509. public function setExposureTime($exposureTime) 
  3510. $this->exposureTime = $exposureTime; 
  3511. public function getExposureTime() 
  3512. return $this->exposureTime; 
  3513. public function setFlashUsed($flashUsed) 
  3514. $this->flashUsed = $flashUsed; 
  3515. public function getFlashUsed() 
  3516. return $this->flashUsed; 
  3517. public function setFocalLength($focalLength) 
  3518. $this->focalLength = $focalLength; 
  3519. public function getFocalLength() 
  3520. return $this->focalLength; 
  3521. public function setHeight($height) 
  3522. $this->height = $height; 
  3523. public function getHeight() 
  3524. return $this->height; 
  3525. public function setIsoSpeed($isoSpeed) 
  3526. $this->isoSpeed = $isoSpeed; 
  3527. public function getIsoSpeed() 
  3528. return $this->isoSpeed; 
  3529. public function setLens($lens) 
  3530. $this->lens = $lens; 
  3531. public function getLens() 
  3532. return $this->lens; 
  3533. public function setLocation(Google_Service_Drive_DriveFileImageMediaMetadataLocation $location) 
  3534. $this->location = $location; 
  3535. public function getLocation() 
  3536. return $this->location; 
  3537. public function setMaxApertureValue($maxApertureValue) 
  3538. $this->maxApertureValue = $maxApertureValue; 
  3539. public function getMaxApertureValue() 
  3540. return $this->maxApertureValue; 
  3541. public function setMeteringMode($meteringMode) 
  3542. $this->meteringMode = $meteringMode; 
  3543. public function getMeteringMode() 
  3544. return $this->meteringMode; 
  3545. public function setRotation($rotation) 
  3546. $this->rotation = $rotation; 
  3547. public function getRotation() 
  3548. return $this->rotation; 
  3549. public function setSensor($sensor) 
  3550. $this->sensor = $sensor; 
  3551. public function getSensor() 
  3552. return $this->sensor; 
  3553. public function setSubjectDistance($subjectDistance) 
  3554. $this->subjectDistance = $subjectDistance; 
  3555. public function getSubjectDistance() 
  3556. return $this->subjectDistance; 
  3557. public function setWhiteBalance($whiteBalance) 
  3558. $this->whiteBalance = $whiteBalance; 
  3559. public function getWhiteBalance() 
  3560. return $this->whiteBalance; 
  3561. public function setWidth($width) 
  3562. $this->width = $width; 
  3563. public function getWidth() 
  3564. return $this->width; 
  3565.  
  3566. class Google_Service_Drive_DriveFileImageMediaMetadataLocation extends Google_Model 
  3567. protected $internal_gapi_mappings = array( 
  3568. ); 
  3569. public $altitude; 
  3570. public $latitude; 
  3571. public $longitude; 
  3572.  
  3573.  
  3574. public function setAltitude($altitude) 
  3575. $this->altitude = $altitude; 
  3576. public function getAltitude() 
  3577. return $this->altitude; 
  3578. public function setLatitude($latitude) 
  3579. $this->latitude = $latitude; 
  3580. public function getLatitude() 
  3581. return $this->latitude; 
  3582. public function setLongitude($longitude) 
  3583. $this->longitude = $longitude; 
  3584. public function getLongitude() 
  3585. return $this->longitude; 
  3586.  
  3587. class Google_Service_Drive_DriveFileIndexableText extends Google_Model 
  3588. protected $internal_gapi_mappings = array( 
  3589. ); 
  3590. public $text; 
  3591.  
  3592.  
  3593. public function setText($text) 
  3594. $this->text = $text; 
  3595. public function getText() 
  3596. return $this->text; 
  3597.  
  3598. class Google_Service_Drive_DriveFileLabels extends Google_Model 
  3599. protected $internal_gapi_mappings = array( 
  3600. ); 
  3601. public $hidden; 
  3602. public $restricted; 
  3603. public $starred; 
  3604. public $trashed; 
  3605. public $viewed; 
  3606.  
  3607.  
  3608. public function setHidden($hidden) 
  3609. $this->hidden = $hidden; 
  3610. public function getHidden() 
  3611. return $this->hidden; 
  3612. public function setRestricted($restricted) 
  3613. $this->restricted = $restricted; 
  3614. public function getRestricted() 
  3615. return $this->restricted; 
  3616. public function setStarred($starred) 
  3617. $this->starred = $starred; 
  3618. public function getStarred() 
  3619. return $this->starred; 
  3620. public function setTrashed($trashed) 
  3621. $this->trashed = $trashed; 
  3622. public function getTrashed() 
  3623. return $this->trashed; 
  3624. public function setViewed($viewed) 
  3625. $this->viewed = $viewed; 
  3626. public function getViewed() 
  3627. return $this->viewed; 
  3628.  
  3629. class Google_Service_Drive_DriveFileOpenWithLinks extends Google_Model 
  3630.  
  3631. class Google_Service_Drive_DriveFileThumbnail extends Google_Model 
  3632. protected $internal_gapi_mappings = array( 
  3633. ); 
  3634. public $image; 
  3635. public $mimeType; 
  3636.  
  3637.  
  3638. public function setImage($image) 
  3639. $this->image = $image; 
  3640. public function getImage() 
  3641. return $this->image; 
  3642. public function setMimeType($mimeType) 
  3643. $this->mimeType = $mimeType; 
  3644. public function getMimeType() 
  3645. return $this->mimeType; 
  3646.  
  3647. class Google_Service_Drive_DriveFileVideoMediaMetadata extends Google_Model 
  3648. protected $internal_gapi_mappings = array( 
  3649. ); 
  3650. public $durationMillis; 
  3651. public $height; 
  3652. public $width; 
  3653.  
  3654.  
  3655. public function setDurationMillis($durationMillis) 
  3656. $this->durationMillis = $durationMillis; 
  3657. public function getDurationMillis() 
  3658. return $this->durationMillis; 
  3659. public function setHeight($height) 
  3660. $this->height = $height; 
  3661. public function getHeight() 
  3662. return $this->height; 
  3663. public function setWidth($width) 
  3664. $this->width = $width; 
  3665. public function getWidth() 
  3666. return $this->width; 
  3667.  
  3668. class Google_Service_Drive_FileList extends Google_Collection 
  3669. protected $collection_key = 'items'; 
  3670. protected $internal_gapi_mappings = array( 
  3671. ); 
  3672. public $etag; 
  3673. protected $itemsType = 'Google_Service_Drive_DriveFile'; 
  3674. protected $itemsDataType = 'array'; 
  3675. public $kind; 
  3676. public $nextLink; 
  3677. public $nextPageToken; 
  3678. public $selfLink; 
  3679.  
  3680.  
  3681. public function setEtag($etag) 
  3682. $this->etag = $etag; 
  3683. public function getEtag() 
  3684. return $this->etag; 
  3685. public function setItems($items) 
  3686. $this->items = $items; 
  3687. public function getItems() 
  3688. return $this->items; 
  3689. public function setKind($kind) 
  3690. $this->kind = $kind; 
  3691. public function getKind() 
  3692. return $this->kind; 
  3693. public function setNextLink($nextLink) 
  3694. $this->nextLink = $nextLink; 
  3695. public function getNextLink() 
  3696. return $this->nextLink; 
  3697. public function setNextPageToken($nextPageToken) 
  3698. $this->nextPageToken = $nextPageToken; 
  3699. public function getNextPageToken() 
  3700. return $this->nextPageToken; 
  3701. public function setSelfLink($selfLink) 
  3702. $this->selfLink = $selfLink; 
  3703. public function getSelfLink() 
  3704. return $this->selfLink; 
  3705.  
  3706. class Google_Service_Drive_ParentList extends Google_Collection 
  3707. protected $collection_key = 'items'; 
  3708. protected $internal_gapi_mappings = array( 
  3709. ); 
  3710. public $etag; 
  3711. protected $itemsType = 'Google_Service_Drive_ParentReference'; 
  3712. protected $itemsDataType = 'array'; 
  3713. public $kind; 
  3714. public $selfLink; 
  3715.  
  3716.  
  3717. public function setEtag($etag) 
  3718. $this->etag = $etag; 
  3719. public function getEtag() 
  3720. return $this->etag; 
  3721. public function setItems($items) 
  3722. $this->items = $items; 
  3723. public function getItems() 
  3724. return $this->items; 
  3725. public function setKind($kind) 
  3726. $this->kind = $kind; 
  3727. public function getKind() 
  3728. return $this->kind; 
  3729. public function setSelfLink($selfLink) 
  3730. $this->selfLink = $selfLink; 
  3731. public function getSelfLink() 
  3732. return $this->selfLink; 
  3733.  
  3734. class Google_Service_Drive_ParentReference extends Google_Model 
  3735. protected $internal_gapi_mappings = array( 
  3736. ); 
  3737. public $id; 
  3738. public $isRoot; 
  3739. public $kind; 
  3740. public $parentLink; 
  3741. public $selfLink; 
  3742.  
  3743.  
  3744. public function setId($id) 
  3745. $this->id = $id; 
  3746. public function getId() 
  3747. return $this->id; 
  3748. public function setIsRoot($isRoot) 
  3749. $this->isRoot = $isRoot; 
  3750. public function getIsRoot() 
  3751. return $this->isRoot; 
  3752. public function setKind($kind) 
  3753. $this->kind = $kind; 
  3754. public function getKind() 
  3755. return $this->kind; 
  3756. public function setParentLink($parentLink) 
  3757. $this->parentLink = $parentLink; 
  3758. public function getParentLink() 
  3759. return $this->parentLink; 
  3760. public function setSelfLink($selfLink) 
  3761. $this->selfLink = $selfLink; 
  3762. public function getSelfLink() 
  3763. return $this->selfLink; 
  3764.  
  3765. class Google_Service_Drive_Permission extends Google_Collection 
  3766. protected $collection_key = 'additionalRoles'; 
  3767. protected $internal_gapi_mappings = array( 
  3768. ); 
  3769. public $additionalRoles; 
  3770. public $authKey; 
  3771. public $domain; 
  3772. public $emailAddress; 
  3773. public $etag; 
  3774. public $id; 
  3775. public $kind; 
  3776. public $name; 
  3777. public $photoLink; 
  3778. public $role; 
  3779. public $selfLink; 
  3780. public $type; 
  3781. public $value; 
  3782. public $withLink; 
  3783.  
  3784.  
  3785. public function setAdditionalRoles($additionalRoles) 
  3786. $this->additionalRoles = $additionalRoles; 
  3787. public function getAdditionalRoles() 
  3788. return $this->additionalRoles; 
  3789. public function setAuthKey($authKey) 
  3790. $this->authKey = $authKey; 
  3791. public function getAuthKey() 
  3792. return $this->authKey; 
  3793. public function setDomain($domain) 
  3794. $this->domain = $domain; 
  3795. public function getDomain() 
  3796. return $this->domain; 
  3797. public function setEmailAddress($emailAddress) 
  3798. $this->emailAddress = $emailAddress; 
  3799. public function getEmailAddress() 
  3800. return $this->emailAddress; 
  3801. public function setEtag($etag) 
  3802. $this->etag = $etag; 
  3803. public function getEtag() 
  3804. return $this->etag; 
  3805. public function setId($id) 
  3806. $this->id = $id; 
  3807. public function getId() 
  3808. return $this->id; 
  3809. public function setKind($kind) 
  3810. $this->kind = $kind; 
  3811. public function getKind() 
  3812. return $this->kind; 
  3813. public function setName($name) 
  3814. $this->name = $name; 
  3815. public function getName() 
  3816. return $this->name; 
  3817. public function setPhotoLink($photoLink) 
  3818. $this->photoLink = $photoLink; 
  3819. public function getPhotoLink() 
  3820. return $this->photoLink; 
  3821. public function setRole($role) 
  3822. $this->role = $role; 
  3823. public function getRole() 
  3824. return $this->role; 
  3825. public function setSelfLink($selfLink) 
  3826. $this->selfLink = $selfLink; 
  3827. public function getSelfLink() 
  3828. return $this->selfLink; 
  3829. public function setType($type) 
  3830. $this->type = $type; 
  3831. public function getType() 
  3832. return $this->type; 
  3833. public function setValue($value) 
  3834. $this->value = $value; 
  3835. public function getValue() 
  3836. return $this->value; 
  3837. public function setWithLink($withLink) 
  3838. $this->withLink = $withLink; 
  3839. public function getWithLink() 
  3840. return $this->withLink; 
  3841.  
  3842. class Google_Service_Drive_PermissionId extends Google_Model 
  3843. protected $internal_gapi_mappings = array( 
  3844. ); 
  3845. public $id; 
  3846. public $kind; 
  3847.  
  3848.  
  3849. public function setId($id) 
  3850. $this->id = $id; 
  3851. public function getId() 
  3852. return $this->id; 
  3853. public function setKind($kind) 
  3854. $this->kind = $kind; 
  3855. public function getKind() 
  3856. return $this->kind; 
  3857.  
  3858. class Google_Service_Drive_PermissionList extends Google_Collection 
  3859. protected $collection_key = 'items'; 
  3860. protected $internal_gapi_mappings = array( 
  3861. ); 
  3862. public $etag; 
  3863. protected $itemsType = 'Google_Service_Drive_Permission'; 
  3864. protected $itemsDataType = 'array'; 
  3865. public $kind; 
  3866. public $selfLink; 
  3867.  
  3868.  
  3869. public function setEtag($etag) 
  3870. $this->etag = $etag; 
  3871. public function getEtag() 
  3872. return $this->etag; 
  3873. public function setItems($items) 
  3874. $this->items = $items; 
  3875. public function getItems() 
  3876. return $this->items; 
  3877. public function setKind($kind) 
  3878. $this->kind = $kind; 
  3879. public function getKind() 
  3880. return $this->kind; 
  3881. public function setSelfLink($selfLink) 
  3882. $this->selfLink = $selfLink; 
  3883. public function getSelfLink() 
  3884. return $this->selfLink; 
  3885.  
  3886. class Google_Service_Drive_Property extends Google_Model 
  3887. protected $internal_gapi_mappings = array( 
  3888. ); 
  3889. public $etag; 
  3890. public $key; 
  3891. public $kind; 
  3892. public $selfLink; 
  3893. public $value; 
  3894. public $visibility; 
  3895.  
  3896.  
  3897. public function setEtag($etag) 
  3898. $this->etag = $etag; 
  3899. public function getEtag() 
  3900. return $this->etag; 
  3901. public function setKey($key) 
  3902. $this->key = $key; 
  3903. public function getKey() 
  3904. return $this->key; 
  3905. public function setKind($kind) 
  3906. $this->kind = $kind; 
  3907. public function getKind() 
  3908. return $this->kind; 
  3909. public function setSelfLink($selfLink) 
  3910. $this->selfLink = $selfLink; 
  3911. public function getSelfLink() 
  3912. return $this->selfLink; 
  3913. public function setValue($value) 
  3914. $this->value = $value; 
  3915. public function getValue() 
  3916. return $this->value; 
  3917. public function setVisibility($visibility) 
  3918. $this->visibility = $visibility; 
  3919. public function getVisibility() 
  3920. return $this->visibility; 
  3921.  
  3922. class Google_Service_Drive_PropertyList extends Google_Collection 
  3923. protected $collection_key = 'items'; 
  3924. protected $internal_gapi_mappings = array( 
  3925. ); 
  3926. public $etag; 
  3927. protected $itemsType = 'Google_Service_Drive_Property'; 
  3928. protected $itemsDataType = 'array'; 
  3929. public $kind; 
  3930. public $selfLink; 
  3931.  
  3932.  
  3933. public function setEtag($etag) 
  3934. $this->etag = $etag; 
  3935. public function getEtag() 
  3936. return $this->etag; 
  3937. public function setItems($items) 
  3938. $this->items = $items; 
  3939. public function getItems() 
  3940. return $this->items; 
  3941. public function setKind($kind) 
  3942. $this->kind = $kind; 
  3943. public function getKind() 
  3944. return $this->kind; 
  3945. public function setSelfLink($selfLink) 
  3946. $this->selfLink = $selfLink; 
  3947. public function getSelfLink() 
  3948. return $this->selfLink; 
  3949.  
  3950. class Google_Service_Drive_Revision extends Google_Model 
  3951. protected $internal_gapi_mappings = array( 
  3952. ); 
  3953. public $downloadUrl; 
  3954. public $etag; 
  3955. public $exportLinks; 
  3956. public $fileSize; 
  3957. public $id; 
  3958. public $kind; 
  3959. protected $lastModifyingUserType = 'Google_Service_Drive_User'; 
  3960. protected $lastModifyingUserDataType = ''; 
  3961. public $lastModifyingUserName; 
  3962. public $md5Checksum; 
  3963. public $mimeType; 
  3964. public $modifiedDate; 
  3965. public $originalFilename; 
  3966. public $pinned; 
  3967. public $publishAuto; 
  3968. public $published; 
  3969. public $publishedLink; 
  3970. public $publishedOutsideDomain; 
  3971. public $selfLink; 
  3972.  
  3973.  
  3974. public function setDownloadUrl($downloadUrl) 
  3975. $this->downloadUrl = $downloadUrl; 
  3976. public function getDownloadUrl() 
  3977. return $this->downloadUrl; 
  3978. public function setEtag($etag) 
  3979. $this->etag = $etag; 
  3980. public function getEtag() 
  3981. return $this->etag; 
  3982. public function setExportLinks($exportLinks) 
  3983. $this->exportLinks = $exportLinks; 
  3984. public function getExportLinks() 
  3985. return $this->exportLinks; 
  3986. public function setFileSize($fileSize) 
  3987. $this->fileSize = $fileSize; 
  3988. public function getFileSize() 
  3989. return $this->fileSize; 
  3990. public function setId($id) 
  3991. $this->id = $id; 
  3992. public function getId() 
  3993. return $this->id; 
  3994. public function setKind($kind) 
  3995. $this->kind = $kind; 
  3996. public function getKind() 
  3997. return $this->kind; 
  3998. public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser) 
  3999. $this->lastModifyingUser = $lastModifyingUser; 
  4000. public function getLastModifyingUser() 
  4001. return $this->lastModifyingUser; 
  4002. public function setLastModifyingUserName($lastModifyingUserName) 
  4003. $this->lastModifyingUserName = $lastModifyingUserName; 
  4004. public function getLastModifyingUserName() 
  4005. return $this->lastModifyingUserName; 
  4006. public function setMd5Checksum($md5Checksum) 
  4007. $this->md5Checksum = $md5Checksum; 
  4008. public function getMd5Checksum() 
  4009. return $this->md5Checksum; 
  4010. public function setMimeType($mimeType) 
  4011. $this->mimeType = $mimeType; 
  4012. public function getMimeType() 
  4013. return $this->mimeType; 
  4014. public function setModifiedDate($modifiedDate) 
  4015. $this->modifiedDate = $modifiedDate; 
  4016. public function getModifiedDate() 
  4017. return $this->modifiedDate; 
  4018. public function setOriginalFilename($originalFilename) 
  4019. $this->originalFilename = $originalFilename; 
  4020. public function getOriginalFilename() 
  4021. return $this->originalFilename; 
  4022. public function setPinned($pinned) 
  4023. $this->pinned = $pinned; 
  4024. public function getPinned() 
  4025. return $this->pinned; 
  4026. public function setPublishAuto($publishAuto) 
  4027. $this->publishAuto = $publishAuto; 
  4028. public function getPublishAuto() 
  4029. return $this->publishAuto; 
  4030. public function setPublished($published) 
  4031. $this->published = $published; 
  4032. public function getPublished() 
  4033. return $this->published; 
  4034. public function setPublishedLink($publishedLink) 
  4035. $this->publishedLink = $publishedLink; 
  4036. public function getPublishedLink() 
  4037. return $this->publishedLink; 
  4038. public function setPublishedOutsideDomain($publishedOutsideDomain) 
  4039. $this->publishedOutsideDomain = $publishedOutsideDomain; 
  4040. public function getPublishedOutsideDomain() 
  4041. return $this->publishedOutsideDomain; 
  4042. public function setSelfLink($selfLink) 
  4043. $this->selfLink = $selfLink; 
  4044. public function getSelfLink() 
  4045. return $this->selfLink; 
  4046.  
  4047. class Google_Service_Drive_RevisionExportLinks extends Google_Model 
  4048.  
  4049. class Google_Service_Drive_RevisionList extends Google_Collection 
  4050. protected $collection_key = 'items'; 
  4051. protected $internal_gapi_mappings = array( 
  4052. ); 
  4053. public $etag; 
  4054. protected $itemsType = 'Google_Service_Drive_Revision'; 
  4055. protected $itemsDataType = 'array'; 
  4056. public $kind; 
  4057. public $selfLink; 
  4058.  
  4059.  
  4060. public function setEtag($etag) 
  4061. $this->etag = $etag; 
  4062. public function getEtag() 
  4063. return $this->etag; 
  4064. public function setItems($items) 
  4065. $this->items = $items; 
  4066. public function getItems() 
  4067. return $this->items; 
  4068. public function setKind($kind) 
  4069. $this->kind = $kind; 
  4070. public function getKind() 
  4071. return $this->kind; 
  4072. public function setSelfLink($selfLink) 
  4073. $this->selfLink = $selfLink; 
  4074. public function getSelfLink() 
  4075. return $this->selfLink; 
  4076.  
  4077. class Google_Service_Drive_User extends Google_Model 
  4078. protected $internal_gapi_mappings = array( 
  4079. ); 
  4080. public $displayName; 
  4081. public $emailAddress; 
  4082. public $isAuthenticatedUser; 
  4083. public $kind; 
  4084. public $permissionId; 
  4085. protected $pictureType = 'Google_Service_Drive_UserPicture'; 
  4086. protected $pictureDataType = ''; 
  4087.  
  4088.  
  4089. public function setDisplayName($displayName) 
  4090. $this->displayName = $displayName; 
  4091. public function getDisplayName() 
  4092. return $this->displayName; 
  4093. public function setEmailAddress($emailAddress) 
  4094. $this->emailAddress = $emailAddress; 
  4095. public function getEmailAddress() 
  4096. return $this->emailAddress; 
  4097. public function setIsAuthenticatedUser($isAuthenticatedUser) 
  4098. $this->isAuthenticatedUser = $isAuthenticatedUser; 
  4099. public function getIsAuthenticatedUser() 
  4100. return $this->isAuthenticatedUser; 
  4101. public function setKind($kind) 
  4102. $this->kind = $kind; 
  4103. public function getKind() 
  4104. return $this->kind; 
  4105. public function setPermissionId($permissionId) 
  4106. $this->permissionId = $permissionId; 
  4107. public function getPermissionId() 
  4108. return $this->permissionId; 
  4109. public function setPicture(Google_Service_Drive_UserPicture $picture) 
  4110. $this->picture = $picture; 
  4111. public function getPicture() 
  4112. return $this->picture; 
  4113.  
  4114. class Google_Service_Drive_UserPicture extends Google_Model 
  4115. protected $internal_gapi_mappings = array( 
  4116. ); 
  4117. public $url; 
  4118.  
  4119.  
  4120. public function setUrl($url) 
  4121. $this->url = $url; 
  4122. public function getUrl() 
  4123. return $this->url; 
.