CloudAlloyDBAdmin.php 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  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 CloudAlloyDBAdmin (v1).
  21. *
  22. * <p>
  23. * AlloyDB for PostgreSQL is an open source-compatible database service that
  24. * provides a powerful option for migrating, modernizing, or building
  25. * commercial-grade applications. It offers full compatibility with standard
  26. * PostgreSQL, and is more than 4x faster for transactional workloads and up to
  27. * 100x faster for analytical queries than standard PostgreSQL in our
  28. * performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability
  29. * SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use
  30. * cases, allowing you to build new applications that require high transaction
  31. * throughput, large database sizes, or multiple read resources; scale existing
  32. * PostgreSQL workloads with no application changes; and modernize legacy
  33. * proprietary databases.</p>
  34. *
  35. * <p>
  36. * For more information about this service, see the API
  37. * <a href="https://cloud.google.com/alloydb/" target="_blank">Documentation</a>
  38. * </p>
  39. *
  40. * @author Google, Inc.
  41. */
  42. class CloudAlloyDBAdmin extends \Google\Service
  43. {
  44. /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
  45. const CLOUD_PLATFORM =
  46. "https://www.googleapis.com/auth/cloud-platform";
  47. public $projects_locations;
  48. public $projects_locations_backups;
  49. public $projects_locations_clusters;
  50. public $projects_locations_clusters_instances;
  51. public $projects_locations_clusters_users;
  52. public $projects_locations_operations;
  53. public $projects_locations_supportedDatabaseFlags;
  54. public $rootUrlTemplate;
  55. /**
  56. * Constructs the internal representation of the CloudAlloyDBAdmin service.
  57. *
  58. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  59. * config array to pass to a new Client instance.
  60. * @param string $rootUrl The root URL used for requests to the service.
  61. */
  62. public function __construct($clientOrConfig = [], $rootUrl = null)
  63. {
  64. parent::__construct($clientOrConfig);
  65. $this->rootUrl = $rootUrl ?: 'https://alloydb.googleapis.com/';
  66. $this->rootUrlTemplate = $rootUrl ?: 'https://alloydb.UNIVERSE_DOMAIN/';
  67. $this->servicePath = '';
  68. $this->batchPath = 'batch';
  69. $this->version = 'v1';
  70. $this->serviceName = 'alloydb';
  71. $this->projects_locations = new CloudAlloyDBAdmin\Resource\ProjectsLocations(
  72. $this,
  73. $this->serviceName,
  74. 'locations',
  75. [
  76. 'methods' => [
  77. 'get' => [
  78. 'path' => 'v1/{+name}',
  79. 'httpMethod' => 'GET',
  80. 'parameters' => [
  81. 'name' => [
  82. 'location' => 'path',
  83. 'type' => 'string',
  84. 'required' => true,
  85. ],
  86. ],
  87. ],'list' => [
  88. 'path' => 'v1/{+name}/locations',
  89. 'httpMethod' => 'GET',
  90. 'parameters' => [
  91. 'name' => [
  92. 'location' => 'path',
  93. 'type' => 'string',
  94. 'required' => true,
  95. ],
  96. 'extraLocationTypes' => [
  97. 'location' => 'query',
  98. 'type' => 'string',
  99. 'repeated' => true,
  100. ],
  101. 'filter' => [
  102. 'location' => 'query',
  103. 'type' => 'string',
  104. ],
  105. 'pageSize' => [
  106. 'location' => 'query',
  107. 'type' => 'integer',
  108. ],
  109. 'pageToken' => [
  110. 'location' => 'query',
  111. 'type' => 'string',
  112. ],
  113. ],
  114. ],
  115. ]
  116. ]
  117. );
  118. $this->projects_locations_backups = new CloudAlloyDBAdmin\Resource\ProjectsLocationsBackups(
  119. $this,
  120. $this->serviceName,
  121. 'backups',
  122. [
  123. 'methods' => [
  124. 'create' => [
  125. 'path' => 'v1/{+parent}/backups',
  126. 'httpMethod' => 'POST',
  127. 'parameters' => [
  128. 'parent' => [
  129. 'location' => 'path',
  130. 'type' => 'string',
  131. 'required' => true,
  132. ],
  133. 'backupId' => [
  134. 'location' => 'query',
  135. 'type' => 'string',
  136. ],
  137. 'requestId' => [
  138. 'location' => 'query',
  139. 'type' => 'string',
  140. ],
  141. 'validateOnly' => [
  142. 'location' => 'query',
  143. 'type' => 'boolean',
  144. ],
  145. ],
  146. ],'delete' => [
  147. 'path' => 'v1/{+name}',
  148. 'httpMethod' => 'DELETE',
  149. 'parameters' => [
  150. 'name' => [
  151. 'location' => 'path',
  152. 'type' => 'string',
  153. 'required' => true,
  154. ],
  155. 'etag' => [
  156. 'location' => 'query',
  157. 'type' => 'string',
  158. ],
  159. 'requestId' => [
  160. 'location' => 'query',
  161. 'type' => 'string',
  162. ],
  163. 'validateOnly' => [
  164. 'location' => 'query',
  165. 'type' => 'boolean',
  166. ],
  167. ],
  168. ],'get' => [
  169. 'path' => 'v1/{+name}',
  170. 'httpMethod' => 'GET',
  171. 'parameters' => [
  172. 'name' => [
  173. 'location' => 'path',
  174. 'type' => 'string',
  175. 'required' => true,
  176. ],
  177. 'view' => [
  178. 'location' => 'query',
  179. 'type' => 'string',
  180. ],
  181. ],
  182. ],'list' => [
  183. 'path' => 'v1/{+parent}/backups',
  184. 'httpMethod' => 'GET',
  185. 'parameters' => [
  186. 'parent' => [
  187. 'location' => 'path',
  188. 'type' => 'string',
  189. 'required' => true,
  190. ],
  191. 'filter' => [
  192. 'location' => 'query',
  193. 'type' => 'string',
  194. ],
  195. 'orderBy' => [
  196. 'location' => 'query',
  197. 'type' => 'string',
  198. ],
  199. 'pageSize' => [
  200. 'location' => 'query',
  201. 'type' => 'integer',
  202. ],
  203. 'pageToken' => [
  204. 'location' => 'query',
  205. 'type' => 'string',
  206. ],
  207. 'view' => [
  208. 'location' => 'query',
  209. 'type' => 'string',
  210. ],
  211. ],
  212. ],'patch' => [
  213. 'path' => 'v1/{+name}',
  214. 'httpMethod' => 'PATCH',
  215. 'parameters' => [
  216. 'name' => [
  217. 'location' => 'path',
  218. 'type' => 'string',
  219. 'required' => true,
  220. ],
  221. 'allowMissing' => [
  222. 'location' => 'query',
  223. 'type' => 'boolean',
  224. ],
  225. 'requestId' => [
  226. 'location' => 'query',
  227. 'type' => 'string',
  228. ],
  229. 'updateMask' => [
  230. 'location' => 'query',
  231. 'type' => 'string',
  232. ],
  233. 'validateOnly' => [
  234. 'location' => 'query',
  235. 'type' => 'boolean',
  236. ],
  237. ],
  238. ],
  239. ]
  240. ]
  241. );
  242. $this->projects_locations_clusters = new CloudAlloyDBAdmin\Resource\ProjectsLocationsClusters(
  243. $this,
  244. $this->serviceName,
  245. 'clusters',
  246. [
  247. 'methods' => [
  248. 'create' => [
  249. 'path' => 'v1/{+parent}/clusters',
  250. 'httpMethod' => 'POST',
  251. 'parameters' => [
  252. 'parent' => [
  253. 'location' => 'path',
  254. 'type' => 'string',
  255. 'required' => true,
  256. ],
  257. 'clusterId' => [
  258. 'location' => 'query',
  259. 'type' => 'string',
  260. ],
  261. 'requestId' => [
  262. 'location' => 'query',
  263. 'type' => 'string',
  264. ],
  265. 'validateOnly' => [
  266. 'location' => 'query',
  267. 'type' => 'boolean',
  268. ],
  269. ],
  270. ],'createsecondary' => [
  271. 'path' => 'v1/{+parent}/clusters:createsecondary',
  272. 'httpMethod' => 'POST',
  273. 'parameters' => [
  274. 'parent' => [
  275. 'location' => 'path',
  276. 'type' => 'string',
  277. 'required' => true,
  278. ],
  279. 'clusterId' => [
  280. 'location' => 'query',
  281. 'type' => 'string',
  282. ],
  283. 'requestId' => [
  284. 'location' => 'query',
  285. 'type' => 'string',
  286. ],
  287. 'validateOnly' => [
  288. 'location' => 'query',
  289. 'type' => 'boolean',
  290. ],
  291. ],
  292. ],'delete' => [
  293. 'path' => 'v1/{+name}',
  294. 'httpMethod' => 'DELETE',
  295. 'parameters' => [
  296. 'name' => [
  297. 'location' => 'path',
  298. 'type' => 'string',
  299. 'required' => true,
  300. ],
  301. 'etag' => [
  302. 'location' => 'query',
  303. 'type' => 'string',
  304. ],
  305. 'force' => [
  306. 'location' => 'query',
  307. 'type' => 'boolean',
  308. ],
  309. 'requestId' => [
  310. 'location' => 'query',
  311. 'type' => 'string',
  312. ],
  313. 'validateOnly' => [
  314. 'location' => 'query',
  315. 'type' => 'boolean',
  316. ],
  317. ],
  318. ],'export' => [
  319. 'path' => 'v1/{+name}:export',
  320. 'httpMethod' => 'POST',
  321. 'parameters' => [
  322. 'name' => [
  323. 'location' => 'path',
  324. 'type' => 'string',
  325. 'required' => true,
  326. ],
  327. ],
  328. ],'get' => [
  329. 'path' => 'v1/{+name}',
  330. 'httpMethod' => 'GET',
  331. 'parameters' => [
  332. 'name' => [
  333. 'location' => 'path',
  334. 'type' => 'string',
  335. 'required' => true,
  336. ],
  337. 'view' => [
  338. 'location' => 'query',
  339. 'type' => 'string',
  340. ],
  341. ],
  342. ],'import' => [
  343. 'path' => 'v1/{+name}:import',
  344. 'httpMethod' => 'POST',
  345. 'parameters' => [
  346. 'name' => [
  347. 'location' => 'path',
  348. 'type' => 'string',
  349. 'required' => true,
  350. ],
  351. ],
  352. ],'list' => [
  353. 'path' => 'v1/{+parent}/clusters',
  354. 'httpMethod' => 'GET',
  355. 'parameters' => [
  356. 'parent' => [
  357. 'location' => 'path',
  358. 'type' => 'string',
  359. 'required' => true,
  360. ],
  361. 'filter' => [
  362. 'location' => 'query',
  363. 'type' => 'string',
  364. ],
  365. 'orderBy' => [
  366. 'location' => 'query',
  367. 'type' => 'string',
  368. ],
  369. 'pageSize' => [
  370. 'location' => 'query',
  371. 'type' => 'integer',
  372. ],
  373. 'pageToken' => [
  374. 'location' => 'query',
  375. 'type' => 'string',
  376. ],
  377. ],
  378. ],'patch' => [
  379. 'path' => 'v1/{+name}',
  380. 'httpMethod' => 'PATCH',
  381. 'parameters' => [
  382. 'name' => [
  383. 'location' => 'path',
  384. 'type' => 'string',
  385. 'required' => true,
  386. ],
  387. 'allowMissing' => [
  388. 'location' => 'query',
  389. 'type' => 'boolean',
  390. ],
  391. 'requestId' => [
  392. 'location' => 'query',
  393. 'type' => 'string',
  394. ],
  395. 'updateMask' => [
  396. 'location' => 'query',
  397. 'type' => 'string',
  398. ],
  399. 'validateOnly' => [
  400. 'location' => 'query',
  401. 'type' => 'boolean',
  402. ],
  403. ],
  404. ],'promote' => [
  405. 'path' => 'v1/{+name}:promote',
  406. 'httpMethod' => 'POST',
  407. 'parameters' => [
  408. 'name' => [
  409. 'location' => 'path',
  410. 'type' => 'string',
  411. 'required' => true,
  412. ],
  413. ],
  414. ],'restore' => [
  415. 'path' => 'v1/{+parent}/clusters:restore',
  416. 'httpMethod' => 'POST',
  417. 'parameters' => [
  418. 'parent' => [
  419. 'location' => 'path',
  420. 'type' => 'string',
  421. 'required' => true,
  422. ],
  423. ],
  424. ],'restoreFromCloudSQL' => [
  425. 'path' => 'v1/{+parent}/clusters:restoreFromCloudSQL',
  426. 'httpMethod' => 'POST',
  427. 'parameters' => [
  428. 'parent' => [
  429. 'location' => 'path',
  430. 'type' => 'string',
  431. 'required' => true,
  432. ],
  433. ],
  434. ],'switchover' => [
  435. 'path' => 'v1/{+name}:switchover',
  436. 'httpMethod' => 'POST',
  437. 'parameters' => [
  438. 'name' => [
  439. 'location' => 'path',
  440. 'type' => 'string',
  441. 'required' => true,
  442. ],
  443. ],
  444. ],'upgrade' => [
  445. 'path' => 'v1/{+name}:upgrade',
  446. 'httpMethod' => 'PATCH',
  447. 'parameters' => [
  448. 'name' => [
  449. 'location' => 'path',
  450. 'type' => 'string',
  451. 'required' => true,
  452. ],
  453. ],
  454. ],
  455. ]
  456. ]
  457. );
  458. $this->projects_locations_clusters_instances = new CloudAlloyDBAdmin\Resource\ProjectsLocationsClustersInstances(
  459. $this,
  460. $this->serviceName,
  461. 'instances',
  462. [
  463. 'methods' => [
  464. 'create' => [
  465. 'path' => 'v1/{+parent}/instances',
  466. 'httpMethod' => 'POST',
  467. 'parameters' => [
  468. 'parent' => [
  469. 'location' => 'path',
  470. 'type' => 'string',
  471. 'required' => true,
  472. ],
  473. 'instanceId' => [
  474. 'location' => 'query',
  475. 'type' => 'string',
  476. ],
  477. 'requestId' => [
  478. 'location' => 'query',
  479. 'type' => 'string',
  480. ],
  481. 'validateOnly' => [
  482. 'location' => 'query',
  483. 'type' => 'boolean',
  484. ],
  485. ],
  486. ],'createsecondary' => [
  487. 'path' => 'v1/{+parent}/instances:createsecondary',
  488. 'httpMethod' => 'POST',
  489. 'parameters' => [
  490. 'parent' => [
  491. 'location' => 'path',
  492. 'type' => 'string',
  493. 'required' => true,
  494. ],
  495. 'instanceId' => [
  496. 'location' => 'query',
  497. 'type' => 'string',
  498. ],
  499. 'requestId' => [
  500. 'location' => 'query',
  501. 'type' => 'string',
  502. ],
  503. 'validateOnly' => [
  504. 'location' => 'query',
  505. 'type' => 'boolean',
  506. ],
  507. ],
  508. ],'delete' => [
  509. 'path' => 'v1/{+name}',
  510. 'httpMethod' => 'DELETE',
  511. 'parameters' => [
  512. 'name' => [
  513. 'location' => 'path',
  514. 'type' => 'string',
  515. 'required' => true,
  516. ],
  517. 'etag' => [
  518. 'location' => 'query',
  519. 'type' => 'string',
  520. ],
  521. 'requestId' => [
  522. 'location' => 'query',
  523. 'type' => 'string',
  524. ],
  525. 'validateOnly' => [
  526. 'location' => 'query',
  527. 'type' => 'boolean',
  528. ],
  529. ],
  530. ],'failover' => [
  531. 'path' => 'v1/{+name}:failover',
  532. 'httpMethod' => 'POST',
  533. 'parameters' => [
  534. 'name' => [
  535. 'location' => 'path',
  536. 'type' => 'string',
  537. 'required' => true,
  538. ],
  539. ],
  540. ],'get' => [
  541. 'path' => 'v1/{+name}',
  542. 'httpMethod' => 'GET',
  543. 'parameters' => [
  544. 'name' => [
  545. 'location' => 'path',
  546. 'type' => 'string',
  547. 'required' => true,
  548. ],
  549. 'view' => [
  550. 'location' => 'query',
  551. 'type' => 'string',
  552. ],
  553. ],
  554. ],'getConnectionInfo' => [
  555. 'path' => 'v1/{+parent}/connectionInfo',
  556. 'httpMethod' => 'GET',
  557. 'parameters' => [
  558. 'parent' => [
  559. 'location' => 'path',
  560. 'type' => 'string',
  561. 'required' => true,
  562. ],
  563. 'requestId' => [
  564. 'location' => 'query',
  565. 'type' => 'string',
  566. ],
  567. ],
  568. ],'injectFault' => [
  569. 'path' => 'v1/{+name}:injectFault',
  570. 'httpMethod' => 'POST',
  571. 'parameters' => [
  572. 'name' => [
  573. 'location' => 'path',
  574. 'type' => 'string',
  575. 'required' => true,
  576. ],
  577. ],
  578. ],'list' => [
  579. 'path' => 'v1/{+parent}/instances',
  580. 'httpMethod' => 'GET',
  581. 'parameters' => [
  582. 'parent' => [
  583. 'location' => 'path',
  584. 'type' => 'string',
  585. 'required' => true,
  586. ],
  587. 'filter' => [
  588. 'location' => 'query',
  589. 'type' => 'string',
  590. ],
  591. 'orderBy' => [
  592. 'location' => 'query',
  593. 'type' => 'string',
  594. ],
  595. 'pageSize' => [
  596. 'location' => 'query',
  597. 'type' => 'integer',
  598. ],
  599. 'pageToken' => [
  600. 'location' => 'query',
  601. 'type' => 'string',
  602. ],
  603. ],
  604. ],'patch' => [
  605. 'path' => 'v1/{+name}',
  606. 'httpMethod' => 'PATCH',
  607. 'parameters' => [
  608. 'name' => [
  609. 'location' => 'path',
  610. 'type' => 'string',
  611. 'required' => true,
  612. ],
  613. 'allowMissing' => [
  614. 'location' => 'query',
  615. 'type' => 'boolean',
  616. ],
  617. 'requestId' => [
  618. 'location' => 'query',
  619. 'type' => 'string',
  620. ],
  621. 'updateMask' => [
  622. 'location' => 'query',
  623. 'type' => 'string',
  624. ],
  625. 'validateOnly' => [
  626. 'location' => 'query',
  627. 'type' => 'boolean',
  628. ],
  629. ],
  630. ],'restart' => [
  631. 'path' => 'v1/{+name}:restart',
  632. 'httpMethod' => 'POST',
  633. 'parameters' => [
  634. 'name' => [
  635. 'location' => 'path',
  636. 'type' => 'string',
  637. 'required' => true,
  638. ],
  639. ],
  640. ],
  641. ]
  642. ]
  643. );
  644. $this->projects_locations_clusters_users = new CloudAlloyDBAdmin\Resource\ProjectsLocationsClustersUsers(
  645. $this,
  646. $this->serviceName,
  647. 'users',
  648. [
  649. 'methods' => [
  650. 'create' => [
  651. 'path' => 'v1/{+parent}/users',
  652. 'httpMethod' => 'POST',
  653. 'parameters' => [
  654. 'parent' => [
  655. 'location' => 'path',
  656. 'type' => 'string',
  657. 'required' => true,
  658. ],
  659. 'requestId' => [
  660. 'location' => 'query',
  661. 'type' => 'string',
  662. ],
  663. 'userId' => [
  664. 'location' => 'query',
  665. 'type' => 'string',
  666. ],
  667. 'validateOnly' => [
  668. 'location' => 'query',
  669. 'type' => 'boolean',
  670. ],
  671. ],
  672. ],'delete' => [
  673. 'path' => 'v1/{+name}',
  674. 'httpMethod' => 'DELETE',
  675. 'parameters' => [
  676. 'name' => [
  677. 'location' => 'path',
  678. 'type' => 'string',
  679. 'required' => true,
  680. ],
  681. 'requestId' => [
  682. 'location' => 'query',
  683. 'type' => 'string',
  684. ],
  685. 'validateOnly' => [
  686. 'location' => 'query',
  687. 'type' => 'boolean',
  688. ],
  689. ],
  690. ],'get' => [
  691. 'path' => 'v1/{+name}',
  692. 'httpMethod' => 'GET',
  693. 'parameters' => [
  694. 'name' => [
  695. 'location' => 'path',
  696. 'type' => 'string',
  697. 'required' => true,
  698. ],
  699. ],
  700. ],'list' => [
  701. 'path' => 'v1/{+parent}/users',
  702. 'httpMethod' => 'GET',
  703. 'parameters' => [
  704. 'parent' => [
  705. 'location' => 'path',
  706. 'type' => 'string',
  707. 'required' => true,
  708. ],
  709. 'filter' => [
  710. 'location' => 'query',
  711. 'type' => 'string',
  712. ],
  713. 'orderBy' => [
  714. 'location' => 'query',
  715. 'type' => 'string',
  716. ],
  717. 'pageSize' => [
  718. 'location' => 'query',
  719. 'type' => 'integer',
  720. ],
  721. 'pageToken' => [
  722. 'location' => 'query',
  723. 'type' => 'string',
  724. ],
  725. ],
  726. ],'patch' => [
  727. 'path' => 'v1/{+name}',
  728. 'httpMethod' => 'PATCH',
  729. 'parameters' => [
  730. 'name' => [
  731. 'location' => 'path',
  732. 'type' => 'string',
  733. 'required' => true,
  734. ],
  735. 'allowMissing' => [
  736. 'location' => 'query',
  737. 'type' => 'boolean',
  738. ],
  739. 'requestId' => [
  740. 'location' => 'query',
  741. 'type' => 'string',
  742. ],
  743. 'updateMask' => [
  744. 'location' => 'query',
  745. 'type' => 'string',
  746. ],
  747. 'validateOnly' => [
  748. 'location' => 'query',
  749. 'type' => 'boolean',
  750. ],
  751. ],
  752. ],
  753. ]
  754. ]
  755. );
  756. $this->projects_locations_operations = new CloudAlloyDBAdmin\Resource\ProjectsLocationsOperations(
  757. $this,
  758. $this->serviceName,
  759. 'operations',
  760. [
  761. 'methods' => [
  762. 'cancel' => [
  763. 'path' => 'v1/{+name}:cancel',
  764. 'httpMethod' => 'POST',
  765. 'parameters' => [
  766. 'name' => [
  767. 'location' => 'path',
  768. 'type' => 'string',
  769. 'required' => true,
  770. ],
  771. ],
  772. ],'delete' => [
  773. 'path' => 'v1/{+name}',
  774. 'httpMethod' => 'DELETE',
  775. 'parameters' => [
  776. 'name' => [
  777. 'location' => 'path',
  778. 'type' => 'string',
  779. 'required' => true,
  780. ],
  781. ],
  782. ],'get' => [
  783. 'path' => 'v1/{+name}',
  784. 'httpMethod' => 'GET',
  785. 'parameters' => [
  786. 'name' => [
  787. 'location' => 'path',
  788. 'type' => 'string',
  789. 'required' => true,
  790. ],
  791. ],
  792. ],'list' => [
  793. 'path' => 'v1/{+name}/operations',
  794. 'httpMethod' => 'GET',
  795. 'parameters' => [
  796. 'name' => [
  797. 'location' => 'path',
  798. 'type' => 'string',
  799. 'required' => true,
  800. ],
  801. 'filter' => [
  802. 'location' => 'query',
  803. 'type' => 'string',
  804. ],
  805. 'pageSize' => [
  806. 'location' => 'query',
  807. 'type' => 'integer',
  808. ],
  809. 'pageToken' => [
  810. 'location' => 'query',
  811. 'type' => 'string',
  812. ],
  813. 'returnPartialSuccess' => [
  814. 'location' => 'query',
  815. 'type' => 'boolean',
  816. ],
  817. ],
  818. ],
  819. ]
  820. ]
  821. );
  822. $this->projects_locations_supportedDatabaseFlags = new CloudAlloyDBAdmin\Resource\ProjectsLocationsSupportedDatabaseFlags(
  823. $this,
  824. $this->serviceName,
  825. 'supportedDatabaseFlags',
  826. [
  827. 'methods' => [
  828. 'list' => [
  829. 'path' => 'v1/{+parent}/supportedDatabaseFlags',
  830. 'httpMethod' => 'GET',
  831. 'parameters' => [
  832. 'parent' => [
  833. 'location' => 'path',
  834. 'type' => 'string',
  835. 'required' => true,
  836. ],
  837. 'pageSize' => [
  838. 'location' => 'query',
  839. 'type' => 'integer',
  840. ],
  841. 'pageToken' => [
  842. 'location' => 'query',
  843. 'type' => 'string',
  844. ],
  845. 'scope' => [
  846. 'location' => 'query',
  847. 'type' => 'string',
  848. ],
  849. ],
  850. ],
  851. ]
  852. ]
  853. );
  854. }
  855. }
  856. // Adding a class alias for backwards compatibility with the previous class name.
  857. class_alias(CloudAlloyDBAdmin::class, 'Google_Service_CloudAlloyDBAdmin');