UNPKG

googleapis

Version:
1,331 lines (1,330 loc) 63.6 kB
"use strict"; /** * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); var apirequest_1 = require("../../lib/apirequest"); // TODO: We will eventually get the `any` in here cleared out, but in the // interim we want to turn on no-implicit-any. // tslint:disable: no-any // tslint:disable: class-name // tslint:disable: variable-name // tslint:disable: jsdoc-format /** * Tag Manager API * * Accesses Tag Manager accounts and containers. * * @example * const google = require('googleapis'); * const tagmanager = google.tagmanager('v1'); * * @namespace tagmanager * @type {Function} * @version v1 * @variation v1 * @param {object=} options Options for Tagmanager */ var Tagmanager = /** @class */ (function () { function Tagmanager(options, google) { this.root = this; this._options = options || {}; this.google = google; this.getRoot.bind(this); this.accounts = new Resource$Accounts(this); } Tagmanager.prototype.getRoot = function () { return this.root; }; return Tagmanager; }()); exports.Tagmanager = Tagmanager; var Resource$Accounts = /** @class */ (function () { function Resource$Accounts(root) { this.root = root; this.getRoot.bind(this); this.containers = new Resource$Accounts$Containers(root); this.permissions = new Resource$Accounts$Permissions(root); } Resource$Accounts.prototype.getRoot = function () { return this.root; }; Resource$Accounts.prototype.get = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId'], pathParams: ['accountId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts.prototype.list = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: [], pathParams: [], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts.prototype.update = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), params: params, requiredParams: ['accountId'], pathParams: ['accountId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; return Resource$Accounts; }()); exports.Resource$Accounts = Resource$Accounts; var Resource$Accounts$Containers = /** @class */ (function () { function Resource$Accounts$Containers(root) { this.root = root; this.getRoot.bind(this); this.environments = new Resource$Accounts$Containers$Environments(root); this.folders = new Resource$Accounts$Containers$Folders(root); this.move_folders = new Resource$Accounts$Containers$Move_folders(root); this.reauthorize_environments = new Resource$Accounts$Containers$Reauthorize_environments(root); this.tags = new Resource$Accounts$Containers$Tags(root); this.triggers = new Resource$Accounts$Containers$Triggers(root); this.variables = new Resource$Accounts$Containers$Variables(root); this.versions = new Resource$Accounts$Containers$Versions(root); } Resource$Accounts$Containers.prototype.getRoot = function () { return this.root; }; Resource$Accounts$Containers.prototype.create = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params: params, requiredParams: ['accountId'], pathParams: ['accountId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers.prototype.delete = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers.prototype.get = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers.prototype.list = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId'], pathParams: ['accountId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers.prototype.update = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; return Resource$Accounts$Containers; }()); exports.Resource$Accounts$Containers = Resource$Accounts$Containers; var Resource$Accounts$Containers$Environments = /** @class */ (function () { function Resource$Accounts$Containers$Environments(root) { this.root = root; this.getRoot.bind(this); } Resource$Accounts$Containers$Environments.prototype.getRoot = function () { return this.root; }; Resource$Accounts$Containers$Environments.prototype.create = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Environments.prototype.delete = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), params: params, requiredParams: ['accountId', 'containerId', 'environmentId'], pathParams: ['accountId', 'containerId', 'environmentId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Environments.prototype.get = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId', 'containerId', 'environmentId'], pathParams: ['accountId', 'containerId', 'environmentId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Environments.prototype.list = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Environments.prototype.patch = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), params: params, requiredParams: ['accountId', 'containerId', 'environmentId'], pathParams: ['accountId', 'containerId', 'environmentId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Environments.prototype.update = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), params: params, requiredParams: ['accountId', 'containerId', 'environmentId'], pathParams: ['accountId', 'containerId', 'environmentId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; return Resource$Accounts$Containers$Environments; }()); exports.Resource$Accounts$Containers$Environments = Resource$Accounts$Containers$Environments; var Resource$Accounts$Containers$Folders = /** @class */ (function () { function Resource$Accounts$Containers$Folders(root) { this.root = root; this.getRoot.bind(this); this.entities = new Resource$Accounts$Containers$Folders$Entities(root); } Resource$Accounts$Containers$Folders.prototype.getRoot = function () { return this.root; }; Resource$Accounts$Containers$Folders.prototype.create = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Folders.prototype.delete = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), params: params, requiredParams: ['accountId', 'containerId', 'folderId'], pathParams: ['accountId', 'containerId', 'folderId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Folders.prototype.get = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId', 'containerId', 'folderId'], pathParams: ['accountId', 'containerId', 'folderId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Folders.prototype.list = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Folders.prototype.update = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), params: params, requiredParams: ['accountId', 'containerId', 'folderId'], pathParams: ['accountId', 'containerId', 'folderId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; return Resource$Accounts$Containers$Folders; }()); exports.Resource$Accounts$Containers$Folders = Resource$Accounts$Containers$Folders; var Resource$Accounts$Containers$Folders$Entities = /** @class */ (function () { function Resource$Accounts$Containers$Folders$Entities(root) { this.root = root; this.getRoot.bind(this); } Resource$Accounts$Containers$Folders$Entities.prototype.getRoot = function () { return this.root; }; Resource$Accounts$Containers$Folders$Entities.prototype.list = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId', 'containerId', 'folderId'], pathParams: ['accountId', 'containerId', 'folderId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; return Resource$Accounts$Containers$Folders$Entities; }()); exports.Resource$Accounts$Containers$Folders$Entities = Resource$Accounts$Containers$Folders$Entities; var Resource$Accounts$Containers$Move_folders = /** @class */ (function () { function Resource$Accounts$Containers$Move_folders(root) { this.root = root; this.getRoot.bind(this); } Resource$Accounts$Containers$Move_folders.prototype.getRoot = function () { return this.root; }; Resource$Accounts$Containers$Move_folders.prototype.update = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/move_folders/{folderId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), params: params, requiredParams: ['accountId', 'containerId', 'folderId'], pathParams: ['accountId', 'containerId', 'folderId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; return Resource$Accounts$Containers$Move_folders; }()); exports.Resource$Accounts$Containers$Move_folders = Resource$Accounts$Containers$Move_folders; var Resource$Accounts$Containers$Reauthorize_environments = /** @class */ (function () { function Resource$Accounts$Containers$Reauthorize_environments(root) { this.root = root; this.getRoot.bind(this); } Resource$Accounts$Containers$Reauthorize_environments.prototype.getRoot = function () { return this.root; }; Resource$Accounts$Containers$Reauthorize_environments.prototype.update = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), params: params, requiredParams: ['accountId', 'containerId', 'environmentId'], pathParams: ['accountId', 'containerId', 'environmentId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; return Resource$Accounts$Containers$Reauthorize_environments; }()); exports.Resource$Accounts$Containers$Reauthorize_environments = Resource$Accounts$Containers$Reauthorize_environments; var Resource$Accounts$Containers$Tags = /** @class */ (function () { function Resource$Accounts$Containers$Tags(root) { this.root = root; this.getRoot.bind(this); } Resource$Accounts$Containers$Tags.prototype.getRoot = function () { return this.root; }; Resource$Accounts$Containers$Tags.prototype.create = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Tags.prototype.delete = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), params: params, requiredParams: ['accountId', 'containerId', 'tagId'], pathParams: ['accountId', 'containerId', 'tagId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Tags.prototype.get = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId', 'containerId', 'tagId'], pathParams: ['accountId', 'containerId', 'tagId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Tags.prototype.list = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Tags.prototype.update = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), params: params, requiredParams: ['accountId', 'containerId', 'tagId'], pathParams: ['accountId', 'containerId', 'tagId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; return Resource$Accounts$Containers$Tags; }()); exports.Resource$Accounts$Containers$Tags = Resource$Accounts$Containers$Tags; var Resource$Accounts$Containers$Triggers = /** @class */ (function () { function Resource$Accounts$Containers$Triggers(root) { this.root = root; this.getRoot.bind(this); } Resource$Accounts$Containers$Triggers.prototype.getRoot = function () { return this.root; }; Resource$Accounts$Containers$Triggers.prototype.create = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Triggers.prototype.delete = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), params: params, requiredParams: ['accountId', 'containerId', 'triggerId'], pathParams: ['accountId', 'containerId', 'triggerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Triggers.prototype.get = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId', 'containerId', 'triggerId'], pathParams: ['accountId', 'containerId', 'triggerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Triggers.prototype.list = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Triggers.prototype.update = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), params: params, requiredParams: ['accountId', 'containerId', 'triggerId'], pathParams: ['accountId', 'containerId', 'triggerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; return Resource$Accounts$Containers$Triggers; }()); exports.Resource$Accounts$Containers$Triggers = Resource$Accounts$Containers$Triggers; var Resource$Accounts$Containers$Variables = /** @class */ (function () { function Resource$Accounts$Containers$Variables(root) { this.root = root; this.getRoot.bind(this); } Resource$Accounts$Containers$Variables.prototype.getRoot = function () { return this.root; }; Resource$Accounts$Containers$Variables.prototype.create = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Variables.prototype.delete = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), params: params, requiredParams: ['accountId', 'containerId', 'variableId'], pathParams: ['accountId', 'containerId', 'variableId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Variables.prototype.get = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId', 'containerId', 'variableId'], pathParams: ['accountId', 'containerId', 'variableId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Variables.prototype.list = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Variables.prototype.update = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), params: params, requiredParams: ['accountId', 'containerId', 'variableId'], pathParams: ['accountId', 'containerId', 'variableId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; return Resource$Accounts$Containers$Variables; }()); exports.Resource$Accounts$Containers$Variables = Resource$Accounts$Containers$Variables; var Resource$Accounts$Containers$Versions = /** @class */ (function () { function Resource$Accounts$Containers$Versions(root) { this.root = root; this.getRoot.bind(this); } Resource$Accounts$Containers$Versions.prototype.getRoot = function () { return this.root; }; Resource$Accounts$Containers$Versions.prototype.create = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = { options: Object.assign({ url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params: params, requiredParams: ['accountId', 'containerId'], pathParams: ['accountId', 'containerId'], context: this.getRoot() }; if (callback) { apirequest_1.createAPIRequest(parameters, callback); } else { return apirequest_1.createAPIRequest(parameters); } }; Resource$Accounts$Containers$Versions.prototype.delete = function (params, options, callback) { if (typeof options === 'function') { callback = options; options = {}; } if (typeof params === 'function') { callback = params; params = {}; } options = options || {}; var rootUrl = options.rootUrl || 'https://www.googleapis.com/'; var parameters = {