@maxim_mazurok/gapi.client.tagmanager-v1 0.0.20220810

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts ADDED
@@ -0,0 +1,2710 @@
1
+ /* Type definitions for non-npm package Tag Manager API v1 0.0 */
2
+ // Project: https://developers.google.com/tag-manager
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+ // TypeScript Version: 2.8
8
+
9
+ // IMPORTANT
10
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
+ // Generated from: https://tagmanager.googleapis.com/$discovery/rest?version=v1
13
+ // Revision: 20220810
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load Tag Manager API v1 */
19
+ function load(urlOrObject: "https://tagmanager.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "tagmanager", version: "v1"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "tagmanager", version: "v1", callback: () => any): void;
24
+
25
+ namespace tagmanager {
26
+ interface Account {
27
+ /** The Account ID uniquely identifies the GTM Account. */
28
+ accountId?: string;
29
+ /** The fingerprint of the GTM Account as computed at storage time. This value is recomputed whenever the account is modified. */
30
+ fingerprint?: string;
31
+ /** Account display name. @mutable tagmanager.accounts.create @mutable tagmanager.accounts.update */
32
+ name?: string;
33
+ /** Whether the account shares data anonymously with Google and others. @mutable tagmanager.accounts.create @mutable tagmanager.accounts.update */
34
+ shareData?: boolean;
35
+ }
36
+ interface AccountAccess {
37
+ /** List of Account permissions. Valid account permissions are read and manage. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update */
38
+ permission?: string[];
39
+ }
40
+ interface Condition {
41
+ /**
42
+ * A list of named parameters (key/value), depending on the condition's type. Notes: - For binary operators, include parameters named arg0 and arg1 for specifying the left and right
43
+ * operands, respectively. - At this time, the left operand (arg0) must be a reference to a variable. - For case-insensitive Regex matching, include a boolean parameter named
44
+ * ignore_case that is set to true. If not specified or set to any other value, the matching will be case sensitive. - To negate an operator, include a boolean parameter named negate
45
+ * boolean parameter that is set to true. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update
46
+ */
47
+ parameter?: Parameter[];
48
+ /** The type of operator for this condition. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update */
49
+ type?: string;
50
+ }
51
+ interface Container {
52
+ /** GTM Account ID. */
53
+ accountId?: string;
54
+ /** The Container ID uniquely identifies the GTM Container. */
55
+ containerId?: string;
56
+ /** Optional list of domain names associated with the Container. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update */
57
+ domainName?: string[];
58
+ /**
59
+ * List of enabled built-in variables. Valid values include: pageUrl, pageHostname, pagePath, referrer, event, clickElement, clickClasses, clickId, clickTarget, clickUrl, clickText,
60
+ * formElement, formClasses, formId, formTarget, formUrl, formText, errorMessage, errorUrl, errorLine, newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState,
61
+ * historySource, containerVersion, debugMode, randomNumber, containerId. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update
62
+ */
63
+ enabledBuiltInVariable?: string[];
64
+ /** The fingerprint of the GTM Container as computed at storage time. This value is recomputed whenever the account is modified. */
65
+ fingerprint?: string;
66
+ /** Container display name. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update */
67
+ name?: string;
68
+ /** Container Notes. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update */
69
+ notes?: string;
70
+ /** Container Public ID. */
71
+ publicId?: string;
72
+ /** Container Country ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update */
73
+ timeZoneCountryId?: string;
74
+ /** Container Time Zone ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update */
75
+ timeZoneId?: string;
76
+ /** List of Usage Contexts for the Container. Valid values include: web, android, ios. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update */
77
+ usageContext?: string[];
78
+ }
79
+ interface ContainerAccess {
80
+ /** GTM Container ID. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update */
81
+ containerId?: string;
82
+ /**
83
+ * List of Container permissions. Valid container permissions are: read, edit, delete, publish. @mutable tagmanager.accounts.permissions.create @mutable
84
+ * tagmanager.accounts.permissions.update
85
+ */
86
+ permission?: string[];
87
+ }
88
+ interface ContainerVersion {
89
+ /** GTM Account ID. */
90
+ accountId?: string;
91
+ /** The container that this version was taken from. */
92
+ container?: Container;
93
+ /** GTM Container ID. */
94
+ containerId?: string;
95
+ /** The Container Version ID uniquely identifies the GTM Container Version. */
96
+ containerVersionId?: string;
97
+ /** A value of true indicates this container version has been deleted. */
98
+ deleted?: boolean;
99
+ /** The fingerprint of the GTM Container Version as computed at storage time. This value is recomputed whenever the container version is modified. */
100
+ fingerprint?: string;
101
+ /** The folders in the container that this version was taken from. */
102
+ folder?: Folder[];
103
+ /** The macros in the container that this version was taken from. */
104
+ macro?: Macro[];
105
+ /** Container version display name. @mutable tagmanager.accounts.containers.versions.update */
106
+ name?: string;
107
+ /** User notes on how to apply this container version in the container. @mutable tagmanager.accounts.containers.versions.update */
108
+ notes?: string;
109
+ /** The rules in the container that this version was taken from. */
110
+ rule?: Rule[];
111
+ /** The tags in the container that this version was taken from. */
112
+ tag?: Tag[];
113
+ /** The triggers in the container that this version was taken from. */
114
+ trigger?: Trigger[];
115
+ /** The variables in the container that this version was taken from. */
116
+ variable?: Variable[];
117
+ }
118
+ interface ContainerVersionHeader {
119
+ /** GTM Account ID. */
120
+ accountId?: string;
121
+ /** GTM Container ID. */
122
+ containerId?: string;
123
+ /** The Container Version ID uniquely identifies the GTM Container Version. */
124
+ containerVersionId?: string;
125
+ /** A value of true indicates this container version has been deleted. */
126
+ deleted?: boolean;
127
+ /** Container version display name. */
128
+ name?: string;
129
+ /** Number of macros in the container version. */
130
+ numMacros?: string;
131
+ /** Number of rules in the container version. */
132
+ numRules?: string;
133
+ /** Number of tags in the container version. */
134
+ numTags?: string;
135
+ /** Number of triggers in the container version. */
136
+ numTriggers?: string;
137
+ /** Number of variables in the container version. */
138
+ numVariables?: string;
139
+ }
140
+ interface CreateContainerVersionRequestVersionOptions {
141
+ /** The name of the container version to be created. */
142
+ name?: string;
143
+ /** The notes of the container version to be created. */
144
+ notes?: string;
145
+ /** The creation of this version may be for quick preview and shouldn't be saved. */
146
+ quickPreview?: boolean;
147
+ }
148
+ interface CreateContainerVersionResponse {
149
+ /** Compiler errors or not. */
150
+ compilerError?: boolean;
151
+ /** The container version created. */
152
+ containerVersion?: ContainerVersion;
153
+ }
154
+ interface Environment {
155
+ /** GTM Account ID. */
156
+ accountId?: string;
157
+ /** The environment authorization code. */
158
+ authorizationCode?: string;
159
+ /** The last update time-stamp for the authorization code. */
160
+ authorizationTimestampMs?: string;
161
+ /** GTM Container ID. */
162
+ containerId?: string;
163
+ containerVersionId?: string;
164
+ /**
165
+ * The environment description. Can be set or changed only on USER type environments. @mutable tagmanager.accounts.containers.environments.create @mutable
166
+ * tagmanager.accounts.containers.environments.update
167
+ */
168
+ description?: string;
169
+ /**
170
+ * Whether or not to enable debug by default on for the environment. @mutable tagmanager.accounts.containers.environments.create @mutable
171
+ * tagmanager.accounts.containers.environments.update
172
+ */
173
+ enableDebug?: boolean;
174
+ /** GTM Environment ID uniquely identifies the GTM Environment. */
175
+ environmentId?: string;
176
+ /** The fingerprint of the GTM environment as computed at storage time. This value is recomputed whenever the environment is modified. */
177
+ fingerprint?: string;
178
+ /**
179
+ * The environment display name. Can be set or changed only on USER type environments. @mutable tagmanager.accounts.containers.environments.create @mutable
180
+ * tagmanager.accounts.containers.environments.update
181
+ */
182
+ name?: string;
183
+ /** The type of this environment. */
184
+ type?: string;
185
+ /** Default preview page url for the environment. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update */
186
+ url?: string;
187
+ }
188
+ interface Folder {
189
+ /** GTM Account ID. */
190
+ accountId?: string;
191
+ /** GTM Container ID. */
192
+ containerId?: string;
193
+ /** The fingerprint of the GTM Folder as computed at storage time. This value is recomputed whenever the folder is modified. */
194
+ fingerprint?: string;
195
+ /** The Folder ID uniquely identifies the GTM Folder. */
196
+ folderId?: string;
197
+ /** Folder display name. @mutable tagmanager.accounts.containers.folders.create @mutable tagmanager.accounts.containers.folders.update */
198
+ name?: string;
199
+ }
200
+ interface FolderEntities {
201
+ /** The list of tags inside the folder. */
202
+ tag?: Tag[];
203
+ /** The list of triggers inside the folder. */
204
+ trigger?: Trigger[];
205
+ /** The list of variables inside the folder. */
206
+ variable?: Variable[];
207
+ }
208
+ interface ListAccountsResponse {
209
+ /** List of GTM Accounts that a user has access to. */
210
+ accounts?: Account[];
211
+ }
212
+ interface ListAccountUsersResponse {
213
+ /** All GTM AccountUsers of a GTM Account. */
214
+ userAccess?: UserAccess[];
215
+ }
216
+ interface ListContainersResponse {
217
+ /** All Containers of a GTM Account. */
218
+ containers?: Container[];
219
+ }
220
+ interface ListContainerVersionsResponse {
221
+ /** All versions of a GTM Container. */
222
+ containerVersion?: ContainerVersion[];
223
+ /** All container version headers of a GTM Container. */
224
+ containerVersionHeader?: ContainerVersionHeader[];
225
+ }
226
+ interface ListEnvironmentsResponse {
227
+ /** All Environments of a GTM Container. */
228
+ environments?: Environment[];
229
+ }
230
+ interface ListFoldersResponse {
231
+ /** All GTM Folders of a GTM Container. */
232
+ folders?: Folder[];
233
+ }
234
+ interface ListTagsResponse {
235
+ /** All GTM Tags of a GTM Container. */
236
+ tags?: Tag[];
237
+ }
238
+ interface ListTriggersResponse {
239
+ /** All GTM Triggers of a GTM Container. */
240
+ triggers?: Trigger[];
241
+ }
242
+ interface ListVariablesResponse {
243
+ /** All GTM Variables of a GTM Container. */
244
+ variables?: Variable[];
245
+ }
246
+ interface Macro {
247
+ /** GTM Account ID. */
248
+ accountId?: string;
249
+ /** GTM Container ID. */
250
+ containerId?: string;
251
+ /**
252
+ * For mobile containers only: A list of rule IDs for disabling conditional macros; the macro is enabled if one of the enabling rules is true while all the disabling rules are false.
253
+ * Treated as an unordered set. @mutable tagmanager.accounts.containers.macros.create @mutable tagmanager.accounts.containers.macros.update
254
+ */
255
+ disablingRuleId?: string[];
256
+ /**
257
+ * For mobile containers only: A list of rule IDs for enabling conditional macros; the macro is enabled if one of the enabling rules is true while all the disabling rules are false.
258
+ * Treated as an unordered set. @mutable tagmanager.accounts.containers.macros.create @mutable tagmanager.accounts.containers.macros.update
259
+ */
260
+ enablingRuleId?: string[];
261
+ /** The fingerprint of the GTM Macro as computed at storage time. This value is recomputed whenever the macro is modified. */
262
+ fingerprint?: string;
263
+ /** The Macro ID uniquely identifies the GTM Macro. */
264
+ macroId?: string;
265
+ /** Macro display name. @mutable tagmanager.accounts.containers.macros.create @mutable tagmanager.accounts.containers.macros.update */
266
+ name?: string;
267
+ /** User notes on how to apply this macro in the container. @mutable tagmanager.accounts.containers.macros.create @mutable tagmanager.accounts.containers.macros.update */
268
+ notes?: string;
269
+ /** The macro's parameters. @mutable tagmanager.accounts.containers.macros.create @mutable tagmanager.accounts.containers.macros.update */
270
+ parameter?: Parameter[];
271
+ /** Parent folder id. */
272
+ parentFolderId?: string;
273
+ /** The end timestamp in milliseconds to schedule a macro. @mutable tagmanager.accounts.containers.macros.create @mutable tagmanager.accounts.containers.macros.update */
274
+ scheduleEndMs?: string;
275
+ /** The start timestamp in milliseconds to schedule a macro. @mutable tagmanager.accounts.containers.macros.create @mutable tagmanager.accounts.containers.macros.update */
276
+ scheduleStartMs?: string;
277
+ /** GTM Macro Type. @mutable tagmanager.accounts.containers.macros.create @mutable tagmanager.accounts.containers.macros.update */
278
+ type?: string;
279
+ }
280
+ interface Parameter {
281
+ /**
282
+ * The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. @mutable
283
+ * tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.containers.variables.update @mutable tagmanager.accounts.containers.triggers.create @mutable
284
+ * tagmanager.accounts.containers.triggers.update @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update
285
+ */
286
+ key?: string;
287
+ /**
288
+ * This list parameter's parameters (keys will be ignored). @mutable tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.containers.variables.update @mutable
289
+ * tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update @mutable tagmanager.accounts.containers.tags.create @mutable
290
+ * tagmanager.accounts.containers.tags.update
291
+ */
292
+ list?: Parameter[];
293
+ /**
294
+ * This map parameter's parameters (must have keys; keys must be unique). @mutable tagmanager.accounts.containers.variables.create @mutable
295
+ * tagmanager.accounts.containers.variables.update @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update @mutable
296
+ * tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update
297
+ */
298
+ map?: Parameter[];
299
+ /**
300
+ * The parameter type. Valid values are: - boolean: The value represents a boolean, represented as 'true' or 'false' - integer: The value represents a 64-bit signed integer value, in
301
+ * base 10 - list: A list of parameters should be specified - map: A map of parameters should be specified - template: The value represents any text; this can include variable
302
+ * references (even variable references that might return non-string types) - trigger_reference: The value represents a trigger, represented as the trigger id - tag_reference: The
303
+ * value represents a tag, represented as the tag name @mutable tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.containers.variables.update @mutable
304
+ * tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update @mutable tagmanager.accounts.containers.tags.create @mutable
305
+ * tagmanager.accounts.containers.tags.update
306
+ */
307
+ type?: string;
308
+ /**
309
+ * A parameter's value (may contain variable references such as "{{myVariable}}") as appropriate to the specified type. @mutable tagmanager.accounts.containers.variables.create
310
+ * @mutable tagmanager.accounts.containers.variables.update @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update @mutable
311
+ * tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update
312
+ */
313
+ value?: string;
314
+ }
315
+ interface PublishContainerVersionResponse {
316
+ /** Compiler errors or not. */
317
+ compilerError?: boolean;
318
+ /** The container version created. */
319
+ containerVersion?: ContainerVersion;
320
+ }
321
+ interface Rule {
322
+ /** GTM Account ID. */
323
+ accountId?: string;
324
+ /** The list of conditions that make up this rule (implicit AND between them). @mutable tagmanager.accounts.containers.rules.create @mutable tagmanager.accounts.containers.rules.update */
325
+ condition?: Condition[];
326
+ /** GTM Container ID. */
327
+ containerId?: string;
328
+ /** The fingerprint of the GTM Rule as computed at storage time. This value is recomputed whenever the rule is modified. */
329
+ fingerprint?: string;
330
+ /** Rule display name. @mutable tagmanager.accounts.containers.rules.create @mutable tagmanager.accounts.containers.rules.update */
331
+ name?: string;
332
+ /** User notes on how to apply this rule in the container. @mutable tagmanager.accounts.containers.rules.create @mutable tagmanager.accounts.containers.rules.update */
333
+ notes?: string;
334
+ /** The Rule ID uniquely identifies the GTM Rule. */
335
+ ruleId?: string;
336
+ }
337
+ interface SetupTag {
338
+ /** If true, fire the main tag if and only if the setup tag fires successfully. If false, fire the main tag regardless of setup tag firing status. */
339
+ stopOnSetupFailure?: boolean;
340
+ /** The name of the setup tag. */
341
+ tagName?: string;
342
+ }
343
+ interface Tag {
344
+ /** GTM Account ID. */
345
+ accountId?: string;
346
+ /**
347
+ * Blocking rule IDs. If any of the listed rules evaluate to true, the tag will not fire. @mutable tagmanager.accounts.containers.tags.create @mutable
348
+ * tagmanager.accounts.containers.tags.update
349
+ */
350
+ blockingRuleId?: string[];
351
+ /**
352
+ * Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. @mutable tagmanager.accounts.containers.tags.create @mutable
353
+ * tagmanager.accounts.containers.tags.update
354
+ */
355
+ blockingTriggerId?: string[];
356
+ /** GTM Container ID. */
357
+ containerId?: string;
358
+ /** The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. */
359
+ fingerprint?: string;
360
+ /**
361
+ * Firing rule IDs. A tag will fire when any of the listed rules are true and all of its blockingRuleIds (if any specified) are false. @mutable
362
+ * tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update
363
+ */
364
+ firingRuleId?: string[];
365
+ /**
366
+ * Firing trigger IDs. A tag will fire when any of the listed triggers are true and all of its blockingTriggerIds (if any specified) are false. @mutable
367
+ * tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update
368
+ */
369
+ firingTriggerId?: string[];
370
+ /**
371
+ * If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode). @mutable tagmanager.accounts.containers.tags.create @mutable
372
+ * tagmanager.accounts.containers.tags.update
373
+ */
374
+ liveOnly?: boolean;
375
+ /** Tag display name. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update */
376
+ name?: string;
377
+ /** User notes on how to apply this tag in the container. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update */
378
+ notes?: string;
379
+ /** The tag's parameters. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update */
380
+ parameter?: Parameter[];
381
+ /** Parent folder id. */
382
+ parentFolderId?: string;
383
+ /** True if the tag is paused. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update */
384
+ paused?: boolean;
385
+ /**
386
+ * User defined numeric priority of the tag. Tags are fired asynchronously in order of priority. Tags with higher numeric value fire first. A tag's priority can be a positive or
387
+ * negative value. The default value is 0. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update
388
+ */
389
+ priority?: Parameter;
390
+ /** The end timestamp in milliseconds to schedule a tag. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update */
391
+ scheduleEndMs?: string;
392
+ /** The start timestamp in milliseconds to schedule a tag. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update */
393
+ scheduleStartMs?: string;
394
+ /** The list of setup tags. Currently we only allow one. */
395
+ setupTag?: SetupTag[];
396
+ /** Option to fire this tag. */
397
+ tagFiringOption?: string;
398
+ /** The Tag ID uniquely identifies the GTM Tag. */
399
+ tagId?: string;
400
+ /** The list of teardown tags. Currently we only allow one. */
401
+ teardownTag?: TeardownTag[];
402
+ /** GTM Tag Type. @mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.update */
403
+ type?: string;
404
+ }
405
+ interface TeardownTag {
406
+ /** If true, fire the teardown tag if and only if the main tag fires successfully. If false, fire the teardown tag regardless of main tag firing status. */
407
+ stopTeardownOnFailure?: boolean;
408
+ /** The name of the teardown tag. */
409
+ tagName?: string;
410
+ }
411
+ interface Trigger {
412
+ /** GTM Account ID. */
413
+ accountId?: string;
414
+ /** Used in the case of auto event tracking. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update */
415
+ autoEventFilter?: Condition[];
416
+ /**
417
+ * Whether or not we should only fire tags if the form submit or link click event is not cancelled by some other event handler (e.g. because of validation). Only valid for Form
418
+ * Submission and Link Click triggers. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update
419
+ */
420
+ checkValidation?: Parameter;
421
+ /** GTM Container ID. */
422
+ containerId?: string;
423
+ /**
424
+ * A visibility trigger minimum continuous visible time (in milliseconds). Only valid for AMP Visibility trigger. @mutable tagmanager.accounts.containers.triggers.create @mutable
425
+ * tagmanager.accounts.containers.triggers.update
426
+ */
427
+ continuousTimeMinMilliseconds?: Parameter;
428
+ /**
429
+ * Used in the case of custom event, which is fired iff all Conditions are true. @mutable tagmanager.accounts.containers.triggers.create @mutable
430
+ * tagmanager.accounts.containers.triggers.update
431
+ */
432
+ customEventFilter?: Condition[];
433
+ /** Name of the GTM event that is fired. Only valid for Timer triggers. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update */
434
+ eventName?: Parameter;
435
+ /** The trigger will only fire iff all Conditions are true. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update */
436
+ filter?: Condition[];
437
+ /** The fingerprint of the GTM Trigger as computed at storage time. This value is recomputed whenever the trigger is modified. */
438
+ fingerprint?: string;
439
+ /**
440
+ * List of integer percentage values for scroll triggers. The trigger will fire when each percentage is reached when the view is scrolled horizontally. Only valid for AMP scroll
441
+ * triggers. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update
442
+ */
443
+ horizontalScrollPercentageList?: Parameter;
444
+ /**
445
+ * Time between triggering recurring Timer Events (in milliseconds). Only valid for Timer triggers. @mutable tagmanager.accounts.containers.triggers.create @mutable
446
+ * tagmanager.accounts.containers.triggers.update
447
+ */
448
+ interval?: Parameter;
449
+ /**
450
+ * Time between Timer Events to fire (in seconds). Only valid for AMP Timer trigger. @mutable tagmanager.accounts.containers.triggers.create @mutable
451
+ * tagmanager.accounts.containers.triggers.update
452
+ */
453
+ intervalSeconds?: Parameter;
454
+ /**
455
+ * Limit of the number of GTM events this Timer Trigger will fire. If no limit is set, we will continue to fire GTM events until the user leaves the page. Only valid for Timer
456
+ * triggers. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update
457
+ */
458
+ limit?: Parameter;
459
+ /**
460
+ * Max time to fire Timer Events (in seconds). Only valid for AMP Timer trigger. @mutable tagmanager.accounts.containers.triggers.create @mutable
461
+ * tagmanager.accounts.containers.triggers.update
462
+ */
463
+ maxTimerLengthSeconds?: Parameter;
464
+ /** Trigger display name. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update */
465
+ name?: string;
466
+ /** Additional parameters. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update */
467
+ parameter?: Parameter[];
468
+ /** Parent folder id. */
469
+ parentFolderId?: string;
470
+ /**
471
+ * A click trigger CSS selector (i.e. "a", "button" etc.). Only valid for AMP Click trigger. @mutable tagmanager.accounts.containers.triggers.create @mutable
472
+ * tagmanager.accounts.containers.triggers.update
473
+ */
474
+ selector?: Parameter;
475
+ /**
476
+ * A visibility trigger minimum total visible time (in milliseconds). Only valid for AMP Visibility trigger. @mutable tagmanager.accounts.containers.triggers.create @mutable
477
+ * tagmanager.accounts.containers.triggers.update
478
+ */
479
+ totalTimeMinMilliseconds?: Parameter;
480
+ /** The Trigger ID uniquely identifies the GTM Trigger. */
481
+ triggerId?: string;
482
+ /** Defines the data layer event that causes this trigger. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update */
483
+ type?: string;
484
+ /**
485
+ * Globally unique id of the trigger that auto-generates this (a Form Submit, Link Click or Timer listener) if any. Used to make incompatible auto-events work together with trigger
486
+ * filtering based on trigger ids. This value is populated during output generation since the tags implied by triggers don't exist until then. Only valid for Form Submit, Link Click
487
+ * and Timer triggers. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update
488
+ */
489
+ uniqueTriggerId?: Parameter;
490
+ /**
491
+ * List of integer percentage values for scroll triggers. The trigger will fire when each percentage is reached when the view is scrolled vertically. Only valid for AMP scroll
492
+ * triggers. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update
493
+ */
494
+ verticalScrollPercentageList?: Parameter;
495
+ /**
496
+ * A visibility trigger CSS selector (i.e. "#id"). Only valid for AMP Visibility trigger. @mutable tagmanager.accounts.containers.triggers.create @mutable
497
+ * tagmanager.accounts.containers.triggers.update
498
+ */
499
+ visibilitySelector?: Parameter;
500
+ /**
501
+ * A visibility trigger maximum percent visibility. Only valid for AMP Visibility trigger. @mutable tagmanager.accounts.containers.triggers.create @mutable
502
+ * tagmanager.accounts.containers.triggers.update
503
+ */
504
+ visiblePercentageMax?: Parameter;
505
+ /**
506
+ * A visibility trigger minimum percent visibility. Only valid for AMP Visibility trigger. @mutable tagmanager.accounts.containers.triggers.create @mutable
507
+ * tagmanager.accounts.containers.triggers.update
508
+ */
509
+ visiblePercentageMin?: Parameter;
510
+ /**
511
+ * Whether or not we should delay the form submissions or link opening until all of the tags have fired (by preventing the default action and later simulating the default action). Only
512
+ * valid for Form Submission and Link Click triggers. @mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update
513
+ */
514
+ waitForTags?: Parameter;
515
+ /**
516
+ * How long to wait (in milliseconds) for tags to fire when 'waits_for_tags' above evaluates to true. Only valid for Form Submission and Link Click triggers. @mutable
517
+ * tagmanager.accounts.containers.triggers.create @mutable tagmanager.accounts.containers.triggers.update
518
+ */
519
+ waitForTagsTimeout?: Parameter;
520
+ }
521
+ interface UserAccess {
522
+ /** GTM Account access permissions. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update */
523
+ accountAccess?: AccountAccess;
524
+ /** GTM Account ID. */
525
+ accountId?: string;
526
+ /** GTM Container access permissions. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update */
527
+ containerAccess?: ContainerAccess[];
528
+ /** User's email address. @mutable tagmanager.accounts.permissions.create */
529
+ emailAddress?: string;
530
+ /** Account Permission ID. */
531
+ permissionId?: string;
532
+ }
533
+ interface Variable {
534
+ /** GTM Account ID. */
535
+ accountId?: string;
536
+ /** GTM Container ID. */
537
+ containerId?: string;
538
+ /**
539
+ * For mobile containers only: A list of trigger IDs for disabling conditional variables; the variable is enabled if one of the enabling trigger is true while all the disabling trigger
540
+ * are false. Treated as an unordered set. @mutable tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.containers.variables.update
541
+ */
542
+ disablingTriggerId?: string[];
543
+ /**
544
+ * For mobile containers only: A list of trigger IDs for enabling conditional variables; the variable is enabled if one of the enabling triggers is true while all the disabling
545
+ * triggers are false. Treated as an unordered set. @mutable tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.containers.variables.update
546
+ */
547
+ enablingTriggerId?: string[];
548
+ /** The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified. */
549
+ fingerprint?: string;
550
+ /** Variable display name. @mutable tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.containers.variables.update */
551
+ name?: string;
552
+ /** User notes on how to apply this variable in the container. @mutable tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.containers.variables.update */
553
+ notes?: string;
554
+ /** The variable's parameters. @mutable tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.containers.variables.update */
555
+ parameter?: Parameter[];
556
+ /** Parent folder id. */
557
+ parentFolderId?: string;
558
+ /** The end timestamp in milliseconds to schedule a variable. @mutable tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.containers.variables.update */
559
+ scheduleEndMs?: string;
560
+ /** The start timestamp in milliseconds to schedule a variable. @mutable tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.containers.variables.update */
561
+ scheduleStartMs?: string;
562
+ /** GTM Variable Type. @mutable tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.containers.variables.update */
563
+ type?: string;
564
+ /** The Variable ID uniquely identifies the GTM Variable. */
565
+ variableId?: string;
566
+ }
567
+ interface EnvironmentsResource {
568
+ /** Creates a GTM Environment. */
569
+ create(request: {
570
+ /** V1 error format. */
571
+ "$.xgafv"?: string;
572
+ /** OAuth access token. */
573
+ access_token?: string;
574
+ /** The GTM Account ID. */
575
+ accountId: string;
576
+ /** Data format for response. */
577
+ alt?: string;
578
+ /** JSONP */
579
+ callback?: string;
580
+ /** The GTM Container ID. */
581
+ containerId: string;
582
+ /** Selector specifying which fields to include in a partial response. */
583
+ fields?: string;
584
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
585
+ key?: string;
586
+ /** OAuth 2.0 token for the current user. */
587
+ oauth_token?: string;
588
+ /** Returns response with indentations and line breaks. */
589
+ prettyPrint?: boolean;
590
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
591
+ quotaUser?: string;
592
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
593
+ upload_protocol?: string;
594
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
595
+ uploadType?: string;
596
+ /** Request body */
597
+ resource: Environment;
598
+ }): Request<Environment>;
599
+ create(request: {
600
+ /** V1 error format. */
601
+ "$.xgafv"?: string;
602
+ /** OAuth access token. */
603
+ access_token?: string;
604
+ /** The GTM Account ID. */
605
+ accountId: string;
606
+ /** Data format for response. */
607
+ alt?: string;
608
+ /** JSONP */
609
+ callback?: string;
610
+ /** The GTM Container ID. */
611
+ containerId: string;
612
+ /** Selector specifying which fields to include in a partial response. */
613
+ fields?: string;
614
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
615
+ key?: string;
616
+ /** OAuth 2.0 token for the current user. */
617
+ oauth_token?: string;
618
+ /** Returns response with indentations and line breaks. */
619
+ prettyPrint?: boolean;
620
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
621
+ quotaUser?: string;
622
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
623
+ upload_protocol?: string;
624
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
625
+ uploadType?: string;
626
+ },
627
+ body: Environment): Request<Environment>;
628
+ /** Deletes a GTM Environment. */
629
+ delete(request?: {
630
+ /** V1 error format. */
631
+ "$.xgafv"?: string;
632
+ /** OAuth access token. */
633
+ access_token?: string;
634
+ /** The GTM Account ID. */
635
+ accountId: string;
636
+ /** Data format for response. */
637
+ alt?: string;
638
+ /** JSONP */
639
+ callback?: string;
640
+ /** The GTM Container ID. */
641
+ containerId: string;
642
+ /** The GTM Environment ID. */
643
+ environmentId: string;
644
+ /** Selector specifying which fields to include in a partial response. */
645
+ fields?: string;
646
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
647
+ key?: string;
648
+ /** OAuth 2.0 token for the current user. */
649
+ oauth_token?: string;
650
+ /** Returns response with indentations and line breaks. */
651
+ prettyPrint?: boolean;
652
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
653
+ quotaUser?: string;
654
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
655
+ upload_protocol?: string;
656
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
657
+ uploadType?: string;
658
+ }): Request<void>;
659
+ /** Gets a GTM Environment. */
660
+ get(request?: {
661
+ /** V1 error format. */
662
+ "$.xgafv"?: string;
663
+ /** OAuth access token. */
664
+ access_token?: string;
665
+ /** The GTM Account ID. */
666
+ accountId: string;
667
+ /** Data format for response. */
668
+ alt?: string;
669
+ /** JSONP */
670
+ callback?: string;
671
+ /** The GTM Container ID. */
672
+ containerId: string;
673
+ /** The GTM Environment ID. */
674
+ environmentId: string;
675
+ /** Selector specifying which fields to include in a partial response. */
676
+ fields?: string;
677
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
678
+ key?: string;
679
+ /** OAuth 2.0 token for the current user. */
680
+ oauth_token?: string;
681
+ /** Returns response with indentations and line breaks. */
682
+ prettyPrint?: boolean;
683
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
684
+ quotaUser?: string;
685
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
686
+ upload_protocol?: string;
687
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
688
+ uploadType?: string;
689
+ }): Request<Environment>;
690
+ /** Lists all GTM Environments of a GTM Container. */
691
+ list(request?: {
692
+ /** V1 error format. */
693
+ "$.xgafv"?: string;
694
+ /** OAuth access token. */
695
+ access_token?: string;
696
+ /** The GTM Account ID. */
697
+ accountId: string;
698
+ /** Data format for response. */
699
+ alt?: string;
700
+ /** JSONP */
701
+ callback?: string;
702
+ /** The GTM Container ID. */
703
+ containerId: string;
704
+ /** Selector specifying which fields to include in a partial response. */
705
+ fields?: string;
706
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
707
+ key?: string;
708
+ /** OAuth 2.0 token for the current user. */
709
+ oauth_token?: string;
710
+ /** Returns response with indentations and line breaks. */
711
+ prettyPrint?: boolean;
712
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
713
+ quotaUser?: string;
714
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
715
+ upload_protocol?: string;
716
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
717
+ uploadType?: string;
718
+ }): Request<ListEnvironmentsResponse>;
719
+ /** Updates a GTM Environment. */
720
+ update(request: {
721
+ /** V1 error format. */
722
+ "$.xgafv"?: string;
723
+ /** OAuth access token. */
724
+ access_token?: string;
725
+ /** The GTM Account ID. */
726
+ accountId: string;
727
+ /** Data format for response. */
728
+ alt?: string;
729
+ /** JSONP */
730
+ callback?: string;
731
+ /** The GTM Container ID. */
732
+ containerId: string;
733
+ /** The GTM Environment ID. */
734
+ environmentId: string;
735
+ /** Selector specifying which fields to include in a partial response. */
736
+ fields?: string;
737
+ /** When provided, this fingerprint must match the fingerprint of the environment in storage. */
738
+ fingerprint?: string;
739
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
740
+ key?: string;
741
+ /** OAuth 2.0 token for the current user. */
742
+ oauth_token?: string;
743
+ /** Returns response with indentations and line breaks. */
744
+ prettyPrint?: boolean;
745
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
746
+ quotaUser?: string;
747
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
748
+ upload_protocol?: string;
749
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
750
+ uploadType?: string;
751
+ /** Request body */
752
+ resource: Environment;
753
+ }): Request<Environment>;
754
+ update(request: {
755
+ /** V1 error format. */
756
+ "$.xgafv"?: string;
757
+ /** OAuth access token. */
758
+ access_token?: string;
759
+ /** The GTM Account ID. */
760
+ accountId: string;
761
+ /** Data format for response. */
762
+ alt?: string;
763
+ /** JSONP */
764
+ callback?: string;
765
+ /** The GTM Container ID. */
766
+ containerId: string;
767
+ /** The GTM Environment ID. */
768
+ environmentId: string;
769
+ /** Selector specifying which fields to include in a partial response. */
770
+ fields?: string;
771
+ /** When provided, this fingerprint must match the fingerprint of the environment in storage. */
772
+ fingerprint?: string;
773
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
774
+ key?: string;
775
+ /** OAuth 2.0 token for the current user. */
776
+ oauth_token?: string;
777
+ /** Returns response with indentations and line breaks. */
778
+ prettyPrint?: boolean;
779
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
780
+ quotaUser?: string;
781
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
782
+ upload_protocol?: string;
783
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
784
+ uploadType?: string;
785
+ },
786
+ body: Environment): Request<Environment>;
787
+ }
788
+ interface EntitiesResource {
789
+ /** List all entities in a GTM Folder. */
790
+ list(request?: {
791
+ /** V1 error format. */
792
+ "$.xgafv"?: string;
793
+ /** OAuth access token. */
794
+ access_token?: string;
795
+ /** The GTM Account ID. */
796
+ accountId: string;
797
+ /** Data format for response. */
798
+ alt?: string;
799
+ /** JSONP */
800
+ callback?: string;
801
+ /** The GTM Container ID. */
802
+ containerId: string;
803
+ /** Selector specifying which fields to include in a partial response. */
804
+ fields?: string;
805
+ /** The GTM Folder ID. */
806
+ folderId: string;
807
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
808
+ key?: string;
809
+ /** OAuth 2.0 token for the current user. */
810
+ oauth_token?: string;
811
+ /** Returns response with indentations and line breaks. */
812
+ prettyPrint?: boolean;
813
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
814
+ quotaUser?: string;
815
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
816
+ upload_protocol?: string;
817
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
818
+ uploadType?: string;
819
+ }): Request<FolderEntities>;
820
+ }
821
+ interface FoldersResource {
822
+ /** Creates a GTM Folder. */
823
+ create(request: {
824
+ /** V1 error format. */
825
+ "$.xgafv"?: string;
826
+ /** OAuth access token. */
827
+ access_token?: string;
828
+ /** The GTM Account ID. */
829
+ accountId: string;
830
+ /** Data format for response. */
831
+ alt?: string;
832
+ /** JSONP */
833
+ callback?: string;
834
+ /** The GTM Container ID. */
835
+ containerId: string;
836
+ /** Selector specifying which fields to include in a partial response. */
837
+ fields?: string;
838
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
839
+ key?: string;
840
+ /** OAuth 2.0 token for the current user. */
841
+ oauth_token?: string;
842
+ /** Returns response with indentations and line breaks. */
843
+ prettyPrint?: boolean;
844
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
845
+ quotaUser?: string;
846
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
847
+ upload_protocol?: string;
848
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
849
+ uploadType?: string;
850
+ /** Request body */
851
+ resource: Folder;
852
+ }): Request<Folder>;
853
+ create(request: {
854
+ /** V1 error format. */
855
+ "$.xgafv"?: string;
856
+ /** OAuth access token. */
857
+ access_token?: string;
858
+ /** The GTM Account ID. */
859
+ accountId: string;
860
+ /** Data format for response. */
861
+ alt?: string;
862
+ /** JSONP */
863
+ callback?: string;
864
+ /** The GTM Container ID. */
865
+ containerId: string;
866
+ /** Selector specifying which fields to include in a partial response. */
867
+ fields?: string;
868
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
869
+ key?: string;
870
+ /** OAuth 2.0 token for the current user. */
871
+ oauth_token?: string;
872
+ /** Returns response with indentations and line breaks. */
873
+ prettyPrint?: boolean;
874
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
875
+ quotaUser?: string;
876
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
877
+ upload_protocol?: string;
878
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
879
+ uploadType?: string;
880
+ },
881
+ body: Folder): Request<Folder>;
882
+ /** Deletes a GTM Folder. */
883
+ delete(request?: {
884
+ /** V1 error format. */
885
+ "$.xgafv"?: string;
886
+ /** OAuth access token. */
887
+ access_token?: string;
888
+ /** The GTM Account ID. */
889
+ accountId: string;
890
+ /** Data format for response. */
891
+ alt?: string;
892
+ /** JSONP */
893
+ callback?: string;
894
+ /** The GTM Container ID. */
895
+ containerId: string;
896
+ /** Selector specifying which fields to include in a partial response. */
897
+ fields?: string;
898
+ /** The GTM Folder ID. */
899
+ folderId: string;
900
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
901
+ key?: string;
902
+ /** OAuth 2.0 token for the current user. */
903
+ oauth_token?: string;
904
+ /** Returns response with indentations and line breaks. */
905
+ prettyPrint?: boolean;
906
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
907
+ quotaUser?: string;
908
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
909
+ upload_protocol?: string;
910
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
911
+ uploadType?: string;
912
+ }): Request<void>;
913
+ /** Gets a GTM Folder. */
914
+ get(request?: {
915
+ /** V1 error format. */
916
+ "$.xgafv"?: string;
917
+ /** OAuth access token. */
918
+ access_token?: string;
919
+ /** The GTM Account ID. */
920
+ accountId: string;
921
+ /** Data format for response. */
922
+ alt?: string;
923
+ /** JSONP */
924
+ callback?: string;
925
+ /** The GTM Container ID. */
926
+ containerId: string;
927
+ /** Selector specifying which fields to include in a partial response. */
928
+ fields?: string;
929
+ /** The GTM Folder ID. */
930
+ folderId: string;
931
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
932
+ key?: string;
933
+ /** OAuth 2.0 token for the current user. */
934
+ oauth_token?: string;
935
+ /** Returns response with indentations and line breaks. */
936
+ prettyPrint?: boolean;
937
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
938
+ quotaUser?: string;
939
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
940
+ upload_protocol?: string;
941
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
942
+ uploadType?: string;
943
+ }): Request<Folder>;
944
+ /** Lists all GTM Folders of a Container. */
945
+ list(request?: {
946
+ /** V1 error format. */
947
+ "$.xgafv"?: string;
948
+ /** OAuth access token. */
949
+ access_token?: string;
950
+ /** The GTM Account ID. */
951
+ accountId: string;
952
+ /** Data format for response. */
953
+ alt?: string;
954
+ /** JSONP */
955
+ callback?: string;
956
+ /** The GTM Container ID. */
957
+ containerId: string;
958
+ /** Selector specifying which fields to include in a partial response. */
959
+ fields?: string;
960
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
961
+ key?: string;
962
+ /** OAuth 2.0 token for the current user. */
963
+ oauth_token?: string;
964
+ /** Returns response with indentations and line breaks. */
965
+ prettyPrint?: boolean;
966
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
967
+ quotaUser?: string;
968
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
969
+ upload_protocol?: string;
970
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
971
+ uploadType?: string;
972
+ }): Request<ListFoldersResponse>;
973
+ /** Updates a GTM Folder. */
974
+ update(request: {
975
+ /** V1 error format. */
976
+ "$.xgafv"?: string;
977
+ /** OAuth access token. */
978
+ access_token?: string;
979
+ /** The GTM Account ID. */
980
+ accountId: string;
981
+ /** Data format for response. */
982
+ alt?: string;
983
+ /** JSONP */
984
+ callback?: string;
985
+ /** The GTM Container ID. */
986
+ containerId: string;
987
+ /** Selector specifying which fields to include in a partial response. */
988
+ fields?: string;
989
+ /** When provided, this fingerprint must match the fingerprint of the folder in storage. */
990
+ fingerprint?: string;
991
+ /** The GTM Folder ID. */
992
+ folderId: string;
993
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
994
+ key?: string;
995
+ /** OAuth 2.0 token for the current user. */
996
+ oauth_token?: string;
997
+ /** Returns response with indentations and line breaks. */
998
+ prettyPrint?: boolean;
999
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1000
+ quotaUser?: string;
1001
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1002
+ upload_protocol?: string;
1003
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1004
+ uploadType?: string;
1005
+ /** Request body */
1006
+ resource: Folder;
1007
+ }): Request<Folder>;
1008
+ update(request: {
1009
+ /** V1 error format. */
1010
+ "$.xgafv"?: string;
1011
+ /** OAuth access token. */
1012
+ access_token?: string;
1013
+ /** The GTM Account ID. */
1014
+ accountId: string;
1015
+ /** Data format for response. */
1016
+ alt?: string;
1017
+ /** JSONP */
1018
+ callback?: string;
1019
+ /** The GTM Container ID. */
1020
+ containerId: string;
1021
+ /** Selector specifying which fields to include in a partial response. */
1022
+ fields?: string;
1023
+ /** When provided, this fingerprint must match the fingerprint of the folder in storage. */
1024
+ fingerprint?: string;
1025
+ /** The GTM Folder ID. */
1026
+ folderId: string;
1027
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1028
+ key?: string;
1029
+ /** OAuth 2.0 token for the current user. */
1030
+ oauth_token?: string;
1031
+ /** Returns response with indentations and line breaks. */
1032
+ prettyPrint?: boolean;
1033
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1034
+ quotaUser?: string;
1035
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1036
+ upload_protocol?: string;
1037
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1038
+ uploadType?: string;
1039
+ },
1040
+ body: Folder): Request<Folder>;
1041
+ entities: EntitiesResource;
1042
+ }
1043
+ interface Move_foldersResource {
1044
+ /** Moves entities to a GTM Folder. */
1045
+ update(request: {
1046
+ /** V1 error format. */
1047
+ "$.xgafv"?: string;
1048
+ /** OAuth access token. */
1049
+ access_token?: string;
1050
+ /** The GTM Account ID. */
1051
+ accountId: string;
1052
+ /** Data format for response. */
1053
+ alt?: string;
1054
+ /** JSONP */
1055
+ callback?: string;
1056
+ /** The GTM Container ID. */
1057
+ containerId: string;
1058
+ /** Selector specifying which fields to include in a partial response. */
1059
+ fields?: string;
1060
+ /** The GTM Folder ID. */
1061
+ folderId: string;
1062
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1063
+ key?: string;
1064
+ /** OAuth 2.0 token for the current user. */
1065
+ oauth_token?: string;
1066
+ /** Returns response with indentations and line breaks. */
1067
+ prettyPrint?: boolean;
1068
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1069
+ quotaUser?: string;
1070
+ /** The tags to be moved to the folder. */
1071
+ tagId?: string | string[];
1072
+ /** The triggers to be moved to the folder. */
1073
+ triggerId?: string | string[];
1074
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1075
+ upload_protocol?: string;
1076
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1077
+ uploadType?: string;
1078
+ /** The variables to be moved to the folder. */
1079
+ variableId?: string | string[];
1080
+ /** Request body */
1081
+ resource: Folder;
1082
+ }): Request<void>;
1083
+ update(request: {
1084
+ /** V1 error format. */
1085
+ "$.xgafv"?: string;
1086
+ /** OAuth access token. */
1087
+ access_token?: string;
1088
+ /** The GTM Account ID. */
1089
+ accountId: string;
1090
+ /** Data format for response. */
1091
+ alt?: string;
1092
+ /** JSONP */
1093
+ callback?: string;
1094
+ /** The GTM Container ID. */
1095
+ containerId: string;
1096
+ /** Selector specifying which fields to include in a partial response. */
1097
+ fields?: string;
1098
+ /** The GTM Folder ID. */
1099
+ folderId: string;
1100
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1101
+ key?: string;
1102
+ /** OAuth 2.0 token for the current user. */
1103
+ oauth_token?: string;
1104
+ /** Returns response with indentations and line breaks. */
1105
+ prettyPrint?: boolean;
1106
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1107
+ quotaUser?: string;
1108
+ /** The tags to be moved to the folder. */
1109
+ tagId?: string | string[];
1110
+ /** The triggers to be moved to the folder. */
1111
+ triggerId?: string | string[];
1112
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1113
+ upload_protocol?: string;
1114
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1115
+ uploadType?: string;
1116
+ /** The variables to be moved to the folder. */
1117
+ variableId?: string | string[];
1118
+ },
1119
+ body: Folder): Request<void>;
1120
+ }
1121
+ interface Reauthorize_environmentsResource {
1122
+ /** Re-generates the authorization code for a GTM Environment. */
1123
+ update(request: {
1124
+ /** V1 error format. */
1125
+ "$.xgafv"?: string;
1126
+ /** OAuth access token. */
1127
+ access_token?: string;
1128
+ /** The GTM Account ID. */
1129
+ accountId: string;
1130
+ /** Data format for response. */
1131
+ alt?: string;
1132
+ /** JSONP */
1133
+ callback?: string;
1134
+ /** The GTM Container ID. */
1135
+ containerId: string;
1136
+ /** The GTM Environment ID. */
1137
+ environmentId: string;
1138
+ /** Selector specifying which fields to include in a partial response. */
1139
+ fields?: string;
1140
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1141
+ key?: string;
1142
+ /** OAuth 2.0 token for the current user. */
1143
+ oauth_token?: string;
1144
+ /** Returns response with indentations and line breaks. */
1145
+ prettyPrint?: boolean;
1146
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1147
+ quotaUser?: string;
1148
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1149
+ upload_protocol?: string;
1150
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1151
+ uploadType?: string;
1152
+ /** Request body */
1153
+ resource: Environment;
1154
+ }): Request<Environment>;
1155
+ update(request: {
1156
+ /** V1 error format. */
1157
+ "$.xgafv"?: string;
1158
+ /** OAuth access token. */
1159
+ access_token?: string;
1160
+ /** The GTM Account ID. */
1161
+ accountId: string;
1162
+ /** Data format for response. */
1163
+ alt?: string;
1164
+ /** JSONP */
1165
+ callback?: string;
1166
+ /** The GTM Container ID. */
1167
+ containerId: string;
1168
+ /** The GTM Environment ID. */
1169
+ environmentId: string;
1170
+ /** Selector specifying which fields to include in a partial response. */
1171
+ fields?: string;
1172
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1173
+ key?: string;
1174
+ /** OAuth 2.0 token for the current user. */
1175
+ oauth_token?: string;
1176
+ /** Returns response with indentations and line breaks. */
1177
+ prettyPrint?: boolean;
1178
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1179
+ quotaUser?: string;
1180
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1181
+ upload_protocol?: string;
1182
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1183
+ uploadType?: string;
1184
+ },
1185
+ body: Environment): Request<Environment>;
1186
+ }
1187
+ interface TagsResource {
1188
+ /** Creates a GTM Tag. */
1189
+ create(request: {
1190
+ /** V1 error format. */
1191
+ "$.xgafv"?: string;
1192
+ /** OAuth access token. */
1193
+ access_token?: string;
1194
+ /** The GTM Account ID. */
1195
+ accountId: string;
1196
+ /** Data format for response. */
1197
+ alt?: string;
1198
+ /** JSONP */
1199
+ callback?: string;
1200
+ /** The GTM Container ID. */
1201
+ containerId: string;
1202
+ /** Selector specifying which fields to include in a partial response. */
1203
+ fields?: string;
1204
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1205
+ key?: string;
1206
+ /** OAuth 2.0 token for the current user. */
1207
+ oauth_token?: string;
1208
+ /** Returns response with indentations and line breaks. */
1209
+ prettyPrint?: boolean;
1210
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1211
+ quotaUser?: string;
1212
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1213
+ upload_protocol?: string;
1214
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1215
+ uploadType?: string;
1216
+ /** Request body */
1217
+ resource: Tag;
1218
+ }): Request<Tag>;
1219
+ create(request: {
1220
+ /** V1 error format. */
1221
+ "$.xgafv"?: string;
1222
+ /** OAuth access token. */
1223
+ access_token?: string;
1224
+ /** The GTM Account ID. */
1225
+ accountId: string;
1226
+ /** Data format for response. */
1227
+ alt?: string;
1228
+ /** JSONP */
1229
+ callback?: string;
1230
+ /** The GTM Container ID. */
1231
+ containerId: string;
1232
+ /** Selector specifying which fields to include in a partial response. */
1233
+ fields?: string;
1234
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1235
+ key?: string;
1236
+ /** OAuth 2.0 token for the current user. */
1237
+ oauth_token?: string;
1238
+ /** Returns response with indentations and line breaks. */
1239
+ prettyPrint?: boolean;
1240
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1241
+ quotaUser?: string;
1242
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1243
+ upload_protocol?: string;
1244
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1245
+ uploadType?: string;
1246
+ },
1247
+ body: Tag): Request<Tag>;
1248
+ /** Deletes a GTM Tag. */
1249
+ delete(request?: {
1250
+ /** V1 error format. */
1251
+ "$.xgafv"?: string;
1252
+ /** OAuth access token. */
1253
+ access_token?: string;
1254
+ /** The GTM Account ID. */
1255
+ accountId: string;
1256
+ /** Data format for response. */
1257
+ alt?: string;
1258
+ /** JSONP */
1259
+ callback?: string;
1260
+ /** The GTM Container ID. */
1261
+ containerId: string;
1262
+ /** Selector specifying which fields to include in a partial response. */
1263
+ fields?: string;
1264
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1265
+ key?: string;
1266
+ /** OAuth 2.0 token for the current user. */
1267
+ oauth_token?: string;
1268
+ /** Returns response with indentations and line breaks. */
1269
+ prettyPrint?: boolean;
1270
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1271
+ quotaUser?: string;
1272
+ /** The GTM Tag ID. */
1273
+ tagId: string;
1274
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1275
+ upload_protocol?: string;
1276
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1277
+ uploadType?: string;
1278
+ }): Request<void>;
1279
+ /** Gets a GTM Tag. */
1280
+ get(request?: {
1281
+ /** V1 error format. */
1282
+ "$.xgafv"?: string;
1283
+ /** OAuth access token. */
1284
+ access_token?: string;
1285
+ /** The GTM Account ID. */
1286
+ accountId: string;
1287
+ /** Data format for response. */
1288
+ alt?: string;
1289
+ /** JSONP */
1290
+ callback?: string;
1291
+ /** The GTM Container ID. */
1292
+ containerId: string;
1293
+ /** Selector specifying which fields to include in a partial response. */
1294
+ fields?: string;
1295
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1296
+ key?: string;
1297
+ /** OAuth 2.0 token for the current user. */
1298
+ oauth_token?: string;
1299
+ /** Returns response with indentations and line breaks. */
1300
+ prettyPrint?: boolean;
1301
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1302
+ quotaUser?: string;
1303
+ /** The GTM Tag ID. */
1304
+ tagId: string;
1305
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1306
+ upload_protocol?: string;
1307
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1308
+ uploadType?: string;
1309
+ }): Request<Tag>;
1310
+ /** Lists all GTM Tags of a Container. */
1311
+ list(request?: {
1312
+ /** V1 error format. */
1313
+ "$.xgafv"?: string;
1314
+ /** OAuth access token. */
1315
+ access_token?: string;
1316
+ /** The GTM Account ID. */
1317
+ accountId: string;
1318
+ /** Data format for response. */
1319
+ alt?: string;
1320
+ /** JSONP */
1321
+ callback?: string;
1322
+ /** The GTM Container ID. */
1323
+ containerId: string;
1324
+ /** Selector specifying which fields to include in a partial response. */
1325
+ fields?: string;
1326
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1327
+ key?: string;
1328
+ /** OAuth 2.0 token for the current user. */
1329
+ oauth_token?: string;
1330
+ /** Returns response with indentations and line breaks. */
1331
+ prettyPrint?: boolean;
1332
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1333
+ quotaUser?: string;
1334
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1335
+ upload_protocol?: string;
1336
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1337
+ uploadType?: string;
1338
+ }): Request<ListTagsResponse>;
1339
+ /** Updates a GTM Tag. */
1340
+ update(request: {
1341
+ /** V1 error format. */
1342
+ "$.xgafv"?: string;
1343
+ /** OAuth access token. */
1344
+ access_token?: string;
1345
+ /** The GTM Account ID. */
1346
+ accountId: string;
1347
+ /** Data format for response. */
1348
+ alt?: string;
1349
+ /** JSONP */
1350
+ callback?: string;
1351
+ /** The GTM Container ID. */
1352
+ containerId: string;
1353
+ /** Selector specifying which fields to include in a partial response. */
1354
+ fields?: string;
1355
+ /** When provided, this fingerprint must match the fingerprint of the tag in storage. */
1356
+ fingerprint?: string;
1357
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1358
+ key?: string;
1359
+ /** OAuth 2.0 token for the current user. */
1360
+ oauth_token?: string;
1361
+ /** Returns response with indentations and line breaks. */
1362
+ prettyPrint?: boolean;
1363
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1364
+ quotaUser?: string;
1365
+ /** The GTM Tag ID. */
1366
+ tagId: string;
1367
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1368
+ upload_protocol?: string;
1369
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1370
+ uploadType?: string;
1371
+ /** Request body */
1372
+ resource: Tag;
1373
+ }): Request<Tag>;
1374
+ update(request: {
1375
+ /** V1 error format. */
1376
+ "$.xgafv"?: string;
1377
+ /** OAuth access token. */
1378
+ access_token?: string;
1379
+ /** The GTM Account ID. */
1380
+ accountId: string;
1381
+ /** Data format for response. */
1382
+ alt?: string;
1383
+ /** JSONP */
1384
+ callback?: string;
1385
+ /** The GTM Container ID. */
1386
+ containerId: string;
1387
+ /** Selector specifying which fields to include in a partial response. */
1388
+ fields?: string;
1389
+ /** When provided, this fingerprint must match the fingerprint of the tag in storage. */
1390
+ fingerprint?: string;
1391
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1392
+ key?: string;
1393
+ /** OAuth 2.0 token for the current user. */
1394
+ oauth_token?: string;
1395
+ /** Returns response with indentations and line breaks. */
1396
+ prettyPrint?: boolean;
1397
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1398
+ quotaUser?: string;
1399
+ /** The GTM Tag ID. */
1400
+ tagId: string;
1401
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1402
+ upload_protocol?: string;
1403
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1404
+ uploadType?: string;
1405
+ },
1406
+ body: Tag): Request<Tag>;
1407
+ }
1408
+ interface TriggersResource {
1409
+ /** Creates a GTM Trigger. */
1410
+ create(request: {
1411
+ /** V1 error format. */
1412
+ "$.xgafv"?: string;
1413
+ /** OAuth access token. */
1414
+ access_token?: string;
1415
+ /** The GTM Account ID. */
1416
+ accountId: string;
1417
+ /** Data format for response. */
1418
+ alt?: string;
1419
+ /** JSONP */
1420
+ callback?: string;
1421
+ /** The GTM Container ID. */
1422
+ containerId: string;
1423
+ /** Selector specifying which fields to include in a partial response. */
1424
+ fields?: string;
1425
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1426
+ key?: string;
1427
+ /** OAuth 2.0 token for the current user. */
1428
+ oauth_token?: string;
1429
+ /** Returns response with indentations and line breaks. */
1430
+ prettyPrint?: boolean;
1431
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1432
+ quotaUser?: string;
1433
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1434
+ upload_protocol?: string;
1435
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1436
+ uploadType?: string;
1437
+ /** Request body */
1438
+ resource: Trigger;
1439
+ }): Request<Trigger>;
1440
+ create(request: {
1441
+ /** V1 error format. */
1442
+ "$.xgafv"?: string;
1443
+ /** OAuth access token. */
1444
+ access_token?: string;
1445
+ /** The GTM Account ID. */
1446
+ accountId: string;
1447
+ /** Data format for response. */
1448
+ alt?: string;
1449
+ /** JSONP */
1450
+ callback?: string;
1451
+ /** The GTM Container ID. */
1452
+ containerId: string;
1453
+ /** Selector specifying which fields to include in a partial response. */
1454
+ fields?: string;
1455
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1456
+ key?: string;
1457
+ /** OAuth 2.0 token for the current user. */
1458
+ oauth_token?: string;
1459
+ /** Returns response with indentations and line breaks. */
1460
+ prettyPrint?: boolean;
1461
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1462
+ quotaUser?: string;
1463
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1464
+ upload_protocol?: string;
1465
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1466
+ uploadType?: string;
1467
+ },
1468
+ body: Trigger): Request<Trigger>;
1469
+ /** Deletes a GTM Trigger. */
1470
+ delete(request?: {
1471
+ /** V1 error format. */
1472
+ "$.xgafv"?: string;
1473
+ /** OAuth access token. */
1474
+ access_token?: string;
1475
+ /** The GTM Account ID. */
1476
+ accountId: string;
1477
+ /** Data format for response. */
1478
+ alt?: string;
1479
+ /** JSONP */
1480
+ callback?: string;
1481
+ /** The GTM Container ID. */
1482
+ containerId: string;
1483
+ /** Selector specifying which fields to include in a partial response. */
1484
+ fields?: string;
1485
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1486
+ key?: string;
1487
+ /** OAuth 2.0 token for the current user. */
1488
+ oauth_token?: string;
1489
+ /** Returns response with indentations and line breaks. */
1490
+ prettyPrint?: boolean;
1491
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1492
+ quotaUser?: string;
1493
+ /** The GTM Trigger ID. */
1494
+ triggerId: string;
1495
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1496
+ upload_protocol?: string;
1497
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1498
+ uploadType?: string;
1499
+ }): Request<void>;
1500
+ /** Gets a GTM Trigger. */
1501
+ get(request?: {
1502
+ /** V1 error format. */
1503
+ "$.xgafv"?: string;
1504
+ /** OAuth access token. */
1505
+ access_token?: string;
1506
+ /** The GTM Account ID. */
1507
+ accountId: string;
1508
+ /** Data format for response. */
1509
+ alt?: string;
1510
+ /** JSONP */
1511
+ callback?: string;
1512
+ /** The GTM Container ID. */
1513
+ containerId: string;
1514
+ /** Selector specifying which fields to include in a partial response. */
1515
+ fields?: string;
1516
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1517
+ key?: string;
1518
+ /** OAuth 2.0 token for the current user. */
1519
+ oauth_token?: string;
1520
+ /** Returns response with indentations and line breaks. */
1521
+ prettyPrint?: boolean;
1522
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1523
+ quotaUser?: string;
1524
+ /** The GTM Trigger ID. */
1525
+ triggerId: string;
1526
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1527
+ upload_protocol?: string;
1528
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1529
+ uploadType?: string;
1530
+ }): Request<Trigger>;
1531
+ /** Lists all GTM Triggers of a Container. */
1532
+ list(request?: {
1533
+ /** V1 error format. */
1534
+ "$.xgafv"?: string;
1535
+ /** OAuth access token. */
1536
+ access_token?: string;
1537
+ /** The GTM Account ID. */
1538
+ accountId: string;
1539
+ /** Data format for response. */
1540
+ alt?: string;
1541
+ /** JSONP */
1542
+ callback?: string;
1543
+ /** The GTM Container ID. */
1544
+ containerId: string;
1545
+ /** Selector specifying which fields to include in a partial response. */
1546
+ fields?: string;
1547
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1548
+ key?: string;
1549
+ /** OAuth 2.0 token for the current user. */
1550
+ oauth_token?: string;
1551
+ /** Returns response with indentations and line breaks. */
1552
+ prettyPrint?: boolean;
1553
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1554
+ quotaUser?: string;
1555
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1556
+ upload_protocol?: string;
1557
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1558
+ uploadType?: string;
1559
+ }): Request<ListTriggersResponse>;
1560
+ /** Updates a GTM Trigger. */
1561
+ update(request: {
1562
+ /** V1 error format. */
1563
+ "$.xgafv"?: string;
1564
+ /** OAuth access token. */
1565
+ access_token?: string;
1566
+ /** The GTM Account ID. */
1567
+ accountId: string;
1568
+ /** Data format for response. */
1569
+ alt?: string;
1570
+ /** JSONP */
1571
+ callback?: string;
1572
+ /** The GTM Container ID. */
1573
+ containerId: string;
1574
+ /** Selector specifying which fields to include in a partial response. */
1575
+ fields?: string;
1576
+ /** When provided, this fingerprint must match the fingerprint of the trigger in storage. */
1577
+ fingerprint?: string;
1578
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1579
+ key?: string;
1580
+ /** OAuth 2.0 token for the current user. */
1581
+ oauth_token?: string;
1582
+ /** Returns response with indentations and line breaks. */
1583
+ prettyPrint?: boolean;
1584
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1585
+ quotaUser?: string;
1586
+ /** The GTM Trigger ID. */
1587
+ triggerId: string;
1588
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1589
+ upload_protocol?: string;
1590
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1591
+ uploadType?: string;
1592
+ /** Request body */
1593
+ resource: Trigger;
1594
+ }): Request<Trigger>;
1595
+ update(request: {
1596
+ /** V1 error format. */
1597
+ "$.xgafv"?: string;
1598
+ /** OAuth access token. */
1599
+ access_token?: string;
1600
+ /** The GTM Account ID. */
1601
+ accountId: string;
1602
+ /** Data format for response. */
1603
+ alt?: string;
1604
+ /** JSONP */
1605
+ callback?: string;
1606
+ /** The GTM Container ID. */
1607
+ containerId: string;
1608
+ /** Selector specifying which fields to include in a partial response. */
1609
+ fields?: string;
1610
+ /** When provided, this fingerprint must match the fingerprint of the trigger in storage. */
1611
+ fingerprint?: string;
1612
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1613
+ key?: string;
1614
+ /** OAuth 2.0 token for the current user. */
1615
+ oauth_token?: string;
1616
+ /** Returns response with indentations and line breaks. */
1617
+ prettyPrint?: boolean;
1618
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1619
+ quotaUser?: string;
1620
+ /** The GTM Trigger ID. */
1621
+ triggerId: string;
1622
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1623
+ upload_protocol?: string;
1624
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1625
+ uploadType?: string;
1626
+ },
1627
+ body: Trigger): Request<Trigger>;
1628
+ }
1629
+ interface VariablesResource {
1630
+ /** Creates a GTM Variable. */
1631
+ create(request: {
1632
+ /** V1 error format. */
1633
+ "$.xgafv"?: string;
1634
+ /** OAuth access token. */
1635
+ access_token?: string;
1636
+ /** The GTM Account ID. */
1637
+ accountId: string;
1638
+ /** Data format for response. */
1639
+ alt?: string;
1640
+ /** JSONP */
1641
+ callback?: string;
1642
+ /** The GTM Container ID. */
1643
+ containerId: string;
1644
+ /** Selector specifying which fields to include in a partial response. */
1645
+ fields?: string;
1646
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1647
+ key?: string;
1648
+ /** OAuth 2.0 token for the current user. */
1649
+ oauth_token?: string;
1650
+ /** Returns response with indentations and line breaks. */
1651
+ prettyPrint?: boolean;
1652
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1653
+ quotaUser?: string;
1654
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1655
+ upload_protocol?: string;
1656
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1657
+ uploadType?: string;
1658
+ /** Request body */
1659
+ resource: Variable;
1660
+ }): Request<Variable>;
1661
+ create(request: {
1662
+ /** V1 error format. */
1663
+ "$.xgafv"?: string;
1664
+ /** OAuth access token. */
1665
+ access_token?: string;
1666
+ /** The GTM Account ID. */
1667
+ accountId: string;
1668
+ /** Data format for response. */
1669
+ alt?: string;
1670
+ /** JSONP */
1671
+ callback?: string;
1672
+ /** The GTM Container ID. */
1673
+ containerId: string;
1674
+ /** Selector specifying which fields to include in a partial response. */
1675
+ fields?: string;
1676
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1677
+ key?: string;
1678
+ /** OAuth 2.0 token for the current user. */
1679
+ oauth_token?: string;
1680
+ /** Returns response with indentations and line breaks. */
1681
+ prettyPrint?: boolean;
1682
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1683
+ quotaUser?: string;
1684
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1685
+ upload_protocol?: string;
1686
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1687
+ uploadType?: string;
1688
+ },
1689
+ body: Variable): Request<Variable>;
1690
+ /** Deletes a GTM Variable. */
1691
+ delete(request?: {
1692
+ /** V1 error format. */
1693
+ "$.xgafv"?: string;
1694
+ /** OAuth access token. */
1695
+ access_token?: string;
1696
+ /** The GTM Account ID. */
1697
+ accountId: string;
1698
+ /** Data format for response. */
1699
+ alt?: string;
1700
+ /** JSONP */
1701
+ callback?: string;
1702
+ /** The GTM Container ID. */
1703
+ containerId: string;
1704
+ /** Selector specifying which fields to include in a partial response. */
1705
+ fields?: string;
1706
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1707
+ key?: string;
1708
+ /** OAuth 2.0 token for the current user. */
1709
+ oauth_token?: string;
1710
+ /** Returns response with indentations and line breaks. */
1711
+ prettyPrint?: boolean;
1712
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1713
+ quotaUser?: string;
1714
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1715
+ upload_protocol?: string;
1716
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1717
+ uploadType?: string;
1718
+ /** The GTM Variable ID. */
1719
+ variableId: string;
1720
+ }): Request<void>;
1721
+ /** Gets a GTM Variable. */
1722
+ get(request?: {
1723
+ /** V1 error format. */
1724
+ "$.xgafv"?: string;
1725
+ /** OAuth access token. */
1726
+ access_token?: string;
1727
+ /** The GTM Account ID. */
1728
+ accountId: string;
1729
+ /** Data format for response. */
1730
+ alt?: string;
1731
+ /** JSONP */
1732
+ callback?: string;
1733
+ /** The GTM Container ID. */
1734
+ containerId: string;
1735
+ /** Selector specifying which fields to include in a partial response. */
1736
+ fields?: string;
1737
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1738
+ key?: string;
1739
+ /** OAuth 2.0 token for the current user. */
1740
+ oauth_token?: string;
1741
+ /** Returns response with indentations and line breaks. */
1742
+ prettyPrint?: boolean;
1743
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1744
+ quotaUser?: string;
1745
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1746
+ upload_protocol?: string;
1747
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1748
+ uploadType?: string;
1749
+ /** The GTM Variable ID. */
1750
+ variableId: string;
1751
+ }): Request<Variable>;
1752
+ /** Lists all GTM Variables of a Container. */
1753
+ list(request?: {
1754
+ /** V1 error format. */
1755
+ "$.xgafv"?: string;
1756
+ /** OAuth access token. */
1757
+ access_token?: string;
1758
+ /** The GTM Account ID. */
1759
+ accountId: string;
1760
+ /** Data format for response. */
1761
+ alt?: string;
1762
+ /** JSONP */
1763
+ callback?: string;
1764
+ /** The GTM Container ID. */
1765
+ containerId: string;
1766
+ /** Selector specifying which fields to include in a partial response. */
1767
+ fields?: string;
1768
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1769
+ key?: string;
1770
+ /** OAuth 2.0 token for the current user. */
1771
+ oauth_token?: string;
1772
+ /** Returns response with indentations and line breaks. */
1773
+ prettyPrint?: boolean;
1774
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1775
+ quotaUser?: string;
1776
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1777
+ upload_protocol?: string;
1778
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1779
+ uploadType?: string;
1780
+ }): Request<ListVariablesResponse>;
1781
+ /** Updates a GTM Variable. */
1782
+ update(request: {
1783
+ /** V1 error format. */
1784
+ "$.xgafv"?: string;
1785
+ /** OAuth access token. */
1786
+ access_token?: string;
1787
+ /** The GTM Account ID. */
1788
+ accountId: string;
1789
+ /** Data format for response. */
1790
+ alt?: string;
1791
+ /** JSONP */
1792
+ callback?: string;
1793
+ /** The GTM Container ID. */
1794
+ containerId: string;
1795
+ /** Selector specifying which fields to include in a partial response. */
1796
+ fields?: string;
1797
+ /** When provided, this fingerprint must match the fingerprint of the variable in storage. */
1798
+ fingerprint?: string;
1799
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1800
+ key?: string;
1801
+ /** OAuth 2.0 token for the current user. */
1802
+ oauth_token?: string;
1803
+ /** Returns response with indentations and line breaks. */
1804
+ prettyPrint?: boolean;
1805
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1806
+ quotaUser?: string;
1807
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1808
+ upload_protocol?: string;
1809
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1810
+ uploadType?: string;
1811
+ /** The GTM Variable ID. */
1812
+ variableId: string;
1813
+ /** Request body */
1814
+ resource: Variable;
1815
+ }): Request<Variable>;
1816
+ update(request: {
1817
+ /** V1 error format. */
1818
+ "$.xgafv"?: string;
1819
+ /** OAuth access token. */
1820
+ access_token?: string;
1821
+ /** The GTM Account ID. */
1822
+ accountId: string;
1823
+ /** Data format for response. */
1824
+ alt?: string;
1825
+ /** JSONP */
1826
+ callback?: string;
1827
+ /** The GTM Container ID. */
1828
+ containerId: string;
1829
+ /** Selector specifying which fields to include in a partial response. */
1830
+ fields?: string;
1831
+ /** When provided, this fingerprint must match the fingerprint of the variable in storage. */
1832
+ fingerprint?: string;
1833
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1834
+ key?: string;
1835
+ /** OAuth 2.0 token for the current user. */
1836
+ oauth_token?: string;
1837
+ /** Returns response with indentations and line breaks. */
1838
+ prettyPrint?: boolean;
1839
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1840
+ quotaUser?: string;
1841
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1842
+ upload_protocol?: string;
1843
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1844
+ uploadType?: string;
1845
+ /** The GTM Variable ID. */
1846
+ variableId: string;
1847
+ },
1848
+ body: Variable): Request<Variable>;
1849
+ }
1850
+ interface VersionsResource {
1851
+ /** Creates a Container Version. */
1852
+ create(request: {
1853
+ /** V1 error format. */
1854
+ "$.xgafv"?: string;
1855
+ /** OAuth access token. */
1856
+ access_token?: string;
1857
+ /** The GTM Account ID. */
1858
+ accountId: string;
1859
+ /** Data format for response. */
1860
+ alt?: string;
1861
+ /** JSONP */
1862
+ callback?: string;
1863
+ /** The GTM Container ID. */
1864
+ containerId: string;
1865
+ /** Selector specifying which fields to include in a partial response. */
1866
+ fields?: string;
1867
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1868
+ key?: string;
1869
+ /** OAuth 2.0 token for the current user. */
1870
+ oauth_token?: string;
1871
+ /** Returns response with indentations and line breaks. */
1872
+ prettyPrint?: boolean;
1873
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1874
+ quotaUser?: string;
1875
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1876
+ upload_protocol?: string;
1877
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1878
+ uploadType?: string;
1879
+ /** Request body */
1880
+ resource: CreateContainerVersionRequestVersionOptions;
1881
+ }): Request<CreateContainerVersionResponse>;
1882
+ create(request: {
1883
+ /** V1 error format. */
1884
+ "$.xgafv"?: string;
1885
+ /** OAuth access token. */
1886
+ access_token?: string;
1887
+ /** The GTM Account ID. */
1888
+ accountId: string;
1889
+ /** Data format for response. */
1890
+ alt?: string;
1891
+ /** JSONP */
1892
+ callback?: string;
1893
+ /** The GTM Container ID. */
1894
+ containerId: string;
1895
+ /** Selector specifying which fields to include in a partial response. */
1896
+ fields?: string;
1897
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1898
+ key?: string;
1899
+ /** OAuth 2.0 token for the current user. */
1900
+ oauth_token?: string;
1901
+ /** Returns response with indentations and line breaks. */
1902
+ prettyPrint?: boolean;
1903
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1904
+ quotaUser?: string;
1905
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1906
+ upload_protocol?: string;
1907
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1908
+ uploadType?: string;
1909
+ },
1910
+ body: CreateContainerVersionRequestVersionOptions): Request<CreateContainerVersionResponse>;
1911
+ /** Deletes a Container Version. */
1912
+ delete(request?: {
1913
+ /** V1 error format. */
1914
+ "$.xgafv"?: string;
1915
+ /** OAuth access token. */
1916
+ access_token?: string;
1917
+ /** The GTM Account ID. */
1918
+ accountId: string;
1919
+ /** Data format for response. */
1920
+ alt?: string;
1921
+ /** JSONP */
1922
+ callback?: string;
1923
+ /** The GTM Container ID. */
1924
+ containerId: string;
1925
+ /** The GTM Container Version ID. */
1926
+ containerVersionId: string;
1927
+ /** Selector specifying which fields to include in a partial response. */
1928
+ fields?: string;
1929
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1930
+ key?: string;
1931
+ /** OAuth 2.0 token for the current user. */
1932
+ oauth_token?: string;
1933
+ /** Returns response with indentations and line breaks. */
1934
+ prettyPrint?: boolean;
1935
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1936
+ quotaUser?: string;
1937
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1938
+ upload_protocol?: string;
1939
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1940
+ uploadType?: string;
1941
+ }): Request<void>;
1942
+ /** Gets a Container Version. */
1943
+ get(request?: {
1944
+ /** V1 error format. */
1945
+ "$.xgafv"?: string;
1946
+ /** OAuth access token. */
1947
+ access_token?: string;
1948
+ /** The GTM Account ID. */
1949
+ accountId: string;
1950
+ /** Data format for response. */
1951
+ alt?: string;
1952
+ /** JSONP */
1953
+ callback?: string;
1954
+ /** The GTM Container ID. */
1955
+ containerId: string;
1956
+ /** The GTM Container Version ID. Specify published to retrieve the currently published version. */
1957
+ containerVersionId: string;
1958
+ /** Selector specifying which fields to include in a partial response. */
1959
+ fields?: string;
1960
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1961
+ key?: string;
1962
+ /** OAuth 2.0 token for the current user. */
1963
+ oauth_token?: string;
1964
+ /** Returns response with indentations and line breaks. */
1965
+ prettyPrint?: boolean;
1966
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1967
+ quotaUser?: string;
1968
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1969
+ upload_protocol?: string;
1970
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1971
+ uploadType?: string;
1972
+ }): Request<ContainerVersion>;
1973
+ /** Lists all Container Versions of a GTM Container. */
1974
+ list(request?: {
1975
+ /** V1 error format. */
1976
+ "$.xgafv"?: string;
1977
+ /** OAuth access token. */
1978
+ access_token?: string;
1979
+ /** The GTM Account ID. */
1980
+ accountId: string;
1981
+ /** Data format for response. */
1982
+ alt?: string;
1983
+ /** JSONP */
1984
+ callback?: string;
1985
+ /** The GTM Container ID. */
1986
+ containerId: string;
1987
+ /** Selector specifying which fields to include in a partial response. */
1988
+ fields?: string;
1989
+ /** Retrieve headers only when true. */
1990
+ headers?: boolean;
1991
+ /** Also retrieve deleted (archived) versions when true. */
1992
+ includeDeleted?: boolean;
1993
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1994
+ key?: string;
1995
+ /** OAuth 2.0 token for the current user. */
1996
+ oauth_token?: string;
1997
+ /** Returns response with indentations and line breaks. */
1998
+ prettyPrint?: boolean;
1999
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2000
+ quotaUser?: string;
2001
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2002
+ upload_protocol?: string;
2003
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2004
+ uploadType?: string;
2005
+ }): Request<ListContainerVersionsResponse>;
2006
+ /** Publishes a Container Version. */
2007
+ publish(request?: {
2008
+ /** V1 error format. */
2009
+ "$.xgafv"?: string;
2010
+ /** OAuth access token. */
2011
+ access_token?: string;
2012
+ /** The GTM Account ID. */
2013
+ accountId: string;
2014
+ /** Data format for response. */
2015
+ alt?: string;
2016
+ /** JSONP */
2017
+ callback?: string;
2018
+ /** The GTM Container ID. */
2019
+ containerId: string;
2020
+ /** The GTM Container Version ID. */
2021
+ containerVersionId: string;
2022
+ /** Selector specifying which fields to include in a partial response. */
2023
+ fields?: string;
2024
+ /** When provided, this fingerprint must match the fingerprint of the container version in storage. */
2025
+ fingerprint?: string;
2026
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2027
+ key?: string;
2028
+ /** OAuth 2.0 token for the current user. */
2029
+ oauth_token?: string;
2030
+ /** Returns response with indentations and line breaks. */
2031
+ prettyPrint?: boolean;
2032
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2033
+ quotaUser?: string;
2034
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2035
+ upload_protocol?: string;
2036
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2037
+ uploadType?: string;
2038
+ }): Request<PublishContainerVersionResponse>;
2039
+ /**
2040
+ * Restores a Container Version. This will overwrite the container's current configuration (including its variables, triggers and tags). The operation will not have any effect on the
2041
+ * version that is being served (i.e. the published version).
2042
+ */
2043
+ restore(request?: {
2044
+ /** V1 error format. */
2045
+ "$.xgafv"?: string;
2046
+ /** OAuth access token. */
2047
+ access_token?: string;
2048
+ /** The GTM Account ID. */
2049
+ accountId: string;
2050
+ /** Data format for response. */
2051
+ alt?: string;
2052
+ /** JSONP */
2053
+ callback?: string;
2054
+ /** The GTM Container ID. */
2055
+ containerId: string;
2056
+ /** The GTM Container Version ID. */
2057
+ containerVersionId: string;
2058
+ /** Selector specifying which fields to include in a partial response. */
2059
+ fields?: string;
2060
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2061
+ key?: string;
2062
+ /** OAuth 2.0 token for the current user. */
2063
+ oauth_token?: string;
2064
+ /** Returns response with indentations and line breaks. */
2065
+ prettyPrint?: boolean;
2066
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2067
+ quotaUser?: string;
2068
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2069
+ upload_protocol?: string;
2070
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2071
+ uploadType?: string;
2072
+ }): Request<ContainerVersion>;
2073
+ /** Undeletes a Container Version. */
2074
+ undelete(request?: {
2075
+ /** V1 error format. */
2076
+ "$.xgafv"?: string;
2077
+ /** OAuth access token. */
2078
+ access_token?: string;
2079
+ /** The GTM Account ID. */
2080
+ accountId: string;
2081
+ /** Data format for response. */
2082
+ alt?: string;
2083
+ /** JSONP */
2084
+ callback?: string;
2085
+ /** The GTM Container ID. */
2086
+ containerId: string;
2087
+ /** The GTM Container Version ID. */
2088
+ containerVersionId: string;
2089
+ /** Selector specifying which fields to include in a partial response. */
2090
+ fields?: string;
2091
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2092
+ key?: string;
2093
+ /** OAuth 2.0 token for the current user. */
2094
+ oauth_token?: string;
2095
+ /** Returns response with indentations and line breaks. */
2096
+ prettyPrint?: boolean;
2097
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2098
+ quotaUser?: string;
2099
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2100
+ upload_protocol?: string;
2101
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2102
+ uploadType?: string;
2103
+ }): Request<ContainerVersion>;
2104
+ /** Updates a Container Version. */
2105
+ update(request: {
2106
+ /** V1 error format. */
2107
+ "$.xgafv"?: string;
2108
+ /** OAuth access token. */
2109
+ access_token?: string;
2110
+ /** The GTM Account ID. */
2111
+ accountId: string;
2112
+ /** Data format for response. */
2113
+ alt?: string;
2114
+ /** JSONP */
2115
+ callback?: string;
2116
+ /** The GTM Container ID. */
2117
+ containerId: string;
2118
+ /** The GTM Container Version ID. */
2119
+ containerVersionId: string;
2120
+ /** Selector specifying which fields to include in a partial response. */
2121
+ fields?: string;
2122
+ /** When provided, this fingerprint must match the fingerprint of the container version in storage. */
2123
+ fingerprint?: string;
2124
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2125
+ key?: string;
2126
+ /** OAuth 2.0 token for the current user. */
2127
+ oauth_token?: string;
2128
+ /** Returns response with indentations and line breaks. */
2129
+ prettyPrint?: boolean;
2130
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2131
+ quotaUser?: string;
2132
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2133
+ upload_protocol?: string;
2134
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2135
+ uploadType?: string;
2136
+ /** Request body */
2137
+ resource: ContainerVersion;
2138
+ }): Request<ContainerVersion>;
2139
+ update(request: {
2140
+ /** V1 error format. */
2141
+ "$.xgafv"?: string;
2142
+ /** OAuth access token. */
2143
+ access_token?: string;
2144
+ /** The GTM Account ID. */
2145
+ accountId: string;
2146
+ /** Data format for response. */
2147
+ alt?: string;
2148
+ /** JSONP */
2149
+ callback?: string;
2150
+ /** The GTM Container ID. */
2151
+ containerId: string;
2152
+ /** The GTM Container Version ID. */
2153
+ containerVersionId: string;
2154
+ /** Selector specifying which fields to include in a partial response. */
2155
+ fields?: string;
2156
+ /** When provided, this fingerprint must match the fingerprint of the container version in storage. */
2157
+ fingerprint?: string;
2158
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2159
+ key?: string;
2160
+ /** OAuth 2.0 token for the current user. */
2161
+ oauth_token?: string;
2162
+ /** Returns response with indentations and line breaks. */
2163
+ prettyPrint?: boolean;
2164
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2165
+ quotaUser?: string;
2166
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2167
+ upload_protocol?: string;
2168
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2169
+ uploadType?: string;
2170
+ },
2171
+ body: ContainerVersion): Request<ContainerVersion>;
2172
+ }
2173
+ interface ContainersResource {
2174
+ /** Creates a Container. */
2175
+ create(request: {
2176
+ /** V1 error format. */
2177
+ "$.xgafv"?: string;
2178
+ /** OAuth access token. */
2179
+ access_token?: string;
2180
+ /** The GTM Account ID. */
2181
+ accountId: string;
2182
+ /** Data format for response. */
2183
+ alt?: string;
2184
+ /** JSONP */
2185
+ callback?: string;
2186
+ /** Selector specifying which fields to include in a partial response. */
2187
+ fields?: string;
2188
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2189
+ key?: string;
2190
+ /** OAuth 2.0 token for the current user. */
2191
+ oauth_token?: string;
2192
+ /** Returns response with indentations and line breaks. */
2193
+ prettyPrint?: boolean;
2194
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2195
+ quotaUser?: string;
2196
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2197
+ upload_protocol?: string;
2198
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2199
+ uploadType?: string;
2200
+ /** Request body */
2201
+ resource: Container;
2202
+ }): Request<Container>;
2203
+ create(request: {
2204
+ /** V1 error format. */
2205
+ "$.xgafv"?: string;
2206
+ /** OAuth access token. */
2207
+ access_token?: string;
2208
+ /** The GTM Account ID. */
2209
+ accountId: string;
2210
+ /** Data format for response. */
2211
+ alt?: string;
2212
+ /** JSONP */
2213
+ callback?: string;
2214
+ /** Selector specifying which fields to include in a partial response. */
2215
+ fields?: string;
2216
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2217
+ key?: string;
2218
+ /** OAuth 2.0 token for the current user. */
2219
+ oauth_token?: string;
2220
+ /** Returns response with indentations and line breaks. */
2221
+ prettyPrint?: boolean;
2222
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2223
+ quotaUser?: string;
2224
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2225
+ upload_protocol?: string;
2226
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2227
+ uploadType?: string;
2228
+ },
2229
+ body: Container): Request<Container>;
2230
+ /** Deletes a Container. */
2231
+ delete(request?: {
2232
+ /** V1 error format. */
2233
+ "$.xgafv"?: string;
2234
+ /** OAuth access token. */
2235
+ access_token?: string;
2236
+ /** The GTM Account ID. */
2237
+ accountId: string;
2238
+ /** Data format for response. */
2239
+ alt?: string;
2240
+ /** JSONP */
2241
+ callback?: string;
2242
+ /** The GTM Container ID. */
2243
+ containerId: string;
2244
+ /** Selector specifying which fields to include in a partial response. */
2245
+ fields?: string;
2246
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2247
+ key?: string;
2248
+ /** OAuth 2.0 token for the current user. */
2249
+ oauth_token?: string;
2250
+ /** Returns response with indentations and line breaks. */
2251
+ prettyPrint?: boolean;
2252
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2253
+ quotaUser?: string;
2254
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2255
+ upload_protocol?: string;
2256
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2257
+ uploadType?: string;
2258
+ }): Request<void>;
2259
+ /** Gets a Container. */
2260
+ get(request?: {
2261
+ /** V1 error format. */
2262
+ "$.xgafv"?: string;
2263
+ /** OAuth access token. */
2264
+ access_token?: string;
2265
+ /** The GTM Account ID. */
2266
+ accountId: string;
2267
+ /** Data format for response. */
2268
+ alt?: string;
2269
+ /** JSONP */
2270
+ callback?: string;
2271
+ /** The GTM Container ID. */
2272
+ containerId: string;
2273
+ /** Selector specifying which fields to include in a partial response. */
2274
+ fields?: string;
2275
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2276
+ key?: string;
2277
+ /** OAuth 2.0 token for the current user. */
2278
+ oauth_token?: string;
2279
+ /** Returns response with indentations and line breaks. */
2280
+ prettyPrint?: boolean;
2281
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2282
+ quotaUser?: string;
2283
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2284
+ upload_protocol?: string;
2285
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2286
+ uploadType?: string;
2287
+ }): Request<Container>;
2288
+ /** Lists all Containers that belongs to a GTM Account. */
2289
+ list(request?: {
2290
+ /** V1 error format. */
2291
+ "$.xgafv"?: string;
2292
+ /** OAuth access token. */
2293
+ access_token?: string;
2294
+ /** The GTM Account ID. */
2295
+ accountId: string;
2296
+ /** Data format for response. */
2297
+ alt?: string;
2298
+ /** JSONP */
2299
+ callback?: string;
2300
+ /** Selector specifying which fields to include in a partial response. */
2301
+ fields?: string;
2302
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2303
+ key?: string;
2304
+ /** OAuth 2.0 token for the current user. */
2305
+ oauth_token?: string;
2306
+ /** Returns response with indentations and line breaks. */
2307
+ prettyPrint?: boolean;
2308
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2309
+ quotaUser?: string;
2310
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2311
+ upload_protocol?: string;
2312
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2313
+ uploadType?: string;
2314
+ }): Request<ListContainersResponse>;
2315
+ /** Updates a Container. */
2316
+ update(request: {
2317
+ /** V1 error format. */
2318
+ "$.xgafv"?: string;
2319
+ /** OAuth access token. */
2320
+ access_token?: string;
2321
+ /** The GTM Account ID. */
2322
+ accountId: string;
2323
+ /** Data format for response. */
2324
+ alt?: string;
2325
+ /** JSONP */
2326
+ callback?: string;
2327
+ /** The GTM Container ID. */
2328
+ containerId: string;
2329
+ /** Selector specifying which fields to include in a partial response. */
2330
+ fields?: string;
2331
+ /** When provided, this fingerprint must match the fingerprint of the container in storage. */
2332
+ fingerprint?: string;
2333
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2334
+ key?: string;
2335
+ /** OAuth 2.0 token for the current user. */
2336
+ oauth_token?: string;
2337
+ /** Returns response with indentations and line breaks. */
2338
+ prettyPrint?: boolean;
2339
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2340
+ quotaUser?: string;
2341
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2342
+ upload_protocol?: string;
2343
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2344
+ uploadType?: string;
2345
+ /** Request body */
2346
+ resource: Container;
2347
+ }): Request<Container>;
2348
+ update(request: {
2349
+ /** V1 error format. */
2350
+ "$.xgafv"?: string;
2351
+ /** OAuth access token. */
2352
+ access_token?: string;
2353
+ /** The GTM Account ID. */
2354
+ accountId: string;
2355
+ /** Data format for response. */
2356
+ alt?: string;
2357
+ /** JSONP */
2358
+ callback?: string;
2359
+ /** The GTM Container ID. */
2360
+ containerId: string;
2361
+ /** Selector specifying which fields to include in a partial response. */
2362
+ fields?: string;
2363
+ /** When provided, this fingerprint must match the fingerprint of the container in storage. */
2364
+ fingerprint?: string;
2365
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2366
+ key?: string;
2367
+ /** OAuth 2.0 token for the current user. */
2368
+ oauth_token?: string;
2369
+ /** Returns response with indentations and line breaks. */
2370
+ prettyPrint?: boolean;
2371
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2372
+ quotaUser?: string;
2373
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2374
+ upload_protocol?: string;
2375
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2376
+ uploadType?: string;
2377
+ },
2378
+ body: Container): Request<Container>;
2379
+ environments: EnvironmentsResource;
2380
+ folders: FoldersResource;
2381
+ move_folders: Move_foldersResource;
2382
+ reauthorize_environments: Reauthorize_environmentsResource;
2383
+ tags: TagsResource;
2384
+ triggers: TriggersResource;
2385
+ variables: VariablesResource;
2386
+ versions: VersionsResource;
2387
+ }
2388
+ interface PermissionsResource {
2389
+ /** Creates a user's Account & Container Permissions. */
2390
+ create(request: {
2391
+ /** V1 error format. */
2392
+ "$.xgafv"?: string;
2393
+ /** OAuth access token. */
2394
+ access_token?: string;
2395
+ /** The GTM Account ID. */
2396
+ accountId: string;
2397
+ /** Data format for response. */
2398
+ alt?: string;
2399
+ /** JSONP */
2400
+ callback?: string;
2401
+ /** Selector specifying which fields to include in a partial response. */
2402
+ fields?: string;
2403
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2404
+ key?: string;
2405
+ /** OAuth 2.0 token for the current user. */
2406
+ oauth_token?: string;
2407
+ /** Returns response with indentations and line breaks. */
2408
+ prettyPrint?: boolean;
2409
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2410
+ quotaUser?: string;
2411
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2412
+ upload_protocol?: string;
2413
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2414
+ uploadType?: string;
2415
+ /** Request body */
2416
+ resource: UserAccess;
2417
+ }): Request<UserAccess>;
2418
+ create(request: {
2419
+ /** V1 error format. */
2420
+ "$.xgafv"?: string;
2421
+ /** OAuth access token. */
2422
+ access_token?: string;
2423
+ /** The GTM Account ID. */
2424
+ accountId: string;
2425
+ /** Data format for response. */
2426
+ alt?: string;
2427
+ /** JSONP */
2428
+ callback?: string;
2429
+ /** Selector specifying which fields to include in a partial response. */
2430
+ fields?: string;
2431
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2432
+ key?: string;
2433
+ /** OAuth 2.0 token for the current user. */
2434
+ oauth_token?: string;
2435
+ /** Returns response with indentations and line breaks. */
2436
+ prettyPrint?: boolean;
2437
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2438
+ quotaUser?: string;
2439
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2440
+ upload_protocol?: string;
2441
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2442
+ uploadType?: string;
2443
+ },
2444
+ body: UserAccess): Request<UserAccess>;
2445
+ /** Removes a user from the account, revoking access to it and all of its containers. */
2446
+ delete(request?: {
2447
+ /** V1 error format. */
2448
+ "$.xgafv"?: string;
2449
+ /** OAuth access token. */
2450
+ access_token?: string;
2451
+ /** The GTM Account ID. */
2452
+ accountId: string;
2453
+ /** Data format for response. */
2454
+ alt?: string;
2455
+ /** JSONP */
2456
+ callback?: string;
2457
+ /** Selector specifying which fields to include in a partial response. */
2458
+ fields?: string;
2459
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2460
+ key?: string;
2461
+ /** OAuth 2.0 token for the current user. */
2462
+ oauth_token?: string;
2463
+ /** The GTM User ID. */
2464
+ permissionId: string;
2465
+ /** Returns response with indentations and line breaks. */
2466
+ prettyPrint?: boolean;
2467
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2468
+ quotaUser?: string;
2469
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2470
+ upload_protocol?: string;
2471
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2472
+ uploadType?: string;
2473
+ }): Request<void>;
2474
+ /** Gets a user's Account & Container Permissions. */
2475
+ get(request?: {
2476
+ /** V1 error format. */
2477
+ "$.xgafv"?: string;
2478
+ /** OAuth access token. */
2479
+ access_token?: string;
2480
+ /** The GTM Account ID. */
2481
+ accountId: string;
2482
+ /** Data format for response. */
2483
+ alt?: string;
2484
+ /** JSONP */
2485
+ callback?: string;
2486
+ /** Selector specifying which fields to include in a partial response. */
2487
+ fields?: string;
2488
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2489
+ key?: string;
2490
+ /** OAuth 2.0 token for the current user. */
2491
+ oauth_token?: string;
2492
+ /** The GTM User ID. */
2493
+ permissionId: string;
2494
+ /** Returns response with indentations and line breaks. */
2495
+ prettyPrint?: boolean;
2496
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2497
+ quotaUser?: string;
2498
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2499
+ upload_protocol?: string;
2500
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2501
+ uploadType?: string;
2502
+ }): Request<UserAccess>;
2503
+ /** List all users that have access to the account along with Account and Container Permissions granted to each of them. */
2504
+ list(request?: {
2505
+ /** V1 error format. */
2506
+ "$.xgafv"?: string;
2507
+ /** OAuth access token. */
2508
+ access_token?: string;
2509
+ /** The GTM Account ID. */
2510
+ accountId: string;
2511
+ /** Data format for response. */
2512
+ alt?: string;
2513
+ /** JSONP */
2514
+ callback?: string;
2515
+ /** Selector specifying which fields to include in a partial response. */
2516
+ fields?: string;
2517
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2518
+ key?: string;
2519
+ /** OAuth 2.0 token for the current user. */
2520
+ oauth_token?: string;
2521
+ /** Returns response with indentations and line breaks. */
2522
+ prettyPrint?: boolean;
2523
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2524
+ quotaUser?: string;
2525
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2526
+ upload_protocol?: string;
2527
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2528
+ uploadType?: string;
2529
+ }): Request<ListAccountUsersResponse>;
2530
+ /** Updates a user's Account & Container Permissions. */
2531
+ update(request: {
2532
+ /** V1 error format. */
2533
+ "$.xgafv"?: string;
2534
+ /** OAuth access token. */
2535
+ access_token?: string;
2536
+ /** The GTM Account ID. */
2537
+ accountId: string;
2538
+ /** Data format for response. */
2539
+ alt?: string;
2540
+ /** JSONP */
2541
+ callback?: string;
2542
+ /** Selector specifying which fields to include in a partial response. */
2543
+ fields?: string;
2544
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2545
+ key?: string;
2546
+ /** OAuth 2.0 token for the current user. */
2547
+ oauth_token?: string;
2548
+ /** The GTM User ID. */
2549
+ permissionId: string;
2550
+ /** Returns response with indentations and line breaks. */
2551
+ prettyPrint?: boolean;
2552
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2553
+ quotaUser?: string;
2554
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2555
+ upload_protocol?: string;
2556
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2557
+ uploadType?: string;
2558
+ /** Request body */
2559
+ resource: UserAccess;
2560
+ }): Request<UserAccess>;
2561
+ update(request: {
2562
+ /** V1 error format. */
2563
+ "$.xgafv"?: string;
2564
+ /** OAuth access token. */
2565
+ access_token?: string;
2566
+ /** The GTM Account ID. */
2567
+ accountId: string;
2568
+ /** Data format for response. */
2569
+ alt?: string;
2570
+ /** JSONP */
2571
+ callback?: string;
2572
+ /** Selector specifying which fields to include in a partial response. */
2573
+ fields?: string;
2574
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2575
+ key?: string;
2576
+ /** OAuth 2.0 token for the current user. */
2577
+ oauth_token?: string;
2578
+ /** The GTM User ID. */
2579
+ permissionId: string;
2580
+ /** Returns response with indentations and line breaks. */
2581
+ prettyPrint?: boolean;
2582
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2583
+ quotaUser?: string;
2584
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2585
+ upload_protocol?: string;
2586
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2587
+ uploadType?: string;
2588
+ },
2589
+ body: UserAccess): Request<UserAccess>;
2590
+ }
2591
+ interface AccountsResource {
2592
+ /** Gets a GTM Account. */
2593
+ get(request?: {
2594
+ /** V1 error format. */
2595
+ "$.xgafv"?: string;
2596
+ /** OAuth access token. */
2597
+ access_token?: string;
2598
+ /** The GTM Account ID. */
2599
+ accountId: string;
2600
+ /** Data format for response. */
2601
+ alt?: string;
2602
+ /** JSONP */
2603
+ callback?: string;
2604
+ /** Selector specifying which fields to include in a partial response. */
2605
+ fields?: string;
2606
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2607
+ key?: string;
2608
+ /** OAuth 2.0 token for the current user. */
2609
+ oauth_token?: string;
2610
+ /** Returns response with indentations and line breaks. */
2611
+ prettyPrint?: boolean;
2612
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2613
+ quotaUser?: string;
2614
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2615
+ upload_protocol?: string;
2616
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2617
+ uploadType?: string;
2618
+ }): Request<Account>;
2619
+ /** Lists all GTM Accounts that a user has access to. */
2620
+ list(request?: {
2621
+ /** V1 error format. */
2622
+ "$.xgafv"?: string;
2623
+ /** OAuth access token. */
2624
+ access_token?: string;
2625
+ /** Data format for response. */
2626
+ alt?: string;
2627
+ /** JSONP */
2628
+ callback?: string;
2629
+ /** Selector specifying which fields to include in a partial response. */
2630
+ fields?: string;
2631
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2632
+ key?: string;
2633
+ /** OAuth 2.0 token for the current user. */
2634
+ oauth_token?: string;
2635
+ /** Returns response with indentations and line breaks. */
2636
+ prettyPrint?: boolean;
2637
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2638
+ quotaUser?: string;
2639
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2640
+ upload_protocol?: string;
2641
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2642
+ uploadType?: string;
2643
+ }): Request<ListAccountsResponse>;
2644
+ /** Updates a GTM Account. */
2645
+ update(request: {
2646
+ /** V1 error format. */
2647
+ "$.xgafv"?: string;
2648
+ /** OAuth access token. */
2649
+ access_token?: string;
2650
+ /** The GTM Account ID. */
2651
+ accountId: string;
2652
+ /** Data format for response. */
2653
+ alt?: string;
2654
+ /** JSONP */
2655
+ callback?: string;
2656
+ /** Selector specifying which fields to include in a partial response. */
2657
+ fields?: string;
2658
+ /** When provided, this fingerprint must match the fingerprint of the account in storage. */
2659
+ fingerprint?: string;
2660
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2661
+ key?: string;
2662
+ /** OAuth 2.0 token for the current user. */
2663
+ oauth_token?: string;
2664
+ /** Returns response with indentations and line breaks. */
2665
+ prettyPrint?: boolean;
2666
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2667
+ quotaUser?: string;
2668
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2669
+ upload_protocol?: string;
2670
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2671
+ uploadType?: string;
2672
+ /** Request body */
2673
+ resource: Account;
2674
+ }): Request<Account>;
2675
+ update(request: {
2676
+ /** V1 error format. */
2677
+ "$.xgafv"?: string;
2678
+ /** OAuth access token. */
2679
+ access_token?: string;
2680
+ /** The GTM Account ID. */
2681
+ accountId: string;
2682
+ /** Data format for response. */
2683
+ alt?: string;
2684
+ /** JSONP */
2685
+ callback?: string;
2686
+ /** Selector specifying which fields to include in a partial response. */
2687
+ fields?: string;
2688
+ /** When provided, this fingerprint must match the fingerprint of the account in storage. */
2689
+ fingerprint?: string;
2690
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2691
+ key?: string;
2692
+ /** OAuth 2.0 token for the current user. */
2693
+ oauth_token?: string;
2694
+ /** Returns response with indentations and line breaks. */
2695
+ prettyPrint?: boolean;
2696
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2697
+ quotaUser?: string;
2698
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2699
+ upload_protocol?: string;
2700
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2701
+ uploadType?: string;
2702
+ },
2703
+ body: Account): Request<Account>;
2704
+ containers: ContainersResource;
2705
+ permissions: PermissionsResource;
2706
+ }
2707
+
2708
+ const accounts: AccountsResource;
2709
+ }
2710
+ }