Drive.php 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488
  1. <?php
  2. /*
  3. * Copyright 2014 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. namespace Google\Service;
  18. use Google\Client;
  19. /**
  20. * Service definition for Drive (v3).
  21. *
  22. * <p>
  23. * The Google Drive API allows clients to access resources from Google Drive.</p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://developers.google.com/workspace/drive/" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class Drive extends \Google\Service
  33. {
  34. /** See, edit, create, and delete all of your Google Drive files. */
  35. const DRIVE =
  36. "https://www.googleapis.com/auth/drive";
  37. /** See, create, and delete its own configuration data in your Google Drive. */
  38. const DRIVE_APPDATA =
  39. "https://www.googleapis.com/auth/drive.appdata";
  40. /** View your Google Drive apps. */
  41. const DRIVE_APPS_READONLY =
  42. "https://www.googleapis.com/auth/drive.apps.readonly";
  43. /** See, edit, create, and delete only the specific Google Drive files you use with this app. */
  44. const DRIVE_FILE =
  45. "https://www.googleapis.com/auth/drive.file";
  46. /** See and download your Google Drive files that were created or edited by Google Meet.. */
  47. const DRIVE_MEET_READONLY =
  48. "https://www.googleapis.com/auth/drive.meet.readonly";
  49. /** View and manage metadata of files in your Google Drive. */
  50. const DRIVE_METADATA =
  51. "https://www.googleapis.com/auth/drive.metadata";
  52. /** See information about your Google Drive files. */
  53. const DRIVE_METADATA_READONLY =
  54. "https://www.googleapis.com/auth/drive.metadata.readonly";
  55. /** View the photos, videos and albums in your Google Photos. */
  56. const DRIVE_PHOTOS_READONLY =
  57. "https://www.googleapis.com/auth/drive.photos.readonly";
  58. /** See and download all your Google Drive files. */
  59. const DRIVE_READONLY =
  60. "https://www.googleapis.com/auth/drive.readonly";
  61. /** Modify your Google Apps Script scripts' behavior. */
  62. const DRIVE_SCRIPTS =
  63. "https://www.googleapis.com/auth/drive.scripts";
  64. public $about;
  65. public $accessproposals;
  66. public $approvals;
  67. public $apps;
  68. public $changes;
  69. public $channels;
  70. public $comments;
  71. public $drives;
  72. public $files;
  73. public $operations;
  74. public $permissions;
  75. public $replies;
  76. public $revisions;
  77. public $teamdrives;
  78. public $rootUrlTemplate;
  79. /**
  80. * Constructs the internal representation of the Drive service.
  81. *
  82. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  83. * config array to pass to a new Client instance.
  84. * @param string $rootUrl The root URL used for requests to the service.
  85. */
  86. public function __construct($clientOrConfig = [], $rootUrl = null)
  87. {
  88. parent::__construct($clientOrConfig);
  89. $this->rootUrl = $rootUrl ?: 'https://www.googleapis.com/';
  90. $this->rootUrlTemplate = $rootUrl ?: 'https://www.UNIVERSE_DOMAIN/';
  91. $this->servicePath = 'drive/v3/';
  92. $this->batchPath = 'batch/drive/v3';
  93. $this->version = 'v3';
  94. $this->serviceName = 'drive';
  95. $this->about = new Drive\Resource\About(
  96. $this,
  97. $this->serviceName,
  98. 'about',
  99. [
  100. 'methods' => [
  101. 'get' => [
  102. 'path' => 'about',
  103. 'httpMethod' => 'GET',
  104. 'parameters' => [],
  105. ],
  106. ]
  107. ]
  108. );
  109. $this->accessproposals = new Drive\Resource\Accessproposals(
  110. $this,
  111. $this->serviceName,
  112. 'accessproposals',
  113. [
  114. 'methods' => [
  115. 'get' => [
  116. 'path' => 'files/{fileId}/accessproposals/{proposalId}',
  117. 'httpMethod' => 'GET',
  118. 'parameters' => [
  119. 'fileId' => [
  120. 'location' => 'path',
  121. 'type' => 'string',
  122. 'required' => true,
  123. ],
  124. 'proposalId' => [
  125. 'location' => 'path',
  126. 'type' => 'string',
  127. 'required' => true,
  128. ],
  129. ],
  130. ],'list' => [
  131. 'path' => 'files/{fileId}/accessproposals',
  132. 'httpMethod' => 'GET',
  133. 'parameters' => [
  134. 'fileId' => [
  135. 'location' => 'path',
  136. 'type' => 'string',
  137. 'required' => true,
  138. ],
  139. 'pageSize' => [
  140. 'location' => 'query',
  141. 'type' => 'integer',
  142. ],
  143. 'pageToken' => [
  144. 'location' => 'query',
  145. 'type' => 'string',
  146. ],
  147. ],
  148. ],'resolve' => [
  149. 'path' => 'files/{fileId}/accessproposals/{proposalId}:resolve',
  150. 'httpMethod' => 'POST',
  151. 'parameters' => [
  152. 'fileId' => [
  153. 'location' => 'path',
  154. 'type' => 'string',
  155. 'required' => true,
  156. ],
  157. 'proposalId' => [
  158. 'location' => 'path',
  159. 'type' => 'string',
  160. 'required' => true,
  161. ],
  162. ],
  163. ],
  164. ]
  165. ]
  166. );
  167. $this->approvals = new Drive\Resource\Approvals(
  168. $this,
  169. $this->serviceName,
  170. 'approvals',
  171. [
  172. 'methods' => [
  173. 'get' => [
  174. 'path' => 'files/{fileId}/approvals/{approvalId}',
  175. 'httpMethod' => 'GET',
  176. 'parameters' => [
  177. 'fileId' => [
  178. 'location' => 'path',
  179. 'type' => 'string',
  180. 'required' => true,
  181. ],
  182. 'approvalId' => [
  183. 'location' => 'path',
  184. 'type' => 'string',
  185. 'required' => true,
  186. ],
  187. ],
  188. ],'list' => [
  189. 'path' => 'files/{fileId}/approvals',
  190. 'httpMethod' => 'GET',
  191. 'parameters' => [
  192. 'fileId' => [
  193. 'location' => 'path',
  194. 'type' => 'string',
  195. 'required' => true,
  196. ],
  197. 'pageSize' => [
  198. 'location' => 'query',
  199. 'type' => 'integer',
  200. ],
  201. 'pageToken' => [
  202. 'location' => 'query',
  203. 'type' => 'string',
  204. ],
  205. ],
  206. ],
  207. ]
  208. ]
  209. );
  210. $this->apps = new Drive\Resource\Apps(
  211. $this,
  212. $this->serviceName,
  213. 'apps',
  214. [
  215. 'methods' => [
  216. 'get' => [
  217. 'path' => 'apps/{appId}',
  218. 'httpMethod' => 'GET',
  219. 'parameters' => [
  220. 'appId' => [
  221. 'location' => 'path',
  222. 'type' => 'string',
  223. 'required' => true,
  224. ],
  225. ],
  226. ],'list' => [
  227. 'path' => 'apps',
  228. 'httpMethod' => 'GET',
  229. 'parameters' => [
  230. 'appFilterExtensions' => [
  231. 'location' => 'query',
  232. 'type' => 'string',
  233. ],
  234. 'appFilterMimeTypes' => [
  235. 'location' => 'query',
  236. 'type' => 'string',
  237. ],
  238. 'languageCode' => [
  239. 'location' => 'query',
  240. 'type' => 'string',
  241. ],
  242. ],
  243. ],
  244. ]
  245. ]
  246. );
  247. $this->changes = new Drive\Resource\Changes(
  248. $this,
  249. $this->serviceName,
  250. 'changes',
  251. [
  252. 'methods' => [
  253. 'getStartPageToken' => [
  254. 'path' => 'changes/startPageToken',
  255. 'httpMethod' => 'GET',
  256. 'parameters' => [
  257. 'driveId' => [
  258. 'location' => 'query',
  259. 'type' => 'string',
  260. ],
  261. 'supportsAllDrives' => [
  262. 'location' => 'query',
  263. 'type' => 'boolean',
  264. ],
  265. 'supportsTeamDrives' => [
  266. 'location' => 'query',
  267. 'type' => 'boolean',
  268. ],
  269. 'teamDriveId' => [
  270. 'location' => 'query',
  271. 'type' => 'string',
  272. ],
  273. ],
  274. ],'list' => [
  275. 'path' => 'changes',
  276. 'httpMethod' => 'GET',
  277. 'parameters' => [
  278. 'pageToken' => [
  279. 'location' => 'query',
  280. 'type' => 'string',
  281. 'required' => true,
  282. ],
  283. 'driveId' => [
  284. 'location' => 'query',
  285. 'type' => 'string',
  286. ],
  287. 'includeCorpusRemovals' => [
  288. 'location' => 'query',
  289. 'type' => 'boolean',
  290. ],
  291. 'includeItemsFromAllDrives' => [
  292. 'location' => 'query',
  293. 'type' => 'boolean',
  294. ],
  295. 'includeLabels' => [
  296. 'location' => 'query',
  297. 'type' => 'string',
  298. ],
  299. 'includePermissionsForView' => [
  300. 'location' => 'query',
  301. 'type' => 'string',
  302. ],
  303. 'includeRemoved' => [
  304. 'location' => 'query',
  305. 'type' => 'boolean',
  306. ],
  307. 'includeTeamDriveItems' => [
  308. 'location' => 'query',
  309. 'type' => 'boolean',
  310. ],
  311. 'pageSize' => [
  312. 'location' => 'query',
  313. 'type' => 'integer',
  314. ],
  315. 'restrictToMyDrive' => [
  316. 'location' => 'query',
  317. 'type' => 'boolean',
  318. ],
  319. 'spaces' => [
  320. 'location' => 'query',
  321. 'type' => 'string',
  322. ],
  323. 'supportsAllDrives' => [
  324. 'location' => 'query',
  325. 'type' => 'boolean',
  326. ],
  327. 'supportsTeamDrives' => [
  328. 'location' => 'query',
  329. 'type' => 'boolean',
  330. ],
  331. 'teamDriveId' => [
  332. 'location' => 'query',
  333. 'type' => 'string',
  334. ],
  335. ],
  336. ],'watch' => [
  337. 'path' => 'changes/watch',
  338. 'httpMethod' => 'POST',
  339. 'parameters' => [
  340. 'pageToken' => [
  341. 'location' => 'query',
  342. 'type' => 'string',
  343. 'required' => true,
  344. ],
  345. 'driveId' => [
  346. 'location' => 'query',
  347. 'type' => 'string',
  348. ],
  349. 'includeCorpusRemovals' => [
  350. 'location' => 'query',
  351. 'type' => 'boolean',
  352. ],
  353. 'includeItemsFromAllDrives' => [
  354. 'location' => 'query',
  355. 'type' => 'boolean',
  356. ],
  357. 'includeLabels' => [
  358. 'location' => 'query',
  359. 'type' => 'string',
  360. ],
  361. 'includePermissionsForView' => [
  362. 'location' => 'query',
  363. 'type' => 'string',
  364. ],
  365. 'includeRemoved' => [
  366. 'location' => 'query',
  367. 'type' => 'boolean',
  368. ],
  369. 'includeTeamDriveItems' => [
  370. 'location' => 'query',
  371. 'type' => 'boolean',
  372. ],
  373. 'pageSize' => [
  374. 'location' => 'query',
  375. 'type' => 'integer',
  376. ],
  377. 'restrictToMyDrive' => [
  378. 'location' => 'query',
  379. 'type' => 'boolean',
  380. ],
  381. 'spaces' => [
  382. 'location' => 'query',
  383. 'type' => 'string',
  384. ],
  385. 'supportsAllDrives' => [
  386. 'location' => 'query',
  387. 'type' => 'boolean',
  388. ],
  389. 'supportsTeamDrives' => [
  390. 'location' => 'query',
  391. 'type' => 'boolean',
  392. ],
  393. 'teamDriveId' => [
  394. 'location' => 'query',
  395. 'type' => 'string',
  396. ],
  397. ],
  398. ],
  399. ]
  400. ]
  401. );
  402. $this->channels = new Drive\Resource\Channels(
  403. $this,
  404. $this->serviceName,
  405. 'channels',
  406. [
  407. 'methods' => [
  408. 'stop' => [
  409. 'path' => 'channels/stop',
  410. 'httpMethod' => 'POST',
  411. 'parameters' => [],
  412. ],
  413. ]
  414. ]
  415. );
  416. $this->comments = new Drive\Resource\Comments(
  417. $this,
  418. $this->serviceName,
  419. 'comments',
  420. [
  421. 'methods' => [
  422. 'create' => [
  423. 'path' => 'files/{fileId}/comments',
  424. 'httpMethod' => 'POST',
  425. 'parameters' => [
  426. 'fileId' => [
  427. 'location' => 'path',
  428. 'type' => 'string',
  429. 'required' => true,
  430. ],
  431. ],
  432. ],'delete' => [
  433. 'path' => 'files/{fileId}/comments/{commentId}',
  434. 'httpMethod' => 'DELETE',
  435. 'parameters' => [
  436. 'fileId' => [
  437. 'location' => 'path',
  438. 'type' => 'string',
  439. 'required' => true,
  440. ],
  441. 'commentId' => [
  442. 'location' => 'path',
  443. 'type' => 'string',
  444. 'required' => true,
  445. ],
  446. ],
  447. ],'get' => [
  448. 'path' => 'files/{fileId}/comments/{commentId}',
  449. 'httpMethod' => 'GET',
  450. 'parameters' => [
  451. 'fileId' => [
  452. 'location' => 'path',
  453. 'type' => 'string',
  454. 'required' => true,
  455. ],
  456. 'commentId' => [
  457. 'location' => 'path',
  458. 'type' => 'string',
  459. 'required' => true,
  460. ],
  461. 'includeDeleted' => [
  462. 'location' => 'query',
  463. 'type' => 'boolean',
  464. ],
  465. ],
  466. ],'list' => [
  467. 'path' => 'files/{fileId}/comments',
  468. 'httpMethod' => 'GET',
  469. 'parameters' => [
  470. 'fileId' => [
  471. 'location' => 'path',
  472. 'type' => 'string',
  473. 'required' => true,
  474. ],
  475. 'includeDeleted' => [
  476. 'location' => 'query',
  477. 'type' => 'boolean',
  478. ],
  479. 'pageSize' => [
  480. 'location' => 'query',
  481. 'type' => 'integer',
  482. ],
  483. 'pageToken' => [
  484. 'location' => 'query',
  485. 'type' => 'string',
  486. ],
  487. 'startModifiedTime' => [
  488. 'location' => 'query',
  489. 'type' => 'string',
  490. ],
  491. ],
  492. ],'update' => [
  493. 'path' => 'files/{fileId}/comments/{commentId}',
  494. 'httpMethod' => 'PATCH',
  495. 'parameters' => [
  496. 'fileId' => [
  497. 'location' => 'path',
  498. 'type' => 'string',
  499. 'required' => true,
  500. ],
  501. 'commentId' => [
  502. 'location' => 'path',
  503. 'type' => 'string',
  504. 'required' => true,
  505. ],
  506. ],
  507. ],
  508. ]
  509. ]
  510. );
  511. $this->drives = new Drive\Resource\Drives(
  512. $this,
  513. $this->serviceName,
  514. 'drives',
  515. [
  516. 'methods' => [
  517. 'create' => [
  518. 'path' => 'drives',
  519. 'httpMethod' => 'POST',
  520. 'parameters' => [
  521. 'requestId' => [
  522. 'location' => 'query',
  523. 'type' => 'string',
  524. 'required' => true,
  525. ],
  526. ],
  527. ],'delete' => [
  528. 'path' => 'drives/{driveId}',
  529. 'httpMethod' => 'DELETE',
  530. 'parameters' => [
  531. 'driveId' => [
  532. 'location' => 'path',
  533. 'type' => 'string',
  534. 'required' => true,
  535. ],
  536. 'allowItemDeletion' => [
  537. 'location' => 'query',
  538. 'type' => 'boolean',
  539. ],
  540. 'useDomainAdminAccess' => [
  541. 'location' => 'query',
  542. 'type' => 'boolean',
  543. ],
  544. ],
  545. ],'get' => [
  546. 'path' => 'drives/{driveId}',
  547. 'httpMethod' => 'GET',
  548. 'parameters' => [
  549. 'driveId' => [
  550. 'location' => 'path',
  551. 'type' => 'string',
  552. 'required' => true,
  553. ],
  554. 'useDomainAdminAccess' => [
  555. 'location' => 'query',
  556. 'type' => 'boolean',
  557. ],
  558. ],
  559. ],'hide' => [
  560. 'path' => 'drives/{driveId}/hide',
  561. 'httpMethod' => 'POST',
  562. 'parameters' => [
  563. 'driveId' => [
  564. 'location' => 'path',
  565. 'type' => 'string',
  566. 'required' => true,
  567. ],
  568. ],
  569. ],'list' => [
  570. 'path' => 'drives',
  571. 'httpMethod' => 'GET',
  572. 'parameters' => [
  573. 'pageSize' => [
  574. 'location' => 'query',
  575. 'type' => 'integer',
  576. ],
  577. 'pageToken' => [
  578. 'location' => 'query',
  579. 'type' => 'string',
  580. ],
  581. 'q' => [
  582. 'location' => 'query',
  583. 'type' => 'string',
  584. ],
  585. 'useDomainAdminAccess' => [
  586. 'location' => 'query',
  587. 'type' => 'boolean',
  588. ],
  589. ],
  590. ],'unhide' => [
  591. 'path' => 'drives/{driveId}/unhide',
  592. 'httpMethod' => 'POST',
  593. 'parameters' => [
  594. 'driveId' => [
  595. 'location' => 'path',
  596. 'type' => 'string',
  597. 'required' => true,
  598. ],
  599. ],
  600. ],'update' => [
  601. 'path' => 'drives/{driveId}',
  602. 'httpMethod' => 'PATCH',
  603. 'parameters' => [
  604. 'driveId' => [
  605. 'location' => 'path',
  606. 'type' => 'string',
  607. 'required' => true,
  608. ],
  609. 'useDomainAdminAccess' => [
  610. 'location' => 'query',
  611. 'type' => 'boolean',
  612. ],
  613. ],
  614. ],
  615. ]
  616. ]
  617. );
  618. $this->files = new Drive\Resource\Files(
  619. $this,
  620. $this->serviceName,
  621. 'files',
  622. [
  623. 'methods' => [
  624. 'copy' => [
  625. 'path' => 'files/{fileId}/copy',
  626. 'httpMethod' => 'POST',
  627. 'parameters' => [
  628. 'fileId' => [
  629. 'location' => 'path',
  630. 'type' => 'string',
  631. 'required' => true,
  632. ],
  633. 'enforceSingleParent' => [
  634. 'location' => 'query',
  635. 'type' => 'boolean',
  636. ],
  637. 'ignoreDefaultVisibility' => [
  638. 'location' => 'query',
  639. 'type' => 'boolean',
  640. ],
  641. 'includeLabels' => [
  642. 'location' => 'query',
  643. 'type' => 'string',
  644. ],
  645. 'includePermissionsForView' => [
  646. 'location' => 'query',
  647. 'type' => 'string',
  648. ],
  649. 'keepRevisionForever' => [
  650. 'location' => 'query',
  651. 'type' => 'boolean',
  652. ],
  653. 'ocrLanguage' => [
  654. 'location' => 'query',
  655. 'type' => 'string',
  656. ],
  657. 'supportsAllDrives' => [
  658. 'location' => 'query',
  659. 'type' => 'boolean',
  660. ],
  661. 'supportsTeamDrives' => [
  662. 'location' => 'query',
  663. 'type' => 'boolean',
  664. ],
  665. ],
  666. ],'create' => [
  667. 'path' => 'files',
  668. 'httpMethod' => 'POST',
  669. 'parameters' => [
  670. 'enforceSingleParent' => [
  671. 'location' => 'query',
  672. 'type' => 'boolean',
  673. ],
  674. 'ignoreDefaultVisibility' => [
  675. 'location' => 'query',
  676. 'type' => 'boolean',
  677. ],
  678. 'includeLabels' => [
  679. 'location' => 'query',
  680. 'type' => 'string',
  681. ],
  682. 'includePermissionsForView' => [
  683. 'location' => 'query',
  684. 'type' => 'string',
  685. ],
  686. 'keepRevisionForever' => [
  687. 'location' => 'query',
  688. 'type' => 'boolean',
  689. ],
  690. 'ocrLanguage' => [
  691. 'location' => 'query',
  692. 'type' => 'string',
  693. ],
  694. 'supportsAllDrives' => [
  695. 'location' => 'query',
  696. 'type' => 'boolean',
  697. ],
  698. 'supportsTeamDrives' => [
  699. 'location' => 'query',
  700. 'type' => 'boolean',
  701. ],
  702. 'useContentAsIndexableText' => [
  703. 'location' => 'query',
  704. 'type' => 'boolean',
  705. ],
  706. ],
  707. ],'delete' => [
  708. 'path' => 'files/{fileId}',
  709. 'httpMethod' => 'DELETE',
  710. 'parameters' => [
  711. 'fileId' => [
  712. 'location' => 'path',
  713. 'type' => 'string',
  714. 'required' => true,
  715. ],
  716. 'enforceSingleParent' => [
  717. 'location' => 'query',
  718. 'type' => 'boolean',
  719. ],
  720. 'supportsAllDrives' => [
  721. 'location' => 'query',
  722. 'type' => 'boolean',
  723. ],
  724. 'supportsTeamDrives' => [
  725. 'location' => 'query',
  726. 'type' => 'boolean',
  727. ],
  728. ],
  729. ],'download' => [
  730. 'path' => 'files/{fileId}/download',
  731. 'httpMethod' => 'POST',
  732. 'parameters' => [
  733. 'fileId' => [
  734. 'location' => 'path',
  735. 'type' => 'string',
  736. 'required' => true,
  737. ],
  738. 'mimeType' => [
  739. 'location' => 'query',
  740. 'type' => 'string',
  741. ],
  742. 'revisionId' => [
  743. 'location' => 'query',
  744. 'type' => 'string',
  745. ],
  746. ],
  747. ],'emptyTrash' => [
  748. 'path' => 'files/trash',
  749. 'httpMethod' => 'DELETE',
  750. 'parameters' => [
  751. 'driveId' => [
  752. 'location' => 'query',
  753. 'type' => 'string',
  754. ],
  755. 'enforceSingleParent' => [
  756. 'location' => 'query',
  757. 'type' => 'boolean',
  758. ],
  759. ],
  760. ],'export' => [
  761. 'path' => 'files/{fileId}/export',
  762. 'httpMethod' => 'GET',
  763. 'parameters' => [
  764. 'fileId' => [
  765. 'location' => 'path',
  766. 'type' => 'string',
  767. 'required' => true,
  768. ],
  769. 'mimeType' => [
  770. 'location' => 'query',
  771. 'type' => 'string',
  772. 'required' => true,
  773. ],
  774. ],
  775. ],'generateIds' => [
  776. 'path' => 'files/generateIds',
  777. 'httpMethod' => 'GET',
  778. 'parameters' => [
  779. 'count' => [
  780. 'location' => 'query',
  781. 'type' => 'integer',
  782. ],
  783. 'space' => [
  784. 'location' => 'query',
  785. 'type' => 'string',
  786. ],
  787. 'type' => [
  788. 'location' => 'query',
  789. 'type' => 'string',
  790. ],
  791. ],
  792. ],'get' => [
  793. 'path' => 'files/{fileId}',
  794. 'httpMethod' => 'GET',
  795. 'parameters' => [
  796. 'fileId' => [
  797. 'location' => 'path',
  798. 'type' => 'string',
  799. 'required' => true,
  800. ],
  801. 'acknowledgeAbuse' => [
  802. 'location' => 'query',
  803. 'type' => 'boolean',
  804. ],
  805. 'includeLabels' => [
  806. 'location' => 'query',
  807. 'type' => 'string',
  808. ],
  809. 'includePermissionsForView' => [
  810. 'location' => 'query',
  811. 'type' => 'string',
  812. ],
  813. 'supportsAllDrives' => [
  814. 'location' => 'query',
  815. 'type' => 'boolean',
  816. ],
  817. 'supportsTeamDrives' => [
  818. 'location' => 'query',
  819. 'type' => 'boolean',
  820. ],
  821. ],
  822. ],'list' => [
  823. 'path' => 'files',
  824. 'httpMethod' => 'GET',
  825. 'parameters' => [
  826. 'corpora' => [
  827. 'location' => 'query',
  828. 'type' => 'string',
  829. ],
  830. 'corpus' => [
  831. 'location' => 'query',
  832. 'type' => 'string',
  833. ],
  834. 'driveId' => [
  835. 'location' => 'query',
  836. 'type' => 'string',
  837. ],
  838. 'includeItemsFromAllDrives' => [
  839. 'location' => 'query',
  840. 'type' => 'boolean',
  841. ],
  842. 'includeLabels' => [
  843. 'location' => 'query',
  844. 'type' => 'string',
  845. ],
  846. 'includePermissionsForView' => [
  847. 'location' => 'query',
  848. 'type' => 'string',
  849. ],
  850. 'includeTeamDriveItems' => [
  851. 'location' => 'query',
  852. 'type' => 'boolean',
  853. ],
  854. 'orderBy' => [
  855. 'location' => 'query',
  856. 'type' => 'string',
  857. ],
  858. 'pageSize' => [
  859. 'location' => 'query',
  860. 'type' => 'integer',
  861. ],
  862. 'pageToken' => [
  863. 'location' => 'query',
  864. 'type' => 'string',
  865. ],
  866. 'q' => [
  867. 'location' => 'query',
  868. 'type' => 'string',
  869. ],
  870. 'spaces' => [
  871. 'location' => 'query',
  872. 'type' => 'string',
  873. ],
  874. 'supportsAllDrives' => [
  875. 'location' => 'query',
  876. 'type' => 'boolean',
  877. ],
  878. 'supportsTeamDrives' => [
  879. 'location' => 'query',
  880. 'type' => 'boolean',
  881. ],
  882. 'teamDriveId' => [
  883. 'location' => 'query',
  884. 'type' => 'string',
  885. ],
  886. ],
  887. ],'listLabels' => [
  888. 'path' => 'files/{fileId}/listLabels',
  889. 'httpMethod' => 'GET',
  890. 'parameters' => [
  891. 'fileId' => [
  892. 'location' => 'path',
  893. 'type' => 'string',
  894. 'required' => true,
  895. ],
  896. 'maxResults' => [
  897. 'location' => 'query',
  898. 'type' => 'integer',
  899. ],
  900. 'pageToken' => [
  901. 'location' => 'query',
  902. 'type' => 'string',
  903. ],
  904. ],
  905. ],'modifyLabels' => [
  906. 'path' => 'files/{fileId}/modifyLabels',
  907. 'httpMethod' => 'POST',
  908. 'parameters' => [
  909. 'fileId' => [
  910. 'location' => 'path',
  911. 'type' => 'string',
  912. 'required' => true,
  913. ],
  914. ],
  915. ],'update' => [
  916. 'path' => 'files/{fileId}',
  917. 'httpMethod' => 'PATCH',
  918. 'parameters' => [
  919. 'fileId' => [
  920. 'location' => 'path',
  921. 'type' => 'string',
  922. 'required' => true,
  923. ],
  924. 'addParents' => [
  925. 'location' => 'query',
  926. 'type' => 'string',
  927. ],
  928. 'enforceSingleParent' => [
  929. 'location' => 'query',
  930. 'type' => 'boolean',
  931. ],
  932. 'includeLabels' => [
  933. 'location' => 'query',
  934. 'type' => 'string',
  935. ],
  936. 'includePermissionsForView' => [
  937. 'location' => 'query',
  938. 'type' => 'string',
  939. ],
  940. 'keepRevisionForever' => [
  941. 'location' => 'query',
  942. 'type' => 'boolean',
  943. ],
  944. 'ocrLanguage' => [
  945. 'location' => 'query',
  946. 'type' => 'string',
  947. ],
  948. 'removeParents' => [
  949. 'location' => 'query',
  950. 'type' => 'string',
  951. ],
  952. 'supportsAllDrives' => [
  953. 'location' => 'query',
  954. 'type' => 'boolean',
  955. ],
  956. 'supportsTeamDrives' => [
  957. 'location' => 'query',
  958. 'type' => 'boolean',
  959. ],
  960. 'useContentAsIndexableText' => [
  961. 'location' => 'query',
  962. 'type' => 'boolean',
  963. ],
  964. ],
  965. ],'watch' => [
  966. 'path' => 'files/{fileId}/watch',
  967. 'httpMethod' => 'POST',
  968. 'parameters' => [
  969. 'fileId' => [
  970. 'location' => 'path',
  971. 'type' => 'string',
  972. 'required' => true,
  973. ],
  974. 'acknowledgeAbuse' => [
  975. 'location' => 'query',
  976. 'type' => 'boolean',
  977. ],
  978. 'includeLabels' => [
  979. 'location' => 'query',
  980. 'type' => 'string',
  981. ],
  982. 'includePermissionsForView' => [
  983. 'location' => 'query',
  984. 'type' => 'string',
  985. ],
  986. 'supportsAllDrives' => [
  987. 'location' => 'query',
  988. 'type' => 'boolean',
  989. ],
  990. 'supportsTeamDrives' => [
  991. 'location' => 'query',
  992. 'type' => 'boolean',
  993. ],
  994. ],
  995. ],
  996. ]
  997. ]
  998. );
  999. $this->operations = new Drive\Resource\Operations(
  1000. $this,
  1001. $this->serviceName,
  1002. 'operations',
  1003. [
  1004. 'methods' => [
  1005. 'get' => [
  1006. 'path' => 'operations/{name}',
  1007. 'httpMethod' => 'GET',
  1008. 'parameters' => [
  1009. 'name' => [
  1010. 'location' => 'path',
  1011. 'type' => 'string',
  1012. 'required' => true,
  1013. ],
  1014. ],
  1015. ],
  1016. ]
  1017. ]
  1018. );
  1019. $this->permissions = new Drive\Resource\Permissions(
  1020. $this,
  1021. $this->serviceName,
  1022. 'permissions',
  1023. [
  1024. 'methods' => [
  1025. 'create' => [
  1026. 'path' => 'files/{fileId}/permissions',
  1027. 'httpMethod' => 'POST',
  1028. 'parameters' => [
  1029. 'fileId' => [
  1030. 'location' => 'path',
  1031. 'type' => 'string',
  1032. 'required' => true,
  1033. ],
  1034. 'emailMessage' => [
  1035. 'location' => 'query',
  1036. 'type' => 'string',
  1037. ],
  1038. 'enforceExpansiveAccess' => [
  1039. 'location' => 'query',
  1040. 'type' => 'boolean',
  1041. ],
  1042. 'enforceSingleParent' => [
  1043. 'location' => 'query',
  1044. 'type' => 'boolean',
  1045. ],
  1046. 'moveToNewOwnersRoot' => [
  1047. 'location' => 'query',
  1048. 'type' => 'boolean',
  1049. ],
  1050. 'sendNotificationEmail' => [
  1051. 'location' => 'query',
  1052. 'type' => 'boolean',
  1053. ],
  1054. 'supportsAllDrives' => [
  1055. 'location' => 'query',
  1056. 'type' => 'boolean',
  1057. ],
  1058. 'supportsTeamDrives' => [
  1059. 'location' => 'query',
  1060. 'type' => 'boolean',
  1061. ],
  1062. 'transferOwnership' => [
  1063. 'location' => 'query',
  1064. 'type' => 'boolean',
  1065. ],
  1066. 'useDomainAdminAccess' => [
  1067. 'location' => 'query',
  1068. 'type' => 'boolean',
  1069. ],
  1070. ],
  1071. ],'delete' => [
  1072. 'path' => 'files/{fileId}/permissions/{permissionId}',
  1073. 'httpMethod' => 'DELETE',
  1074. 'parameters' => [
  1075. 'fileId' => [
  1076. 'location' => 'path',
  1077. 'type' => 'string',
  1078. 'required' => true,
  1079. ],
  1080. 'permissionId' => [
  1081. 'location' => 'path',
  1082. 'type' => 'string',
  1083. 'required' => true,
  1084. ],
  1085. 'enforceExpansiveAccess' => [
  1086. 'location' => 'query',
  1087. 'type' => 'boolean',
  1088. ],
  1089. 'supportsAllDrives' => [
  1090. 'location' => 'query',
  1091. 'type' => 'boolean',
  1092. ],
  1093. 'supportsTeamDrives' => [
  1094. 'location' => 'query',
  1095. 'type' => 'boolean',
  1096. ],
  1097. 'useDomainAdminAccess' => [
  1098. 'location' => 'query',
  1099. 'type' => 'boolean',
  1100. ],
  1101. ],
  1102. ],'get' => [
  1103. 'path' => 'files/{fileId}/permissions/{permissionId}',
  1104. 'httpMethod' => 'GET',
  1105. 'parameters' => [
  1106. 'fileId' => [
  1107. 'location' => 'path',
  1108. 'type' => 'string',
  1109. 'required' => true,
  1110. ],
  1111. 'permissionId' => [
  1112. 'location' => 'path',
  1113. 'type' => 'string',
  1114. 'required' => true,
  1115. ],
  1116. 'supportsAllDrives' => [
  1117. 'location' => 'query',
  1118. 'type' => 'boolean',
  1119. ],
  1120. 'supportsTeamDrives' => [
  1121. 'location' => 'query',
  1122. 'type' => 'boolean',
  1123. ],
  1124. 'useDomainAdminAccess' => [
  1125. 'location' => 'query',
  1126. 'type' => 'boolean',
  1127. ],
  1128. ],
  1129. ],'list' => [
  1130. 'path' => 'files/{fileId}/permissions',
  1131. 'httpMethod' => 'GET',
  1132. 'parameters' => [
  1133. 'fileId' => [
  1134. 'location' => 'path',
  1135. 'type' => 'string',
  1136. 'required' => true,
  1137. ],
  1138. 'includePermissionsForView' => [
  1139. 'location' => 'query',
  1140. 'type' => 'string',
  1141. ],
  1142. 'pageSize' => [
  1143. 'location' => 'query',
  1144. 'type' => 'integer',
  1145. ],
  1146. 'pageToken' => [
  1147. 'location' => 'query',
  1148. 'type' => 'string',
  1149. ],
  1150. 'supportsAllDrives' => [
  1151. 'location' => 'query',
  1152. 'type' => 'boolean',
  1153. ],
  1154. 'supportsTeamDrives' => [
  1155. 'location' => 'query',
  1156. 'type' => 'boolean',
  1157. ],
  1158. 'useDomainAdminAccess' => [
  1159. 'location' => 'query',
  1160. 'type' => 'boolean',
  1161. ],
  1162. ],
  1163. ],'update' => [
  1164. 'path' => 'files/{fileId}/permissions/{permissionId}',
  1165. 'httpMethod' => 'PATCH',
  1166. 'parameters' => [
  1167. 'fileId' => [
  1168. 'location' => 'path',
  1169. 'type' => 'string',
  1170. 'required' => true,
  1171. ],
  1172. 'permissionId' => [
  1173. 'location' => 'path',
  1174. 'type' => 'string',
  1175. 'required' => true,
  1176. ],
  1177. 'enforceExpansiveAccess' => [
  1178. 'location' => 'query',
  1179. 'type' => 'boolean',
  1180. ],
  1181. 'removeExpiration' => [
  1182. 'location' => 'query',
  1183. 'type' => 'boolean',
  1184. ],
  1185. 'supportsAllDrives' => [
  1186. 'location' => 'query',
  1187. 'type' => 'boolean',
  1188. ],
  1189. 'supportsTeamDrives' => [
  1190. 'location' => 'query',
  1191. 'type' => 'boolean',
  1192. ],
  1193. 'transferOwnership' => [
  1194. 'location' => 'query',
  1195. 'type' => 'boolean',
  1196. ],
  1197. 'useDomainAdminAccess' => [
  1198. 'location' => 'query',
  1199. 'type' => 'boolean',
  1200. ],
  1201. ],
  1202. ],
  1203. ]
  1204. ]
  1205. );
  1206. $this->replies = new Drive\Resource\Replies(
  1207. $this,
  1208. $this->serviceName,
  1209. 'replies',
  1210. [
  1211. 'methods' => [
  1212. 'create' => [
  1213. 'path' => 'files/{fileId}/comments/{commentId}/replies',
  1214. 'httpMethod' => 'POST',
  1215. 'parameters' => [
  1216. 'fileId' => [
  1217. 'location' => 'path',
  1218. 'type' => 'string',
  1219. 'required' => true,
  1220. ],
  1221. 'commentId' => [
  1222. 'location' => 'path',
  1223. 'type' => 'string',
  1224. 'required' => true,
  1225. ],
  1226. ],
  1227. ],'delete' => [
  1228. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
  1229. 'httpMethod' => 'DELETE',
  1230. 'parameters' => [
  1231. 'fileId' => [
  1232. 'location' => 'path',
  1233. 'type' => 'string',
  1234. 'required' => true,
  1235. ],
  1236. 'commentId' => [
  1237. 'location' => 'path',
  1238. 'type' => 'string',
  1239. 'required' => true,
  1240. ],
  1241. 'replyId' => [
  1242. 'location' => 'path',
  1243. 'type' => 'string',
  1244. 'required' => true,
  1245. ],
  1246. ],
  1247. ],'get' => [
  1248. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
  1249. 'httpMethod' => 'GET',
  1250. 'parameters' => [
  1251. 'fileId' => [
  1252. 'location' => 'path',
  1253. 'type' => 'string',
  1254. 'required' => true,
  1255. ],
  1256. 'commentId' => [
  1257. 'location' => 'path',
  1258. 'type' => 'string',
  1259. 'required' => true,
  1260. ],
  1261. 'replyId' => [
  1262. 'location' => 'path',
  1263. 'type' => 'string',
  1264. 'required' => true,
  1265. ],
  1266. 'includeDeleted' => [
  1267. 'location' => 'query',
  1268. 'type' => 'boolean',
  1269. ],
  1270. ],
  1271. ],'list' => [
  1272. 'path' => 'files/{fileId}/comments/{commentId}/replies',
  1273. 'httpMethod' => 'GET',
  1274. 'parameters' => [
  1275. 'fileId' => [
  1276. 'location' => 'path',
  1277. 'type' => 'string',
  1278. 'required' => true,
  1279. ],
  1280. 'commentId' => [
  1281. 'location' => 'path',
  1282. 'type' => 'string',
  1283. 'required' => true,
  1284. ],
  1285. 'includeDeleted' => [
  1286. 'location' => 'query',
  1287. 'type' => 'boolean',
  1288. ],
  1289. 'pageSize' => [
  1290. 'location' => 'query',
  1291. 'type' => 'integer',
  1292. ],
  1293. 'pageToken' => [
  1294. 'location' => 'query',
  1295. 'type' => 'string',
  1296. ],
  1297. ],
  1298. ],'update' => [
  1299. 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
  1300. 'httpMethod' => 'PATCH',
  1301. 'parameters' => [
  1302. 'fileId' => [
  1303. 'location' => 'path',
  1304. 'type' => 'string',
  1305. 'required' => true,
  1306. ],
  1307. 'commentId' => [
  1308. 'location' => 'path',
  1309. 'type' => 'string',
  1310. 'required' => true,
  1311. ],
  1312. 'replyId' => [
  1313. 'location' => 'path',
  1314. 'type' => 'string',
  1315. 'required' => true,
  1316. ],
  1317. ],
  1318. ],
  1319. ]
  1320. ]
  1321. );
  1322. $this->revisions = new Drive\Resource\Revisions(
  1323. $this,
  1324. $this->serviceName,
  1325. 'revisions',
  1326. [
  1327. 'methods' => [
  1328. 'delete' => [
  1329. 'path' => 'files/{fileId}/revisions/{revisionId}',
  1330. 'httpMethod' => 'DELETE',
  1331. 'parameters' => [
  1332. 'fileId' => [
  1333. 'location' => 'path',
  1334. 'type' => 'string',
  1335. 'required' => true,
  1336. ],
  1337. 'revisionId' => [
  1338. 'location' => 'path',
  1339. 'type' => 'string',
  1340. 'required' => true,
  1341. ],
  1342. ],
  1343. ],'get' => [
  1344. 'path' => 'files/{fileId}/revisions/{revisionId}',
  1345. 'httpMethod' => 'GET',
  1346. 'parameters' => [
  1347. 'fileId' => [
  1348. 'location' => 'path',
  1349. 'type' => 'string',
  1350. 'required' => true,
  1351. ],
  1352. 'revisionId' => [
  1353. 'location' => 'path',
  1354. 'type' => 'string',
  1355. 'required' => true,
  1356. ],
  1357. 'acknowledgeAbuse' => [
  1358. 'location' => 'query',
  1359. 'type' => 'boolean',
  1360. ],
  1361. ],
  1362. ],'list' => [
  1363. 'path' => 'files/{fileId}/revisions',
  1364. 'httpMethod' => 'GET',
  1365. 'parameters' => [
  1366. 'fileId' => [
  1367. 'location' => 'path',
  1368. 'type' => 'string',
  1369. 'required' => true,
  1370. ],
  1371. 'pageSize' => [
  1372. 'location' => 'query',
  1373. 'type' => 'integer',
  1374. ],
  1375. 'pageToken' => [
  1376. 'location' => 'query',
  1377. 'type' => 'string',
  1378. ],
  1379. ],
  1380. ],'update' => [
  1381. 'path' => 'files/{fileId}/revisions/{revisionId}',
  1382. 'httpMethod' => 'PATCH',
  1383. 'parameters' => [
  1384. 'fileId' => [
  1385. 'location' => 'path',
  1386. 'type' => 'string',
  1387. 'required' => true,
  1388. ],
  1389. 'revisionId' => [
  1390. 'location' => 'path',
  1391. 'type' => 'string',
  1392. 'required' => true,
  1393. ],
  1394. ],
  1395. ],
  1396. ]
  1397. ]
  1398. );
  1399. $this->teamdrives = new Drive\Resource\Teamdrives(
  1400. $this,
  1401. $this->serviceName,
  1402. 'teamdrives',
  1403. [
  1404. 'methods' => [
  1405. 'create' => [
  1406. 'path' => 'teamdrives',
  1407. 'httpMethod' => 'POST',
  1408. 'parameters' => [
  1409. 'requestId' => [
  1410. 'location' => 'query',
  1411. 'type' => 'string',
  1412. 'required' => true,
  1413. ],
  1414. ],
  1415. ],'delete' => [
  1416. 'path' => 'teamdrives/{teamDriveId}',
  1417. 'httpMethod' => 'DELETE',
  1418. 'parameters' => [
  1419. 'teamDriveId' => [
  1420. 'location' => 'path',
  1421. 'type' => 'string',
  1422. 'required' => true,
  1423. ],
  1424. ],
  1425. ],'get' => [
  1426. 'path' => 'teamdrives/{teamDriveId}',
  1427. 'httpMethod' => 'GET',
  1428. 'parameters' => [
  1429. 'teamDriveId' => [
  1430. 'location' => 'path',
  1431. 'type' => 'string',
  1432. 'required' => true,
  1433. ],
  1434. 'useDomainAdminAccess' => [
  1435. 'location' => 'query',
  1436. 'type' => 'boolean',
  1437. ],
  1438. ],
  1439. ],'list' => [
  1440. 'path' => 'teamdrives',
  1441. 'httpMethod' => 'GET',
  1442. 'parameters' => [
  1443. 'pageSize' => [
  1444. 'location' => 'query',
  1445. 'type' => 'integer',
  1446. ],
  1447. 'pageToken' => [
  1448. 'location' => 'query',
  1449. 'type' => 'string',
  1450. ],
  1451. 'q' => [
  1452. 'location' => 'query',
  1453. 'type' => 'string',
  1454. ],
  1455. 'useDomainAdminAccess' => [
  1456. 'location' => 'query',
  1457. 'type' => 'boolean',
  1458. ],
  1459. ],
  1460. ],'update' => [
  1461. 'path' => 'teamdrives/{teamDriveId}',
  1462. 'httpMethod' => 'PATCH',
  1463. 'parameters' => [
  1464. 'teamDriveId' => [
  1465. 'location' => 'path',
  1466. 'type' => 'string',
  1467. 'required' => true,
  1468. ],
  1469. 'useDomainAdminAccess' => [
  1470. 'location' => 'query',
  1471. 'type' => 'boolean',
  1472. ],
  1473. ],
  1474. ],
  1475. ]
  1476. ]
  1477. );
  1478. }
  1479. }
  1480. // Adding a class alias for backwards compatibility with the previous class name.
  1481. class_alias(Drive::class, 'Google_Service_Drive');