google-apis-tagmanager_v2 0.16.0 → 0.18.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 233a34c94b1808a6d70bfb2177e27baebee9d483ca93583a66708da24b448a3c
4
- data.tar.gz: 0b15a5fd72c1ede0bad227f6d2fe92813a8f2c889700305389ec0ce347ceeeaf
3
+ metadata.gz: 9ccf3f79ed7bcacb73c6cfc43dd73a1d559ceec01ef29ab0c9616c5121031b70
4
+ data.tar.gz: 794970d833a7e0714f8ff33a53632fe27b0d1af35057e2316e4e2c022c670620
5
5
  SHA512:
6
- metadata.gz: 340cf7290bdb3e0ddc4a6f71ffb6c613d0fbdce47c87c6758828e92d2d51da1c99984b3ac43b48c91acbb50e39a29af681523dde6704ab36e3d5e3d9ac5351f6
7
- data.tar.gz: 8ce2588b259382df775e3cf6528e84b71d7ffcb46384b5692a189f62b6a764e97dac7631347b40c5bc8936f8a6c646afc77d6e1f32a69b387e31aef7a880657c
6
+ metadata.gz: 675a968e148493c19f9ff21018f92ab65a41d6ddd4f5ebe7e554dfb7eacdd2ce106415ba7911914df09b5bc361a245984c12d8f79e10826869ac56d6725cc892
7
+ data.tar.gz: 5d67d30ac5ab8449f0cefd931d532bbab61717f0730d3d0ba79edefad7a68eb13fd53053c97d38eb781ce22c3f91ab5e8ad61454c0a0377e55cfd0230561909e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-tagmanager_v2
2
2
 
3
+ ### v0.18.0 (2022-10-28)
4
+
5
+ * Regenerated from discovery document revision 20221024
6
+ * Regenerated using generator version 0.11.0
7
+
8
+ ### v0.17.0 (2022-09-25)
9
+
10
+ * Regenerated from discovery document revision 20220922
11
+ * Regenerated using generator version 0.10.0
12
+
3
13
  ### v0.16.0 (2022-09-10)
4
14
 
5
15
  * Regenerated from discovery document revision 20220907
@@ -31,6 +31,11 @@ module Google
31
31
  # @return [String]
32
32
  attr_accessor :account_id
33
33
 
34
+ # Read-only Account feature set
35
+ # Corresponds to the JSON property `features`
36
+ # @return [Google::Apis::TagmanagerV2::AccountFeatures]
37
+ attr_accessor :features
38
+
34
39
  # The fingerprint of the GTM Account as computed at storage time. This value is
35
40
  # recomputed whenever the account is modified.
36
41
  # Corresponds to the JSON property `fingerprint`
@@ -71,6 +76,7 @@ module Google
71
76
  # Update properties of this object
72
77
  def update!(**args)
73
78
  @account_id = args[:account_id] if args.key?(:account_id)
79
+ @features = args[:features] if args.key?(:features)
74
80
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
75
81
  @name = args[:name] if args.key?(:name)
76
82
  @path = args[:path] if args.key?(:path)
@@ -100,6 +106,33 @@ module Google
100
106
  end
101
107
  end
102
108
 
109
+ #
110
+ class AccountFeatures
111
+ include Google::Apis::Core::Hashable
112
+
113
+ # Whether this Account supports multiple Containers.
114
+ # Corresponds to the JSON property `supportMultipleContainers`
115
+ # @return [Boolean]
116
+ attr_accessor :support_multiple_containers
117
+ alias_method :support_multiple_containers?, :support_multiple_containers
118
+
119
+ # Whether this Account supports user permissions managed by GTM.
120
+ # Corresponds to the JSON property `supportUserPermissions`
121
+ # @return [Boolean]
122
+ attr_accessor :support_user_permissions
123
+ alias_method :support_user_permissions?, :support_user_permissions
124
+
125
+ def initialize(**args)
126
+ update!(**args)
127
+ end
128
+
129
+ # Update properties of this object
130
+ def update!(**args)
131
+ @support_multiple_containers = args[:support_multiple_containers] if args.key?(:support_multiple_containers)
132
+ @support_user_permissions = args[:support_user_permissions] if args.key?(:support_user_permissions)
133
+ end
134
+ end
135
+
103
136
  # Built-in variables are a special category of variables that are pre-created
104
137
  # and non-customizable. They provide common functionality like accessing
105
138
  # properties of the gtm data layer, monitoring clicks, or accessing elements of
@@ -312,6 +345,11 @@ module Google
312
345
  # @return [Array<String>]
313
346
  attr_accessor :domain_name
314
347
 
348
+ # Read-only Container feature set.
349
+ # Corresponds to the JSON property `features`
350
+ # @return [Google::Apis::TagmanagerV2::ContainerFeatures]
351
+ attr_accessor :features
352
+
315
353
  # The fingerprint of the GTM Container as computed at storage time. This value
316
354
  # is recomputed whenever the account is modified.
317
355
  # Corresponds to the JSON property `fingerprint`
@@ -340,6 +378,11 @@ module Google
340
378
  # @return [String]
341
379
  attr_accessor :public_id
342
380
 
381
+ # All Tag IDs that refer to this Container.
382
+ # Corresponds to the JSON property `tagIds`
383
+ # @return [Array<String>]
384
+ attr_accessor :tag_ids
385
+
343
386
  # Auto generated link to the tag manager UI
344
387
  # Corresponds to the JSON property `tagManagerUrl`
345
388
  # @return [String]
@@ -361,11 +404,13 @@ module Google
361
404
  @account_id = args[:account_id] if args.key?(:account_id)
362
405
  @container_id = args[:container_id] if args.key?(:container_id)
363
406
  @domain_name = args[:domain_name] if args.key?(:domain_name)
407
+ @features = args[:features] if args.key?(:features)
364
408
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
365
409
  @name = args[:name] if args.key?(:name)
366
410
  @notes = args[:notes] if args.key?(:notes)
367
411
  @path = args[:path] if args.key?(:path)
368
412
  @public_id = args[:public_id] if args.key?(:public_id)
413
+ @tag_ids = args[:tag_ids] if args.key?(:tag_ids)
369
414
  @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url)
370
415
  @usage_context = args[:usage_context] if args.key?(:usage_context)
371
416
  end
@@ -398,6 +443,110 @@ module Google
398
443
  end
399
444
  end
400
445
 
446
+ #
447
+ class ContainerFeatures
448
+ include Google::Apis::Core::Hashable
449
+
450
+ # Whether this Container supports built-in variables
451
+ # Corresponds to the JSON property `supportBuiltInVariables`
452
+ # @return [Boolean]
453
+ attr_accessor :support_built_in_variables
454
+ alias_method :support_built_in_variables?, :support_built_in_variables
455
+
456
+ # Whether this Container supports clients.
457
+ # Corresponds to the JSON property `supportClients`
458
+ # @return [Boolean]
459
+ attr_accessor :support_clients
460
+ alias_method :support_clients?, :support_clients
461
+
462
+ # Whether this Container supports environments.
463
+ # Corresponds to the JSON property `supportEnvironments`
464
+ # @return [Boolean]
465
+ attr_accessor :support_environments
466
+ alias_method :support_environments?, :support_environments
467
+
468
+ # Whether this Container supports folders.
469
+ # Corresponds to the JSON property `supportFolders`
470
+ # @return [Boolean]
471
+ attr_accessor :support_folders
472
+ alias_method :support_folders?, :support_folders
473
+
474
+ # Whether this Container supports Google tag config.
475
+ # Corresponds to the JSON property `supportGtagConfigs`
476
+ # @return [Boolean]
477
+ attr_accessor :support_gtag_configs
478
+ alias_method :support_gtag_configs?, :support_gtag_configs
479
+
480
+ # Whether this Container supports tags.
481
+ # Corresponds to the JSON property `supportTags`
482
+ # @return [Boolean]
483
+ attr_accessor :support_tags
484
+ alias_method :support_tags?, :support_tags
485
+
486
+ # Whether this Container supports templates.
487
+ # Corresponds to the JSON property `supportTemplates`
488
+ # @return [Boolean]
489
+ attr_accessor :support_templates
490
+ alias_method :support_templates?, :support_templates
491
+
492
+ # Whether this Container supports triggers.
493
+ # Corresponds to the JSON property `supportTriggers`
494
+ # @return [Boolean]
495
+ attr_accessor :support_triggers
496
+ alias_method :support_triggers?, :support_triggers
497
+
498
+ # Whether this Container supports user permissions managed by GTM.
499
+ # Corresponds to the JSON property `supportUserPermissions`
500
+ # @return [Boolean]
501
+ attr_accessor :support_user_permissions
502
+ alias_method :support_user_permissions?, :support_user_permissions
503
+
504
+ # Whether this Container supports variables.
505
+ # Corresponds to the JSON property `supportVariables`
506
+ # @return [Boolean]
507
+ attr_accessor :support_variables
508
+ alias_method :support_variables?, :support_variables
509
+
510
+ # Whether this Container supports Container versions.
511
+ # Corresponds to the JSON property `supportVersions`
512
+ # @return [Boolean]
513
+ attr_accessor :support_versions
514
+ alias_method :support_versions?, :support_versions
515
+
516
+ # Whether this Container supports workspaces.
517
+ # Corresponds to the JSON property `supportWorkspaces`
518
+ # @return [Boolean]
519
+ attr_accessor :support_workspaces
520
+ alias_method :support_workspaces?, :support_workspaces
521
+
522
+ # Whether this Container supports zones.
523
+ # Corresponds to the JSON property `supportZones`
524
+ # @return [Boolean]
525
+ attr_accessor :support_zones
526
+ alias_method :support_zones?, :support_zones
527
+
528
+ def initialize(**args)
529
+ update!(**args)
530
+ end
531
+
532
+ # Update properties of this object
533
+ def update!(**args)
534
+ @support_built_in_variables = args[:support_built_in_variables] if args.key?(:support_built_in_variables)
535
+ @support_clients = args[:support_clients] if args.key?(:support_clients)
536
+ @support_environments = args[:support_environments] if args.key?(:support_environments)
537
+ @support_folders = args[:support_folders] if args.key?(:support_folders)
538
+ @support_gtag_configs = args[:support_gtag_configs] if args.key?(:support_gtag_configs)
539
+ @support_tags = args[:support_tags] if args.key?(:support_tags)
540
+ @support_templates = args[:support_templates] if args.key?(:support_templates)
541
+ @support_triggers = args[:support_triggers] if args.key?(:support_triggers)
542
+ @support_user_permissions = args[:support_user_permissions] if args.key?(:support_user_permissions)
543
+ @support_variables = args[:support_variables] if args.key?(:support_variables)
544
+ @support_versions = args[:support_versions] if args.key?(:support_versions)
545
+ @support_workspaces = args[:support_workspaces] if args.key?(:support_workspaces)
546
+ @support_zones = args[:support_zones] if args.key?(:support_zones)
547
+ end
548
+ end
549
+
401
550
  # Represents a Google Tag Manager Container Version.
402
551
  class ContainerVersion
403
552
  include Google::Apis::Core::Hashable
@@ -461,6 +610,11 @@ module Google
461
610
  # @return [Array<Google::Apis::TagmanagerV2::Folder>]
462
611
  attr_accessor :folder
463
612
 
613
+ # The Google tag configs in the container that this version was taken from.
614
+ # Corresponds to the JSON property `gtagConfig`
615
+ # @return [Array<Google::Apis::TagmanagerV2::GtagConfig>]
616
+ attr_accessor :gtag_config
617
+
464
618
  # Container version display name. @mutable tagmanager.accounts.containers.
465
619
  # versions.update
466
620
  # Corresponds to the JSON property `name`
@@ -514,6 +668,7 @@ module Google
514
668
  @description = args[:description] if args.key?(:description)
515
669
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
516
670
  @folder = args[:folder] if args.key?(:folder)
671
+ @gtag_config = args[:gtag_config] if args.key?(:gtag_config)
517
672
  @name = args[:name] if args.key?(:name)
518
673
  @path = args[:path] if args.key?(:path)
519
674
  @tag = args[:tag] if args.key?(:tag)
@@ -564,6 +719,11 @@ module Google
564
719
  # @return [String]
565
720
  attr_accessor :num_custom_templates
566
721
 
722
+ # Number of Google tag configs in the container version.
723
+ # Corresponds to the JSON property `numGtagConfigs`
724
+ # @return [String]
725
+ attr_accessor :num_gtag_configs
726
+
567
727
  # Number of macros in the container version.
568
728
  # Corresponds to the JSON property `numMacros`
569
729
  # @return [String]
@@ -612,6 +772,7 @@ module Google
612
772
  @name = args[:name] if args.key?(:name)
613
773
  @num_clients = args[:num_clients] if args.key?(:num_clients)
614
774
  @num_custom_templates = args[:num_custom_templates] if args.key?(:num_custom_templates)
775
+ @num_gtag_configs = args[:num_gtag_configs] if args.key?(:num_gtag_configs)
615
776
  @num_macros = args[:num_macros] if args.key?(:num_macros)
616
777
  @num_rules = args[:num_rules] if args.key?(:num_rules)
617
778
  @num_tags = args[:num_tags] if args.key?(:num_tags)
@@ -780,6 +941,68 @@ module Google
780
941
  end
781
942
  end
782
943
 
944
+ # Represents a Google Tag Destination.
945
+ class Destination
946
+ include Google::Apis::Core::Hashable
947
+
948
+ # GTM Account ID.
949
+ # Corresponds to the JSON property `accountId`
950
+ # @return [String]
951
+ attr_accessor :account_id
952
+
953
+ # GTM Container ID.
954
+ # Corresponds to the JSON property `containerId`
955
+ # @return [String]
956
+ attr_accessor :container_id
957
+
958
+ # Destination ID.
959
+ # Corresponds to the JSON property `destinationId`
960
+ # @return [String]
961
+ attr_accessor :destination_id
962
+
963
+ # The Destination link ID uniquely identifies the Destination.
964
+ # Corresponds to the JSON property `destinationLinkId`
965
+ # @return [String]
966
+ attr_accessor :destination_link_id
967
+
968
+ # The fingerprint of the Google Tag Destination as computed at storage time.
969
+ # This value is recomputed whenever the destination is modified.
970
+ # Corresponds to the JSON property `fingerprint`
971
+ # @return [String]
972
+ attr_accessor :fingerprint
973
+
974
+ # Destination display name.
975
+ # Corresponds to the JSON property `name`
976
+ # @return [String]
977
+ attr_accessor :name
978
+
979
+ # Destination's API relative path.
980
+ # Corresponds to the JSON property `path`
981
+ # @return [String]
982
+ attr_accessor :path
983
+
984
+ # Auto generated link to the tag manager UI.
985
+ # Corresponds to the JSON property `tagManagerUrl`
986
+ # @return [String]
987
+ attr_accessor :tag_manager_url
988
+
989
+ def initialize(**args)
990
+ update!(**args)
991
+ end
992
+
993
+ # Update properties of this object
994
+ def update!(**args)
995
+ @account_id = args[:account_id] if args.key?(:account_id)
996
+ @container_id = args[:container_id] if args.key?(:container_id)
997
+ @destination_id = args[:destination_id] if args.key?(:destination_id)
998
+ @destination_link_id = args[:destination_link_id] if args.key?(:destination_link_id)
999
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
1000
+ @name = args[:name] if args.key?(:name)
1001
+ @path = args[:path] if args.key?(:path)
1002
+ @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url)
1003
+ end
1004
+ end
1005
+
783
1006
  # A workspace entity that may represent a tag, trigger, variable, or folder in
784
1007
  # addition to its status in the workspace.
785
1008
  class Entity
@@ -1106,6 +1329,25 @@ module Google
1106
1329
  end
1107
1330
  end
1108
1331
 
1332
+ #
1333
+ class GetContainerSnippetResponse
1334
+ include Google::Apis::Core::Hashable
1335
+
1336
+ # Tagging snippet for a Container.
1337
+ # Corresponds to the JSON property `snippet`
1338
+ # @return [String]
1339
+ attr_accessor :snippet
1340
+
1341
+ def initialize(**args)
1342
+ update!(**args)
1343
+ end
1344
+
1345
+ # Update properties of this object
1346
+ def update!(**args)
1347
+ @snippet = args[:snippet] if args.key?(:snippet)
1348
+ end
1349
+ end
1350
+
1109
1351
  # The changes that have occurred in the workspace since the base container
1110
1352
  # version.
1111
1353
  class GetWorkspaceStatusResponse
@@ -1132,6 +1374,80 @@ module Google
1132
1374
  end
1133
1375
  end
1134
1376
 
1377
+ # Represents a Google tag configuration.
1378
+ class GtagConfig
1379
+ include Google::Apis::Core::Hashable
1380
+
1381
+ # Google tag account ID.
1382
+ # Corresponds to the JSON property `accountId`
1383
+ # @return [String]
1384
+ attr_accessor :account_id
1385
+
1386
+ # Google tag container ID.
1387
+ # Corresponds to the JSON property `containerId`
1388
+ # @return [String]
1389
+ attr_accessor :container_id
1390
+
1391
+ # The fingerprint of the Google tag config as computed at storage time. This
1392
+ # value is recomputed whenever the config is modified.
1393
+ # Corresponds to the JSON property `fingerprint`
1394
+ # @return [String]
1395
+ attr_accessor :fingerprint
1396
+
1397
+ # The ID uniquely identifies the Google tag config.
1398
+ # Corresponds to the JSON property `gtagConfigId`
1399
+ # @return [String]
1400
+ attr_accessor :gtag_config_id
1401
+
1402
+ # The Google tag config's parameters. @mutable tagmanager.accounts.containers.
1403
+ # workspaces.gtag_config.create @mutable tagmanager.accounts.containers.
1404
+ # workspaces.gtag_config.update
1405
+ # Corresponds to the JSON property `parameter`
1406
+ # @return [Array<Google::Apis::TagmanagerV2::Parameter>]
1407
+ attr_accessor :parameter
1408
+
1409
+ # Google tag config's API relative path.
1410
+ # Corresponds to the JSON property `path`
1411
+ # @return [String]
1412
+ attr_accessor :path
1413
+
1414
+ # Auto generated link to the tag manager UI
1415
+ # Corresponds to the JSON property `tagManagerUrl`
1416
+ # @return [String]
1417
+ attr_accessor :tag_manager_url
1418
+
1419
+ # Google tag config type. @required tagmanager.accounts.containers.workspaces.
1420
+ # gtag_config.create @required tagmanager.accounts.containers.workspaces.
1421
+ # gtag_config.update @mutable tagmanager.accounts.containers.workspaces.
1422
+ # gtag_config.create @mutable tagmanager.accounts.containers.workspaces.
1423
+ # gtag_config.update
1424
+ # Corresponds to the JSON property `type`
1425
+ # @return [String]
1426
+ attr_accessor :type
1427
+
1428
+ # Google tag workspace ID. Only used by GTM containers. Set to 0 otherwise.
1429
+ # Corresponds to the JSON property `workspaceId`
1430
+ # @return [String]
1431
+ attr_accessor :workspace_id
1432
+
1433
+ def initialize(**args)
1434
+ update!(**args)
1435
+ end
1436
+
1437
+ # Update properties of this object
1438
+ def update!(**args)
1439
+ @account_id = args[:account_id] if args.key?(:account_id)
1440
+ @container_id = args[:container_id] if args.key?(:container_id)
1441
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
1442
+ @gtag_config_id = args[:gtag_config_id] if args.key?(:gtag_config_id)
1443
+ @parameter = args[:parameter] if args.key?(:parameter)
1444
+ @path = args[:path] if args.key?(:path)
1445
+ @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url)
1446
+ @type = args[:type] if args.key?(:type)
1447
+ @workspace_id = args[:workspace_id] if args.key?(:workspace_id)
1448
+ end
1449
+ end
1450
+
1135
1451
  # List Accounts Response.
1136
1452
  class ListAccountsResponse
1137
1453
  include Google::Apis::Core::Hashable
@@ -1232,6 +1548,31 @@ module Google
1232
1548
  end
1233
1549
  end
1234
1550
 
1551
+ #
1552
+ class ListDestinationsResponse
1553
+ include Google::Apis::Core::Hashable
1554
+
1555
+ # All Destinations linked to a GTM Container.
1556
+ # Corresponds to the JSON property `destination`
1557
+ # @return [Array<Google::Apis::TagmanagerV2::Destination>]
1558
+ attr_accessor :destination
1559
+
1560
+ # Continuation token for fetching the next page of results.
1561
+ # Corresponds to the JSON property `nextPageToken`
1562
+ # @return [String]
1563
+ attr_accessor :next_page_token
1564
+
1565
+ def initialize(**args)
1566
+ update!(**args)
1567
+ end
1568
+
1569
+ # Update properties of this object
1570
+ def update!(**args)
1571
+ @destination = args[:destination] if args.key?(:destination)
1572
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1573
+ end
1574
+ end
1575
+
1235
1576
  # A list of enabled built-in variables.
1236
1577
  class ListEnabledBuiltInVariablesResponse
1237
1578
  include Google::Apis::Core::Hashable
@@ -1307,6 +1648,31 @@ module Google
1307
1648
  end
1308
1649
  end
1309
1650
 
1651
+ #
1652
+ class ListGtagConfigResponse
1653
+ include Google::Apis::Core::Hashable
1654
+
1655
+ # All Google tag configs in a Container.
1656
+ # Corresponds to the JSON property `gtagConfig`
1657
+ # @return [Array<Google::Apis::TagmanagerV2::GtagConfig>]
1658
+ attr_accessor :gtag_config
1659
+
1660
+ # Continuation token for fetching the next page of results.
1661
+ # Corresponds to the JSON property `nextPageToken`
1662
+ # @return [String]
1663
+ attr_accessor :next_page_token
1664
+
1665
+ def initialize(**args)
1666
+ update!(**args)
1667
+ end
1668
+
1669
+ # Update properties of this object
1670
+ def update!(**args)
1671
+ @gtag_config = args[:gtag_config] if args.key?(:gtag_config)
1672
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1673
+ end
1674
+ end
1675
+
1310
1676
  # List Tags Response.
1311
1677
  class ListTagsResponse
1312
1678
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module TagmanagerV2
18
18
  # Version of the google-apis-tagmanager_v2 gem
19
- GEM_VERSION = "0.16.0"
19
+ GEM_VERSION = "0.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.9.0"
22
+ GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220907"
25
+ REVISION = "20221024"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class AccountFeatures
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class BuiltInVariable
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -64,6 +70,12 @@ module Google
64
70
  include Google::Apis::Core::JsonObjectSupport
65
71
  end
66
72
 
73
+ class ContainerFeatures
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
67
79
  class ContainerVersion
68
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
81
 
@@ -100,6 +112,12 @@ module Google
100
112
  include Google::Apis::Core::JsonObjectSupport
101
113
  end
102
114
 
115
+ class Destination
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
103
121
  class Entity
104
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
123
 
@@ -130,12 +148,24 @@ module Google
130
148
  include Google::Apis::Core::JsonObjectSupport
131
149
  end
132
150
 
151
+ class GetContainerSnippetResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
133
157
  class GetWorkspaceStatusResponse
134
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
159
 
136
160
  include Google::Apis::Core::JsonObjectSupport
137
161
  end
138
162
 
163
+ class GtagConfig
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
139
169
  class ListAccountsResponse
140
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
171
 
@@ -160,6 +190,12 @@ module Google
160
190
  include Google::Apis::Core::JsonObjectSupport
161
191
  end
162
192
 
193
+ class ListDestinationsResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
163
199
  class ListEnabledBuiltInVariablesResponse
164
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
201
 
@@ -178,6 +214,12 @@ module Google
178
214
  include Google::Apis::Core::JsonObjectSupport
179
215
  end
180
216
 
217
+ class ListGtagConfigResponse
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
181
223
  class ListTagsResponse
182
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
225
 
@@ -386,6 +428,8 @@ module Google
386
428
  # @private
387
429
  class Representation < Google::Apis::Core::JsonRepresentation
388
430
  property :account_id, as: 'accountId'
431
+ property :features, as: 'features', class: Google::Apis::TagmanagerV2::AccountFeatures, decorator: Google::Apis::TagmanagerV2::AccountFeatures::Representation
432
+
389
433
  property :fingerprint, as: 'fingerprint'
390
434
  property :name, as: 'name'
391
435
  property :path, as: 'path'
@@ -401,6 +445,14 @@ module Google
401
445
  end
402
446
  end
403
447
 
448
+ class AccountFeatures
449
+ # @private
450
+ class Representation < Google::Apis::Core::JsonRepresentation
451
+ property :support_multiple_containers, as: 'supportMultipleContainers'
452
+ property :support_user_permissions, as: 'supportUserPermissions'
453
+ end
454
+ end
455
+
404
456
  class BuiltInVariable
405
457
  # @private
406
458
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -448,11 +500,14 @@ module Google
448
500
  property :account_id, as: 'accountId'
449
501
  property :container_id, as: 'containerId'
450
502
  collection :domain_name, as: 'domainName'
503
+ property :features, as: 'features', class: Google::Apis::TagmanagerV2::ContainerFeatures, decorator: Google::Apis::TagmanagerV2::ContainerFeatures::Representation
504
+
451
505
  property :fingerprint, as: 'fingerprint'
452
506
  property :name, as: 'name'
453
507
  property :notes, as: 'notes'
454
508
  property :path, as: 'path'
455
509
  property :public_id, as: 'publicId'
510
+ collection :tag_ids, as: 'tagIds'
456
511
  property :tag_manager_url, as: 'tagManagerUrl'
457
512
  collection :usage_context, as: 'usageContext'
458
513
  end
@@ -466,6 +521,25 @@ module Google
466
521
  end
467
522
  end
468
523
 
524
+ class ContainerFeatures
525
+ # @private
526
+ class Representation < Google::Apis::Core::JsonRepresentation
527
+ property :support_built_in_variables, as: 'supportBuiltInVariables'
528
+ property :support_clients, as: 'supportClients'
529
+ property :support_environments, as: 'supportEnvironments'
530
+ property :support_folders, as: 'supportFolders'
531
+ property :support_gtag_configs, as: 'supportGtagConfigs'
532
+ property :support_tags, as: 'supportTags'
533
+ property :support_templates, as: 'supportTemplates'
534
+ property :support_triggers, as: 'supportTriggers'
535
+ property :support_user_permissions, as: 'supportUserPermissions'
536
+ property :support_variables, as: 'supportVariables'
537
+ property :support_versions, as: 'supportVersions'
538
+ property :support_workspaces, as: 'supportWorkspaces'
539
+ property :support_zones, as: 'supportZones'
540
+ end
541
+ end
542
+
469
543
  class ContainerVersion
470
544
  # @private
471
545
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -485,6 +559,8 @@ module Google
485
559
  property :fingerprint, as: 'fingerprint'
486
560
  collection :folder, as: 'folder', class: Google::Apis::TagmanagerV2::Folder, decorator: Google::Apis::TagmanagerV2::Folder::Representation
487
561
 
562
+ collection :gtag_config, as: 'gtagConfig', class: Google::Apis::TagmanagerV2::GtagConfig, decorator: Google::Apis::TagmanagerV2::GtagConfig::Representation
563
+
488
564
  property :name, as: 'name'
489
565
  property :path, as: 'path'
490
566
  collection :tag, as: 'tag', class: Google::Apis::TagmanagerV2::Tag, decorator: Google::Apis::TagmanagerV2::Tag::Representation
@@ -509,6 +585,7 @@ module Google
509
585
  property :name, as: 'name'
510
586
  property :num_clients, as: 'numClients'
511
587
  property :num_custom_templates, as: 'numCustomTemplates'
588
+ property :num_gtag_configs, as: 'numGtagConfigs'
512
589
  property :num_macros, as: 'numMacros'
513
590
  property :num_rules, as: 'numRules'
514
591
  property :num_tags, as: 'numTags'
@@ -564,6 +641,20 @@ module Google
564
641
  end
565
642
  end
566
643
 
644
+ class Destination
645
+ # @private
646
+ class Representation < Google::Apis::Core::JsonRepresentation
647
+ property :account_id, as: 'accountId'
648
+ property :container_id, as: 'containerId'
649
+ property :destination_id, as: 'destinationId'
650
+ property :destination_link_id, as: 'destinationLinkId'
651
+ property :fingerprint, as: 'fingerprint'
652
+ property :name, as: 'name'
653
+ property :path, as: 'path'
654
+ property :tag_manager_url, as: 'tagManagerUrl'
655
+ end
656
+ end
657
+
567
658
  class Entity
568
659
  # @private
569
660
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -642,6 +733,13 @@ module Google
642
733
  end
643
734
  end
644
735
 
736
+ class GetContainerSnippetResponse
737
+ # @private
738
+ class Representation < Google::Apis::Core::JsonRepresentation
739
+ property :snippet, as: 'snippet'
740
+ end
741
+ end
742
+
645
743
  class GetWorkspaceStatusResponse
646
744
  # @private
647
745
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -652,6 +750,22 @@ module Google
652
750
  end
653
751
  end
654
752
 
753
+ class GtagConfig
754
+ # @private
755
+ class Representation < Google::Apis::Core::JsonRepresentation
756
+ property :account_id, as: 'accountId'
757
+ property :container_id, as: 'containerId'
758
+ property :fingerprint, as: 'fingerprint'
759
+ property :gtag_config_id, as: 'gtagConfigId'
760
+ collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV2::Parameter, decorator: Google::Apis::TagmanagerV2::Parameter::Representation
761
+
762
+ property :path, as: 'path'
763
+ property :tag_manager_url, as: 'tagManagerUrl'
764
+ property :type, as: 'type'
765
+ property :workspace_id, as: 'workspaceId'
766
+ end
767
+ end
768
+
655
769
  class ListAccountsResponse
656
770
  # @private
657
771
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -688,6 +802,15 @@ module Google
688
802
  end
689
803
  end
690
804
 
805
+ class ListDestinationsResponse
806
+ # @private
807
+ class Representation < Google::Apis::Core::JsonRepresentation
808
+ collection :destination, as: 'destination', class: Google::Apis::TagmanagerV2::Destination, decorator: Google::Apis::TagmanagerV2::Destination::Representation
809
+
810
+ property :next_page_token, as: 'nextPageToken'
811
+ end
812
+ end
813
+
691
814
  class ListEnabledBuiltInVariablesResponse
692
815
  # @private
693
816
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -715,6 +838,15 @@ module Google
715
838
  end
716
839
  end
717
840
 
841
+ class ListGtagConfigResponse
842
+ # @private
843
+ class Representation < Google::Apis::Core::JsonRepresentation
844
+ collection :gtag_config, as: 'gtagConfig', class: Google::Apis::TagmanagerV2::GtagConfig, decorator: Google::Apis::TagmanagerV2::GtagConfig::Representation
845
+
846
+ property :next_page_token, as: 'nextPageToken'
847
+ end
848
+ end
849
+
718
850
  class ListTagsResponse
719
851
  # @private
720
852
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -80,6 +80,8 @@ module Google
80
80
  end
81
81
 
82
82
  # Lists all GTM Accounts that a user has access to.
83
+ # @param [Boolean] include_google_tags
84
+ # Also retrieve accounts associated with Google Tag when true.
83
85
  # @param [String] page_token
84
86
  # Continuation token for fetching the next page of results.
85
87
  # @param [String] fields
@@ -99,10 +101,11 @@ module Google
99
101
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
100
102
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
101
103
  # @raise [Google::Apis::AuthorizationError] Authorization is required
102
- def list_accounts(page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
104
+ def list_accounts(include_google_tags: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
103
105
  command = make_simple_command(:get, 'tagmanager/v2/accounts', options)
104
106
  command.response_representation = Google::Apis::TagmanagerV2::ListAccountsResponse::Representation
105
107
  command.response_class = Google::Apis::TagmanagerV2::ListAccountsResponse
108
+ command.query['includeGoogleTags'] = include_google_tags unless include_google_tags.nil?
106
109
  command.query['pageToken'] = page_token unless page_token.nil?
107
110
  command.query['fields'] = fields unless fields.nil?
108
111
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -111,7 +114,7 @@ module Google
111
114
 
112
115
  # Updates a GTM Account.
113
116
  # @param [String] path
114
- # GTM Accounts's API relative path. Example: accounts/`account_id`
117
+ # GTM Account's API relative path. Example: accounts/`account_id`
115
118
  # @param [Google::Apis::TagmanagerV2::Account] account_object
116
119
  # @param [String] fingerprint
117
120
  # When provided, this fingerprint must match the fingerprint of the account in
@@ -146,6 +149,48 @@ module Google
146
149
  execute_or_queue_command(command, &block)
147
150
  end
148
151
 
152
+ # Combines Containers.
153
+ # @param [String] path
154
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
155
+ # container_id`
156
+ # @param [Boolean] allow_user_permission_feature_update
157
+ # Must be set to true to allow features.user_permissions to change from false to
158
+ # true. If this operation causes an update but this bit is false, the operation
159
+ # will fail.
160
+ # @param [String] container_id
161
+ # ID of container that will be merged into the current container.
162
+ # @param [String] setting_source
163
+ # Specify the source of config setting after combine
164
+ # @param [String] fields
165
+ # Selector specifying which fields to include in a partial response.
166
+ # @param [String] quota_user
167
+ # Available to use for quota purposes for server-side applications. Can be any
168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
169
+ # @param [Google::Apis::RequestOptions] options
170
+ # Request-specific options
171
+ #
172
+ # @yield [result, err] Result & error if block supplied
173
+ # @yieldparam result [Google::Apis::TagmanagerV2::Container] parsed result object
174
+ # @yieldparam err [StandardError] error object if request failed
175
+ #
176
+ # @return [Google::Apis::TagmanagerV2::Container]
177
+ #
178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
181
+ def combine_account_container(path, allow_user_permission_feature_update: nil, container_id: nil, setting_source: nil, fields: nil, quota_user: nil, options: nil, &block)
182
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:combine', options)
183
+ command.response_representation = Google::Apis::TagmanagerV2::Container::Representation
184
+ command.response_class = Google::Apis::TagmanagerV2::Container
185
+ command.params['path'] = path unless path.nil?
186
+ command.query['allowUserPermissionFeatureUpdate'] = allow_user_permission_feature_update unless allow_user_permission_feature_update.nil?
187
+ command.query['containerId'] = container_id unless container_id.nil?
188
+ command.query['settingSource'] = setting_source unless setting_source.nil?
189
+ command.query['fields'] = fields unless fields.nil?
190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
191
+ execute_or_queue_command(command, &block)
192
+ end
193
+
149
194
  # Creates a Container.
150
195
  # @param [String] parent
151
196
  # GTM Account's API relative path. Example: accounts/`account_id`.
@@ -241,7 +286,7 @@ module Google
241
286
 
242
287
  # Lists all Containers that belongs to a GTM Account.
243
288
  # @param [String] parent
244
- # GTM Accounts's API relative path. Example: accounts/`account_id`.
289
+ # GTM Account's API relative path. Example: accounts/`account_id`.
245
290
  # @param [String] page_token
246
291
  # Continuation token for fetching the next page of results.
247
292
  # @param [String] fields
@@ -272,6 +317,121 @@ module Google
272
317
  execute_or_queue_command(command, &block)
273
318
  end
274
319
 
320
+ # Looks up a Container by destination ID.
321
+ # @param [String] destination_id
322
+ # Destination ID linked to a GTM Container, e.g. AW-123456789. Example: accounts/
323
+ # containers:lookup?destination_id=`destination_id`.
324
+ # @param [String] fields
325
+ # Selector specifying which fields to include in a partial response.
326
+ # @param [String] quota_user
327
+ # Available to use for quota purposes for server-side applications. Can be any
328
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
329
+ # @param [Google::Apis::RequestOptions] options
330
+ # Request-specific options
331
+ #
332
+ # @yield [result, err] Result & error if block supplied
333
+ # @yieldparam result [Google::Apis::TagmanagerV2::Container] parsed result object
334
+ # @yieldparam err [StandardError] error object if request failed
335
+ #
336
+ # @return [Google::Apis::TagmanagerV2::Container]
337
+ #
338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
341
+ def lookup_account_container(destination_id: nil, fields: nil, quota_user: nil, options: nil, &block)
342
+ command = make_simple_command(:get, 'tagmanager/v2/accounts/containers:lookup', options)
343
+ command.response_representation = Google::Apis::TagmanagerV2::Container::Representation
344
+ command.response_class = Google::Apis::TagmanagerV2::Container
345
+ command.query['destinationId'] = destination_id unless destination_id.nil?
346
+ command.query['fields'] = fields unless fields.nil?
347
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
348
+ execute_or_queue_command(command, &block)
349
+ end
350
+
351
+ # Move Tag ID out of a Container.
352
+ # @param [String] path
353
+ # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
354
+ # container_id`
355
+ # @param [Boolean] allow_user_permission_feature_update
356
+ # Must be set to true to allow features.user_permissions to change from false to
357
+ # true. If this operation causes an update but this bit is false, the operation
358
+ # will fail.
359
+ # @param [Boolean] copy_settings
360
+ # Whether or not to copy tag settings from this tag to the new tag.
361
+ # @param [Boolean] copy_terms_of_service
362
+ # Must be set to true to accept all terms of service agreements copied from the
363
+ # current tag to the newly created tag. If this bit is false, the operation will
364
+ # fail.
365
+ # @param [Boolean] copy_users
366
+ # Whether or not to copy users from this tag to the new tag.
367
+ # @param [String] tag_id
368
+ # Tag ID to be removed from the current Container.
369
+ # @param [String] tag_name
370
+ # The name for the newly created tag.
371
+ # @param [String] fields
372
+ # Selector specifying which fields to include in a partial response.
373
+ # @param [String] quota_user
374
+ # Available to use for quota purposes for server-side applications. Can be any
375
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
376
+ # @param [Google::Apis::RequestOptions] options
377
+ # Request-specific options
378
+ #
379
+ # @yield [result, err] Result & error if block supplied
380
+ # @yieldparam result [Google::Apis::TagmanagerV2::Container] parsed result object
381
+ # @yieldparam err [StandardError] error object if request failed
382
+ #
383
+ # @return [Google::Apis::TagmanagerV2::Container]
384
+ #
385
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
386
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
387
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
388
+ def move_account_container_tag_id(path, allow_user_permission_feature_update: nil, copy_settings: nil, copy_terms_of_service: nil, copy_users: nil, tag_id: nil, tag_name: nil, fields: nil, quota_user: nil, options: nil, &block)
389
+ command = make_simple_command(:post, 'tagmanager/v2/{+path}:move_tag_id', options)
390
+ command.response_representation = Google::Apis::TagmanagerV2::Container::Representation
391
+ command.response_class = Google::Apis::TagmanagerV2::Container
392
+ command.params['path'] = path unless path.nil?
393
+ command.query['allowUserPermissionFeatureUpdate'] = allow_user_permission_feature_update unless allow_user_permission_feature_update.nil?
394
+ command.query['copySettings'] = copy_settings unless copy_settings.nil?
395
+ command.query['copyTermsOfService'] = copy_terms_of_service unless copy_terms_of_service.nil?
396
+ command.query['copyUsers'] = copy_users unless copy_users.nil?
397
+ command.query['tagId'] = tag_id unless tag_id.nil?
398
+ command.query['tagName'] = tag_name unless tag_name.nil?
399
+ command.query['fields'] = fields unless fields.nil?
400
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
401
+ execute_or_queue_command(command, &block)
402
+ end
403
+
404
+ # Gets the tagging snippet for a Container.
405
+ # @param [String] path
406
+ # Container snippet's API relative path. Example: accounts/`account_id`/
407
+ # containers/`container_id`:snippet
408
+ # @param [String] fields
409
+ # Selector specifying which fields to include in a partial response.
410
+ # @param [String] quota_user
411
+ # Available to use for quota purposes for server-side applications. Can be any
412
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
413
+ # @param [Google::Apis::RequestOptions] options
414
+ # Request-specific options
415
+ #
416
+ # @yield [result, err] Result & error if block supplied
417
+ # @yieldparam result [Google::Apis::TagmanagerV2::GetContainerSnippetResponse] parsed result object
418
+ # @yieldparam err [StandardError] error object if request failed
419
+ #
420
+ # @return [Google::Apis::TagmanagerV2::GetContainerSnippetResponse]
421
+ #
422
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
423
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
424
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
425
+ def snippet_account_container(path, fields: nil, quota_user: nil, options: nil, &block)
426
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}:snippet', options)
427
+ command.response_representation = Google::Apis::TagmanagerV2::GetContainerSnippetResponse::Representation
428
+ command.response_class = Google::Apis::TagmanagerV2::GetContainerSnippetResponse
429
+ command.params['path'] = path unless path.nil?
430
+ command.query['fields'] = fields unless fields.nil?
431
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
432
+ execute_or_queue_command(command, &block)
433
+ end
434
+
275
435
  # Updates a Container.
276
436
  # @param [String] path
277
437
  # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
@@ -310,6 +470,108 @@ module Google
310
470
  execute_or_queue_command(command, &block)
311
471
  end
312
472
 
473
+ # Gets a Destination.
474
+ # @param [String] path
475
+ # Google Tag Destination's API relative path. Example: accounts/`account_id`/
476
+ # containers/`container_id`/destinations/`destination_link_id`
477
+ # @param [String] fields
478
+ # Selector specifying which fields to include in a partial response.
479
+ # @param [String] quota_user
480
+ # Available to use for quota purposes for server-side applications. Can be any
481
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
482
+ # @param [Google::Apis::RequestOptions] options
483
+ # Request-specific options
484
+ #
485
+ # @yield [result, err] Result & error if block supplied
486
+ # @yieldparam result [Google::Apis::TagmanagerV2::Destination] parsed result object
487
+ # @yieldparam err [StandardError] error object if request failed
488
+ #
489
+ # @return [Google::Apis::TagmanagerV2::Destination]
490
+ #
491
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
492
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
493
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
494
+ def get_account_container_destination(path, fields: nil, quota_user: nil, options: nil, &block)
495
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
496
+ command.response_representation = Google::Apis::TagmanagerV2::Destination::Representation
497
+ command.response_class = Google::Apis::TagmanagerV2::Destination
498
+ command.params['path'] = path unless path.nil?
499
+ command.query['fields'] = fields unless fields.nil?
500
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
501
+ execute_or_queue_command(command, &block)
502
+ end
503
+
504
+ # Adds a Destination to this Container and removes it from the Container to
505
+ # which it is currently linked.
506
+ # @param [String] parent
507
+ # GTM parent Container's API relative path. Example: accounts/`account_id`/
508
+ # containers/`container_id`
509
+ # @param [Boolean] allow_user_permission_feature_update
510
+ # Must be set to true to allow features.user_permissions to change from false to
511
+ # true. If this operation causes an update but this bit is false, the operation
512
+ # will fail.
513
+ # @param [String] destination_id
514
+ # Destination ID to be linked to the current container.
515
+ # @param [String] fields
516
+ # Selector specifying which fields to include in a partial response.
517
+ # @param [String] quota_user
518
+ # Available to use for quota purposes for server-side applications. Can be any
519
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
520
+ # @param [Google::Apis::RequestOptions] options
521
+ # Request-specific options
522
+ #
523
+ # @yield [result, err] Result & error if block supplied
524
+ # @yieldparam result [Google::Apis::TagmanagerV2::Destination] parsed result object
525
+ # @yieldparam err [StandardError] error object if request failed
526
+ #
527
+ # @return [Google::Apis::TagmanagerV2::Destination]
528
+ #
529
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
530
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
531
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
532
+ def link_account_container_destination(parent, allow_user_permission_feature_update: nil, destination_id: nil, fields: nil, quota_user: nil, options: nil, &block)
533
+ command = make_simple_command(:post, 'tagmanager/v2/{+parent}/destinations:link', options)
534
+ command.response_representation = Google::Apis::TagmanagerV2::Destination::Representation
535
+ command.response_class = Google::Apis::TagmanagerV2::Destination
536
+ command.params['parent'] = parent unless parent.nil?
537
+ command.query['allowUserPermissionFeatureUpdate'] = allow_user_permission_feature_update unless allow_user_permission_feature_update.nil?
538
+ command.query['destinationId'] = destination_id unless destination_id.nil?
539
+ command.query['fields'] = fields unless fields.nil?
540
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
541
+ execute_or_queue_command(command, &block)
542
+ end
543
+
544
+ # Lists all Destinations linked to a GTM Container.
545
+ # @param [String] parent
546
+ # GTM parent Container's API relative path. Example: accounts/`account_id`/
547
+ # containers/`container_id`
548
+ # @param [String] fields
549
+ # Selector specifying which fields to include in a partial response.
550
+ # @param [String] quota_user
551
+ # Available to use for quota purposes for server-side applications. Can be any
552
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
553
+ # @param [Google::Apis::RequestOptions] options
554
+ # Request-specific options
555
+ #
556
+ # @yield [result, err] Result & error if block supplied
557
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListDestinationsResponse] parsed result object
558
+ # @yieldparam err [StandardError] error object if request failed
559
+ #
560
+ # @return [Google::Apis::TagmanagerV2::ListDestinationsResponse]
561
+ #
562
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
563
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
564
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
565
+ def list_account_container_destinations(parent, fields: nil, quota_user: nil, options: nil, &block)
566
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/destinations', options)
567
+ command.response_representation = Google::Apis::TagmanagerV2::ListDestinationsResponse::Representation
568
+ command.response_class = Google::Apis::TagmanagerV2::ListDestinationsResponse
569
+ command.params['parent'] = parent unless parent.nil?
570
+ command.query['fields'] = fields unless fields.nil?
571
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
572
+ execute_or_queue_command(command, &block)
573
+ end
574
+
313
575
  # Creates a GTM Environment.
314
576
  # @param [String] parent
315
577
  # GTM Container's API relative path. Example: accounts/`account_id`/containers/`
@@ -1754,6 +2016,175 @@ module Google
1754
2016
  execute_or_queue_command(command, &block)
1755
2017
  end
1756
2018
 
2019
+ # Creates a Google tag config.
2020
+ # @param [String] parent
2021
+ # Workspace's API relative path. Example: accounts/`account_id`/containers/`
2022
+ # container_id`/workspaces/`workspace_id`
2023
+ # @param [Google::Apis::TagmanagerV2::GtagConfig] gtag_config_object
2024
+ # @param [String] fields
2025
+ # Selector specifying which fields to include in a partial response.
2026
+ # @param [String] quota_user
2027
+ # Available to use for quota purposes for server-side applications. Can be any
2028
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2029
+ # @param [Google::Apis::RequestOptions] options
2030
+ # Request-specific options
2031
+ #
2032
+ # @yield [result, err] Result & error if block supplied
2033
+ # @yieldparam result [Google::Apis::TagmanagerV2::GtagConfig] parsed result object
2034
+ # @yieldparam err [StandardError] error object if request failed
2035
+ #
2036
+ # @return [Google::Apis::TagmanagerV2::GtagConfig]
2037
+ #
2038
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2039
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2040
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2041
+ def create_account_container_workspace_gtag_config(parent, gtag_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2042
+ command = make_simple_command(:post, 'tagmanager/v2/{+parent}/gtag_config', options)
2043
+ command.request_representation = Google::Apis::TagmanagerV2::GtagConfig::Representation
2044
+ command.request_object = gtag_config_object
2045
+ command.response_representation = Google::Apis::TagmanagerV2::GtagConfig::Representation
2046
+ command.response_class = Google::Apis::TagmanagerV2::GtagConfig
2047
+ command.params['parent'] = parent unless parent.nil?
2048
+ command.query['fields'] = fields unless fields.nil?
2049
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2050
+ execute_or_queue_command(command, &block)
2051
+ end
2052
+
2053
+ # Deletes a Google tag config.
2054
+ # @param [String] path
2055
+ # Google tag config's API relative path. Example: accounts/`account_id`/
2056
+ # containers/`container_id`/workspaces/`workspace_id`/gtag_config/`
2057
+ # gtag_config_id`
2058
+ # @param [String] fields
2059
+ # Selector specifying which fields to include in a partial response.
2060
+ # @param [String] quota_user
2061
+ # Available to use for quota purposes for server-side applications. Can be any
2062
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2063
+ # @param [Google::Apis::RequestOptions] options
2064
+ # Request-specific options
2065
+ #
2066
+ # @yield [result, err] Result & error if block supplied
2067
+ # @yieldparam result [NilClass] No result returned for this method
2068
+ # @yieldparam err [StandardError] error object if request failed
2069
+ #
2070
+ # @return [void]
2071
+ #
2072
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2073
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2074
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2075
+ def delete_account_container_workspace_gtag_config(path, fields: nil, quota_user: nil, options: nil, &block)
2076
+ command = make_simple_command(:delete, 'tagmanager/v2/{+path}', options)
2077
+ command.params['path'] = path unless path.nil?
2078
+ command.query['fields'] = fields unless fields.nil?
2079
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2080
+ execute_or_queue_command(command, &block)
2081
+ end
2082
+
2083
+ # Gets a Google tag config.
2084
+ # @param [String] path
2085
+ # Google tag config's API relative path. Example: accounts/`account_id`/
2086
+ # containers/`container_id`/workspaces/`workspace_id`/gtag_config/`
2087
+ # gtag_config_id`
2088
+ # @param [String] fields
2089
+ # Selector specifying which fields to include in a partial response.
2090
+ # @param [String] quota_user
2091
+ # Available to use for quota purposes for server-side applications. Can be any
2092
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2093
+ # @param [Google::Apis::RequestOptions] options
2094
+ # Request-specific options
2095
+ #
2096
+ # @yield [result, err] Result & error if block supplied
2097
+ # @yieldparam result [Google::Apis::TagmanagerV2::GtagConfig] parsed result object
2098
+ # @yieldparam err [StandardError] error object if request failed
2099
+ #
2100
+ # @return [Google::Apis::TagmanagerV2::GtagConfig]
2101
+ #
2102
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2103
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2104
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2105
+ def get_account_container_workspace_gtag_config(path, fields: nil, quota_user: nil, options: nil, &block)
2106
+ command = make_simple_command(:get, 'tagmanager/v2/{+path}', options)
2107
+ command.response_representation = Google::Apis::TagmanagerV2::GtagConfig::Representation
2108
+ command.response_class = Google::Apis::TagmanagerV2::GtagConfig
2109
+ command.params['path'] = path unless path.nil?
2110
+ command.query['fields'] = fields unless fields.nil?
2111
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2112
+ execute_or_queue_command(command, &block)
2113
+ end
2114
+
2115
+ # Lists all Google tag configs in a Container.
2116
+ # @param [String] parent
2117
+ # Workspace's API relative path. Example: accounts/`account_id`/containers/`
2118
+ # container_id`/workspaces/`workspace_id`
2119
+ # @param [String] page_token
2120
+ # Continuation token for fetching the next page of results.
2121
+ # @param [String] fields
2122
+ # Selector specifying which fields to include in a partial response.
2123
+ # @param [String] quota_user
2124
+ # Available to use for quota purposes for server-side applications. Can be any
2125
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2126
+ # @param [Google::Apis::RequestOptions] options
2127
+ # Request-specific options
2128
+ #
2129
+ # @yield [result, err] Result & error if block supplied
2130
+ # @yieldparam result [Google::Apis::TagmanagerV2::ListGtagConfigResponse] parsed result object
2131
+ # @yieldparam err [StandardError] error object if request failed
2132
+ #
2133
+ # @return [Google::Apis::TagmanagerV2::ListGtagConfigResponse]
2134
+ #
2135
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2136
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2137
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2138
+ def list_account_container_workspace_gtag_configs(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2139
+ command = make_simple_command(:get, 'tagmanager/v2/{+parent}/gtag_config', options)
2140
+ command.response_representation = Google::Apis::TagmanagerV2::ListGtagConfigResponse::Representation
2141
+ command.response_class = Google::Apis::TagmanagerV2::ListGtagConfigResponse
2142
+ command.params['parent'] = parent unless parent.nil?
2143
+ command.query['pageToken'] = page_token unless page_token.nil?
2144
+ command.query['fields'] = fields unless fields.nil?
2145
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2146
+ execute_or_queue_command(command, &block)
2147
+ end
2148
+
2149
+ # Updates a Google tag config.
2150
+ # @param [String] path
2151
+ # Google tag config's API relative path. Example: accounts/`account_id`/
2152
+ # containers/`container_id`/workspaces/`workspace_id`/gtag_config/`
2153
+ # gtag_config_id`
2154
+ # @param [Google::Apis::TagmanagerV2::GtagConfig] gtag_config_object
2155
+ # @param [String] fingerprint
2156
+ # When provided, this fingerprint must match the fingerprint of the config in
2157
+ # storage.
2158
+ # @param [String] fields
2159
+ # Selector specifying which fields to include in a partial response.
2160
+ # @param [String] quota_user
2161
+ # Available to use for quota purposes for server-side applications. Can be any
2162
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2163
+ # @param [Google::Apis::RequestOptions] options
2164
+ # Request-specific options
2165
+ #
2166
+ # @yield [result, err] Result & error if block supplied
2167
+ # @yieldparam result [Google::Apis::TagmanagerV2::GtagConfig] parsed result object
2168
+ # @yieldparam err [StandardError] error object if request failed
2169
+ #
2170
+ # @return [Google::Apis::TagmanagerV2::GtagConfig]
2171
+ #
2172
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2173
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2174
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2175
+ def update_account_container_workspace_gtag_config(path, gtag_config_object = nil, fingerprint: nil, fields: nil, quota_user: nil, options: nil, &block)
2176
+ command = make_simple_command(:put, 'tagmanager/v2/{+path}', options)
2177
+ command.request_representation = Google::Apis::TagmanagerV2::GtagConfig::Representation
2178
+ command.request_object = gtag_config_object
2179
+ command.response_representation = Google::Apis::TagmanagerV2::GtagConfig::Representation
2180
+ command.response_class = Google::Apis::TagmanagerV2::GtagConfig
2181
+ command.params['path'] = path unless path.nil?
2182
+ command.query['fingerprint'] = fingerprint unless fingerprint.nil?
2183
+ command.query['fields'] = fields unless fields.nil?
2184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2185
+ execute_or_queue_command(command, &block)
2186
+ end
2187
+
1757
2188
  # Creates a GTM Tag.
1758
2189
  # @param [String] parent
1759
2190
  # GTM Workspace's API relative path. Example: accounts/`account_id`/containers/`
@@ -2856,7 +3287,7 @@ module Google
2856
3287
  # List all users that have access to the account along with Account and
2857
3288
  # Container user access granted to each of them.
2858
3289
  # @param [String] parent
2859
- # GTM Accounts's API relative path. Example: accounts/`account_id`
3290
+ # GTM Account's API relative path. Example: accounts/`account_id`
2860
3291
  # @param [String] page_token
2861
3292
  # Continuation token for fetching the next page of results.
2862
3293
  # @param [String] fields
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-tagmanager_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-12 00:00:00.000000000 Z
11
+ date: 2022-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: 0.9.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: 0.9.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-tagmanager_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-tagmanager_v2/v0.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-tagmanager_v2/v0.18.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-tagmanager_v2
63
63
  post_install_message:
64
64
  rdoc_options: []