AnalyticsHub.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568
  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 AnalyticsHub (v1).
  21. *
  22. * <p>
  23. * Exchange data and analytics assets securely and efficiently.</p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://cloud.google.com/bigquery/docs/analytics-hub-introduction" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class AnalyticsHub extends \Google\Service
  33. {
  34. /** View and manage your data in Google BigQuery and see the email address for your Google Account. */
  35. const BIGQUERY =
  36. "https://www.googleapis.com/auth/bigquery";
  37. /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
  38. const CLOUD_PLATFORM =
  39. "https://www.googleapis.com/auth/cloud-platform";
  40. public $organizations_locations_dataExchanges;
  41. public $projects_locations_dataExchanges;
  42. public $projects_locations_dataExchanges_listings;
  43. public $projects_locations_dataExchanges_queryTemplates;
  44. public $projects_locations_subscriptions;
  45. public $rootUrlTemplate;
  46. /**
  47. * Constructs the internal representation of the AnalyticsHub service.
  48. *
  49. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  50. * config array to pass to a new Client instance.
  51. * @param string $rootUrl The root URL used for requests to the service.
  52. */
  53. public function __construct($clientOrConfig = [], $rootUrl = null)
  54. {
  55. parent::__construct($clientOrConfig);
  56. $this->rootUrl = $rootUrl ?: 'https://analyticshub.googleapis.com/';
  57. $this->rootUrlTemplate = $rootUrl ?: 'https://analyticshub.UNIVERSE_DOMAIN/';
  58. $this->servicePath = '';
  59. $this->batchPath = 'batch';
  60. $this->version = 'v1';
  61. $this->serviceName = 'analyticshub';
  62. $this->organizations_locations_dataExchanges = new AnalyticsHub\Resource\OrganizationsLocationsDataExchanges(
  63. $this,
  64. $this->serviceName,
  65. 'dataExchanges',
  66. [
  67. 'methods' => [
  68. 'list' => [
  69. 'path' => 'v1/{+organization}/dataExchanges',
  70. 'httpMethod' => 'GET',
  71. 'parameters' => [
  72. 'organization' => [
  73. 'location' => 'path',
  74. 'type' => 'string',
  75. 'required' => true,
  76. ],
  77. 'pageSize' => [
  78. 'location' => 'query',
  79. 'type' => 'integer',
  80. ],
  81. 'pageToken' => [
  82. 'location' => 'query',
  83. 'type' => 'string',
  84. ],
  85. ],
  86. ],
  87. ]
  88. ]
  89. );
  90. $this->projects_locations_dataExchanges = new AnalyticsHub\Resource\ProjectsLocationsDataExchanges(
  91. $this,
  92. $this->serviceName,
  93. 'dataExchanges',
  94. [
  95. 'methods' => [
  96. 'create' => [
  97. 'path' => 'v1/{+parent}/dataExchanges',
  98. 'httpMethod' => 'POST',
  99. 'parameters' => [
  100. 'parent' => [
  101. 'location' => 'path',
  102. 'type' => 'string',
  103. 'required' => true,
  104. ],
  105. 'dataExchangeId' => [
  106. 'location' => 'query',
  107. 'type' => 'string',
  108. ],
  109. ],
  110. ],'delete' => [
  111. 'path' => 'v1/{+name}',
  112. 'httpMethod' => 'DELETE',
  113. 'parameters' => [
  114. 'name' => [
  115. 'location' => 'path',
  116. 'type' => 'string',
  117. 'required' => true,
  118. ],
  119. ],
  120. ],'get' => [
  121. 'path' => 'v1/{+name}',
  122. 'httpMethod' => 'GET',
  123. 'parameters' => [
  124. 'name' => [
  125. 'location' => 'path',
  126. 'type' => 'string',
  127. 'required' => true,
  128. ],
  129. ],
  130. ],'getIamPolicy' => [
  131. 'path' => 'v1/{+resource}:getIamPolicy',
  132. 'httpMethod' => 'POST',
  133. 'parameters' => [
  134. 'resource' => [
  135. 'location' => 'path',
  136. 'type' => 'string',
  137. 'required' => true,
  138. ],
  139. ],
  140. ],'list' => [
  141. 'path' => 'v1/{+parent}/dataExchanges',
  142. 'httpMethod' => 'GET',
  143. 'parameters' => [
  144. 'parent' => [
  145. 'location' => 'path',
  146. 'type' => 'string',
  147. 'required' => true,
  148. ],
  149. 'pageSize' => [
  150. 'location' => 'query',
  151. 'type' => 'integer',
  152. ],
  153. 'pageToken' => [
  154. 'location' => 'query',
  155. 'type' => 'string',
  156. ],
  157. ],
  158. ],'listSubscriptions' => [
  159. 'path' => 'v1/{+resource}:listSubscriptions',
  160. 'httpMethod' => 'GET',
  161. 'parameters' => [
  162. 'resource' => [
  163. 'location' => 'path',
  164. 'type' => 'string',
  165. 'required' => true,
  166. ],
  167. 'includeDeletedSubscriptions' => [
  168. 'location' => 'query',
  169. 'type' => 'boolean',
  170. ],
  171. 'pageSize' => [
  172. 'location' => 'query',
  173. 'type' => 'integer',
  174. ],
  175. 'pageToken' => [
  176. 'location' => 'query',
  177. 'type' => 'string',
  178. ],
  179. ],
  180. ],'patch' => [
  181. 'path' => 'v1/{+name}',
  182. 'httpMethod' => 'PATCH',
  183. 'parameters' => [
  184. 'name' => [
  185. 'location' => 'path',
  186. 'type' => 'string',
  187. 'required' => true,
  188. ],
  189. 'updateMask' => [
  190. 'location' => 'query',
  191. 'type' => 'string',
  192. ],
  193. ],
  194. ],'setIamPolicy' => [
  195. 'path' => 'v1/{+resource}:setIamPolicy',
  196. 'httpMethod' => 'POST',
  197. 'parameters' => [
  198. 'resource' => [
  199. 'location' => 'path',
  200. 'type' => 'string',
  201. 'required' => true,
  202. ],
  203. ],
  204. ],'subscribe' => [
  205. 'path' => 'v1/{+name}:subscribe',
  206. 'httpMethod' => 'POST',
  207. 'parameters' => [
  208. 'name' => [
  209. 'location' => 'path',
  210. 'type' => 'string',
  211. 'required' => true,
  212. ],
  213. ],
  214. ],'testIamPermissions' => [
  215. 'path' => 'v1/{+resource}:testIamPermissions',
  216. 'httpMethod' => 'POST',
  217. 'parameters' => [
  218. 'resource' => [
  219. 'location' => 'path',
  220. 'type' => 'string',
  221. 'required' => true,
  222. ],
  223. ],
  224. ],
  225. ]
  226. ]
  227. );
  228. $this->projects_locations_dataExchanges_listings = new AnalyticsHub\Resource\ProjectsLocationsDataExchangesListings(
  229. $this,
  230. $this->serviceName,
  231. 'listings',
  232. [
  233. 'methods' => [
  234. 'create' => [
  235. 'path' => 'v1/{+parent}/listings',
  236. 'httpMethod' => 'POST',
  237. 'parameters' => [
  238. 'parent' => [
  239. 'location' => 'path',
  240. 'type' => 'string',
  241. 'required' => true,
  242. ],
  243. 'listingId' => [
  244. 'location' => 'query',
  245. 'type' => 'string',
  246. ],
  247. ],
  248. ],'delete' => [
  249. 'path' => 'v1/{+name}',
  250. 'httpMethod' => 'DELETE',
  251. 'parameters' => [
  252. 'name' => [
  253. 'location' => 'path',
  254. 'type' => 'string',
  255. 'required' => true,
  256. ],
  257. 'deleteCommercial' => [
  258. 'location' => 'query',
  259. 'type' => 'boolean',
  260. ],
  261. ],
  262. ],'get' => [
  263. 'path' => 'v1/{+name}',
  264. 'httpMethod' => 'GET',
  265. 'parameters' => [
  266. 'name' => [
  267. 'location' => 'path',
  268. 'type' => 'string',
  269. 'required' => true,
  270. ],
  271. ],
  272. ],'getIamPolicy' => [
  273. 'path' => 'v1/{+resource}:getIamPolicy',
  274. 'httpMethod' => 'POST',
  275. 'parameters' => [
  276. 'resource' => [
  277. 'location' => 'path',
  278. 'type' => 'string',
  279. 'required' => true,
  280. ],
  281. ],
  282. ],'list' => [
  283. 'path' => 'v1/{+parent}/listings',
  284. 'httpMethod' => 'GET',
  285. 'parameters' => [
  286. 'parent' => [
  287. 'location' => 'path',
  288. 'type' => 'string',
  289. 'required' => true,
  290. ],
  291. 'pageSize' => [
  292. 'location' => 'query',
  293. 'type' => 'integer',
  294. ],
  295. 'pageToken' => [
  296. 'location' => 'query',
  297. 'type' => 'string',
  298. ],
  299. ],
  300. ],'listSubscriptions' => [
  301. 'path' => 'v1/{+resource}:listSubscriptions',
  302. 'httpMethod' => 'GET',
  303. 'parameters' => [
  304. 'resource' => [
  305. 'location' => 'path',
  306. 'type' => 'string',
  307. 'required' => true,
  308. ],
  309. 'includeDeletedSubscriptions' => [
  310. 'location' => 'query',
  311. 'type' => 'boolean',
  312. ],
  313. 'pageSize' => [
  314. 'location' => 'query',
  315. 'type' => 'integer',
  316. ],
  317. 'pageToken' => [
  318. 'location' => 'query',
  319. 'type' => 'string',
  320. ],
  321. ],
  322. ],'patch' => [
  323. 'path' => 'v1/{+name}',
  324. 'httpMethod' => 'PATCH',
  325. 'parameters' => [
  326. 'name' => [
  327. 'location' => 'path',
  328. 'type' => 'string',
  329. 'required' => true,
  330. ],
  331. 'updateMask' => [
  332. 'location' => 'query',
  333. 'type' => 'string',
  334. ],
  335. ],
  336. ],'setIamPolicy' => [
  337. 'path' => 'v1/{+resource}:setIamPolicy',
  338. 'httpMethod' => 'POST',
  339. 'parameters' => [
  340. 'resource' => [
  341. 'location' => 'path',
  342. 'type' => 'string',
  343. 'required' => true,
  344. ],
  345. ],
  346. ],'subscribe' => [
  347. 'path' => 'v1/{+name}:subscribe',
  348. 'httpMethod' => 'POST',
  349. 'parameters' => [
  350. 'name' => [
  351. 'location' => 'path',
  352. 'type' => 'string',
  353. 'required' => true,
  354. ],
  355. ],
  356. ],'testIamPermissions' => [
  357. 'path' => 'v1/{+resource}:testIamPermissions',
  358. 'httpMethod' => 'POST',
  359. 'parameters' => [
  360. 'resource' => [
  361. 'location' => 'path',
  362. 'type' => 'string',
  363. 'required' => true,
  364. ],
  365. ],
  366. ],
  367. ]
  368. ]
  369. );
  370. $this->projects_locations_dataExchanges_queryTemplates = new AnalyticsHub\Resource\ProjectsLocationsDataExchangesQueryTemplates(
  371. $this,
  372. $this->serviceName,
  373. 'queryTemplates',
  374. [
  375. 'methods' => [
  376. 'approve' => [
  377. 'path' => 'v1/{+name}:approve',
  378. 'httpMethod' => 'POST',
  379. 'parameters' => [
  380. 'name' => [
  381. 'location' => 'path',
  382. 'type' => 'string',
  383. 'required' => true,
  384. ],
  385. ],
  386. ],'create' => [
  387. 'path' => 'v1/{+parent}/queryTemplates',
  388. 'httpMethod' => 'POST',
  389. 'parameters' => [
  390. 'parent' => [
  391. 'location' => 'path',
  392. 'type' => 'string',
  393. 'required' => true,
  394. ],
  395. 'queryTemplateId' => [
  396. 'location' => 'query',
  397. 'type' => 'string',
  398. ],
  399. ],
  400. ],'delete' => [
  401. 'path' => 'v1/{+name}',
  402. 'httpMethod' => 'DELETE',
  403. 'parameters' => [
  404. 'name' => [
  405. 'location' => 'path',
  406. 'type' => 'string',
  407. 'required' => true,
  408. ],
  409. ],
  410. ],'get' => [
  411. 'path' => 'v1/{+name}',
  412. 'httpMethod' => 'GET',
  413. 'parameters' => [
  414. 'name' => [
  415. 'location' => 'path',
  416. 'type' => 'string',
  417. 'required' => true,
  418. ],
  419. ],
  420. ],'list' => [
  421. 'path' => 'v1/{+parent}/queryTemplates',
  422. 'httpMethod' => 'GET',
  423. 'parameters' => [
  424. 'parent' => [
  425. 'location' => 'path',
  426. 'type' => 'string',
  427. 'required' => true,
  428. ],
  429. 'pageSize' => [
  430. 'location' => 'query',
  431. 'type' => 'integer',
  432. ],
  433. 'pageToken' => [
  434. 'location' => 'query',
  435. 'type' => 'string',
  436. ],
  437. ],
  438. ],'patch' => [
  439. 'path' => 'v1/{+name}',
  440. 'httpMethod' => 'PATCH',
  441. 'parameters' => [
  442. 'name' => [
  443. 'location' => 'path',
  444. 'type' => 'string',
  445. 'required' => true,
  446. ],
  447. 'updateMask' => [
  448. 'location' => 'query',
  449. 'type' => 'string',
  450. ],
  451. ],
  452. ],'submit' => [
  453. 'path' => 'v1/{+name}:submit',
  454. 'httpMethod' => 'POST',
  455. 'parameters' => [
  456. 'name' => [
  457. 'location' => 'path',
  458. 'type' => 'string',
  459. 'required' => true,
  460. ],
  461. ],
  462. ],
  463. ]
  464. ]
  465. );
  466. $this->projects_locations_subscriptions = new AnalyticsHub\Resource\ProjectsLocationsSubscriptions(
  467. $this,
  468. $this->serviceName,
  469. 'subscriptions',
  470. [
  471. 'methods' => [
  472. 'delete' => [
  473. 'path' => 'v1/{+name}',
  474. 'httpMethod' => 'DELETE',
  475. 'parameters' => [
  476. 'name' => [
  477. 'location' => 'path',
  478. 'type' => 'string',
  479. 'required' => true,
  480. ],
  481. ],
  482. ],'get' => [
  483. 'path' => 'v1/{+name}',
  484. 'httpMethod' => 'GET',
  485. 'parameters' => [
  486. 'name' => [
  487. 'location' => 'path',
  488. 'type' => 'string',
  489. 'required' => true,
  490. ],
  491. ],
  492. ],'getIamPolicy' => [
  493. 'path' => 'v1/{+resource}:getIamPolicy',
  494. 'httpMethod' => 'POST',
  495. 'parameters' => [
  496. 'resource' => [
  497. 'location' => 'path',
  498. 'type' => 'string',
  499. 'required' => true,
  500. ],
  501. ],
  502. ],'list' => [
  503. 'path' => 'v1/{+parent}/subscriptions',
  504. 'httpMethod' => 'GET',
  505. 'parameters' => [
  506. 'parent' => [
  507. 'location' => 'path',
  508. 'type' => 'string',
  509. 'required' => true,
  510. ],
  511. 'filter' => [
  512. 'location' => 'query',
  513. 'type' => 'string',
  514. ],
  515. 'pageSize' => [
  516. 'location' => 'query',
  517. 'type' => 'integer',
  518. ],
  519. 'pageToken' => [
  520. 'location' => 'query',
  521. 'type' => 'string',
  522. ],
  523. ],
  524. ],'refresh' => [
  525. 'path' => 'v1/{+name}:refresh',
  526. 'httpMethod' => 'POST',
  527. 'parameters' => [
  528. 'name' => [
  529. 'location' => 'path',
  530. 'type' => 'string',
  531. 'required' => true,
  532. ],
  533. ],
  534. ],'revoke' => [
  535. 'path' => 'v1/{+name}:revoke',
  536. 'httpMethod' => 'POST',
  537. 'parameters' => [
  538. 'name' => [
  539. 'location' => 'path',
  540. 'type' => 'string',
  541. 'required' => true,
  542. ],
  543. ],
  544. ],'setIamPolicy' => [
  545. 'path' => 'v1/{+resource}:setIamPolicy',
  546. 'httpMethod' => 'POST',
  547. 'parameters' => [
  548. 'resource' => [
  549. 'location' => 'path',
  550. 'type' => 'string',
  551. 'required' => true,
  552. ],
  553. ],
  554. ],
  555. ]
  556. ]
  557. );
  558. }
  559. }
  560. // Adding a class alias for backwards compatibility with the previous class name.
  561. class_alias(AnalyticsHub::class, 'Google_Service_AnalyticsHub');