Container.php 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270
  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 Container (v1).
  21. *
  22. * <p>
  23. * Builds and manages container-based applications, powered by the open source
  24. * Kubernetes technology.</p>
  25. *
  26. * <p>
  27. * For more information about this service, see the API
  28. * <a href="https://cloud.google.com/container-engine/" target="_blank">Documentation</a>
  29. * </p>
  30. *
  31. * @author Google, Inc.
  32. */
  33. class Container extends \Google\Service
  34. {
  35. /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
  36. const CLOUD_PLATFORM =
  37. "https://www.googleapis.com/auth/cloud-platform";
  38. public $projects_aggregated_usableSubnetworks;
  39. public $projects_locations;
  40. public $projects_locations_clusters;
  41. public $projects_locations_clusters_nodePools;
  42. public $projects_locations_clusters_well_known;
  43. public $projects_locations_operations;
  44. public $projects_zones;
  45. public $projects_zones_clusters;
  46. public $projects_zones_clusters_nodePools;
  47. public $projects_zones_operations;
  48. /**
  49. * Constructs the internal representation of the Container service.
  50. *
  51. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  52. * config array to pass to a new Client instance.
  53. * @param string $rootUrl The root URL used for requests to the service.
  54. */
  55. public function __construct($clientOrConfig = [], $rootUrl = null)
  56. {
  57. parent::__construct($clientOrConfig);
  58. $this->rootUrl = $rootUrl ?: 'https://container.googleapis.com/';
  59. $this->servicePath = '';
  60. $this->batchPath = 'batch';
  61. $this->version = 'v1';
  62. $this->serviceName = 'container';
  63. $this->projects_aggregated_usableSubnetworks = new Container\Resource\ProjectsAggregatedUsableSubnetworks(
  64. $this,
  65. $this->serviceName,
  66. 'usableSubnetworks',
  67. [
  68. 'methods' => [
  69. 'list' => [
  70. 'path' => 'v1/{+parent}/aggregated/usableSubnetworks',
  71. 'httpMethod' => 'GET',
  72. 'parameters' => [
  73. 'parent' => [
  74. 'location' => 'path',
  75. 'type' => 'string',
  76. 'required' => true,
  77. ],
  78. 'filter' => [
  79. 'location' => 'query',
  80. 'type' => 'string',
  81. ],
  82. 'pageSize' => [
  83. 'location' => 'query',
  84. 'type' => 'integer',
  85. ],
  86. 'pageToken' => [
  87. 'location' => 'query',
  88. 'type' => 'string',
  89. ],
  90. ],
  91. ],
  92. ]
  93. ]
  94. );
  95. $this->projects_locations = new Container\Resource\ProjectsLocations(
  96. $this,
  97. $this->serviceName,
  98. 'locations',
  99. [
  100. 'methods' => [
  101. 'getServerConfig' => [
  102. 'path' => 'v1/{+name}/serverConfig',
  103. 'httpMethod' => 'GET',
  104. 'parameters' => [
  105. 'name' => [
  106. 'location' => 'path',
  107. 'type' => 'string',
  108. 'required' => true,
  109. ],
  110. 'projectId' => [
  111. 'location' => 'query',
  112. 'type' => 'string',
  113. ],
  114. 'zone' => [
  115. 'location' => 'query',
  116. 'type' => 'string',
  117. ],
  118. ],
  119. ],
  120. ]
  121. ]
  122. );
  123. $this->projects_locations_clusters = new Container\Resource\ProjectsLocationsClusters(
  124. $this,
  125. $this->serviceName,
  126. 'clusters',
  127. [
  128. 'methods' => [
  129. 'completeIpRotation' => [
  130. 'path' => 'v1/{+name}:completeIpRotation',
  131. 'httpMethod' => 'POST',
  132. 'parameters' => [
  133. 'name' => [
  134. 'location' => 'path',
  135. 'type' => 'string',
  136. 'required' => true,
  137. ],
  138. ],
  139. ],'create' => [
  140. 'path' => 'v1/{+parent}/clusters',
  141. 'httpMethod' => 'POST',
  142. 'parameters' => [
  143. 'parent' => [
  144. 'location' => 'path',
  145. 'type' => 'string',
  146. 'required' => true,
  147. ],
  148. ],
  149. ],'delete' => [
  150. 'path' => 'v1/{+name}',
  151. 'httpMethod' => 'DELETE',
  152. 'parameters' => [
  153. 'name' => [
  154. 'location' => 'path',
  155. 'type' => 'string',
  156. 'required' => true,
  157. ],
  158. 'clusterId' => [
  159. 'location' => 'query',
  160. 'type' => 'string',
  161. ],
  162. 'projectId' => [
  163. 'location' => 'query',
  164. 'type' => 'string',
  165. ],
  166. 'zone' => [
  167. 'location' => 'query',
  168. 'type' => 'string',
  169. ],
  170. ],
  171. ],'get' => [
  172. 'path' => 'v1/{+name}',
  173. 'httpMethod' => 'GET',
  174. 'parameters' => [
  175. 'name' => [
  176. 'location' => 'path',
  177. 'type' => 'string',
  178. 'required' => true,
  179. ],
  180. 'clusterId' => [
  181. 'location' => 'query',
  182. 'type' => 'string',
  183. ],
  184. 'projectId' => [
  185. 'location' => 'query',
  186. 'type' => 'string',
  187. ],
  188. 'zone' => [
  189. 'location' => 'query',
  190. 'type' => 'string',
  191. ],
  192. ],
  193. ],'getJwks' => [
  194. 'path' => 'v1/{+parent}/jwks',
  195. 'httpMethod' => 'GET',
  196. 'parameters' => [
  197. 'parent' => [
  198. 'location' => 'path',
  199. 'type' => 'string',
  200. 'required' => true,
  201. ],
  202. ],
  203. ],'list' => [
  204. 'path' => 'v1/{+parent}/clusters',
  205. 'httpMethod' => 'GET',
  206. 'parameters' => [
  207. 'parent' => [
  208. 'location' => 'path',
  209. 'type' => 'string',
  210. 'required' => true,
  211. ],
  212. 'projectId' => [
  213. 'location' => 'query',
  214. 'type' => 'string',
  215. ],
  216. 'zone' => [
  217. 'location' => 'query',
  218. 'type' => 'string',
  219. ],
  220. ],
  221. ],'setAddons' => [
  222. 'path' => 'v1/{+name}:setAddons',
  223. 'httpMethod' => 'POST',
  224. 'parameters' => [
  225. 'name' => [
  226. 'location' => 'path',
  227. 'type' => 'string',
  228. 'required' => true,
  229. ],
  230. ],
  231. ],'setLegacyAbac' => [
  232. 'path' => 'v1/{+name}:setLegacyAbac',
  233. 'httpMethod' => 'POST',
  234. 'parameters' => [
  235. 'name' => [
  236. 'location' => 'path',
  237. 'type' => 'string',
  238. 'required' => true,
  239. ],
  240. ],
  241. ],'setLocations' => [
  242. 'path' => 'v1/{+name}:setLocations',
  243. 'httpMethod' => 'POST',
  244. 'parameters' => [
  245. 'name' => [
  246. 'location' => 'path',
  247. 'type' => 'string',
  248. 'required' => true,
  249. ],
  250. ],
  251. ],'setLogging' => [
  252. 'path' => 'v1/{+name}:setLogging',
  253. 'httpMethod' => 'POST',
  254. 'parameters' => [
  255. 'name' => [
  256. 'location' => 'path',
  257. 'type' => 'string',
  258. 'required' => true,
  259. ],
  260. ],
  261. ],'setMaintenancePolicy' => [
  262. 'path' => 'v1/{+name}:setMaintenancePolicy',
  263. 'httpMethod' => 'POST',
  264. 'parameters' => [
  265. 'name' => [
  266. 'location' => 'path',
  267. 'type' => 'string',
  268. 'required' => true,
  269. ],
  270. ],
  271. ],'setMasterAuth' => [
  272. 'path' => 'v1/{+name}:setMasterAuth',
  273. 'httpMethod' => 'POST',
  274. 'parameters' => [
  275. 'name' => [
  276. 'location' => 'path',
  277. 'type' => 'string',
  278. 'required' => true,
  279. ],
  280. ],
  281. ],'setMonitoring' => [
  282. 'path' => 'v1/{+name}:setMonitoring',
  283. 'httpMethod' => 'POST',
  284. 'parameters' => [
  285. 'name' => [
  286. 'location' => 'path',
  287. 'type' => 'string',
  288. 'required' => true,
  289. ],
  290. ],
  291. ],'setNetworkPolicy' => [
  292. 'path' => 'v1/{+name}:setNetworkPolicy',
  293. 'httpMethod' => 'POST',
  294. 'parameters' => [
  295. 'name' => [
  296. 'location' => 'path',
  297. 'type' => 'string',
  298. 'required' => true,
  299. ],
  300. ],
  301. ],'setResourceLabels' => [
  302. 'path' => 'v1/{+name}:setResourceLabels',
  303. 'httpMethod' => 'POST',
  304. 'parameters' => [
  305. 'name' => [
  306. 'location' => 'path',
  307. 'type' => 'string',
  308. 'required' => true,
  309. ],
  310. ],
  311. ],'startIpRotation' => [
  312. 'path' => 'v1/{+name}:startIpRotation',
  313. 'httpMethod' => 'POST',
  314. 'parameters' => [
  315. 'name' => [
  316. 'location' => 'path',
  317. 'type' => 'string',
  318. 'required' => true,
  319. ],
  320. ],
  321. ],'update' => [
  322. 'path' => 'v1/{+name}',
  323. 'httpMethod' => 'PUT',
  324. 'parameters' => [
  325. 'name' => [
  326. 'location' => 'path',
  327. 'type' => 'string',
  328. 'required' => true,
  329. ],
  330. ],
  331. ],'updateMaster' => [
  332. 'path' => 'v1/{+name}:updateMaster',
  333. 'httpMethod' => 'POST',
  334. 'parameters' => [
  335. 'name' => [
  336. 'location' => 'path',
  337. 'type' => 'string',
  338. 'required' => true,
  339. ],
  340. ],
  341. ],
  342. ]
  343. ]
  344. );
  345. $this->projects_locations_clusters_nodePools = new Container\Resource\ProjectsLocationsClustersNodePools(
  346. $this,
  347. $this->serviceName,
  348. 'nodePools',
  349. [
  350. 'methods' => [
  351. 'create' => [
  352. 'path' => 'v1/{+parent}/nodePools',
  353. 'httpMethod' => 'POST',
  354. 'parameters' => [
  355. 'parent' => [
  356. 'location' => 'path',
  357. 'type' => 'string',
  358. 'required' => true,
  359. ],
  360. ],
  361. ],'delete' => [
  362. 'path' => 'v1/{+name}',
  363. 'httpMethod' => 'DELETE',
  364. 'parameters' => [
  365. 'name' => [
  366. 'location' => 'path',
  367. 'type' => 'string',
  368. 'required' => true,
  369. ],
  370. 'clusterId' => [
  371. 'location' => 'query',
  372. 'type' => 'string',
  373. ],
  374. 'nodePoolId' => [
  375. 'location' => 'query',
  376. 'type' => 'string',
  377. ],
  378. 'projectId' => [
  379. 'location' => 'query',
  380. 'type' => 'string',
  381. ],
  382. 'zone' => [
  383. 'location' => 'query',
  384. 'type' => 'string',
  385. ],
  386. ],
  387. ],'get' => [
  388. 'path' => 'v1/{+name}',
  389. 'httpMethod' => 'GET',
  390. 'parameters' => [
  391. 'name' => [
  392. 'location' => 'path',
  393. 'type' => 'string',
  394. 'required' => true,
  395. ],
  396. 'clusterId' => [
  397. 'location' => 'query',
  398. 'type' => 'string',
  399. ],
  400. 'nodePoolId' => [
  401. 'location' => 'query',
  402. 'type' => 'string',
  403. ],
  404. 'projectId' => [
  405. 'location' => 'query',
  406. 'type' => 'string',
  407. ],
  408. 'zone' => [
  409. 'location' => 'query',
  410. 'type' => 'string',
  411. ],
  412. ],
  413. ],'list' => [
  414. 'path' => 'v1/{+parent}/nodePools',
  415. 'httpMethod' => 'GET',
  416. 'parameters' => [
  417. 'parent' => [
  418. 'location' => 'path',
  419. 'type' => 'string',
  420. 'required' => true,
  421. ],
  422. 'clusterId' => [
  423. 'location' => 'query',
  424. 'type' => 'string',
  425. ],
  426. 'projectId' => [
  427. 'location' => 'query',
  428. 'type' => 'string',
  429. ],
  430. 'zone' => [
  431. 'location' => 'query',
  432. 'type' => 'string',
  433. ],
  434. ],
  435. ],'rollback' => [
  436. 'path' => 'v1/{+name}:rollback',
  437. 'httpMethod' => 'POST',
  438. 'parameters' => [
  439. 'name' => [
  440. 'location' => 'path',
  441. 'type' => 'string',
  442. 'required' => true,
  443. ],
  444. ],
  445. ],'setAutoscaling' => [
  446. 'path' => 'v1/{+name}:setAutoscaling',
  447. 'httpMethod' => 'POST',
  448. 'parameters' => [
  449. 'name' => [
  450. 'location' => 'path',
  451. 'type' => 'string',
  452. 'required' => true,
  453. ],
  454. ],
  455. ],'setManagement' => [
  456. 'path' => 'v1/{+name}:setManagement',
  457. 'httpMethod' => 'POST',
  458. 'parameters' => [
  459. 'name' => [
  460. 'location' => 'path',
  461. 'type' => 'string',
  462. 'required' => true,
  463. ],
  464. ],
  465. ],'setSize' => [
  466. 'path' => 'v1/{+name}:setSize',
  467. 'httpMethod' => 'POST',
  468. 'parameters' => [
  469. 'name' => [
  470. 'location' => 'path',
  471. 'type' => 'string',
  472. 'required' => true,
  473. ],
  474. ],
  475. ],'update' => [
  476. 'path' => 'v1/{+name}',
  477. 'httpMethod' => 'PUT',
  478. 'parameters' => [
  479. 'name' => [
  480. 'location' => 'path',
  481. 'type' => 'string',
  482. 'required' => true,
  483. ],
  484. ],
  485. ],
  486. ]
  487. ]
  488. );
  489. $this->projects_locations_clusters_well_known = new Container\Resource\ProjectsLocationsClustersWellKnown(
  490. $this,
  491. $this->serviceName,
  492. 'well_known',
  493. [
  494. 'methods' => [
  495. 'getOpenid-configuration' => [
  496. 'path' => 'v1/{+parent}/.well-known/openid-configuration',
  497. 'httpMethod' => 'GET',
  498. 'parameters' => [
  499. 'parent' => [
  500. 'location' => 'path',
  501. 'type' => 'string',
  502. 'required' => true,
  503. ],
  504. ],
  505. ],
  506. ]
  507. ]
  508. );
  509. $this->projects_locations_operations = new Container\Resource\ProjectsLocationsOperations(
  510. $this,
  511. $this->serviceName,
  512. 'operations',
  513. [
  514. 'methods' => [
  515. 'cancel' => [
  516. 'path' => 'v1/{+name}:cancel',
  517. 'httpMethod' => 'POST',
  518. 'parameters' => [
  519. 'name' => [
  520. 'location' => 'path',
  521. 'type' => 'string',
  522. 'required' => true,
  523. ],
  524. ],
  525. ],'get' => [
  526. 'path' => 'v1/{+name}',
  527. 'httpMethod' => 'GET',
  528. 'parameters' => [
  529. 'name' => [
  530. 'location' => 'path',
  531. 'type' => 'string',
  532. 'required' => true,
  533. ],
  534. 'operationId' => [
  535. 'location' => 'query',
  536. 'type' => 'string',
  537. ],
  538. 'projectId' => [
  539. 'location' => 'query',
  540. 'type' => 'string',
  541. ],
  542. 'zone' => [
  543. 'location' => 'query',
  544. 'type' => 'string',
  545. ],
  546. ],
  547. ],'list' => [
  548. 'path' => 'v1/{+parent}/operations',
  549. 'httpMethod' => 'GET',
  550. 'parameters' => [
  551. 'parent' => [
  552. 'location' => 'path',
  553. 'type' => 'string',
  554. 'required' => true,
  555. ],
  556. 'projectId' => [
  557. 'location' => 'query',
  558. 'type' => 'string',
  559. ],
  560. 'zone' => [
  561. 'location' => 'query',
  562. 'type' => 'string',
  563. ],
  564. ],
  565. ],
  566. ]
  567. ]
  568. );
  569. $this->projects_zones = new Container\Resource\ProjectsZones(
  570. $this,
  571. $this->serviceName,
  572. 'zones',
  573. [
  574. 'methods' => [
  575. 'getServerconfig' => [
  576. 'path' => 'v1/projects/{projectId}/zones/{zone}/serverconfig',
  577. 'httpMethod' => 'GET',
  578. 'parameters' => [
  579. 'projectId' => [
  580. 'location' => 'path',
  581. 'type' => 'string',
  582. 'required' => true,
  583. ],
  584. 'zone' => [
  585. 'location' => 'path',
  586. 'type' => 'string',
  587. 'required' => true,
  588. ],
  589. 'name' => [
  590. 'location' => 'query',
  591. 'type' => 'string',
  592. ],
  593. ],
  594. ],
  595. ]
  596. ]
  597. );
  598. $this->projects_zones_clusters = new Container\Resource\ProjectsZonesClusters(
  599. $this,
  600. $this->serviceName,
  601. 'clusters',
  602. [
  603. 'methods' => [
  604. 'addons' => [
  605. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons',
  606. 'httpMethod' => 'POST',
  607. 'parameters' => [
  608. 'projectId' => [
  609. 'location' => 'path',
  610. 'type' => 'string',
  611. 'required' => true,
  612. ],
  613. 'zone' => [
  614. 'location' => 'path',
  615. 'type' => 'string',
  616. 'required' => true,
  617. ],
  618. 'clusterId' => [
  619. 'location' => 'path',
  620. 'type' => 'string',
  621. 'required' => true,
  622. ],
  623. ],
  624. ],'completeIpRotation' => [
  625. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation',
  626. 'httpMethod' => 'POST',
  627. 'parameters' => [
  628. 'projectId' => [
  629. 'location' => 'path',
  630. 'type' => 'string',
  631. 'required' => true,
  632. ],
  633. 'zone' => [
  634. 'location' => 'path',
  635. 'type' => 'string',
  636. 'required' => true,
  637. ],
  638. 'clusterId' => [
  639. 'location' => 'path',
  640. 'type' => 'string',
  641. 'required' => true,
  642. ],
  643. ],
  644. ],'create' => [
  645. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters',
  646. 'httpMethod' => 'POST',
  647. 'parameters' => [
  648. 'projectId' => [
  649. 'location' => 'path',
  650. 'type' => 'string',
  651. 'required' => true,
  652. ],
  653. 'zone' => [
  654. 'location' => 'path',
  655. 'type' => 'string',
  656. 'required' => true,
  657. ],
  658. ],
  659. ],'delete' => [
  660. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}',
  661. 'httpMethod' => 'DELETE',
  662. 'parameters' => [
  663. 'projectId' => [
  664. 'location' => 'path',
  665. 'type' => 'string',
  666. 'required' => true,
  667. ],
  668. 'zone' => [
  669. 'location' => 'path',
  670. 'type' => 'string',
  671. 'required' => true,
  672. ],
  673. 'clusterId' => [
  674. 'location' => 'path',
  675. 'type' => 'string',
  676. 'required' => true,
  677. ],
  678. 'name' => [
  679. 'location' => 'query',
  680. 'type' => 'string',
  681. ],
  682. ],
  683. ],'get' => [
  684. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}',
  685. 'httpMethod' => 'GET',
  686. 'parameters' => [
  687. 'projectId' => [
  688. 'location' => 'path',
  689. 'type' => 'string',
  690. 'required' => true,
  691. ],
  692. 'zone' => [
  693. 'location' => 'path',
  694. 'type' => 'string',
  695. 'required' => true,
  696. ],
  697. 'clusterId' => [
  698. 'location' => 'path',
  699. 'type' => 'string',
  700. 'required' => true,
  701. ],
  702. 'name' => [
  703. 'location' => 'query',
  704. 'type' => 'string',
  705. ],
  706. ],
  707. ],'legacyAbac' => [
  708. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac',
  709. 'httpMethod' => 'POST',
  710. 'parameters' => [
  711. 'projectId' => [
  712. 'location' => 'path',
  713. 'type' => 'string',
  714. 'required' => true,
  715. ],
  716. 'zone' => [
  717. 'location' => 'path',
  718. 'type' => 'string',
  719. 'required' => true,
  720. ],
  721. 'clusterId' => [
  722. 'location' => 'path',
  723. 'type' => 'string',
  724. 'required' => true,
  725. ],
  726. ],
  727. ],'list' => [
  728. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters',
  729. 'httpMethod' => 'GET',
  730. 'parameters' => [
  731. 'projectId' => [
  732. 'location' => 'path',
  733. 'type' => 'string',
  734. 'required' => true,
  735. ],
  736. 'zone' => [
  737. 'location' => 'path',
  738. 'type' => 'string',
  739. 'required' => true,
  740. ],
  741. 'parent' => [
  742. 'location' => 'query',
  743. 'type' => 'string',
  744. ],
  745. ],
  746. ],'locations' => [
  747. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations',
  748. 'httpMethod' => 'POST',
  749. 'parameters' => [
  750. 'projectId' => [
  751. 'location' => 'path',
  752. 'type' => 'string',
  753. 'required' => true,
  754. ],
  755. 'zone' => [
  756. 'location' => 'path',
  757. 'type' => 'string',
  758. 'required' => true,
  759. ],
  760. 'clusterId' => [
  761. 'location' => 'path',
  762. 'type' => 'string',
  763. 'required' => true,
  764. ],
  765. ],
  766. ],'logging' => [
  767. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging',
  768. 'httpMethod' => 'POST',
  769. 'parameters' => [
  770. 'projectId' => [
  771. 'location' => 'path',
  772. 'type' => 'string',
  773. 'required' => true,
  774. ],
  775. 'zone' => [
  776. 'location' => 'path',
  777. 'type' => 'string',
  778. 'required' => true,
  779. ],
  780. 'clusterId' => [
  781. 'location' => 'path',
  782. 'type' => 'string',
  783. 'required' => true,
  784. ],
  785. ],
  786. ],'master' => [
  787. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master',
  788. 'httpMethod' => 'POST',
  789. 'parameters' => [
  790. 'projectId' => [
  791. 'location' => 'path',
  792. 'type' => 'string',
  793. 'required' => true,
  794. ],
  795. 'zone' => [
  796. 'location' => 'path',
  797. 'type' => 'string',
  798. 'required' => true,
  799. ],
  800. 'clusterId' => [
  801. 'location' => 'path',
  802. 'type' => 'string',
  803. 'required' => true,
  804. ],
  805. ],
  806. ],'monitoring' => [
  807. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring',
  808. 'httpMethod' => 'POST',
  809. 'parameters' => [
  810. 'projectId' => [
  811. 'location' => 'path',
  812. 'type' => 'string',
  813. 'required' => true,
  814. ],
  815. 'zone' => [
  816. 'location' => 'path',
  817. 'type' => 'string',
  818. 'required' => true,
  819. ],
  820. 'clusterId' => [
  821. 'location' => 'path',
  822. 'type' => 'string',
  823. 'required' => true,
  824. ],
  825. ],
  826. ],'resourceLabels' => [
  827. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels',
  828. 'httpMethod' => 'POST',
  829. 'parameters' => [
  830. 'projectId' => [
  831. 'location' => 'path',
  832. 'type' => 'string',
  833. 'required' => true,
  834. ],
  835. 'zone' => [
  836. 'location' => 'path',
  837. 'type' => 'string',
  838. 'required' => true,
  839. ],
  840. 'clusterId' => [
  841. 'location' => 'path',
  842. 'type' => 'string',
  843. 'required' => true,
  844. ],
  845. ],
  846. ],'setMaintenancePolicy' => [
  847. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy',
  848. 'httpMethod' => 'POST',
  849. 'parameters' => [
  850. 'projectId' => [
  851. 'location' => 'path',
  852. 'type' => 'string',
  853. 'required' => true,
  854. ],
  855. 'zone' => [
  856. 'location' => 'path',
  857. 'type' => 'string',
  858. 'required' => true,
  859. ],
  860. 'clusterId' => [
  861. 'location' => 'path',
  862. 'type' => 'string',
  863. 'required' => true,
  864. ],
  865. ],
  866. ],'setMasterAuth' => [
  867. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth',
  868. 'httpMethod' => 'POST',
  869. 'parameters' => [
  870. 'projectId' => [
  871. 'location' => 'path',
  872. 'type' => 'string',
  873. 'required' => true,
  874. ],
  875. 'zone' => [
  876. 'location' => 'path',
  877. 'type' => 'string',
  878. 'required' => true,
  879. ],
  880. 'clusterId' => [
  881. 'location' => 'path',
  882. 'type' => 'string',
  883. 'required' => true,
  884. ],
  885. ],
  886. ],'setNetworkPolicy' => [
  887. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy',
  888. 'httpMethod' => 'POST',
  889. 'parameters' => [
  890. 'projectId' => [
  891. 'location' => 'path',
  892. 'type' => 'string',
  893. 'required' => true,
  894. ],
  895. 'zone' => [
  896. 'location' => 'path',
  897. 'type' => 'string',
  898. 'required' => true,
  899. ],
  900. 'clusterId' => [
  901. 'location' => 'path',
  902. 'type' => 'string',
  903. 'required' => true,
  904. ],
  905. ],
  906. ],'startIpRotation' => [
  907. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation',
  908. 'httpMethod' => 'POST',
  909. 'parameters' => [
  910. 'projectId' => [
  911. 'location' => 'path',
  912. 'type' => 'string',
  913. 'required' => true,
  914. ],
  915. 'zone' => [
  916. 'location' => 'path',
  917. 'type' => 'string',
  918. 'required' => true,
  919. ],
  920. 'clusterId' => [
  921. 'location' => 'path',
  922. 'type' => 'string',
  923. 'required' => true,
  924. ],
  925. ],
  926. ],'update' => [
  927. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}',
  928. 'httpMethod' => 'PUT',
  929. 'parameters' => [
  930. 'projectId' => [
  931. 'location' => 'path',
  932. 'type' => 'string',
  933. 'required' => true,
  934. ],
  935. 'zone' => [
  936. 'location' => 'path',
  937. 'type' => 'string',
  938. 'required' => true,
  939. ],
  940. 'clusterId' => [
  941. 'location' => 'path',
  942. 'type' => 'string',
  943. 'required' => true,
  944. ],
  945. ],
  946. ],
  947. ]
  948. ]
  949. );
  950. $this->projects_zones_clusters_nodePools = new Container\Resource\ProjectsZonesClustersNodePools(
  951. $this,
  952. $this->serviceName,
  953. 'nodePools',
  954. [
  955. 'methods' => [
  956. 'autoscaling' => [
  957. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling',
  958. 'httpMethod' => 'POST',
  959. 'parameters' => [
  960. 'projectId' => [
  961. 'location' => 'path',
  962. 'type' => 'string',
  963. 'required' => true,
  964. ],
  965. 'zone' => [
  966. 'location' => 'path',
  967. 'type' => 'string',
  968. 'required' => true,
  969. ],
  970. 'clusterId' => [
  971. 'location' => 'path',
  972. 'type' => 'string',
  973. 'required' => true,
  974. ],
  975. 'nodePoolId' => [
  976. 'location' => 'path',
  977. 'type' => 'string',
  978. 'required' => true,
  979. ],
  980. ],
  981. ],'create' => [
  982. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools',
  983. 'httpMethod' => 'POST',
  984. 'parameters' => [
  985. 'projectId' => [
  986. 'location' => 'path',
  987. 'type' => 'string',
  988. 'required' => true,
  989. ],
  990. 'zone' => [
  991. 'location' => 'path',
  992. 'type' => 'string',
  993. 'required' => true,
  994. ],
  995. 'clusterId' => [
  996. 'location' => 'path',
  997. 'type' => 'string',
  998. 'required' => true,
  999. ],
  1000. ],
  1001. ],'delete' => [
  1002. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}',
  1003. 'httpMethod' => 'DELETE',
  1004. 'parameters' => [
  1005. 'projectId' => [
  1006. 'location' => 'path',
  1007. 'type' => 'string',
  1008. 'required' => true,
  1009. ],
  1010. 'zone' => [
  1011. 'location' => 'path',
  1012. 'type' => 'string',
  1013. 'required' => true,
  1014. ],
  1015. 'clusterId' => [
  1016. 'location' => 'path',
  1017. 'type' => 'string',
  1018. 'required' => true,
  1019. ],
  1020. 'nodePoolId' => [
  1021. 'location' => 'path',
  1022. 'type' => 'string',
  1023. 'required' => true,
  1024. ],
  1025. 'name' => [
  1026. 'location' => 'query',
  1027. 'type' => 'string',
  1028. ],
  1029. ],
  1030. ],'get' => [
  1031. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}',
  1032. 'httpMethod' => 'GET',
  1033. 'parameters' => [
  1034. 'projectId' => [
  1035. 'location' => 'path',
  1036. 'type' => 'string',
  1037. 'required' => true,
  1038. ],
  1039. 'zone' => [
  1040. 'location' => 'path',
  1041. 'type' => 'string',
  1042. 'required' => true,
  1043. ],
  1044. 'clusterId' => [
  1045. 'location' => 'path',
  1046. 'type' => 'string',
  1047. 'required' => true,
  1048. ],
  1049. 'nodePoolId' => [
  1050. 'location' => 'path',
  1051. 'type' => 'string',
  1052. 'required' => true,
  1053. ],
  1054. 'name' => [
  1055. 'location' => 'query',
  1056. 'type' => 'string',
  1057. ],
  1058. ],
  1059. ],'list' => [
  1060. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools',
  1061. 'httpMethod' => 'GET',
  1062. 'parameters' => [
  1063. 'projectId' => [
  1064. 'location' => 'path',
  1065. 'type' => 'string',
  1066. 'required' => true,
  1067. ],
  1068. 'zone' => [
  1069. 'location' => 'path',
  1070. 'type' => 'string',
  1071. 'required' => true,
  1072. ],
  1073. 'clusterId' => [
  1074. 'location' => 'path',
  1075. 'type' => 'string',
  1076. 'required' => true,
  1077. ],
  1078. 'parent' => [
  1079. 'location' => 'query',
  1080. 'type' => 'string',
  1081. ],
  1082. ],
  1083. ],'rollback' => [
  1084. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback',
  1085. 'httpMethod' => 'POST',
  1086. 'parameters' => [
  1087. 'projectId' => [
  1088. 'location' => 'path',
  1089. 'type' => 'string',
  1090. 'required' => true,
  1091. ],
  1092. 'zone' => [
  1093. 'location' => 'path',
  1094. 'type' => 'string',
  1095. 'required' => true,
  1096. ],
  1097. 'clusterId' => [
  1098. 'location' => 'path',
  1099. 'type' => 'string',
  1100. 'required' => true,
  1101. ],
  1102. 'nodePoolId' => [
  1103. 'location' => 'path',
  1104. 'type' => 'string',
  1105. 'required' => true,
  1106. ],
  1107. ],
  1108. ],'setManagement' => [
  1109. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement',
  1110. 'httpMethod' => 'POST',
  1111. 'parameters' => [
  1112. 'projectId' => [
  1113. 'location' => 'path',
  1114. 'type' => 'string',
  1115. 'required' => true,
  1116. ],
  1117. 'zone' => [
  1118. 'location' => 'path',
  1119. 'type' => 'string',
  1120. 'required' => true,
  1121. ],
  1122. 'clusterId' => [
  1123. 'location' => 'path',
  1124. 'type' => 'string',
  1125. 'required' => true,
  1126. ],
  1127. 'nodePoolId' => [
  1128. 'location' => 'path',
  1129. 'type' => 'string',
  1130. 'required' => true,
  1131. ],
  1132. ],
  1133. ],'setSize' => [
  1134. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize',
  1135. 'httpMethod' => 'POST',
  1136. 'parameters' => [
  1137. 'projectId' => [
  1138. 'location' => 'path',
  1139. 'type' => 'string',
  1140. 'required' => true,
  1141. ],
  1142. 'zone' => [
  1143. 'location' => 'path',
  1144. 'type' => 'string',
  1145. 'required' => true,
  1146. ],
  1147. 'clusterId' => [
  1148. 'location' => 'path',
  1149. 'type' => 'string',
  1150. 'required' => true,
  1151. ],
  1152. 'nodePoolId' => [
  1153. 'location' => 'path',
  1154. 'type' => 'string',
  1155. 'required' => true,
  1156. ],
  1157. ],
  1158. ],'update' => [
  1159. 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update',
  1160. 'httpMethod' => 'POST',
  1161. 'parameters' => [
  1162. 'projectId' => [
  1163. 'location' => 'path',
  1164. 'type' => 'string',
  1165. 'required' => true,
  1166. ],
  1167. 'zone' => [
  1168. 'location' => 'path',
  1169. 'type' => 'string',
  1170. 'required' => true,
  1171. ],
  1172. 'clusterId' => [
  1173. 'location' => 'path',
  1174. 'type' => 'string',
  1175. 'required' => true,
  1176. ],
  1177. 'nodePoolId' => [
  1178. 'location' => 'path',
  1179. 'type' => 'string',
  1180. 'required' => true,
  1181. ],
  1182. ],
  1183. ],
  1184. ]
  1185. ]
  1186. );
  1187. $this->projects_zones_operations = new Container\Resource\ProjectsZonesOperations(
  1188. $this,
  1189. $this->serviceName,
  1190. 'operations',
  1191. [
  1192. 'methods' => [
  1193. 'cancel' => [
  1194. 'path' => 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel',
  1195. 'httpMethod' => 'POST',
  1196. 'parameters' => [
  1197. 'projectId' => [
  1198. 'location' => 'path',
  1199. 'type' => 'string',
  1200. 'required' => true,
  1201. ],
  1202. 'zone' => [
  1203. 'location' => 'path',
  1204. 'type' => 'string',
  1205. 'required' => true,
  1206. ],
  1207. 'operationId' => [
  1208. 'location' => 'path',
  1209. 'type' => 'string',
  1210. 'required' => true,
  1211. ],
  1212. ],
  1213. ],'get' => [
  1214. 'path' => 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}',
  1215. 'httpMethod' => 'GET',
  1216. 'parameters' => [
  1217. 'projectId' => [
  1218. 'location' => 'path',
  1219. 'type' => 'string',
  1220. 'required' => true,
  1221. ],
  1222. 'zone' => [
  1223. 'location' => 'path',
  1224. 'type' => 'string',
  1225. 'required' => true,
  1226. ],
  1227. 'operationId' => [
  1228. 'location' => 'path',
  1229. 'type' => 'string',
  1230. 'required' => true,
  1231. ],
  1232. 'name' => [
  1233. 'location' => 'query',
  1234. 'type' => 'string',
  1235. ],
  1236. ],
  1237. ],'list' => [
  1238. 'path' => 'v1/projects/{projectId}/zones/{zone}/operations',
  1239. 'httpMethod' => 'GET',
  1240. 'parameters' => [
  1241. 'projectId' => [
  1242. 'location' => 'path',
  1243. 'type' => 'string',
  1244. 'required' => true,
  1245. ],
  1246. 'zone' => [
  1247. 'location' => 'path',
  1248. 'type' => 'string',
  1249. 'required' => true,
  1250. ],
  1251. 'parent' => [
  1252. 'location' => 'query',
  1253. 'type' => 'string',
  1254. ],
  1255. ],
  1256. ],
  1257. ]
  1258. ]
  1259. );
  1260. }
  1261. }
  1262. // Adding a class alias for backwards compatibility with the previous class name.
  1263. class_alias(Container::class, 'Google_Service_Container');