Skip to content

Commit fb1b3d1

Browse files
feat: Automated regeneration of tagmanager v1 client (googleapis#22398)
Auto-created at 2025-04-13 10:01:22 +0000 using the toys pull request generator.
1 parent 11d9106 commit fb1b3d1

File tree

4 files changed

+6
-246
lines changed

4 files changed

+6
-246
lines changed

generated/google-apis-tagmanager_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-tagmanager_v1
22

3+
### v0.19.0 (2025-04-13)
4+
5+
* Regenerated from discovery document revision 20250409
6+
37
### v0.18.0 (2025-03-16)
48

59
* Regenerated from discovery document revision 20250310

generated/google-apis-tagmanager_v1/lib/google/apis/tagmanager_v1/classes.rb

Lines changed: 0 additions & 190 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,6 @@ class ContainerVersion
265265
# @return [Array<Google::Apis::TagmanagerV1::Folder>]
266266
attr_accessor :folder
267267

268-
# The macros in the container that this version was taken from.
269-
# Corresponds to the JSON property `macro`
270-
# @return [Array<Google::Apis::TagmanagerV1::Macro>]
271-
attr_accessor :macro
272-
273268
# Container version display name.
274269
# Corresponds to the JSON property `name`
275270
# @return [String]
@@ -280,11 +275,6 @@ class ContainerVersion
280275
# @return [String]
281276
attr_accessor :notes
282277

283-
# The rules in the container that this version was taken from.
284-
# Corresponds to the JSON property `rule`
285-
# @return [Array<Google::Apis::TagmanagerV1::Rule>]
286-
attr_accessor :rule
287-
288278
# The tags in the container that this version was taken from.
289279
# Corresponds to the JSON property `tag`
290280
# @return [Array<Google::Apis::TagmanagerV1::Tag>]
@@ -313,10 +303,8 @@ def update!(**args)
313303
@deleted = args[:deleted] if args.key?(:deleted)
314304
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
315305
@folder = args[:folder] if args.key?(:folder)
316-
@macro = args[:macro] if args.key?(:macro)
317306
@name = args[:name] if args.key?(:name)
318307
@notes = args[:notes] if args.key?(:notes)
319-
@rule = args[:rule] if args.key?(:rule)
320308
@tag = args[:tag] if args.key?(:tag)
321309
@trigger = args[:trigger] if args.key?(:trigger)
322310
@variable = args[:variable] if args.key?(:variable)
@@ -353,16 +341,6 @@ class ContainerVersionHeader
353341
# @return [String]
354342
attr_accessor :name
355343

356-
# Number of macros in the container version.
357-
# Corresponds to the JSON property `numMacros`
358-
# @return [String]
359-
attr_accessor :num_macros
360-
361-
# Number of rules in the container version.
362-
# Corresponds to the JSON property `numRules`
363-
# @return [String]
364-
attr_accessor :num_rules
365-
366344
# Number of tags in the container version.
367345
# Corresponds to the JSON property `numTags`
368346
# @return [String]
@@ -389,8 +367,6 @@ def update!(**args)
389367
@container_version_id = args[:container_version_id] if args.key?(:container_version_id)
390368
@deleted = args[:deleted] if args.key?(:deleted)
391369
@name = args[:name] if args.key?(:name)
392-
@num_macros = args[:num_macros] if args.key?(:num_macros)
393-
@num_rules = args[:num_rules] if args.key?(:num_rules)
394370
@num_tags = args[:num_tags] if args.key?(:num_tags)
395371
@num_triggers = args[:num_triggers] if args.key?(:num_triggers)
396372
@num_variables = args[:num_variables] if args.key?(:num_variables)
@@ -798,102 +774,6 @@ def update!(**args)
798774
end
799775
end
800776

801-
# Represents a Google Tag Manager Macro.
802-
class Macro
803-
include Google::Apis::Core::Hashable
804-
805-
# GTM Account ID.
806-
# Corresponds to the JSON property `accountId`
807-
# @return [String]
808-
attr_accessor :account_id
809-
810-
# GTM Container ID.
811-
# Corresponds to the JSON property `containerId`
812-
# @return [String]
813-
attr_accessor :container_id
814-
815-
# For mobile containers only: A list of rule IDs for disabling conditional
816-
# macros; the macro is enabled if one of the enabling rules is true while all
817-
# the disabling rules are false. Treated as an unordered set.
818-
# Corresponds to the JSON property `disablingRuleId`
819-
# @return [Array<String>]
820-
attr_accessor :disabling_rule_id
821-
822-
# For mobile containers only: A list of rule IDs for enabling conditional macros;
823-
# the macro is enabled if one of the enabling rules is true while all the
824-
# disabling rules are false. Treated as an unordered set.
825-
# Corresponds to the JSON property `enablingRuleId`
826-
# @return [Array<String>]
827-
attr_accessor :enabling_rule_id
828-
829-
# The fingerprint of the GTM Macro as computed at storage time. This value is
830-
# recomputed whenever the macro is modified.
831-
# Corresponds to the JSON property `fingerprint`
832-
# @return [String]
833-
attr_accessor :fingerprint
834-
835-
# The Macro ID uniquely identifies the GTM Macro.
836-
# Corresponds to the JSON property `macroId`
837-
# @return [String]
838-
attr_accessor :macro_id
839-
840-
# Macro display name.
841-
# Corresponds to the JSON property `name`
842-
# @return [String]
843-
attr_accessor :name
844-
845-
# User notes on how to apply this macro in the container.
846-
# Corresponds to the JSON property `notes`
847-
# @return [String]
848-
attr_accessor :notes
849-
850-
# The macro's parameters.
851-
# Corresponds to the JSON property `parameter`
852-
# @return [Array<Google::Apis::TagmanagerV1::Parameter>]
853-
attr_accessor :parameter
854-
855-
# Parent folder id.
856-
# Corresponds to the JSON property `parentFolderId`
857-
# @return [String]
858-
attr_accessor :parent_folder_id
859-
860-
# The end timestamp in milliseconds to schedule a macro.
861-
# Corresponds to the JSON property `scheduleEndMs`
862-
# @return [Fixnum]
863-
attr_accessor :schedule_end_ms
864-
865-
# The start timestamp in milliseconds to schedule a macro.
866-
# Corresponds to the JSON property `scheduleStartMs`
867-
# @return [Fixnum]
868-
attr_accessor :schedule_start_ms
869-
870-
# GTM Macro Type.
871-
# Corresponds to the JSON property `type`
872-
# @return [String]
873-
attr_accessor :type
874-
875-
def initialize(**args)
876-
update!(**args)
877-
end
878-
879-
# Update properties of this object
880-
def update!(**args)
881-
@account_id = args[:account_id] if args.key?(:account_id)
882-
@container_id = args[:container_id] if args.key?(:container_id)
883-
@disabling_rule_id = args[:disabling_rule_id] if args.key?(:disabling_rule_id)
884-
@enabling_rule_id = args[:enabling_rule_id] if args.key?(:enabling_rule_id)
885-
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
886-
@macro_id = args[:macro_id] if args.key?(:macro_id)
887-
@name = args[:name] if args.key?(:name)
888-
@notes = args[:notes] if args.key?(:notes)
889-
@parameter = args[:parameter] if args.key?(:parameter)
890-
@parent_folder_id = args[:parent_folder_id] if args.key?(:parent_folder_id)
891-
@schedule_end_ms = args[:schedule_end_ms] if args.key?(:schedule_end_ms)
892-
@schedule_start_ms = args[:schedule_start_ms] if args.key?(:schedule_start_ms)
893-
@type = args[:type] if args.key?(:type)
894-
end
895-
end
896-
897777
# Represents a Google Tag Manager Parameter.
898778
class Parameter
899779
include Google::Apis::Core::Hashable
@@ -972,62 +852,6 @@ def update!(**args)
972852
end
973853
end
974854

975-
# Represents a Google Tag Manager Rule.
976-
class Rule
977-
include Google::Apis::Core::Hashable
978-
979-
# GTM Account ID.
980-
# Corresponds to the JSON property `accountId`
981-
# @return [String]
982-
attr_accessor :account_id
983-
984-
# The list of conditions that make up this rule (implicit AND between them).
985-
# Corresponds to the JSON property `condition`
986-
# @return [Array<Google::Apis::TagmanagerV1::Condition>]
987-
attr_accessor :condition
988-
989-
# GTM Container ID.
990-
# Corresponds to the JSON property `containerId`
991-
# @return [String]
992-
attr_accessor :container_id
993-
994-
# The fingerprint of the GTM Rule as computed at storage time. This value is
995-
# recomputed whenever the rule is modified.
996-
# Corresponds to the JSON property `fingerprint`
997-
# @return [String]
998-
attr_accessor :fingerprint
999-
1000-
# Rule display name.
1001-
# Corresponds to the JSON property `name`
1002-
# @return [String]
1003-
attr_accessor :name
1004-
1005-
# User notes on how to apply this rule in the container.
1006-
# Corresponds to the JSON property `notes`
1007-
# @return [String]
1008-
attr_accessor :notes
1009-
1010-
# The Rule ID uniquely identifies the GTM Rule.
1011-
# Corresponds to the JSON property `ruleId`
1012-
# @return [String]
1013-
attr_accessor :rule_id
1014-
1015-
def initialize(**args)
1016-
update!(**args)
1017-
end
1018-
1019-
# Update properties of this object
1020-
def update!(**args)
1021-
@account_id = args[:account_id] if args.key?(:account_id)
1022-
@condition = args[:condition] if args.key?(:condition)
1023-
@container_id = args[:container_id] if args.key?(:container_id)
1024-
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
1025-
@name = args[:name] if args.key?(:name)
1026-
@notes = args[:notes] if args.key?(:notes)
1027-
@rule_id = args[:rule_id] if args.key?(:rule_id)
1028-
end
1029-
end
1030-
1031855
#
1032856
class SetupTag
1033857
include Google::Apis::Core::Hashable
@@ -1064,12 +888,6 @@ class Tag
1064888
# @return [String]
1065889
attr_accessor :account_id
1066890

1067-
# Blocking rule IDs. If any of the listed rules evaluate to true, the tag will
1068-
# not fire.
1069-
# Corresponds to the JSON property `blockingRuleId`
1070-
# @return [Array<String>]
1071-
attr_accessor :blocking_rule_id
1072-
1073891
# Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag
1074892
# will not fire.
1075893
# Corresponds to the JSON property `blockingTriggerId`
@@ -1087,12 +905,6 @@ class Tag
1087905
# @return [String]
1088906
attr_accessor :fingerprint
1089907

1090-
# Firing rule IDs. A tag will fire when any of the listed rules are true and all
1091-
# of its blockingRuleIds (if any specified) are false.
1092-
# Corresponds to the JSON property `firingRuleId`
1093-
# @return [Array<String>]
1094-
attr_accessor :firing_rule_id
1095-
1096908
# Firing trigger IDs. A tag will fire when any of the listed triggers are true
1097909
# and all of its blockingTriggerIds (if any specified) are false.
1098910
# Corresponds to the JSON property `firingTriggerId`
@@ -1179,11 +991,9 @@ def initialize(**args)
1179991
# Update properties of this object
1180992
def update!(**args)
1181993
@account_id = args[:account_id] if args.key?(:account_id)
1182-
@blocking_rule_id = args[:blocking_rule_id] if args.key?(:blocking_rule_id)
1183994
@blocking_trigger_id = args[:blocking_trigger_id] if args.key?(:blocking_trigger_id)
1184995
@container_id = args[:container_id] if args.key?(:container_id)
1185996
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
1186-
@firing_rule_id = args[:firing_rule_id] if args.key?(:firing_rule_id)
1187997
@firing_trigger_id = args[:firing_trigger_id] if args.key?(:firing_trigger_id)
1188998
@live_only = args[:live_only] if args.key?(:live_only)
1189999
@name = args[:name] if args.key?(:name)

generated/google-apis-tagmanager_v1/lib/google/apis/tagmanager_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module TagmanagerV1
1818
# Version of the google-apis-tagmanager_v1 gem
19-
GEM_VERSION = "0.18.0"
19+
GEM_VERSION = "0.19.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250310"
25+
REVISION = "20250409"
2626
end
2727
end
2828
end

generated/google-apis-tagmanager_v1/lib/google/apis/tagmanager_v1/representations.rb

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
148148
include Google::Apis::Core::JsonObjectSupport
149149
end
150150

151-
class Macro
152-
class Representation < Google::Apis::Core::JsonRepresentation; end
153-
154-
include Google::Apis::Core::JsonObjectSupport
155-
end
156-
157151
class Parameter
158152
class Representation < Google::Apis::Core::JsonRepresentation; end
159153

@@ -166,12 +160,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
166160
include Google::Apis::Core::JsonObjectSupport
167161
end
168162

169-
class Rule
170-
class Representation < Google::Apis::Core::JsonRepresentation; end
171-
172-
include Google::Apis::Core::JsonObjectSupport
173-
end
174-
175163
class SetupTag
176164
class Representation < Google::Apis::Core::JsonRepresentation; end
177165

@@ -271,12 +259,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
271259
property :fingerprint, as: 'fingerprint'
272260
collection :folder, as: 'folder', class: Google::Apis::TagmanagerV1::Folder, decorator: Google::Apis::TagmanagerV1::Folder::Representation
273261

274-
collection :macro, as: 'macro', class: Google::Apis::TagmanagerV1::Macro, decorator: Google::Apis::TagmanagerV1::Macro::Representation
275-
276262
property :name, as: 'name'
277263
property :notes, as: 'notes'
278-
collection :rule, as: 'rule', class: Google::Apis::TagmanagerV1::Rule, decorator: Google::Apis::TagmanagerV1::Rule::Representation
279-
280264
collection :tag, as: 'tag', class: Google::Apis::TagmanagerV1::Tag, decorator: Google::Apis::TagmanagerV1::Tag::Representation
281265

282266
collection :trigger, as: 'trigger', class: Google::Apis::TagmanagerV1::Trigger, decorator: Google::Apis::TagmanagerV1::Trigger::Representation
@@ -294,8 +278,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
294278
property :container_version_id, as: 'containerVersionId'
295279
property :deleted, as: 'deleted'
296280
property :name, as: 'name'
297-
property :num_macros, as: 'numMacros'
298-
property :num_rules, as: 'numRules'
299281
property :num_tags, as: 'numTags'
300282
property :num_triggers, as: 'numTriggers'
301283
property :num_variables, as: 'numVariables'
@@ -435,26 +417,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
435417
end
436418
end
437419

438-
class Macro
439-
# @private
440-
class Representation < Google::Apis::Core::JsonRepresentation
441-
property :account_id, as: 'accountId'
442-
property :container_id, as: 'containerId'
443-
collection :disabling_rule_id, as: 'disablingRuleId'
444-
collection :enabling_rule_id, as: 'enablingRuleId'
445-
property :fingerprint, as: 'fingerprint'
446-
property :macro_id, as: 'macroId'
447-
property :name, as: 'name'
448-
property :notes, as: 'notes'
449-
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
450-
451-
property :parent_folder_id, as: 'parentFolderId'
452-
property :schedule_end_ms, :numeric_string => true, as: 'scheduleEndMs'
453-
property :schedule_start_ms, :numeric_string => true, as: 'scheduleStartMs'
454-
property :type, as: 'type'
455-
end
456-
end
457-
458420
class Parameter
459421
# @private
460422
class Representation < Google::Apis::Core::JsonRepresentation
@@ -477,20 +439,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
477439
end
478440
end
479441

480-
class Rule
481-
# @private
482-
class Representation < Google::Apis::Core::JsonRepresentation
483-
property :account_id, as: 'accountId'
484-
collection :condition, as: 'condition', class: Google::Apis::TagmanagerV1::Condition, decorator: Google::Apis::TagmanagerV1::Condition::Representation
485-
486-
property :container_id, as: 'containerId'
487-
property :fingerprint, as: 'fingerprint'
488-
property :name, as: 'name'
489-
property :notes, as: 'notes'
490-
property :rule_id, as: 'ruleId'
491-
end
492-
end
493-
494442
class SetupTag
495443
# @private
496444
class Representation < Google::Apis::Core::JsonRepresentation
@@ -503,11 +451,9 @@ class Tag
503451
# @private
504452
class Representation < Google::Apis::Core::JsonRepresentation
505453
property :account_id, as: 'accountId'
506-
collection :blocking_rule_id, as: 'blockingRuleId'
507454
collection :blocking_trigger_id, as: 'blockingTriggerId'
508455
property :container_id, as: 'containerId'
509456
property :fingerprint, as: 'fingerprint'
510-
collection :firing_rule_id, as: 'firingRuleId'
511457
collection :firing_trigger_id, as: 'firingTriggerId'
512458
property :live_only, as: 'liveOnly'
513459
property :name, as: 'name'

0 commit comments

Comments
 (0)