AnalyticsHub.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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 (v1beta1).
  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;
  42. public $projects_locations_dataExchanges;
  43. public $projects_locations_dataExchanges_listings;
  44. /**
  45. * Constructs the internal representation of the AnalyticsHub service.
  46. *
  47. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  48. * config array to pass to a new Client instance.
  49. * @param string $rootUrl The root URL used for requests to the service.
  50. */
  51. public function __construct($clientOrConfig = [], $rootUrl = null)
  52. {
  53. parent::__construct($clientOrConfig);
  54. $this->rootUrl = $rootUrl ?: 'https://analyticshub.googleapis.com/';
  55. $this->servicePath = '';
  56. $this->batchPath = 'batch';
  57. $this->version = 'v1beta1';
  58. $this->serviceName = 'analyticshub';
  59. $this->organizations_locations_dataExchanges = new AnalyticsHub\Resource\OrganizationsLocationsDataExchanges(
  60. $this,
  61. $this->serviceName,
  62. 'dataExchanges',
  63. [
  64. 'methods' => [
  65. 'list' => [
  66. 'path' => 'v1beta1/{+organization}/dataExchanges',
  67. 'httpMethod' => 'GET',
  68. 'parameters' => [
  69. 'organization' => [
  70. 'location' => 'path',
  71. 'type' => 'string',
  72. 'required' => true,
  73. ],
  74. 'pageSize' => [
  75. 'location' => 'query',
  76. 'type' => 'integer',
  77. ],
  78. 'pageToken' => [
  79. 'location' => 'query',
  80. 'type' => 'string',
  81. ],
  82. ],
  83. ],
  84. ]
  85. ]
  86. );
  87. $this->projects_locations = new AnalyticsHub\Resource\ProjectsLocations(
  88. $this,
  89. $this->serviceName,
  90. 'locations',
  91. [
  92. 'methods' => [
  93. 'get' => [
  94. 'path' => 'v1beta1/{+name}',
  95. 'httpMethod' => 'GET',
  96. 'parameters' => [
  97. 'name' => [
  98. 'location' => 'path',
  99. 'type' => 'string',
  100. 'required' => true,
  101. ],
  102. ],
  103. ],'list' => [
  104. 'path' => 'v1beta1/{+name}/locations',
  105. 'httpMethod' => 'GET',
  106. 'parameters' => [
  107. 'name' => [
  108. 'location' => 'path',
  109. 'type' => 'string',
  110. 'required' => true,
  111. ],
  112. 'filter' => [
  113. 'location' => 'query',
  114. 'type' => 'string',
  115. ],
  116. 'pageSize' => [
  117. 'location' => 'query',
  118. 'type' => 'integer',
  119. ],
  120. 'pageToken' => [
  121. 'location' => 'query',
  122. 'type' => 'string',
  123. ],
  124. ],
  125. ],
  126. ]
  127. ]
  128. );
  129. $this->projects_locations_dataExchanges = new AnalyticsHub\Resource\ProjectsLocationsDataExchanges(
  130. $this,
  131. $this->serviceName,
  132. 'dataExchanges',
  133. [
  134. 'methods' => [
  135. 'create' => [
  136. 'path' => 'v1beta1/{+parent}/dataExchanges',
  137. 'httpMethod' => 'POST',
  138. 'parameters' => [
  139. 'parent' => [
  140. 'location' => 'path',
  141. 'type' => 'string',
  142. 'required' => true,
  143. ],
  144. 'dataExchangeId' => [
  145. 'location' => 'query',
  146. 'type' => 'string',
  147. ],
  148. ],
  149. ],'delete' => [
  150. 'path' => 'v1beta1/{+name}',
  151. 'httpMethod' => 'DELETE',
  152. 'parameters' => [
  153. 'name' => [
  154. 'location' => 'path',
  155. 'type' => 'string',
  156. 'required' => true,
  157. ],
  158. ],
  159. ],'get' => [
  160. 'path' => 'v1beta1/{+name}',
  161. 'httpMethod' => 'GET',
  162. 'parameters' => [
  163. 'name' => [
  164. 'location' => 'path',
  165. 'type' => 'string',
  166. 'required' => true,
  167. ],
  168. ],
  169. ],'getIamPolicy' => [
  170. 'path' => 'v1beta1/{+resource}:getIamPolicy',
  171. 'httpMethod' => 'POST',
  172. 'parameters' => [
  173. 'resource' => [
  174. 'location' => 'path',
  175. 'type' => 'string',
  176. 'required' => true,
  177. ],
  178. ],
  179. ],'list' => [
  180. 'path' => 'v1beta1/{+parent}/dataExchanges',
  181. 'httpMethod' => 'GET',
  182. 'parameters' => [
  183. 'parent' => [
  184. 'location' => 'path',
  185. 'type' => 'string',
  186. 'required' => true,
  187. ],
  188. 'pageSize' => [
  189. 'location' => 'query',
  190. 'type' => 'integer',
  191. ],
  192. 'pageToken' => [
  193. 'location' => 'query',
  194. 'type' => 'string',
  195. ],
  196. ],
  197. ],'patch' => [
  198. 'path' => 'v1beta1/{+name}',
  199. 'httpMethod' => 'PATCH',
  200. 'parameters' => [
  201. 'name' => [
  202. 'location' => 'path',
  203. 'type' => 'string',
  204. 'required' => true,
  205. ],
  206. 'updateMask' => [
  207. 'location' => 'query',
  208. 'type' => 'string',
  209. ],
  210. ],
  211. ],'setIamPolicy' => [
  212. 'path' => 'v1beta1/{+resource}:setIamPolicy',
  213. 'httpMethod' => 'POST',
  214. 'parameters' => [
  215. 'resource' => [
  216. 'location' => 'path',
  217. 'type' => 'string',
  218. 'required' => true,
  219. ],
  220. ],
  221. ],'testIamPermissions' => [
  222. 'path' => 'v1beta1/{+resource}:testIamPermissions',
  223. 'httpMethod' => 'POST',
  224. 'parameters' => [
  225. 'resource' => [
  226. 'location' => 'path',
  227. 'type' => 'string',
  228. 'required' => true,
  229. ],
  230. ],
  231. ],
  232. ]
  233. ]
  234. );
  235. $this->projects_locations_dataExchanges_listings = new AnalyticsHub\Resource\ProjectsLocationsDataExchangesListings(
  236. $this,
  237. $this->serviceName,
  238. 'listings',
  239. [
  240. 'methods' => [
  241. 'create' => [
  242. 'path' => 'v1beta1/{+parent}/listings',
  243. 'httpMethod' => 'POST',
  244. 'parameters' => [
  245. 'parent' => [
  246. 'location' => 'path',
  247. 'type' => 'string',
  248. 'required' => true,
  249. ],
  250. 'listingId' => [
  251. 'location' => 'query',
  252. 'type' => 'string',
  253. ],
  254. ],
  255. ],'delete' => [
  256. 'path' => 'v1beta1/{+name}',
  257. 'httpMethod' => 'DELETE',
  258. 'parameters' => [
  259. 'name' => [
  260. 'location' => 'path',
  261. 'type' => 'string',
  262. 'required' => true,
  263. ],
  264. ],
  265. ],'get' => [
  266. 'path' => 'v1beta1/{+name}',
  267. 'httpMethod' => 'GET',
  268. 'parameters' => [
  269. 'name' => [
  270. 'location' => 'path',
  271. 'type' => 'string',
  272. 'required' => true,
  273. ],
  274. ],
  275. ],'getIamPolicy' => [
  276. 'path' => 'v1beta1/{+resource}:getIamPolicy',
  277. 'httpMethod' => 'POST',
  278. 'parameters' => [
  279. 'resource' => [
  280. 'location' => 'path',
  281. 'type' => 'string',
  282. 'required' => true,
  283. ],
  284. ],
  285. ],'list' => [
  286. 'path' => 'v1beta1/{+parent}/listings',
  287. 'httpMethod' => 'GET',
  288. 'parameters' => [
  289. 'parent' => [
  290. 'location' => 'path',
  291. 'type' => 'string',
  292. 'required' => true,
  293. ],
  294. 'pageSize' => [
  295. 'location' => 'query',
  296. 'type' => 'integer',
  297. ],
  298. 'pageToken' => [
  299. 'location' => 'query',
  300. 'type' => 'string',
  301. ],
  302. ],
  303. ],'patch' => [
  304. 'path' => 'v1beta1/{+name}',
  305. 'httpMethod' => 'PATCH',
  306. 'parameters' => [
  307. 'name' => [
  308. 'location' => 'path',
  309. 'type' => 'string',
  310. 'required' => true,
  311. ],
  312. 'updateMask' => [
  313. 'location' => 'query',
  314. 'type' => 'string',
  315. ],
  316. ],
  317. ],'setIamPolicy' => [
  318. 'path' => 'v1beta1/{+resource}:setIamPolicy',
  319. 'httpMethod' => 'POST',
  320. 'parameters' => [
  321. 'resource' => [
  322. 'location' => 'path',
  323. 'type' => 'string',
  324. 'required' => true,
  325. ],
  326. ],
  327. ],'subscribe' => [
  328. 'path' => 'v1beta1/{+name}:subscribe',
  329. 'httpMethod' => 'POST',
  330. 'parameters' => [
  331. 'name' => [
  332. 'location' => 'path',
  333. 'type' => 'string',
  334. 'required' => true,
  335. ],
  336. ],
  337. ],'testIamPermissions' => [
  338. 'path' => 'v1beta1/{+resource}:testIamPermissions',
  339. 'httpMethod' => 'POST',
  340. 'parameters' => [
  341. 'resource' => [
  342. 'location' => 'path',
  343. 'type' => 'string',
  344. 'required' => true,
  345. ],
  346. ],
  347. ],
  348. ]
  349. ]
  350. );
  351. }
  352. }
  353. // Adding a class alias for backwards compatibility with the previous class name.
  354. class_alias(AnalyticsHub::class, 'Google_Service_AnalyticsHub');