@maxim_mazurok/gapi.client.tagmanager-v2 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,4230 @@
1
+ /* Type definitions for non-npm package Tag Manager API v2 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=v2
13
+ // Revision: 20220810
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load Tag Manager API v2 */
19
+ function load(urlOrObject: "https://tagmanager.googleapis.com/$discovery/rest?version=v2"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "tagmanager", version: "v2"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "tagmanager", version: "v2", 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
+ /** GTM Account's API relative path. */
34
+ path?: string;
35
+ /**
36
+ * Whether the account shares data anonymously with Google and others. This flag enables benchmarking by sharing your data in an anonymous form. Google will remove all identifiable
37
+ * information about your website, combine the data with hundreds of other anonymous sites and report aggregate trends in the benchmarking service. @mutable tagmanager.accounts.create
38
+ * @mutable tagmanager.accounts.update
39
+ */
40
+ shareData?: boolean;
41
+ /** Auto generated link to the tag manager UI */
42
+ tagManagerUrl?: string;
43
+ }
44
+ interface AccountAccess {
45
+ /** Whether the user has no access, user access, or admin access to an account. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update */
46
+ permission?: string;
47
+ }
48
+ interface BuiltInVariable {
49
+ /** GTM Account ID. */
50
+ accountId?: string;
51
+ /** GTM Container ID. */
52
+ containerId?: string;
53
+ /** Name of the built-in variable to be used to refer to the built-in variable. */
54
+ name?: string;
55
+ /** GTM BuiltInVariable's API relative path. */
56
+ path?: string;
57
+ /** Type of built-in variable. @required.tagmanager.accounts.containers.workspaces.built_in_variable.update @mutable tagmanager.accounts.containers.workspaces.built_in_variable.update */
58
+ type?: string;
59
+ /** GTM Workspace ID. */
60
+ workspaceId?: string;
61
+ }
62
+ interface Client {
63
+ /** GTM Account ID. */
64
+ accountId?: string;
65
+ /** The Client ID uniquely identifies the GTM client. */
66
+ clientId?: string;
67
+ /** GTM Container ID. */
68
+ containerId?: string;
69
+ /** The fingerprint of the GTM Client as computed at storage time. This value is recomputed whenever the client is modified. */
70
+ fingerprint?: string;
71
+ /** Client display name. @mutable tagmanager.accounts.containers.workspaces.clients.create @mutable tagmanager.accounts.containers.workspaces.clients.update */
72
+ name?: string;
73
+ /** User notes on how to apply this tag in the container. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update */
74
+ notes?: string;
75
+ /** The client's parameters. @mutable tagmanager.accounts.containers.workspaces.clients.create @mutable tagmanager.accounts.containers.workspaces.clients.update */
76
+ parameter?: Parameter[];
77
+ /** Parent folder id. */
78
+ parentFolderId?: string;
79
+ /** GTM client's API relative path. */
80
+ path?: string;
81
+ /** Priority determines relative firing order. @mutable tagmanager.accounts.containers.workspaces.clients.create @mutable tagmanager.accounts.containers.workspaces.clients.update */
82
+ priority?: number;
83
+ /** Auto generated link to the tag manager UI */
84
+ tagManagerUrl?: string;
85
+ /** Client type. @mutable tagmanager.accounts.containers.workspaces.clients.create @mutable tagmanager.accounts.containers.workspaces.clients.update */
86
+ type?: string;
87
+ /** GTM Workspace ID. */
88
+ workspaceId?: string;
89
+ }
90
+ interface Condition {
91
+ /**
92
+ * 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
93
+ * 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
94
+ * 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
95
+ * boolean parameter that is set to true. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update
96
+ */
97
+ parameter?: Parameter[];
98
+ /** The type of operator for this condition. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update */
99
+ type?: string;
100
+ }
101
+ interface Container {
102
+ /** GTM Account ID. */
103
+ accountId?: string;
104
+ /** The Container ID uniquely identifies the GTM Container. */
105
+ containerId?: string;
106
+ /** List of domain names associated with the Container. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update */
107
+ domainName?: string[];
108
+ /** The fingerprint of the GTM Container as computed at storage time. This value is recomputed whenever the account is modified. */
109
+ fingerprint?: string;
110
+ /** Container display name. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update */
111
+ name?: string;
112
+ /** Container Notes. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update */
113
+ notes?: string;
114
+ /** GTM Container's API relative path. */
115
+ path?: string;
116
+ /** Container Public ID. */
117
+ publicId?: string;
118
+ /** Auto generated link to the tag manager UI */
119
+ tagManagerUrl?: string;
120
+ /** List of Usage Contexts for the Container. Valid values include: web, android, or ios. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update */
121
+ usageContext?: string[];
122
+ }
123
+ interface ContainerAccess {
124
+ /** GTM Container ID. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update */
125
+ containerId?: string;
126
+ /** List of Container permissions. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update */
127
+ permission?: string;
128
+ }
129
+ interface ContainerVersion {
130
+ /** GTM Account ID. */
131
+ accountId?: string;
132
+ /** The built-in variables in the container that this version was taken from. */
133
+ builtInVariable?: BuiltInVariable[];
134
+ /** The clients in the container that this version was taken from. */
135
+ client?: Client[];
136
+ /** The container that this version was taken from. */
137
+ container?: Container;
138
+ /** GTM Container ID. */
139
+ containerId?: string;
140
+ /** The Container Version ID uniquely identifies the GTM Container Version. */
141
+ containerVersionId?: string;
142
+ /** The custom templates in the container that this version was taken from. */
143
+ customTemplate?: CustomTemplate[];
144
+ /** A value of true indicates this container version has been deleted. */
145
+ deleted?: boolean;
146
+ /** Container version description. @mutable tagmanager.accounts.containers.versions.update */
147
+ description?: string;
148
+ /** The fingerprint of the GTM Container Version as computed at storage time. This value is recomputed whenever the container version is modified. */
149
+ fingerprint?: string;
150
+ /** The folders in the container that this version was taken from. */
151
+ folder?: Folder[];
152
+ /** Container version display name. @mutable tagmanager.accounts.containers.versions.update */
153
+ name?: string;
154
+ /** GTM ContainerVersions's API relative path. */
155
+ path?: string;
156
+ /** The tags in the container that this version was taken from. */
157
+ tag?: Tag[];
158
+ /** Auto generated link to the tag manager UI */
159
+ tagManagerUrl?: string;
160
+ /** The triggers in the container that this version was taken from. */
161
+ trigger?: Trigger[];
162
+ /** The variables in the container that this version was taken from. */
163
+ variable?: Variable[];
164
+ /** The zones in the container that this version was taken from. */
165
+ zone?: Zone[];
166
+ }
167
+ interface ContainerVersionHeader {
168
+ /** GTM Account ID. */
169
+ accountId?: string;
170
+ /** GTM Container ID. */
171
+ containerId?: string;
172
+ /** The Container Version ID uniquely identifies the GTM Container Version. */
173
+ containerVersionId?: string;
174
+ /** A value of true indicates this container version has been deleted. */
175
+ deleted?: boolean;
176
+ /** Container version display name. */
177
+ name?: string;
178
+ /** Number of clients in the container version. */
179
+ numClients?: string;
180
+ /** Number of custom templates in the container version. */
181
+ numCustomTemplates?: string;
182
+ /** Number of macros in the container version. */
183
+ numMacros?: string;
184
+ /** Number of rules in the container version. */
185
+ numRules?: string;
186
+ /** Number of tags in the container version. */
187
+ numTags?: string;
188
+ /** Number of triggers in the container version. */
189
+ numTriggers?: string;
190
+ /** Number of variables in the container version. */
191
+ numVariables?: string;
192
+ /** Number of zones in the container version. */
193
+ numZones?: string;
194
+ /** GTM Container Versions's API relative path. */
195
+ path?: string;
196
+ }
197
+ interface CreateBuiltInVariableResponse {
198
+ /** List of created built-in variables. */
199
+ builtInVariable?: BuiltInVariable[];
200
+ }
201
+ interface CreateContainerVersionRequestVersionOptions {
202
+ /** The name of the container version to be created. */
203
+ name?: string;
204
+ /** The notes of the container version to be created. */
205
+ notes?: string;
206
+ }
207
+ interface CreateContainerVersionResponse {
208
+ /** Compiler errors or not. */
209
+ compilerError?: boolean;
210
+ /** The container version created. */
211
+ containerVersion?: ContainerVersion;
212
+ /** Auto generated workspace path created as a result of version creation. This field should only be populated if the created version was not a quick preview. */
213
+ newWorkspacePath?: string;
214
+ /** Whether version creation failed when syncing the workspace to the latest container version. */
215
+ syncStatus?: SyncStatus;
216
+ }
217
+ interface CustomTemplate {
218
+ /** GTM Account ID. */
219
+ accountId?: string;
220
+ /** GTM Container ID. */
221
+ containerId?: string;
222
+ /** The fingerprint of the GTM Custom Template as computed at storage time. This value is recomputed whenever the template is modified. */
223
+ fingerprint?: string;
224
+ /** A reference to the Community Template Gallery entry. */
225
+ galleryReference?: GalleryReference;
226
+ /** Custom Template display name. */
227
+ name?: string;
228
+ /** GTM Custom Template's API relative path. */
229
+ path?: string;
230
+ /** Auto generated link to the tag manager UI */
231
+ tagManagerUrl?: string;
232
+ /** The custom template in text format. */
233
+ templateData?: string;
234
+ /** The Custom Template ID uniquely identifies the GTM custom template. */
235
+ templateId?: string;
236
+ /** GTM Workspace ID. */
237
+ workspaceId?: string;
238
+ }
239
+ interface Entity {
240
+ /** Represents how the entity has been changed in the workspace. */
241
+ changeStatus?: string;
242
+ /** The client being represented by the entity. */
243
+ client?: Client;
244
+ /** The folder being represented by the entity. */
245
+ folder?: Folder;
246
+ /** The tag being represented by the entity. */
247
+ tag?: Tag;
248
+ /** The trigger being represented by the entity. */
249
+ trigger?: Trigger;
250
+ /** The variable being represented by the entity. */
251
+ variable?: Variable;
252
+ }
253
+ interface Environment {
254
+ /** GTM Account ID. */
255
+ accountId?: string;
256
+ /** The environment authorization code. */
257
+ authorizationCode?: string;
258
+ /** The last update time-stamp for the authorization code. */
259
+ authorizationTimestamp?: string;
260
+ /** GTM Container ID. */
261
+ containerId?: string;
262
+ /** Represents a link to a container version. */
263
+ containerVersionId?: string;
264
+ /**
265
+ * The environment description. Can be set or changed only on USER type environments. @mutable tagmanager.accounts.containers.environments.create @mutable
266
+ * tagmanager.accounts.containers.environments.update
267
+ */
268
+ description?: string;
269
+ /**
270
+ * Whether or not to enable debug by default for the environment. @mutable tagmanager.accounts.containers.environments.create @mutable
271
+ * tagmanager.accounts.containers.environments.update
272
+ */
273
+ enableDebug?: boolean;
274
+ /** GTM Environment ID uniquely identifies the GTM Environment. */
275
+ environmentId?: string;
276
+ /** The fingerprint of the GTM environment as computed at storage time. This value is recomputed whenever the environment is modified. */
277
+ fingerprint?: string;
278
+ /**
279
+ * The environment display name. Can be set or changed only on USER type environments. @mutable tagmanager.accounts.containers.environments.create @mutable
280
+ * tagmanager.accounts.containers.environments.update
281
+ */
282
+ name?: string;
283
+ /** GTM Environment's API relative path. */
284
+ path?: string;
285
+ /** Auto generated link to the tag manager UI */
286
+ tagManagerUrl?: string;
287
+ /** The type of this environment. */
288
+ type?: string;
289
+ /** Default preview page url for the environment. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update */
290
+ url?: string;
291
+ /** Represents a link to a quick preview of a workspace. */
292
+ workspaceId?: string;
293
+ }
294
+ interface Folder {
295
+ /** GTM Account ID. */
296
+ accountId?: string;
297
+ /** GTM Container ID. */
298
+ containerId?: string;
299
+ /** The fingerprint of the GTM Folder as computed at storage time. This value is recomputed whenever the folder is modified. */
300
+ fingerprint?: string;
301
+ /** The Folder ID uniquely identifies the GTM Folder. */
302
+ folderId?: string;
303
+ /** Folder display name. @mutable tagmanager.accounts.containers.workspaces.folders.create @mutable tagmanager.accounts.containers.workspaces.folders.update */
304
+ name?: string;
305
+ /**
306
+ * User notes on how to apply this folder in the container. @mutable tagmanager.accounts.containers.workspaces.folders.create @mutable
307
+ * tagmanager.accounts.containers.workspaces.folders.update
308
+ */
309
+ notes?: string;
310
+ /** GTM Folder's API relative path. */
311
+ path?: string;
312
+ /** Auto generated link to the tag manager UI */
313
+ tagManagerUrl?: string;
314
+ /** GTM Workspace ID. */
315
+ workspaceId?: string;
316
+ }
317
+ interface FolderEntities {
318
+ /** Continuation token for fetching the next page of results. */
319
+ nextPageToken?: string;
320
+ /** The list of tags inside the folder. */
321
+ tag?: Tag[];
322
+ /** The list of triggers inside the folder. */
323
+ trigger?: Trigger[];
324
+ /** The list of variables inside the folder. */
325
+ variable?: Variable[];
326
+ }
327
+ interface GalleryReference {
328
+ /** The name of the host for the community gallery template. */
329
+ host?: string;
330
+ /** If a user has manually edited the community gallery template. */
331
+ isModified?: boolean;
332
+ /** The name of the owner for the community gallery template. */
333
+ owner?: string;
334
+ /** The name of the repository for the community gallery template. */
335
+ repository?: string;
336
+ /** The signature of the community gallery template as computed at import time. This value is recomputed whenever the template is updated from the gallery. */
337
+ signature?: string;
338
+ /** The version of the community gallery template. */
339
+ version?: string;
340
+ }
341
+ interface GetWorkspaceStatusResponse {
342
+ /** The merge conflict after sync. */
343
+ mergeConflict?: MergeConflict[];
344
+ /** Entities that have been changed in the workspace. */
345
+ workspaceChange?: Entity[];
346
+ }
347
+ interface ListAccountsResponse {
348
+ /** List of GTM Accounts that a user has access to. */
349
+ account?: Account[];
350
+ /** Continuation token for fetching the next page of results. */
351
+ nextPageToken?: string;
352
+ }
353
+ interface ListClientsResponse {
354
+ /** All GTM Clients of a GTM Container. */
355
+ client?: Client[];
356
+ /** Continuation token for fetching the next page of results. */
357
+ nextPageToken?: string;
358
+ }
359
+ interface ListContainersResponse {
360
+ /** All Containers of a GTM Account. */
361
+ container?: Container[];
362
+ /** Continuation token for fetching the next page of results. */
363
+ nextPageToken?: string;
364
+ }
365
+ interface ListContainerVersionsResponse {
366
+ /** All container version headers of a GTM Container. */
367
+ containerVersionHeader?: ContainerVersionHeader[];
368
+ /** Continuation token for fetching the next page of results. */
369
+ nextPageToken?: string;
370
+ }
371
+ interface ListEnabledBuiltInVariablesResponse {
372
+ /** All GTM BuiltInVariables of a GTM container. */
373
+ builtInVariable?: BuiltInVariable[];
374
+ /** Continuation token for fetching the next page of results. */
375
+ nextPageToken?: string;
376
+ }
377
+ interface ListEnvironmentsResponse {
378
+ /** All Environments of a GTM Container. */
379
+ environment?: Environment[];
380
+ /** Continuation token for fetching the next page of results. */
381
+ nextPageToken?: string;
382
+ }
383
+ interface ListFoldersResponse {
384
+ /** All GTM Folders of a GTM Container. */
385
+ folder?: Folder[];
386
+ /** Continuation token for fetching the next page of results. */
387
+ nextPageToken?: string;
388
+ }
389
+ interface ListTagsResponse {
390
+ /** Continuation token for fetching the next page of results. */
391
+ nextPageToken?: string;
392
+ /** All GTM Tags of a GTM Container. */
393
+ tag?: Tag[];
394
+ }
395
+ interface ListTemplatesResponse {
396
+ /** Continuation token for fetching the next page of results. */
397
+ nextPageToken?: string;
398
+ /** All GTM Custom Templates of a GTM Container. */
399
+ template?: CustomTemplate[];
400
+ }
401
+ interface ListTriggersResponse {
402
+ /** Continuation token for fetching the next page of results. */
403
+ nextPageToken?: string;
404
+ /** All GTM Triggers of a GTM Container. */
405
+ trigger?: Trigger[];
406
+ }
407
+ interface ListUserPermissionsResponse {
408
+ /** Continuation token for fetching the next page of results. */
409
+ nextPageToken?: string;
410
+ /** All GTM UserPermissions of a GTM Account. */
411
+ userPermission?: UserPermission[];
412
+ }
413
+ interface ListVariablesResponse {
414
+ /** Continuation token for fetching the next page of results. */
415
+ nextPageToken?: string;
416
+ /** All GTM Variables of a GTM Container. */
417
+ variable?: Variable[];
418
+ }
419
+ interface ListWorkspacesResponse {
420
+ /** Continuation token for fetching the next page of results. */
421
+ nextPageToken?: string;
422
+ /** All Workspaces of a GTM Container. */
423
+ workspace?: Workspace[];
424
+ }
425
+ interface ListZonesResponse {
426
+ /** Continuation token for fetching the next page of results. */
427
+ nextPageToken?: string;
428
+ /** All GTM Zones of a GTM Container. */
429
+ zone?: Zone[];
430
+ }
431
+ interface MergeConflict {
432
+ /**
433
+ * The base version entity (since the latest sync operation) that has conflicting changes compared to the workspace. If this field is missing, it means the workspace entity is deleted
434
+ * from the base version.
435
+ */
436
+ entityInBaseVersion?: Entity;
437
+ /** The workspace entity that has conflicting changes compared to the base version. If an entity is deleted in a workspace, it will still appear with a deleted change status. */
438
+ entityInWorkspace?: Entity;
439
+ }
440
+ interface Parameter {
441
+ /**
442
+ * The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. @mutable
443
+ * tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update @mutable
444
+ * tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update @mutable
445
+ * tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
446
+ */
447
+ key?: string;
448
+ /**
449
+ * This list parameter's parameters (keys will be ignored). @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable
450
+ * tagmanager.accounts.containers.workspaces.variables.update @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
451
+ * tagmanager.accounts.containers.workspaces.triggers.update @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable
452
+ * tagmanager.accounts.containers.workspaces.tags.update
453
+ */
454
+ list?: Parameter[];
455
+ /**
456
+ * This map parameter's parameters (must have keys; keys must be unique). @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable
457
+ * tagmanager.accounts.containers.workspaces.variables.update @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
458
+ * tagmanager.accounts.containers.workspaces.triggers.update @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable
459
+ * tagmanager.accounts.containers.workspaces.tags.update
460
+ */
461
+ map?: Parameter[];
462
+ /**
463
+ * 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
464
+ * 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
465
+ * 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
466
+ * value represents a tag, represented as the tag name @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable
467
+ * tagmanager.accounts.containers.workspaces.variables.update @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
468
+ * tagmanager.accounts.containers.workspaces.triggers.update @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable
469
+ * tagmanager.accounts.containers.workspaces.tags.update
470
+ */
471
+ type?: string;
472
+ /**
473
+ * A parameter's value (may contain variable references such as "{{myVariable}}") as appropriate to the specified type. @mutable
474
+ * tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update @mutable
475
+ * tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update @mutable
476
+ * tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
477
+ */
478
+ value?: string;
479
+ }
480
+ interface PublishContainerVersionResponse {
481
+ /** Compiler errors or not. */
482
+ compilerError?: boolean;
483
+ /** The container version created. */
484
+ containerVersion?: ContainerVersion;
485
+ }
486
+ interface QuickPreviewResponse {
487
+ /** Were there compiler errors or not. */
488
+ compilerError?: boolean;
489
+ /** The quick previewed container version. */
490
+ containerVersion?: ContainerVersion;
491
+ /** Whether quick previewing failed when syncing the workspace to the latest container version. */
492
+ syncStatus?: SyncStatus;
493
+ }
494
+ interface RevertBuiltInVariableResponse {
495
+ /** Whether the built-in variable is enabled after reversion. */
496
+ enabled?: boolean;
497
+ }
498
+ interface RevertClientResponse {
499
+ /**
500
+ * Client as it appears in the latest container version since the last workspace synchronization operation. If no client is present, that means the client was deleted in the latest
501
+ * container version.
502
+ */
503
+ client?: Client;
504
+ }
505
+ interface RevertFolderResponse {
506
+ /**
507
+ * Folder as it appears in the latest container version since the last workspace synchronization operation. If no folder is present, that means the folder was deleted in the latest
508
+ * container version.
509
+ */
510
+ folder?: Folder;
511
+ }
512
+ interface RevertTagResponse {
513
+ /**
514
+ * Tag as it appears in the latest container version since the last workspace synchronization operation. If no tag is present, that means the tag was deleted in the latest container
515
+ * version.
516
+ */
517
+ tag?: Tag;
518
+ }
519
+ interface RevertTemplateResponse {
520
+ /**
521
+ * Template as it appears in the latest container version since the last workspace synchronization operation. If no template is present, that means the template was deleted in the
522
+ * latest container version.
523
+ */
524
+ template?: CustomTemplate;
525
+ }
526
+ interface RevertTriggerResponse {
527
+ /**
528
+ * Trigger as it appears in the latest container version since the last workspace synchronization operation. If no trigger is present, that means the trigger was deleted in the latest
529
+ * container version.
530
+ */
531
+ trigger?: Trigger;
532
+ }
533
+ interface RevertVariableResponse {
534
+ /**
535
+ * Variable as it appears in the latest container version since the last workspace synchronization operation. If no variable is present, that means the variable was deleted in the
536
+ * latest container version.
537
+ */
538
+ variable?: Variable;
539
+ }
540
+ interface RevertZoneResponse {
541
+ /**
542
+ * Zone as it appears in the latest container version since the last workspace synchronization operation. If no zone is present, that means the zone was deleted in the latest container
543
+ * version.
544
+ */
545
+ zone?: Zone;
546
+ }
547
+ interface SetupTag {
548
+ /** 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. */
549
+ stopOnSetupFailure?: boolean;
550
+ /** The name of the setup tag. */
551
+ tagName?: string;
552
+ }
553
+ interface SyncStatus {
554
+ /** Synchornization operation detected a merge conflict. */
555
+ mergeConflict?: boolean;
556
+ /** An error occurred during the synchronization operation. */
557
+ syncError?: boolean;
558
+ }
559
+ interface SyncWorkspaceResponse {
560
+ /** The merge conflict after sync. If this field is not empty, the sync is still treated as successful. But a version cannot be created until all conflicts are resolved. */
561
+ mergeConflict?: MergeConflict[];
562
+ /** Indicates whether synchronization caused a merge conflict or sync error. */
563
+ syncStatus?: SyncStatus;
564
+ }
565
+ interface Tag {
566
+ /** GTM Account ID. */
567
+ accountId?: string;
568
+ /**
569
+ * Blocking rule IDs. If any of the listed rules evaluate to true, the tag will not fire. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable
570
+ * tagmanager.accounts.containers.workspaces.tags.update
571
+ */
572
+ blockingRuleId?: string[];
573
+ /**
574
+ * Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag will not fire. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable
575
+ * tagmanager.accounts.containers.workspaces.tags.update
576
+ */
577
+ blockingTriggerId?: string[];
578
+ /** Consent settings of a tag. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update */
579
+ consentSettings?: TagConsentSetting;
580
+ /** GTM Container ID. */
581
+ containerId?: string;
582
+ /** The fingerprint of the GTM Tag as computed at storage time. This value is recomputed whenever the tag is modified. */
583
+ fingerprint?: string;
584
+ /**
585
+ * 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
586
+ * tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
587
+ */
588
+ firingRuleId?: string[];
589
+ /**
590
+ * 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
591
+ * tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
592
+ */
593
+ firingTriggerId?: string[];
594
+ /**
595
+ * 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.workspaces.tags.create @mutable
596
+ * tagmanager.accounts.containers.workspaces.tags.update
597
+ */
598
+ liveOnly?: boolean;
599
+ /**
600
+ * A map of key-value pairs of tag metadata to be included in the event data for tag monitoring. Notes: - This parameter must be type MAP. - Each parameter in the map are type
601
+ * TEMPLATE, however cannot contain variable references. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
602
+ */
603
+ monitoringMetadata?: Parameter;
604
+ /**
605
+ * If non-empty, then the tag display name will be included in the monitoring metadata map using the key specified. @mutable tagmanager.accounts.containers.workspaces.tags.create
606
+ * @mutable tagmanager.accounts.containers.workspaces.tags.update
607
+ */
608
+ monitoringMetadataTagNameKey?: string;
609
+ /** Tag display name. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update */
610
+ name?: string;
611
+ /** User notes on how to apply this tag in the container. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update */
612
+ notes?: string;
613
+ /** The tag's parameters. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update */
614
+ parameter?: Parameter[];
615
+ /** Parent folder id. */
616
+ parentFolderId?: string;
617
+ /** GTM Tag's API relative path. */
618
+ path?: string;
619
+ /**
620
+ * Indicates whether the tag is paused, which prevents the tag from firing. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable
621
+ * tagmanager.accounts.containers.workspaces.tags.update
622
+ */
623
+ paused?: boolean;
624
+ /**
625
+ * 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
626
+ * negative value. The default value is 0. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update
627
+ */
628
+ priority?: Parameter;
629
+ /** The end timestamp in milliseconds to schedule a tag. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update */
630
+ scheduleEndMs?: string;
631
+ /** The start timestamp in milliseconds to schedule a tag. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update */
632
+ scheduleStartMs?: string;
633
+ /** The list of setup tags. Currently we only allow one. */
634
+ setupTag?: SetupTag[];
635
+ /** Option to fire this tag. */
636
+ tagFiringOption?: string;
637
+ /** The Tag ID uniquely identifies the GTM Tag. */
638
+ tagId?: string;
639
+ /** Auto generated link to the tag manager UI */
640
+ tagManagerUrl?: string;
641
+ /** The list of teardown tags. Currently we only allow one. */
642
+ teardownTag?: TeardownTag[];
643
+ /** GTM Tag Type. @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update */
644
+ type?: string;
645
+ /** GTM Workspace ID. */
646
+ workspaceId?: string;
647
+ }
648
+ interface TagConsentSetting {
649
+ /** The tag's consent status. If set to NEEDED, the runtime will check that the consent types specified by the consent_type field have been granted. */
650
+ consentStatus?: string;
651
+ /** The type of consents to check for during tag firing if in the consent NEEDED state. This parameter must be of type LIST where each list item is of type STRING. */
652
+ consentType?: Parameter;
653
+ }
654
+ interface TeardownTag {
655
+ /** 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. */
656
+ stopTeardownOnFailure?: boolean;
657
+ /** The name of the teardown tag. */
658
+ tagName?: string;
659
+ }
660
+ interface Trigger {
661
+ /** GTM Account ID. */
662
+ accountId?: string;
663
+ /** Used in the case of auto event tracking. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update */
664
+ autoEventFilter?: Condition[];
665
+ /**
666
+ * 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
667
+ * Submission and Link Click triggers. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update
668
+ */
669
+ checkValidation?: Parameter;
670
+ /** GTM Container ID. */
671
+ containerId?: string;
672
+ /**
673
+ * A visibility trigger minimum continuous visible time (in milliseconds). Only valid for AMP Visibility trigger. @mutable tagmanager.accounts.containers.workspaces.triggers.create
674
+ * @mutable tagmanager.accounts.containers.workspaces.triggers.update
675
+ */
676
+ continuousTimeMinMilliseconds?: Parameter;
677
+ /**
678
+ * Used in the case of custom event, which is fired iff all Conditions are true. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
679
+ * tagmanager.accounts.containers.workspaces.triggers.update
680
+ */
681
+ customEventFilter?: Condition[];
682
+ /**
683
+ * Name of the GTM event that is fired. Only valid for Timer triggers. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
684
+ * tagmanager.accounts.containers.workspaces.triggers.update
685
+ */
686
+ eventName?: Parameter;
687
+ /**
688
+ * The trigger will only fire iff all Conditions are true. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
689
+ * tagmanager.accounts.containers.workspaces.triggers.update
690
+ */
691
+ filter?: Condition[];
692
+ /** The fingerprint of the GTM Trigger as computed at storage time. This value is recomputed whenever the trigger is modified. */
693
+ fingerprint?: string;
694
+ /**
695
+ * 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
696
+ * triggers. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update
697
+ */
698
+ horizontalScrollPercentageList?: Parameter;
699
+ /**
700
+ * Time between triggering recurring Timer Events (in milliseconds). Only valid for Timer triggers. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
701
+ * tagmanager.accounts.containers.workspaces.triggers.update
702
+ */
703
+ interval?: Parameter;
704
+ /**
705
+ * Time between Timer Events to fire (in seconds). Only valid for AMP Timer trigger. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
706
+ * tagmanager.accounts.containers.workspaces.triggers.update
707
+ */
708
+ intervalSeconds?: Parameter;
709
+ /**
710
+ * 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
711
+ * triggers. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update
712
+ */
713
+ limit?: Parameter;
714
+ /**
715
+ * Max time to fire Timer Events (in seconds). Only valid for AMP Timer trigger. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
716
+ * tagmanager.accounts.containers.workspaces.triggers.update
717
+ */
718
+ maxTimerLengthSeconds?: Parameter;
719
+ /** Trigger display name. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update */
720
+ name?: string;
721
+ /**
722
+ * User notes on how to apply this trigger in the container. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
723
+ * tagmanager.accounts.containers.workspaces.triggers.update
724
+ */
725
+ notes?: string;
726
+ /** Additional parameters. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update */
727
+ parameter?: Parameter[];
728
+ /** Parent folder id. */
729
+ parentFolderId?: string;
730
+ /** GTM Trigger's API relative path. */
731
+ path?: string;
732
+ /**
733
+ * A click trigger CSS selector (i.e. "a", "button" etc.). Only valid for AMP Click trigger. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
734
+ * tagmanager.accounts.containers.workspaces.triggers.update
735
+ */
736
+ selector?: Parameter;
737
+ /** Auto generated link to the tag manager UI */
738
+ tagManagerUrl?: string;
739
+ /**
740
+ * A visibility trigger minimum total visible time (in milliseconds). Only valid for AMP Visibility trigger. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
741
+ * tagmanager.accounts.containers.workspaces.triggers.update
742
+ */
743
+ totalTimeMinMilliseconds?: Parameter;
744
+ /** The Trigger ID uniquely identifies the GTM Trigger. */
745
+ triggerId?: string;
746
+ /**
747
+ * Defines the data layer event that causes this trigger. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
748
+ * tagmanager.accounts.containers.workspaces.triggers.update
749
+ */
750
+ type?: string;
751
+ /**
752
+ * 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
753
+ * 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
754
+ * and Timer triggers. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update
755
+ */
756
+ uniqueTriggerId?: Parameter;
757
+ /**
758
+ * 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
759
+ * triggers. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update
760
+ */
761
+ verticalScrollPercentageList?: Parameter;
762
+ /**
763
+ * A visibility trigger CSS selector (i.e. "#id"). Only valid for AMP Visibility trigger. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
764
+ * tagmanager.accounts.containers.workspaces.triggers.update
765
+ */
766
+ visibilitySelector?: Parameter;
767
+ /**
768
+ * A visibility trigger maximum percent visibility. Only valid for AMP Visibility trigger. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
769
+ * tagmanager.accounts.containers.workspaces.triggers.update
770
+ */
771
+ visiblePercentageMax?: Parameter;
772
+ /**
773
+ * A visibility trigger minimum percent visibility. Only valid for AMP Visibility trigger. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
774
+ * tagmanager.accounts.containers.workspaces.triggers.update
775
+ */
776
+ visiblePercentageMin?: Parameter;
777
+ /**
778
+ * 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
779
+ * valid for Form Submission and Link Click triggers. @mutable tagmanager.accounts.containers.workspaces.triggers.create @mutable
780
+ * tagmanager.accounts.containers.workspaces.triggers.update
781
+ */
782
+ waitForTags?: Parameter;
783
+ /**
784
+ * 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
785
+ * tagmanager.accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers.update
786
+ */
787
+ waitForTagsTimeout?: Parameter;
788
+ /** GTM Workspace ID. */
789
+ workspaceId?: string;
790
+ }
791
+ interface UserPermission {
792
+ /** GTM Account access permissions. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update */
793
+ accountAccess?: AccountAccess;
794
+ /** The Account ID uniquely identifies the GTM Account. */
795
+ accountId?: string;
796
+ /** GTM Container access permissions. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update */
797
+ containerAccess?: ContainerAccess[];
798
+ /** User's email address. @mutable tagmanager.accounts.permissions.create */
799
+ emailAddress?: string;
800
+ /** GTM UserPermission's API relative path. */
801
+ path?: string;
802
+ }
803
+ interface Variable {
804
+ /** GTM Account ID. */
805
+ accountId?: string;
806
+ /** GTM Container ID. */
807
+ containerId?: string;
808
+ /**
809
+ * 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
810
+ * are false. Treated as an unordered set. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update
811
+ */
812
+ disablingTriggerId?: string[];
813
+ /**
814
+ * 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
815
+ * triggers are false. Treated as an unordered set. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable
816
+ * tagmanager.accounts.containers.workspaces.variables.update
817
+ */
818
+ enablingTriggerId?: string[];
819
+ /** The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified. */
820
+ fingerprint?: string;
821
+ /** Option to convert a variable value to other value. */
822
+ formatValue?: VariableFormatValue;
823
+ /** Variable display name. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update */
824
+ name?: string;
825
+ /**
826
+ * User notes on how to apply this variable in the container. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable
827
+ * tagmanager.accounts.containers.workspaces.variables.update
828
+ */
829
+ notes?: string;
830
+ /** The variable's parameters. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update */
831
+ parameter?: Parameter[];
832
+ /** Parent folder id. */
833
+ parentFolderId?: string;
834
+ /** GTM Variable's API relative path. */
835
+ path?: string;
836
+ /**
837
+ * The end timestamp in milliseconds to schedule a variable. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable
838
+ * tagmanager.accounts.containers.workspaces.variables.update
839
+ */
840
+ scheduleEndMs?: string;
841
+ /**
842
+ * The start timestamp in milliseconds to schedule a variable. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable
843
+ * tagmanager.accounts.containers.workspaces.variables.update
844
+ */
845
+ scheduleStartMs?: string;
846
+ /** Auto generated link to the tag manager UI */
847
+ tagManagerUrl?: string;
848
+ /** GTM Variable Type. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update */
849
+ type?: string;
850
+ /** The Variable ID uniquely identifies the GTM Variable. */
851
+ variableId?: string;
852
+ /** GTM Workspace ID. */
853
+ workspaceId?: string;
854
+ }
855
+ interface VariableFormatValue {
856
+ /** The option to convert a string-type variable value to either lowercase or uppercase. */
857
+ caseConversionType?: string;
858
+ /** The value to convert if a variable value is false. */
859
+ convertFalseToValue?: Parameter;
860
+ /** The value to convert if a variable value is null. */
861
+ convertNullToValue?: Parameter;
862
+ /** The value to convert if a variable value is true. */
863
+ convertTrueToValue?: Parameter;
864
+ /** The value to convert if a variable value is undefined. */
865
+ convertUndefinedToValue?: Parameter;
866
+ }
867
+ interface Workspace {
868
+ /** GTM Account ID. */
869
+ accountId?: string;
870
+ /** GTM Container ID. */
871
+ containerId?: string;
872
+ /** Workspace description. @mutable tagmanager.accounts.containers.workspaces.create @mutable tagmanager.accounts.containers.workspaces.update */
873
+ description?: string;
874
+ /** The fingerprint of the GTM Workspace as computed at storage time. This value is recomputed whenever the workspace is modified. */
875
+ fingerprint?: string;
876
+ /** Workspace display name. @mutable tagmanager.accounts.containers.workspaces.create @mutable tagmanager.accounts.containers.workspaces.update */
877
+ name?: string;
878
+ /** GTM Workspace's API relative path. */
879
+ path?: string;
880
+ /** Auto generated link to the tag manager UI */
881
+ tagManagerUrl?: string;
882
+ /** The Workspace ID uniquely identifies the GTM Workspace. */
883
+ workspaceId?: string;
884
+ }
885
+ interface Zone {
886
+ /** GTM Account ID. */
887
+ accountId?: string;
888
+ /** This Zone's boundary. */
889
+ boundary?: ZoneBoundary;
890
+ /** Containers that are children of this Zone. */
891
+ childContainer?: ZoneChildContainer[];
892
+ /** GTM Container ID. */
893
+ containerId?: string;
894
+ /** The fingerprint of the GTM Zone as computed at storage time. This value is recomputed whenever the zone is modified. */
895
+ fingerprint?: string;
896
+ /** Zone display name. */
897
+ name?: string;
898
+ /** User notes on how to apply this zone in the container. */
899
+ notes?: string;
900
+ /** Additional parameters. */
901
+ parameter?: Parameter[];
902
+ /** GTM Zone's API relative path. */
903
+ path?: string;
904
+ /** Auto generated link to the tag manager UI */
905
+ tagManagerUrl?: string;
906
+ /** This Zone's type restrictions. */
907
+ typeRestriction?: ZoneTypeRestriction;
908
+ /** GTM Workspace ID. */
909
+ workspaceId?: string;
910
+ /** The Zone ID uniquely identifies the GTM Zone. */
911
+ zoneId?: string;
912
+ }
913
+ interface ZoneBoundary {
914
+ /** The conditions that, when conjoined, make up the boundary. */
915
+ condition?: Condition[];
916
+ /** Custom evaluation trigger IDs. A zone will evaluate its boundary conditions when any of the listed triggers are true. */
917
+ customEvaluationTriggerId?: string[];
918
+ }
919
+ interface ZoneChildContainer {
920
+ /** The zone's nickname for the child container. */
921
+ nickname?: string;
922
+ /** The child container's public id. */
923
+ publicId?: string;
924
+ }
925
+ interface ZoneTypeRestriction {
926
+ /** True if type restrictions have been enabled for this Zone. */
927
+ enable?: boolean;
928
+ /** List of type public ids that have been whitelisted for use in this Zone. */
929
+ whitelistedTypeId?: string[];
930
+ }
931
+ interface EnvironmentsResource {
932
+ /** Creates a GTM Environment. */
933
+ create(request: {
934
+ /** V1 error format. */
935
+ "$.xgafv"?: string;
936
+ /** OAuth access token. */
937
+ access_token?: string;
938
+ /** Data format for response. */
939
+ alt?: string;
940
+ /** JSONP */
941
+ callback?: string;
942
+ /** Selector specifying which fields to include in a partial response. */
943
+ fields?: string;
944
+ /** 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. */
945
+ key?: string;
946
+ /** OAuth 2.0 token for the current user. */
947
+ oauth_token?: string;
948
+ /** GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id} */
949
+ parent: string;
950
+ /** Returns response with indentations and line breaks. */
951
+ prettyPrint?: boolean;
952
+ /** 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. */
953
+ quotaUser?: string;
954
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
955
+ upload_protocol?: string;
956
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
957
+ uploadType?: string;
958
+ /** Request body */
959
+ resource: Environment;
960
+ }): Request<Environment>;
961
+ create(request: {
962
+ /** V1 error format. */
963
+ "$.xgafv"?: string;
964
+ /** OAuth access token. */
965
+ access_token?: string;
966
+ /** Data format for response. */
967
+ alt?: string;
968
+ /** JSONP */
969
+ callback?: string;
970
+ /** Selector specifying which fields to include in a partial response. */
971
+ fields?: string;
972
+ /** 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. */
973
+ key?: string;
974
+ /** OAuth 2.0 token for the current user. */
975
+ oauth_token?: string;
976
+ /** GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id} */
977
+ parent: string;
978
+ /** Returns response with indentations and line breaks. */
979
+ prettyPrint?: boolean;
980
+ /** 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. */
981
+ quotaUser?: string;
982
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
983
+ upload_protocol?: string;
984
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
985
+ uploadType?: string;
986
+ },
987
+ body: Environment): Request<Environment>;
988
+ /** Deletes a GTM Environment. */
989
+ delete(request?: {
990
+ /** V1 error format. */
991
+ "$.xgafv"?: string;
992
+ /** OAuth access token. */
993
+ access_token?: string;
994
+ /** Data format for response. */
995
+ alt?: string;
996
+ /** JSONP */
997
+ callback?: string;
998
+ /** Selector specifying which fields to include in a partial response. */
999
+ fields?: string;
1000
+ /** 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. */
1001
+ key?: string;
1002
+ /** OAuth 2.0 token for the current user. */
1003
+ oauth_token?: string;
1004
+ /** GTM Environment's API relative path. Example: accounts/{account_id}/containers/{container_id}/environments/{environment_id} */
1005
+ path: string;
1006
+ /** Returns response with indentations and line breaks. */
1007
+ prettyPrint?: boolean;
1008
+ /** 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. */
1009
+ quotaUser?: string;
1010
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1011
+ upload_protocol?: string;
1012
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1013
+ uploadType?: string;
1014
+ }): Request<void>;
1015
+ /** Gets a GTM Environment. */
1016
+ get(request?: {
1017
+ /** V1 error format. */
1018
+ "$.xgafv"?: string;
1019
+ /** OAuth access token. */
1020
+ access_token?: string;
1021
+ /** Data format for response. */
1022
+ alt?: string;
1023
+ /** JSONP */
1024
+ callback?: string;
1025
+ /** Selector specifying which fields to include in a partial response. */
1026
+ fields?: 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
+ /** GTM Environment's API relative path. Example: accounts/{account_id}/containers/{container_id}/environments/{environment_id} */
1032
+ path: string;
1033
+ /** Returns response with indentations and line breaks. */
1034
+ prettyPrint?: boolean;
1035
+ /** 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. */
1036
+ quotaUser?: string;
1037
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1038
+ upload_protocol?: string;
1039
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1040
+ uploadType?: string;
1041
+ }): Request<Environment>;
1042
+ /** Lists all GTM Environments of a GTM Container. */
1043
+ list(request?: {
1044
+ /** V1 error format. */
1045
+ "$.xgafv"?: string;
1046
+ /** OAuth access token. */
1047
+ access_token?: string;
1048
+ /** Data format for response. */
1049
+ alt?: string;
1050
+ /** JSONP */
1051
+ callback?: string;
1052
+ /** Selector specifying which fields to include in a partial response. */
1053
+ fields?: string;
1054
+ /** 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. */
1055
+ key?: string;
1056
+ /** OAuth 2.0 token for the current user. */
1057
+ oauth_token?: string;
1058
+ /** Continuation token for fetching the next page of results. */
1059
+ pageToken?: string;
1060
+ /** GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id} */
1061
+ parent: string;
1062
+ /** Returns response with indentations and line breaks. */
1063
+ prettyPrint?: boolean;
1064
+ /** 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. */
1065
+ quotaUser?: string;
1066
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1067
+ upload_protocol?: string;
1068
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1069
+ uploadType?: string;
1070
+ }): Request<ListEnvironmentsResponse>;
1071
+ /** Re-generates the authorization code for a GTM Environment. */
1072
+ reauthorize(request: {
1073
+ /** V1 error format. */
1074
+ "$.xgafv"?: string;
1075
+ /** OAuth access token. */
1076
+ access_token?: string;
1077
+ /** Data format for response. */
1078
+ alt?: string;
1079
+ /** JSONP */
1080
+ callback?: string;
1081
+ /** Selector specifying which fields to include in a partial response. */
1082
+ fields?: string;
1083
+ /** 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. */
1084
+ key?: string;
1085
+ /** OAuth 2.0 token for the current user. */
1086
+ oauth_token?: string;
1087
+ /** GTM Environment's API relative path. Example: accounts/{account_id}/containers/{container_id}/environments/{environment_id} */
1088
+ path: string;
1089
+ /** Returns response with indentations and line breaks. */
1090
+ prettyPrint?: boolean;
1091
+ /** 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. */
1092
+ quotaUser?: string;
1093
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1094
+ upload_protocol?: string;
1095
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1096
+ uploadType?: string;
1097
+ /** Request body */
1098
+ resource: Environment;
1099
+ }): Request<Environment>;
1100
+ reauthorize(request: {
1101
+ /** V1 error format. */
1102
+ "$.xgafv"?: string;
1103
+ /** OAuth access token. */
1104
+ access_token?: string;
1105
+ /** Data format for response. */
1106
+ alt?: string;
1107
+ /** JSONP */
1108
+ callback?: string;
1109
+ /** Selector specifying which fields to include in a partial response. */
1110
+ fields?: string;
1111
+ /** 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. */
1112
+ key?: string;
1113
+ /** OAuth 2.0 token for the current user. */
1114
+ oauth_token?: string;
1115
+ /** GTM Environment's API relative path. Example: accounts/{account_id}/containers/{container_id}/environments/{environment_id} */
1116
+ path: string;
1117
+ /** Returns response with indentations and line breaks. */
1118
+ prettyPrint?: boolean;
1119
+ /** 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. */
1120
+ quotaUser?: string;
1121
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1122
+ upload_protocol?: string;
1123
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1124
+ uploadType?: string;
1125
+ },
1126
+ body: Environment): Request<Environment>;
1127
+ /** Updates a GTM Environment. */
1128
+ update(request: {
1129
+ /** V1 error format. */
1130
+ "$.xgafv"?: string;
1131
+ /** OAuth access token. */
1132
+ access_token?: string;
1133
+ /** Data format for response. */
1134
+ alt?: string;
1135
+ /** JSONP */
1136
+ callback?: string;
1137
+ /** Selector specifying which fields to include in a partial response. */
1138
+ fields?: string;
1139
+ /** When provided, this fingerprint must match the fingerprint of the environment in storage. */
1140
+ fingerprint?: string;
1141
+ /** 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. */
1142
+ key?: string;
1143
+ /** OAuth 2.0 token for the current user. */
1144
+ oauth_token?: string;
1145
+ /** GTM Environment's API relative path. Example: accounts/{account_id}/containers/{container_id}/environments/{environment_id} */
1146
+ path: string;
1147
+ /** Returns response with indentations and line breaks. */
1148
+ prettyPrint?: boolean;
1149
+ /** 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. */
1150
+ quotaUser?: string;
1151
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1152
+ upload_protocol?: string;
1153
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1154
+ uploadType?: string;
1155
+ /** Request body */
1156
+ resource: Environment;
1157
+ }): Request<Environment>;
1158
+ update(request: {
1159
+ /** V1 error format. */
1160
+ "$.xgafv"?: string;
1161
+ /** OAuth access token. */
1162
+ access_token?: string;
1163
+ /** Data format for response. */
1164
+ alt?: string;
1165
+ /** JSONP */
1166
+ callback?: string;
1167
+ /** Selector specifying which fields to include in a partial response. */
1168
+ fields?: string;
1169
+ /** When provided, this fingerprint must match the fingerprint of the environment in storage. */
1170
+ fingerprint?: string;
1171
+ /** 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. */
1172
+ key?: string;
1173
+ /** OAuth 2.0 token for the current user. */
1174
+ oauth_token?: string;
1175
+ /** GTM Environment's API relative path. Example: accounts/{account_id}/containers/{container_id}/environments/{environment_id} */
1176
+ path: string;
1177
+ /** Returns response with indentations and line breaks. */
1178
+ prettyPrint?: boolean;
1179
+ /** 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. */
1180
+ quotaUser?: string;
1181
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1182
+ upload_protocol?: string;
1183
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1184
+ uploadType?: string;
1185
+ },
1186
+ body: Environment): Request<Environment>;
1187
+ }
1188
+ interface Version_headersResource {
1189
+ /** Gets the latest container version header */
1190
+ latest(request?: {
1191
+ /** V1 error format. */
1192
+ "$.xgafv"?: string;
1193
+ /** OAuth access token. */
1194
+ access_token?: string;
1195
+ /** Data format for response. */
1196
+ alt?: string;
1197
+ /** JSONP */
1198
+ callback?: string;
1199
+ /** Selector specifying which fields to include in a partial response. */
1200
+ fields?: string;
1201
+ /** 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. */
1202
+ key?: string;
1203
+ /** OAuth 2.0 token for the current user. */
1204
+ oauth_token?: string;
1205
+ /** GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id} */
1206
+ parent: string;
1207
+ /** Returns response with indentations and line breaks. */
1208
+ prettyPrint?: boolean;
1209
+ /** 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. */
1210
+ quotaUser?: string;
1211
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1212
+ upload_protocol?: string;
1213
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1214
+ uploadType?: string;
1215
+ }): Request<ContainerVersionHeader>;
1216
+ /** Lists all Container Versions of a GTM Container. */
1217
+ list(request?: {
1218
+ /** V1 error format. */
1219
+ "$.xgafv"?: string;
1220
+ /** OAuth access token. */
1221
+ access_token?: string;
1222
+ /** Data format for response. */
1223
+ alt?: string;
1224
+ /** JSONP */
1225
+ callback?: string;
1226
+ /** Selector specifying which fields to include in a partial response. */
1227
+ fields?: string;
1228
+ /** Also retrieve deleted (archived) versions when true. */
1229
+ includeDeleted?: boolean;
1230
+ /** 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. */
1231
+ key?: string;
1232
+ /** OAuth 2.0 token for the current user. */
1233
+ oauth_token?: string;
1234
+ /** Continuation token for fetching the next page of results. */
1235
+ pageToken?: string;
1236
+ /** GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id} */
1237
+ parent: 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
+ }): Request<ListContainerVersionsResponse>;
1247
+ }
1248
+ interface VersionsResource {
1249
+ /** Deletes a Container Version. */
1250
+ delete(request?: {
1251
+ /** V1 error format. */
1252
+ "$.xgafv"?: string;
1253
+ /** OAuth access token. */
1254
+ access_token?: string;
1255
+ /** Data format for response. */
1256
+ alt?: string;
1257
+ /** JSONP */
1258
+ callback?: string;
1259
+ /** Selector specifying which fields to include in a partial response. */
1260
+ fields?: string;
1261
+ /** 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. */
1262
+ key?: string;
1263
+ /** OAuth 2.0 token for the current user. */
1264
+ oauth_token?: string;
1265
+ /** GTM ContainerVersion's API relative path. Example: accounts/{account_id}/containers/{container_id}/versions/{version_id} */
1266
+ path: string;
1267
+ /** Returns response with indentations and line breaks. */
1268
+ prettyPrint?: boolean;
1269
+ /** 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. */
1270
+ quotaUser?: string;
1271
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1272
+ upload_protocol?: string;
1273
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1274
+ uploadType?: string;
1275
+ }): Request<void>;
1276
+ /** Gets a Container Version. */
1277
+ get(request?: {
1278
+ /** V1 error format. */
1279
+ "$.xgafv"?: string;
1280
+ /** OAuth access token. */
1281
+ access_token?: string;
1282
+ /** Data format for response. */
1283
+ alt?: string;
1284
+ /** JSONP */
1285
+ callback?: string;
1286
+ /** The GTM ContainerVersion ID. Specify published to retrieve the currently published version. */
1287
+ containerVersionId?: string;
1288
+ /** Selector specifying which fields to include in a partial response. */
1289
+ fields?: string;
1290
+ /** 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. */
1291
+ key?: string;
1292
+ /** OAuth 2.0 token for the current user. */
1293
+ oauth_token?: string;
1294
+ /** GTM ContainerVersion's API relative path. Example: accounts/{account_id}/containers/{container_id}/versions/{version_id} */
1295
+ path: string;
1296
+ /** Returns response with indentations and line breaks. */
1297
+ prettyPrint?: boolean;
1298
+ /** 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. */
1299
+ quotaUser?: string;
1300
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1301
+ upload_protocol?: string;
1302
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1303
+ uploadType?: string;
1304
+ }): Request<ContainerVersion>;
1305
+ /** Gets the live (i.e. published) container version */
1306
+ live(request?: {
1307
+ /** V1 error format. */
1308
+ "$.xgafv"?: string;
1309
+ /** OAuth access token. */
1310
+ access_token?: string;
1311
+ /** Data format for response. */
1312
+ alt?: string;
1313
+ /** JSONP */
1314
+ callback?: string;
1315
+ /** Selector specifying which fields to include in a partial response. */
1316
+ fields?: string;
1317
+ /** 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. */
1318
+ key?: string;
1319
+ /** OAuth 2.0 token for the current user. */
1320
+ oauth_token?: string;
1321
+ /** GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id} */
1322
+ parent: string;
1323
+ /** Returns response with indentations and line breaks. */
1324
+ prettyPrint?: boolean;
1325
+ /** 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. */
1326
+ quotaUser?: string;
1327
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1328
+ upload_protocol?: string;
1329
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1330
+ uploadType?: string;
1331
+ }): Request<ContainerVersion>;
1332
+ /** Publishes a Container Version. */
1333
+ publish(request?: {
1334
+ /** V1 error format. */
1335
+ "$.xgafv"?: string;
1336
+ /** OAuth access token. */
1337
+ access_token?: string;
1338
+ /** Data format for response. */
1339
+ alt?: string;
1340
+ /** JSONP */
1341
+ callback?: string;
1342
+ /** Selector specifying which fields to include in a partial response. */
1343
+ fields?: string;
1344
+ /** When provided, this fingerprint must match the fingerprint of the container version in storage. */
1345
+ fingerprint?: string;
1346
+ /** 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. */
1347
+ key?: string;
1348
+ /** OAuth 2.0 token for the current user. */
1349
+ oauth_token?: string;
1350
+ /** GTM ContainerVersion's API relative path. Example: accounts/{account_id}/containers/{container_id}/versions/{version_id} */
1351
+ path: string;
1352
+ /** Returns response with indentations and line breaks. */
1353
+ prettyPrint?: boolean;
1354
+ /** 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. */
1355
+ quotaUser?: string;
1356
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1357
+ upload_protocol?: string;
1358
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1359
+ uploadType?: string;
1360
+ }): Request<PublishContainerVersionResponse>;
1361
+ /** Sets the latest version used for synchronization of workspaces when detecting conflicts and errors. */
1362
+ set_latest(request?: {
1363
+ /** V1 error format. */
1364
+ "$.xgafv"?: string;
1365
+ /** OAuth access token. */
1366
+ access_token?: string;
1367
+ /** Data format for response. */
1368
+ alt?: string;
1369
+ /** JSONP */
1370
+ callback?: string;
1371
+ /** Selector specifying which fields to include in a partial response. */
1372
+ fields?: string;
1373
+ /** 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. */
1374
+ key?: string;
1375
+ /** OAuth 2.0 token for the current user. */
1376
+ oauth_token?: string;
1377
+ /** GTM ContainerVersion's API relative path. Example: accounts/{account_id}/containers/{container_id}/versions/{version_id} */
1378
+ path: string;
1379
+ /** Returns response with indentations and line breaks. */
1380
+ prettyPrint?: boolean;
1381
+ /** 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. */
1382
+ quotaUser?: string;
1383
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1384
+ upload_protocol?: string;
1385
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1386
+ uploadType?: string;
1387
+ }): Request<ContainerVersion>;
1388
+ /** Undeletes a Container Version. */
1389
+ undelete(request?: {
1390
+ /** V1 error format. */
1391
+ "$.xgafv"?: string;
1392
+ /** OAuth access token. */
1393
+ access_token?: string;
1394
+ /** Data format for response. */
1395
+ alt?: string;
1396
+ /** JSONP */
1397
+ callback?: string;
1398
+ /** Selector specifying which fields to include in a partial response. */
1399
+ fields?: string;
1400
+ /** 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. */
1401
+ key?: string;
1402
+ /** OAuth 2.0 token for the current user. */
1403
+ oauth_token?: string;
1404
+ /** GTM ContainerVersion's API relative path. Example: accounts/{account_id}/containers/{container_id}/versions/{version_id} */
1405
+ path: string;
1406
+ /** Returns response with indentations and line breaks. */
1407
+ prettyPrint?: boolean;
1408
+ /** 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. */
1409
+ quotaUser?: string;
1410
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1411
+ upload_protocol?: string;
1412
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1413
+ uploadType?: string;
1414
+ }): Request<ContainerVersion>;
1415
+ /** Updates a Container Version. */
1416
+ update(request: {
1417
+ /** V1 error format. */
1418
+ "$.xgafv"?: string;
1419
+ /** OAuth access token. */
1420
+ access_token?: string;
1421
+ /** Data format for response. */
1422
+ alt?: string;
1423
+ /** JSONP */
1424
+ callback?: string;
1425
+ /** Selector specifying which fields to include in a partial response. */
1426
+ fields?: string;
1427
+ /** When provided, this fingerprint must match the fingerprint of the container version in storage. */
1428
+ fingerprint?: string;
1429
+ /** 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. */
1430
+ key?: string;
1431
+ /** OAuth 2.0 token for the current user. */
1432
+ oauth_token?: string;
1433
+ /** GTM ContainerVersion's API relative path. Example: accounts/{account_id}/containers/{container_id}/versions/{version_id} */
1434
+ path: string;
1435
+ /** Returns response with indentations and line breaks. */
1436
+ prettyPrint?: boolean;
1437
+ /** 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. */
1438
+ quotaUser?: string;
1439
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1440
+ upload_protocol?: string;
1441
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1442
+ uploadType?: string;
1443
+ /** Request body */
1444
+ resource: ContainerVersion;
1445
+ }): Request<ContainerVersion>;
1446
+ update(request: {
1447
+ /** V1 error format. */
1448
+ "$.xgafv"?: string;
1449
+ /** OAuth access token. */
1450
+ access_token?: string;
1451
+ /** Data format for response. */
1452
+ alt?: string;
1453
+ /** JSONP */
1454
+ callback?: string;
1455
+ /** Selector specifying which fields to include in a partial response. */
1456
+ fields?: string;
1457
+ /** When provided, this fingerprint must match the fingerprint of the container version in storage. */
1458
+ fingerprint?: string;
1459
+ /** 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. */
1460
+ key?: string;
1461
+ /** OAuth 2.0 token for the current user. */
1462
+ oauth_token?: string;
1463
+ /** GTM ContainerVersion's API relative path. Example: accounts/{account_id}/containers/{container_id}/versions/{version_id} */
1464
+ path: string;
1465
+ /** Returns response with indentations and line breaks. */
1466
+ prettyPrint?: boolean;
1467
+ /** 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. */
1468
+ quotaUser?: string;
1469
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1470
+ upload_protocol?: string;
1471
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1472
+ uploadType?: string;
1473
+ },
1474
+ body: ContainerVersion): Request<ContainerVersion>;
1475
+ }
1476
+ interface Built_in_variablesResource {
1477
+ /** Creates one or more GTM Built-In Variables. */
1478
+ create(request?: {
1479
+ /** V1 error format. */
1480
+ "$.xgafv"?: string;
1481
+ /** OAuth access token. */
1482
+ access_token?: string;
1483
+ /** Data format for response. */
1484
+ alt?: string;
1485
+ /** JSONP */
1486
+ callback?: string;
1487
+ /** Selector specifying which fields to include in a partial response. */
1488
+ fields?: string;
1489
+ /** 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. */
1490
+ key?: string;
1491
+ /** OAuth 2.0 token for the current user. */
1492
+ oauth_token?: string;
1493
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
1494
+ parent: string;
1495
+ /** Returns response with indentations and line breaks. */
1496
+ prettyPrint?: boolean;
1497
+ /** 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. */
1498
+ quotaUser?: string;
1499
+ /** The types of built-in variables to enable. */
1500
+ type?: string | string[];
1501
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1502
+ upload_protocol?: string;
1503
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1504
+ uploadType?: string;
1505
+ }): Request<CreateBuiltInVariableResponse>;
1506
+ /** Deletes one or more GTM Built-In Variables. */
1507
+ delete(request?: {
1508
+ /** V1 error format. */
1509
+ "$.xgafv"?: string;
1510
+ /** OAuth access token. */
1511
+ access_token?: string;
1512
+ /** Data format for response. */
1513
+ alt?: string;
1514
+ /** JSONP */
1515
+ callback?: string;
1516
+ /** Selector specifying which fields to include in a partial response. */
1517
+ fields?: string;
1518
+ /** 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. */
1519
+ key?: string;
1520
+ /** OAuth 2.0 token for the current user. */
1521
+ oauth_token?: string;
1522
+ /** GTM BuiltInVariable's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/built_in_variables */
1523
+ path: string;
1524
+ /** Returns response with indentations and line breaks. */
1525
+ prettyPrint?: boolean;
1526
+ /** 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. */
1527
+ quotaUser?: string;
1528
+ /** The types of built-in variables to delete. */
1529
+ type?: string | string[];
1530
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1531
+ upload_protocol?: string;
1532
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1533
+ uploadType?: string;
1534
+ }): Request<void>;
1535
+ /** Lists all the enabled Built-In Variables of a GTM Container. */
1536
+ list(request?: {
1537
+ /** V1 error format. */
1538
+ "$.xgafv"?: string;
1539
+ /** OAuth access token. */
1540
+ access_token?: string;
1541
+ /** Data format for response. */
1542
+ alt?: string;
1543
+ /** JSONP */
1544
+ callback?: 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
+ /** Continuation token for fetching the next page of results. */
1552
+ pageToken?: string;
1553
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
1554
+ parent: string;
1555
+ /** Returns response with indentations and line breaks. */
1556
+ prettyPrint?: boolean;
1557
+ /** 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. */
1558
+ quotaUser?: string;
1559
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1560
+ upload_protocol?: string;
1561
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1562
+ uploadType?: string;
1563
+ }): Request<ListEnabledBuiltInVariablesResponse>;
1564
+ /** Reverts changes to a GTM Built-In Variables in a GTM Workspace. */
1565
+ revert(request?: {
1566
+ /** V1 error format. */
1567
+ "$.xgafv"?: string;
1568
+ /** OAuth access token. */
1569
+ access_token?: string;
1570
+ /** Data format for response. */
1571
+ alt?: string;
1572
+ /** JSONP */
1573
+ callback?: string;
1574
+ /** Selector specifying which fields to include in a partial response. */
1575
+ fields?: string;
1576
+ /** 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. */
1577
+ key?: string;
1578
+ /** OAuth 2.0 token for the current user. */
1579
+ oauth_token?: string;
1580
+ /** GTM BuiltInVariable's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/built_in_variables */
1581
+ path: 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 type of built-in variable to revert. */
1587
+ type?: 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<RevertBuiltInVariableResponse>;
1593
+ }
1594
+ interface ClientsResource {
1595
+ /** Creates a GTM Client. */
1596
+ create(request: {
1597
+ /** V1 error format. */
1598
+ "$.xgafv"?: string;
1599
+ /** OAuth access token. */
1600
+ access_token?: string;
1601
+ /** Data format for response. */
1602
+ alt?: string;
1603
+ /** JSONP */
1604
+ callback?: string;
1605
+ /** Selector specifying which fields to include in a partial response. */
1606
+ fields?: string;
1607
+ /** 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. */
1608
+ key?: string;
1609
+ /** OAuth 2.0 token for the current user. */
1610
+ oauth_token?: string;
1611
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
1612
+ parent: string;
1613
+ /** Returns response with indentations and line breaks. */
1614
+ prettyPrint?: boolean;
1615
+ /** 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. */
1616
+ quotaUser?: string;
1617
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1618
+ upload_protocol?: string;
1619
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1620
+ uploadType?: string;
1621
+ /** Request body */
1622
+ resource: Client;
1623
+ }): Request<Client>;
1624
+ create(request: {
1625
+ /** V1 error format. */
1626
+ "$.xgafv"?: string;
1627
+ /** OAuth access token. */
1628
+ access_token?: string;
1629
+ /** Data format for response. */
1630
+ alt?: string;
1631
+ /** JSONP */
1632
+ callback?: string;
1633
+ /** Selector specifying which fields to include in a partial response. */
1634
+ fields?: string;
1635
+ /** 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. */
1636
+ key?: string;
1637
+ /** OAuth 2.0 token for the current user. */
1638
+ oauth_token?: string;
1639
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
1640
+ parent: string;
1641
+ /** Returns response with indentations and line breaks. */
1642
+ prettyPrint?: boolean;
1643
+ /** 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. */
1644
+ quotaUser?: string;
1645
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1646
+ upload_protocol?: string;
1647
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1648
+ uploadType?: string;
1649
+ },
1650
+ body: Client): Request<Client>;
1651
+ /** Deletes a GTM Client. */
1652
+ delete(request?: {
1653
+ /** V1 error format. */
1654
+ "$.xgafv"?: string;
1655
+ /** OAuth access token. */
1656
+ access_token?: string;
1657
+ /** Data format for response. */
1658
+ alt?: string;
1659
+ /** JSONP */
1660
+ callback?: string;
1661
+ /** Selector specifying which fields to include in a partial response. */
1662
+ fields?: string;
1663
+ /** 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. */
1664
+ key?: string;
1665
+ /** OAuth 2.0 token for the current user. */
1666
+ oauth_token?: string;
1667
+ /** GTM Client's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/clients/{client_id} */
1668
+ path: string;
1669
+ /** Returns response with indentations and line breaks. */
1670
+ prettyPrint?: boolean;
1671
+ /** 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. */
1672
+ quotaUser?: string;
1673
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1674
+ upload_protocol?: string;
1675
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1676
+ uploadType?: string;
1677
+ }): Request<void>;
1678
+ /** Gets a GTM Client. */
1679
+ get(request?: {
1680
+ /** V1 error format. */
1681
+ "$.xgafv"?: string;
1682
+ /** OAuth access token. */
1683
+ access_token?: string;
1684
+ /** Data format for response. */
1685
+ alt?: string;
1686
+ /** JSONP */
1687
+ callback?: string;
1688
+ /** Selector specifying which fields to include in a partial response. */
1689
+ fields?: string;
1690
+ /** 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. */
1691
+ key?: string;
1692
+ /** OAuth 2.0 token for the current user. */
1693
+ oauth_token?: string;
1694
+ /** GTM Client's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/clients/{client_id} */
1695
+ path: string;
1696
+ /** Returns response with indentations and line breaks. */
1697
+ prettyPrint?: boolean;
1698
+ /** 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. */
1699
+ quotaUser?: string;
1700
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1701
+ upload_protocol?: string;
1702
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1703
+ uploadType?: string;
1704
+ }): Request<Client>;
1705
+ /** Lists all GTM Clients of a GTM container workspace. */
1706
+ list(request?: {
1707
+ /** V1 error format. */
1708
+ "$.xgafv"?: string;
1709
+ /** OAuth access token. */
1710
+ access_token?: string;
1711
+ /** Data format for response. */
1712
+ alt?: string;
1713
+ /** JSONP */
1714
+ callback?: string;
1715
+ /** Selector specifying which fields to include in a partial response. */
1716
+ fields?: string;
1717
+ /** 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. */
1718
+ key?: string;
1719
+ /** OAuth 2.0 token for the current user. */
1720
+ oauth_token?: string;
1721
+ /** Continuation token for fetching the next page of results. */
1722
+ pageToken?: string;
1723
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
1724
+ parent: string;
1725
+ /** Returns response with indentations and line breaks. */
1726
+ prettyPrint?: boolean;
1727
+ /** 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. */
1728
+ quotaUser?: string;
1729
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1730
+ upload_protocol?: string;
1731
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1732
+ uploadType?: string;
1733
+ }): Request<ListClientsResponse>;
1734
+ /** Reverts changes to a GTM Client in a GTM Workspace. */
1735
+ revert(request?: {
1736
+ /** V1 error format. */
1737
+ "$.xgafv"?: string;
1738
+ /** OAuth access token. */
1739
+ access_token?: string;
1740
+ /** Data format for response. */
1741
+ alt?: string;
1742
+ /** JSONP */
1743
+ callback?: string;
1744
+ /** Selector specifying which fields to include in a partial response. */
1745
+ fields?: string;
1746
+ /** When provided, this fingerprint must match the fingerprint of the client in storage. */
1747
+ fingerprint?: string;
1748
+ /** 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. */
1749
+ key?: string;
1750
+ /** OAuth 2.0 token for the current user. */
1751
+ oauth_token?: string;
1752
+ /** GTM Client's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/clients/{client_id} */
1753
+ path: string;
1754
+ /** Returns response with indentations and line breaks. */
1755
+ prettyPrint?: boolean;
1756
+ /** 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. */
1757
+ quotaUser?: string;
1758
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1759
+ upload_protocol?: string;
1760
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1761
+ uploadType?: string;
1762
+ }): Request<RevertClientResponse>;
1763
+ /** Updates a GTM Client. */
1764
+ update(request: {
1765
+ /** V1 error format. */
1766
+ "$.xgafv"?: string;
1767
+ /** OAuth access token. */
1768
+ access_token?: string;
1769
+ /** Data format for response. */
1770
+ alt?: string;
1771
+ /** JSONP */
1772
+ callback?: string;
1773
+ /** Selector specifying which fields to include in a partial response. */
1774
+ fields?: string;
1775
+ /** When provided, this fingerprint must match the fingerprint of the client in storage. */
1776
+ fingerprint?: string;
1777
+ /** 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. */
1778
+ key?: string;
1779
+ /** OAuth 2.0 token for the current user. */
1780
+ oauth_token?: string;
1781
+ /** GTM Client's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/clients/{client_id} */
1782
+ path: string;
1783
+ /** Returns response with indentations and line breaks. */
1784
+ prettyPrint?: boolean;
1785
+ /** 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. */
1786
+ quotaUser?: string;
1787
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1788
+ upload_protocol?: string;
1789
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1790
+ uploadType?: string;
1791
+ /** Request body */
1792
+ resource: Client;
1793
+ }): Request<Client>;
1794
+ update(request: {
1795
+ /** V1 error format. */
1796
+ "$.xgafv"?: string;
1797
+ /** OAuth access token. */
1798
+ access_token?: string;
1799
+ /** Data format for response. */
1800
+ alt?: string;
1801
+ /** JSONP */
1802
+ callback?: string;
1803
+ /** Selector specifying which fields to include in a partial response. */
1804
+ fields?: string;
1805
+ /** When provided, this fingerprint must match the fingerprint of the client in storage. */
1806
+ fingerprint?: string;
1807
+ /** 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. */
1808
+ key?: string;
1809
+ /** OAuth 2.0 token for the current user. */
1810
+ oauth_token?: string;
1811
+ /** GTM Client's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/clients/{client_id} */
1812
+ path: string;
1813
+ /** Returns response with indentations and line breaks. */
1814
+ prettyPrint?: boolean;
1815
+ /** 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. */
1816
+ quotaUser?: string;
1817
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1818
+ upload_protocol?: string;
1819
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1820
+ uploadType?: string;
1821
+ },
1822
+ body: Client): Request<Client>;
1823
+ }
1824
+ interface FoldersResource {
1825
+ /** Creates a GTM Folder. */
1826
+ create(request: {
1827
+ /** V1 error format. */
1828
+ "$.xgafv"?: string;
1829
+ /** OAuth access token. */
1830
+ access_token?: string;
1831
+ /** Data format for response. */
1832
+ alt?: string;
1833
+ /** JSONP */
1834
+ callback?: string;
1835
+ /** Selector specifying which fields to include in a partial response. */
1836
+ fields?: string;
1837
+ /** 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. */
1838
+ key?: string;
1839
+ /** OAuth 2.0 token for the current user. */
1840
+ oauth_token?: string;
1841
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
1842
+ parent: string;
1843
+ /** Returns response with indentations and line breaks. */
1844
+ prettyPrint?: boolean;
1845
+ /** 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. */
1846
+ quotaUser?: string;
1847
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1848
+ upload_protocol?: string;
1849
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1850
+ uploadType?: string;
1851
+ /** Request body */
1852
+ resource: Folder;
1853
+ }): Request<Folder>;
1854
+ create(request: {
1855
+ /** V1 error format. */
1856
+ "$.xgafv"?: string;
1857
+ /** OAuth access token. */
1858
+ access_token?: string;
1859
+ /** Data format for response. */
1860
+ alt?: string;
1861
+ /** JSONP */
1862
+ callback?: string;
1863
+ /** Selector specifying which fields to include in a partial response. */
1864
+ fields?: string;
1865
+ /** 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. */
1866
+ key?: string;
1867
+ /** OAuth 2.0 token for the current user. */
1868
+ oauth_token?: string;
1869
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
1870
+ parent: 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
+ },
1880
+ body: Folder): Request<Folder>;
1881
+ /** Deletes a GTM Folder. */
1882
+ delete(request?: {
1883
+ /** V1 error format. */
1884
+ "$.xgafv"?: string;
1885
+ /** OAuth access token. */
1886
+ access_token?: string;
1887
+ /** Data format for response. */
1888
+ alt?: string;
1889
+ /** JSONP */
1890
+ callback?: string;
1891
+ /** Selector specifying which fields to include in a partial response. */
1892
+ fields?: string;
1893
+ /** 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. */
1894
+ key?: string;
1895
+ /** OAuth 2.0 token for the current user. */
1896
+ oauth_token?: string;
1897
+ /** GTM Folder's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} */
1898
+ path: string;
1899
+ /** Returns response with indentations and line breaks. */
1900
+ prettyPrint?: boolean;
1901
+ /** 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. */
1902
+ quotaUser?: string;
1903
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1904
+ upload_protocol?: string;
1905
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1906
+ uploadType?: string;
1907
+ }): Request<void>;
1908
+ /** List all entities in a GTM Folder. */
1909
+ entities(request?: {
1910
+ /** V1 error format. */
1911
+ "$.xgafv"?: string;
1912
+ /** OAuth access token. */
1913
+ access_token?: string;
1914
+ /** Data format for response. */
1915
+ alt?: string;
1916
+ /** JSONP */
1917
+ callback?: string;
1918
+ /** Selector specifying which fields to include in a partial response. */
1919
+ fields?: string;
1920
+ /** 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. */
1921
+ key?: string;
1922
+ /** OAuth 2.0 token for the current user. */
1923
+ oauth_token?: string;
1924
+ /** Continuation token for fetching the next page of results. */
1925
+ pageToken?: string;
1926
+ /** GTM Folder's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} */
1927
+ path: string;
1928
+ /** Returns response with indentations and line breaks. */
1929
+ prettyPrint?: boolean;
1930
+ /** 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. */
1931
+ quotaUser?: string;
1932
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1933
+ upload_protocol?: string;
1934
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1935
+ uploadType?: string;
1936
+ }): Request<FolderEntities>;
1937
+ /** Gets a GTM Folder. */
1938
+ get(request?: {
1939
+ /** V1 error format. */
1940
+ "$.xgafv"?: string;
1941
+ /** OAuth access token. */
1942
+ access_token?: string;
1943
+ /** Data format for response. */
1944
+ alt?: string;
1945
+ /** JSONP */
1946
+ callback?: string;
1947
+ /** Selector specifying which fields to include in a partial response. */
1948
+ fields?: string;
1949
+ /** 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. */
1950
+ key?: string;
1951
+ /** OAuth 2.0 token for the current user. */
1952
+ oauth_token?: string;
1953
+ /** GTM Folder's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} */
1954
+ path: string;
1955
+ /** Returns response with indentations and line breaks. */
1956
+ prettyPrint?: boolean;
1957
+ /** 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. */
1958
+ quotaUser?: string;
1959
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1960
+ upload_protocol?: string;
1961
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1962
+ uploadType?: string;
1963
+ }): Request<Folder>;
1964
+ /** Lists all GTM Folders of a Container. */
1965
+ list(request?: {
1966
+ /** V1 error format. */
1967
+ "$.xgafv"?: string;
1968
+ /** OAuth access token. */
1969
+ access_token?: string;
1970
+ /** Data format for response. */
1971
+ alt?: string;
1972
+ /** JSONP */
1973
+ callback?: string;
1974
+ /** Selector specifying which fields to include in a partial response. */
1975
+ fields?: string;
1976
+ /** 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. */
1977
+ key?: string;
1978
+ /** OAuth 2.0 token for the current user. */
1979
+ oauth_token?: string;
1980
+ /** Continuation token for fetching the next page of results. */
1981
+ pageToken?: string;
1982
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
1983
+ parent: string;
1984
+ /** Returns response with indentations and line breaks. */
1985
+ prettyPrint?: boolean;
1986
+ /** 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. */
1987
+ quotaUser?: string;
1988
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1989
+ upload_protocol?: string;
1990
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1991
+ uploadType?: string;
1992
+ }): Request<ListFoldersResponse>;
1993
+ /** Moves entities to a GTM Folder. */
1994
+ move_entities_to_folder(request: {
1995
+ /** V1 error format. */
1996
+ "$.xgafv"?: string;
1997
+ /** OAuth access token. */
1998
+ access_token?: string;
1999
+ /** Data format for response. */
2000
+ alt?: string;
2001
+ /** JSONP */
2002
+ callback?: string;
2003
+ /** Selector specifying which fields to include in a partial response. */
2004
+ fields?: string;
2005
+ /** 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. */
2006
+ key?: string;
2007
+ /** OAuth 2.0 token for the current user. */
2008
+ oauth_token?: string;
2009
+ /** GTM Folder's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} */
2010
+ path: string;
2011
+ /** Returns response with indentations and line breaks. */
2012
+ prettyPrint?: boolean;
2013
+ /** 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. */
2014
+ quotaUser?: string;
2015
+ /** The tags to be moved to the folder. */
2016
+ tagId?: string | string[];
2017
+ /** The triggers to be moved to the folder. */
2018
+ triggerId?: string | string[];
2019
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2020
+ upload_protocol?: string;
2021
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2022
+ uploadType?: string;
2023
+ /** The variables to be moved to the folder. */
2024
+ variableId?: string | string[];
2025
+ /** Request body */
2026
+ resource: Folder;
2027
+ }): Request<void>;
2028
+ move_entities_to_folder(request: {
2029
+ /** V1 error format. */
2030
+ "$.xgafv"?: string;
2031
+ /** OAuth access token. */
2032
+ access_token?: string;
2033
+ /** Data format for response. */
2034
+ alt?: string;
2035
+ /** JSONP */
2036
+ callback?: string;
2037
+ /** Selector specifying which fields to include in a partial response. */
2038
+ fields?: string;
2039
+ /** 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. */
2040
+ key?: string;
2041
+ /** OAuth 2.0 token for the current user. */
2042
+ oauth_token?: string;
2043
+ /** GTM Folder's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} */
2044
+ path: string;
2045
+ /** Returns response with indentations and line breaks. */
2046
+ prettyPrint?: boolean;
2047
+ /** 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. */
2048
+ quotaUser?: string;
2049
+ /** The tags to be moved to the folder. */
2050
+ tagId?: string | string[];
2051
+ /** The triggers to be moved to the folder. */
2052
+ triggerId?: string | string[];
2053
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2054
+ upload_protocol?: string;
2055
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2056
+ uploadType?: string;
2057
+ /** The variables to be moved to the folder. */
2058
+ variableId?: string | string[];
2059
+ },
2060
+ body: Folder): Request<void>;
2061
+ /** Reverts changes to a GTM Folder in a GTM Workspace. */
2062
+ revert(request?: {
2063
+ /** V1 error format. */
2064
+ "$.xgafv"?: string;
2065
+ /** OAuth access token. */
2066
+ access_token?: string;
2067
+ /** Data format for response. */
2068
+ alt?: string;
2069
+ /** JSONP */
2070
+ callback?: string;
2071
+ /** Selector specifying which fields to include in a partial response. */
2072
+ fields?: string;
2073
+ /** When provided, this fingerprint must match the fingerprint of the tag in storage. */
2074
+ fingerprint?: string;
2075
+ /** 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. */
2076
+ key?: string;
2077
+ /** OAuth 2.0 token for the current user. */
2078
+ oauth_token?: string;
2079
+ /** GTM Folder's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} */
2080
+ path: string;
2081
+ /** Returns response with indentations and line breaks. */
2082
+ prettyPrint?: boolean;
2083
+ /** 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. */
2084
+ quotaUser?: string;
2085
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2086
+ upload_protocol?: string;
2087
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2088
+ uploadType?: string;
2089
+ }): Request<RevertFolderResponse>;
2090
+ /** Updates a GTM Folder. */
2091
+ update(request: {
2092
+ /** V1 error format. */
2093
+ "$.xgafv"?: string;
2094
+ /** OAuth access token. */
2095
+ access_token?: string;
2096
+ /** Data format for response. */
2097
+ alt?: string;
2098
+ /** JSONP */
2099
+ callback?: string;
2100
+ /** Selector specifying which fields to include in a partial response. */
2101
+ fields?: string;
2102
+ /** When provided, this fingerprint must match the fingerprint of the folder in storage. */
2103
+ fingerprint?: string;
2104
+ /** 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. */
2105
+ key?: string;
2106
+ /** OAuth 2.0 token for the current user. */
2107
+ oauth_token?: string;
2108
+ /** GTM Folder's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} */
2109
+ path: string;
2110
+ /** Returns response with indentations and line breaks. */
2111
+ prettyPrint?: boolean;
2112
+ /** 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. */
2113
+ quotaUser?: string;
2114
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2115
+ upload_protocol?: string;
2116
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2117
+ uploadType?: string;
2118
+ /** Request body */
2119
+ resource: Folder;
2120
+ }): Request<Folder>;
2121
+ update(request: {
2122
+ /** V1 error format. */
2123
+ "$.xgafv"?: string;
2124
+ /** OAuth access token. */
2125
+ access_token?: string;
2126
+ /** Data format for response. */
2127
+ alt?: string;
2128
+ /** JSONP */
2129
+ callback?: string;
2130
+ /** Selector specifying which fields to include in a partial response. */
2131
+ fields?: string;
2132
+ /** When provided, this fingerprint must match the fingerprint of the folder in storage. */
2133
+ fingerprint?: string;
2134
+ /** 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. */
2135
+ key?: string;
2136
+ /** OAuth 2.0 token for the current user. */
2137
+ oauth_token?: string;
2138
+ /** GTM Folder's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} */
2139
+ path: string;
2140
+ /** Returns response with indentations and line breaks. */
2141
+ prettyPrint?: boolean;
2142
+ /** 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. */
2143
+ quotaUser?: string;
2144
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2145
+ upload_protocol?: string;
2146
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2147
+ uploadType?: string;
2148
+ },
2149
+ body: Folder): Request<Folder>;
2150
+ }
2151
+ interface TagsResource {
2152
+ /** Creates a GTM Tag. */
2153
+ create(request: {
2154
+ /** V1 error format. */
2155
+ "$.xgafv"?: string;
2156
+ /** OAuth access token. */
2157
+ access_token?: string;
2158
+ /** Data format for response. */
2159
+ alt?: string;
2160
+ /** JSONP */
2161
+ callback?: string;
2162
+ /** Selector specifying which fields to include in a partial response. */
2163
+ fields?: string;
2164
+ /** 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. */
2165
+ key?: string;
2166
+ /** OAuth 2.0 token for the current user. */
2167
+ oauth_token?: string;
2168
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
2169
+ parent: string;
2170
+ /** Returns response with indentations and line breaks. */
2171
+ prettyPrint?: boolean;
2172
+ /** 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. */
2173
+ quotaUser?: string;
2174
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2175
+ upload_protocol?: string;
2176
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2177
+ uploadType?: string;
2178
+ /** Request body */
2179
+ resource: Tag;
2180
+ }): Request<Tag>;
2181
+ create(request: {
2182
+ /** V1 error format. */
2183
+ "$.xgafv"?: string;
2184
+ /** OAuth access token. */
2185
+ access_token?: string;
2186
+ /** Data format for response. */
2187
+ alt?: string;
2188
+ /** JSONP */
2189
+ callback?: string;
2190
+ /** Selector specifying which fields to include in a partial response. */
2191
+ fields?: string;
2192
+ /** 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. */
2193
+ key?: string;
2194
+ /** OAuth 2.0 token for the current user. */
2195
+ oauth_token?: string;
2196
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
2197
+ parent: string;
2198
+ /** Returns response with indentations and line breaks. */
2199
+ prettyPrint?: boolean;
2200
+ /** 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. */
2201
+ quotaUser?: string;
2202
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2203
+ upload_protocol?: string;
2204
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2205
+ uploadType?: string;
2206
+ },
2207
+ body: Tag): Request<Tag>;
2208
+ /** Deletes a GTM Tag. */
2209
+ delete(request?: {
2210
+ /** V1 error format. */
2211
+ "$.xgafv"?: string;
2212
+ /** OAuth access token. */
2213
+ access_token?: string;
2214
+ /** Data format for response. */
2215
+ alt?: string;
2216
+ /** JSONP */
2217
+ callback?: string;
2218
+ /** Selector specifying which fields to include in a partial response. */
2219
+ fields?: string;
2220
+ /** 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. */
2221
+ key?: string;
2222
+ /** OAuth 2.0 token for the current user. */
2223
+ oauth_token?: string;
2224
+ /** GTM Tag's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} */
2225
+ path: string;
2226
+ /** Returns response with indentations and line breaks. */
2227
+ prettyPrint?: boolean;
2228
+ /** 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. */
2229
+ quotaUser?: string;
2230
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2231
+ upload_protocol?: string;
2232
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2233
+ uploadType?: string;
2234
+ }): Request<void>;
2235
+ /** Gets a GTM Tag. */
2236
+ get(request?: {
2237
+ /** V1 error format. */
2238
+ "$.xgafv"?: string;
2239
+ /** OAuth access token. */
2240
+ access_token?: string;
2241
+ /** Data format for response. */
2242
+ alt?: string;
2243
+ /** JSONP */
2244
+ callback?: string;
2245
+ /** Selector specifying which fields to include in a partial response. */
2246
+ fields?: string;
2247
+ /** 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. */
2248
+ key?: string;
2249
+ /** OAuth 2.0 token for the current user. */
2250
+ oauth_token?: string;
2251
+ /** GTM Tag's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} */
2252
+ path: string;
2253
+ /** Returns response with indentations and line breaks. */
2254
+ prettyPrint?: boolean;
2255
+ /** 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. */
2256
+ quotaUser?: string;
2257
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2258
+ upload_protocol?: string;
2259
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2260
+ uploadType?: string;
2261
+ }): Request<Tag>;
2262
+ /** Lists all GTM Tags of a Container. */
2263
+ list(request?: {
2264
+ /** V1 error format. */
2265
+ "$.xgafv"?: string;
2266
+ /** OAuth access token. */
2267
+ access_token?: string;
2268
+ /** Data format for response. */
2269
+ alt?: string;
2270
+ /** JSONP */
2271
+ callback?: string;
2272
+ /** Selector specifying which fields to include in a partial response. */
2273
+ fields?: string;
2274
+ /** 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. */
2275
+ key?: string;
2276
+ /** OAuth 2.0 token for the current user. */
2277
+ oauth_token?: string;
2278
+ /** Continuation token for fetching the next page of results. */
2279
+ pageToken?: string;
2280
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
2281
+ parent: string;
2282
+ /** Returns response with indentations and line breaks. */
2283
+ prettyPrint?: boolean;
2284
+ /** 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. */
2285
+ quotaUser?: string;
2286
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2287
+ upload_protocol?: string;
2288
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2289
+ uploadType?: string;
2290
+ }): Request<ListTagsResponse>;
2291
+ /** Reverts changes to a GTM Tag in a GTM Workspace. */
2292
+ revert(request?: {
2293
+ /** V1 error format. */
2294
+ "$.xgafv"?: string;
2295
+ /** OAuth access token. */
2296
+ access_token?: string;
2297
+ /** Data format for response. */
2298
+ alt?: string;
2299
+ /** JSONP */
2300
+ callback?: string;
2301
+ /** Selector specifying which fields to include in a partial response. */
2302
+ fields?: string;
2303
+ /** When provided, this fingerprint must match the fingerprint of thetag in storage. */
2304
+ fingerprint?: string;
2305
+ /** 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. */
2306
+ key?: string;
2307
+ /** OAuth 2.0 token for the current user. */
2308
+ oauth_token?: string;
2309
+ /** GTM Tag's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} */
2310
+ path: string;
2311
+ /** Returns response with indentations and line breaks. */
2312
+ prettyPrint?: boolean;
2313
+ /** 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. */
2314
+ quotaUser?: string;
2315
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2316
+ upload_protocol?: string;
2317
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2318
+ uploadType?: string;
2319
+ }): Request<RevertTagResponse>;
2320
+ /** Updates a GTM Tag. */
2321
+ update(request: {
2322
+ /** V1 error format. */
2323
+ "$.xgafv"?: string;
2324
+ /** OAuth access token. */
2325
+ access_token?: string;
2326
+ /** Data format for response. */
2327
+ alt?: string;
2328
+ /** JSONP */
2329
+ callback?: string;
2330
+ /** Selector specifying which fields to include in a partial response. */
2331
+ fields?: string;
2332
+ /** When provided, this fingerprint must match the fingerprint of the tag in storage. */
2333
+ fingerprint?: string;
2334
+ /** 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. */
2335
+ key?: string;
2336
+ /** OAuth 2.0 token for the current user. */
2337
+ oauth_token?: string;
2338
+ /** GTM Tag's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} */
2339
+ path: string;
2340
+ /** Returns response with indentations and line breaks. */
2341
+ prettyPrint?: boolean;
2342
+ /** 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. */
2343
+ quotaUser?: string;
2344
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2345
+ upload_protocol?: string;
2346
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2347
+ uploadType?: string;
2348
+ /** Request body */
2349
+ resource: Tag;
2350
+ }): Request<Tag>;
2351
+ update(request: {
2352
+ /** V1 error format. */
2353
+ "$.xgafv"?: string;
2354
+ /** OAuth access token. */
2355
+ access_token?: string;
2356
+ /** Data format for response. */
2357
+ alt?: string;
2358
+ /** JSONP */
2359
+ callback?: string;
2360
+ /** Selector specifying which fields to include in a partial response. */
2361
+ fields?: string;
2362
+ /** When provided, this fingerprint must match the fingerprint of the tag in storage. */
2363
+ fingerprint?: string;
2364
+ /** 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. */
2365
+ key?: string;
2366
+ /** OAuth 2.0 token for the current user. */
2367
+ oauth_token?: string;
2368
+ /** GTM Tag's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} */
2369
+ path: string;
2370
+ /** Returns response with indentations and line breaks. */
2371
+ prettyPrint?: boolean;
2372
+ /** 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. */
2373
+ quotaUser?: string;
2374
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2375
+ upload_protocol?: string;
2376
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2377
+ uploadType?: string;
2378
+ },
2379
+ body: Tag): Request<Tag>;
2380
+ }
2381
+ interface TemplatesResource {
2382
+ /** Creates a GTM Custom Template. */
2383
+ create(request: {
2384
+ /** V1 error format. */
2385
+ "$.xgafv"?: string;
2386
+ /** OAuth access token. */
2387
+ access_token?: string;
2388
+ /** Data format for response. */
2389
+ alt?: string;
2390
+ /** JSONP */
2391
+ callback?: string;
2392
+ /** Selector specifying which fields to include in a partial response. */
2393
+ fields?: string;
2394
+ /** 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. */
2395
+ key?: string;
2396
+ /** OAuth 2.0 token for the current user. */
2397
+ oauth_token?: string;
2398
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
2399
+ parent: string;
2400
+ /** Returns response with indentations and line breaks. */
2401
+ prettyPrint?: boolean;
2402
+ /** 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. */
2403
+ quotaUser?: string;
2404
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2405
+ upload_protocol?: string;
2406
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2407
+ uploadType?: string;
2408
+ /** Request body */
2409
+ resource: CustomTemplate;
2410
+ }): Request<CustomTemplate>;
2411
+ create(request: {
2412
+ /** V1 error format. */
2413
+ "$.xgafv"?: string;
2414
+ /** OAuth access token. */
2415
+ access_token?: string;
2416
+ /** Data format for response. */
2417
+ alt?: string;
2418
+ /** JSONP */
2419
+ callback?: string;
2420
+ /** Selector specifying which fields to include in a partial response. */
2421
+ fields?: string;
2422
+ /** 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. */
2423
+ key?: string;
2424
+ /** OAuth 2.0 token for the current user. */
2425
+ oauth_token?: string;
2426
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
2427
+ parent: string;
2428
+ /** Returns response with indentations and line breaks. */
2429
+ prettyPrint?: boolean;
2430
+ /** 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. */
2431
+ quotaUser?: string;
2432
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2433
+ upload_protocol?: string;
2434
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2435
+ uploadType?: string;
2436
+ },
2437
+ body: CustomTemplate): Request<CustomTemplate>;
2438
+ /** Deletes a GTM Template. */
2439
+ delete(request?: {
2440
+ /** V1 error format. */
2441
+ "$.xgafv"?: string;
2442
+ /** OAuth access token. */
2443
+ access_token?: string;
2444
+ /** Data format for response. */
2445
+ alt?: string;
2446
+ /** JSONP */
2447
+ callback?: string;
2448
+ /** Selector specifying which fields to include in a partial response. */
2449
+ fields?: string;
2450
+ /** 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. */
2451
+ key?: string;
2452
+ /** OAuth 2.0 token for the current user. */
2453
+ oauth_token?: string;
2454
+ /** GTM Custom Template's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/{template_id} */
2455
+ path: string;
2456
+ /** Returns response with indentations and line breaks. */
2457
+ prettyPrint?: boolean;
2458
+ /** 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. */
2459
+ quotaUser?: string;
2460
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2461
+ upload_protocol?: string;
2462
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2463
+ uploadType?: string;
2464
+ }): Request<void>;
2465
+ /** Gets a GTM Template. */
2466
+ get(request?: {
2467
+ /** V1 error format. */
2468
+ "$.xgafv"?: string;
2469
+ /** OAuth access token. */
2470
+ access_token?: string;
2471
+ /** Data format for response. */
2472
+ alt?: string;
2473
+ /** JSONP */
2474
+ callback?: string;
2475
+ /** Selector specifying which fields to include in a partial response. */
2476
+ fields?: string;
2477
+ /** 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. */
2478
+ key?: string;
2479
+ /** OAuth 2.0 token for the current user. */
2480
+ oauth_token?: string;
2481
+ /** GTM Custom Template's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/{template_id} */
2482
+ path: string;
2483
+ /** Returns response with indentations and line breaks. */
2484
+ prettyPrint?: boolean;
2485
+ /** 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. */
2486
+ quotaUser?: string;
2487
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2488
+ upload_protocol?: string;
2489
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2490
+ uploadType?: string;
2491
+ }): Request<CustomTemplate>;
2492
+ /** Lists all GTM Templates of a GTM container workspace. */
2493
+ list(request?: {
2494
+ /** V1 error format. */
2495
+ "$.xgafv"?: string;
2496
+ /** OAuth access token. */
2497
+ access_token?: string;
2498
+ /** Data format for response. */
2499
+ alt?: string;
2500
+ /** JSONP */
2501
+ callback?: string;
2502
+ /** Selector specifying which fields to include in a partial response. */
2503
+ fields?: string;
2504
+ /** 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. */
2505
+ key?: string;
2506
+ /** OAuth 2.0 token for the current user. */
2507
+ oauth_token?: string;
2508
+ /** Continuation token for fetching the next page of results. */
2509
+ pageToken?: string;
2510
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
2511
+ parent: string;
2512
+ /** Returns response with indentations and line breaks. */
2513
+ prettyPrint?: boolean;
2514
+ /** 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. */
2515
+ quotaUser?: string;
2516
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2517
+ upload_protocol?: string;
2518
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2519
+ uploadType?: string;
2520
+ }): Request<ListTemplatesResponse>;
2521
+ /** Reverts changes to a GTM Template in a GTM Workspace. */
2522
+ revert(request?: {
2523
+ /** V1 error format. */
2524
+ "$.xgafv"?: string;
2525
+ /** OAuth access token. */
2526
+ access_token?: string;
2527
+ /** Data format for response. */
2528
+ alt?: string;
2529
+ /** JSONP */
2530
+ callback?: string;
2531
+ /** Selector specifying which fields to include in a partial response. */
2532
+ fields?: string;
2533
+ /** When provided, this fingerprint must match the fingerprint of the template in storage. */
2534
+ fingerprint?: string;
2535
+ /** 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. */
2536
+ key?: string;
2537
+ /** OAuth 2.0 token for the current user. */
2538
+ oauth_token?: string;
2539
+ /** GTM Custom Template's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/{template_id} */
2540
+ path: string;
2541
+ /** Returns response with indentations and line breaks. */
2542
+ prettyPrint?: boolean;
2543
+ /** 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. */
2544
+ quotaUser?: string;
2545
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2546
+ upload_protocol?: string;
2547
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2548
+ uploadType?: string;
2549
+ }): Request<RevertTemplateResponse>;
2550
+ /** Updates a GTM Template. */
2551
+ update(request: {
2552
+ /** V1 error format. */
2553
+ "$.xgafv"?: string;
2554
+ /** OAuth access token. */
2555
+ access_token?: string;
2556
+ /** Data format for response. */
2557
+ alt?: string;
2558
+ /** JSONP */
2559
+ callback?: string;
2560
+ /** Selector specifying which fields to include in a partial response. */
2561
+ fields?: string;
2562
+ /** When provided, this fingerprint must match the fingerprint of the templates in storage. */
2563
+ fingerprint?: string;
2564
+ /** 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. */
2565
+ key?: string;
2566
+ /** OAuth 2.0 token for the current user. */
2567
+ oauth_token?: string;
2568
+ /** GTM Custom Template's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/{template_id} */
2569
+ path: string;
2570
+ /** Returns response with indentations and line breaks. */
2571
+ prettyPrint?: boolean;
2572
+ /** 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. */
2573
+ quotaUser?: string;
2574
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2575
+ upload_protocol?: string;
2576
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2577
+ uploadType?: string;
2578
+ /** Request body */
2579
+ resource: CustomTemplate;
2580
+ }): Request<CustomTemplate>;
2581
+ update(request: {
2582
+ /** V1 error format. */
2583
+ "$.xgafv"?: string;
2584
+ /** OAuth access token. */
2585
+ access_token?: string;
2586
+ /** Data format for response. */
2587
+ alt?: string;
2588
+ /** JSONP */
2589
+ callback?: string;
2590
+ /** Selector specifying which fields to include in a partial response. */
2591
+ fields?: string;
2592
+ /** When provided, this fingerprint must match the fingerprint of the templates in storage. */
2593
+ fingerprint?: string;
2594
+ /** 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. */
2595
+ key?: string;
2596
+ /** OAuth 2.0 token for the current user. */
2597
+ oauth_token?: string;
2598
+ /** GTM Custom Template's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/{template_id} */
2599
+ path: string;
2600
+ /** Returns response with indentations and line breaks. */
2601
+ prettyPrint?: boolean;
2602
+ /** 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. */
2603
+ quotaUser?: string;
2604
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2605
+ upload_protocol?: string;
2606
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2607
+ uploadType?: string;
2608
+ },
2609
+ body: CustomTemplate): Request<CustomTemplate>;
2610
+ }
2611
+ interface TriggersResource {
2612
+ /** Creates a GTM Trigger. */
2613
+ create(request: {
2614
+ /** V1 error format. */
2615
+ "$.xgafv"?: string;
2616
+ /** OAuth access token. */
2617
+ access_token?: string;
2618
+ /** Data format for response. */
2619
+ alt?: string;
2620
+ /** JSONP */
2621
+ callback?: string;
2622
+ /** Selector specifying which fields to include in a partial response. */
2623
+ fields?: string;
2624
+ /** 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. */
2625
+ key?: string;
2626
+ /** OAuth 2.0 token for the current user. */
2627
+ oauth_token?: string;
2628
+ /** GTM Workspaces's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
2629
+ parent: string;
2630
+ /** Returns response with indentations and line breaks. */
2631
+ prettyPrint?: boolean;
2632
+ /** 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. */
2633
+ quotaUser?: string;
2634
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2635
+ upload_protocol?: string;
2636
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2637
+ uploadType?: string;
2638
+ /** Request body */
2639
+ resource: Trigger;
2640
+ }): Request<Trigger>;
2641
+ create(request: {
2642
+ /** V1 error format. */
2643
+ "$.xgafv"?: string;
2644
+ /** OAuth access token. */
2645
+ access_token?: string;
2646
+ /** Data format for response. */
2647
+ alt?: string;
2648
+ /** JSONP */
2649
+ callback?: string;
2650
+ /** Selector specifying which fields to include in a partial response. */
2651
+ fields?: string;
2652
+ /** 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. */
2653
+ key?: string;
2654
+ /** OAuth 2.0 token for the current user. */
2655
+ oauth_token?: string;
2656
+ /** GTM Workspaces's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
2657
+ parent: string;
2658
+ /** Returns response with indentations and line breaks. */
2659
+ prettyPrint?: boolean;
2660
+ /** 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. */
2661
+ quotaUser?: string;
2662
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2663
+ upload_protocol?: string;
2664
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2665
+ uploadType?: string;
2666
+ },
2667
+ body: Trigger): Request<Trigger>;
2668
+ /** Deletes a GTM Trigger. */
2669
+ delete(request?: {
2670
+ /** V1 error format. */
2671
+ "$.xgafv"?: string;
2672
+ /** OAuth access token. */
2673
+ access_token?: string;
2674
+ /** Data format for response. */
2675
+ alt?: string;
2676
+ /** JSONP */
2677
+ callback?: string;
2678
+ /** Selector specifying which fields to include in a partial response. */
2679
+ fields?: string;
2680
+ /** 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. */
2681
+ key?: string;
2682
+ /** OAuth 2.0 token for the current user. */
2683
+ oauth_token?: string;
2684
+ /** GTM Trigger's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_id} */
2685
+ path: string;
2686
+ /** Returns response with indentations and line breaks. */
2687
+ prettyPrint?: boolean;
2688
+ /** 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. */
2689
+ quotaUser?: string;
2690
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2691
+ upload_protocol?: string;
2692
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2693
+ uploadType?: string;
2694
+ }): Request<void>;
2695
+ /** Gets a GTM Trigger. */
2696
+ get(request?: {
2697
+ /** V1 error format. */
2698
+ "$.xgafv"?: string;
2699
+ /** OAuth access token. */
2700
+ access_token?: string;
2701
+ /** Data format for response. */
2702
+ alt?: string;
2703
+ /** JSONP */
2704
+ callback?: string;
2705
+ /** Selector specifying which fields to include in a partial response. */
2706
+ fields?: string;
2707
+ /** 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. */
2708
+ key?: string;
2709
+ /** OAuth 2.0 token for the current user. */
2710
+ oauth_token?: string;
2711
+ /** GTM Trigger's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_id} */
2712
+ path: string;
2713
+ /** Returns response with indentations and line breaks. */
2714
+ prettyPrint?: boolean;
2715
+ /** 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. */
2716
+ quotaUser?: string;
2717
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2718
+ upload_protocol?: string;
2719
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2720
+ uploadType?: string;
2721
+ }): Request<Trigger>;
2722
+ /** Lists all GTM Triggers of a Container. */
2723
+ list(request?: {
2724
+ /** V1 error format. */
2725
+ "$.xgafv"?: string;
2726
+ /** OAuth access token. */
2727
+ access_token?: string;
2728
+ /** Data format for response. */
2729
+ alt?: string;
2730
+ /** JSONP */
2731
+ callback?: string;
2732
+ /** Selector specifying which fields to include in a partial response. */
2733
+ fields?: string;
2734
+ /** 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. */
2735
+ key?: string;
2736
+ /** OAuth 2.0 token for the current user. */
2737
+ oauth_token?: string;
2738
+ /** Continuation token for fetching the next page of results. */
2739
+ pageToken?: string;
2740
+ /** GTM Workspaces's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
2741
+ parent: string;
2742
+ /** Returns response with indentations and line breaks. */
2743
+ prettyPrint?: boolean;
2744
+ /** 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. */
2745
+ quotaUser?: string;
2746
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2747
+ upload_protocol?: string;
2748
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2749
+ uploadType?: string;
2750
+ }): Request<ListTriggersResponse>;
2751
+ /** Reverts changes to a GTM Trigger in a GTM Workspace. */
2752
+ revert(request?: {
2753
+ /** V1 error format. */
2754
+ "$.xgafv"?: string;
2755
+ /** OAuth access token. */
2756
+ access_token?: string;
2757
+ /** Data format for response. */
2758
+ alt?: string;
2759
+ /** JSONP */
2760
+ callback?: string;
2761
+ /** Selector specifying which fields to include in a partial response. */
2762
+ fields?: string;
2763
+ /** When provided, this fingerprint must match the fingerprint of the trigger in storage. */
2764
+ fingerprint?: string;
2765
+ /** 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. */
2766
+ key?: string;
2767
+ /** OAuth 2.0 token for the current user. */
2768
+ oauth_token?: string;
2769
+ /** GTM Trigger's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_id} */
2770
+ path: string;
2771
+ /** Returns response with indentations and line breaks. */
2772
+ prettyPrint?: boolean;
2773
+ /** 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. */
2774
+ quotaUser?: string;
2775
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2776
+ upload_protocol?: string;
2777
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2778
+ uploadType?: string;
2779
+ }): Request<RevertTriggerResponse>;
2780
+ /** Updates a GTM Trigger. */
2781
+ update(request: {
2782
+ /** V1 error format. */
2783
+ "$.xgafv"?: string;
2784
+ /** OAuth access token. */
2785
+ access_token?: string;
2786
+ /** Data format for response. */
2787
+ alt?: string;
2788
+ /** JSONP */
2789
+ callback?: string;
2790
+ /** Selector specifying which fields to include in a partial response. */
2791
+ fields?: string;
2792
+ /** When provided, this fingerprint must match the fingerprint of the trigger in storage. */
2793
+ fingerprint?: string;
2794
+ /** 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. */
2795
+ key?: string;
2796
+ /** OAuth 2.0 token for the current user. */
2797
+ oauth_token?: string;
2798
+ /** GTM Trigger's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_id} */
2799
+ path: string;
2800
+ /** Returns response with indentations and line breaks. */
2801
+ prettyPrint?: boolean;
2802
+ /** 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. */
2803
+ quotaUser?: string;
2804
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2805
+ upload_protocol?: string;
2806
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2807
+ uploadType?: string;
2808
+ /** Request body */
2809
+ resource: Trigger;
2810
+ }): Request<Trigger>;
2811
+ update(request: {
2812
+ /** V1 error format. */
2813
+ "$.xgafv"?: string;
2814
+ /** OAuth access token. */
2815
+ access_token?: string;
2816
+ /** Data format for response. */
2817
+ alt?: string;
2818
+ /** JSONP */
2819
+ callback?: string;
2820
+ /** Selector specifying which fields to include in a partial response. */
2821
+ fields?: string;
2822
+ /** When provided, this fingerprint must match the fingerprint of the trigger in storage. */
2823
+ fingerprint?: string;
2824
+ /** 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. */
2825
+ key?: string;
2826
+ /** OAuth 2.0 token for the current user. */
2827
+ oauth_token?: string;
2828
+ /** GTM Trigger's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_id} */
2829
+ path: string;
2830
+ /** Returns response with indentations and line breaks. */
2831
+ prettyPrint?: boolean;
2832
+ /** 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. */
2833
+ quotaUser?: string;
2834
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2835
+ upload_protocol?: string;
2836
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2837
+ uploadType?: string;
2838
+ },
2839
+ body: Trigger): Request<Trigger>;
2840
+ }
2841
+ interface VariablesResource {
2842
+ /** Creates a GTM Variable. */
2843
+ create(request: {
2844
+ /** V1 error format. */
2845
+ "$.xgafv"?: string;
2846
+ /** OAuth access token. */
2847
+ access_token?: string;
2848
+ /** Data format for response. */
2849
+ alt?: string;
2850
+ /** JSONP */
2851
+ callback?: string;
2852
+ /** Selector specifying which fields to include in a partial response. */
2853
+ fields?: string;
2854
+ /** 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. */
2855
+ key?: string;
2856
+ /** OAuth 2.0 token for the current user. */
2857
+ oauth_token?: string;
2858
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
2859
+ parent: string;
2860
+ /** Returns response with indentations and line breaks. */
2861
+ prettyPrint?: boolean;
2862
+ /** 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. */
2863
+ quotaUser?: string;
2864
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2865
+ upload_protocol?: string;
2866
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2867
+ uploadType?: string;
2868
+ /** Request body */
2869
+ resource: Variable;
2870
+ }): Request<Variable>;
2871
+ create(request: {
2872
+ /** V1 error format. */
2873
+ "$.xgafv"?: string;
2874
+ /** OAuth access token. */
2875
+ access_token?: string;
2876
+ /** Data format for response. */
2877
+ alt?: string;
2878
+ /** JSONP */
2879
+ callback?: string;
2880
+ /** Selector specifying which fields to include in a partial response. */
2881
+ fields?: string;
2882
+ /** 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. */
2883
+ key?: string;
2884
+ /** OAuth 2.0 token for the current user. */
2885
+ oauth_token?: string;
2886
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
2887
+ parent: string;
2888
+ /** Returns response with indentations and line breaks. */
2889
+ prettyPrint?: boolean;
2890
+ /** 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. */
2891
+ quotaUser?: string;
2892
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2893
+ upload_protocol?: string;
2894
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2895
+ uploadType?: string;
2896
+ },
2897
+ body: Variable): Request<Variable>;
2898
+ /** Deletes a GTM Variable. */
2899
+ delete(request?: {
2900
+ /** V1 error format. */
2901
+ "$.xgafv"?: string;
2902
+ /** OAuth access token. */
2903
+ access_token?: string;
2904
+ /** Data format for response. */
2905
+ alt?: string;
2906
+ /** JSONP */
2907
+ callback?: string;
2908
+ /** Selector specifying which fields to include in a partial response. */
2909
+ fields?: string;
2910
+ /** 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. */
2911
+ key?: string;
2912
+ /** OAuth 2.0 token for the current user. */
2913
+ oauth_token?: string;
2914
+ /** GTM Variable's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variable_id} */
2915
+ path: string;
2916
+ /** Returns response with indentations and line breaks. */
2917
+ prettyPrint?: boolean;
2918
+ /** 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. */
2919
+ quotaUser?: string;
2920
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2921
+ upload_protocol?: string;
2922
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2923
+ uploadType?: string;
2924
+ }): Request<void>;
2925
+ /** Gets a GTM Variable. */
2926
+ get(request?: {
2927
+ /** V1 error format. */
2928
+ "$.xgafv"?: string;
2929
+ /** OAuth access token. */
2930
+ access_token?: string;
2931
+ /** Data format for response. */
2932
+ alt?: string;
2933
+ /** JSONP */
2934
+ callback?: string;
2935
+ /** Selector specifying which fields to include in a partial response. */
2936
+ fields?: string;
2937
+ /** 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. */
2938
+ key?: string;
2939
+ /** OAuth 2.0 token for the current user. */
2940
+ oauth_token?: string;
2941
+ /** GTM Variable's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variable_id} */
2942
+ path: string;
2943
+ /** Returns response with indentations and line breaks. */
2944
+ prettyPrint?: boolean;
2945
+ /** 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. */
2946
+ quotaUser?: string;
2947
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2948
+ upload_protocol?: string;
2949
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2950
+ uploadType?: string;
2951
+ }): Request<Variable>;
2952
+ /** Lists all GTM Variables of a Container. */
2953
+ list(request?: {
2954
+ /** V1 error format. */
2955
+ "$.xgafv"?: string;
2956
+ /** OAuth access token. */
2957
+ access_token?: string;
2958
+ /** Data format for response. */
2959
+ alt?: string;
2960
+ /** JSONP */
2961
+ callback?: string;
2962
+ /** Selector specifying which fields to include in a partial response. */
2963
+ fields?: string;
2964
+ /** 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. */
2965
+ key?: string;
2966
+ /** OAuth 2.0 token for the current user. */
2967
+ oauth_token?: string;
2968
+ /** Continuation token for fetching the next page of results. */
2969
+ pageToken?: string;
2970
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
2971
+ parent: string;
2972
+ /** Returns response with indentations and line breaks. */
2973
+ prettyPrint?: boolean;
2974
+ /** 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. */
2975
+ quotaUser?: string;
2976
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2977
+ upload_protocol?: string;
2978
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2979
+ uploadType?: string;
2980
+ }): Request<ListVariablesResponse>;
2981
+ /** Reverts changes to a GTM Variable in a GTM Workspace. */
2982
+ revert(request?: {
2983
+ /** V1 error format. */
2984
+ "$.xgafv"?: string;
2985
+ /** OAuth access token. */
2986
+ access_token?: string;
2987
+ /** Data format for response. */
2988
+ alt?: string;
2989
+ /** JSONP */
2990
+ callback?: string;
2991
+ /** Selector specifying which fields to include in a partial response. */
2992
+ fields?: string;
2993
+ /** When provided, this fingerprint must match the fingerprint of the variable in storage. */
2994
+ fingerprint?: string;
2995
+ /** 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. */
2996
+ key?: string;
2997
+ /** OAuth 2.0 token for the current user. */
2998
+ oauth_token?: string;
2999
+ /** GTM Variable's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variable_id} */
3000
+ path: string;
3001
+ /** Returns response with indentations and line breaks. */
3002
+ prettyPrint?: boolean;
3003
+ /** 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. */
3004
+ quotaUser?: string;
3005
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3006
+ upload_protocol?: string;
3007
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3008
+ uploadType?: string;
3009
+ }): Request<RevertVariableResponse>;
3010
+ /** Updates a GTM Variable. */
3011
+ update(request: {
3012
+ /** V1 error format. */
3013
+ "$.xgafv"?: string;
3014
+ /** OAuth access token. */
3015
+ access_token?: string;
3016
+ /** Data format for response. */
3017
+ alt?: string;
3018
+ /** JSONP */
3019
+ callback?: string;
3020
+ /** Selector specifying which fields to include in a partial response. */
3021
+ fields?: string;
3022
+ /** When provided, this fingerprint must match the fingerprint of the variable in storage. */
3023
+ fingerprint?: string;
3024
+ /** 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. */
3025
+ key?: string;
3026
+ /** OAuth 2.0 token for the current user. */
3027
+ oauth_token?: string;
3028
+ /** GTM Variable's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variable_id} */
3029
+ path: string;
3030
+ /** Returns response with indentations and line breaks. */
3031
+ prettyPrint?: boolean;
3032
+ /** 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. */
3033
+ quotaUser?: string;
3034
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3035
+ upload_protocol?: string;
3036
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3037
+ uploadType?: string;
3038
+ /** Request body */
3039
+ resource: Variable;
3040
+ }): Request<Variable>;
3041
+ update(request: {
3042
+ /** V1 error format. */
3043
+ "$.xgafv"?: string;
3044
+ /** OAuth access token. */
3045
+ access_token?: string;
3046
+ /** Data format for response. */
3047
+ alt?: string;
3048
+ /** JSONP */
3049
+ callback?: string;
3050
+ /** Selector specifying which fields to include in a partial response. */
3051
+ fields?: string;
3052
+ /** When provided, this fingerprint must match the fingerprint of the variable in storage. */
3053
+ fingerprint?: string;
3054
+ /** 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. */
3055
+ key?: string;
3056
+ /** OAuth 2.0 token for the current user. */
3057
+ oauth_token?: string;
3058
+ /** GTM Variable's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variable_id} */
3059
+ path: string;
3060
+ /** Returns response with indentations and line breaks. */
3061
+ prettyPrint?: boolean;
3062
+ /** 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. */
3063
+ quotaUser?: string;
3064
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3065
+ upload_protocol?: string;
3066
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3067
+ uploadType?: string;
3068
+ },
3069
+ body: Variable): Request<Variable>;
3070
+ }
3071
+ interface ZonesResource {
3072
+ /** Creates a GTM Zone. */
3073
+ create(request: {
3074
+ /** V1 error format. */
3075
+ "$.xgafv"?: string;
3076
+ /** OAuth access token. */
3077
+ access_token?: string;
3078
+ /** Data format for response. */
3079
+ alt?: string;
3080
+ /** JSONP */
3081
+ callback?: string;
3082
+ /** Selector specifying which fields to include in a partial response. */
3083
+ fields?: string;
3084
+ /** 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. */
3085
+ key?: string;
3086
+ /** OAuth 2.0 token for the current user. */
3087
+ oauth_token?: string;
3088
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3089
+ parent: string;
3090
+ /** Returns response with indentations and line breaks. */
3091
+ prettyPrint?: boolean;
3092
+ /** 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. */
3093
+ quotaUser?: string;
3094
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3095
+ upload_protocol?: string;
3096
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3097
+ uploadType?: string;
3098
+ /** Request body */
3099
+ resource: Zone;
3100
+ }): Request<Zone>;
3101
+ create(request: {
3102
+ /** V1 error format. */
3103
+ "$.xgafv"?: string;
3104
+ /** OAuth access token. */
3105
+ access_token?: string;
3106
+ /** Data format for response. */
3107
+ alt?: string;
3108
+ /** JSONP */
3109
+ callback?: string;
3110
+ /** Selector specifying which fields to include in a partial response. */
3111
+ fields?: string;
3112
+ /** 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. */
3113
+ key?: string;
3114
+ /** OAuth 2.0 token for the current user. */
3115
+ oauth_token?: string;
3116
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3117
+ parent: string;
3118
+ /** Returns response with indentations and line breaks. */
3119
+ prettyPrint?: boolean;
3120
+ /** 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. */
3121
+ quotaUser?: string;
3122
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3123
+ upload_protocol?: string;
3124
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3125
+ uploadType?: string;
3126
+ },
3127
+ body: Zone): Request<Zone>;
3128
+ /** Deletes a GTM Zone. */
3129
+ delete(request?: {
3130
+ /** V1 error format. */
3131
+ "$.xgafv"?: string;
3132
+ /** OAuth access token. */
3133
+ access_token?: string;
3134
+ /** Data format for response. */
3135
+ alt?: string;
3136
+ /** JSONP */
3137
+ callback?: string;
3138
+ /** Selector specifying which fields to include in a partial response. */
3139
+ fields?: string;
3140
+ /** 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. */
3141
+ key?: string;
3142
+ /** OAuth 2.0 token for the current user. */
3143
+ oauth_token?: string;
3144
+ /** GTM Zone's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} */
3145
+ path: string;
3146
+ /** Returns response with indentations and line breaks. */
3147
+ prettyPrint?: boolean;
3148
+ /** 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. */
3149
+ quotaUser?: string;
3150
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3151
+ upload_protocol?: string;
3152
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3153
+ uploadType?: string;
3154
+ }): Request<void>;
3155
+ /** Gets a GTM Zone. */
3156
+ get(request?: {
3157
+ /** V1 error format. */
3158
+ "$.xgafv"?: string;
3159
+ /** OAuth access token. */
3160
+ access_token?: string;
3161
+ /** Data format for response. */
3162
+ alt?: string;
3163
+ /** JSONP */
3164
+ callback?: string;
3165
+ /** Selector specifying which fields to include in a partial response. */
3166
+ fields?: string;
3167
+ /** 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. */
3168
+ key?: string;
3169
+ /** OAuth 2.0 token for the current user. */
3170
+ oauth_token?: string;
3171
+ /** GTM Zone's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} */
3172
+ path: string;
3173
+ /** Returns response with indentations and line breaks. */
3174
+ prettyPrint?: boolean;
3175
+ /** 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. */
3176
+ quotaUser?: string;
3177
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3178
+ upload_protocol?: string;
3179
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3180
+ uploadType?: string;
3181
+ }): Request<Zone>;
3182
+ /** Lists all GTM Zones of a GTM container workspace. */
3183
+ list(request?: {
3184
+ /** V1 error format. */
3185
+ "$.xgafv"?: string;
3186
+ /** OAuth access token. */
3187
+ access_token?: string;
3188
+ /** Data format for response. */
3189
+ alt?: string;
3190
+ /** JSONP */
3191
+ callback?: string;
3192
+ /** Selector specifying which fields to include in a partial response. */
3193
+ fields?: string;
3194
+ /** 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. */
3195
+ key?: string;
3196
+ /** OAuth 2.0 token for the current user. */
3197
+ oauth_token?: string;
3198
+ /** Continuation token for fetching the next page of results. */
3199
+ pageToken?: string;
3200
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3201
+ parent: string;
3202
+ /** Returns response with indentations and line breaks. */
3203
+ prettyPrint?: boolean;
3204
+ /** 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. */
3205
+ quotaUser?: string;
3206
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3207
+ upload_protocol?: string;
3208
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3209
+ uploadType?: string;
3210
+ }): Request<ListZonesResponse>;
3211
+ /** Reverts changes to a GTM Zone in a GTM Workspace. */
3212
+ revert(request?: {
3213
+ /** V1 error format. */
3214
+ "$.xgafv"?: string;
3215
+ /** OAuth access token. */
3216
+ access_token?: string;
3217
+ /** Data format for response. */
3218
+ alt?: string;
3219
+ /** JSONP */
3220
+ callback?: string;
3221
+ /** Selector specifying which fields to include in a partial response. */
3222
+ fields?: string;
3223
+ /** When provided, this fingerprint must match the fingerprint of the zone in storage. */
3224
+ fingerprint?: string;
3225
+ /** 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. */
3226
+ key?: string;
3227
+ /** OAuth 2.0 token for the current user. */
3228
+ oauth_token?: string;
3229
+ /** GTM Zone's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} */
3230
+ path: string;
3231
+ /** Returns response with indentations and line breaks. */
3232
+ prettyPrint?: boolean;
3233
+ /** 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. */
3234
+ quotaUser?: string;
3235
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3236
+ upload_protocol?: string;
3237
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3238
+ uploadType?: string;
3239
+ }): Request<RevertZoneResponse>;
3240
+ /** Updates a GTM Zone. */
3241
+ update(request: {
3242
+ /** V1 error format. */
3243
+ "$.xgafv"?: string;
3244
+ /** OAuth access token. */
3245
+ access_token?: string;
3246
+ /** Data format for response. */
3247
+ alt?: string;
3248
+ /** JSONP */
3249
+ callback?: string;
3250
+ /** Selector specifying which fields to include in a partial response. */
3251
+ fields?: string;
3252
+ /** When provided, this fingerprint must match the fingerprint of the zone in storage. */
3253
+ fingerprint?: string;
3254
+ /** 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. */
3255
+ key?: string;
3256
+ /** OAuth 2.0 token for the current user. */
3257
+ oauth_token?: string;
3258
+ /** GTM Zone's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} */
3259
+ path: string;
3260
+ /** Returns response with indentations and line breaks. */
3261
+ prettyPrint?: boolean;
3262
+ /** 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. */
3263
+ quotaUser?: string;
3264
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3265
+ upload_protocol?: string;
3266
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3267
+ uploadType?: string;
3268
+ /** Request body */
3269
+ resource: Zone;
3270
+ }): Request<Zone>;
3271
+ update(request: {
3272
+ /** V1 error format. */
3273
+ "$.xgafv"?: string;
3274
+ /** OAuth access token. */
3275
+ access_token?: string;
3276
+ /** Data format for response. */
3277
+ alt?: string;
3278
+ /** JSONP */
3279
+ callback?: string;
3280
+ /** Selector specifying which fields to include in a partial response. */
3281
+ fields?: string;
3282
+ /** When provided, this fingerprint must match the fingerprint of the zone in storage. */
3283
+ fingerprint?: string;
3284
+ /** 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. */
3285
+ key?: string;
3286
+ /** OAuth 2.0 token for the current user. */
3287
+ oauth_token?: string;
3288
+ /** GTM Zone's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} */
3289
+ path: string;
3290
+ /** Returns response with indentations and line breaks. */
3291
+ prettyPrint?: boolean;
3292
+ /** 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. */
3293
+ quotaUser?: string;
3294
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3295
+ upload_protocol?: string;
3296
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3297
+ uploadType?: string;
3298
+ },
3299
+ body: Zone): Request<Zone>;
3300
+ }
3301
+ interface WorkspacesResource {
3302
+ /** Creates a Workspace. */
3303
+ create(request: {
3304
+ /** V1 error format. */
3305
+ "$.xgafv"?: string;
3306
+ /** OAuth access token. */
3307
+ access_token?: string;
3308
+ /** Data format for response. */
3309
+ alt?: string;
3310
+ /** JSONP */
3311
+ callback?: string;
3312
+ /** Selector specifying which fields to include in a partial response. */
3313
+ fields?: string;
3314
+ /** 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. */
3315
+ key?: string;
3316
+ /** OAuth 2.0 token for the current user. */
3317
+ oauth_token?: string;
3318
+ /** GTM parent Container's API relative path. Example: accounts/{account_id}/containers/{container_id} */
3319
+ parent: string;
3320
+ /** Returns response with indentations and line breaks. */
3321
+ prettyPrint?: boolean;
3322
+ /** 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. */
3323
+ quotaUser?: string;
3324
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3325
+ upload_protocol?: string;
3326
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3327
+ uploadType?: string;
3328
+ /** Request body */
3329
+ resource: Workspace;
3330
+ }): Request<Workspace>;
3331
+ create(request: {
3332
+ /** V1 error format. */
3333
+ "$.xgafv"?: string;
3334
+ /** OAuth access token. */
3335
+ access_token?: string;
3336
+ /** Data format for response. */
3337
+ alt?: string;
3338
+ /** JSONP */
3339
+ callback?: string;
3340
+ /** Selector specifying which fields to include in a partial response. */
3341
+ fields?: string;
3342
+ /** 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. */
3343
+ key?: string;
3344
+ /** OAuth 2.0 token for the current user. */
3345
+ oauth_token?: string;
3346
+ /** GTM parent Container's API relative path. Example: accounts/{account_id}/containers/{container_id} */
3347
+ parent: string;
3348
+ /** Returns response with indentations and line breaks. */
3349
+ prettyPrint?: boolean;
3350
+ /** 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. */
3351
+ quotaUser?: string;
3352
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3353
+ upload_protocol?: string;
3354
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3355
+ uploadType?: string;
3356
+ },
3357
+ body: Workspace): Request<Workspace>;
3358
+ /** Creates a Container Version from the entities present in the workspace, deletes the workspace, and sets the base container version to the newly created version. */
3359
+ create_version(request: {
3360
+ /** V1 error format. */
3361
+ "$.xgafv"?: string;
3362
+ /** OAuth access token. */
3363
+ access_token?: string;
3364
+ /** Data format for response. */
3365
+ alt?: string;
3366
+ /** JSONP */
3367
+ callback?: string;
3368
+ /** Selector specifying which fields to include in a partial response. */
3369
+ fields?: string;
3370
+ /** 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. */
3371
+ key?: string;
3372
+ /** OAuth 2.0 token for the current user. */
3373
+ oauth_token?: string;
3374
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3375
+ path: string;
3376
+ /** Returns response with indentations and line breaks. */
3377
+ prettyPrint?: boolean;
3378
+ /** 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. */
3379
+ quotaUser?: string;
3380
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3381
+ upload_protocol?: string;
3382
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3383
+ uploadType?: string;
3384
+ /** Request body */
3385
+ resource: CreateContainerVersionRequestVersionOptions;
3386
+ }): Request<CreateContainerVersionResponse>;
3387
+ create_version(request: {
3388
+ /** V1 error format. */
3389
+ "$.xgafv"?: string;
3390
+ /** OAuth access token. */
3391
+ access_token?: string;
3392
+ /** Data format for response. */
3393
+ alt?: string;
3394
+ /** JSONP */
3395
+ callback?: string;
3396
+ /** Selector specifying which fields to include in a partial response. */
3397
+ fields?: string;
3398
+ /** 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. */
3399
+ key?: string;
3400
+ /** OAuth 2.0 token for the current user. */
3401
+ oauth_token?: string;
3402
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3403
+ path: string;
3404
+ /** Returns response with indentations and line breaks. */
3405
+ prettyPrint?: boolean;
3406
+ /** 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. */
3407
+ quotaUser?: string;
3408
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3409
+ upload_protocol?: string;
3410
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3411
+ uploadType?: string;
3412
+ },
3413
+ body: CreateContainerVersionRequestVersionOptions): Request<CreateContainerVersionResponse>;
3414
+ /** Deletes a Workspace. */
3415
+ delete(request?: {
3416
+ /** V1 error format. */
3417
+ "$.xgafv"?: string;
3418
+ /** OAuth access token. */
3419
+ access_token?: string;
3420
+ /** Data format for response. */
3421
+ alt?: string;
3422
+ /** JSONP */
3423
+ callback?: string;
3424
+ /** Selector specifying which fields to include in a partial response. */
3425
+ fields?: string;
3426
+ /** 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. */
3427
+ key?: string;
3428
+ /** OAuth 2.0 token for the current user. */
3429
+ oauth_token?: string;
3430
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3431
+ path: string;
3432
+ /** Returns response with indentations and line breaks. */
3433
+ prettyPrint?: boolean;
3434
+ /** 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. */
3435
+ quotaUser?: string;
3436
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3437
+ upload_protocol?: string;
3438
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3439
+ uploadType?: string;
3440
+ }): Request<void>;
3441
+ /** Gets a Workspace. */
3442
+ get(request?: {
3443
+ /** V1 error format. */
3444
+ "$.xgafv"?: string;
3445
+ /** OAuth access token. */
3446
+ access_token?: string;
3447
+ /** Data format for response. */
3448
+ alt?: string;
3449
+ /** JSONP */
3450
+ callback?: string;
3451
+ /** Selector specifying which fields to include in a partial response. */
3452
+ fields?: string;
3453
+ /** 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. */
3454
+ key?: string;
3455
+ /** OAuth 2.0 token for the current user. */
3456
+ oauth_token?: string;
3457
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3458
+ path: string;
3459
+ /** Returns response with indentations and line breaks. */
3460
+ prettyPrint?: boolean;
3461
+ /** 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. */
3462
+ quotaUser?: string;
3463
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3464
+ upload_protocol?: string;
3465
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3466
+ uploadType?: string;
3467
+ }): Request<Workspace>;
3468
+ /** Finds conflicting and modified entities in the workspace. */
3469
+ getStatus(request?: {
3470
+ /** V1 error format. */
3471
+ "$.xgafv"?: string;
3472
+ /** OAuth access token. */
3473
+ access_token?: string;
3474
+ /** Data format for response. */
3475
+ alt?: string;
3476
+ /** JSONP */
3477
+ callback?: string;
3478
+ /** Selector specifying which fields to include in a partial response. */
3479
+ fields?: string;
3480
+ /** 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. */
3481
+ key?: string;
3482
+ /** OAuth 2.0 token for the current user. */
3483
+ oauth_token?: string;
3484
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3485
+ path: string;
3486
+ /** Returns response with indentations and line breaks. */
3487
+ prettyPrint?: boolean;
3488
+ /** 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. */
3489
+ quotaUser?: string;
3490
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3491
+ upload_protocol?: string;
3492
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3493
+ uploadType?: string;
3494
+ }): Request<GetWorkspaceStatusResponse>;
3495
+ /** Lists all Workspaces that belong to a GTM Container. */
3496
+ list(request?: {
3497
+ /** V1 error format. */
3498
+ "$.xgafv"?: string;
3499
+ /** OAuth access token. */
3500
+ access_token?: string;
3501
+ /** Data format for response. */
3502
+ alt?: string;
3503
+ /** JSONP */
3504
+ callback?: string;
3505
+ /** Selector specifying which fields to include in a partial response. */
3506
+ fields?: string;
3507
+ /** 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. */
3508
+ key?: string;
3509
+ /** OAuth 2.0 token for the current user. */
3510
+ oauth_token?: string;
3511
+ /** Continuation token for fetching the next page of results. */
3512
+ pageToken?: string;
3513
+ /** GTM parent Container's API relative path. Example: accounts/{account_id}/containers/{container_id} */
3514
+ parent: string;
3515
+ /** Returns response with indentations and line breaks. */
3516
+ prettyPrint?: boolean;
3517
+ /** 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. */
3518
+ quotaUser?: string;
3519
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3520
+ upload_protocol?: string;
3521
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3522
+ uploadType?: string;
3523
+ }): Request<ListWorkspacesResponse>;
3524
+ /** Quick previews a workspace by creating a fake container version from all entities in the provided workspace. */
3525
+ quick_preview(request?: {
3526
+ /** V1 error format. */
3527
+ "$.xgafv"?: string;
3528
+ /** OAuth access token. */
3529
+ access_token?: string;
3530
+ /** Data format for response. */
3531
+ alt?: string;
3532
+ /** JSONP */
3533
+ callback?: string;
3534
+ /** Selector specifying which fields to include in a partial response. */
3535
+ fields?: string;
3536
+ /** 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. */
3537
+ key?: string;
3538
+ /** OAuth 2.0 token for the current user. */
3539
+ oauth_token?: string;
3540
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3541
+ path: string;
3542
+ /** Returns response with indentations and line breaks. */
3543
+ prettyPrint?: boolean;
3544
+ /** 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. */
3545
+ quotaUser?: string;
3546
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3547
+ upload_protocol?: string;
3548
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3549
+ uploadType?: string;
3550
+ }): Request<QuickPreviewResponse>;
3551
+ /** Resolves a merge conflict for a workspace entity by updating it to the resolved entity passed in the request. */
3552
+ resolve_conflict(request: {
3553
+ /** V1 error format. */
3554
+ "$.xgafv"?: string;
3555
+ /** OAuth access token. */
3556
+ access_token?: string;
3557
+ /** Data format for response. */
3558
+ alt?: string;
3559
+ /** JSONP */
3560
+ callback?: string;
3561
+ /** Selector specifying which fields to include in a partial response. */
3562
+ fields?: string;
3563
+ /** When provided, this fingerprint must match the fingerprint of the entity_in_workspace in the merge conflict. */
3564
+ fingerprint?: string;
3565
+ /** 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. */
3566
+ key?: string;
3567
+ /** OAuth 2.0 token for the current user. */
3568
+ oauth_token?: string;
3569
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3570
+ path: string;
3571
+ /** Returns response with indentations and line breaks. */
3572
+ prettyPrint?: boolean;
3573
+ /** 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. */
3574
+ quotaUser?: string;
3575
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3576
+ upload_protocol?: string;
3577
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3578
+ uploadType?: string;
3579
+ /** Request body */
3580
+ resource: Entity;
3581
+ }): Request<void>;
3582
+ resolve_conflict(request: {
3583
+ /** V1 error format. */
3584
+ "$.xgafv"?: string;
3585
+ /** OAuth access token. */
3586
+ access_token?: string;
3587
+ /** Data format for response. */
3588
+ alt?: string;
3589
+ /** JSONP */
3590
+ callback?: string;
3591
+ /** Selector specifying which fields to include in a partial response. */
3592
+ fields?: string;
3593
+ /** When provided, this fingerprint must match the fingerprint of the entity_in_workspace in the merge conflict. */
3594
+ fingerprint?: string;
3595
+ /** 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. */
3596
+ key?: string;
3597
+ /** OAuth 2.0 token for the current user. */
3598
+ oauth_token?: string;
3599
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3600
+ path: string;
3601
+ /** Returns response with indentations and line breaks. */
3602
+ prettyPrint?: boolean;
3603
+ /** 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. */
3604
+ quotaUser?: string;
3605
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3606
+ upload_protocol?: string;
3607
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3608
+ uploadType?: string;
3609
+ },
3610
+ body: Entity): Request<void>;
3611
+ /** Syncs a workspace to the latest container version by updating all unmodified workspace entities and displaying conflicts for modified entities. */
3612
+ sync(request?: {
3613
+ /** V1 error format. */
3614
+ "$.xgafv"?: string;
3615
+ /** OAuth access token. */
3616
+ access_token?: string;
3617
+ /** Data format for response. */
3618
+ alt?: string;
3619
+ /** JSONP */
3620
+ callback?: string;
3621
+ /** Selector specifying which fields to include in a partial response. */
3622
+ fields?: string;
3623
+ /** 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. */
3624
+ key?: string;
3625
+ /** OAuth 2.0 token for the current user. */
3626
+ oauth_token?: string;
3627
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3628
+ path: string;
3629
+ /** Returns response with indentations and line breaks. */
3630
+ prettyPrint?: boolean;
3631
+ /** 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. */
3632
+ quotaUser?: string;
3633
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3634
+ upload_protocol?: string;
3635
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3636
+ uploadType?: string;
3637
+ }): Request<SyncWorkspaceResponse>;
3638
+ /** Updates a Workspace. */
3639
+ update(request: {
3640
+ /** V1 error format. */
3641
+ "$.xgafv"?: string;
3642
+ /** OAuth access token. */
3643
+ access_token?: string;
3644
+ /** Data format for response. */
3645
+ alt?: string;
3646
+ /** JSONP */
3647
+ callback?: string;
3648
+ /** Selector specifying which fields to include in a partial response. */
3649
+ fields?: string;
3650
+ /** When provided, this fingerprint must match the fingerprint of the workspace in storage. */
3651
+ fingerprint?: string;
3652
+ /** 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. */
3653
+ key?: string;
3654
+ /** OAuth 2.0 token for the current user. */
3655
+ oauth_token?: string;
3656
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3657
+ path: string;
3658
+ /** Returns response with indentations and line breaks. */
3659
+ prettyPrint?: boolean;
3660
+ /** 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. */
3661
+ quotaUser?: string;
3662
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3663
+ upload_protocol?: string;
3664
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3665
+ uploadType?: string;
3666
+ /** Request body */
3667
+ resource: Workspace;
3668
+ }): Request<Workspace>;
3669
+ update(request: {
3670
+ /** V1 error format. */
3671
+ "$.xgafv"?: string;
3672
+ /** OAuth access token. */
3673
+ access_token?: string;
3674
+ /** Data format for response. */
3675
+ alt?: string;
3676
+ /** JSONP */
3677
+ callback?: string;
3678
+ /** Selector specifying which fields to include in a partial response. */
3679
+ fields?: string;
3680
+ /** When provided, this fingerprint must match the fingerprint of the workspace in storage. */
3681
+ fingerprint?: string;
3682
+ /** 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. */
3683
+ key?: string;
3684
+ /** OAuth 2.0 token for the current user. */
3685
+ oauth_token?: string;
3686
+ /** GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} */
3687
+ path: string;
3688
+ /** Returns response with indentations and line breaks. */
3689
+ prettyPrint?: boolean;
3690
+ /** 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. */
3691
+ quotaUser?: string;
3692
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3693
+ upload_protocol?: string;
3694
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3695
+ uploadType?: string;
3696
+ },
3697
+ body: Workspace): Request<Workspace>;
3698
+ built_in_variables: Built_in_variablesResource;
3699
+ clients: ClientsResource;
3700
+ folders: FoldersResource;
3701
+ tags: TagsResource;
3702
+ templates: TemplatesResource;
3703
+ triggers: TriggersResource;
3704
+ variables: VariablesResource;
3705
+ zones: ZonesResource;
3706
+ }
3707
+ interface ContainersResource {
3708
+ /** Creates a Container. */
3709
+ create(request: {
3710
+ /** V1 error format. */
3711
+ "$.xgafv"?: string;
3712
+ /** OAuth access token. */
3713
+ access_token?: string;
3714
+ /** Data format for response. */
3715
+ alt?: string;
3716
+ /** JSONP */
3717
+ callback?: string;
3718
+ /** Selector specifying which fields to include in a partial response. */
3719
+ fields?: string;
3720
+ /** 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. */
3721
+ key?: string;
3722
+ /** OAuth 2.0 token for the current user. */
3723
+ oauth_token?: string;
3724
+ /** GTM Account's API relative path. Example: accounts/{account_id}. */
3725
+ parent: string;
3726
+ /** Returns response with indentations and line breaks. */
3727
+ prettyPrint?: boolean;
3728
+ /** 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. */
3729
+ quotaUser?: string;
3730
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3731
+ upload_protocol?: string;
3732
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3733
+ uploadType?: string;
3734
+ /** Request body */
3735
+ resource: Container;
3736
+ }): Request<Container>;
3737
+ create(request: {
3738
+ /** V1 error format. */
3739
+ "$.xgafv"?: string;
3740
+ /** OAuth access token. */
3741
+ access_token?: string;
3742
+ /** Data format for response. */
3743
+ alt?: string;
3744
+ /** JSONP */
3745
+ callback?: string;
3746
+ /** Selector specifying which fields to include in a partial response. */
3747
+ fields?: string;
3748
+ /** 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. */
3749
+ key?: string;
3750
+ /** OAuth 2.0 token for the current user. */
3751
+ oauth_token?: string;
3752
+ /** GTM Account's API relative path. Example: accounts/{account_id}. */
3753
+ parent: string;
3754
+ /** Returns response with indentations and line breaks. */
3755
+ prettyPrint?: boolean;
3756
+ /** 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. */
3757
+ quotaUser?: string;
3758
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3759
+ upload_protocol?: string;
3760
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3761
+ uploadType?: string;
3762
+ },
3763
+ body: Container): Request<Container>;
3764
+ /** Deletes a Container. */
3765
+ delete(request?: {
3766
+ /** V1 error format. */
3767
+ "$.xgafv"?: string;
3768
+ /** OAuth access token. */
3769
+ access_token?: string;
3770
+ /** Data format for response. */
3771
+ alt?: string;
3772
+ /** JSONP */
3773
+ callback?: string;
3774
+ /** Selector specifying which fields to include in a partial response. */
3775
+ fields?: string;
3776
+ /** 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. */
3777
+ key?: string;
3778
+ /** OAuth 2.0 token for the current user. */
3779
+ oauth_token?: string;
3780
+ /** GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id} */
3781
+ path: string;
3782
+ /** Returns response with indentations and line breaks. */
3783
+ prettyPrint?: boolean;
3784
+ /** 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. */
3785
+ quotaUser?: string;
3786
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3787
+ upload_protocol?: string;
3788
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3789
+ uploadType?: string;
3790
+ }): Request<void>;
3791
+ /** Gets a Container. */
3792
+ get(request?: {
3793
+ /** V1 error format. */
3794
+ "$.xgafv"?: string;
3795
+ /** OAuth access token. */
3796
+ access_token?: string;
3797
+ /** Data format for response. */
3798
+ alt?: string;
3799
+ /** JSONP */
3800
+ callback?: string;
3801
+ /** Selector specifying which fields to include in a partial response. */
3802
+ fields?: string;
3803
+ /** 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. */
3804
+ key?: string;
3805
+ /** OAuth 2.0 token for the current user. */
3806
+ oauth_token?: string;
3807
+ /** GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id} */
3808
+ path: string;
3809
+ /** Returns response with indentations and line breaks. */
3810
+ prettyPrint?: boolean;
3811
+ /** 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. */
3812
+ quotaUser?: string;
3813
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3814
+ upload_protocol?: string;
3815
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3816
+ uploadType?: string;
3817
+ }): Request<Container>;
3818
+ /** Lists all Containers that belongs to a GTM Account. */
3819
+ list(request?: {
3820
+ /** V1 error format. */
3821
+ "$.xgafv"?: string;
3822
+ /** OAuth access token. */
3823
+ access_token?: string;
3824
+ /** Data format for response. */
3825
+ alt?: string;
3826
+ /** JSONP */
3827
+ callback?: string;
3828
+ /** Selector specifying which fields to include in a partial response. */
3829
+ fields?: string;
3830
+ /** 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. */
3831
+ key?: string;
3832
+ /** OAuth 2.0 token for the current user. */
3833
+ oauth_token?: string;
3834
+ /** Continuation token for fetching the next page of results. */
3835
+ pageToken?: string;
3836
+ /** GTM Accounts's API relative path. Example: accounts/{account_id}. */
3837
+ parent: string;
3838
+ /** Returns response with indentations and line breaks. */
3839
+ prettyPrint?: boolean;
3840
+ /** 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. */
3841
+ quotaUser?: string;
3842
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3843
+ upload_protocol?: string;
3844
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3845
+ uploadType?: string;
3846
+ }): Request<ListContainersResponse>;
3847
+ /** Updates a Container. */
3848
+ update(request: {
3849
+ /** V1 error format. */
3850
+ "$.xgafv"?: string;
3851
+ /** OAuth access token. */
3852
+ access_token?: string;
3853
+ /** Data format for response. */
3854
+ alt?: string;
3855
+ /** JSONP */
3856
+ callback?: string;
3857
+ /** Selector specifying which fields to include in a partial response. */
3858
+ fields?: string;
3859
+ /** When provided, this fingerprint must match the fingerprint of the container in storage. */
3860
+ fingerprint?: string;
3861
+ /** 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. */
3862
+ key?: string;
3863
+ /** OAuth 2.0 token for the current user. */
3864
+ oauth_token?: string;
3865
+ /** GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id} */
3866
+ path: string;
3867
+ /** Returns response with indentations and line breaks. */
3868
+ prettyPrint?: boolean;
3869
+ /** 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. */
3870
+ quotaUser?: string;
3871
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3872
+ upload_protocol?: string;
3873
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3874
+ uploadType?: string;
3875
+ /** Request body */
3876
+ resource: Container;
3877
+ }): Request<Container>;
3878
+ update(request: {
3879
+ /** V1 error format. */
3880
+ "$.xgafv"?: string;
3881
+ /** OAuth access token. */
3882
+ access_token?: string;
3883
+ /** Data format for response. */
3884
+ alt?: string;
3885
+ /** JSONP */
3886
+ callback?: string;
3887
+ /** Selector specifying which fields to include in a partial response. */
3888
+ fields?: string;
3889
+ /** When provided, this fingerprint must match the fingerprint of the container in storage. */
3890
+ fingerprint?: string;
3891
+ /** 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. */
3892
+ key?: string;
3893
+ /** OAuth 2.0 token for the current user. */
3894
+ oauth_token?: string;
3895
+ /** GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id} */
3896
+ path: string;
3897
+ /** Returns response with indentations and line breaks. */
3898
+ prettyPrint?: boolean;
3899
+ /** 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. */
3900
+ quotaUser?: string;
3901
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3902
+ upload_protocol?: string;
3903
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3904
+ uploadType?: string;
3905
+ },
3906
+ body: Container): Request<Container>;
3907
+ environments: EnvironmentsResource;
3908
+ version_headers: Version_headersResource;
3909
+ versions: VersionsResource;
3910
+ workspaces: WorkspacesResource;
3911
+ }
3912
+ interface User_permissionsResource {
3913
+ /** Creates a user's Account & Container access. */
3914
+ create(request: {
3915
+ /** V1 error format. */
3916
+ "$.xgafv"?: string;
3917
+ /** OAuth access token. */
3918
+ access_token?: string;
3919
+ /** Data format for response. */
3920
+ alt?: string;
3921
+ /** JSONP */
3922
+ callback?: string;
3923
+ /** Selector specifying which fields to include in a partial response. */
3924
+ fields?: string;
3925
+ /** 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. */
3926
+ key?: string;
3927
+ /** OAuth 2.0 token for the current user. */
3928
+ oauth_token?: string;
3929
+ /** GTM Account's API relative path. Example: accounts/{account_id} */
3930
+ parent: string;
3931
+ /** Returns response with indentations and line breaks. */
3932
+ prettyPrint?: boolean;
3933
+ /** 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. */
3934
+ quotaUser?: string;
3935
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3936
+ upload_protocol?: string;
3937
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3938
+ uploadType?: string;
3939
+ /** Request body */
3940
+ resource: UserPermission;
3941
+ }): Request<UserPermission>;
3942
+ create(request: {
3943
+ /** V1 error format. */
3944
+ "$.xgafv"?: string;
3945
+ /** OAuth access token. */
3946
+ access_token?: string;
3947
+ /** Data format for response. */
3948
+ alt?: string;
3949
+ /** JSONP */
3950
+ callback?: string;
3951
+ /** Selector specifying which fields to include in a partial response. */
3952
+ fields?: string;
3953
+ /** 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. */
3954
+ key?: string;
3955
+ /** OAuth 2.0 token for the current user. */
3956
+ oauth_token?: string;
3957
+ /** GTM Account's API relative path. Example: accounts/{account_id} */
3958
+ parent: string;
3959
+ /** Returns response with indentations and line breaks. */
3960
+ prettyPrint?: boolean;
3961
+ /** 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. */
3962
+ quotaUser?: string;
3963
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3964
+ upload_protocol?: string;
3965
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3966
+ uploadType?: string;
3967
+ },
3968
+ body: UserPermission): Request<UserPermission>;
3969
+ /** Removes a user from the account, revoking access to it and all of its containers. */
3970
+ delete(request?: {
3971
+ /** V1 error format. */
3972
+ "$.xgafv"?: string;
3973
+ /** OAuth access token. */
3974
+ access_token?: string;
3975
+ /** Data format for response. */
3976
+ alt?: string;
3977
+ /** JSONP */
3978
+ callback?: string;
3979
+ /** Selector specifying which fields to include in a partial response. */
3980
+ fields?: string;
3981
+ /** 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. */
3982
+ key?: string;
3983
+ /** OAuth 2.0 token for the current user. */
3984
+ oauth_token?: string;
3985
+ /** GTM UserPermission's API relative path. Example: accounts/{account_id}/user_permissions/{user_permission_id} */
3986
+ path: string;
3987
+ /** Returns response with indentations and line breaks. */
3988
+ prettyPrint?: boolean;
3989
+ /** 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. */
3990
+ quotaUser?: string;
3991
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3992
+ upload_protocol?: string;
3993
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3994
+ uploadType?: string;
3995
+ }): Request<void>;
3996
+ /** Gets a user's Account & Container access. */
3997
+ get(request?: {
3998
+ /** V1 error format. */
3999
+ "$.xgafv"?: string;
4000
+ /** OAuth access token. */
4001
+ access_token?: string;
4002
+ /** Data format for response. */
4003
+ alt?: string;
4004
+ /** JSONP */
4005
+ callback?: string;
4006
+ /** Selector specifying which fields to include in a partial response. */
4007
+ fields?: string;
4008
+ /** 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. */
4009
+ key?: string;
4010
+ /** OAuth 2.0 token for the current user. */
4011
+ oauth_token?: string;
4012
+ /** GTM UserPermission's API relative path. Example: accounts/{account_id}/user_permissions/{user_permission_id} */
4013
+ path: string;
4014
+ /** Returns response with indentations and line breaks. */
4015
+ prettyPrint?: boolean;
4016
+ /** 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. */
4017
+ quotaUser?: string;
4018
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4019
+ upload_protocol?: string;
4020
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4021
+ uploadType?: string;
4022
+ }): Request<UserPermission>;
4023
+ /** List all users that have access to the account along with Account and Container user access granted to each of them. */
4024
+ list(request?: {
4025
+ /** V1 error format. */
4026
+ "$.xgafv"?: string;
4027
+ /** OAuth access token. */
4028
+ access_token?: string;
4029
+ /** Data format for response. */
4030
+ alt?: string;
4031
+ /** JSONP */
4032
+ callback?: string;
4033
+ /** Selector specifying which fields to include in a partial response. */
4034
+ fields?: string;
4035
+ /** 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. */
4036
+ key?: string;
4037
+ /** OAuth 2.0 token for the current user. */
4038
+ oauth_token?: string;
4039
+ /** Continuation token for fetching the next page of results. */
4040
+ pageToken?: string;
4041
+ /** GTM Accounts's API relative path. Example: accounts/{account_id} */
4042
+ parent: string;
4043
+ /** Returns response with indentations and line breaks. */
4044
+ prettyPrint?: boolean;
4045
+ /** 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. */
4046
+ quotaUser?: string;
4047
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4048
+ upload_protocol?: string;
4049
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4050
+ uploadType?: string;
4051
+ }): Request<ListUserPermissionsResponse>;
4052
+ /** Updates a user's Account & Container access. */
4053
+ update(request: {
4054
+ /** V1 error format. */
4055
+ "$.xgafv"?: string;
4056
+ /** OAuth access token. */
4057
+ access_token?: string;
4058
+ /** Data format for response. */
4059
+ alt?: string;
4060
+ /** JSONP */
4061
+ callback?: string;
4062
+ /** Selector specifying which fields to include in a partial response. */
4063
+ fields?: string;
4064
+ /** 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. */
4065
+ key?: string;
4066
+ /** OAuth 2.0 token for the current user. */
4067
+ oauth_token?: string;
4068
+ /** GTM UserPermission's API relative path. Example: accounts/{account_id}/user_permissions/{user_permission_id} */
4069
+ path: string;
4070
+ /** Returns response with indentations and line breaks. */
4071
+ prettyPrint?: boolean;
4072
+ /** 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. */
4073
+ quotaUser?: string;
4074
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4075
+ upload_protocol?: string;
4076
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4077
+ uploadType?: string;
4078
+ /** Request body */
4079
+ resource: UserPermission;
4080
+ }): Request<UserPermission>;
4081
+ update(request: {
4082
+ /** V1 error format. */
4083
+ "$.xgafv"?: string;
4084
+ /** OAuth access token. */
4085
+ access_token?: string;
4086
+ /** Data format for response. */
4087
+ alt?: string;
4088
+ /** JSONP */
4089
+ callback?: string;
4090
+ /** Selector specifying which fields to include in a partial response. */
4091
+ fields?: string;
4092
+ /** 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. */
4093
+ key?: string;
4094
+ /** OAuth 2.0 token for the current user. */
4095
+ oauth_token?: string;
4096
+ /** GTM UserPermission's API relative path. Example: accounts/{account_id}/user_permissions/{user_permission_id} */
4097
+ path: string;
4098
+ /** Returns response with indentations and line breaks. */
4099
+ prettyPrint?: boolean;
4100
+ /** 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. */
4101
+ quotaUser?: string;
4102
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4103
+ upload_protocol?: string;
4104
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4105
+ uploadType?: string;
4106
+ },
4107
+ body: UserPermission): Request<UserPermission>;
4108
+ }
4109
+ interface AccountsResource {
4110
+ /** Gets a GTM Account. */
4111
+ get(request?: {
4112
+ /** V1 error format. */
4113
+ "$.xgafv"?: string;
4114
+ /** OAuth access token. */
4115
+ access_token?: string;
4116
+ /** Data format for response. */
4117
+ alt?: string;
4118
+ /** JSONP */
4119
+ callback?: string;
4120
+ /** Selector specifying which fields to include in a partial response. */
4121
+ fields?: string;
4122
+ /** 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. */
4123
+ key?: string;
4124
+ /** OAuth 2.0 token for the current user. */
4125
+ oauth_token?: string;
4126
+ /** GTM Accounts's API relative path. Example: accounts/{account_id} */
4127
+ path: string;
4128
+ /** Returns response with indentations and line breaks. */
4129
+ prettyPrint?: boolean;
4130
+ /** 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. */
4131
+ quotaUser?: string;
4132
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4133
+ upload_protocol?: string;
4134
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4135
+ uploadType?: string;
4136
+ }): Request<Account>;
4137
+ /** Lists all GTM Accounts that a user has access to. */
4138
+ list(request?: {
4139
+ /** V1 error format. */
4140
+ "$.xgafv"?: string;
4141
+ /** OAuth access token. */
4142
+ access_token?: string;
4143
+ /** Data format for response. */
4144
+ alt?: string;
4145
+ /** JSONP */
4146
+ callback?: string;
4147
+ /** Selector specifying which fields to include in a partial response. */
4148
+ fields?: string;
4149
+ /** 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. */
4150
+ key?: string;
4151
+ /** OAuth 2.0 token for the current user. */
4152
+ oauth_token?: string;
4153
+ /** Continuation token for fetching the next page of results. */
4154
+ pageToken?: string;
4155
+ /** Returns response with indentations and line breaks. */
4156
+ prettyPrint?: boolean;
4157
+ /** 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. */
4158
+ quotaUser?: string;
4159
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4160
+ upload_protocol?: string;
4161
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4162
+ uploadType?: string;
4163
+ }): Request<ListAccountsResponse>;
4164
+ /** Updates a GTM Account. */
4165
+ update(request: {
4166
+ /** V1 error format. */
4167
+ "$.xgafv"?: string;
4168
+ /** OAuth access token. */
4169
+ access_token?: string;
4170
+ /** Data format for response. */
4171
+ alt?: string;
4172
+ /** JSONP */
4173
+ callback?: string;
4174
+ /** Selector specifying which fields to include in a partial response. */
4175
+ fields?: string;
4176
+ /** When provided, this fingerprint must match the fingerprint of the account in storage. */
4177
+ fingerprint?: string;
4178
+ /** 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. */
4179
+ key?: string;
4180
+ /** OAuth 2.0 token for the current user. */
4181
+ oauth_token?: string;
4182
+ /** GTM Accounts's API relative path. Example: accounts/{account_id} */
4183
+ path: string;
4184
+ /** Returns response with indentations and line breaks. */
4185
+ prettyPrint?: boolean;
4186
+ /** 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. */
4187
+ quotaUser?: string;
4188
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4189
+ upload_protocol?: string;
4190
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4191
+ uploadType?: string;
4192
+ /** Request body */
4193
+ resource: Account;
4194
+ }): Request<Account>;
4195
+ update(request: {
4196
+ /** V1 error format. */
4197
+ "$.xgafv"?: string;
4198
+ /** OAuth access token. */
4199
+ access_token?: string;
4200
+ /** Data format for response. */
4201
+ alt?: string;
4202
+ /** JSONP */
4203
+ callback?: string;
4204
+ /** Selector specifying which fields to include in a partial response. */
4205
+ fields?: string;
4206
+ /** When provided, this fingerprint must match the fingerprint of the account in storage. */
4207
+ fingerprint?: string;
4208
+ /** 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. */
4209
+ key?: string;
4210
+ /** OAuth 2.0 token for the current user. */
4211
+ oauth_token?: string;
4212
+ /** GTM Accounts's API relative path. Example: accounts/{account_id} */
4213
+ path: string;
4214
+ /** Returns response with indentations and line breaks. */
4215
+ prettyPrint?: boolean;
4216
+ /** 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. */
4217
+ quotaUser?: string;
4218
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4219
+ upload_protocol?: string;
4220
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4221
+ uploadType?: string;
4222
+ },
4223
+ body: Account): Request<Account>;
4224
+ containers: ContainersResource;
4225
+ user_permissions: User_permissionsResource;
4226
+ }
4227
+
4228
+ const accounts: AccountsResource;
4229
+ }
4230
+ }