OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.tagmanager.v1; | 3 library googleapis.tagmanager.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 downloadOptions: _downloadOptions); | 178 downloadOptions: _downloadOptions); |
179 return _response.then((data) => new Account.fromJson(data)); | 179 return _response.then((data) => new Account.fromJson(data)); |
180 } | 180 } |
181 | 181 |
182 } | 182 } |
183 | 183 |
184 | 184 |
185 class AccountsContainersResourceApi { | 185 class AccountsContainersResourceApi { |
186 final commons.ApiRequester _requester; | 186 final commons.ApiRequester _requester; |
187 | 187 |
| 188 AccountsContainersFoldersResourceApi get folders => new AccountsContainersFold
ersResourceApi(_requester); |
188 AccountsContainersMacrosResourceApi get macros => new AccountsContainersMacros
ResourceApi(_requester); | 189 AccountsContainersMacrosResourceApi get macros => new AccountsContainersMacros
ResourceApi(_requester); |
| 190 AccountsContainersMoveFoldersResourceApi get moveFolders => new AccountsContai
nersMoveFoldersResourceApi(_requester); |
189 AccountsContainersRulesResourceApi get rules => new AccountsContainersRulesRes
ourceApi(_requester); | 191 AccountsContainersRulesResourceApi get rules => new AccountsContainersRulesRes
ourceApi(_requester); |
190 AccountsContainersTagsResourceApi get tags => new AccountsContainersTagsResour
ceApi(_requester); | 192 AccountsContainersTagsResourceApi get tags => new AccountsContainersTagsResour
ceApi(_requester); |
191 AccountsContainersTriggersResourceApi get triggers => new AccountsContainersTr
iggersResourceApi(_requester); | 193 AccountsContainersTriggersResourceApi get triggers => new AccountsContainersTr
iggersResourceApi(_requester); |
192 AccountsContainersVariablesResourceApi get variables => new AccountsContainers
VariablesResourceApi(_requester); | 194 AccountsContainersVariablesResourceApi get variables => new AccountsContainers
VariablesResourceApi(_requester); |
193 AccountsContainersVersionsResourceApi get versions => new AccountsContainersVe
rsionsResourceApi(_requester); | 195 AccountsContainersVersionsResourceApi get versions => new AccountsContainersVe
rsionsResourceApi(_requester); |
194 | 196 |
195 AccountsContainersResourceApi(commons.ApiRequester client) : | 197 AccountsContainersResourceApi(commons.ApiRequester client) : |
196 _requester = client; | 198 _requester = client; |
197 | 199 |
198 /** | 200 /** |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 queryParams: _queryParams, | 419 queryParams: _queryParams, |
418 uploadOptions: _uploadOptions, | 420 uploadOptions: _uploadOptions, |
419 uploadMedia: _uploadMedia, | 421 uploadMedia: _uploadMedia, |
420 downloadOptions: _downloadOptions); | 422 downloadOptions: _downloadOptions); |
421 return _response.then((data) => new Container.fromJson(data)); | 423 return _response.then((data) => new Container.fromJson(data)); |
422 } | 424 } |
423 | 425 |
424 } | 426 } |
425 | 427 |
426 | 428 |
| 429 class AccountsContainersFoldersResourceApi { |
| 430 final commons.ApiRequester _requester; |
| 431 |
| 432 AccountsContainersFoldersEntitiesResourceApi get entities => new AccountsConta
inersFoldersEntitiesResourceApi(_requester); |
| 433 |
| 434 AccountsContainersFoldersResourceApi(commons.ApiRequester client) : |
| 435 _requester = client; |
| 436 |
| 437 /** |
| 438 * Creates a GTM Folder. |
| 439 * |
| 440 * [request] - The metadata request object. |
| 441 * |
| 442 * Request parameters: |
| 443 * |
| 444 * [accountId] - The GTM Account ID. |
| 445 * |
| 446 * [containerId] - The GTM Container ID. |
| 447 * |
| 448 * Completes with a [Folder]. |
| 449 * |
| 450 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 451 * error. |
| 452 * |
| 453 * If the used [http.Client] completes with an error when making a REST call, |
| 454 * this method will complete with the same error. |
| 455 */ |
| 456 async.Future<Folder> create(Folder request, core.String accountId, core.String
containerId) { |
| 457 var _url = null; |
| 458 var _queryParams = new core.Map(); |
| 459 var _uploadMedia = null; |
| 460 var _uploadOptions = null; |
| 461 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 462 var _body = null; |
| 463 |
| 464 if (request != null) { |
| 465 _body = convert.JSON.encode((request).toJson()); |
| 466 } |
| 467 if (accountId == null) { |
| 468 throw new core.ArgumentError("Parameter accountId is required."); |
| 469 } |
| 470 if (containerId == null) { |
| 471 throw new core.ArgumentError("Parameter containerId is required."); |
| 472 } |
| 473 |
| 474 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/contain
ers/' + commons.Escaper.ecapeVariable('$containerId') + '/folders'; |
| 475 |
| 476 var _response = _requester.request(_url, |
| 477 "POST", |
| 478 body: _body, |
| 479 queryParams: _queryParams, |
| 480 uploadOptions: _uploadOptions, |
| 481 uploadMedia: _uploadMedia, |
| 482 downloadOptions: _downloadOptions); |
| 483 return _response.then((data) => new Folder.fromJson(data)); |
| 484 } |
| 485 |
| 486 /** |
| 487 * Deletes a GTM Folder. |
| 488 * |
| 489 * Request parameters: |
| 490 * |
| 491 * [accountId] - The GTM Account ID. |
| 492 * |
| 493 * [containerId] - The GTM Container ID. |
| 494 * |
| 495 * [folderId] - The GTM Folder ID. |
| 496 * |
| 497 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 498 * error. |
| 499 * |
| 500 * If the used [http.Client] completes with an error when making a REST call, |
| 501 * this method will complete with the same error. |
| 502 */ |
| 503 async.Future delete(core.String accountId, core.String containerId, core.Strin
g folderId) { |
| 504 var _url = null; |
| 505 var _queryParams = new core.Map(); |
| 506 var _uploadMedia = null; |
| 507 var _uploadOptions = null; |
| 508 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 509 var _body = null; |
| 510 |
| 511 if (accountId == null) { |
| 512 throw new core.ArgumentError("Parameter accountId is required."); |
| 513 } |
| 514 if (containerId == null) { |
| 515 throw new core.ArgumentError("Parameter containerId is required."); |
| 516 } |
| 517 if (folderId == null) { |
| 518 throw new core.ArgumentError("Parameter folderId is required."); |
| 519 } |
| 520 |
| 521 _downloadOptions = null; |
| 522 |
| 523 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/contain
ers/' + commons.Escaper.ecapeVariable('$containerId') + '/folders/' + commons.Es
caper.ecapeVariable('$folderId'); |
| 524 |
| 525 var _response = _requester.request(_url, |
| 526 "DELETE", |
| 527 body: _body, |
| 528 queryParams: _queryParams, |
| 529 uploadOptions: _uploadOptions, |
| 530 uploadMedia: _uploadMedia, |
| 531 downloadOptions: _downloadOptions); |
| 532 return _response.then((data) => null); |
| 533 } |
| 534 |
| 535 /** |
| 536 * Gets a GTM Folder. |
| 537 * |
| 538 * Request parameters: |
| 539 * |
| 540 * [accountId] - The GTM Account ID. |
| 541 * |
| 542 * [containerId] - The GTM Container ID. |
| 543 * |
| 544 * [folderId] - The GTM Folder ID. |
| 545 * |
| 546 * Completes with a [Folder]. |
| 547 * |
| 548 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 549 * error. |
| 550 * |
| 551 * If the used [http.Client] completes with an error when making a REST call, |
| 552 * this method will complete with the same error. |
| 553 */ |
| 554 async.Future<Folder> get(core.String accountId, core.String containerId, core.
String folderId) { |
| 555 var _url = null; |
| 556 var _queryParams = new core.Map(); |
| 557 var _uploadMedia = null; |
| 558 var _uploadOptions = null; |
| 559 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 560 var _body = null; |
| 561 |
| 562 if (accountId == null) { |
| 563 throw new core.ArgumentError("Parameter accountId is required."); |
| 564 } |
| 565 if (containerId == null) { |
| 566 throw new core.ArgumentError("Parameter containerId is required."); |
| 567 } |
| 568 if (folderId == null) { |
| 569 throw new core.ArgumentError("Parameter folderId is required."); |
| 570 } |
| 571 |
| 572 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/contain
ers/' + commons.Escaper.ecapeVariable('$containerId') + '/folders/' + commons.Es
caper.ecapeVariable('$folderId'); |
| 573 |
| 574 var _response = _requester.request(_url, |
| 575 "GET", |
| 576 body: _body, |
| 577 queryParams: _queryParams, |
| 578 uploadOptions: _uploadOptions, |
| 579 uploadMedia: _uploadMedia, |
| 580 downloadOptions: _downloadOptions); |
| 581 return _response.then((data) => new Folder.fromJson(data)); |
| 582 } |
| 583 |
| 584 /** |
| 585 * Lists all GTM Folders of a Container. |
| 586 * |
| 587 * Request parameters: |
| 588 * |
| 589 * [accountId] - The GTM Account ID. |
| 590 * |
| 591 * [containerId] - The GTM Container ID. |
| 592 * |
| 593 * Completes with a [ListFoldersResponse]. |
| 594 * |
| 595 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 596 * error. |
| 597 * |
| 598 * If the used [http.Client] completes with an error when making a REST call, |
| 599 * this method will complete with the same error. |
| 600 */ |
| 601 async.Future<ListFoldersResponse> list(core.String accountId, core.String cont
ainerId) { |
| 602 var _url = null; |
| 603 var _queryParams = new core.Map(); |
| 604 var _uploadMedia = null; |
| 605 var _uploadOptions = null; |
| 606 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 607 var _body = null; |
| 608 |
| 609 if (accountId == null) { |
| 610 throw new core.ArgumentError("Parameter accountId is required."); |
| 611 } |
| 612 if (containerId == null) { |
| 613 throw new core.ArgumentError("Parameter containerId is required."); |
| 614 } |
| 615 |
| 616 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/contain
ers/' + commons.Escaper.ecapeVariable('$containerId') + '/folders'; |
| 617 |
| 618 var _response = _requester.request(_url, |
| 619 "GET", |
| 620 body: _body, |
| 621 queryParams: _queryParams, |
| 622 uploadOptions: _uploadOptions, |
| 623 uploadMedia: _uploadMedia, |
| 624 downloadOptions: _downloadOptions); |
| 625 return _response.then((data) => new ListFoldersResponse.fromJson(data)); |
| 626 } |
| 627 |
| 628 /** |
| 629 * Updates a GTM Folder. |
| 630 * |
| 631 * [request] - The metadata request object. |
| 632 * |
| 633 * Request parameters: |
| 634 * |
| 635 * [accountId] - The GTM Account ID. |
| 636 * |
| 637 * [containerId] - The GTM Container ID. |
| 638 * |
| 639 * [folderId] - The GTM Folder ID. |
| 640 * |
| 641 * [fingerprint] - When provided, this fingerprint must match the fingerprint |
| 642 * of the folder in storage. |
| 643 * |
| 644 * Completes with a [Folder]. |
| 645 * |
| 646 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 647 * error. |
| 648 * |
| 649 * If the used [http.Client] completes with an error when making a REST call, |
| 650 * this method will complete with the same error. |
| 651 */ |
| 652 async.Future<Folder> update(Folder request, core.String accountId, core.String
containerId, core.String folderId, {core.String fingerprint}) { |
| 653 var _url = null; |
| 654 var _queryParams = new core.Map(); |
| 655 var _uploadMedia = null; |
| 656 var _uploadOptions = null; |
| 657 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 658 var _body = null; |
| 659 |
| 660 if (request != null) { |
| 661 _body = convert.JSON.encode((request).toJson()); |
| 662 } |
| 663 if (accountId == null) { |
| 664 throw new core.ArgumentError("Parameter accountId is required."); |
| 665 } |
| 666 if (containerId == null) { |
| 667 throw new core.ArgumentError("Parameter containerId is required."); |
| 668 } |
| 669 if (folderId == null) { |
| 670 throw new core.ArgumentError("Parameter folderId is required."); |
| 671 } |
| 672 if (fingerprint != null) { |
| 673 _queryParams["fingerprint"] = [fingerprint]; |
| 674 } |
| 675 |
| 676 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/contain
ers/' + commons.Escaper.ecapeVariable('$containerId') + '/folders/' + commons.Es
caper.ecapeVariable('$folderId'); |
| 677 |
| 678 var _response = _requester.request(_url, |
| 679 "PUT", |
| 680 body: _body, |
| 681 queryParams: _queryParams, |
| 682 uploadOptions: _uploadOptions, |
| 683 uploadMedia: _uploadMedia, |
| 684 downloadOptions: _downloadOptions); |
| 685 return _response.then((data) => new Folder.fromJson(data)); |
| 686 } |
| 687 |
| 688 } |
| 689 |
| 690 |
| 691 class AccountsContainersFoldersEntitiesResourceApi { |
| 692 final commons.ApiRequester _requester; |
| 693 |
| 694 AccountsContainersFoldersEntitiesResourceApi(commons.ApiRequester client) : |
| 695 _requester = client; |
| 696 |
| 697 /** |
| 698 * List all entities in a GTM Folder. |
| 699 * |
| 700 * Request parameters: |
| 701 * |
| 702 * [accountId] - The GTM Account ID. |
| 703 * |
| 704 * [containerId] - The GTM Container ID. |
| 705 * |
| 706 * [folderId] - The GTM Folder ID. |
| 707 * |
| 708 * Completes with a [FolderEntities]. |
| 709 * |
| 710 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 711 * error. |
| 712 * |
| 713 * If the used [http.Client] completes with an error when making a REST call, |
| 714 * this method will complete with the same error. |
| 715 */ |
| 716 async.Future<FolderEntities> list(core.String accountId, core.String container
Id, core.String folderId) { |
| 717 var _url = null; |
| 718 var _queryParams = new core.Map(); |
| 719 var _uploadMedia = null; |
| 720 var _uploadOptions = null; |
| 721 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 722 var _body = null; |
| 723 |
| 724 if (accountId == null) { |
| 725 throw new core.ArgumentError("Parameter accountId is required."); |
| 726 } |
| 727 if (containerId == null) { |
| 728 throw new core.ArgumentError("Parameter containerId is required."); |
| 729 } |
| 730 if (folderId == null) { |
| 731 throw new core.ArgumentError("Parameter folderId is required."); |
| 732 } |
| 733 |
| 734 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/contain
ers/' + commons.Escaper.ecapeVariable('$containerId') + '/folders/' + commons.Es
caper.ecapeVariable('$folderId') + '/entities'; |
| 735 |
| 736 var _response = _requester.request(_url, |
| 737 "GET", |
| 738 body: _body, |
| 739 queryParams: _queryParams, |
| 740 uploadOptions: _uploadOptions, |
| 741 uploadMedia: _uploadMedia, |
| 742 downloadOptions: _downloadOptions); |
| 743 return _response.then((data) => new FolderEntities.fromJson(data)); |
| 744 } |
| 745 |
| 746 } |
| 747 |
| 748 |
427 class AccountsContainersMacrosResourceApi { | 749 class AccountsContainersMacrosResourceApi { |
428 final commons.ApiRequester _requester; | 750 final commons.ApiRequester _requester; |
429 | 751 |
430 AccountsContainersMacrosResourceApi(commons.ApiRequester client) : | 752 AccountsContainersMacrosResourceApi(commons.ApiRequester client) : |
431 _requester = client; | 753 _requester = client; |
432 | 754 |
433 /** | 755 /** |
434 * Creates a GTM Macro. | 756 * Creates a GTM Macro. |
435 * | 757 * |
436 * [request] - The metadata request object. | 758 * [request] - The metadata request object. |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 queryParams: _queryParams, | 999 queryParams: _queryParams, |
678 uploadOptions: _uploadOptions, | 1000 uploadOptions: _uploadOptions, |
679 uploadMedia: _uploadMedia, | 1001 uploadMedia: _uploadMedia, |
680 downloadOptions: _downloadOptions); | 1002 downloadOptions: _downloadOptions); |
681 return _response.then((data) => new Macro.fromJson(data)); | 1003 return _response.then((data) => new Macro.fromJson(data)); |
682 } | 1004 } |
683 | 1005 |
684 } | 1006 } |
685 | 1007 |
686 | 1008 |
| 1009 class AccountsContainersMoveFoldersResourceApi { |
| 1010 final commons.ApiRequester _requester; |
| 1011 |
| 1012 AccountsContainersMoveFoldersResourceApi(commons.ApiRequester client) : |
| 1013 _requester = client; |
| 1014 |
| 1015 /** |
| 1016 * Moves entities to a GTM Folder. |
| 1017 * |
| 1018 * Request parameters: |
| 1019 * |
| 1020 * [accountId] - The GTM Account ID. |
| 1021 * |
| 1022 * [containerId] - The GTM Container ID. |
| 1023 * |
| 1024 * [folderId] - The GTM Folder ID. |
| 1025 * |
| 1026 * [tagId] - The tags to be moved to the folder. |
| 1027 * |
| 1028 * [triggerId] - The triggers to be moved to the folder. |
| 1029 * |
| 1030 * [variableId] - The variables to be moved to the folder. |
| 1031 * |
| 1032 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1033 * error. |
| 1034 * |
| 1035 * If the used [http.Client] completes with an error when making a REST call, |
| 1036 * this method will complete with the same error. |
| 1037 */ |
| 1038 async.Future update(core.String accountId, core.String containerId, core.Strin
g folderId, {core.List<core.String> tagId, core.List<core.String> triggerId, cor
e.List<core.String> variableId}) { |
| 1039 var _url = null; |
| 1040 var _queryParams = new core.Map(); |
| 1041 var _uploadMedia = null; |
| 1042 var _uploadOptions = null; |
| 1043 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1044 var _body = null; |
| 1045 |
| 1046 if (accountId == null) { |
| 1047 throw new core.ArgumentError("Parameter accountId is required."); |
| 1048 } |
| 1049 if (containerId == null) { |
| 1050 throw new core.ArgumentError("Parameter containerId is required."); |
| 1051 } |
| 1052 if (folderId == null) { |
| 1053 throw new core.ArgumentError("Parameter folderId is required."); |
| 1054 } |
| 1055 if (tagId != null) { |
| 1056 _queryParams["tagId"] = tagId; |
| 1057 } |
| 1058 if (triggerId != null) { |
| 1059 _queryParams["triggerId"] = triggerId; |
| 1060 } |
| 1061 if (variableId != null) { |
| 1062 _queryParams["variableId"] = variableId; |
| 1063 } |
| 1064 |
| 1065 _downloadOptions = null; |
| 1066 |
| 1067 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/contain
ers/' + commons.Escaper.ecapeVariable('$containerId') + '/move_folders/' + commo
ns.Escaper.ecapeVariable('$folderId'); |
| 1068 |
| 1069 var _response = _requester.request(_url, |
| 1070 "PUT", |
| 1071 body: _body, |
| 1072 queryParams: _queryParams, |
| 1073 uploadOptions: _uploadOptions, |
| 1074 uploadMedia: _uploadMedia, |
| 1075 downloadOptions: _downloadOptions); |
| 1076 return _response.then((data) => null); |
| 1077 } |
| 1078 |
| 1079 } |
| 1080 |
| 1081 |
687 class AccountsContainersRulesResourceApi { | 1082 class AccountsContainersRulesResourceApi { |
688 final commons.ApiRequester _requester; | 1083 final commons.ApiRequester _requester; |
689 | 1084 |
690 AccountsContainersRulesResourceApi(commons.ApiRequester client) : | 1085 AccountsContainersRulesResourceApi(commons.ApiRequester client) : |
691 _requester = client; | 1086 _requester = client; |
692 | 1087 |
693 /** | 1088 /** |
694 * Creates a GTM Rule. | 1089 * Creates a GTM Rule. |
695 * | 1090 * |
696 * [request] - The metadata request object. | 1091 * [request] - The metadata request object. |
(...skipping 1776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2473 * - "contains" | 2868 * - "contains" |
2474 * - "cssSelector" | 2869 * - "cssSelector" |
2475 * - "endsWith" | 2870 * - "endsWith" |
2476 * - "equals" | 2871 * - "equals" |
2477 * - "greater" | 2872 * - "greater" |
2478 * - "greaterOrEquals" | 2873 * - "greaterOrEquals" |
2479 * - "less" | 2874 * - "less" |
2480 * - "lessOrEquals" | 2875 * - "lessOrEquals" |
2481 * - "matchRegex" | 2876 * - "matchRegex" |
2482 * - "startsWith" | 2877 * - "startsWith" |
| 2878 * - "urlMatches" |
2483 */ | 2879 */ |
2484 core.String type; | 2880 core.String type; |
2485 | 2881 |
2486 Condition(); | 2882 Condition(); |
2487 | 2883 |
2488 Condition.fromJson(core.Map _json) { | 2884 Condition.fromJson(core.Map _json) { |
2489 if (_json.containsKey("parameter")) { | 2885 if (_json.containsKey("parameter")) { |
2490 parameter = _json["parameter"].map((value) => new Parameter.fromJson(value
)).toList(); | 2886 parameter = _json["parameter"].map((value) => new Parameter.fromJson(value
)).toList(); |
2491 } | 2887 } |
2492 if (_json.containsKey("type")) { | 2888 if (_json.containsKey("type")) { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2666 * The Container Version ID uniquely identifies the GTM Container Version. | 3062 * The Container Version ID uniquely identifies the GTM Container Version. |
2667 */ | 3063 */ |
2668 core.String containerVersionId; | 3064 core.String containerVersionId; |
2669 /** A value of true indicates this container version has been deleted. */ | 3065 /** A value of true indicates this container version has been deleted. */ |
2670 core.bool deleted; | 3066 core.bool deleted; |
2671 /** | 3067 /** |
2672 * The fingerprint of the GTM Container Version as computed at storage time. | 3068 * The fingerprint of the GTM Container Version as computed at storage time. |
2673 * This value is recomputed whenever the container version is modified. | 3069 * This value is recomputed whenever the container version is modified. |
2674 */ | 3070 */ |
2675 core.String fingerprint; | 3071 core.String fingerprint; |
| 3072 /** The folders in the container that this version was taken from. */ |
| 3073 core.List<Folder> folder; |
2676 /** The macros in the container that this version was taken from. */ | 3074 /** The macros in the container that this version was taken from. */ |
2677 core.List<Macro> macro; | 3075 core.List<Macro> macro; |
2678 /** Container version display name. */ | 3076 /** Container version display name. */ |
2679 core.String name; | 3077 core.String name; |
2680 /** User notes on how to apply this container version in the container. */ | 3078 /** User notes on how to apply this container version in the container. */ |
2681 core.String notes; | 3079 core.String notes; |
2682 /** The rules in the container that this version was taken from. */ | 3080 /** The rules in the container that this version was taken from. */ |
2683 core.List<Rule> rule; | 3081 core.List<Rule> rule; |
2684 /** The tags in the container that this version was taken from. */ | 3082 /** The tags in the container that this version was taken from. */ |
2685 core.List<Tag> tag; | 3083 core.List<Tag> tag; |
(...skipping 16 matching lines...) Expand all Loading... |
2702 } | 3100 } |
2703 if (_json.containsKey("containerVersionId")) { | 3101 if (_json.containsKey("containerVersionId")) { |
2704 containerVersionId = _json["containerVersionId"]; | 3102 containerVersionId = _json["containerVersionId"]; |
2705 } | 3103 } |
2706 if (_json.containsKey("deleted")) { | 3104 if (_json.containsKey("deleted")) { |
2707 deleted = _json["deleted"]; | 3105 deleted = _json["deleted"]; |
2708 } | 3106 } |
2709 if (_json.containsKey("fingerprint")) { | 3107 if (_json.containsKey("fingerprint")) { |
2710 fingerprint = _json["fingerprint"]; | 3108 fingerprint = _json["fingerprint"]; |
2711 } | 3109 } |
| 3110 if (_json.containsKey("folder")) { |
| 3111 folder = _json["folder"].map((value) => new Folder.fromJson(value)).toList
(); |
| 3112 } |
2712 if (_json.containsKey("macro")) { | 3113 if (_json.containsKey("macro")) { |
2713 macro = _json["macro"].map((value) => new Macro.fromJson(value)).toList(); | 3114 macro = _json["macro"].map((value) => new Macro.fromJson(value)).toList(); |
2714 } | 3115 } |
2715 if (_json.containsKey("name")) { | 3116 if (_json.containsKey("name")) { |
2716 name = _json["name"]; | 3117 name = _json["name"]; |
2717 } | 3118 } |
2718 if (_json.containsKey("notes")) { | 3119 if (_json.containsKey("notes")) { |
2719 notes = _json["notes"]; | 3120 notes = _json["notes"]; |
2720 } | 3121 } |
2721 if (_json.containsKey("rule")) { | 3122 if (_json.containsKey("rule")) { |
(...skipping 23 matching lines...) Expand all Loading... |
2745 } | 3146 } |
2746 if (containerVersionId != null) { | 3147 if (containerVersionId != null) { |
2747 _json["containerVersionId"] = containerVersionId; | 3148 _json["containerVersionId"] = containerVersionId; |
2748 } | 3149 } |
2749 if (deleted != null) { | 3150 if (deleted != null) { |
2750 _json["deleted"] = deleted; | 3151 _json["deleted"] = deleted; |
2751 } | 3152 } |
2752 if (fingerprint != null) { | 3153 if (fingerprint != null) { |
2753 _json["fingerprint"] = fingerprint; | 3154 _json["fingerprint"] = fingerprint; |
2754 } | 3155 } |
| 3156 if (folder != null) { |
| 3157 _json["folder"] = folder.map((value) => (value).toJson()).toList(); |
| 3158 } |
2755 if (macro != null) { | 3159 if (macro != null) { |
2756 _json["macro"] = macro.map((value) => (value).toJson()).toList(); | 3160 _json["macro"] = macro.map((value) => (value).toJson()).toList(); |
2757 } | 3161 } |
2758 if (name != null) { | 3162 if (name != null) { |
2759 _json["name"] = name; | 3163 _json["name"] = name; |
2760 } | 3164 } |
2761 if (notes != null) { | 3165 if (notes != null) { |
2762 _json["notes"] = notes; | 3166 _json["notes"] = notes; |
2763 } | 3167 } |
2764 if (rule != null) { | 3168 if (rule != null) { |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2937 if (compilerError != null) { | 3341 if (compilerError != null) { |
2938 _json["compilerError"] = compilerError; | 3342 _json["compilerError"] = compilerError; |
2939 } | 3343 } |
2940 if (containerVersion != null) { | 3344 if (containerVersion != null) { |
2941 _json["containerVersion"] = (containerVersion).toJson(); | 3345 _json["containerVersion"] = (containerVersion).toJson(); |
2942 } | 3346 } |
2943 return _json; | 3347 return _json; |
2944 } | 3348 } |
2945 } | 3349 } |
2946 | 3350 |
| 3351 /** Represents a Google Tag Manager Folder. */ |
| 3352 class Folder { |
| 3353 /** GTM Account ID. */ |
| 3354 core.String accountId; |
| 3355 /** GTM Container ID. */ |
| 3356 core.String containerId; |
| 3357 /** |
| 3358 * The fingerprint of the GTM Folder as computed at storage time. This value |
| 3359 * is recomputed whenever the folder is modified. |
| 3360 */ |
| 3361 core.String fingerprint; |
| 3362 /** The Folder ID uniquely identifies the GTM Folder. */ |
| 3363 core.String folderId; |
| 3364 /** Folder display name. */ |
| 3365 core.String name; |
| 3366 |
| 3367 Folder(); |
| 3368 |
| 3369 Folder.fromJson(core.Map _json) { |
| 3370 if (_json.containsKey("accountId")) { |
| 3371 accountId = _json["accountId"]; |
| 3372 } |
| 3373 if (_json.containsKey("containerId")) { |
| 3374 containerId = _json["containerId"]; |
| 3375 } |
| 3376 if (_json.containsKey("fingerprint")) { |
| 3377 fingerprint = _json["fingerprint"]; |
| 3378 } |
| 3379 if (_json.containsKey("folderId")) { |
| 3380 folderId = _json["folderId"]; |
| 3381 } |
| 3382 if (_json.containsKey("name")) { |
| 3383 name = _json["name"]; |
| 3384 } |
| 3385 } |
| 3386 |
| 3387 core.Map toJson() { |
| 3388 var _json = new core.Map(); |
| 3389 if (accountId != null) { |
| 3390 _json["accountId"] = accountId; |
| 3391 } |
| 3392 if (containerId != null) { |
| 3393 _json["containerId"] = containerId; |
| 3394 } |
| 3395 if (fingerprint != null) { |
| 3396 _json["fingerprint"] = fingerprint; |
| 3397 } |
| 3398 if (folderId != null) { |
| 3399 _json["folderId"] = folderId; |
| 3400 } |
| 3401 if (name != null) { |
| 3402 _json["name"] = name; |
| 3403 } |
| 3404 return _json; |
| 3405 } |
| 3406 } |
| 3407 |
| 3408 /** Represents a Google Tag Manager Folder's contents. */ |
| 3409 class FolderEntities { |
| 3410 /** The list of tags inside the folder. */ |
| 3411 core.List<Tag> tag; |
| 3412 /** The list of triggers inside the folder. */ |
| 3413 core.List<Trigger> trigger; |
| 3414 /** The list of variables inside the folder. */ |
| 3415 core.List<Variable> variable; |
| 3416 |
| 3417 FolderEntities(); |
| 3418 |
| 3419 FolderEntities.fromJson(core.Map _json) { |
| 3420 if (_json.containsKey("tag")) { |
| 3421 tag = _json["tag"].map((value) => new Tag.fromJson(value)).toList(); |
| 3422 } |
| 3423 if (_json.containsKey("trigger")) { |
| 3424 trigger = _json["trigger"].map((value) => new Trigger.fromJson(value)).toL
ist(); |
| 3425 } |
| 3426 if (_json.containsKey("variable")) { |
| 3427 variable = _json["variable"].map((value) => new Variable.fromJson(value)).
toList(); |
| 3428 } |
| 3429 } |
| 3430 |
| 3431 core.Map toJson() { |
| 3432 var _json = new core.Map(); |
| 3433 if (tag != null) { |
| 3434 _json["tag"] = tag.map((value) => (value).toJson()).toList(); |
| 3435 } |
| 3436 if (trigger != null) { |
| 3437 _json["trigger"] = trigger.map((value) => (value).toJson()).toList(); |
| 3438 } |
| 3439 if (variable != null) { |
| 3440 _json["variable"] = variable.map((value) => (value).toJson()).toList(); |
| 3441 } |
| 3442 return _json; |
| 3443 } |
| 3444 } |
| 3445 |
2947 /** List AccountUsers Response. */ | 3446 /** List AccountUsers Response. */ |
2948 class ListAccountUsersResponse { | 3447 class ListAccountUsersResponse { |
2949 /** All GTM AccountUsers of a GTM Account. */ | 3448 /** All GTM AccountUsers of a GTM Account. */ |
2950 core.List<UserAccess> userAccess; | 3449 core.List<UserAccess> userAccess; |
2951 | 3450 |
2952 ListAccountUsersResponse(); | 3451 ListAccountUsersResponse(); |
2953 | 3452 |
2954 ListAccountUsersResponse.fromJson(core.Map _json) { | 3453 ListAccountUsersResponse.fromJson(core.Map _json) { |
2955 if (_json.containsKey("userAccess")) { | 3454 if (_json.containsKey("userAccess")) { |
2956 userAccess = _json["userAccess"].map((value) => new UserAccess.fromJson(va
lue)).toList(); | 3455 userAccess = _json["userAccess"].map((value) => new UserAccess.fromJson(va
lue)).toList(); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3033 | 3532 |
3034 core.Map toJson() { | 3533 core.Map toJson() { |
3035 var _json = new core.Map(); | 3534 var _json = new core.Map(); |
3036 if (containers != null) { | 3535 if (containers != null) { |
3037 _json["containers"] = containers.map((value) => (value).toJson()).toList()
; | 3536 _json["containers"] = containers.map((value) => (value).toJson()).toList()
; |
3038 } | 3537 } |
3039 return _json; | 3538 return _json; |
3040 } | 3539 } |
3041 } | 3540 } |
3042 | 3541 |
| 3542 /** List Folders Response. */ |
| 3543 class ListFoldersResponse { |
| 3544 /** All GTM Folders of a GTM Container. */ |
| 3545 core.List<Folder> folders; |
| 3546 |
| 3547 ListFoldersResponse(); |
| 3548 |
| 3549 ListFoldersResponse.fromJson(core.Map _json) { |
| 3550 if (_json.containsKey("folders")) { |
| 3551 folders = _json["folders"].map((value) => new Folder.fromJson(value)).toLi
st(); |
| 3552 } |
| 3553 } |
| 3554 |
| 3555 core.Map toJson() { |
| 3556 var _json = new core.Map(); |
| 3557 if (folders != null) { |
| 3558 _json["folders"] = folders.map((value) => (value).toJson()).toList(); |
| 3559 } |
| 3560 return _json; |
| 3561 } |
| 3562 } |
| 3563 |
3043 /** List Macros Response. */ | 3564 /** List Macros Response. */ |
3044 class ListMacrosResponse { | 3565 class ListMacrosResponse { |
3045 /** All GTM Macros of a GTM Container. */ | 3566 /** All GTM Macros of a GTM Container. */ |
3046 core.List<Macro> macros; | 3567 core.List<Macro> macros; |
3047 | 3568 |
3048 ListMacrosResponse(); | 3569 ListMacrosResponse(); |
3049 | 3570 |
3050 ListMacrosResponse.fromJson(core.Map _json) { | 3571 ListMacrosResponse.fromJson(core.Map _json) { |
3051 if (_json.containsKey("macros")) { | 3572 if (_json.containsKey("macros")) { |
3052 macros = _json["macros"].map((value) => new Macro.fromJson(value)).toList(
); | 3573 macros = _json["macros"].map((value) => new Macro.fromJson(value)).toList(
); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3174 */ | 3695 */ |
3175 core.String fingerprint; | 3696 core.String fingerprint; |
3176 /** The Macro ID uniquely identifies the GTM Macro. */ | 3697 /** The Macro ID uniquely identifies the GTM Macro. */ |
3177 core.String macroId; | 3698 core.String macroId; |
3178 /** Macro display name. */ | 3699 /** Macro display name. */ |
3179 core.String name; | 3700 core.String name; |
3180 /** User notes on how to apply this macro in the container. */ | 3701 /** User notes on how to apply this macro in the container. */ |
3181 core.String notes; | 3702 core.String notes; |
3182 /** The macro's parameters. */ | 3703 /** The macro's parameters. */ |
3183 core.List<Parameter> parameter; | 3704 core.List<Parameter> parameter; |
| 3705 /** Parent folder id. */ |
| 3706 core.String parentFolderId; |
3184 /** The end timestamp in milliseconds to schedule a macro. */ | 3707 /** The end timestamp in milliseconds to schedule a macro. */ |
3185 core.String scheduleEndMs; | 3708 core.String scheduleEndMs; |
3186 /** The start timestamp in milliseconds to schedule a macro. */ | 3709 /** The start timestamp in milliseconds to schedule a macro. */ |
3187 core.String scheduleStartMs; | 3710 core.String scheduleStartMs; |
3188 /** GTM Macro Type. */ | 3711 /** GTM Macro Type. */ |
3189 core.String type; | 3712 core.String type; |
3190 | 3713 |
3191 Macro(); | 3714 Macro(); |
3192 | 3715 |
3193 Macro.fromJson(core.Map _json) { | 3716 Macro.fromJson(core.Map _json) { |
(...skipping 17 matching lines...) Expand all Loading... |
3211 } | 3734 } |
3212 if (_json.containsKey("name")) { | 3735 if (_json.containsKey("name")) { |
3213 name = _json["name"]; | 3736 name = _json["name"]; |
3214 } | 3737 } |
3215 if (_json.containsKey("notes")) { | 3738 if (_json.containsKey("notes")) { |
3216 notes = _json["notes"]; | 3739 notes = _json["notes"]; |
3217 } | 3740 } |
3218 if (_json.containsKey("parameter")) { | 3741 if (_json.containsKey("parameter")) { |
3219 parameter = _json["parameter"].map((value) => new Parameter.fromJson(value
)).toList(); | 3742 parameter = _json["parameter"].map((value) => new Parameter.fromJson(value
)).toList(); |
3220 } | 3743 } |
| 3744 if (_json.containsKey("parentFolderId")) { |
| 3745 parentFolderId = _json["parentFolderId"]; |
| 3746 } |
3221 if (_json.containsKey("scheduleEndMs")) { | 3747 if (_json.containsKey("scheduleEndMs")) { |
3222 scheduleEndMs = _json["scheduleEndMs"]; | 3748 scheduleEndMs = _json["scheduleEndMs"]; |
3223 } | 3749 } |
3224 if (_json.containsKey("scheduleStartMs")) { | 3750 if (_json.containsKey("scheduleStartMs")) { |
3225 scheduleStartMs = _json["scheduleStartMs"]; | 3751 scheduleStartMs = _json["scheduleStartMs"]; |
3226 } | 3752 } |
3227 if (_json.containsKey("type")) { | 3753 if (_json.containsKey("type")) { |
3228 type = _json["type"]; | 3754 type = _json["type"]; |
3229 } | 3755 } |
3230 } | 3756 } |
(...skipping 20 matching lines...) Expand all Loading... |
3251 } | 3777 } |
3252 if (name != null) { | 3778 if (name != null) { |
3253 _json["name"] = name; | 3779 _json["name"] = name; |
3254 } | 3780 } |
3255 if (notes != null) { | 3781 if (notes != null) { |
3256 _json["notes"] = notes; | 3782 _json["notes"] = notes; |
3257 } | 3783 } |
3258 if (parameter != null) { | 3784 if (parameter != null) { |
3259 _json["parameter"] = parameter.map((value) => (value).toJson()).toList(); | 3785 _json["parameter"] = parameter.map((value) => (value).toJson()).toList(); |
3260 } | 3786 } |
| 3787 if (parentFolderId != null) { |
| 3788 _json["parentFolderId"] = parentFolderId; |
| 3789 } |
3261 if (scheduleEndMs != null) { | 3790 if (scheduleEndMs != null) { |
3262 _json["scheduleEndMs"] = scheduleEndMs; | 3791 _json["scheduleEndMs"] = scheduleEndMs; |
3263 } | 3792 } |
3264 if (scheduleStartMs != null) { | 3793 if (scheduleStartMs != null) { |
3265 _json["scheduleStartMs"] = scheduleStartMs; | 3794 _json["scheduleStartMs"] = scheduleStartMs; |
3266 } | 3795 } |
3267 if (type != null) { | 3796 if (type != null) { |
3268 _json["type"] = type; | 3797 _json["type"] = type; |
3269 } | 3798 } |
3270 return _json; | 3799 return _json; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3443 if (notes != null) { | 3972 if (notes != null) { |
3444 _json["notes"] = notes; | 3973 _json["notes"] = notes; |
3445 } | 3974 } |
3446 if (ruleId != null) { | 3975 if (ruleId != null) { |
3447 _json["ruleId"] = ruleId; | 3976 _json["ruleId"] = ruleId; |
3448 } | 3977 } |
3449 return _json; | 3978 return _json; |
3450 } | 3979 } |
3451 } | 3980 } |
3452 | 3981 |
| 3982 class SetupTag { |
| 3983 /** |
| 3984 * If true, fire the main tag if and only if the setup tag fires successfully. |
| 3985 * If false, fire the main tag regardless of setup tag firing status. |
| 3986 */ |
| 3987 core.bool stopOnSetupFailure; |
| 3988 /** The name of the setup tag. */ |
| 3989 core.String tagName; |
| 3990 |
| 3991 SetupTag(); |
| 3992 |
| 3993 SetupTag.fromJson(core.Map _json) { |
| 3994 if (_json.containsKey("stopOnSetupFailure")) { |
| 3995 stopOnSetupFailure = _json["stopOnSetupFailure"]; |
| 3996 } |
| 3997 if (_json.containsKey("tagName")) { |
| 3998 tagName = _json["tagName"]; |
| 3999 } |
| 4000 } |
| 4001 |
| 4002 core.Map toJson() { |
| 4003 var _json = new core.Map(); |
| 4004 if (stopOnSetupFailure != null) { |
| 4005 _json["stopOnSetupFailure"] = stopOnSetupFailure; |
| 4006 } |
| 4007 if (tagName != null) { |
| 4008 _json["tagName"] = tagName; |
| 4009 } |
| 4010 return _json; |
| 4011 } |
| 4012 } |
| 4013 |
3453 /** Represents a Google Tag Manager Tag. */ | 4014 /** Represents a Google Tag Manager Tag. */ |
3454 class Tag { | 4015 class Tag { |
3455 /** GTM Account ID. */ | 4016 /** GTM Account ID. */ |
3456 core.String accountId; | 4017 core.String accountId; |
3457 /** | 4018 /** |
3458 * Blocking rule IDs. If any of the listed rules evaluate to true, the tag | 4019 * Blocking rule IDs. If any of the listed rules evaluate to true, the tag |
3459 * will not fire. | 4020 * will not fire. |
3460 */ | 4021 */ |
3461 core.List<core.String> blockingRuleId; | 4022 core.List<core.String> blockingRuleId; |
3462 /** | 4023 /** |
(...skipping 22 matching lines...) Expand all Loading... |
3485 * If set to true, this tag will only fire in the live environment (e.g. not | 4046 * If set to true, this tag will only fire in the live environment (e.g. not |
3486 * in preview or debug mode). | 4047 * in preview or debug mode). |
3487 */ | 4048 */ |
3488 core.bool liveOnly; | 4049 core.bool liveOnly; |
3489 /** Tag display name. */ | 4050 /** Tag display name. */ |
3490 core.String name; | 4051 core.String name; |
3491 /** User notes on how to apply this tag in the container. */ | 4052 /** User notes on how to apply this tag in the container. */ |
3492 core.String notes; | 4053 core.String notes; |
3493 /** The tag's parameters. */ | 4054 /** The tag's parameters. */ |
3494 core.List<Parameter> parameter; | 4055 core.List<Parameter> parameter; |
| 4056 /** Parent folder id. */ |
| 4057 core.String parentFolderId; |
3495 /** | 4058 /** |
3496 * User defined numeric priority of the tag. Tags are fired asynchronously in | 4059 * User defined numeric priority of the tag. Tags are fired asynchronously in |
3497 * order of priority. Tags with higher numeric value fire first. A tag's | 4060 * order of priority. Tags with higher numeric value fire first. A tag's |
3498 * priority can be a positive or negative value. The default value is 0. | 4061 * priority can be a positive or negative value. The default value is 0. |
3499 */ | 4062 */ |
3500 Parameter priority; | 4063 Parameter priority; |
3501 /** The end timestamp in milliseconds to schedule a tag. */ | 4064 /** The end timestamp in milliseconds to schedule a tag. */ |
3502 core.String scheduleEndMs; | 4065 core.String scheduleEndMs; |
3503 /** The start timestamp in milliseconds to schedule a tag. */ | 4066 /** The start timestamp in milliseconds to schedule a tag. */ |
3504 core.String scheduleStartMs; | 4067 core.String scheduleStartMs; |
| 4068 /** The list of setup tags. Currently we only allow one. */ |
| 4069 core.List<SetupTag> setupTag; |
3505 /** The Tag ID uniquely identifies the GTM Tag. */ | 4070 /** The Tag ID uniquely identifies the GTM Tag. */ |
3506 core.String tagId; | 4071 core.String tagId; |
| 4072 /** The list of teardown tags. Currently we only allow one. */ |
| 4073 core.List<TeardownTag> teardownTag; |
3507 /** GTM Tag Type. */ | 4074 /** GTM Tag Type. */ |
3508 core.String type; | 4075 core.String type; |
3509 | 4076 |
3510 Tag(); | 4077 Tag(); |
3511 | 4078 |
3512 Tag.fromJson(core.Map _json) { | 4079 Tag.fromJson(core.Map _json) { |
3513 if (_json.containsKey("accountId")) { | 4080 if (_json.containsKey("accountId")) { |
3514 accountId = _json["accountId"]; | 4081 accountId = _json["accountId"]; |
3515 } | 4082 } |
3516 if (_json.containsKey("blockingRuleId")) { | 4083 if (_json.containsKey("blockingRuleId")) { |
(...skipping 19 matching lines...) Expand all Loading... |
3536 } | 4103 } |
3537 if (_json.containsKey("name")) { | 4104 if (_json.containsKey("name")) { |
3538 name = _json["name"]; | 4105 name = _json["name"]; |
3539 } | 4106 } |
3540 if (_json.containsKey("notes")) { | 4107 if (_json.containsKey("notes")) { |
3541 notes = _json["notes"]; | 4108 notes = _json["notes"]; |
3542 } | 4109 } |
3543 if (_json.containsKey("parameter")) { | 4110 if (_json.containsKey("parameter")) { |
3544 parameter = _json["parameter"].map((value) => new Parameter.fromJson(value
)).toList(); | 4111 parameter = _json["parameter"].map((value) => new Parameter.fromJson(value
)).toList(); |
3545 } | 4112 } |
| 4113 if (_json.containsKey("parentFolderId")) { |
| 4114 parentFolderId = _json["parentFolderId"]; |
| 4115 } |
3546 if (_json.containsKey("priority")) { | 4116 if (_json.containsKey("priority")) { |
3547 priority = new Parameter.fromJson(_json["priority"]); | 4117 priority = new Parameter.fromJson(_json["priority"]); |
3548 } | 4118 } |
3549 if (_json.containsKey("scheduleEndMs")) { | 4119 if (_json.containsKey("scheduleEndMs")) { |
3550 scheduleEndMs = _json["scheduleEndMs"]; | 4120 scheduleEndMs = _json["scheduleEndMs"]; |
3551 } | 4121 } |
3552 if (_json.containsKey("scheduleStartMs")) { | 4122 if (_json.containsKey("scheduleStartMs")) { |
3553 scheduleStartMs = _json["scheduleStartMs"]; | 4123 scheduleStartMs = _json["scheduleStartMs"]; |
3554 } | 4124 } |
| 4125 if (_json.containsKey("setupTag")) { |
| 4126 setupTag = _json["setupTag"].map((value) => new SetupTag.fromJson(value)).
toList(); |
| 4127 } |
3555 if (_json.containsKey("tagId")) { | 4128 if (_json.containsKey("tagId")) { |
3556 tagId = _json["tagId"]; | 4129 tagId = _json["tagId"]; |
3557 } | 4130 } |
| 4131 if (_json.containsKey("teardownTag")) { |
| 4132 teardownTag = _json["teardownTag"].map((value) => new TeardownTag.fromJson
(value)).toList(); |
| 4133 } |
3558 if (_json.containsKey("type")) { | 4134 if (_json.containsKey("type")) { |
3559 type = _json["type"]; | 4135 type = _json["type"]; |
3560 } | 4136 } |
3561 } | 4137 } |
3562 | 4138 |
3563 core.Map toJson() { | 4139 core.Map toJson() { |
3564 var _json = new core.Map(); | 4140 var _json = new core.Map(); |
3565 if (accountId != null) { | 4141 if (accountId != null) { |
3566 _json["accountId"] = accountId; | 4142 _json["accountId"] = accountId; |
3567 } | 4143 } |
(...skipping 20 matching lines...) Expand all Loading... |
3588 } | 4164 } |
3589 if (name != null) { | 4165 if (name != null) { |
3590 _json["name"] = name; | 4166 _json["name"] = name; |
3591 } | 4167 } |
3592 if (notes != null) { | 4168 if (notes != null) { |
3593 _json["notes"] = notes; | 4169 _json["notes"] = notes; |
3594 } | 4170 } |
3595 if (parameter != null) { | 4171 if (parameter != null) { |
3596 _json["parameter"] = parameter.map((value) => (value).toJson()).toList(); | 4172 _json["parameter"] = parameter.map((value) => (value).toJson()).toList(); |
3597 } | 4173 } |
| 4174 if (parentFolderId != null) { |
| 4175 _json["parentFolderId"] = parentFolderId; |
| 4176 } |
3598 if (priority != null) { | 4177 if (priority != null) { |
3599 _json["priority"] = (priority).toJson(); | 4178 _json["priority"] = (priority).toJson(); |
3600 } | 4179 } |
3601 if (scheduleEndMs != null) { | 4180 if (scheduleEndMs != null) { |
3602 _json["scheduleEndMs"] = scheduleEndMs; | 4181 _json["scheduleEndMs"] = scheduleEndMs; |
3603 } | 4182 } |
3604 if (scheduleStartMs != null) { | 4183 if (scheduleStartMs != null) { |
3605 _json["scheduleStartMs"] = scheduleStartMs; | 4184 _json["scheduleStartMs"] = scheduleStartMs; |
3606 } | 4185 } |
| 4186 if (setupTag != null) { |
| 4187 _json["setupTag"] = setupTag.map((value) => (value).toJson()).toList(); |
| 4188 } |
3607 if (tagId != null) { | 4189 if (tagId != null) { |
3608 _json["tagId"] = tagId; | 4190 _json["tagId"] = tagId; |
3609 } | 4191 } |
| 4192 if (teardownTag != null) { |
| 4193 _json["teardownTag"] = teardownTag.map((value) => (value).toJson()).toList
(); |
| 4194 } |
3610 if (type != null) { | 4195 if (type != null) { |
3611 _json["type"] = type; | 4196 _json["type"] = type; |
3612 } | 4197 } |
3613 return _json; | 4198 return _json; |
3614 } | 4199 } |
3615 } | 4200 } |
3616 | 4201 |
| 4202 class TeardownTag { |
| 4203 /** |
| 4204 * If true, fire the teardown tag if and only if the main tag fires |
| 4205 * successfully. If false, fire the teardown tag regardless of main tag firing |
| 4206 * status. |
| 4207 */ |
| 4208 core.bool stopTeardownOnFailure; |
| 4209 /** The name of the teardown tag. */ |
| 4210 core.String tagName; |
| 4211 |
| 4212 TeardownTag(); |
| 4213 |
| 4214 TeardownTag.fromJson(core.Map _json) { |
| 4215 if (_json.containsKey("stopTeardownOnFailure")) { |
| 4216 stopTeardownOnFailure = _json["stopTeardownOnFailure"]; |
| 4217 } |
| 4218 if (_json.containsKey("tagName")) { |
| 4219 tagName = _json["tagName"]; |
| 4220 } |
| 4221 } |
| 4222 |
| 4223 core.Map toJson() { |
| 4224 var _json = new core.Map(); |
| 4225 if (stopTeardownOnFailure != null) { |
| 4226 _json["stopTeardownOnFailure"] = stopTeardownOnFailure; |
| 4227 } |
| 4228 if (tagName != null) { |
| 4229 _json["tagName"] = tagName; |
| 4230 } |
| 4231 return _json; |
| 4232 } |
| 4233 } |
| 4234 |
3617 /** Represents a Google Tag Manager Trigger */ | 4235 /** Represents a Google Tag Manager Trigger */ |
3618 class Trigger { | 4236 class Trigger { |
3619 /** GTM Account ID. */ | 4237 /** GTM Account ID. */ |
3620 core.String accountId; | 4238 core.String accountId; |
3621 /** Used in the case of auto event tracking. */ | 4239 /** Used in the case of auto event tracking. */ |
3622 core.List<Condition> autoEventFilter; | 4240 core.List<Condition> autoEventFilter; |
3623 /** | 4241 /** |
3624 * Whether or not we should only fire tags if the form submit or link click | 4242 * Whether or not we should only fire tags if the form submit or link click |
3625 * event is not cancelled by some other event handler (e.g. because of | 4243 * event is not cancelled by some other event handler (e.g. because of |
3626 * validation). Only valid for Form Submission and Link Click triggers. | 4244 * validation). Only valid for Form Submission and Link Click triggers. |
(...skipping 27 matching lines...) Expand all Loading... |
3654 */ | 4272 */ |
3655 Parameter interval; | 4273 Parameter interval; |
3656 /** | 4274 /** |
3657 * Limit of the number of GTM events this Timer Trigger will fire. If no limit | 4275 * Limit of the number of GTM events this Timer Trigger will fire. If no limit |
3658 * is set, we will continue to fire GTM events until the user leaves the page. | 4276 * is set, we will continue to fire GTM events until the user leaves the page. |
3659 * Only valid for Timer triggers. | 4277 * Only valid for Timer triggers. |
3660 */ | 4278 */ |
3661 Parameter limit; | 4279 Parameter limit; |
3662 /** Trigger display name. */ | 4280 /** Trigger display name. */ |
3663 core.String name; | 4281 core.String name; |
| 4282 /** Parent folder id. */ |
| 4283 core.String parentFolderId; |
3664 /** The Trigger ID uniquely identifies the GTM Trigger. */ | 4284 /** The Trigger ID uniquely identifies the GTM Trigger. */ |
3665 core.String triggerId; | 4285 core.String triggerId; |
3666 /** | 4286 /** |
3667 * Defines the data layer event that causes this trigger. | 4287 * Defines the data layer event that causes this trigger. |
3668 * Possible string values are: | 4288 * Possible string values are: |
3669 * - "ajaxSubmission" | 4289 * - "ajaxSubmission" |
3670 * - "always" | 4290 * - "always" |
3671 * - "click" | 4291 * - "click" |
3672 * - "customEvent" | 4292 * - "customEvent" |
3673 * - "domReady" | 4293 * - "domReady" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3741 } | 4361 } |
3742 if (_json.containsKey("interval")) { | 4362 if (_json.containsKey("interval")) { |
3743 interval = new Parameter.fromJson(_json["interval"]); | 4363 interval = new Parameter.fromJson(_json["interval"]); |
3744 } | 4364 } |
3745 if (_json.containsKey("limit")) { | 4365 if (_json.containsKey("limit")) { |
3746 limit = new Parameter.fromJson(_json["limit"]); | 4366 limit = new Parameter.fromJson(_json["limit"]); |
3747 } | 4367 } |
3748 if (_json.containsKey("name")) { | 4368 if (_json.containsKey("name")) { |
3749 name = _json["name"]; | 4369 name = _json["name"]; |
3750 } | 4370 } |
| 4371 if (_json.containsKey("parentFolderId")) { |
| 4372 parentFolderId = _json["parentFolderId"]; |
| 4373 } |
3751 if (_json.containsKey("triggerId")) { | 4374 if (_json.containsKey("triggerId")) { |
3752 triggerId = _json["triggerId"]; | 4375 triggerId = _json["triggerId"]; |
3753 } | 4376 } |
3754 if (_json.containsKey("type")) { | 4377 if (_json.containsKey("type")) { |
3755 type = _json["type"]; | 4378 type = _json["type"]; |
3756 } | 4379 } |
3757 if (_json.containsKey("uniqueTriggerId")) { | 4380 if (_json.containsKey("uniqueTriggerId")) { |
3758 uniqueTriggerId = new Parameter.fromJson(_json["uniqueTriggerId"]); | 4381 uniqueTriggerId = new Parameter.fromJson(_json["uniqueTriggerId"]); |
3759 } | 4382 } |
3760 if (_json.containsKey("videoPercentageList")) { | 4383 if (_json.containsKey("videoPercentageList")) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3799 } | 4422 } |
3800 if (interval != null) { | 4423 if (interval != null) { |
3801 _json["interval"] = (interval).toJson(); | 4424 _json["interval"] = (interval).toJson(); |
3802 } | 4425 } |
3803 if (limit != null) { | 4426 if (limit != null) { |
3804 _json["limit"] = (limit).toJson(); | 4427 _json["limit"] = (limit).toJson(); |
3805 } | 4428 } |
3806 if (name != null) { | 4429 if (name != null) { |
3807 _json["name"] = name; | 4430 _json["name"] = name; |
3808 } | 4431 } |
| 4432 if (parentFolderId != null) { |
| 4433 _json["parentFolderId"] = parentFolderId; |
| 4434 } |
3809 if (triggerId != null) { | 4435 if (triggerId != null) { |
3810 _json["triggerId"] = triggerId; | 4436 _json["triggerId"] = triggerId; |
3811 } | 4437 } |
3812 if (type != null) { | 4438 if (type != null) { |
3813 _json["type"] = type; | 4439 _json["type"] = type; |
3814 } | 4440 } |
3815 if (uniqueTriggerId != null) { | 4441 if (uniqueTriggerId != null) { |
3816 _json["uniqueTriggerId"] = (uniqueTriggerId).toJson(); | 4442 _json["uniqueTriggerId"] = (uniqueTriggerId).toJson(); |
3817 } | 4443 } |
3818 if (videoPercentageList != null) { | 4444 if (videoPercentageList != null) { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3904 * The fingerprint of the GTM Variable as computed at storage time. This value | 4530 * The fingerprint of the GTM Variable as computed at storage time. This value |
3905 * is recomputed whenever the variable is modified. | 4531 * is recomputed whenever the variable is modified. |
3906 */ | 4532 */ |
3907 core.String fingerprint; | 4533 core.String fingerprint; |
3908 /** Variable display name. */ | 4534 /** Variable display name. */ |
3909 core.String name; | 4535 core.String name; |
3910 /** User notes on how to apply this variable in the container. */ | 4536 /** User notes on how to apply this variable in the container. */ |
3911 core.String notes; | 4537 core.String notes; |
3912 /** The variable's parameters. */ | 4538 /** The variable's parameters. */ |
3913 core.List<Parameter> parameter; | 4539 core.List<Parameter> parameter; |
| 4540 /** Parent folder id. */ |
| 4541 core.String parentFolderId; |
3914 /** The end timestamp in milliseconds to schedule a variable. */ | 4542 /** The end timestamp in milliseconds to schedule a variable. */ |
3915 core.String scheduleEndMs; | 4543 core.String scheduleEndMs; |
3916 /** The start timestamp in milliseconds to schedule a variable. */ | 4544 /** The start timestamp in milliseconds to schedule a variable. */ |
3917 core.String scheduleStartMs; | 4545 core.String scheduleStartMs; |
3918 /** GTM Variable Type. */ | 4546 /** GTM Variable Type. */ |
3919 core.String type; | 4547 core.String type; |
3920 /** The Variable ID uniquely identifies the GTM Variable. */ | 4548 /** The Variable ID uniquely identifies the GTM Variable. */ |
3921 core.String variableId; | 4549 core.String variableId; |
3922 | 4550 |
3923 Variable(); | 4551 Variable(); |
(...skipping 16 matching lines...) Expand all Loading... |
3940 } | 4568 } |
3941 if (_json.containsKey("name")) { | 4569 if (_json.containsKey("name")) { |
3942 name = _json["name"]; | 4570 name = _json["name"]; |
3943 } | 4571 } |
3944 if (_json.containsKey("notes")) { | 4572 if (_json.containsKey("notes")) { |
3945 notes = _json["notes"]; | 4573 notes = _json["notes"]; |
3946 } | 4574 } |
3947 if (_json.containsKey("parameter")) { | 4575 if (_json.containsKey("parameter")) { |
3948 parameter = _json["parameter"].map((value) => new Parameter.fromJson(value
)).toList(); | 4576 parameter = _json["parameter"].map((value) => new Parameter.fromJson(value
)).toList(); |
3949 } | 4577 } |
| 4578 if (_json.containsKey("parentFolderId")) { |
| 4579 parentFolderId = _json["parentFolderId"]; |
| 4580 } |
3950 if (_json.containsKey("scheduleEndMs")) { | 4581 if (_json.containsKey("scheduleEndMs")) { |
3951 scheduleEndMs = _json["scheduleEndMs"]; | 4582 scheduleEndMs = _json["scheduleEndMs"]; |
3952 } | 4583 } |
3953 if (_json.containsKey("scheduleStartMs")) { | 4584 if (_json.containsKey("scheduleStartMs")) { |
3954 scheduleStartMs = _json["scheduleStartMs"]; | 4585 scheduleStartMs = _json["scheduleStartMs"]; |
3955 } | 4586 } |
3956 if (_json.containsKey("type")) { | 4587 if (_json.containsKey("type")) { |
3957 type = _json["type"]; | 4588 type = _json["type"]; |
3958 } | 4589 } |
3959 if (_json.containsKey("variableId")) { | 4590 if (_json.containsKey("variableId")) { |
(...skipping 20 matching lines...) Expand all Loading... |
3980 } | 4611 } |
3981 if (name != null) { | 4612 if (name != null) { |
3982 _json["name"] = name; | 4613 _json["name"] = name; |
3983 } | 4614 } |
3984 if (notes != null) { | 4615 if (notes != null) { |
3985 _json["notes"] = notes; | 4616 _json["notes"] = notes; |
3986 } | 4617 } |
3987 if (parameter != null) { | 4618 if (parameter != null) { |
3988 _json["parameter"] = parameter.map((value) => (value).toJson()).toList(); | 4619 _json["parameter"] = parameter.map((value) => (value).toJson()).toList(); |
3989 } | 4620 } |
| 4621 if (parentFolderId != null) { |
| 4622 _json["parentFolderId"] = parentFolderId; |
| 4623 } |
3990 if (scheduleEndMs != null) { | 4624 if (scheduleEndMs != null) { |
3991 _json["scheduleEndMs"] = scheduleEndMs; | 4625 _json["scheduleEndMs"] = scheduleEndMs; |
3992 } | 4626 } |
3993 if (scheduleStartMs != null) { | 4627 if (scheduleStartMs != null) { |
3994 _json["scheduleStartMs"] = scheduleStartMs; | 4628 _json["scheduleStartMs"] = scheduleStartMs; |
3995 } | 4629 } |
3996 if (type != null) { | 4630 if (type != null) { |
3997 _json["type"] = type; | 4631 _json["type"] = type; |
3998 } | 4632 } |
3999 if (variableId != null) { | 4633 if (variableId != null) { |
4000 _json["variableId"] = variableId; | 4634 _json["variableId"] = variableId; |
4001 } | 4635 } |
4002 return _json; | 4636 return _json; |
4003 } | 4637 } |
4004 } | 4638 } |
OLD | NEW |