DataFusion.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  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 DataFusion (v1).
  21. *
  22. * <p>
  23. * Cloud Data Fusion is a fully-managed, cloud native, enterprise data
  24. * integration service for quickly building and managing data pipelines. It
  25. * provides a graphical interface to increase time efficiency and reduce
  26. * complexity, and allows business users, developers, and data scientists to
  27. * easily and reliably build scalable data integration solutions to cleanse,
  28. * prepare, blend, transfer and transform data without having to wrestle with
  29. * infrastructure.</p>
  30. *
  31. * <p>
  32. * For more information about this service, see the API
  33. * <a href="https://cloud.google.com/data-fusion/docs" target="_blank">Documentation</a>
  34. * </p>
  35. *
  36. * @author Google, Inc.
  37. */
  38. class DataFusion extends \Google\Service
  39. {
  40. /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
  41. const CLOUD_PLATFORM =
  42. "https://www.googleapis.com/auth/cloud-platform";
  43. public $projects_locations;
  44. public $projects_locations_instances;
  45. public $projects_locations_instances_dnsPeerings;
  46. public $projects_locations_operations;
  47. public $projects_locations_versions;
  48. /**
  49. * Constructs the internal representation of the DataFusion 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://datafusion.googleapis.com/';
  59. $this->servicePath = '';
  60. $this->batchPath = 'batch';
  61. $this->version = 'v1';
  62. $this->serviceName = 'datafusion';
  63. $this->projects_locations = new DataFusion\Resource\ProjectsLocations(
  64. $this,
  65. $this->serviceName,
  66. 'locations',
  67. [
  68. 'methods' => [
  69. 'get' => [
  70. 'path' => 'v1/{+name}',
  71. 'httpMethod' => 'GET',
  72. 'parameters' => [
  73. 'name' => [
  74. 'location' => 'path',
  75. 'type' => 'string',
  76. 'required' => true,
  77. ],
  78. ],
  79. ],'list' => [
  80. 'path' => 'v1/{+name}/locations',
  81. 'httpMethod' => 'GET',
  82. 'parameters' => [
  83. 'name' => [
  84. 'location' => 'path',
  85. 'type' => 'string',
  86. 'required' => true,
  87. ],
  88. 'filter' => [
  89. 'location' => 'query',
  90. 'type' => 'string',
  91. ],
  92. 'includeUnrevealedLocations' => [
  93. 'location' => 'query',
  94. 'type' => 'boolean',
  95. ],
  96. 'pageSize' => [
  97. 'location' => 'query',
  98. 'type' => 'integer',
  99. ],
  100. 'pageToken' => [
  101. 'location' => 'query',
  102. 'type' => 'string',
  103. ],
  104. ],
  105. ],
  106. ]
  107. ]
  108. );
  109. $this->projects_locations_instances = new DataFusion\Resource\ProjectsLocationsInstances(
  110. $this,
  111. $this->serviceName,
  112. 'instances',
  113. [
  114. 'methods' => [
  115. 'create' => [
  116. 'path' => 'v1/{+parent}/instances',
  117. 'httpMethod' => 'POST',
  118. 'parameters' => [
  119. 'parent' => [
  120. 'location' => 'path',
  121. 'type' => 'string',
  122. 'required' => true,
  123. ],
  124. 'instanceId' => [
  125. 'location' => 'query',
  126. 'type' => 'string',
  127. ],
  128. ],
  129. ],'delete' => [
  130. 'path' => 'v1/{+name}',
  131. 'httpMethod' => 'DELETE',
  132. 'parameters' => [
  133. 'name' => [
  134. 'location' => 'path',
  135. 'type' => 'string',
  136. 'required' => true,
  137. ],
  138. ],
  139. ],'get' => [
  140. 'path' => 'v1/{+name}',
  141. 'httpMethod' => 'GET',
  142. 'parameters' => [
  143. 'name' => [
  144. 'location' => 'path',
  145. 'type' => 'string',
  146. 'required' => true,
  147. ],
  148. ],
  149. ],'getIamPolicy' => [
  150. 'path' => 'v1/{+resource}:getIamPolicy',
  151. 'httpMethod' => 'GET',
  152. 'parameters' => [
  153. 'resource' => [
  154. 'location' => 'path',
  155. 'type' => 'string',
  156. 'required' => true,
  157. ],
  158. 'options.requestedPolicyVersion' => [
  159. 'location' => 'query',
  160. 'type' => 'integer',
  161. ],
  162. ],
  163. ],'list' => [
  164. 'path' => 'v1/{+parent}/instances',
  165. 'httpMethod' => 'GET',
  166. 'parameters' => [
  167. 'parent' => [
  168. 'location' => 'path',
  169. 'type' => 'string',
  170. 'required' => true,
  171. ],
  172. 'filter' => [
  173. 'location' => 'query',
  174. 'type' => 'string',
  175. ],
  176. 'orderBy' => [
  177. 'location' => 'query',
  178. 'type' => 'string',
  179. ],
  180. 'pageSize' => [
  181. 'location' => 'query',
  182. 'type' => 'integer',
  183. ],
  184. 'pageToken' => [
  185. 'location' => 'query',
  186. 'type' => 'string',
  187. ],
  188. ],
  189. ],'patch' => [
  190. 'path' => 'v1/{+name}',
  191. 'httpMethod' => 'PATCH',
  192. 'parameters' => [
  193. 'name' => [
  194. 'location' => 'path',
  195. 'type' => 'string',
  196. 'required' => true,
  197. ],
  198. 'updateMask' => [
  199. 'location' => 'query',
  200. 'type' => 'string',
  201. ],
  202. ],
  203. ],'restart' => [
  204. 'path' => 'v1/{+name}:restart',
  205. 'httpMethod' => 'POST',
  206. 'parameters' => [
  207. 'name' => [
  208. 'location' => 'path',
  209. 'type' => 'string',
  210. 'required' => true,
  211. ],
  212. ],
  213. ],'setIamPolicy' => [
  214. 'path' => 'v1/{+resource}:setIamPolicy',
  215. 'httpMethod' => 'POST',
  216. 'parameters' => [
  217. 'resource' => [
  218. 'location' => 'path',
  219. 'type' => 'string',
  220. 'required' => true,
  221. ],
  222. ],
  223. ],'testIamPermissions' => [
  224. 'path' => 'v1/{+resource}:testIamPermissions',
  225. 'httpMethod' => 'POST',
  226. 'parameters' => [
  227. 'resource' => [
  228. 'location' => 'path',
  229. 'type' => 'string',
  230. 'required' => true,
  231. ],
  232. ],
  233. ],
  234. ]
  235. ]
  236. );
  237. $this->projects_locations_instances_dnsPeerings = new DataFusion\Resource\ProjectsLocationsInstancesDnsPeerings(
  238. $this,
  239. $this->serviceName,
  240. 'dnsPeerings',
  241. [
  242. 'methods' => [
  243. 'create' => [
  244. 'path' => 'v1/{+parent}/dnsPeerings',
  245. 'httpMethod' => 'POST',
  246. 'parameters' => [
  247. 'parent' => [
  248. 'location' => 'path',
  249. 'type' => 'string',
  250. 'required' => true,
  251. ],
  252. 'dnsPeeringId' => [
  253. 'location' => 'query',
  254. 'type' => 'string',
  255. ],
  256. ],
  257. ],'delete' => [
  258. 'path' => 'v1/{+name}',
  259. 'httpMethod' => 'DELETE',
  260. 'parameters' => [
  261. 'name' => [
  262. 'location' => 'path',
  263. 'type' => 'string',
  264. 'required' => true,
  265. ],
  266. ],
  267. ],'list' => [
  268. 'path' => 'v1/{+parent}/dnsPeerings',
  269. 'httpMethod' => 'GET',
  270. 'parameters' => [
  271. 'parent' => [
  272. 'location' => 'path',
  273. 'type' => 'string',
  274. 'required' => true,
  275. ],
  276. 'pageSize' => [
  277. 'location' => 'query',
  278. 'type' => 'integer',
  279. ],
  280. 'pageToken' => [
  281. 'location' => 'query',
  282. 'type' => 'string',
  283. ],
  284. ],
  285. ],
  286. ]
  287. ]
  288. );
  289. $this->projects_locations_operations = new DataFusion\Resource\ProjectsLocationsOperations(
  290. $this,
  291. $this->serviceName,
  292. 'operations',
  293. [
  294. 'methods' => [
  295. 'cancel' => [
  296. 'path' => 'v1/{+name}:cancel',
  297. 'httpMethod' => 'POST',
  298. 'parameters' => [
  299. 'name' => [
  300. 'location' => 'path',
  301. 'type' => 'string',
  302. 'required' => true,
  303. ],
  304. ],
  305. ],'delete' => [
  306. 'path' => 'v1/{+name}',
  307. 'httpMethod' => 'DELETE',
  308. 'parameters' => [
  309. 'name' => [
  310. 'location' => 'path',
  311. 'type' => 'string',
  312. 'required' => true,
  313. ],
  314. ],
  315. ],'get' => [
  316. 'path' => 'v1/{+name}',
  317. 'httpMethod' => 'GET',
  318. 'parameters' => [
  319. 'name' => [
  320. 'location' => 'path',
  321. 'type' => 'string',
  322. 'required' => true,
  323. ],
  324. ],
  325. ],'list' => [
  326. 'path' => 'v1/{+name}/operations',
  327. 'httpMethod' => 'GET',
  328. 'parameters' => [
  329. 'name' => [
  330. 'location' => 'path',
  331. 'type' => 'string',
  332. 'required' => true,
  333. ],
  334. 'filter' => [
  335. 'location' => 'query',
  336. 'type' => 'string',
  337. ],
  338. 'pageSize' => [
  339. 'location' => 'query',
  340. 'type' => 'integer',
  341. ],
  342. 'pageToken' => [
  343. 'location' => 'query',
  344. 'type' => 'string',
  345. ],
  346. ],
  347. ],
  348. ]
  349. ]
  350. );
  351. $this->projects_locations_versions = new DataFusion\Resource\ProjectsLocationsVersions(
  352. $this,
  353. $this->serviceName,
  354. 'versions',
  355. [
  356. 'methods' => [
  357. 'list' => [
  358. 'path' => 'v1/{+parent}/versions',
  359. 'httpMethod' => 'GET',
  360. 'parameters' => [
  361. 'parent' => [
  362. 'location' => 'path',
  363. 'type' => 'string',
  364. 'required' => true,
  365. ],
  366. 'latestPatchOnly' => [
  367. 'location' => 'query',
  368. 'type' => 'boolean',
  369. ],
  370. 'pageSize' => [
  371. 'location' => 'query',
  372. 'type' => 'integer',
  373. ],
  374. 'pageToken' => [
  375. 'location' => 'query',
  376. 'type' => 'string',
  377. ],
  378. ],
  379. ],
  380. ]
  381. ]
  382. );
  383. }
  384. }
  385. // Adding a class alias for backwards compatibility with the previous class name.
  386. class_alias(DataFusion::class, 'Google_Service_DataFusion');