source: vendor/google/apiclient-services/src/AnalyticsHub.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 15.0 KB
Line 
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
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for AnalyticsHub (v1).
24 *
25 * <p>
26 * Exchange data and analytics assets securely and efficiently.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/bigquery/docs/analytics-hub-introduction" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class AnalyticsHub extends \Google\Service
36{
37 /** View and manage your data in Google BigQuery and see the email address for your Google Account. */
38 const BIGQUERY =
39 "https://www.googleapis.com/auth/bigquery";
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
44 public $organizations_locations_dataExchanges;
45 public $projects_locations_dataExchanges;
46 public $projects_locations_dataExchanges_listings;
47 public $projects_locations_subscriptions;
48 public $rootUrlTemplate;
49
50 /**
51 * Constructs the internal representation of the AnalyticsHub service.
52 *
53 * @param Client|array $clientOrConfig The client used to deliver requests, or a
54 * config array to pass to a new Client instance.
55 * @param string $rootUrl The root URL used for requests to the service.
56 */
57 public function __construct($clientOrConfig = [], $rootUrl = null)
58 {
59 parent::__construct($clientOrConfig);
60 $this->rootUrl = $rootUrl ?: 'https://analyticshub.googleapis.com/';
61 $this->rootUrlTemplate = $rootUrl ?: 'https://analyticshub.UNIVERSE_DOMAIN/';
62 $this->servicePath = '';
63 $this->batchPath = 'batch';
64 $this->version = 'v1';
65 $this->serviceName = 'analyticshub';
66
67 $this->organizations_locations_dataExchanges = new AnalyticsHub\Resource\OrganizationsLocationsDataExchanges(
68 $this,
69 $this->serviceName,
70 'dataExchanges',
71 [
72 'methods' => [
73 'list' => [
74 'path' => 'v1/{+organization}/dataExchanges',
75 'httpMethod' => 'GET',
76 'parameters' => [
77 'organization' => [
78 'location' => 'path',
79 'type' => 'string',
80 'required' => true,
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_dataExchanges = new AnalyticsHub\Resource\ProjectsLocationsDataExchanges(
96 $this,
97 $this->serviceName,
98 'dataExchanges',
99 [
100 'methods' => [
101 'create' => [
102 'path' => 'v1/{+parent}/dataExchanges',
103 'httpMethod' => 'POST',
104 'parameters' => [
105 'parent' => [
106 'location' => 'path',
107 'type' => 'string',
108 'required' => true,
109 ],
110 'dataExchangeId' => [
111 'location' => 'query',
112 'type' => 'string',
113 ],
114 ],
115 ],'delete' => [
116 'path' => 'v1/{+name}',
117 'httpMethod' => 'DELETE',
118 'parameters' => [
119 'name' => [
120 'location' => 'path',
121 'type' => 'string',
122 'required' => true,
123 ],
124 ],
125 ],'get' => [
126 'path' => 'v1/{+name}',
127 'httpMethod' => 'GET',
128 'parameters' => [
129 'name' => [
130 'location' => 'path',
131 'type' => 'string',
132 'required' => true,
133 ],
134 ],
135 ],'getIamPolicy' => [
136 'path' => 'v1/{+resource}:getIamPolicy',
137 'httpMethod' => 'POST',
138 'parameters' => [
139 'resource' => [
140 'location' => 'path',
141 'type' => 'string',
142 'required' => true,
143 ],
144 ],
145 ],'list' => [
146 'path' => 'v1/{+parent}/dataExchanges',
147 'httpMethod' => 'GET',
148 'parameters' => [
149 'parent' => [
150 'location' => 'path',
151 'type' => 'string',
152 'required' => true,
153 ],
154 'pageSize' => [
155 'location' => 'query',
156 'type' => 'integer',
157 ],
158 'pageToken' => [
159 'location' => 'query',
160 'type' => 'string',
161 ],
162 ],
163 ],'listSubscriptions' => [
164 'path' => 'v1/{+resource}:listSubscriptions',
165 'httpMethod' => 'GET',
166 'parameters' => [
167 'resource' => [
168 'location' => 'path',
169 'type' => 'string',
170 'required' => true,
171 ],
172 'includeDeletedSubscriptions' => [
173 'location' => 'query',
174 'type' => 'boolean',
175 ],
176 'pageSize' => [
177 'location' => 'query',
178 'type' => 'integer',
179 ],
180 'pageToken' => [
181 'location' => 'query',
182 'type' => 'string',
183 ],
184 ],
185 ],'patch' => [
186 'path' => 'v1/{+name}',
187 'httpMethod' => 'PATCH',
188 'parameters' => [
189 'name' => [
190 'location' => 'path',
191 'type' => 'string',
192 'required' => true,
193 ],
194 'updateMask' => [
195 'location' => 'query',
196 'type' => 'string',
197 ],
198 ],
199 ],'setIamPolicy' => [
200 'path' => 'v1/{+resource}:setIamPolicy',
201 'httpMethod' => 'POST',
202 'parameters' => [
203 'resource' => [
204 'location' => 'path',
205 'type' => 'string',
206 'required' => true,
207 ],
208 ],
209 ],'subscribe' => [
210 'path' => 'v1/{+name}:subscribe',
211 'httpMethod' => 'POST',
212 'parameters' => [
213 'name' => [
214 'location' => 'path',
215 'type' => 'string',
216 'required' => true,
217 ],
218 ],
219 ],'testIamPermissions' => [
220 'path' => 'v1/{+resource}:testIamPermissions',
221 'httpMethod' => 'POST',
222 'parameters' => [
223 'resource' => [
224 'location' => 'path',
225 'type' => 'string',
226 'required' => true,
227 ],
228 ],
229 ],
230 ]
231 ]
232 );
233 $this->projects_locations_dataExchanges_listings = new AnalyticsHub\Resource\ProjectsLocationsDataExchangesListings(
234 $this,
235 $this->serviceName,
236 'listings',
237 [
238 'methods' => [
239 'create' => [
240 'path' => 'v1/{+parent}/listings',
241 'httpMethod' => 'POST',
242 'parameters' => [
243 'parent' => [
244 'location' => 'path',
245 'type' => 'string',
246 'required' => true,
247 ],
248 'listingId' => [
249 'location' => 'query',
250 'type' => 'string',
251 ],
252 ],
253 ],'delete' => [
254 'path' => 'v1/{+name}',
255 'httpMethod' => 'DELETE',
256 'parameters' => [
257 'name' => [
258 'location' => 'path',
259 'type' => 'string',
260 'required' => true,
261 ],
262 ],
263 ],'get' => [
264 'path' => 'v1/{+name}',
265 'httpMethod' => 'GET',
266 'parameters' => [
267 'name' => [
268 'location' => 'path',
269 'type' => 'string',
270 'required' => true,
271 ],
272 ],
273 ],'getIamPolicy' => [
274 'path' => 'v1/{+resource}:getIamPolicy',
275 'httpMethod' => 'POST',
276 'parameters' => [
277 'resource' => [
278 'location' => 'path',
279 'type' => 'string',
280 'required' => true,
281 ],
282 ],
283 ],'list' => [
284 'path' => 'v1/{+parent}/listings',
285 'httpMethod' => 'GET',
286 'parameters' => [
287 'parent' => [
288 'location' => 'path',
289 'type' => 'string',
290 'required' => true,
291 ],
292 'pageSize' => [
293 'location' => 'query',
294 'type' => 'integer',
295 ],
296 'pageToken' => [
297 'location' => 'query',
298 'type' => 'string',
299 ],
300 ],
301 ],'listSubscriptions' => [
302 'path' => 'v1/{+resource}:listSubscriptions',
303 'httpMethod' => 'GET',
304 'parameters' => [
305 'resource' => [
306 'location' => 'path',
307 'type' => 'string',
308 'required' => true,
309 ],
310 'includeDeletedSubscriptions' => [
311 'location' => 'query',
312 'type' => 'boolean',
313 ],
314 'pageSize' => [
315 'location' => 'query',
316 'type' => 'integer',
317 ],
318 'pageToken' => [
319 'location' => 'query',
320 'type' => 'string',
321 ],
322 ],
323 ],'patch' => [
324 'path' => 'v1/{+name}',
325 'httpMethod' => 'PATCH',
326 'parameters' => [
327 'name' => [
328 'location' => 'path',
329 'type' => 'string',
330 'required' => true,
331 ],
332 'updateMask' => [
333 'location' => 'query',
334 'type' => 'string',
335 ],
336 ],
337 ],'setIamPolicy' => [
338 'path' => 'v1/{+resource}:setIamPolicy',
339 'httpMethod' => 'POST',
340 'parameters' => [
341 'resource' => [
342 'location' => 'path',
343 'type' => 'string',
344 'required' => true,
345 ],
346 ],
347 ],'subscribe' => [
348 'path' => 'v1/{+name}:subscribe',
349 'httpMethod' => 'POST',
350 'parameters' => [
351 'name' => [
352 'location' => 'path',
353 'type' => 'string',
354 'required' => true,
355 ],
356 ],
357 ],'testIamPermissions' => [
358 'path' => 'v1/{+resource}:testIamPermissions',
359 'httpMethod' => 'POST',
360 'parameters' => [
361 'resource' => [
362 'location' => 'path',
363 'type' => 'string',
364 'required' => true,
365 ],
366 ],
367 ],
368 ]
369 ]
370 );
371 $this->projects_locations_subscriptions = new AnalyticsHub\Resource\ProjectsLocationsSubscriptions(
372 $this,
373 $this->serviceName,
374 'subscriptions',
375 [
376 'methods' => [
377 'delete' => [
378 'path' => 'v1/{+name}',
379 'httpMethod' => 'DELETE',
380 'parameters' => [
381 'name' => [
382 'location' => 'path',
383 'type' => 'string',
384 'required' => true,
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 ],
397 ],'getIamPolicy' => [
398 'path' => 'v1/{+resource}:getIamPolicy',
399 'httpMethod' => 'POST',
400 'parameters' => [
401 'resource' => [
402 'location' => 'path',
403 'type' => 'string',
404 'required' => true,
405 ],
406 ],
407 ],'list' => [
408 'path' => 'v1/{+parent}/subscriptions',
409 'httpMethod' => 'GET',
410 'parameters' => [
411 'parent' => [
412 'location' => 'path',
413 'type' => 'string',
414 'required' => true,
415 ],
416 'filter' => [
417 'location' => 'query',
418 'type' => 'string',
419 ],
420 'pageSize' => [
421 'location' => 'query',
422 'type' => 'integer',
423 ],
424 'pageToken' => [
425 'location' => 'query',
426 'type' => 'string',
427 ],
428 ],
429 ],'refresh' => [
430 'path' => 'v1/{+name}:refresh',
431 'httpMethod' => 'POST',
432 'parameters' => [
433 'name' => [
434 'location' => 'path',
435 'type' => 'string',
436 'required' => true,
437 ],
438 ],
439 ],'revoke' => [
440 'path' => 'v1/{+name}:revoke',
441 'httpMethod' => 'POST',
442 'parameters' => [
443 'name' => [
444 'location' => 'path',
445 'type' => 'string',
446 'required' => true,
447 ],
448 ],
449 ],'setIamPolicy' => [
450 'path' => 'v1/{+resource}:setIamPolicy',
451 'httpMethod' => 'POST',
452 'parameters' => [
453 'resource' => [
454 'location' => 'path',
455 'type' => 'string',
456 'required' => true,
457 ],
458 ],
459 ],
460 ]
461 ]
462 );
463 }
464}
465
466// Adding a class alias for backwards compatibility with the previous class name.
467class_alias(AnalyticsHub::class, 'Google_Service_AnalyticsHub');
Note: See TracBrowser for help on using the repository browser.