google-apis-tagmanager_v2 0.17.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ba1dcc860eade5abd02455b8c70a93e51f27cd08b538cc612ae8f89878cef4c
4
- data.tar.gz: a2b0a64632f2571c5ae50aa23141e309cb97535145f10ee4813827a279a9699e
3
+ metadata.gz: 6743df83f9c4042f31785d0ce179e877e38109050bfb903faceeb89df24a6f14
4
+ data.tar.gz: 21338023447aa0319eff032651b8ee4271988d2bfed8a3911b8598233657c296
5
5
  SHA512:
6
- metadata.gz: 22dce9628484782559bbaa9a478a13c4c00345d913dcb3132577db29f8319d4de039b3e5f6e8fcaae0ae0bfe2673a0f54070cd04092d7554c27d6225475c04f0
7
- data.tar.gz: 9b38823d9eacd1d25c118e279b019b56bec020e0477befdfbdb006eb738ae8a95e980ec4607b6855abf942354aba9d81d7dff3b9e388cee32f2a4e59a7aff129
6
+ metadata.gz: cda8598202a6ab82fe0dee69e2d11e2cbe84d7f3e81684c0b058c144212a8bf766966bc2cd32ece657e56535aba75edc730d2d544269dbb8bbd89ba0badba1a7
7
+ data.tar.gz: 7d33c586dc3639f0e82cea475bf21d4c64474200fae48a00741129c9396f0932dfc5d85b658fcd4bfaaac3decb8b453a32c921bfcbc9fb4a596550f69997eae7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-tagmanager_v2
2
2
 
3
+ ### v0.19.0 (2022-11-04)
4
+
5
+ * Regenerated from discovery document revision 20221103
6
+
7
+ ### v0.18.0 (2022-10-28)
8
+
9
+ * Regenerated from discovery document revision 20221024
10
+ * Regenerated using generator version 0.11.0
11
+
3
12
  ### v0.17.0 (2022-09-25)
4
13
 
5
14
  * Regenerated from discovery document revision 20220922
@@ -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,11 +378,22 @@ 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]
346
389
  attr_accessor :tag_manager_url
347
390
 
391
+ # The URLs of the cloud environment for the GTM Container. @mutable tagmanager.
392
+ # accounts.containers.create @mutable tagmanager.accounts.containers.update
393
+ # Corresponds to the JSON property `taggingServerUrls`
394
+ # @return [Array<String>]
395
+ attr_accessor :tagging_server_urls
396
+
348
397
  # List of Usage Contexts for the Container. Valid values include: web, android,
349
398
  # or ios. @mutable tagmanager.accounts.containers.create @mutable tagmanager.
350
399
  # accounts.containers.update
@@ -361,12 +410,15 @@ module Google
361
410
  @account_id = args[:account_id] if args.key?(:account_id)
362
411
  @container_id = args[:container_id] if args.key?(:container_id)
363
412
  @domain_name = args[:domain_name] if args.key?(:domain_name)
413
+ @features = args[:features] if args.key?(:features)
364
414
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
365
415
  @name = args[:name] if args.key?(:name)
366
416
  @notes = args[:notes] if args.key?(:notes)
367
417
  @path = args[:path] if args.key?(:path)
368
418
  @public_id = args[:public_id] if args.key?(:public_id)
419
+ @tag_ids = args[:tag_ids] if args.key?(:tag_ids)
369
420
  @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url)
421
+ @tagging_server_urls = args[:tagging_server_urls] if args.key?(:tagging_server_urls)
370
422
  @usage_context = args[:usage_context] if args.key?(:usage_context)
371
423
  end
372
424
  end
@@ -398,6 +450,110 @@ module Google
398
450
  end
399
451
  end
400
452
 
453
+ #
454
+ class ContainerFeatures
455
+ include Google::Apis::Core::Hashable
456
+
457
+ # Whether this Container supports built-in variables
458
+ # Corresponds to the JSON property `supportBuiltInVariables`
459
+ # @return [Boolean]
460
+ attr_accessor :support_built_in_variables
461
+ alias_method :support_built_in_variables?, :support_built_in_variables
462
+
463
+ # Whether this Container supports clients.
464
+ # Corresponds to the JSON property `supportClients`
465
+ # @return [Boolean]
466
+ attr_accessor :support_clients
467
+ alias_method :support_clients?, :support_clients
468
+
469
+ # Whether this Container supports environments.
470
+ # Corresponds to the JSON property `supportEnvironments`
471
+ # @return [Boolean]
472
+ attr_accessor :support_environments
473
+ alias_method :support_environments?, :support_environments
474
+
475
+ # Whether this Container supports folders.
476
+ # Corresponds to the JSON property `supportFolders`
477
+ # @return [Boolean]
478
+ attr_accessor :support_folders
479
+ alias_method :support_folders?, :support_folders
480
+
481
+ # Whether this Container supports Google tag config.
482
+ # Corresponds to the JSON property `supportGtagConfigs`
483
+ # @return [Boolean]
484
+ attr_accessor :support_gtag_configs
485
+ alias_method :support_gtag_configs?, :support_gtag_configs
486
+
487
+ # Whether this Container supports tags.
488
+ # Corresponds to the JSON property `supportTags`
489
+ # @return [Boolean]
490
+ attr_accessor :support_tags
491
+ alias_method :support_tags?, :support_tags
492
+
493
+ # Whether this Container supports templates.
494
+ # Corresponds to the JSON property `supportTemplates`
495
+ # @return [Boolean]
496
+ attr_accessor :support_templates
497
+ alias_method :support_templates?, :support_templates
498
+
499
+ # Whether this Container supports triggers.
500
+ # Corresponds to the JSON property `supportTriggers`
501
+ # @return [Boolean]
502
+ attr_accessor :support_triggers
503
+ alias_method :support_triggers?, :support_triggers
504
+
505
+ # Whether this Container supports user permissions managed by GTM.
506
+ # Corresponds to the JSON property `supportUserPermissions`
507
+ # @return [Boolean]
508
+ attr_accessor :support_user_permissions
509
+ alias_method :support_user_permissions?, :support_user_permissions
510
+
511
+ # Whether this Container supports variables.
512
+ # Corresponds to the JSON property `supportVariables`
513
+ # @return [Boolean]
514
+ attr_accessor :support_variables
515
+ alias_method :support_variables?, :support_variables
516
+
517
+ # Whether this Container supports Container versions.
518
+ # Corresponds to the JSON property `supportVersions`
519
+ # @return [Boolean]
520
+ attr_accessor :support_versions
521
+ alias_method :support_versions?, :support_versions
522
+
523
+ # Whether this Container supports workspaces.
524
+ # Corresponds to the JSON property `supportWorkspaces`
525
+ # @return [Boolean]
526
+ attr_accessor :support_workspaces
527
+ alias_method :support_workspaces?, :support_workspaces
528
+
529
+ # Whether this Container supports zones.
530
+ # Corresponds to the JSON property `supportZones`
531
+ # @return [Boolean]
532
+ attr_accessor :support_zones
533
+ alias_method :support_zones?, :support_zones
534
+
535
+ def initialize(**args)
536
+ update!(**args)
537
+ end
538
+
539
+ # Update properties of this object
540
+ def update!(**args)
541
+ @support_built_in_variables = args[:support_built_in_variables] if args.key?(:support_built_in_variables)
542
+ @support_clients = args[:support_clients] if args.key?(:support_clients)
543
+ @support_environments = args[:support_environments] if args.key?(:support_environments)
544
+ @support_folders = args[:support_folders] if args.key?(:support_folders)
545
+ @support_gtag_configs = args[:support_gtag_configs] if args.key?(:support_gtag_configs)
546
+ @support_tags = args[:support_tags] if args.key?(:support_tags)
547
+ @support_templates = args[:support_templates] if args.key?(:support_templates)
548
+ @support_triggers = args[:support_triggers] if args.key?(:support_triggers)
549
+ @support_user_permissions = args[:support_user_permissions] if args.key?(:support_user_permissions)
550
+ @support_variables = args[:support_variables] if args.key?(:support_variables)
551
+ @support_versions = args[:support_versions] if args.key?(:support_versions)
552
+ @support_workspaces = args[:support_workspaces] if args.key?(:support_workspaces)
553
+ @support_zones = args[:support_zones] if args.key?(:support_zones)
554
+ end
555
+ end
556
+
401
557
  # Represents a Google Tag Manager Container Version.
402
558
  class ContainerVersion
403
559
  include Google::Apis::Core::Hashable
@@ -461,6 +617,11 @@ module Google
461
617
  # @return [Array<Google::Apis::TagmanagerV2::Folder>]
462
618
  attr_accessor :folder
463
619
 
620
+ # The Google tag configs in the container that this version was taken from.
621
+ # Corresponds to the JSON property `gtagConfig`
622
+ # @return [Array<Google::Apis::TagmanagerV2::GtagConfig>]
623
+ attr_accessor :gtag_config
624
+
464
625
  # Container version display name. @mutable tagmanager.accounts.containers.
465
626
  # versions.update
466
627
  # Corresponds to the JSON property `name`
@@ -514,6 +675,7 @@ module Google
514
675
  @description = args[:description] if args.key?(:description)
515
676
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
516
677
  @folder = args[:folder] if args.key?(:folder)
678
+ @gtag_config = args[:gtag_config] if args.key?(:gtag_config)
517
679
  @name = args[:name] if args.key?(:name)
518
680
  @path = args[:path] if args.key?(:path)
519
681
  @tag = args[:tag] if args.key?(:tag)
@@ -564,6 +726,11 @@ module Google
564
726
  # @return [String]
565
727
  attr_accessor :num_custom_templates
566
728
 
729
+ # Number of Google tag configs in the container version.
730
+ # Corresponds to the JSON property `numGtagConfigs`
731
+ # @return [String]
732
+ attr_accessor :num_gtag_configs
733
+
567
734
  # Number of macros in the container version.
568
735
  # Corresponds to the JSON property `numMacros`
569
736
  # @return [String]
@@ -612,6 +779,7 @@ module Google
612
779
  @name = args[:name] if args.key?(:name)
613
780
  @num_clients = args[:num_clients] if args.key?(:num_clients)
614
781
  @num_custom_templates = args[:num_custom_templates] if args.key?(:num_custom_templates)
782
+ @num_gtag_configs = args[:num_gtag_configs] if args.key?(:num_gtag_configs)
615
783
  @num_macros = args[:num_macros] if args.key?(:num_macros)
616
784
  @num_rules = args[:num_rules] if args.key?(:num_rules)
617
785
  @num_tags = args[:num_tags] if args.key?(:num_tags)
@@ -780,6 +948,68 @@ module Google
780
948
  end
781
949
  end
782
950
 
951
+ # Represents a Google Tag Destination.
952
+ class Destination
953
+ include Google::Apis::Core::Hashable
954
+
955
+ # GTM Account ID.
956
+ # Corresponds to the JSON property `accountId`
957
+ # @return [String]
958
+ attr_accessor :account_id
959
+
960
+ # GTM Container ID.
961
+ # Corresponds to the JSON property `containerId`
962
+ # @return [String]
963
+ attr_accessor :container_id
964
+
965
+ # Destination ID.
966
+ # Corresponds to the JSON property `destinationId`
967
+ # @return [String]
968
+ attr_accessor :destination_id
969
+
970
+ # The Destination link ID uniquely identifies the Destination.
971
+ # Corresponds to the JSON property `destinationLinkId`
972
+ # @return [String]
973
+ attr_accessor :destination_link_id
974
+
975
+ # The fingerprint of the Google Tag Destination as computed at storage time.
976
+ # This value is recomputed whenever the destination is modified.
977
+ # Corresponds to the JSON property `fingerprint`
978
+ # @return [String]
979
+ attr_accessor :fingerprint
980
+
981
+ # Destination display name.
982
+ # Corresponds to the JSON property `name`
983
+ # @return [String]
984
+ attr_accessor :name
985
+
986
+ # Destination's API relative path.
987
+ # Corresponds to the JSON property `path`
988
+ # @return [String]
989
+ attr_accessor :path
990
+
991
+ # Auto generated link to the tag manager UI.
992
+ # Corresponds to the JSON property `tagManagerUrl`
993
+ # @return [String]
994
+ attr_accessor :tag_manager_url
995
+
996
+ def initialize(**args)
997
+ update!(**args)
998
+ end
999
+
1000
+ # Update properties of this object
1001
+ def update!(**args)
1002
+ @account_id = args[:account_id] if args.key?(:account_id)
1003
+ @container_id = args[:container_id] if args.key?(:container_id)
1004
+ @destination_id = args[:destination_id] if args.key?(:destination_id)
1005
+ @destination_link_id = args[:destination_link_id] if args.key?(:destination_link_id)
1006
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
1007
+ @name = args[:name] if args.key?(:name)
1008
+ @path = args[:path] if args.key?(:path)
1009
+ @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url)
1010
+ end
1011
+ end
1012
+
783
1013
  # A workspace entity that may represent a tag, trigger, variable, or folder in
784
1014
  # addition to its status in the workspace.
785
1015
  class Entity
@@ -1106,6 +1336,25 @@ module Google
1106
1336
  end
1107
1337
  end
1108
1338
 
1339
+ #
1340
+ class GetContainerSnippetResponse
1341
+ include Google::Apis::Core::Hashable
1342
+
1343
+ # Tagging snippet for a Container.
1344
+ # Corresponds to the JSON property `snippet`
1345
+ # @return [String]
1346
+ attr_accessor :snippet
1347
+
1348
+ def initialize(**args)
1349
+ update!(**args)
1350
+ end
1351
+
1352
+ # Update properties of this object
1353
+ def update!(**args)
1354
+ @snippet = args[:snippet] if args.key?(:snippet)
1355
+ end
1356
+ end
1357
+
1109
1358
  # The changes that have occurred in the workspace since the base container
1110
1359
  # version.
1111
1360
  class GetWorkspaceStatusResponse
@@ -1132,6 +1381,80 @@ module Google
1132
1381
  end
1133
1382
  end
1134
1383
 
1384
+ # Represents a Google tag configuration.
1385
+ class GtagConfig
1386
+ include Google::Apis::Core::Hashable
1387
+
1388
+ # Google tag account ID.
1389
+ # Corresponds to the JSON property `accountId`
1390
+ # @return [String]
1391
+ attr_accessor :account_id
1392
+
1393
+ # Google tag container ID.
1394
+ # Corresponds to the JSON property `containerId`
1395
+ # @return [String]
1396
+ attr_accessor :container_id
1397
+
1398
+ # The fingerprint of the Google tag config as computed at storage time. This
1399
+ # value is recomputed whenever the config is modified.
1400
+ # Corresponds to the JSON property `fingerprint`
1401
+ # @return [String]
1402
+ attr_accessor :fingerprint
1403
+
1404
+ # The ID uniquely identifies the Google tag config.
1405
+ # Corresponds to the JSON property `gtagConfigId`
1406
+ # @return [String]
1407
+ attr_accessor :gtag_config_id
1408
+
1409
+ # The Google tag config's parameters. @mutable tagmanager.accounts.containers.
1410
+ # workspaces.gtag_config.create @mutable tagmanager.accounts.containers.
1411
+ # workspaces.gtag_config.update
1412
+ # Corresponds to the JSON property `parameter`
1413
+ # @return [Array<Google::Apis::TagmanagerV2::Parameter>]
1414
+ attr_accessor :parameter
1415
+
1416
+ # Google tag config's API relative path.
1417
+ # Corresponds to the JSON property `path`
1418
+ # @return [String]
1419
+ attr_accessor :path
1420
+
1421
+ # Auto generated link to the tag manager UI
1422
+ # Corresponds to the JSON property `tagManagerUrl`
1423
+ # @return [String]
1424
+ attr_accessor :tag_manager_url
1425
+
1426
+ # Google tag config type. @required tagmanager.accounts.containers.workspaces.
1427
+ # gtag_config.create @required tagmanager.accounts.containers.workspaces.
1428
+ # gtag_config.update @mutable tagmanager.accounts.containers.workspaces.
1429
+ # gtag_config.create @mutable tagmanager.accounts.containers.workspaces.
1430
+ # gtag_config.update
1431
+ # Corresponds to the JSON property `type`
1432
+ # @return [String]
1433
+ attr_accessor :type
1434
+
1435
+ # Google tag workspace ID. Only used by GTM containers. Set to 0 otherwise.
1436
+ # Corresponds to the JSON property `workspaceId`
1437
+ # @return [String]
1438
+ attr_accessor :workspace_id
1439
+
1440
+ def initialize(**args)
1441
+ update!(**args)
1442
+ end
1443
+
1444
+ # Update properties of this object
1445
+ def update!(**args)
1446
+ @account_id = args[:account_id] if args.key?(:account_id)
1447
+ @container_id = args[:container_id] if args.key?(:container_id)
1448
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
1449
+ @gtag_config_id = args[:gtag_config_id] if args.key?(:gtag_config_id)
1450
+ @parameter = args[:parameter] if args.key?(:parameter)
1451
+ @path = args[:path] if args.key?(:path)
1452
+ @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url)
1453
+ @type = args[:type] if args.key?(:type)
1454
+ @workspace_id = args[:workspace_id] if args.key?(:workspace_id)
1455
+ end
1456
+ end
1457
+
1135
1458
  # List Accounts Response.
1136
1459
  class ListAccountsResponse
1137
1460
  include Google::Apis::Core::Hashable
@@ -1232,6 +1555,31 @@ module Google
1232
1555
  end
1233
1556
  end
1234
1557
 
1558
+ #
1559
+ class ListDestinationsResponse
1560
+ include Google::Apis::Core::Hashable
1561
+
1562
+ # All Destinations linked to a GTM Container.
1563
+ # Corresponds to the JSON property `destination`
1564
+ # @return [Array<Google::Apis::TagmanagerV2::Destination>]
1565
+ attr_accessor :destination
1566
+
1567
+ # Continuation token for fetching the next page of results.
1568
+ # Corresponds to the JSON property `nextPageToken`
1569
+ # @return [String]
1570
+ attr_accessor :next_page_token
1571
+
1572
+ def initialize(**args)
1573
+ update!(**args)
1574
+ end
1575
+
1576
+ # Update properties of this object
1577
+ def update!(**args)
1578
+ @destination = args[:destination] if args.key?(:destination)
1579
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1580
+ end
1581
+ end
1582
+
1235
1583
  # A list of enabled built-in variables.
1236
1584
  class ListEnabledBuiltInVariablesResponse
1237
1585
  include Google::Apis::Core::Hashable
@@ -1307,6 +1655,31 @@ module Google
1307
1655
  end
1308
1656
  end
1309
1657
 
1658
+ #
1659
+ class ListGtagConfigResponse
1660
+ include Google::Apis::Core::Hashable
1661
+
1662
+ # All Google tag configs in a Container.
1663
+ # Corresponds to the JSON property `gtagConfig`
1664
+ # @return [Array<Google::Apis::TagmanagerV2::GtagConfig>]
1665
+ attr_accessor :gtag_config
1666
+
1667
+ # Continuation token for fetching the next page of results.
1668
+ # Corresponds to the JSON property `nextPageToken`
1669
+ # @return [String]
1670
+ attr_accessor :next_page_token
1671
+
1672
+ def initialize(**args)
1673
+ update!(**args)
1674
+ end
1675
+
1676
+ # Update properties of this object
1677
+ def update!(**args)
1678
+ @gtag_config = args[:gtag_config] if args.key?(:gtag_config)
1679
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1680
+ end
1681
+ end
1682
+
1310
1683
  # List Tags Response.
1311
1684
  class ListTagsResponse
1312
1685
  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.17.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.10.0"
22
+ GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220922"
25
+ REVISION = "20221103"
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,12 +500,16 @@ 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'
512
+ collection :tagging_server_urls, as: 'taggingServerUrls'
457
513
  collection :usage_context, as: 'usageContext'
458
514
  end
459
515
  end
@@ -466,6 +522,25 @@ module Google
466
522
  end
467
523
  end
468
524
 
525
+ class ContainerFeatures
526
+ # @private
527
+ class Representation < Google::Apis::Core::JsonRepresentation
528
+ property :support_built_in_variables, as: 'supportBuiltInVariables'
529
+ property :support_clients, as: 'supportClients'
530
+ property :support_environments, as: 'supportEnvironments'
531
+ property :support_folders, as: 'supportFolders'
532
+ property :support_gtag_configs, as: 'supportGtagConfigs'
533
+ property :support_tags, as: 'supportTags'
534
+ property :support_templates, as: 'supportTemplates'
535
+ property :support_triggers, as: 'supportTriggers'
536
+ property :support_user_permissions, as: 'supportUserPermissions'
537
+ property :support_variables, as: 'supportVariables'
538
+ property :support_versions, as: 'supportVersions'
539
+ property :support_workspaces, as: 'supportWorkspaces'
540
+ property :support_zones, as: 'supportZones'
541
+ end
542
+ end
543
+
469
544
  class ContainerVersion
470
545
  # @private
471
546
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -485,6 +560,8 @@ module Google
485
560
  property :fingerprint, as: 'fingerprint'
486
561
  collection :folder, as: 'folder', class: Google::Apis::TagmanagerV2::Folder, decorator: Google::Apis::TagmanagerV2::Folder::Representation
487
562
 
563
+ collection :gtag_config, as: 'gtagConfig', class: Google::Apis::TagmanagerV2::GtagConfig, decorator: Google::Apis::TagmanagerV2::GtagConfig::Representation
564
+
488
565
  property :name, as: 'name'
489
566
  property :path, as: 'path'
490
567
  collection :tag, as: 'tag', class: Google::Apis::TagmanagerV2::Tag, decorator: Google::Apis::TagmanagerV2::Tag::Representation
@@ -509,6 +586,7 @@ module Google
509
586
  property :name, as: 'name'
510
587
  property :num_clients, as: 'numClients'
511
588
  property :num_custom_templates, as: 'numCustomTemplates'
589
+ property :num_gtag_configs, as: 'numGtagConfigs'
512
590
  property :num_macros, as: 'numMacros'
513
591
  property :num_rules, as: 'numRules'
514
592
  property :num_tags, as: 'numTags'
@@ -564,6 +642,20 @@ module Google
564
642
  end
565
643
  end
566
644
 
645
+ class Destination
646
+ # @private
647
+ class Representation < Google::Apis::Core::JsonRepresentation
648
+ property :account_id, as: 'accountId'
649
+ property :container_id, as: 'containerId'
650
+ property :destination_id, as: 'destinationId'
651
+ property :destination_link_id, as: 'destinationLinkId'
652
+ property :fingerprint, as: 'fingerprint'
653
+ property :name, as: 'name'
654
+ property :path, as: 'path'
655
+ property :tag_manager_url, as: 'tagManagerUrl'
656
+ end
657
+ end
658
+
567
659
  class Entity
568
660
  # @private
569
661
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -642,6 +734,13 @@ module Google
642
734
  end
643
735
  end
644
736
 
737
+ class GetContainerSnippetResponse
738
+ # @private
739
+ class Representation < Google::Apis::Core::JsonRepresentation
740
+ property :snippet, as: 'snippet'
741
+ end
742
+ end
743
+
645
744
  class GetWorkspaceStatusResponse
646
745
  # @private
647
746
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -652,6 +751,22 @@ module Google
652
751
  end
653
752
  end
654
753
 
754
+ class GtagConfig
755
+ # @private
756
+ class Representation < Google::Apis::Core::JsonRepresentation
757
+ property :account_id, as: 'accountId'
758
+ property :container_id, as: 'containerId'
759
+ property :fingerprint, as: 'fingerprint'
760
+ property :gtag_config_id, as: 'gtagConfigId'
761
+ collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV2::Parameter, decorator: Google::Apis::TagmanagerV2::Parameter::Representation
762
+
763
+ property :path, as: 'path'
764
+ property :tag_manager_url, as: 'tagManagerUrl'
765
+ property :type, as: 'type'
766
+ property :workspace_id, as: 'workspaceId'
767
+ end
768
+ end
769
+
655
770
  class ListAccountsResponse
656
771
  # @private
657
772
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -688,6 +803,15 @@ module Google
688
803
  end
689
804
  end
690
805
 
806
+ class ListDestinationsResponse
807
+ # @private
808
+ class Representation < Google::Apis::Core::JsonRepresentation
809
+ collection :destination, as: 'destination', class: Google::Apis::TagmanagerV2::Destination, decorator: Google::Apis::TagmanagerV2::Destination::Representation
810
+
811
+ property :next_page_token, as: 'nextPageToken'
812
+ end
813
+ end
814
+
691
815
  class ListEnabledBuiltInVariablesResponse
692
816
  # @private
693
817
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -715,6 +839,15 @@ module Google
715
839
  end
716
840
  end
717
841
 
842
+ class ListGtagConfigResponse
843
+ # @private
844
+ class Representation < Google::Apis::Core::JsonRepresentation
845
+ collection :gtag_config, as: 'gtagConfig', class: Google::Apis::TagmanagerV2::GtagConfig, decorator: Google::Apis::TagmanagerV2::GtagConfig::Representation
846
+
847
+ property :next_page_token, as: 'nextPageToken'
848
+ end
849
+ end
850
+
718
851
  class ListTagsResponse
719
852
  # @private
720
853
  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?
@@ -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`.
@@ -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/`
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.17.0
4
+ version: 0.19.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-26 00:00:00.000000000 Z
11
+ date: 2022-11-07 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.9.0
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.9.0
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.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-tagmanager_v2/v0.19.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: []