source: vendor/google/apiclient-services/src/GoogleAnalyticsAdmin.php

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

Upload project files

  • Property mode set to 100644
File size: 27.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 GoogleAnalyticsAdmin (v1beta).
24 *
25 * <p>
26 * Manage properties in Google Analytics. Warning: Creating multiple Customer
27 * Applications, Accounts, or Projects to simulate or act as a single Customer
28 * Application, Account, or Project (respectively) or to circumvent Service-
29 * specific usage limits or quotas is a direct violation of Google Cloud
30 * Platform Terms of Service as well as Google APIs Terms of Service. These
31 * actions can result in immediate termination of your GCP project(s) without
32 * any warning.</p>
33 *
34 * <p>
35 * For more information about this service, see the API
36 * <a href="http://code.google.com/apis/analytics/docs/mgmt/home.html" target="_blank">Documentation</a>
37 * </p>
38 *
39 * @author Google, Inc.
40 */
41class GoogleAnalyticsAdmin extends \Google\Service
42{
43 /** Edit Google Analytics management entities. */
44 const ANALYTICS_EDIT =
45 "https://www.googleapis.com/auth/analytics.edit";
46 /** See and download your Google Analytics data. */
47 const ANALYTICS_READONLY =
48 "https://www.googleapis.com/auth/analytics.readonly";
49
50 public $accountSummaries;
51 public $accounts;
52 public $properties;
53 public $properties_conversionEvents;
54 public $properties_customDimensions;
55 public $properties_customMetrics;
56 public $properties_dataStreams;
57 public $properties_dataStreams_measurementProtocolSecrets;
58 public $properties_firebaseLinks;
59 public $properties_googleAdsLinks;
60 public $properties_keyEvents;
61 public $rootUrlTemplate;
62
63 /**
64 * Constructs the internal representation of the GoogleAnalyticsAdmin service.
65 *
66 * @param Client|array $clientOrConfig The client used to deliver requests, or a
67 * config array to pass to a new Client instance.
68 * @param string $rootUrl The root URL used for requests to the service.
69 */
70 public function __construct($clientOrConfig = [], $rootUrl = null)
71 {
72 parent::__construct($clientOrConfig);
73 $this->rootUrl = $rootUrl ?: 'https://analyticsadmin.googleapis.com/';
74 $this->rootUrlTemplate = $rootUrl ?: 'https://analyticsadmin.UNIVERSE_DOMAIN/';
75 $this->servicePath = '';
76 $this->batchPath = 'batch';
77 $this->version = 'v1beta';
78 $this->serviceName = 'analyticsadmin';
79
80 $this->accountSummaries = new GoogleAnalyticsAdmin\Resource\AccountSummaries(
81 $this,
82 $this->serviceName,
83 'accountSummaries',
84 [
85 'methods' => [
86 'list' => [
87 'path' => 'v1beta/accountSummaries',
88 'httpMethod' => 'GET',
89 'parameters' => [
90 'pageSize' => [
91 'location' => 'query',
92 'type' => 'integer',
93 ],
94 'pageToken' => [
95 'location' => 'query',
96 'type' => 'string',
97 ],
98 ],
99 ],
100 ]
101 ]
102 );
103 $this->accounts = new GoogleAnalyticsAdmin\Resource\Accounts(
104 $this,
105 $this->serviceName,
106 'accounts',
107 [
108 'methods' => [
109 'delete' => [
110 'path' => 'v1beta/{+name}',
111 'httpMethod' => 'DELETE',
112 'parameters' => [
113 'name' => [
114 'location' => 'path',
115 'type' => 'string',
116 'required' => true,
117 ],
118 ],
119 ],'get' => [
120 'path' => 'v1beta/{+name}',
121 'httpMethod' => 'GET',
122 'parameters' => [
123 'name' => [
124 'location' => 'path',
125 'type' => 'string',
126 'required' => true,
127 ],
128 ],
129 ],'getDataSharingSettings' => [
130 'path' => 'v1beta/{+name}',
131 'httpMethod' => 'GET',
132 'parameters' => [
133 'name' => [
134 'location' => 'path',
135 'type' => 'string',
136 'required' => true,
137 ],
138 ],
139 ],'list' => [
140 'path' => 'v1beta/accounts',
141 'httpMethod' => 'GET',
142 'parameters' => [
143 'pageSize' => [
144 'location' => 'query',
145 'type' => 'integer',
146 ],
147 'pageToken' => [
148 'location' => 'query',
149 'type' => 'string',
150 ],
151 'showDeleted' => [
152 'location' => 'query',
153 'type' => 'boolean',
154 ],
155 ],
156 ],'patch' => [
157 'path' => 'v1beta/{+name}',
158 'httpMethod' => 'PATCH',
159 'parameters' => [
160 'name' => [
161 'location' => 'path',
162 'type' => 'string',
163 'required' => true,
164 ],
165 'updateMask' => [
166 'location' => 'query',
167 'type' => 'string',
168 ],
169 ],
170 ],'provisionAccountTicket' => [
171 'path' => 'v1beta/accounts:provisionAccountTicket',
172 'httpMethod' => 'POST',
173 'parameters' => [],
174 ],'runAccessReport' => [
175 'path' => 'v1beta/{+entity}:runAccessReport',
176 'httpMethod' => 'POST',
177 'parameters' => [
178 'entity' => [
179 'location' => 'path',
180 'type' => 'string',
181 'required' => true,
182 ],
183 ],
184 ],'searchChangeHistoryEvents' => [
185 'path' => 'v1beta/{+account}:searchChangeHistoryEvents',
186 'httpMethod' => 'POST',
187 'parameters' => [
188 'account' => [
189 'location' => 'path',
190 'type' => 'string',
191 'required' => true,
192 ],
193 ],
194 ],
195 ]
196 ]
197 );
198 $this->properties = new GoogleAnalyticsAdmin\Resource\Properties(
199 $this,
200 $this->serviceName,
201 'properties',
202 [
203 'methods' => [
204 'acknowledgeUserDataCollection' => [
205 'path' => 'v1beta/{+property}:acknowledgeUserDataCollection',
206 'httpMethod' => 'POST',
207 'parameters' => [
208 'property' => [
209 'location' => 'path',
210 'type' => 'string',
211 'required' => true,
212 ],
213 ],
214 ],'create' => [
215 'path' => 'v1beta/properties',
216 'httpMethod' => 'POST',
217 'parameters' => [],
218 ],'delete' => [
219 'path' => 'v1beta/{+name}',
220 'httpMethod' => 'DELETE',
221 'parameters' => [
222 'name' => [
223 'location' => 'path',
224 'type' => 'string',
225 'required' => true,
226 ],
227 ],
228 ],'get' => [
229 'path' => 'v1beta/{+name}',
230 'httpMethod' => 'GET',
231 'parameters' => [
232 'name' => [
233 'location' => 'path',
234 'type' => 'string',
235 'required' => true,
236 ],
237 ],
238 ],'getDataRetentionSettings' => [
239 'path' => 'v1beta/{+name}',
240 'httpMethod' => 'GET',
241 'parameters' => [
242 'name' => [
243 'location' => 'path',
244 'type' => 'string',
245 'required' => true,
246 ],
247 ],
248 ],'list' => [
249 'path' => 'v1beta/properties',
250 'httpMethod' => 'GET',
251 'parameters' => [
252 'filter' => [
253 'location' => 'query',
254 'type' => 'string',
255 ],
256 'pageSize' => [
257 'location' => 'query',
258 'type' => 'integer',
259 ],
260 'pageToken' => [
261 'location' => 'query',
262 'type' => 'string',
263 ],
264 'showDeleted' => [
265 'location' => 'query',
266 'type' => 'boolean',
267 ],
268 ],
269 ],'patch' => [
270 'path' => 'v1beta/{+name}',
271 'httpMethod' => 'PATCH',
272 'parameters' => [
273 'name' => [
274 'location' => 'path',
275 'type' => 'string',
276 'required' => true,
277 ],
278 'updateMask' => [
279 'location' => 'query',
280 'type' => 'string',
281 ],
282 ],
283 ],'runAccessReport' => [
284 'path' => 'v1beta/{+entity}:runAccessReport',
285 'httpMethod' => 'POST',
286 'parameters' => [
287 'entity' => [
288 'location' => 'path',
289 'type' => 'string',
290 'required' => true,
291 ],
292 ],
293 ],'updateDataRetentionSettings' => [
294 'path' => 'v1beta/{+name}',
295 'httpMethod' => 'PATCH',
296 'parameters' => [
297 'name' => [
298 'location' => 'path',
299 'type' => 'string',
300 'required' => true,
301 ],
302 'updateMask' => [
303 'location' => 'query',
304 'type' => 'string',
305 ],
306 ],
307 ],
308 ]
309 ]
310 );
311 $this->properties_conversionEvents = new GoogleAnalyticsAdmin\Resource\PropertiesConversionEvents(
312 $this,
313 $this->serviceName,
314 'conversionEvents',
315 [
316 'methods' => [
317 'create' => [
318 'path' => 'v1beta/{+parent}/conversionEvents',
319 'httpMethod' => 'POST',
320 'parameters' => [
321 'parent' => [
322 'location' => 'path',
323 'type' => 'string',
324 'required' => true,
325 ],
326 ],
327 ],'delete' => [
328 'path' => 'v1beta/{+name}',
329 'httpMethod' => 'DELETE',
330 'parameters' => [
331 'name' => [
332 'location' => 'path',
333 'type' => 'string',
334 'required' => true,
335 ],
336 ],
337 ],'get' => [
338 'path' => 'v1beta/{+name}',
339 'httpMethod' => 'GET',
340 'parameters' => [
341 'name' => [
342 'location' => 'path',
343 'type' => 'string',
344 'required' => true,
345 ],
346 ],
347 ],'list' => [
348 'path' => 'v1beta/{+parent}/conversionEvents',
349 'httpMethod' => 'GET',
350 'parameters' => [
351 'parent' => [
352 'location' => 'path',
353 'type' => 'string',
354 'required' => true,
355 ],
356 'pageSize' => [
357 'location' => 'query',
358 'type' => 'integer',
359 ],
360 'pageToken' => [
361 'location' => 'query',
362 'type' => 'string',
363 ],
364 ],
365 ],'patch' => [
366 'path' => 'v1beta/{+name}',
367 'httpMethod' => 'PATCH',
368 'parameters' => [
369 'name' => [
370 'location' => 'path',
371 'type' => 'string',
372 'required' => true,
373 ],
374 'updateMask' => [
375 'location' => 'query',
376 'type' => 'string',
377 ],
378 ],
379 ],
380 ]
381 ]
382 );
383 $this->properties_customDimensions = new GoogleAnalyticsAdmin\Resource\PropertiesCustomDimensions(
384 $this,
385 $this->serviceName,
386 'customDimensions',
387 [
388 'methods' => [
389 'archive' => [
390 'path' => 'v1beta/{+name}:archive',
391 'httpMethod' => 'POST',
392 'parameters' => [
393 'name' => [
394 'location' => 'path',
395 'type' => 'string',
396 'required' => true,
397 ],
398 ],
399 ],'create' => [
400 'path' => 'v1beta/{+parent}/customDimensions',
401 'httpMethod' => 'POST',
402 'parameters' => [
403 'parent' => [
404 'location' => 'path',
405 'type' => 'string',
406 'required' => true,
407 ],
408 ],
409 ],'get' => [
410 'path' => 'v1beta/{+name}',
411 'httpMethod' => 'GET',
412 'parameters' => [
413 'name' => [
414 'location' => 'path',
415 'type' => 'string',
416 'required' => true,
417 ],
418 ],
419 ],'list' => [
420 'path' => 'v1beta/{+parent}/customDimensions',
421 'httpMethod' => 'GET',
422 'parameters' => [
423 'parent' => [
424 'location' => 'path',
425 'type' => 'string',
426 'required' => true,
427 ],
428 'pageSize' => [
429 'location' => 'query',
430 'type' => 'integer',
431 ],
432 'pageToken' => [
433 'location' => 'query',
434 'type' => 'string',
435 ],
436 ],
437 ],'patch' => [
438 'path' => 'v1beta/{+name}',
439 'httpMethod' => 'PATCH',
440 'parameters' => [
441 'name' => [
442 'location' => 'path',
443 'type' => 'string',
444 'required' => true,
445 ],
446 'updateMask' => [
447 'location' => 'query',
448 'type' => 'string',
449 ],
450 ],
451 ],
452 ]
453 ]
454 );
455 $this->properties_customMetrics = new GoogleAnalyticsAdmin\Resource\PropertiesCustomMetrics(
456 $this,
457 $this->serviceName,
458 'customMetrics',
459 [
460 'methods' => [
461 'archive' => [
462 'path' => 'v1beta/{+name}:archive',
463 'httpMethod' => 'POST',
464 'parameters' => [
465 'name' => [
466 'location' => 'path',
467 'type' => 'string',
468 'required' => true,
469 ],
470 ],
471 ],'create' => [
472 'path' => 'v1beta/{+parent}/customMetrics',
473 'httpMethod' => 'POST',
474 'parameters' => [
475 'parent' => [
476 'location' => 'path',
477 'type' => 'string',
478 'required' => true,
479 ],
480 ],
481 ],'get' => [
482 'path' => 'v1beta/{+name}',
483 'httpMethod' => 'GET',
484 'parameters' => [
485 'name' => [
486 'location' => 'path',
487 'type' => 'string',
488 'required' => true,
489 ],
490 ],
491 ],'list' => [
492 'path' => 'v1beta/{+parent}/customMetrics',
493 'httpMethod' => 'GET',
494 'parameters' => [
495 'parent' => [
496 'location' => 'path',
497 'type' => 'string',
498 'required' => true,
499 ],
500 'pageSize' => [
501 'location' => 'query',
502 'type' => 'integer',
503 ],
504 'pageToken' => [
505 'location' => 'query',
506 'type' => 'string',
507 ],
508 ],
509 ],'patch' => [
510 'path' => 'v1beta/{+name}',
511 'httpMethod' => 'PATCH',
512 'parameters' => [
513 'name' => [
514 'location' => 'path',
515 'type' => 'string',
516 'required' => true,
517 ],
518 'updateMask' => [
519 'location' => 'query',
520 'type' => 'string',
521 ],
522 ],
523 ],
524 ]
525 ]
526 );
527 $this->properties_dataStreams = new GoogleAnalyticsAdmin\Resource\PropertiesDataStreams(
528 $this,
529 $this->serviceName,
530 'dataStreams',
531 [
532 'methods' => [
533 'create' => [
534 'path' => 'v1beta/{+parent}/dataStreams',
535 'httpMethod' => 'POST',
536 'parameters' => [
537 'parent' => [
538 'location' => 'path',
539 'type' => 'string',
540 'required' => true,
541 ],
542 ],
543 ],'delete' => [
544 'path' => 'v1beta/{+name}',
545 'httpMethod' => 'DELETE',
546 'parameters' => [
547 'name' => [
548 'location' => 'path',
549 'type' => 'string',
550 'required' => true,
551 ],
552 ],
553 ],'get' => [
554 'path' => 'v1beta/{+name}',
555 'httpMethod' => 'GET',
556 'parameters' => [
557 'name' => [
558 'location' => 'path',
559 'type' => 'string',
560 'required' => true,
561 ],
562 ],
563 ],'list' => [
564 'path' => 'v1beta/{+parent}/dataStreams',
565 'httpMethod' => 'GET',
566 'parameters' => [
567 'parent' => [
568 'location' => 'path',
569 'type' => 'string',
570 'required' => true,
571 ],
572 'pageSize' => [
573 'location' => 'query',
574 'type' => 'integer',
575 ],
576 'pageToken' => [
577 'location' => 'query',
578 'type' => 'string',
579 ],
580 ],
581 ],'patch' => [
582 'path' => 'v1beta/{+name}',
583 'httpMethod' => 'PATCH',
584 'parameters' => [
585 'name' => [
586 'location' => 'path',
587 'type' => 'string',
588 'required' => true,
589 ],
590 'updateMask' => [
591 'location' => 'query',
592 'type' => 'string',
593 ],
594 ],
595 ],
596 ]
597 ]
598 );
599 $this->properties_dataStreams_measurementProtocolSecrets = new GoogleAnalyticsAdmin\Resource\PropertiesDataStreamsMeasurementProtocolSecrets(
600 $this,
601 $this->serviceName,
602 'measurementProtocolSecrets',
603 [
604 'methods' => [
605 'create' => [
606 'path' => 'v1beta/{+parent}/measurementProtocolSecrets',
607 'httpMethod' => 'POST',
608 'parameters' => [
609 'parent' => [
610 'location' => 'path',
611 'type' => 'string',
612 'required' => true,
613 ],
614 ],
615 ],'delete' => [
616 'path' => 'v1beta/{+name}',
617 'httpMethod' => 'DELETE',
618 'parameters' => [
619 'name' => [
620 'location' => 'path',
621 'type' => 'string',
622 'required' => true,
623 ],
624 ],
625 ],'get' => [
626 'path' => 'v1beta/{+name}',
627 'httpMethod' => 'GET',
628 'parameters' => [
629 'name' => [
630 'location' => 'path',
631 'type' => 'string',
632 'required' => true,
633 ],
634 ],
635 ],'list' => [
636 'path' => 'v1beta/{+parent}/measurementProtocolSecrets',
637 'httpMethod' => 'GET',
638 'parameters' => [
639 'parent' => [
640 'location' => 'path',
641 'type' => 'string',
642 'required' => true,
643 ],
644 'pageSize' => [
645 'location' => 'query',
646 'type' => 'integer',
647 ],
648 'pageToken' => [
649 'location' => 'query',
650 'type' => 'string',
651 ],
652 ],
653 ],'patch' => [
654 'path' => 'v1beta/{+name}',
655 'httpMethod' => 'PATCH',
656 'parameters' => [
657 'name' => [
658 'location' => 'path',
659 'type' => 'string',
660 'required' => true,
661 ],
662 'updateMask' => [
663 'location' => 'query',
664 'type' => 'string',
665 ],
666 ],
667 ],
668 ]
669 ]
670 );
671 $this->properties_firebaseLinks = new GoogleAnalyticsAdmin\Resource\PropertiesFirebaseLinks(
672 $this,
673 $this->serviceName,
674 'firebaseLinks',
675 [
676 'methods' => [
677 'create' => [
678 'path' => 'v1beta/{+parent}/firebaseLinks',
679 'httpMethod' => 'POST',
680 'parameters' => [
681 'parent' => [
682 'location' => 'path',
683 'type' => 'string',
684 'required' => true,
685 ],
686 ],
687 ],'delete' => [
688 'path' => 'v1beta/{+name}',
689 'httpMethod' => 'DELETE',
690 'parameters' => [
691 'name' => [
692 'location' => 'path',
693 'type' => 'string',
694 'required' => true,
695 ],
696 ],
697 ],'list' => [
698 'path' => 'v1beta/{+parent}/firebaseLinks',
699 'httpMethod' => 'GET',
700 'parameters' => [
701 'parent' => [
702 'location' => 'path',
703 'type' => 'string',
704 'required' => true,
705 ],
706 'pageSize' => [
707 'location' => 'query',
708 'type' => 'integer',
709 ],
710 'pageToken' => [
711 'location' => 'query',
712 'type' => 'string',
713 ],
714 ],
715 ],
716 ]
717 ]
718 );
719 $this->properties_googleAdsLinks = new GoogleAnalyticsAdmin\Resource\PropertiesGoogleAdsLinks(
720 $this,
721 $this->serviceName,
722 'googleAdsLinks',
723 [
724 'methods' => [
725 'create' => [
726 'path' => 'v1beta/{+parent}/googleAdsLinks',
727 'httpMethod' => 'POST',
728 'parameters' => [
729 'parent' => [
730 'location' => 'path',
731 'type' => 'string',
732 'required' => true,
733 ],
734 ],
735 ],'delete' => [
736 'path' => 'v1beta/{+name}',
737 'httpMethod' => 'DELETE',
738 'parameters' => [
739 'name' => [
740 'location' => 'path',
741 'type' => 'string',
742 'required' => true,
743 ],
744 ],
745 ],'list' => [
746 'path' => 'v1beta/{+parent}/googleAdsLinks',
747 'httpMethod' => 'GET',
748 'parameters' => [
749 'parent' => [
750 'location' => 'path',
751 'type' => 'string',
752 'required' => true,
753 ],
754 'pageSize' => [
755 'location' => 'query',
756 'type' => 'integer',
757 ],
758 'pageToken' => [
759 'location' => 'query',
760 'type' => 'string',
761 ],
762 ],
763 ],'patch' => [
764 'path' => 'v1beta/{+name}',
765 'httpMethod' => 'PATCH',
766 'parameters' => [
767 'name' => [
768 'location' => 'path',
769 'type' => 'string',
770 'required' => true,
771 ],
772 'updateMask' => [
773 'location' => 'query',
774 'type' => 'string',
775 ],
776 ],
777 ],
778 ]
779 ]
780 );
781 $this->properties_keyEvents = new GoogleAnalyticsAdmin\Resource\PropertiesKeyEvents(
782 $this,
783 $this->serviceName,
784 'keyEvents',
785 [
786 'methods' => [
787 'create' => [
788 'path' => 'v1beta/{+parent}/keyEvents',
789 'httpMethod' => 'POST',
790 'parameters' => [
791 'parent' => [
792 'location' => 'path',
793 'type' => 'string',
794 'required' => true,
795 ],
796 ],
797 ],'delete' => [
798 'path' => 'v1beta/{+name}',
799 'httpMethod' => 'DELETE',
800 'parameters' => [
801 'name' => [
802 'location' => 'path',
803 'type' => 'string',
804 'required' => true,
805 ],
806 ],
807 ],'get' => [
808 'path' => 'v1beta/{+name}',
809 'httpMethod' => 'GET',
810 'parameters' => [
811 'name' => [
812 'location' => 'path',
813 'type' => 'string',
814 'required' => true,
815 ],
816 ],
817 ],'list' => [
818 'path' => 'v1beta/{+parent}/keyEvents',
819 'httpMethod' => 'GET',
820 'parameters' => [
821 'parent' => [
822 'location' => 'path',
823 'type' => 'string',
824 'required' => true,
825 ],
826 'pageSize' => [
827 'location' => 'query',
828 'type' => 'integer',
829 ],
830 'pageToken' => [
831 'location' => 'query',
832 'type' => 'string',
833 ],
834 ],
835 ],'patch' => [
836 'path' => 'v1beta/{+name}',
837 'httpMethod' => 'PATCH',
838 'parameters' => [
839 'name' => [
840 'location' => 'path',
841 'type' => 'string',
842 'required' => true,
843 ],
844 'updateMask' => [
845 'location' => 'query',
846 'type' => 'string',
847 ],
848 ],
849 ],
850 ]
851 ]
852 );
853 }
854}
855
856// Adding a class alias for backwards compatibility with the previous class name.
857class_alias(GoogleAnalyticsAdmin::class, 'Google_Service_GoogleAnalyticsAdmin');
Note: See TracBrowser for help on using the repository browser.