@googleapis/tagmanager 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/v2.d.ts CHANGED
@@ -318,6 +318,10 @@ export declare namespace tagmanager_v2 {
318
318
  * Whether this Container supports templates.
319
319
  */
320
320
  supportTemplates?: boolean | null;
321
+ /**
322
+ * Whether this Container supports transformations.
323
+ */
324
+ supportTransformations?: boolean | null;
321
325
  /**
322
326
  * Whether this Container supports triggers.
323
327
  */
@@ -411,6 +415,10 @@ export declare namespace tagmanager_v2 {
411
415
  * Auto generated link to the tag manager UI
412
416
  */
413
417
  tagManagerUrl?: string | null;
418
+ /**
419
+ * The transformations in the container that this version was taken from.
420
+ */
421
+ transformation?: Schema$Transformation[];
414
422
  /**
415
423
  * The triggers in the container that this version was taken from.
416
424
  */
@@ -635,6 +643,10 @@ export declare namespace tagmanager_v2 {
635
643
  * The tag being represented by the entity.
636
644
  */
637
645
  tag?: Schema$Tag;
646
+ /**
647
+ * The transformation being represented by the entity.
648
+ */
649
+ transformation?: Schema$Transformation;
638
650
  /**
639
651
  * The trigger being represented by the entity.
640
652
  */
@@ -991,6 +1003,16 @@ export declare namespace tagmanager_v2 {
991
1003
  */
992
1004
  template?: Schema$CustomTemplate[];
993
1005
  }
1006
+ export interface Schema$ListTransformationsResponse {
1007
+ /**
1008
+ * Continuation token for fetching the next page of results.
1009
+ */
1010
+ nextPageToken?: string | null;
1011
+ /**
1012
+ * All GTM Transformations of a GTM Container.
1013
+ */
1014
+ transformation?: Schema$Transformation[];
1015
+ }
994
1016
  /**
995
1017
  * List triggers response.
996
1018
  */
@@ -1166,6 +1188,15 @@ export declare namespace tagmanager_v2 {
1166
1188
  */
1167
1189
  template?: Schema$CustomTemplate;
1168
1190
  }
1191
+ /**
1192
+ * The result of reverting a transformation in a workspace.
1193
+ */
1194
+ export interface Schema$RevertTransformationResponse {
1195
+ /**
1196
+ * Transformation as it appears in the latest container version since the last workspace synchronization operation. If no transformation is present, that means the transformation was deleted in the latest container version.
1197
+ */
1198
+ transformation?: Schema$Transformation;
1199
+ }
1169
1200
  /**
1170
1201
  * The result of reverting a trigger in a workspace.
1171
1202
  */
@@ -1368,6 +1399,59 @@ export declare namespace tagmanager_v2 {
1368
1399
  */
1369
1400
  tagName?: string | null;
1370
1401
  }
1402
+ /**
1403
+ * Represents a Google Tag Manager Transformation.
1404
+ */
1405
+ export interface Schema$Transformation {
1406
+ /**
1407
+ * GTM Account ID.
1408
+ */
1409
+ accountId?: string | null;
1410
+ /**
1411
+ * GTM Container ID.
1412
+ */
1413
+ containerId?: string | null;
1414
+ /**
1415
+ * The fingerprint of the GTM Transformation as computed at storage time. This value is recomputed whenever the transformation is modified.
1416
+ */
1417
+ fingerprint?: string | null;
1418
+ /**
1419
+ * Transformation display name. @mutable tagmanager.accounts.containers.workspaces.transformations.create @mutable tagmanager.accounts.containers.workspaces.transformations.update
1420
+ */
1421
+ name?: string | null;
1422
+ /**
1423
+ * User notes on how to apply this transformation in the container. @mutable tagmanager.accounts.containers.workspaces.transformations.create @mutable tagmanager.accounts.containers.workspaces.transformations.update
1424
+ */
1425
+ notes?: string | null;
1426
+ /**
1427
+ * The transformation's parameters. @mutable tagmanager.accounts.containers.workspaces.transformations.create @mutable tagmanager.accounts.containers.workspaces.transformations.update
1428
+ */
1429
+ parameter?: Schema$Parameter[];
1430
+ /**
1431
+ * Parent folder id.
1432
+ */
1433
+ parentFolderId?: string | null;
1434
+ /**
1435
+ * GTM transformation's API relative path.
1436
+ */
1437
+ path?: string | null;
1438
+ /**
1439
+ * Auto generated link to the tag manager UI
1440
+ */
1441
+ tagManagerUrl?: string | null;
1442
+ /**
1443
+ * The Transformation ID uniquely identifies the GTM transformation.
1444
+ */
1445
+ transformationId?: string | null;
1446
+ /**
1447
+ * Transformation type. @mutable tagmanager.accounts.containers.workspaces.transformations.create @mutable tagmanager.accounts.containers.workspaces.transformations.update
1448
+ */
1449
+ type?: string | null;
1450
+ /**
1451
+ * GTM Workspace ID.
1452
+ */
1453
+ workspaceId?: string | null;
1454
+ }
1371
1455
  /**
1372
1456
  * Represents a Google Tag Manager Trigger
1373
1457
  */
@@ -3613,6 +3697,7 @@ export declare namespace tagmanager_v2 {
3613
3697
  * // "path": "my_path",
3614
3698
  * // "tag": [],
3615
3699
  * // "tagManagerUrl": "my_tagManagerUrl",
3700
+ * // "transformation": [],
3616
3701
  * // "trigger": [],
3617
3702
  * // "variable": [],
3618
3703
  * // "zone": []
@@ -3690,6 +3775,7 @@ export declare namespace tagmanager_v2 {
3690
3775
  * // "path": "my_path",
3691
3776
  * // "tag": [],
3692
3777
  * // "tagManagerUrl": "my_tagManagerUrl",
3778
+ * // "transformation": [],
3693
3779
  * // "trigger": [],
3694
3780
  * // "variable": [],
3695
3781
  * // "zone": []
@@ -3823,6 +3909,7 @@ export declare namespace tagmanager_v2 {
3823
3909
  * // "path": "my_path",
3824
3910
  * // "tag": [],
3825
3911
  * // "tagManagerUrl": "my_tagManagerUrl",
3912
+ * // "transformation": [],
3826
3913
  * // "trigger": [],
3827
3914
  * // "variable": [],
3828
3915
  * // "zone": []
@@ -3899,6 +3986,7 @@ export declare namespace tagmanager_v2 {
3899
3986
  * // "path": "my_path",
3900
3987
  * // "tag": [],
3901
3988
  * // "tagManagerUrl": "my_tagManagerUrl",
3989
+ * // "transformation": [],
3902
3990
  * // "trigger": [],
3903
3991
  * // "variable": [],
3904
3992
  * // "zone": []
@@ -3977,6 +4065,7 @@ export declare namespace tagmanager_v2 {
3977
4065
  * // "path": "my_path",
3978
4066
  * // "tag": [],
3979
4067
  * // "tagManagerUrl": "my_tagManagerUrl",
4068
+ * // "transformation": [],
3980
4069
  * // "trigger": [],
3981
4070
  * // "variable": [],
3982
4071
  * // "zone": []
@@ -4003,6 +4092,7 @@ export declare namespace tagmanager_v2 {
4003
4092
  * // "path": "my_path",
4004
4093
  * // "tag": [],
4005
4094
  * // "tagManagerUrl": "my_tagManagerUrl",
4095
+ * // "transformation": [],
4006
4096
  * // "trigger": [],
4007
4097
  * // "variable": [],
4008
4098
  * // "zone": []
@@ -4257,6 +4347,7 @@ export declare namespace tagmanager_v2 {
4257
4347
  gtag_config: Resource$Accounts$Containers$Workspaces$Gtag_config;
4258
4348
  tags: Resource$Accounts$Containers$Workspaces$Tags;
4259
4349
  templates: Resource$Accounts$Containers$Workspaces$Templates;
4350
+ transformations: Resource$Accounts$Containers$Workspaces$Transformations;
4260
4351
  triggers: Resource$Accounts$Containers$Workspaces$Triggers;
4261
4352
  variables: Resource$Accounts$Containers$Workspaces$Variables;
4262
4353
  zones: Resource$Accounts$Containers$Workspaces$Zones;
@@ -4748,6 +4839,7 @@ export declare namespace tagmanager_v2 {
4748
4839
  * // "client": {},
4749
4840
  * // "folder": {},
4750
4841
  * // "tag": {},
4842
+ * // "transformation": {},
4751
4843
  * // "trigger": {},
4752
4844
  * // "variable": {}
4753
4845
  * // }
@@ -7813,6 +7905,489 @@ export declare namespace tagmanager_v2 {
7813
7905
  */
7814
7906
  requestBody?: Schema$CustomTemplate;
7815
7907
  }
7908
+ export class Resource$Accounts$Containers$Workspaces$Transformations {
7909
+ context: APIRequestContext;
7910
+ constructor(context: APIRequestContext);
7911
+ /**
7912
+ * Creates a GTM Transformation.
7913
+ * @example
7914
+ * ```js
7915
+ * // Before running the sample:
7916
+ * // - Enable the API at:
7917
+ * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
7918
+ * // - Login into gcloud by running:
7919
+ * // `$ gcloud auth application-default login`
7920
+ * // - Install the npm module by running:
7921
+ * // `$ npm install googleapis`
7922
+ *
7923
+ * const {google} = require('googleapis');
7924
+ * const tagmanager = google.tagmanager('v2');
7925
+ *
7926
+ * async function main() {
7927
+ * const auth = new google.auth.GoogleAuth({
7928
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7929
+ * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
7930
+ * });
7931
+ *
7932
+ * // Acquire an auth client, and bind it to all future calls
7933
+ * const authClient = await auth.getClient();
7934
+ * google.options({auth: authClient});
7935
+ *
7936
+ * // Do the magic
7937
+ * const res =
7938
+ * await tagmanager.accounts.containers.workspaces.transformations.create({
7939
+ * // GTM Workspace's API relative path. Example: accounts/{account_id\}/containers/{container_id\}/workspaces/{workspace_id\}
7940
+ * parent:
7941
+ * 'accounts/my-account/containers/my-container/workspaces/my-workspace',
7942
+ *
7943
+ * // Request body metadata
7944
+ * requestBody: {
7945
+ * // request body parameters
7946
+ * // {
7947
+ * // "accountId": "my_accountId",
7948
+ * // "containerId": "my_containerId",
7949
+ * // "fingerprint": "my_fingerprint",
7950
+ * // "name": "my_name",
7951
+ * // "notes": "my_notes",
7952
+ * // "parameter": [],
7953
+ * // "parentFolderId": "my_parentFolderId",
7954
+ * // "path": "my_path",
7955
+ * // "tagManagerUrl": "my_tagManagerUrl",
7956
+ * // "transformationId": "my_transformationId",
7957
+ * // "type": "my_type",
7958
+ * // "workspaceId": "my_workspaceId"
7959
+ * // }
7960
+ * },
7961
+ * });
7962
+ * console.log(res.data);
7963
+ *
7964
+ * // Example response
7965
+ * // {
7966
+ * // "accountId": "my_accountId",
7967
+ * // "containerId": "my_containerId",
7968
+ * // "fingerprint": "my_fingerprint",
7969
+ * // "name": "my_name",
7970
+ * // "notes": "my_notes",
7971
+ * // "parameter": [],
7972
+ * // "parentFolderId": "my_parentFolderId",
7973
+ * // "path": "my_path",
7974
+ * // "tagManagerUrl": "my_tagManagerUrl",
7975
+ * // "transformationId": "my_transformationId",
7976
+ * // "type": "my_type",
7977
+ * // "workspaceId": "my_workspaceId"
7978
+ * // }
7979
+ * }
7980
+ *
7981
+ * main().catch(e => {
7982
+ * console.error(e);
7983
+ * throw e;
7984
+ * });
7985
+ *
7986
+ * ```
7987
+ *
7988
+ * @param params - Parameters for request
7989
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7990
+ * @param callback - Optional callback that handles the response.
7991
+ * @returns A promise if used with async/await, or void if used with a callback.
7992
+ */
7993
+ create(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
7994
+ create(params?: Params$Resource$Accounts$Containers$Workspaces$Transformations$Create, options?: MethodOptions): GaxiosPromise<Schema$Transformation>;
7995
+ create(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
7996
+ create(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Create, options: MethodOptions | BodyResponseCallback<Schema$Transformation>, callback: BodyResponseCallback<Schema$Transformation>): void;
7997
+ create(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Create, callback: BodyResponseCallback<Schema$Transformation>): void;
7998
+ create(callback: BodyResponseCallback<Schema$Transformation>): void;
7999
+ /**
8000
+ * Deletes a GTM Transformation.
8001
+ * @example
8002
+ * ```js
8003
+ * // Before running the sample:
8004
+ * // - Enable the API at:
8005
+ * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
8006
+ * // - Login into gcloud by running:
8007
+ * // `$ gcloud auth application-default login`
8008
+ * // - Install the npm module by running:
8009
+ * // `$ npm install googleapis`
8010
+ *
8011
+ * const {google} = require('googleapis');
8012
+ * const tagmanager = google.tagmanager('v2');
8013
+ *
8014
+ * async function main() {
8015
+ * const auth = new google.auth.GoogleAuth({
8016
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8017
+ * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
8018
+ * });
8019
+ *
8020
+ * // Acquire an auth client, and bind it to all future calls
8021
+ * const authClient = await auth.getClient();
8022
+ * google.options({auth: authClient});
8023
+ *
8024
+ * // Do the magic
8025
+ * const res =
8026
+ * await tagmanager.accounts.containers.workspaces.transformations.delete({
8027
+ * // GTM Transformation's API relative path. Example: accounts/{account_id\}/containers/{container_id\}/workspaces/{workspace_id\}/transformations/{transformation_id\}
8028
+ * path: 'accounts/my-account/containers/my-container/workspaces/my-workspace/transformations/my-transformation',
8029
+ * });
8030
+ * console.log(res.data);
8031
+ * }
8032
+ *
8033
+ * main().catch(e => {
8034
+ * console.error(e);
8035
+ * throw e;
8036
+ * });
8037
+ *
8038
+ * ```
8039
+ *
8040
+ * @param params - Parameters for request
8041
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8042
+ * @param callback - Optional callback that handles the response.
8043
+ * @returns A promise if used with async/await, or void if used with a callback.
8044
+ */
8045
+ delete(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
8046
+ delete(params?: Params$Resource$Accounts$Containers$Workspaces$Transformations$Delete, options?: MethodOptions): GaxiosPromise<void>;
8047
+ delete(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
8048
+ delete(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
8049
+ delete(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Delete, callback: BodyResponseCallback<void>): void;
8050
+ delete(callback: BodyResponseCallback<void>): void;
8051
+ /**
8052
+ * Gets a GTM Transformation.
8053
+ * @example
8054
+ * ```js
8055
+ * // Before running the sample:
8056
+ * // - Enable the API at:
8057
+ * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
8058
+ * // - Login into gcloud by running:
8059
+ * // `$ gcloud auth application-default login`
8060
+ * // - Install the npm module by running:
8061
+ * // `$ npm install googleapis`
8062
+ *
8063
+ * const {google} = require('googleapis');
8064
+ * const tagmanager = google.tagmanager('v2');
8065
+ *
8066
+ * async function main() {
8067
+ * const auth = new google.auth.GoogleAuth({
8068
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8069
+ * scopes: [
8070
+ * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
8071
+ * 'https://www.googleapis.com/auth/tagmanager.readonly',
8072
+ * ],
8073
+ * });
8074
+ *
8075
+ * // Acquire an auth client, and bind it to all future calls
8076
+ * const authClient = await auth.getClient();
8077
+ * google.options({auth: authClient});
8078
+ *
8079
+ * // Do the magic
8080
+ * const res =
8081
+ * await tagmanager.accounts.containers.workspaces.transformations.get({
8082
+ * // GTM Transformation's API relative path. Example: accounts/{account_id\}/containers/{container_id\}/workspaces/{workspace_id\}/transformations/{transformation_id\}
8083
+ * path: 'accounts/my-account/containers/my-container/workspaces/my-workspace/transformations/my-transformation',
8084
+ * });
8085
+ * console.log(res.data);
8086
+ *
8087
+ * // Example response
8088
+ * // {
8089
+ * // "accountId": "my_accountId",
8090
+ * // "containerId": "my_containerId",
8091
+ * // "fingerprint": "my_fingerprint",
8092
+ * // "name": "my_name",
8093
+ * // "notes": "my_notes",
8094
+ * // "parameter": [],
8095
+ * // "parentFolderId": "my_parentFolderId",
8096
+ * // "path": "my_path",
8097
+ * // "tagManagerUrl": "my_tagManagerUrl",
8098
+ * // "transformationId": "my_transformationId",
8099
+ * // "type": "my_type",
8100
+ * // "workspaceId": "my_workspaceId"
8101
+ * // }
8102
+ * }
8103
+ *
8104
+ * main().catch(e => {
8105
+ * console.error(e);
8106
+ * throw e;
8107
+ * });
8108
+ *
8109
+ * ```
8110
+ *
8111
+ * @param params - Parameters for request
8112
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8113
+ * @param callback - Optional callback that handles the response.
8114
+ * @returns A promise if used with async/await, or void if used with a callback.
8115
+ */
8116
+ get(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
8117
+ get(params?: Params$Resource$Accounts$Containers$Workspaces$Transformations$Get, options?: MethodOptions): GaxiosPromise<Schema$Transformation>;
8118
+ get(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
8119
+ get(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Get, options: MethodOptions | BodyResponseCallback<Schema$Transformation>, callback: BodyResponseCallback<Schema$Transformation>): void;
8120
+ get(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Get, callback: BodyResponseCallback<Schema$Transformation>): void;
8121
+ get(callback: BodyResponseCallback<Schema$Transformation>): void;
8122
+ /**
8123
+ * Lists all GTM Transformations of a GTM container workspace.
8124
+ * @example
8125
+ * ```js
8126
+ * // Before running the sample:
8127
+ * // - Enable the API at:
8128
+ * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
8129
+ * // - Login into gcloud by running:
8130
+ * // `$ gcloud auth application-default login`
8131
+ * // - Install the npm module by running:
8132
+ * // `$ npm install googleapis`
8133
+ *
8134
+ * const {google} = require('googleapis');
8135
+ * const tagmanager = google.tagmanager('v2');
8136
+ *
8137
+ * async function main() {
8138
+ * const auth = new google.auth.GoogleAuth({
8139
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8140
+ * scopes: [
8141
+ * 'https://www.googleapis.com/auth/tagmanager.edit.containers',
8142
+ * 'https://www.googleapis.com/auth/tagmanager.readonly',
8143
+ * ],
8144
+ * });
8145
+ *
8146
+ * // Acquire an auth client, and bind it to all future calls
8147
+ * const authClient = await auth.getClient();
8148
+ * google.options({auth: authClient});
8149
+ *
8150
+ * // Do the magic
8151
+ * const res =
8152
+ * await tagmanager.accounts.containers.workspaces.transformations.list({
8153
+ * // Continuation token for fetching the next page of results.
8154
+ * pageToken: 'placeholder-value',
8155
+ * // GTM Workspace's API relative path. Example: accounts/{account_id\}/containers/{container_id\}/workspaces/{workspace_id\}
8156
+ * parent:
8157
+ * 'accounts/my-account/containers/my-container/workspaces/my-workspace',
8158
+ * });
8159
+ * console.log(res.data);
8160
+ *
8161
+ * // Example response
8162
+ * // {
8163
+ * // "nextPageToken": "my_nextPageToken",
8164
+ * // "transformation": []
8165
+ * // }
8166
+ * }
8167
+ *
8168
+ * main().catch(e => {
8169
+ * console.error(e);
8170
+ * throw e;
8171
+ * });
8172
+ *
8173
+ * ```
8174
+ *
8175
+ * @param params - Parameters for request
8176
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8177
+ * @param callback - Optional callback that handles the response.
8178
+ * @returns A promise if used with async/await, or void if used with a callback.
8179
+ */
8180
+ list(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
8181
+ list(params?: Params$Resource$Accounts$Containers$Workspaces$Transformations$List, options?: MethodOptions): GaxiosPromise<Schema$ListTransformationsResponse>;
8182
+ list(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
8183
+ list(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$List, options: MethodOptions | BodyResponseCallback<Schema$ListTransformationsResponse>, callback: BodyResponseCallback<Schema$ListTransformationsResponse>): void;
8184
+ list(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$List, callback: BodyResponseCallback<Schema$ListTransformationsResponse>): void;
8185
+ list(callback: BodyResponseCallback<Schema$ListTransformationsResponse>): void;
8186
+ /**
8187
+ * Reverts changes to a GTM Transformation in a GTM Workspace.
8188
+ * @example
8189
+ * ```js
8190
+ * // Before running the sample:
8191
+ * // - Enable the API at:
8192
+ * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
8193
+ * // - Login into gcloud by running:
8194
+ * // `$ gcloud auth application-default login`
8195
+ * // - Install the npm module by running:
8196
+ * // `$ npm install googleapis`
8197
+ *
8198
+ * const {google} = require('googleapis');
8199
+ * const tagmanager = google.tagmanager('v2');
8200
+ *
8201
+ * async function main() {
8202
+ * const auth = new google.auth.GoogleAuth({
8203
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8204
+ * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
8205
+ * });
8206
+ *
8207
+ * // Acquire an auth client, and bind it to all future calls
8208
+ * const authClient = await auth.getClient();
8209
+ * google.options({auth: authClient});
8210
+ *
8211
+ * // Do the magic
8212
+ * const res =
8213
+ * await tagmanager.accounts.containers.workspaces.transformations.revert({
8214
+ * // When provided, this fingerprint must match the fingerprint of the transformation in storage.
8215
+ * fingerprint: 'placeholder-value',
8216
+ * // GTM Transformation's API relative path. Example: accounts/{account_id\}/containers/{container_id\}/workspaces/{workspace_id\}/transformations/{transformation_id\}
8217
+ * path: 'accounts/my-account/containers/my-container/workspaces/my-workspace/transformations/my-transformation',
8218
+ * });
8219
+ * console.log(res.data);
8220
+ *
8221
+ * // Example response
8222
+ * // {
8223
+ * // "transformation": {}
8224
+ * // }
8225
+ * }
8226
+ *
8227
+ * main().catch(e => {
8228
+ * console.error(e);
8229
+ * throw e;
8230
+ * });
8231
+ *
8232
+ * ```
8233
+ *
8234
+ * @param params - Parameters for request
8235
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8236
+ * @param callback - Optional callback that handles the response.
8237
+ * @returns A promise if used with async/await, or void if used with a callback.
8238
+ */
8239
+ revert(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Revert, options: StreamMethodOptions): GaxiosPromise<Readable>;
8240
+ revert(params?: Params$Resource$Accounts$Containers$Workspaces$Transformations$Revert, options?: MethodOptions): GaxiosPromise<Schema$RevertTransformationResponse>;
8241
+ revert(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Revert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
8242
+ revert(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Revert, options: MethodOptions | BodyResponseCallback<Schema$RevertTransformationResponse>, callback: BodyResponseCallback<Schema$RevertTransformationResponse>): void;
8243
+ revert(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Revert, callback: BodyResponseCallback<Schema$RevertTransformationResponse>): void;
8244
+ revert(callback: BodyResponseCallback<Schema$RevertTransformationResponse>): void;
8245
+ /**
8246
+ * Updates a GTM Transformation.
8247
+ * @example
8248
+ * ```js
8249
+ * // Before running the sample:
8250
+ * // - Enable the API at:
8251
+ * // https://console.developers.google.com/apis/api/tagmanager.googleapis.com
8252
+ * // - Login into gcloud by running:
8253
+ * // `$ gcloud auth application-default login`
8254
+ * // - Install the npm module by running:
8255
+ * // `$ npm install googleapis`
8256
+ *
8257
+ * const {google} = require('googleapis');
8258
+ * const tagmanager = google.tagmanager('v2');
8259
+ *
8260
+ * async function main() {
8261
+ * const auth = new google.auth.GoogleAuth({
8262
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8263
+ * scopes: ['https://www.googleapis.com/auth/tagmanager.edit.containers'],
8264
+ * });
8265
+ *
8266
+ * // Acquire an auth client, and bind it to all future calls
8267
+ * const authClient = await auth.getClient();
8268
+ * google.options({auth: authClient});
8269
+ *
8270
+ * // Do the magic
8271
+ * const res =
8272
+ * await tagmanager.accounts.containers.workspaces.transformations.update({
8273
+ * // When provided, this fingerprint must match the fingerprint of the transformation in storage.
8274
+ * fingerprint: 'placeholder-value',
8275
+ * // GTM Transformation's API relative path. Example: accounts/{account_id\}/containers/{container_id\}/workspaces/{workspace_id\}/transformations/{transformation_id\}
8276
+ * path: 'accounts/my-account/containers/my-container/workspaces/my-workspace/transformations/my-transformation',
8277
+ *
8278
+ * // Request body metadata
8279
+ * requestBody: {
8280
+ * // request body parameters
8281
+ * // {
8282
+ * // "accountId": "my_accountId",
8283
+ * // "containerId": "my_containerId",
8284
+ * // "fingerprint": "my_fingerprint",
8285
+ * // "name": "my_name",
8286
+ * // "notes": "my_notes",
8287
+ * // "parameter": [],
8288
+ * // "parentFolderId": "my_parentFolderId",
8289
+ * // "path": "my_path",
8290
+ * // "tagManagerUrl": "my_tagManagerUrl",
8291
+ * // "transformationId": "my_transformationId",
8292
+ * // "type": "my_type",
8293
+ * // "workspaceId": "my_workspaceId"
8294
+ * // }
8295
+ * },
8296
+ * });
8297
+ * console.log(res.data);
8298
+ *
8299
+ * // Example response
8300
+ * // {
8301
+ * // "accountId": "my_accountId",
8302
+ * // "containerId": "my_containerId",
8303
+ * // "fingerprint": "my_fingerprint",
8304
+ * // "name": "my_name",
8305
+ * // "notes": "my_notes",
8306
+ * // "parameter": [],
8307
+ * // "parentFolderId": "my_parentFolderId",
8308
+ * // "path": "my_path",
8309
+ * // "tagManagerUrl": "my_tagManagerUrl",
8310
+ * // "transformationId": "my_transformationId",
8311
+ * // "type": "my_type",
8312
+ * // "workspaceId": "my_workspaceId"
8313
+ * // }
8314
+ * }
8315
+ *
8316
+ * main().catch(e => {
8317
+ * console.error(e);
8318
+ * throw e;
8319
+ * });
8320
+ *
8321
+ * ```
8322
+ *
8323
+ * @param params - Parameters for request
8324
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8325
+ * @param callback - Optional callback that handles the response.
8326
+ * @returns A promise if used with async/await, or void if used with a callback.
8327
+ */
8328
+ update(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Update, options: StreamMethodOptions): GaxiosPromise<Readable>;
8329
+ update(params?: Params$Resource$Accounts$Containers$Workspaces$Transformations$Update, options?: MethodOptions): GaxiosPromise<Schema$Transformation>;
8330
+ update(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
8331
+ update(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Update, options: MethodOptions | BodyResponseCallback<Schema$Transformation>, callback: BodyResponseCallback<Schema$Transformation>): void;
8332
+ update(params: Params$Resource$Accounts$Containers$Workspaces$Transformations$Update, callback: BodyResponseCallback<Schema$Transformation>): void;
8333
+ update(callback: BodyResponseCallback<Schema$Transformation>): void;
8334
+ }
8335
+ export interface Params$Resource$Accounts$Containers$Workspaces$Transformations$Create extends StandardParameters {
8336
+ /**
8337
+ * GTM Workspace's API relative path. Example: accounts/{account_id\}/containers/{container_id\}/workspaces/{workspace_id\}
8338
+ */
8339
+ parent?: string;
8340
+ /**
8341
+ * Request body metadata
8342
+ */
8343
+ requestBody?: Schema$Transformation;
8344
+ }
8345
+ export interface Params$Resource$Accounts$Containers$Workspaces$Transformations$Delete extends StandardParameters {
8346
+ /**
8347
+ * GTM Transformation's API relative path. Example: accounts/{account_id\}/containers/{container_id\}/workspaces/{workspace_id\}/transformations/{transformation_id\}
8348
+ */
8349
+ path?: string;
8350
+ }
8351
+ export interface Params$Resource$Accounts$Containers$Workspaces$Transformations$Get extends StandardParameters {
8352
+ /**
8353
+ * GTM Transformation's API relative path. Example: accounts/{account_id\}/containers/{container_id\}/workspaces/{workspace_id\}/transformations/{transformation_id\}
8354
+ */
8355
+ path?: string;
8356
+ }
8357
+ export interface Params$Resource$Accounts$Containers$Workspaces$Transformations$List extends StandardParameters {
8358
+ /**
8359
+ * Continuation token for fetching the next page of results.
8360
+ */
8361
+ pageToken?: string;
8362
+ /**
8363
+ * GTM Workspace's API relative path. Example: accounts/{account_id\}/containers/{container_id\}/workspaces/{workspace_id\}
8364
+ */
8365
+ parent?: string;
8366
+ }
8367
+ export interface Params$Resource$Accounts$Containers$Workspaces$Transformations$Revert extends StandardParameters {
8368
+ /**
8369
+ * When provided, this fingerprint must match the fingerprint of the transformation in storage.
8370
+ */
8371
+ fingerprint?: string;
8372
+ /**
8373
+ * GTM Transformation's API relative path. Example: accounts/{account_id\}/containers/{container_id\}/workspaces/{workspace_id\}/transformations/{transformation_id\}
8374
+ */
8375
+ path?: string;
8376
+ }
8377
+ export interface Params$Resource$Accounts$Containers$Workspaces$Transformations$Update extends StandardParameters {
8378
+ /**
8379
+ * When provided, this fingerprint must match the fingerprint of the transformation in storage.
8380
+ */
8381
+ fingerprint?: string;
8382
+ /**
8383
+ * GTM Transformation's API relative path. Example: accounts/{account_id\}/containers/{container_id\}/workspaces/{workspace_id\}/transformations/{transformation_id\}
8384
+ */
8385
+ path?: string;
8386
+ /**
8387
+ * Request body metadata
8388
+ */
8389
+ requestBody?: Schema$Transformation;
8390
+ }
7816
8391
  export class Resource$Accounts$Containers$Workspaces$Triggers {
7817
8392
  context: APIRequestContext;
7818
8393
  constructor(context: APIRequestContext);