Dataproc.php 37 KB

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