Google_Service_Drive

Service definition for Drive (v3).

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/Drive.php  
  1. class Google_Service_Drive extends Google_Service 
  2. /** View and manage the files in your Google Drive. */ 
  3. const DRIVE = 
  4. "https://www.googleapis.com/auth/drive"; 
  5. /** View and manage its own configuration data in your Google Drive. */ 
  6. const DRIVE_APPDATA = 
  7. "https://www.googleapis.com/auth/drive.appdata"; 
  8. /** View your Google Drive apps. */ 
  9. const DRIVE_APPS_READONLY = 
  10. "https://www.googleapis.com/auth/drive.apps.readonly"; 
  11. /** View and manage Google Drive files that you have opened or created with this app. */ 
  12. const DRIVE_FILE = 
  13. "https://www.googleapis.com/auth/drive.file"; 
  14. /** View metadata for files in your Google Drive. */ 
  15. const DRIVE_METADATA_READONLY = 
  16. "https://www.googleapis.com/auth/drive.metadata.readonly"; 
  17. /** View the files in your Google Drive. */ 
  18. const DRIVE_READONLY = 
  19. "https://www.googleapis.com/auth/drive.readonly"; 
  20. /** Modify your Google Apps Script scripts' behavior. */ 
  21. const DRIVE_SCRIPTS = 
  22. "https://www.googleapis.com/auth/drive.scripts"; 
  23.  
  24. public $about; 
  25. public $apps; 
  26. public $changes; 
  27. public $channels; 
  28. public $children; 
  29. public $comments; 
  30. public $files; 
  31. public $parents; 
  32. public $permissions; 
  33. public $properties; 
  34. public $realtime; 
  35. public $replies; 
  36. public $revisions; 
  37.  
  38.  
  39. /** 
  40. * Constructs the internal representation of the Drive service. 
  41. * @param Google_Client $client 
  42. */ 
  43. public function __construct(Google_Client $client) 
  44. parent::__construct($client); 
  45. $this->servicePath = 'drive/v2/'; 
  46. $this->version = 'v2'; 
  47. $this->serviceName = 'drive'; 
  48.  
  49. $this->about = new Google_Service_Drive_About_Resource( 
  50. $this,  
  51. $this->serviceName,  
  52. 'about',  
  53. array( 
  54. 'methods' => array( 
  55. 'get' => array( 
  56. 'path' => 'about',  
  57. 'httpMethod' => 'GET',  
  58. 'parameters' => array( 
  59. 'includeSubscribed' => array( 
  60. 'location' => 'query',  
  61. 'type' => 'boolean',  
  62. ),  
  63. 'maxChangeIdCount' => array( 
  64. 'location' => 'query',  
  65. 'type' => 'string',  
  66. ),  
  67. 'startChangeId' => array( 
  68. 'location' => 'query',  
  69. 'type' => 'string',  
  70. ),  
  71. ),  
  72. ),  
  73. ); 
  74. $this->apps = new Google_Service_Drive_Apps_Resource( 
  75. $this,  
  76. $this->serviceName,  
  77. 'apps',  
  78. array( 
  79. 'methods' => array( 
  80. 'get' => array( 
  81. 'path' => 'apps/{appId}',  
  82. 'httpMethod' => 'GET',  
  83. 'parameters' => array( 
  84. 'appId' => array( 
  85. 'location' => 'path',  
  86. 'type' => 'string',  
  87. 'required' => true,  
  88. ),  
  89. ),  
  90. ), 'list' => array( 
  91. 'path' => 'apps',  
  92. 'httpMethod' => 'GET',  
  93. 'parameters' => array( 
  94. 'languageCode' => array( 
  95. 'location' => 'query',  
  96. 'type' => 'string',  
  97. ),  
  98. 'appFilterExtensions' => array( 
  99. 'location' => 'query',  
  100. 'type' => 'string',  
  101. ),  
  102. 'appFilterMimeTypes' => array( 
  103. 'location' => 'query',  
  104. 'type' => 'string',  
  105. ),  
  106. ),  
  107. ),  
  108. ); 
  109. $this->changes = new Google_Service_Drive_Changes_Resource( 
  110. $this,  
  111. $this->serviceName,  
  112. 'changes',  
  113. array( 
  114. 'methods' => array( 
  115. 'get' => array( 
  116. 'path' => 'changes/{changeId}',  
  117. 'httpMethod' => 'GET',  
  118. 'parameters' => array( 
  119. 'changeId' => array( 
  120. 'location' => 'path',  
  121. 'type' => 'string',  
  122. 'required' => true,  
  123. ),  
  124. ),  
  125. ), 'list' => array( 
  126. 'path' => 'changes',  
  127. 'httpMethod' => 'GET',  
  128. 'parameters' => array( 
  129. 'includeSubscribed' => array( 
  130. 'location' => 'query',  
  131. 'type' => 'boolean',  
  132. ),  
  133. 'startChangeId' => array( 
  134. 'location' => 'query',  
  135. 'type' => 'string',  
  136. ),  
  137. 'includeDeleted' => array( 
  138. 'location' => 'query',  
  139. 'type' => 'boolean',  
  140. ),  
  141. 'maxResults' => array( 
  142. 'location' => 'query',  
  143. 'type' => 'integer',  
  144. ),  
  145. 'pageToken' => array( 
  146. 'location' => 'query',  
  147. 'type' => 'string',  
  148. ),  
  149. ),  
  150. ), 'watch' => array( 
  151. 'path' => 'changes/watch',  
  152. 'httpMethod' => 'POST',  
  153. 'parameters' => array( 
  154. 'includeSubscribed' => array( 
  155. 'location' => 'query',  
  156. 'type' => 'boolean',  
  157. ),  
  158. 'startChangeId' => array( 
  159. 'location' => 'query',  
  160. 'type' => 'string',  
  161. ),  
  162. 'includeDeleted' => array( 
  163. 'location' => 'query',  
  164. 'type' => 'boolean',  
  165. ),  
  166. 'maxResults' => array( 
  167. 'location' => 'query',  
  168. 'type' => 'integer',  
  169. ),  
  170. 'pageToken' => array( 
  171. 'location' => 'query',  
  172. 'type' => 'string',  
  173. ),  
  174. ),  
  175. ),  
  176. ); 
  177. $this->channels = new Google_Service_Drive_Channels_Resource( 
  178. $this,  
  179. $this->serviceName,  
  180. 'channels',  
  181. array( 
  182. 'methods' => array( 
  183. 'stop' => array( 
  184. 'path' => 'channels/stop',  
  185. 'httpMethod' => 'POST',  
  186. 'parameters' => array(),  
  187. ),  
  188. ); 
  189. $this->children = new Google_Service_Drive_Children_Resource( 
  190. $this,  
  191. $this->serviceName,  
  192. 'children',  
  193. array( 
  194. 'methods' => array( 
  195. 'delete' => array( 
  196. 'path' => 'files/{folderId}/children/{childId}',  
  197. 'httpMethod' => 'DELETE',  
  198. 'parameters' => array( 
  199. 'folderId' => array( 
  200. 'location' => 'path',  
  201. 'type' => 'string',  
  202. 'required' => true,  
  203. ),  
  204. 'childId' => array( 
  205. 'location' => 'path',  
  206. 'type' => 'string',  
  207. 'required' => true,  
  208. ),  
  209. ),  
  210. ), 'get' => array( 
  211. 'path' => 'files/{folderId}/children/{childId}',  
  212. 'httpMethod' => 'GET',  
  213. 'parameters' => array( 
  214. 'folderId' => array( 
  215. 'location' => 'path',  
  216. 'type' => 'string',  
  217. 'required' => true,  
  218. ),  
  219. 'childId' => array( 
  220. 'location' => 'path',  
  221. 'type' => 'string',  
  222. 'required' => true,  
  223. ),  
  224. ),  
  225. ), 'insert' => array( 
  226. 'path' => 'files/{folderId}/children',  
  227. 'httpMethod' => 'POST',  
  228. 'parameters' => array( 
  229. 'folderId' => array( 
  230. 'location' => 'path',  
  231. 'type' => 'string',  
  232. 'required' => true,  
  233. ),  
  234. ),  
  235. ), 'list' => array( 
  236. 'path' => 'files/{folderId}/children',  
  237. 'httpMethod' => 'GET',  
  238. 'parameters' => array( 
  239. 'folderId' => array( 
  240. 'location' => 'path',  
  241. 'type' => 'string',  
  242. 'required' => true,  
  243. ),  
  244. 'q' => array( 
  245. 'location' => 'query',  
  246. 'type' => 'string',  
  247. ),  
  248. 'pageToken' => array( 
  249. 'location' => 'query',  
  250. 'type' => 'string',  
  251. ),  
  252. 'maxResults' => array( 
  253. 'location' => 'query',  
  254. 'type' => 'integer',  
  255. ),  
  256. ),  
  257. ),  
  258. ); 
  259. $this->comments = new Google_Service_Drive_Comments_Resource( 
  260. $this,  
  261. $this->serviceName,  
  262. 'comments',  
  263. array( 
  264. 'methods' => array( 
  265. 'delete' => array( 
  266. 'path' => 'files/{fileId}/comments/{commentId}',  
  267. 'httpMethod' => 'DELETE',  
  268. 'parameters' => array( 
  269. 'fileId' => array( 
  270. 'location' => 'path',  
  271. 'type' => 'string',  
  272. 'required' => true,  
  273. ),  
  274. 'commentId' => array( 
  275. 'location' => 'path',  
  276. 'type' => 'string',  
  277. 'required' => true,  
  278. ),  
  279. ),  
  280. ), 'get' => array( 
  281. 'path' => 'files/{fileId}/comments/{commentId}',  
  282. 'httpMethod' => 'GET',  
  283. 'parameters' => array( 
  284. 'fileId' => array( 
  285. 'location' => 'path',  
  286. 'type' => 'string',  
  287. 'required' => true,  
  288. ),  
  289. 'commentId' => array( 
  290. 'location' => 'path',  
  291. 'type' => 'string',  
  292. 'required' => true,  
  293. ),  
  294. 'includeDeleted' => array( 
  295. 'location' => 'query',  
  296. 'type' => 'boolean',  
  297. ),  
  298. ),  
  299. ), 'insert' => array( 
  300. 'path' => 'files/{fileId}/comments',  
  301. 'httpMethod' => 'POST',  
  302. 'parameters' => array( 
  303. 'fileId' => array( 
  304. 'location' => 'path',  
  305. 'type' => 'string',  
  306. 'required' => true,  
  307. ),  
  308. ),  
  309. ), 'list' => array( 
  310. 'path' => 'files/{fileId}/comments',  
  311. 'httpMethod' => 'GET',  
  312. 'parameters' => array( 
  313. 'fileId' => array( 
  314. 'location' => 'path',  
  315. 'type' => 'string',  
  316. 'required' => true,  
  317. ),  
  318. 'pageToken' => array( 
  319. 'location' => 'query',  
  320. 'type' => 'string',  
  321. ),  
  322. 'updatedMin' => array( 
  323. 'location' => 'query',  
  324. 'type' => 'string',  
  325. ),  
  326. 'includeDeleted' => array( 
  327. 'location' => 'query',  
  328. 'type' => 'boolean',  
  329. ),  
  330. 'maxResults' => array( 
  331. 'location' => 'query',  
  332. 'type' => 'integer',  
  333. ),  
  334. ),  
  335. ), 'patch' => array( 
  336. 'path' => 'files/{fileId}/comments/{commentId}',  
  337. 'httpMethod' => 'PATCH',  
  338. 'parameters' => array( 
  339. 'fileId' => array( 
  340. 'location' => 'path',  
  341. 'type' => 'string',  
  342. 'required' => true,  
  343. ),  
  344. 'commentId' => array( 
  345. 'location' => 'path',  
  346. 'type' => 'string',  
  347. 'required' => true,  
  348. ),  
  349. ),  
  350. ), 'update' => array( 
  351. 'path' => 'files/{fileId}/comments/{commentId}',  
  352. 'httpMethod' => 'PUT',  
  353. 'parameters' => array( 
  354. 'fileId' => array( 
  355. 'location' => 'path',  
  356. 'type' => 'string',  
  357. 'required' => true,  
  358. ),  
  359. 'commentId' => array( 
  360. 'location' => 'path',  
  361. 'type' => 'string',  
  362. 'required' => true,  
  363. ),  
  364. ),  
  365. ),  
  366. ); 
  367. $this->files = new Google_Service_Drive_Files_Resource( 
  368. $this,  
  369. $this->serviceName,  
  370. 'files',  
  371. array( 
  372. 'methods' => array( 
  373. 'copy' => array( 
  374. 'path' => 'files/{fileId}/copy',  
  375. 'httpMethod' => 'POST',  
  376. 'parameters' => array( 
  377. 'fileId' => array( 
  378. 'location' => 'path',  
  379. 'type' => 'string',  
  380. 'required' => true,  
  381. ),  
  382. 'convert' => array( 
  383. 'location' => 'query',  
  384. 'type' => 'boolean',  
  385. ),  
  386. 'ocrLanguage' => array( 
  387. 'location' => 'query',  
  388. 'type' => 'string',  
  389. ),  
  390. 'visibility' => array( 
  391. 'location' => 'query',  
  392. 'type' => 'string',  
  393. ),  
  394. 'pinned' => array( 
  395. 'location' => 'query',  
  396. 'type' => 'boolean',  
  397. ),  
  398. 'ocr' => array( 
  399. 'location' => 'query',  
  400. 'type' => 'boolean',  
  401. ),  
  402. 'timedTextTrackName' => array( 
  403. 'location' => 'query',  
  404. 'type' => 'string',  
  405. ),  
  406. 'timedTextLanguage' => array( 
  407. 'location' => 'query',  
  408. 'type' => 'string',  
  409. ),  
  410. ),  
  411. ), 'delete' => array( 
  412. 'path' => 'files/{fileId}',  
  413. 'httpMethod' => 'DELETE',  
  414. 'parameters' => array( 
  415. 'fileId' => array( 
  416. 'location' => 'path',  
  417. 'type' => 'string',  
  418. 'required' => true,  
  419. ),  
  420. ),  
  421. ), 'emptyTrash' => array( 
  422. 'path' => 'files/trash',  
  423. 'httpMethod' => 'DELETE',  
  424. 'parameters' => array(),  
  425. ), 'get' => array( 
  426. 'path' => 'files/{fileId}',  
  427. 'httpMethod' => 'GET',  
  428. 'parameters' => array( 
  429. 'fileId' => array( 
  430. 'location' => 'path',  
  431. 'type' => 'string',  
  432. 'required' => true,  
  433. ),  
  434. 'acknowledgeAbuse' => array( 
  435. 'location' => 'query',  
  436. 'type' => 'boolean',  
  437. ),  
  438. 'updateViewedDate' => array( 
  439. 'location' => 'query',  
  440. 'type' => 'boolean',  
  441. ),  
  442. 'projection' => array( 
  443. 'location' => 'query',  
  444. 'type' => 'string',  
  445. ),  
  446. ),  
  447. ), 'insert' => array( 
  448. 'path' => 'files',  
  449. 'httpMethod' => 'POST',  
  450. 'parameters' => array( 
  451. 'convert' => array( 
  452. 'location' => 'query',  
  453. 'type' => 'boolean',  
  454. ),  
  455. 'useContentAsIndexableText' => array( 
  456. 'location' => 'query',  
  457. 'type' => 'boolean',  
  458. ),  
  459. 'ocrLanguage' => array( 
  460. 'location' => 'query',  
  461. 'type' => 'string',  
  462. ),  
  463. 'visibility' => array( 
  464. 'location' => 'query',  
  465. 'type' => 'string',  
  466. ),  
  467. 'pinned' => array( 
  468. 'location' => 'query',  
  469. 'type' => 'boolean',  
  470. ),  
  471. 'ocr' => array( 
  472. 'location' => 'query',  
  473. 'type' => 'boolean',  
  474. ),  
  475. 'timedTextTrackName' => array( 
  476. 'location' => 'query',  
  477. 'type' => 'string',  
  478. ),  
  479. 'timedTextLanguage' => array( 
  480. 'location' => 'query',  
  481. 'type' => 'string',  
  482. ),  
  483. ),  
  484. ), 'list' => array( 
  485. 'path' => 'files',  
  486. 'httpMethod' => 'GET',  
  487. 'parameters' => array( 
  488. 'q' => array( 
  489. 'location' => 'query',  
  490. 'type' => 'string',  
  491. ),  
  492. 'pageToken' => array( 
  493. 'location' => 'query',  
  494. 'type' => 'string',  
  495. ),  
  496. 'corpus' => array( 
  497. 'location' => 'query',  
  498. 'type' => 'string',  
  499. ),  
  500. 'projection' => array( 
  501. 'location' => 'query',  
  502. 'type' => 'string',  
  503. ),  
  504. 'maxResults' => array( 
  505. 'location' => 'query',  
  506. 'type' => 'integer',  
  507. ),  
  508. ),  
  509. ), 'patch' => array( 
  510. 'path' => 'files/{fileId}',  
  511. 'httpMethod' => 'PATCH',  
  512. 'parameters' => array( 
  513. 'fileId' => array( 
  514. 'location' => 'path',  
  515. 'type' => 'string',  
  516. 'required' => true,  
  517. ),  
  518. 'addParents' => array( 
  519. 'location' => 'query',  
  520. 'type' => 'string',  
  521. ),  
  522. 'updateViewedDate' => array( 
  523. 'location' => 'query',  
  524. 'type' => 'boolean',  
  525. ),  
  526. 'removeParents' => array( 
  527. 'location' => 'query',  
  528. 'type' => 'string',  
  529. ),  
  530. 'setModifiedDate' => array( 
  531. 'location' => 'query',  
  532. 'type' => 'boolean',  
  533. ),  
  534. 'convert' => array( 
  535. 'location' => 'query',  
  536. 'type' => 'boolean',  
  537. ),  
  538. 'useContentAsIndexableText' => array( 
  539. 'location' => 'query',  
  540. 'type' => 'boolean',  
  541. ),  
  542. 'ocrLanguage' => array( 
  543. 'location' => 'query',  
  544. 'type' => 'string',  
  545. ),  
  546. 'pinned' => array( 
  547. 'location' => 'query',  
  548. 'type' => 'boolean',  
  549. ),  
  550. 'newRevision' => array( 
  551. 'location' => 'query',  
  552. 'type' => 'boolean',  
  553. ),  
  554. 'ocr' => array( 
  555. 'location' => 'query',  
  556. 'type' => 'boolean',  
  557. ),  
  558. 'timedTextLanguage' => array( 
  559. 'location' => 'query',  
  560. 'type' => 'string',  
  561. ),  
  562. 'timedTextTrackName' => array( 
  563. 'location' => 'query',  
  564. 'type' => 'string',  
  565. ),  
  566. ),  
  567. ), 'touch' => array( 
  568. 'path' => 'files/{fileId}/touch',  
  569. 'httpMethod' => 'POST',  
  570. 'parameters' => array( 
  571. 'fileId' => array( 
  572. 'location' => 'path',  
  573. 'type' => 'string',  
  574. 'required' => true,  
  575. ),  
  576. ),  
  577. ), 'trash' => array( 
  578. 'path' => 'files/{fileId}/trash',  
  579. 'httpMethod' => 'POST',  
  580. 'parameters' => array( 
  581. 'fileId' => array( 
  582. 'location' => 'path',  
  583. 'type' => 'string',  
  584. 'required' => true,  
  585. ),  
  586. ),  
  587. ), 'untrash' => array( 
  588. 'path' => 'files/{fileId}/untrash',  
  589. 'httpMethod' => 'POST',  
  590. 'parameters' => array( 
  591. 'fileId' => array( 
  592. 'location' => 'path',  
  593. 'type' => 'string',  
  594. 'required' => true,  
  595. ),  
  596. ),  
  597. ), 'update' => array( 
  598. 'path' => 'files/{fileId}',  
  599. 'httpMethod' => 'PUT',  
  600. 'parameters' => array( 
  601. 'fileId' => array( 
  602. 'location' => 'path',  
  603. 'type' => 'string',  
  604. 'required' => true,  
  605. ),  
  606. 'addParents' => array( 
  607. 'location' => 'query',  
  608. 'type' => 'string',  
  609. ),  
  610. 'updateViewedDate' => array( 
  611. 'location' => 'query',  
  612. 'type' => 'boolean',  
  613. ),  
  614. 'removeParents' => array( 
  615. 'location' => 'query',  
  616. 'type' => 'string',  
  617. ),  
  618. 'setModifiedDate' => array( 
  619. 'location' => 'query',  
  620. 'type' => 'boolean',  
  621. ),  
  622. 'convert' => array( 
  623. 'location' => 'query',  
  624. 'type' => 'boolean',  
  625. ),  
  626. 'useContentAsIndexableText' => array( 
  627. 'location' => 'query',  
  628. 'type' => 'boolean',  
  629. ),  
  630. 'ocrLanguage' => array( 
  631. 'location' => 'query',  
  632. 'type' => 'string',  
  633. ),  
  634. 'pinned' => array( 
  635. 'location' => 'query',  
  636. 'type' => 'boolean',  
  637. ),  
  638. 'newRevision' => array( 
  639. 'location' => 'query',  
  640. 'type' => 'boolean',  
  641. ),  
  642. 'ocr' => array( 
  643. 'location' => 'query',  
  644. 'type' => 'boolean',  
  645. ),  
  646. 'timedTextLanguage' => array( 
  647. 'location' => 'query',  
  648. 'type' => 'string',  
  649. ),  
  650. 'timedTextTrackName' => array( 
  651. 'location' => 'query',  
  652. 'type' => 'string',  
  653. ),  
  654. ),  
  655. ), 'watch' => array( 
  656. 'path' => 'files/{fileId}/watch',  
  657. 'httpMethod' => 'POST',  
  658. 'parameters' => array( 
  659. 'fileId' => array( 
  660. 'location' => 'path',  
  661. 'type' => 'string',  
  662. 'required' => true,  
  663. ),  
  664. 'acknowledgeAbuse' => array( 
  665. 'location' => 'query',  
  666. 'type' => 'boolean',  
  667. ),  
  668. 'updateViewedDate' => array( 
  669. 'location' => 'query',  
  670. 'type' => 'boolean',  
  671. ),  
  672. 'projection' => array( 
  673. 'location' => 'query',  
  674. 'type' => 'string',  
  675. ),  
  676. ),  
  677. ),  
  678. ); 
  679. $this->parents = new Google_Service_Drive_Parents_Resource( 
  680. $this,  
  681. $this->serviceName,  
  682. 'parents',  
  683. array( 
  684. 'methods' => array( 
  685. 'delete' => array( 
  686. 'path' => 'files/{fileId}/parents/{parentId}',  
  687. 'httpMethod' => 'DELETE',  
  688. 'parameters' => array( 
  689. 'fileId' => array( 
  690. 'location' => 'path',  
  691. 'type' => 'string',  
  692. 'required' => true,  
  693. ),  
  694. 'parentId' => array( 
  695. 'location' => 'path',  
  696. 'type' => 'string',  
  697. 'required' => true,  
  698. ),  
  699. ),  
  700. ), 'get' => array( 
  701. 'path' => 'files/{fileId}/parents/{parentId}',  
  702. 'httpMethod' => 'GET',  
  703. 'parameters' => array( 
  704. 'fileId' => array( 
  705. 'location' => 'path',  
  706. 'type' => 'string',  
  707. 'required' => true,  
  708. ),  
  709. 'parentId' => array( 
  710. 'location' => 'path',  
  711. 'type' => 'string',  
  712. 'required' => true,  
  713. ),  
  714. ),  
  715. ), 'insert' => array( 
  716. 'path' => 'files/{fileId}/parents',  
  717. 'httpMethod' => 'POST',  
  718. 'parameters' => array( 
  719. 'fileId' => array( 
  720. 'location' => 'path',  
  721. 'type' => 'string',  
  722. 'required' => true,  
  723. ),  
  724. ),  
  725. ), 'list' => array( 
  726. 'path' => 'files/{fileId}/parents',  
  727. 'httpMethod' => 'GET',  
  728. 'parameters' => array( 
  729. 'fileId' => array( 
  730. 'location' => 'path',  
  731. 'type' => 'string',  
  732. 'required' => true,  
  733. ),  
  734. ),  
  735. ),  
  736. ); 
  737. $this->permissions = new Google_Service_Drive_Permissions_Resource( 
  738. $this,  
  739. $this->serviceName,  
  740. 'permissions',  
  741. array( 
  742. 'methods' => array( 
  743. 'delete' => array( 
  744. 'path' => 'files/{fileId}/permissions/{permissionId}',  
  745. 'httpMethod' => 'DELETE',  
  746. 'parameters' => array( 
  747. 'fileId' => array( 
  748. 'location' => 'path',  
  749. 'type' => 'string',  
  750. 'required' => true,  
  751. ),  
  752. 'permissionId' => array( 
  753. 'location' => 'path',  
  754. 'type' => 'string',  
  755. 'required' => true,  
  756. ),  
  757. ),  
  758. ), 'get' => array( 
  759. 'path' => 'files/{fileId}/permissions/{permissionId}',  
  760. 'httpMethod' => 'GET',  
  761. 'parameters' => array( 
  762. 'fileId' => array( 
  763. 'location' => 'path',  
  764. 'type' => 'string',  
  765. 'required' => true,  
  766. ),  
  767. 'permissionId' => array( 
  768. 'location' => 'path',  
  769. 'type' => 'string',  
  770. 'required' => true,  
  771. ),  
  772. ),  
  773. ), 'getIdForEmail' => array( 
  774. 'path' => 'permissionIds/{email}',  
  775. 'httpMethod' => 'GET',  
  776. 'parameters' => array( 
  777. 'email' => array( 
  778. 'location' => 'path',  
  779. 'type' => 'string',  
  780. 'required' => true,  
  781. ),  
  782. ),  
  783. ), 'insert' => array( 
  784. 'path' => 'files/{fileId}/permissions',  
  785. 'httpMethod' => 'POST',  
  786. 'parameters' => array( 
  787. 'fileId' => array( 
  788. 'location' => 'path',  
  789. 'type' => 'string',  
  790. 'required' => true,  
  791. ),  
  792. 'emailMessage' => array( 
  793. 'location' => 'query',  
  794. 'type' => 'string',  
  795. ),  
  796. 'sendNotificationEmails' => array( 
  797. 'location' => 'query',  
  798. 'type' => 'boolean',  
  799. ),  
  800. ),  
  801. ), 'list' => array( 
  802. 'path' => 'files/{fileId}/permissions',  
  803. 'httpMethod' => 'GET',  
  804. 'parameters' => array( 
  805. 'fileId' => array( 
  806. 'location' => 'path',  
  807. 'type' => 'string',  
  808. 'required' => true,  
  809. ),  
  810. ),  
  811. ), 'patch' => array( 
  812. 'path' => 'files/{fileId}/permissions/{permissionId}',  
  813. 'httpMethod' => 'PATCH',  
  814. 'parameters' => array( 
  815. 'fileId' => array( 
  816. 'location' => 'path',  
  817. 'type' => 'string',  
  818. 'required' => true,  
  819. ),  
  820. 'permissionId' => array( 
  821. 'location' => 'path',  
  822. 'type' => 'string',  
  823. 'required' => true,  
  824. ),  
  825. 'transferOwnership' => array( 
  826. 'location' => 'query',  
  827. 'type' => 'boolean',  
  828. ),  
  829. ),  
  830. ), 'update' => array( 
  831. 'path' => 'files/{fileId}/permissions/{permissionId}',  
  832. 'httpMethod' => 'PUT',  
  833. 'parameters' => array( 
  834. 'fileId' => array( 
  835. 'location' => 'path',  
  836. 'type' => 'string',  
  837. 'required' => true,  
  838. ),  
  839. 'permissionId' => array( 
  840. 'location' => 'path',  
  841. 'type' => 'string',  
  842. 'required' => true,  
  843. ),  
  844. 'transferOwnership' => array( 
  845. 'location' => 'query',  
  846. 'type' => 'boolean',  
  847. ),  
  848. ),  
  849. ),  
  850. ); 
  851. $this->properties = new Google_Service_Drive_Properties_Resource( 
  852. $this,  
  853. $this->serviceName,  
  854. 'properties',  
  855. array( 
  856. 'methods' => array( 
  857. 'delete' => array( 
  858. 'path' => 'files/{fileId}/properties/{propertyKey}',  
  859. 'httpMethod' => 'DELETE',  
  860. 'parameters' => array( 
  861. 'fileId' => array( 
  862. 'location' => 'path',  
  863. 'type' => 'string',  
  864. 'required' => true,  
  865. ),  
  866. 'propertyKey' => array( 
  867. 'location' => 'path',  
  868. 'type' => 'string',  
  869. 'required' => true,  
  870. ),  
  871. 'visibility' => array( 
  872. 'location' => 'query',  
  873. 'type' => 'string',  
  874. ),  
  875. ),  
  876. ), 'get' => array( 
  877. 'path' => 'files/{fileId}/properties/{propertyKey}',  
  878. 'httpMethod' => 'GET',  
  879. 'parameters' => array( 
  880. 'fileId' => array( 
  881. 'location' => 'path',  
  882. 'type' => 'string',  
  883. 'required' => true,  
  884. ),  
  885. 'propertyKey' => array( 
  886. 'location' => 'path',  
  887. 'type' => 'string',  
  888. 'required' => true,  
  889. ),  
  890. 'visibility' => array( 
  891. 'location' => 'query',  
  892. 'type' => 'string',  
  893. ),  
  894. ),  
  895. ), 'insert' => array( 
  896. 'path' => 'files/{fileId}/properties',  
  897. 'httpMethod' => 'POST',  
  898. 'parameters' => array( 
  899. 'fileId' => array( 
  900. 'location' => 'path',  
  901. 'type' => 'string',  
  902. 'required' => true,  
  903. ),  
  904. ),  
  905. ), 'list' => array( 
  906. 'path' => 'files/{fileId}/properties',  
  907. 'httpMethod' => 'GET',  
  908. 'parameters' => array( 
  909. 'fileId' => array( 
  910. 'location' => 'path',  
  911. 'type' => 'string',  
  912. 'required' => true,  
  913. ),  
  914. ),  
  915. ), 'patch' => array( 
  916. 'path' => 'files/{fileId}/properties/{propertyKey}',  
  917. 'httpMethod' => 'PATCH',  
  918. 'parameters' => array( 
  919. 'fileId' => array( 
  920. 'location' => 'path',  
  921. 'type' => 'string',  
  922. 'required' => true,  
  923. ),  
  924. 'propertyKey' => array( 
  925. 'location' => 'path',  
  926. 'type' => 'string',  
  927. 'required' => true,  
  928. ),  
  929. 'visibility' => array( 
  930. 'location' => 'query',  
  931. 'type' => 'string',  
  932. ),  
  933. ),  
  934. ), 'update' => array( 
  935. 'path' => 'files/{fileId}/properties/{propertyKey}',  
  936. 'httpMethod' => 'PUT',  
  937. 'parameters' => array( 
  938. 'fileId' => array( 
  939. 'location' => 'path',  
  940. 'type' => 'string',  
  941. 'required' => true,  
  942. ),  
  943. 'propertyKey' => array( 
  944. 'location' => 'path',  
  945. 'type' => 'string',  
  946. 'required' => true,  
  947. ),  
  948. 'visibility' => array( 
  949. 'location' => 'query',  
  950. 'type' => 'string',  
  951. ),  
  952. ),  
  953. ),  
  954. ); 
  955. $this->realtime = new Google_Service_Drive_Realtime_Resource( 
  956. $this,  
  957. $this->serviceName,  
  958. 'realtime',  
  959. array( 
  960. 'methods' => array( 
  961. 'get' => array( 
  962. 'path' => 'files/{fileId}/realtime',  
  963. 'httpMethod' => 'GET',  
  964. 'parameters' => array( 
  965. 'fileId' => array( 
  966. 'location' => 'path',  
  967. 'type' => 'string',  
  968. 'required' => true,  
  969. ),  
  970. 'revision' => array( 
  971. 'location' => 'query',  
  972. 'type' => 'integer',  
  973. ),  
  974. ),  
  975. ), 'update' => array( 
  976. 'path' => 'files/{fileId}/realtime',  
  977. 'httpMethod' => 'PUT',  
  978. 'parameters' => array( 
  979. 'fileId' => array( 
  980. 'location' => 'path',  
  981. 'type' => 'string',  
  982. 'required' => true,  
  983. ),  
  984. 'baseRevision' => array( 
  985. 'location' => 'query',  
  986. 'type' => 'string',  
  987. ),  
  988. ),  
  989. ),  
  990. ); 
  991. $this->replies = new Google_Service_Drive_Replies_Resource( 
  992. $this,  
  993. $this->serviceName,  
  994. 'replies',  
  995. array( 
  996. 'methods' => array( 
  997. 'delete' => array( 
  998. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',  
  999. 'httpMethod' => 'DELETE',  
  1000. 'parameters' => array( 
  1001. 'fileId' => array( 
  1002. 'location' => 'path',  
  1003. 'type' => 'string',  
  1004. 'required' => true,  
  1005. ),  
  1006. 'commentId' => array( 
  1007. 'location' => 'path',  
  1008. 'type' => 'string',  
  1009. 'required' => true,  
  1010. ),  
  1011. 'replyId' => array( 
  1012. 'location' => 'path',  
  1013. 'type' => 'string',  
  1014. 'required' => true,  
  1015. ),  
  1016. ),  
  1017. ), 'get' => array( 
  1018. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',  
  1019. 'httpMethod' => 'GET',  
  1020. 'parameters' => array( 
  1021. 'fileId' => array( 
  1022. 'location' => 'path',  
  1023. 'type' => 'string',  
  1024. 'required' => true,  
  1025. ),  
  1026. 'commentId' => array( 
  1027. 'location' => 'path',  
  1028. 'type' => 'string',  
  1029. 'required' => true,  
  1030. ),  
  1031. 'replyId' => array( 
  1032. 'location' => 'path',  
  1033. 'type' => 'string',  
  1034. 'required' => true,  
  1035. ),  
  1036. 'includeDeleted' => array( 
  1037. 'location' => 'query',  
  1038. 'type' => 'boolean',  
  1039. ),  
  1040. ),  
  1041. ), 'insert' => array( 
  1042. 'path' => 'files/{fileId}/comments/{commentId}/replies',  
  1043. 'httpMethod' => 'POST',  
  1044. 'parameters' => array( 
  1045. 'fileId' => array( 
  1046. 'location' => 'path',  
  1047. 'type' => 'string',  
  1048. 'required' => true,  
  1049. ),  
  1050. 'commentId' => array( 
  1051. 'location' => 'path',  
  1052. 'type' => 'string',  
  1053. 'required' => true,  
  1054. ),  
  1055. ),  
  1056. ), 'list' => array( 
  1057. 'path' => 'files/{fileId}/comments/{commentId}/replies',  
  1058. 'httpMethod' => 'GET',  
  1059. 'parameters' => array( 
  1060. 'fileId' => array( 
  1061. 'location' => 'path',  
  1062. 'type' => 'string',  
  1063. 'required' => true,  
  1064. ),  
  1065. 'commentId' => array( 
  1066. 'location' => 'path',  
  1067. 'type' => 'string',  
  1068. 'required' => true,  
  1069. ),  
  1070. 'pageToken' => array( 
  1071. 'location' => 'query',  
  1072. 'type' => 'string',  
  1073. ),  
  1074. 'includeDeleted' => array( 
  1075. 'location' => 'query',  
  1076. 'type' => 'boolean',  
  1077. ),  
  1078. 'maxResults' => array( 
  1079. 'location' => 'query',  
  1080. 'type' => 'integer',  
  1081. ),  
  1082. ),  
  1083. ), 'patch' => array( 
  1084. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',  
  1085. 'httpMethod' => 'PATCH',  
  1086. 'parameters' => array( 
  1087. 'fileId' => array( 
  1088. 'location' => 'path',  
  1089. 'type' => 'string',  
  1090. 'required' => true,  
  1091. ),  
  1092. 'commentId' => array( 
  1093. 'location' => 'path',  
  1094. 'type' => 'string',  
  1095. 'required' => true,  
  1096. ),  
  1097. 'replyId' => array( 
  1098. 'location' => 'path',  
  1099. 'type' => 'string',  
  1100. 'required' => true,  
  1101. ),  
  1102. ),  
  1103. ), 'update' => array( 
  1104. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',  
  1105. 'httpMethod' => 'PUT',  
  1106. 'parameters' => array( 
  1107. 'fileId' => array( 
  1108. 'location' => 'path',  
  1109. 'type' => 'string',  
  1110. 'required' => true,  
  1111. ),  
  1112. 'commentId' => array( 
  1113. 'location' => 'path',  
  1114. 'type' => 'string',  
  1115. 'required' => true,  
  1116. ),  
  1117. 'replyId' => array( 
  1118. 'location' => 'path',  
  1119. 'type' => 'string',  
  1120. 'required' => true,  
  1121. ),  
  1122. ),  
  1123. ),  
  1124. ); 
  1125. $this->revisions = new Google_Service_Drive_Revisions_Resource( 
  1126. $this,  
  1127. $this->serviceName,  
  1128. 'revisions',  
  1129. array( 
  1130. 'methods' => array( 
  1131. 'delete' => array( 
  1132. 'path' => 'files/{fileId}/revisions/{revisionId}',  
  1133. 'httpMethod' => 'DELETE',  
  1134. 'parameters' => array( 
  1135. 'fileId' => array( 
  1136. 'location' => 'path',  
  1137. 'type' => 'string',  
  1138. 'required' => true,  
  1139. ),  
  1140. 'revisionId' => array( 
  1141. 'location' => 'path',  
  1142. 'type' => 'string',  
  1143. 'required' => true,  
  1144. ),  
  1145. ),  
  1146. ), 'get' => array( 
  1147. 'path' => 'files/{fileId}/revisions/{revisionId}',  
  1148. 'httpMethod' => 'GET',  
  1149. 'parameters' => array( 
  1150. 'fileId' => array( 
  1151. 'location' => 'path',  
  1152. 'type' => 'string',  
  1153. 'required' => true,  
  1154. ),  
  1155. 'revisionId' => array( 
  1156. 'location' => 'path',  
  1157. 'type' => 'string',  
  1158. 'required' => true,  
  1159. ),  
  1160. ),  
  1161. ), 'list' => array( 
  1162. 'path' => 'files/{fileId}/revisions',  
  1163. 'httpMethod' => 'GET',  
  1164. 'parameters' => array( 
  1165. 'fileId' => array( 
  1166. 'location' => 'path',  
  1167. 'type' => 'string',  
  1168. 'required' => true,  
  1169. ),  
  1170. ),  
  1171. ), 'patch' => array( 
  1172. 'path' => 'files/{fileId}/revisions/{revisionId}',  
  1173. 'httpMethod' => 'PATCH',  
  1174. 'parameters' => array( 
  1175. 'fileId' => array( 
  1176. 'location' => 'path',  
  1177. 'type' => 'string',  
  1178. 'required' => true,  
  1179. ),  
  1180. 'revisionId' => array( 
  1181. 'location' => 'path',  
  1182. 'type' => 'string',  
  1183. 'required' => true,  
  1184. ),  
  1185. ),  
  1186. ), 'update' => array( 
  1187. 'path' => 'files/{fileId}/revisions/{revisionId}',  
  1188. 'httpMethod' => 'PUT',  
  1189. 'parameters' => array( 
  1190. 'fileId' => array( 
  1191. 'location' => 'path',  
  1192. 'type' => 'string',  
  1193. 'required' => true,  
  1194. ),  
  1195. 'revisionId' => array( 
  1196. 'location' => 'path',  
  1197. 'type' => 'string',  
  1198. 'required' => true,  
  1199. ),  
  1200. ),  
  1201. ),  
  1202. );