@googleapis/tagmanager 2.1.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/v2.js CHANGED
@@ -1025,6 +1025,8 @@ var tagmanager_v2;
1025
1025
  new Resource$Accounts$Containers$Workspaces$Gtag_config(this.context);
1026
1026
  this.tags = new Resource$Accounts$Containers$Workspaces$Tags(this.context);
1027
1027
  this.templates = new Resource$Accounts$Containers$Workspaces$Templates(this.context);
1028
+ this.transformations =
1029
+ new Resource$Accounts$Containers$Workspaces$Transformations(this.context);
1028
1030
  this.triggers = new Resource$Accounts$Containers$Workspaces$Triggers(this.context);
1029
1031
  this.variables = new Resource$Accounts$Containers$Workspaces$Variables(this.context);
1030
1032
  this.zones = new Resource$Accounts$Containers$Workspaces$Zones(this.context);
@@ -2498,6 +2500,204 @@ var tagmanager_v2;
2498
2500
  }
2499
2501
  }
2500
2502
  tagmanager_v2.Resource$Accounts$Containers$Workspaces$Templates = Resource$Accounts$Containers$Workspaces$Templates;
2503
+ class Resource$Accounts$Containers$Workspaces$Transformations {
2504
+ constructor(context) {
2505
+ this.context = context;
2506
+ }
2507
+ create(paramsOrCallback, optionsOrCallback, callback) {
2508
+ let params = (paramsOrCallback ||
2509
+ {});
2510
+ let options = (optionsOrCallback || {});
2511
+ if (typeof paramsOrCallback === 'function') {
2512
+ callback = paramsOrCallback;
2513
+ params =
2514
+ {};
2515
+ options = {};
2516
+ }
2517
+ if (typeof optionsOrCallback === 'function') {
2518
+ callback = optionsOrCallback;
2519
+ options = {};
2520
+ }
2521
+ const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/';
2522
+ const parameters = {
2523
+ options: Object.assign({
2524
+ url: (rootUrl + '/tagmanager/v2/{+parent}/transformations').replace(/([^:]\/)\/+/g, '$1'),
2525
+ method: 'POST',
2526
+ }, options),
2527
+ params,
2528
+ requiredParams: ['parent'],
2529
+ pathParams: ['parent'],
2530
+ context: this.context,
2531
+ };
2532
+ if (callback) {
2533
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2534
+ }
2535
+ else {
2536
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
2537
+ }
2538
+ }
2539
+ delete(paramsOrCallback, optionsOrCallback, callback) {
2540
+ let params = (paramsOrCallback ||
2541
+ {});
2542
+ let options = (optionsOrCallback || {});
2543
+ if (typeof paramsOrCallback === 'function') {
2544
+ callback = paramsOrCallback;
2545
+ params =
2546
+ {};
2547
+ options = {};
2548
+ }
2549
+ if (typeof optionsOrCallback === 'function') {
2550
+ callback = optionsOrCallback;
2551
+ options = {};
2552
+ }
2553
+ const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/';
2554
+ const parameters = {
2555
+ options: Object.assign({
2556
+ url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'),
2557
+ method: 'DELETE',
2558
+ }, options),
2559
+ params,
2560
+ requiredParams: ['path'],
2561
+ pathParams: ['path'],
2562
+ context: this.context,
2563
+ };
2564
+ if (callback) {
2565
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2566
+ }
2567
+ else {
2568
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
2569
+ }
2570
+ }
2571
+ get(paramsOrCallback, optionsOrCallback, callback) {
2572
+ let params = (paramsOrCallback ||
2573
+ {});
2574
+ let options = (optionsOrCallback || {});
2575
+ if (typeof paramsOrCallback === 'function') {
2576
+ callback = paramsOrCallback;
2577
+ params =
2578
+ {};
2579
+ options = {};
2580
+ }
2581
+ if (typeof optionsOrCallback === 'function') {
2582
+ callback = optionsOrCallback;
2583
+ options = {};
2584
+ }
2585
+ const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/';
2586
+ const parameters = {
2587
+ options: Object.assign({
2588
+ url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'),
2589
+ method: 'GET',
2590
+ }, options),
2591
+ params,
2592
+ requiredParams: ['path'],
2593
+ pathParams: ['path'],
2594
+ context: this.context,
2595
+ };
2596
+ if (callback) {
2597
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2598
+ }
2599
+ else {
2600
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
2601
+ }
2602
+ }
2603
+ list(paramsOrCallback, optionsOrCallback, callback) {
2604
+ let params = (paramsOrCallback ||
2605
+ {});
2606
+ let options = (optionsOrCallback || {});
2607
+ if (typeof paramsOrCallback === 'function') {
2608
+ callback = paramsOrCallback;
2609
+ params =
2610
+ {};
2611
+ options = {};
2612
+ }
2613
+ if (typeof optionsOrCallback === 'function') {
2614
+ callback = optionsOrCallback;
2615
+ options = {};
2616
+ }
2617
+ const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/';
2618
+ const parameters = {
2619
+ options: Object.assign({
2620
+ url: (rootUrl + '/tagmanager/v2/{+parent}/transformations').replace(/([^:]\/)\/+/g, '$1'),
2621
+ method: 'GET',
2622
+ }, options),
2623
+ params,
2624
+ requiredParams: ['parent'],
2625
+ pathParams: ['parent'],
2626
+ context: this.context,
2627
+ };
2628
+ if (callback) {
2629
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2630
+ }
2631
+ else {
2632
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
2633
+ }
2634
+ }
2635
+ revert(paramsOrCallback, optionsOrCallback, callback) {
2636
+ let params = (paramsOrCallback ||
2637
+ {});
2638
+ let options = (optionsOrCallback || {});
2639
+ if (typeof paramsOrCallback === 'function') {
2640
+ callback = paramsOrCallback;
2641
+ params =
2642
+ {};
2643
+ options = {};
2644
+ }
2645
+ if (typeof optionsOrCallback === 'function') {
2646
+ callback = optionsOrCallback;
2647
+ options = {};
2648
+ }
2649
+ const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/';
2650
+ const parameters = {
2651
+ options: Object.assign({
2652
+ url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'),
2653
+ method: 'POST',
2654
+ }, options),
2655
+ params,
2656
+ requiredParams: ['path'],
2657
+ pathParams: ['path'],
2658
+ context: this.context,
2659
+ };
2660
+ if (callback) {
2661
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2662
+ }
2663
+ else {
2664
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
2665
+ }
2666
+ }
2667
+ update(paramsOrCallback, optionsOrCallback, callback) {
2668
+ let params = (paramsOrCallback ||
2669
+ {});
2670
+ let options = (optionsOrCallback || {});
2671
+ if (typeof paramsOrCallback === 'function') {
2672
+ callback = paramsOrCallback;
2673
+ params =
2674
+ {};
2675
+ options = {};
2676
+ }
2677
+ if (typeof optionsOrCallback === 'function') {
2678
+ callback = optionsOrCallback;
2679
+ options = {};
2680
+ }
2681
+ const rootUrl = options.rootUrl || 'https://tagmanager.googleapis.com/';
2682
+ const parameters = {
2683
+ options: Object.assign({
2684
+ url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'),
2685
+ method: 'PUT',
2686
+ }, options),
2687
+ params,
2688
+ requiredParams: ['path'],
2689
+ pathParams: ['path'],
2690
+ context: this.context,
2691
+ };
2692
+ if (callback) {
2693
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2694
+ }
2695
+ else {
2696
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
2697
+ }
2698
+ }
2699
+ }
2700
+ tagmanager_v2.Resource$Accounts$Containers$Workspaces$Transformations = Resource$Accounts$Containers$Workspaces$Transformations;
2501
2701
  class Resource$Accounts$Containers$Workspaces$Triggers {
2502
2702
  constructor(context) {
2503
2703
  this.context = context;