FirebaseDataConnect.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  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 FirebaseDataConnect (v1).
  21. *
  22. * <p>
  23. * Firebase Data Connect is a relational database service for mobile and web
  24. * apps that lets you build and scale using a fully-managed PostgreSQL database
  25. * powered by Cloud SQL. The REST API lets developers manage the connections to
  26. * their database, change the schema of their database, and query the database.</p>
  27. *
  28. * <p>
  29. * For more information about this service, see the API
  30. * <a href="https://firebase.google.com/docs/data-connect" target="_blank">Documentation</a>
  31. * </p>
  32. *
  33. * @author Google, Inc.
  34. */
  35. class FirebaseDataConnect extends \Google\Service
  36. {
  37. /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
  38. const CLOUD_PLATFORM =
  39. "https://www.googleapis.com/auth/cloud-platform";
  40. public $projects_locations;
  41. public $projects_locations_operations;
  42. public $projects_locations_services;
  43. public $projects_locations_services_connectors;
  44. public $projects_locations_services_schemas;
  45. public $rootUrlTemplate;
  46. /**
  47. * Constructs the internal representation of the FirebaseDataConnect service.
  48. *
  49. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  50. * config array to pass to a new Client instance.
  51. * @param string $rootUrl The root URL used for requests to the service.
  52. */
  53. public function __construct($clientOrConfig = [], $rootUrl = null)
  54. {
  55. parent::__construct($clientOrConfig);
  56. $this->rootUrl = $rootUrl ?: 'https://firebasedataconnect.googleapis.com/';
  57. $this->rootUrlTemplate = $rootUrl ?: 'https://firebasedataconnect.UNIVERSE_DOMAIN/';
  58. $this->servicePath = '';
  59. $this->batchPath = 'batch';
  60. $this->version = 'v1';
  61. $this->serviceName = 'firebasedataconnect';
  62. $this->projects_locations = new FirebaseDataConnect\Resource\ProjectsLocations(
  63. $this,
  64. $this->serviceName,
  65. 'locations',
  66. [
  67. 'methods' => [
  68. 'get' => [
  69. 'path' => 'v1/{+name}',
  70. 'httpMethod' => 'GET',
  71. 'parameters' => [
  72. 'name' => [
  73. 'location' => 'path',
  74. 'type' => 'string',
  75. 'required' => true,
  76. ],
  77. ],
  78. ],'list' => [
  79. 'path' => 'v1/{+name}/locations',
  80. 'httpMethod' => 'GET',
  81. 'parameters' => [
  82. 'name' => [
  83. 'location' => 'path',
  84. 'type' => 'string',
  85. 'required' => true,
  86. ],
  87. 'extraLocationTypes' => [
  88. 'location' => 'query',
  89. 'type' => 'string',
  90. 'repeated' => true,
  91. ],
  92. 'filter' => [
  93. 'location' => 'query',
  94. 'type' => 'string',
  95. ],
  96. 'pageSize' => [
  97. 'location' => 'query',
  98. 'type' => 'integer',
  99. ],
  100. 'pageToken' => [
  101. 'location' => 'query',
  102. 'type' => 'string',
  103. ],
  104. ],
  105. ],
  106. ]
  107. ]
  108. );
  109. $this->projects_locations_operations = new FirebaseDataConnect\Resource\ProjectsLocationsOperations(
  110. $this,
  111. $this->serviceName,
  112. 'operations',
  113. [
  114. 'methods' => [
  115. 'cancel' => [
  116. 'path' => 'v1/{+name}:cancel',
  117. 'httpMethod' => 'POST',
  118. 'parameters' => [
  119. 'name' => [
  120. 'location' => 'path',
  121. 'type' => 'string',
  122. 'required' => true,
  123. ],
  124. ],
  125. ],'delete' => [
  126. 'path' => 'v1/{+name}',
  127. 'httpMethod' => 'DELETE',
  128. 'parameters' => [
  129. 'name' => [
  130. 'location' => 'path',
  131. 'type' => 'string',
  132. 'required' => true,
  133. ],
  134. ],
  135. ],'get' => [
  136. 'path' => 'v1/{+name}',
  137. 'httpMethod' => 'GET',
  138. 'parameters' => [
  139. 'name' => [
  140. 'location' => 'path',
  141. 'type' => 'string',
  142. 'required' => true,
  143. ],
  144. ],
  145. ],'list' => [
  146. 'path' => 'v1/{+name}/operations',
  147. 'httpMethod' => 'GET',
  148. 'parameters' => [
  149. 'name' => [
  150. 'location' => 'path',
  151. 'type' => 'string',
  152. 'required' => true,
  153. ],
  154. 'filter' => [
  155. 'location' => 'query',
  156. 'type' => 'string',
  157. ],
  158. 'pageSize' => [
  159. 'location' => 'query',
  160. 'type' => 'integer',
  161. ],
  162. 'pageToken' => [
  163. 'location' => 'query',
  164. 'type' => 'string',
  165. ],
  166. 'returnPartialSuccess' => [
  167. 'location' => 'query',
  168. 'type' => 'boolean',
  169. ],
  170. ],
  171. ],
  172. ]
  173. ]
  174. );
  175. $this->projects_locations_services = new FirebaseDataConnect\Resource\ProjectsLocationsServices(
  176. $this,
  177. $this->serviceName,
  178. 'services',
  179. [
  180. 'methods' => [
  181. 'create' => [
  182. 'path' => 'v1/{+parent}/services',
  183. 'httpMethod' => 'POST',
  184. 'parameters' => [
  185. 'parent' => [
  186. 'location' => 'path',
  187. 'type' => 'string',
  188. 'required' => true,
  189. ],
  190. 'requestId' => [
  191. 'location' => 'query',
  192. 'type' => 'string',
  193. ],
  194. 'serviceId' => [
  195. 'location' => 'query',
  196. 'type' => 'string',
  197. ],
  198. 'validateOnly' => [
  199. 'location' => 'query',
  200. 'type' => 'boolean',
  201. ],
  202. ],
  203. ],'delete' => [
  204. 'path' => 'v1/{+name}',
  205. 'httpMethod' => 'DELETE',
  206. 'parameters' => [
  207. 'name' => [
  208. 'location' => 'path',
  209. 'type' => 'string',
  210. 'required' => true,
  211. ],
  212. 'allowMissing' => [
  213. 'location' => 'query',
  214. 'type' => 'boolean',
  215. ],
  216. 'etag' => [
  217. 'location' => 'query',
  218. 'type' => 'string',
  219. ],
  220. 'force' => [
  221. 'location' => 'query',
  222. 'type' => 'boolean',
  223. ],
  224. 'requestId' => [
  225. 'location' => 'query',
  226. 'type' => 'string',
  227. ],
  228. 'validateOnly' => [
  229. 'location' => 'query',
  230. 'type' => 'boolean',
  231. ],
  232. ],
  233. ],'executeGraphql' => [
  234. 'path' => 'v1/{+name}:executeGraphql',
  235. 'httpMethod' => 'POST',
  236. 'parameters' => [
  237. 'name' => [
  238. 'location' => 'path',
  239. 'type' => 'string',
  240. 'required' => true,
  241. ],
  242. ],
  243. ],'executeGraphqlRead' => [
  244. 'path' => 'v1/{+name}:executeGraphqlRead',
  245. 'httpMethod' => 'POST',
  246. 'parameters' => [
  247. 'name' => [
  248. 'location' => 'path',
  249. 'type' => 'string',
  250. 'required' => true,
  251. ],
  252. ],
  253. ],'get' => [
  254. 'path' => 'v1/{+name}',
  255. 'httpMethod' => 'GET',
  256. 'parameters' => [
  257. 'name' => [
  258. 'location' => 'path',
  259. 'type' => 'string',
  260. 'required' => true,
  261. ],
  262. ],
  263. ],'introspectGraphql' => [
  264. 'path' => 'v1/{+name}:introspectGraphql',
  265. 'httpMethod' => 'POST',
  266. 'parameters' => [
  267. 'name' => [
  268. 'location' => 'path',
  269. 'type' => 'string',
  270. 'required' => true,
  271. ],
  272. ],
  273. ],'list' => [
  274. 'path' => 'v1/{+parent}/services',
  275. 'httpMethod' => 'GET',
  276. 'parameters' => [
  277. 'parent' => [
  278. 'location' => 'path',
  279. 'type' => 'string',
  280. 'required' => true,
  281. ],
  282. 'filter' => [
  283. 'location' => 'query',
  284. 'type' => 'string',
  285. ],
  286. 'orderBy' => [
  287. 'location' => 'query',
  288. 'type' => 'string',
  289. ],
  290. 'pageSize' => [
  291. 'location' => 'query',
  292. 'type' => 'integer',
  293. ],
  294. 'pageToken' => [
  295. 'location' => 'query',
  296. 'type' => 'string',
  297. ],
  298. ],
  299. ],'patch' => [
  300. 'path' => 'v1/{+name}',
  301. 'httpMethod' => 'PATCH',
  302. 'parameters' => [
  303. 'name' => [
  304. 'location' => 'path',
  305. 'type' => 'string',
  306. 'required' => true,
  307. ],
  308. 'allowMissing' => [
  309. 'location' => 'query',
  310. 'type' => 'boolean',
  311. ],
  312. 'requestId' => [
  313. 'location' => 'query',
  314. 'type' => 'string',
  315. ],
  316. 'updateMask' => [
  317. 'location' => 'query',
  318. 'type' => 'string',
  319. ],
  320. 'validateOnly' => [
  321. 'location' => 'query',
  322. 'type' => 'boolean',
  323. ],
  324. ],
  325. ],
  326. ]
  327. ]
  328. );
  329. $this->projects_locations_services_connectors = new FirebaseDataConnect\Resource\ProjectsLocationsServicesConnectors(
  330. $this,
  331. $this->serviceName,
  332. 'connectors',
  333. [
  334. 'methods' => [
  335. 'create' => [
  336. 'path' => 'v1/{+parent}/connectors',
  337. 'httpMethod' => 'POST',
  338. 'parameters' => [
  339. 'parent' => [
  340. 'location' => 'path',
  341. 'type' => 'string',
  342. 'required' => true,
  343. ],
  344. 'connectorId' => [
  345. 'location' => 'query',
  346. 'type' => 'string',
  347. ],
  348. 'requestId' => [
  349. 'location' => 'query',
  350. 'type' => 'string',
  351. ],
  352. 'validateOnly' => [
  353. 'location' => 'query',
  354. 'type' => 'boolean',
  355. ],
  356. ],
  357. ],'delete' => [
  358. 'path' => 'v1/{+name}',
  359. 'httpMethod' => 'DELETE',
  360. 'parameters' => [
  361. 'name' => [
  362. 'location' => 'path',
  363. 'type' => 'string',
  364. 'required' => true,
  365. ],
  366. 'allowMissing' => [
  367. 'location' => 'query',
  368. 'type' => 'boolean',
  369. ],
  370. 'etag' => [
  371. 'location' => 'query',
  372. 'type' => 'string',
  373. ],
  374. 'force' => [
  375. 'location' => 'query',
  376. 'type' => 'boolean',
  377. ],
  378. 'requestId' => [
  379. 'location' => 'query',
  380. 'type' => 'string',
  381. ],
  382. 'validateOnly' => [
  383. 'location' => 'query',
  384. 'type' => 'boolean',
  385. ],
  386. ],
  387. ],'executeMutation' => [
  388. 'path' => 'v1/{+name}:executeMutation',
  389. 'httpMethod' => 'POST',
  390. 'parameters' => [
  391. 'name' => [
  392. 'location' => 'path',
  393. 'type' => 'string',
  394. 'required' => true,
  395. ],
  396. ],
  397. ],'executeQuery' => [
  398. 'path' => 'v1/{+name}:executeQuery',
  399. 'httpMethod' => 'POST',
  400. 'parameters' => [
  401. 'name' => [
  402. 'location' => 'path',
  403. 'type' => 'string',
  404. 'required' => true,
  405. ],
  406. ],
  407. ],'get' => [
  408. 'path' => 'v1/{+name}',
  409. 'httpMethod' => 'GET',
  410. 'parameters' => [
  411. 'name' => [
  412. 'location' => 'path',
  413. 'type' => 'string',
  414. 'required' => true,
  415. ],
  416. ],
  417. ],'impersonateMutation' => [
  418. 'path' => 'v1/{+name}:impersonateMutation',
  419. 'httpMethod' => 'POST',
  420. 'parameters' => [
  421. 'name' => [
  422. 'location' => 'path',
  423. 'type' => 'string',
  424. 'required' => true,
  425. ],
  426. ],
  427. ],'impersonateQuery' => [
  428. 'path' => 'v1/{+name}:impersonateQuery',
  429. 'httpMethod' => 'POST',
  430. 'parameters' => [
  431. 'name' => [
  432. 'location' => 'path',
  433. 'type' => 'string',
  434. 'required' => true,
  435. ],
  436. ],
  437. ],'list' => [
  438. 'path' => 'v1/{+parent}/connectors',
  439. 'httpMethod' => 'GET',
  440. 'parameters' => [
  441. 'parent' => [
  442. 'location' => 'path',
  443. 'type' => 'string',
  444. 'required' => true,
  445. ],
  446. 'filter' => [
  447. 'location' => 'query',
  448. 'type' => 'string',
  449. ],
  450. 'orderBy' => [
  451. 'location' => 'query',
  452. 'type' => 'string',
  453. ],
  454. 'pageSize' => [
  455. 'location' => 'query',
  456. 'type' => 'integer',
  457. ],
  458. 'pageToken' => [
  459. 'location' => 'query',
  460. 'type' => 'string',
  461. ],
  462. ],
  463. ],'patch' => [
  464. 'path' => 'v1/{+name}',
  465. 'httpMethod' => 'PATCH',
  466. 'parameters' => [
  467. 'name' => [
  468. 'location' => 'path',
  469. 'type' => 'string',
  470. 'required' => true,
  471. ],
  472. 'allowMissing' => [
  473. 'location' => 'query',
  474. 'type' => 'boolean',
  475. ],
  476. 'requestId' => [
  477. 'location' => 'query',
  478. 'type' => 'string',
  479. ],
  480. 'updateMask' => [
  481. 'location' => 'query',
  482. 'type' => 'string',
  483. ],
  484. 'validateOnly' => [
  485. 'location' => 'query',
  486. 'type' => 'boolean',
  487. ],
  488. ],
  489. ],
  490. ]
  491. ]
  492. );
  493. $this->projects_locations_services_schemas = new FirebaseDataConnect\Resource\ProjectsLocationsServicesSchemas(
  494. $this,
  495. $this->serviceName,
  496. 'schemas',
  497. [
  498. 'methods' => [
  499. 'create' => [
  500. 'path' => 'v1/{+parent}/schemas',
  501. 'httpMethod' => 'POST',
  502. 'parameters' => [
  503. 'parent' => [
  504. 'location' => 'path',
  505. 'type' => 'string',
  506. 'required' => true,
  507. ],
  508. 'requestId' => [
  509. 'location' => 'query',
  510. 'type' => 'string',
  511. ],
  512. 'schemaId' => [
  513. 'location' => 'query',
  514. 'type' => 'string',
  515. ],
  516. 'validateOnly' => [
  517. 'location' => 'query',
  518. 'type' => 'boolean',
  519. ],
  520. ],
  521. ],'delete' => [
  522. 'path' => 'v1/{+name}',
  523. 'httpMethod' => 'DELETE',
  524. 'parameters' => [
  525. 'name' => [
  526. 'location' => 'path',
  527. 'type' => 'string',
  528. 'required' => true,
  529. ],
  530. 'allowMissing' => [
  531. 'location' => 'query',
  532. 'type' => 'boolean',
  533. ],
  534. 'etag' => [
  535. 'location' => 'query',
  536. 'type' => 'string',
  537. ],
  538. 'force' => [
  539. 'location' => 'query',
  540. 'type' => 'boolean',
  541. ],
  542. 'requestId' => [
  543. 'location' => 'query',
  544. 'type' => 'string',
  545. ],
  546. 'validateOnly' => [
  547. 'location' => 'query',
  548. 'type' => 'boolean',
  549. ],
  550. ],
  551. ],'get' => [
  552. 'path' => 'v1/{+name}',
  553. 'httpMethod' => 'GET',
  554. 'parameters' => [
  555. 'name' => [
  556. 'location' => 'path',
  557. 'type' => 'string',
  558. 'required' => true,
  559. ],
  560. ],
  561. ],'list' => [
  562. 'path' => 'v1/{+parent}/schemas',
  563. 'httpMethod' => 'GET',
  564. 'parameters' => [
  565. 'parent' => [
  566. 'location' => 'path',
  567. 'type' => 'string',
  568. 'required' => true,
  569. ],
  570. 'filter' => [
  571. 'location' => 'query',
  572. 'type' => 'string',
  573. ],
  574. 'orderBy' => [
  575. 'location' => 'query',
  576. 'type' => 'string',
  577. ],
  578. 'pageSize' => [
  579. 'location' => 'query',
  580. 'type' => 'integer',
  581. ],
  582. 'pageToken' => [
  583. 'location' => 'query',
  584. 'type' => 'string',
  585. ],
  586. ],
  587. ],'patch' => [
  588. 'path' => 'v1/{+name}',
  589. 'httpMethod' => 'PATCH',
  590. 'parameters' => [
  591. 'name' => [
  592. 'location' => 'path',
  593. 'type' => 'string',
  594. 'required' => true,
  595. ],
  596. 'allowMissing' => [
  597. 'location' => 'query',
  598. 'type' => 'boolean',
  599. ],
  600. 'requestId' => [
  601. 'location' => 'query',
  602. 'type' => 'string',
  603. ],
  604. 'updateMask' => [
  605. 'location' => 'query',
  606. 'type' => 'string',
  607. ],
  608. 'validateOnly' => [
  609. 'location' => 'query',
  610. 'type' => 'boolean',
  611. ],
  612. ],
  613. ],
  614. ]
  615. ]
  616. );
  617. }
  618. }
  619. // Adding a class alias for backwards compatibility with the previous class name.
  620. class_alias(FirebaseDataConnect::class, 'Google_Service_FirebaseDataConnect');