Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: generated/googleapis/lib/tagmanager/v1.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis/lib/surveys/v2.dart ('k') | generated/googleapis/lib/tagmanager/v2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/tagmanager/v1.dart
diff --git a/generated/googleapis/lib/tagmanager/v1.dart b/generated/googleapis/lib/tagmanager/v1.dart
index ba1e8d1246241ee20d0859db5ae7df8605ccf6ed..a71a71086e74e38b40b2967e8c8fa65619466a57 100644
--- a/generated/googleapis/lib/tagmanager/v1.dart
+++ b/generated/googleapis/lib/tagmanager/v1.dart
@@ -9,73 +9,76 @@ import 'dart:convert' as convert;
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
import 'package:http/http.dart' as http;
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
- ApiRequestError, DetailedApiRequestError;
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
+ show ApiRequestError, DetailedApiRequestError;
const core.String USER_AGENT = 'dart-api-client tagmanager/v1';
-/** Accesses Tag Manager accounts and containers. */
+/// Accesses Tag Manager accounts and containers.
class TagmanagerApi {
- /** Delete your Google Tag Manager containers */
- static const TagmanagerDeleteContainersScope = "https://www.googleapis.com/auth/tagmanager.delete.containers";
+ /// Delete your Google Tag Manager containers
+ static const TagmanagerDeleteContainersScope =
+ "https://www.googleapis.com/auth/tagmanager.delete.containers";
- /**
- * Manage your Google Tag Manager container and its subcomponents, excluding
- * versioning and publishing
- */
- static const TagmanagerEditContainersScope = "https://www.googleapis.com/auth/tagmanager.edit.containers";
+ /// Manage your Google Tag Manager container and its subcomponents, excluding
+ /// versioning and publishing
+ static const TagmanagerEditContainersScope =
+ "https://www.googleapis.com/auth/tagmanager.edit.containers";
- /** Manage your Google Tag Manager container versions */
- static const TagmanagerEditContainerversionsScope = "https://www.googleapis.com/auth/tagmanager.edit.containerversions";
+ /// Manage your Google Tag Manager container versions
+ static const TagmanagerEditContainerversionsScope =
+ "https://www.googleapis.com/auth/tagmanager.edit.containerversions";
- /** View and manage your Google Tag Manager accounts */
- static const TagmanagerManageAccountsScope = "https://www.googleapis.com/auth/tagmanager.manage.accounts";
+ /// View and manage your Google Tag Manager accounts
+ static const TagmanagerManageAccountsScope =
+ "https://www.googleapis.com/auth/tagmanager.manage.accounts";
- /**
- * Manage user permissions of your Google Tag Manager account and container
- */
- static const TagmanagerManageUsersScope = "https://www.googleapis.com/auth/tagmanager.manage.users";
+ /// Manage user permissions of your Google Tag Manager account and container
+ static const TagmanagerManageUsersScope =
+ "https://www.googleapis.com/auth/tagmanager.manage.users";
- /** Publish your Google Tag Manager container versions */
- static const TagmanagerPublishScope = "https://www.googleapis.com/auth/tagmanager.publish";
-
- /** View your Google Tag Manager container and its subcomponents */
- static const TagmanagerReadonlyScope = "https://www.googleapis.com/auth/tagmanager.readonly";
+ /// Publish your Google Tag Manager container versions
+ static const TagmanagerPublishScope =
+ "https://www.googleapis.com/auth/tagmanager.publish";
+ /// View your Google Tag Manager container and its subcomponents
+ static const TagmanagerReadonlyScope =
+ "https://www.googleapis.com/auth/tagmanager.readonly";
final commons.ApiRequester _requester;
AccountsResourceApi get accounts => new AccountsResourceApi(_requester);
- TagmanagerApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "tagmanager/v1/"}) :
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
+ TagmanagerApi(http.Client client,
+ {core.String rootUrl: "https://www.googleapis.com/",
+ core.String servicePath: "tagmanager/v1/"})
+ : _requester =
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
}
-
class AccountsResourceApi {
final commons.ApiRequester _requester;
- AccountsContainersResourceApi get containers => new AccountsContainersResourceApi(_requester);
- AccountsPermissionsResourceApi get permissions => new AccountsPermissionsResourceApi(_requester);
-
- AccountsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Gets a GTM Account.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * Completes with a [Account].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ AccountsContainersResourceApi get containers =>
+ new AccountsContainersResourceApi(_requester);
+ AccountsPermissionsResourceApi get permissions =>
+ new AccountsPermissionsResourceApi(_requester);
+
+ AccountsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Gets a GTM Account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// Completes with a [Account].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Account> get(core.String accountId) {
var _url = null;
var _queryParams = new core.Map();
@@ -90,29 +93,26 @@ class AccountsResourceApi {
_url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Account.fromJson(data));
}
- /**
- * Lists all GTM Accounts that a user has access to.
- *
- * Request parameters:
- *
- * Completes with a [ListAccountsResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Lists all GTM Accounts that a user has access to.
+ ///
+ /// Request parameters:
+ ///
+ /// Completes with a [ListAccountsResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<ListAccountsResponse> list() {
var _url = null;
var _queryParams = new core.Map();
@@ -121,40 +121,37 @@ class AccountsResourceApi {
var _downloadOptions = commons.DownloadOptions.Metadata;
var _body = null;
-
_url = 'accounts';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ListAccountsResponse.fromJson(data));
}
- /**
- * Updates a GTM Account.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [fingerprint] - When provided, this fingerprint must match the fingerprint
- * of the account in storage.
- *
- * Completes with a [Account].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Account> update(Account request, core.String accountId, {core.String fingerprint}) {
+ /// Updates a GTM Account.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [fingerprint] - When provided, this fingerprint must match the
+ /// fingerprint of the account in storage.
+ ///
+ /// Completes with a [Account].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Account> update(Account request, core.String accountId,
+ {core.String fingerprint}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -174,51 +171,55 @@ class AccountsResourceApi {
_url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Account.fromJson(data));
}
-
}
-
class AccountsContainersResourceApi {
final commons.ApiRequester _requester;
- AccountsContainersEnvironmentsResourceApi get environments => new AccountsContainersEnvironmentsResourceApi(_requester);
- AccountsContainersFoldersResourceApi get folders => new AccountsContainersFoldersResourceApi(_requester);
- AccountsContainersMoveFoldersResourceApi get moveFolders => new AccountsContainersMoveFoldersResourceApi(_requester);
- AccountsContainersReauthorizeEnvironmentsResourceApi get reauthorizeEnvironments => new AccountsContainersReauthorizeEnvironmentsResourceApi(_requester);
- AccountsContainersTagsResourceApi get tags => new AccountsContainersTagsResourceApi(_requester);
- AccountsContainersTriggersResourceApi get triggers => new AccountsContainersTriggersResourceApi(_requester);
- AccountsContainersVariablesResourceApi get variables => new AccountsContainersVariablesResourceApi(_requester);
- AccountsContainersVersionsResourceApi get versions => new AccountsContainersVersionsResourceApi(_requester);
-
- AccountsContainersResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Creates a Container.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * Completes with a [Container].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ AccountsContainersEnvironmentsResourceApi get environments =>
+ new AccountsContainersEnvironmentsResourceApi(_requester);
+ AccountsContainersFoldersResourceApi get folders =>
+ new AccountsContainersFoldersResourceApi(_requester);
+ AccountsContainersMoveFoldersResourceApi get moveFolders =>
+ new AccountsContainersMoveFoldersResourceApi(_requester);
+ AccountsContainersReauthorizeEnvironmentsResourceApi
+ get reauthorizeEnvironments =>
+ new AccountsContainersReauthorizeEnvironmentsResourceApi(_requester);
+ AccountsContainersTagsResourceApi get tags =>
+ new AccountsContainersTagsResourceApi(_requester);
+ AccountsContainersTriggersResourceApi get triggers =>
+ new AccountsContainersTriggersResourceApi(_requester);
+ AccountsContainersVariablesResourceApi get variables =>
+ new AccountsContainersVariablesResourceApi(_requester);
+ AccountsContainersVersionsResourceApi get versions =>
+ new AccountsContainersVersionsResourceApi(_requester);
+
+ AccountsContainersResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Creates a Container.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// Completes with a [Container].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Container> create(Container request, core.String accountId) {
var _url = null;
var _queryParams = new core.Map();
@@ -234,33 +235,32 @@ class AccountsContainersResourceApi {
throw new core.ArgumentError("Parameter accountId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Container.fromJson(data));
}
- /**
- * Deletes a Container.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Deletes a Container.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String accountId, core.String containerId) {
var _url = null;
var _queryParams = new core.Map();
@@ -278,35 +278,35 @@ class AccountsContainersResourceApi {
_downloadOptions = null;
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Gets a Container.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * Completes with a [Container].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Gets a Container.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// Completes with a [Container].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Container> get(core.String accountId, core.String containerId) {
var _url = null;
var _queryParams = new core.Map();
@@ -322,33 +322,33 @@ class AccountsContainersResourceApi {
throw new core.ArgumentError("Parameter containerId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Container.fromJson(data));
}
- /**
- * Lists all Containers that belongs to a GTM Account.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * Completes with a [ListContainersResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Lists all Containers that belongs to a GTM Account.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// Completes with a [ListContainersResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<ListContainersResponse> list(core.String accountId) {
var _url = null;
var _queryParams = new core.Map();
@@ -361,41 +361,42 @@ class AccountsContainersResourceApi {
throw new core.ArgumentError("Parameter accountId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ListContainersResponse.fromJson(data));
}
- /**
- * Updates a Container.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [fingerprint] - When provided, this fingerprint must match the fingerprint
- * of the container in storage.
- *
- * Completes with a [Container].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Container> update(Container request, core.String accountId, core.String containerId, {core.String fingerprint}) {
+ /// Updates a Container.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [fingerprint] - When provided, this fingerprint must match the
+ /// fingerprint of the container in storage.
+ ///
+ /// Completes with a [Container].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Container> update(
+ Container request, core.String accountId, core.String containerId,
+ {core.String fingerprint}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -416,47 +417,46 @@ class AccountsContainersResourceApi {
_queryParams["fingerprint"] = [fingerprint];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Container.fromJson(data));
}
-
}
-
class AccountsContainersEnvironmentsResourceApi {
final commons.ApiRequester _requester;
- AccountsContainersEnvironmentsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Creates a GTM Environment.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * Completes with a [Environment].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Environment> create(Environment request, core.String accountId, core.String containerId) {
+ AccountsContainersEnvironmentsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Creates a GTM Environment.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// Completes with a [Environment].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Environment> create(
+ Environment request, core.String accountId, core.String containerId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -474,36 +474,38 @@ class AccountsContainersEnvironmentsResourceApi {
throw new core.ArgumentError("Parameter containerId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/environments';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/environments';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Environment.fromJson(data));
}
- /**
- * Deletes a GTM Environment.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [environmentId] - The GTM Environment ID.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String containerId, core.String environmentId) {
+ /// Deletes a GTM Environment.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [environmentId] - The GTM Environment ID.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(core.String accountId, core.String containerId,
+ core.String environmentId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -523,38 +525,41 @@ class AccountsContainersEnvironmentsResourceApi {
_downloadOptions = null;
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/environments/' + commons.Escaper.ecapeVariable('$environmentId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/environments/' +
+ commons.Escaper.ecapeVariable('$environmentId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Gets a GTM Environment.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [environmentId] - The GTM Environment ID.
- *
- * Completes with a [Environment].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Environment> get(core.String accountId, core.String containerId, core.String environmentId) {
+ /// Gets a GTM Environment.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [environmentId] - The GTM Environment ID.
+ ///
+ /// Completes with a [Environment].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Environment> get(core.String accountId, core.String containerId,
+ core.String environmentId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -572,36 +577,39 @@ class AccountsContainersEnvironmentsResourceApi {
throw new core.ArgumentError("Parameter environmentId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/environments/' + commons.Escaper.ecapeVariable('$environmentId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/environments/' +
+ commons.Escaper.ecapeVariable('$environmentId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Environment.fromJson(data));
}
- /**
- * Lists all GTM Environments of a GTM Container.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * Completes with a [ListEnvironmentsResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ListEnvironmentsResponse> list(core.String accountId, core.String containerId) {
+ /// Lists all GTM Environments of a GTM Container.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// Completes with a [ListEnvironmentsResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ListEnvironmentsResponse> list(
+ core.String accountId, core.String containerId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -616,43 +624,47 @@ class AccountsContainersEnvironmentsResourceApi {
throw new core.ArgumentError("Parameter containerId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/environments';
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new ListEnvironmentsResponse.fromJson(data));
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/environments';
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new ListEnvironmentsResponse.fromJson(data));
}
- /**
- * Updates a GTM Environment. This method supports patch semantics.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [environmentId] - The GTM Environment ID.
- *
- * [fingerprint] - When provided, this fingerprint must match the fingerprint
- * of the environment in storage.
- *
- * Completes with a [Environment].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Environment> patch(Environment request, core.String accountId, core.String containerId, core.String environmentId, {core.String fingerprint}) {
+ /// Updates a GTM Environment. This method supports patch semantics.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [environmentId] - The GTM Environment ID.
+ ///
+ /// [fingerprint] - When provided, this fingerprint must match the
+ /// fingerprint of the environment in storage.
+ ///
+ /// Completes with a [Environment].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Environment> patch(Environment request, core.String accountId,
+ core.String containerId, core.String environmentId,
+ {core.String fingerprint}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -676,43 +688,47 @@ class AccountsContainersEnvironmentsResourceApi {
_queryParams["fingerprint"] = [fingerprint];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/environments/' + commons.Escaper.ecapeVariable('$environmentId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/environments/' +
+ commons.Escaper.ecapeVariable('$environmentId');
- var _response = _requester.request(_url,
- "PATCH",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Environment.fromJson(data));
}
- /**
- * Updates a GTM Environment.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [environmentId] - The GTM Environment ID.
- *
- * [fingerprint] - When provided, this fingerprint must match the fingerprint
- * of the environment in storage.
- *
- * Completes with a [Environment].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Environment> update(Environment request, core.String accountId, core.String containerId, core.String environmentId, {core.String fingerprint}) {
+ /// Updates a GTM Environment.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [environmentId] - The GTM Environment ID.
+ ///
+ /// [fingerprint] - When provided, this fingerprint must match the
+ /// fingerprint of the environment in storage.
+ ///
+ /// Completes with a [Environment].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Environment> update(Environment request, core.String accountId,
+ core.String containerId, core.String environmentId,
+ {core.String fingerprint}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -736,49 +752,51 @@ class AccountsContainersEnvironmentsResourceApi {
_queryParams["fingerprint"] = [fingerprint];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/environments/' + commons.Escaper.ecapeVariable('$environmentId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/environments/' +
+ commons.Escaper.ecapeVariable('$environmentId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Environment.fromJson(data));
}
-
}
-
class AccountsContainersFoldersResourceApi {
final commons.ApiRequester _requester;
- AccountsContainersFoldersEntitiesResourceApi get entities => new AccountsContainersFoldersEntitiesResourceApi(_requester);
-
- AccountsContainersFoldersResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Creates a GTM Folder.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * Completes with a [Folder].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Folder> create(Folder request, core.String accountId, core.String containerId) {
+ AccountsContainersFoldersEntitiesResourceApi get entities =>
+ new AccountsContainersFoldersEntitiesResourceApi(_requester);
+
+ AccountsContainersFoldersResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Creates a GTM Folder.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// Completes with a [Folder].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Folder> create(
+ Folder request, core.String accountId, core.String containerId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -796,36 +814,38 @@ class AccountsContainersFoldersResourceApi {
throw new core.ArgumentError("Parameter containerId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/folders';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/folders';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Folder.fromJson(data));
}
- /**
- * Deletes a GTM Folder.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [folderId] - The GTM Folder ID.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String containerId, core.String folderId) {
+ /// Deletes a GTM Folder.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [folderId] - The GTM Folder ID.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(
+ core.String accountId, core.String containerId, core.String folderId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -845,38 +865,41 @@ class AccountsContainersFoldersResourceApi {
_downloadOptions = null;
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/folders/' + commons.Escaper.ecapeVariable('$folderId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/folders/' +
+ commons.Escaper.ecapeVariable('$folderId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Gets a GTM Folder.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [folderId] - The GTM Folder ID.
- *
- * Completes with a [Folder].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Folder> get(core.String accountId, core.String containerId, core.String folderId) {
+ /// Gets a GTM Folder.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [folderId] - The GTM Folder ID.
+ ///
+ /// Completes with a [Folder].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Folder> get(
+ core.String accountId, core.String containerId, core.String folderId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -894,36 +917,39 @@ class AccountsContainersFoldersResourceApi {
throw new core.ArgumentError("Parameter folderId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/folders/' + commons.Escaper.ecapeVariable('$folderId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/folders/' +
+ commons.Escaper.ecapeVariable('$folderId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Folder.fromJson(data));
}
- /**
- * Lists all GTM Folders of a Container.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * Completes with a [ListFoldersResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ListFoldersResponse> list(core.String accountId, core.String containerId) {
+ /// Lists all GTM Folders of a Container.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// Completes with a [ListFoldersResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ListFoldersResponse> list(
+ core.String accountId, core.String containerId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -938,43 +964,46 @@ class AccountsContainersFoldersResourceApi {
throw new core.ArgumentError("Parameter containerId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/folders';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/folders';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ListFoldersResponse.fromJson(data));
}
- /**
- * Updates a GTM Folder.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [folderId] - The GTM Folder ID.
- *
- * [fingerprint] - When provided, this fingerprint must match the fingerprint
- * of the folder in storage.
- *
- * Completes with a [Folder].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Folder> update(Folder request, core.String accountId, core.String containerId, core.String folderId, {core.String fingerprint}) {
+ /// Updates a GTM Folder.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [folderId] - The GTM Folder ID.
+ ///
+ /// [fingerprint] - When provided, this fingerprint must match the
+ /// fingerprint of the folder in storage.
+ ///
+ /// Completes with a [Folder].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Folder> update(Folder request, core.String accountId,
+ core.String containerId, core.String folderId,
+ {core.String fingerprint}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -998,47 +1027,48 @@ class AccountsContainersFoldersResourceApi {
_queryParams["fingerprint"] = [fingerprint];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/folders/' + commons.Escaper.ecapeVariable('$folderId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/folders/' +
+ commons.Escaper.ecapeVariable('$folderId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Folder.fromJson(data));
}
-
}
-
class AccountsContainersFoldersEntitiesResourceApi {
final commons.ApiRequester _requester;
- AccountsContainersFoldersEntitiesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List all entities in a GTM Folder.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [folderId] - The GTM Folder ID.
- *
- * Completes with a [FolderEntities].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<FolderEntities> list(core.String accountId, core.String containerId, core.String folderId) {
+ AccountsContainersFoldersEntitiesResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// List all entities in a GTM Folder.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [folderId] - The GTM Folder ID.
+ ///
+ /// Completes with a [FolderEntities].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<FolderEntities> list(
+ core.String accountId, core.String containerId, core.String folderId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1056,53 +1086,58 @@ class AccountsContainersFoldersEntitiesResourceApi {
throw new core.ArgumentError("Parameter folderId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/folders/' + commons.Escaper.ecapeVariable('$folderId') + '/entities';
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/folders/' +
+ commons.Escaper.ecapeVariable('$folderId') +
+ '/entities';
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new FolderEntities.fromJson(data));
}
-
}
-
class AccountsContainersMoveFoldersResourceApi {
final commons.ApiRequester _requester;
- AccountsContainersMoveFoldersResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Moves entities to a GTM Folder.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [folderId] - The GTM Folder ID.
- *
- * [tagId] - The tags to be moved to the folder.
- *
- * [triggerId] - The triggers to be moved to the folder.
- *
- * [variableId] - The variables to be moved to the folder.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future update(Folder request, core.String accountId, core.String containerId, core.String folderId, {core.List<core.String> tagId, core.List<core.String> triggerId, core.List<core.String> variableId}) {
+ AccountsContainersMoveFoldersResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Moves entities to a GTM Folder.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [folderId] - The GTM Folder ID.
+ ///
+ /// [tagId] - The tags to be moved to the folder.
+ ///
+ /// [triggerId] - The triggers to be moved to the folder.
+ ///
+ /// [variableId] - The variables to be moved to the folder.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future update(Folder request, core.String accountId,
+ core.String containerId, core.String folderId,
+ {core.List<core.String> tagId,
+ core.List<core.String> triggerId,
+ core.List<core.String> variableId}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1134,49 +1169,51 @@ class AccountsContainersMoveFoldersResourceApi {
_downloadOptions = null;
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/move_folders/' + commons.Escaper.ecapeVariable('$folderId');
-
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/move_folders/' +
+ commons.Escaper.ecapeVariable('$folderId');
+
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
-
}
-
class AccountsContainersReauthorizeEnvironmentsResourceApi {
final commons.ApiRequester _requester;
- AccountsContainersReauthorizeEnvironmentsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Re-generates the authorization code for a GTM Environment.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [environmentId] - The GTM Environment ID.
- *
- * Completes with a [Environment].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Environment> update(Environment request, core.String accountId, core.String containerId, core.String environmentId) {
+ AccountsContainersReauthorizeEnvironmentsResourceApi(
+ commons.ApiRequester client)
+ : _requester = client;
+
+ /// Re-generates the authorization code for a GTM Environment.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [environmentId] - The GTM Environment ID.
+ ///
+ /// Completes with a [Environment].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Environment> update(Environment request, core.String accountId,
+ core.String containerId, core.String environmentId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1197,47 +1234,48 @@ class AccountsContainersReauthorizeEnvironmentsResourceApi {
throw new core.ArgumentError("Parameter environmentId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/reauthorize_environments/' + commons.Escaper.ecapeVariable('$environmentId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/reauthorize_environments/' +
+ commons.Escaper.ecapeVariable('$environmentId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Environment.fromJson(data));
}
-
}
-
class AccountsContainersTagsResourceApi {
final commons.ApiRequester _requester;
- AccountsContainersTagsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Creates a GTM Tag.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * Completes with a [Tag].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Tag> create(Tag request, core.String accountId, core.String containerId) {
+ AccountsContainersTagsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Creates a GTM Tag.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// Completes with a [Tag].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Tag> create(
+ Tag request, core.String accountId, core.String containerId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1255,36 +1293,38 @@ class AccountsContainersTagsResourceApi {
throw new core.ArgumentError("Parameter containerId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/tags';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/tags';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Tag.fromJson(data));
}
- /**
- * Deletes a GTM Tag.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [tagId] - The GTM Tag ID.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String containerId, core.String tagId) {
+ /// Deletes a GTM Tag.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [tagId] - The GTM Tag ID.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(
+ core.String accountId, core.String containerId, core.String tagId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1304,38 +1344,41 @@ class AccountsContainersTagsResourceApi {
_downloadOptions = null;
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/tags/' + commons.Escaper.ecapeVariable('$tagId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/tags/' +
+ commons.Escaper.ecapeVariable('$tagId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Gets a GTM Tag.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [tagId] - The GTM Tag ID.
- *
- * Completes with a [Tag].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Tag> get(core.String accountId, core.String containerId, core.String tagId) {
+ /// Gets a GTM Tag.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [tagId] - The GTM Tag ID.
+ ///
+ /// Completes with a [Tag].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Tag> get(
+ core.String accountId, core.String containerId, core.String tagId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1353,36 +1396,39 @@ class AccountsContainersTagsResourceApi {
throw new core.ArgumentError("Parameter tagId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/tags/' + commons.Escaper.ecapeVariable('$tagId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/tags/' +
+ commons.Escaper.ecapeVariable('$tagId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Tag.fromJson(data));
}
- /**
- * Lists all GTM Tags of a Container.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * Completes with a [ListTagsResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ListTagsResponse> list(core.String accountId, core.String containerId) {
+ /// Lists all GTM Tags of a Container.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// Completes with a [ListTagsResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ListTagsResponse> list(
+ core.String accountId, core.String containerId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1397,43 +1443,46 @@ class AccountsContainersTagsResourceApi {
throw new core.ArgumentError("Parameter containerId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/tags';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/tags';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ListTagsResponse.fromJson(data));
}
- /**
- * Updates a GTM Tag.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [tagId] - The GTM Tag ID.
- *
- * [fingerprint] - When provided, this fingerprint must match the fingerprint
- * of the tag in storage.
- *
- * Completes with a [Tag].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Tag> update(Tag request, core.String accountId, core.String containerId, core.String tagId, {core.String fingerprint}) {
+ /// Updates a GTM Tag.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [tagId] - The GTM Tag ID.
+ ///
+ /// [fingerprint] - When provided, this fingerprint must match the
+ /// fingerprint of the tag in storage.
+ ///
+ /// Completes with a [Tag].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Tag> update(Tag request, core.String accountId,
+ core.String containerId, core.String tagId,
+ {core.String fingerprint}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1457,47 +1506,48 @@ class AccountsContainersTagsResourceApi {
_queryParams["fingerprint"] = [fingerprint];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/tags/' + commons.Escaper.ecapeVariable('$tagId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/tags/' +
+ commons.Escaper.ecapeVariable('$tagId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Tag.fromJson(data));
}
-
}
-
class AccountsContainersTriggersResourceApi {
final commons.ApiRequester _requester;
- AccountsContainersTriggersResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Creates a GTM Trigger.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * Completes with a [Trigger].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Trigger> create(Trigger request, core.String accountId, core.String containerId) {
+ AccountsContainersTriggersResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Creates a GTM Trigger.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// Completes with a [Trigger].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Trigger> create(
+ Trigger request, core.String accountId, core.String containerId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1515,36 +1565,38 @@ class AccountsContainersTriggersResourceApi {
throw new core.ArgumentError("Parameter containerId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/triggers';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/triggers';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Trigger.fromJson(data));
}
- /**
- * Deletes a GTM Trigger.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [triggerId] - The GTM Trigger ID.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String containerId, core.String triggerId) {
+ /// Deletes a GTM Trigger.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [triggerId] - The GTM Trigger ID.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(
+ core.String accountId, core.String containerId, core.String triggerId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1564,38 +1616,41 @@ class AccountsContainersTriggersResourceApi {
_downloadOptions = null;
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/triggers/' + commons.Escaper.ecapeVariable('$triggerId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/triggers/' +
+ commons.Escaper.ecapeVariable('$triggerId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Gets a GTM Trigger.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [triggerId] - The GTM Trigger ID.
- *
- * Completes with a [Trigger].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Trigger> get(core.String accountId, core.String containerId, core.String triggerId) {
+ /// Gets a GTM Trigger.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [triggerId] - The GTM Trigger ID.
+ ///
+ /// Completes with a [Trigger].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Trigger> get(
+ core.String accountId, core.String containerId, core.String triggerId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1613,36 +1668,39 @@ class AccountsContainersTriggersResourceApi {
throw new core.ArgumentError("Parameter triggerId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/triggers/' + commons.Escaper.ecapeVariable('$triggerId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/triggers/' +
+ commons.Escaper.ecapeVariable('$triggerId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Trigger.fromJson(data));
}
- /**
- * Lists all GTM Triggers of a Container.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * Completes with a [ListTriggersResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ListTriggersResponse> list(core.String accountId, core.String containerId) {
+ /// Lists all GTM Triggers of a Container.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// Completes with a [ListTriggersResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ListTriggersResponse> list(
+ core.String accountId, core.String containerId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1657,43 +1715,46 @@ class AccountsContainersTriggersResourceApi {
throw new core.ArgumentError("Parameter containerId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/triggers';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/triggers';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ListTriggersResponse.fromJson(data));
}
- /**
- * Updates a GTM Trigger.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [triggerId] - The GTM Trigger ID.
- *
- * [fingerprint] - When provided, this fingerprint must match the fingerprint
- * of the trigger in storage.
- *
- * Completes with a [Trigger].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Trigger> update(Trigger request, core.String accountId, core.String containerId, core.String triggerId, {core.String fingerprint}) {
+ /// Updates a GTM Trigger.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [triggerId] - The GTM Trigger ID.
+ ///
+ /// [fingerprint] - When provided, this fingerprint must match the
+ /// fingerprint of the trigger in storage.
+ ///
+ /// Completes with a [Trigger].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Trigger> update(Trigger request, core.String accountId,
+ core.String containerId, core.String triggerId,
+ {core.String fingerprint}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1717,47 +1778,48 @@ class AccountsContainersTriggersResourceApi {
_queryParams["fingerprint"] = [fingerprint];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/triggers/' + commons.Escaper.ecapeVariable('$triggerId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/triggers/' +
+ commons.Escaper.ecapeVariable('$triggerId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Trigger.fromJson(data));
}
-
}
-
class AccountsContainersVariablesResourceApi {
final commons.ApiRequester _requester;
- AccountsContainersVariablesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Creates a GTM Variable.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * Completes with a [Variable].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Variable> create(Variable request, core.String accountId, core.String containerId) {
+ AccountsContainersVariablesResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Creates a GTM Variable.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// Completes with a [Variable].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Variable> create(
+ Variable request, core.String accountId, core.String containerId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1775,36 +1837,38 @@ class AccountsContainersVariablesResourceApi {
throw new core.ArgumentError("Parameter containerId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/variables';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/variables';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Variable.fromJson(data));
}
- /**
- * Deletes a GTM Variable.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [variableId] - The GTM Variable ID.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String containerId, core.String variableId) {
+ /// Deletes a GTM Variable.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [variableId] - The GTM Variable ID.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(
+ core.String accountId, core.String containerId, core.String variableId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1824,38 +1888,41 @@ class AccountsContainersVariablesResourceApi {
_downloadOptions = null;
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/variables/' + commons.Escaper.ecapeVariable('$variableId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/variables/' +
+ commons.Escaper.ecapeVariable('$variableId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Gets a GTM Variable.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [variableId] - The GTM Variable ID.
- *
- * Completes with a [Variable].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Variable> get(core.String accountId, core.String containerId, core.String variableId) {
+ /// Gets a GTM Variable.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [variableId] - The GTM Variable ID.
+ ///
+ /// Completes with a [Variable].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Variable> get(
+ core.String accountId, core.String containerId, core.String variableId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1873,36 +1940,39 @@ class AccountsContainersVariablesResourceApi {
throw new core.ArgumentError("Parameter variableId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/variables/' + commons.Escaper.ecapeVariable('$variableId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/variables/' +
+ commons.Escaper.ecapeVariable('$variableId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Variable.fromJson(data));
}
- /**
- * Lists all GTM Variables of a Container.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * Completes with a [ListVariablesResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ListVariablesResponse> list(core.String accountId, core.String containerId) {
+ /// Lists all GTM Variables of a Container.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// Completes with a [ListVariablesResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ListVariablesResponse> list(
+ core.String accountId, core.String containerId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1917,43 +1987,46 @@ class AccountsContainersVariablesResourceApi {
throw new core.ArgumentError("Parameter containerId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/variables';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/variables';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ListVariablesResponse.fromJson(data));
}
- /**
- * Updates a GTM Variable.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [variableId] - The GTM Variable ID.
- *
- * [fingerprint] - When provided, this fingerprint must match the fingerprint
- * of the variable in storage.
- *
- * Completes with a [Variable].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Variable> update(Variable request, core.String accountId, core.String containerId, core.String variableId, {core.String fingerprint}) {
+ /// Updates a GTM Variable.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [variableId] - The GTM Variable ID.
+ ///
+ /// [fingerprint] - When provided, this fingerprint must match the
+ /// fingerprint of the variable in storage.
+ ///
+ /// Completes with a [Variable].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Variable> update(Variable request, core.String accountId,
+ core.String containerId, core.String variableId,
+ {core.String fingerprint}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1977,47 +2050,50 @@ class AccountsContainersVariablesResourceApi {
_queryParams["fingerprint"] = [fingerprint];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/variables/' + commons.Escaper.ecapeVariable('$variableId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/variables/' +
+ commons.Escaper.ecapeVariable('$variableId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Variable.fromJson(data));
}
-
}
-
class AccountsContainersVersionsResourceApi {
final commons.ApiRequester _requester;
- AccountsContainersVersionsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Creates a Container Version.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * Completes with a [CreateContainerVersionResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<CreateContainerVersionResponse> create(CreateContainerVersionRequestVersionOptions request, core.String accountId, core.String containerId) {
+ AccountsContainersVersionsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Creates a Container Version.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// Completes with a [CreateContainerVersionResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<CreateContainerVersionResponse> create(
+ CreateContainerVersionRequestVersionOptions request,
+ core.String accountId,
+ core.String containerId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2035,36 +2111,39 @@ class AccountsContainersVersionsResourceApi {
throw new core.ArgumentError("Parameter containerId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/versions';
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new CreateContainerVersionResponse.fromJson(data));
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/versions';
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new CreateContainerVersionResponse.fromJson(data));
}
- /**
- * Deletes a Container Version.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [containerVersionId] - The GTM Container Version ID.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future delete(core.String accountId, core.String containerId, core.String containerVersionId) {
+ /// Deletes a Container Version.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [containerVersionId] - The GTM Container Version ID.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future delete(core.String accountId, core.String containerId,
+ core.String containerVersionId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2084,39 +2163,42 @@ class AccountsContainersVersionsResourceApi {
_downloadOptions = null;
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/versions/' + commons.Escaper.ecapeVariable('$containerVersionId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/versions/' +
+ commons.Escaper.ecapeVariable('$containerVersionId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Gets a Container Version.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [containerVersionId] - The GTM Container Version ID. Specify published to
- * retrieve the currently published version.
- *
- * Completes with a [ContainerVersion].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ContainerVersion> get(core.String accountId, core.String containerId, core.String containerVersionId) {
+ /// Gets a Container Version.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [containerVersionId] - The GTM Container Version ID. Specify published to
+ /// retrieve the currently published version.
+ ///
+ /// Completes with a [ContainerVersion].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ContainerVersion> get(core.String accountId,
+ core.String containerId, core.String containerVersionId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2134,40 +2216,44 @@ class AccountsContainersVersionsResourceApi {
throw new core.ArgumentError("Parameter containerVersionId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/versions/' + commons.Escaper.ecapeVariable('$containerVersionId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/versions/' +
+ commons.Escaper.ecapeVariable('$containerVersionId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ContainerVersion.fromJson(data));
}
- /**
- * Lists all Container Versions of a GTM Container.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [headers] - Retrieve headers only when true.
- *
- * [includeDeleted] - Also retrieve deleted (archived) versions when true.
- *
- * Completes with a [ListContainerVersionsResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ListContainerVersionsResponse> list(core.String accountId, core.String containerId, {core.bool headers, core.bool includeDeleted}) {
+ /// Lists all Container Versions of a GTM Container.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [headers] - Retrieve headers only when true.
+ ///
+ /// [includeDeleted] - Also retrieve deleted (archived) versions when true.
+ ///
+ /// Completes with a [ListContainerVersionsResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ListContainerVersionsResponse> list(
+ core.String accountId, core.String containerId,
+ {core.bool headers, core.bool includeDeleted}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2188,41 +2274,45 @@ class AccountsContainersVersionsResourceApi {
_queryParams["includeDeleted"] = ["${includeDeleted}"];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/versions';
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new ListContainerVersionsResponse.fromJson(data));
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/versions';
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new ListContainerVersionsResponse.fromJson(data));
}
- /**
- * Publishes a Container Version.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [containerVersionId] - The GTM Container Version ID.
- *
- * [fingerprint] - When provided, this fingerprint must match the fingerprint
- * of the container version in storage.
- *
- * Completes with a [PublishContainerVersionResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<PublishContainerVersionResponse> publish(core.String accountId, core.String containerId, core.String containerVersionId, {core.String fingerprint}) {
+ /// Publishes a Container Version.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [containerVersionId] - The GTM Container Version ID.
+ ///
+ /// [fingerprint] - When provided, this fingerprint must match the
+ /// fingerprint of the container version in storage.
+ ///
+ /// Completes with a [PublishContainerVersionResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<PublishContainerVersionResponse> publish(core.String accountId,
+ core.String containerId, core.String containerVersionId,
+ {core.String fingerprint}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2243,41 +2333,46 @@ class AccountsContainersVersionsResourceApi {
_queryParams["fingerprint"] = [fingerprint];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/versions/' + commons.Escaper.ecapeVariable('$containerVersionId') + '/publish';
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new PublishContainerVersionResponse.fromJson(data));
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/versions/' +
+ commons.Escaper.ecapeVariable('$containerVersionId') +
+ '/publish';
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new PublishContainerVersionResponse.fromJson(data));
}
- /**
- * Restores a Container Version. This will overwrite the container's current
- * configuration (including its variables, triggers and tags). The operation
- * will not have any effect on the version that is being served (i.e. the
- * published version).
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [containerVersionId] - The GTM Container Version ID.
- *
- * Completes with a [ContainerVersion].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ContainerVersion> restore(core.String accountId, core.String containerId, core.String containerVersionId) {
+ /// Restores a Container Version. This will overwrite the container's current
+ /// configuration (including its variables, triggers and tags). The operation
+ /// will not have any effect on the version that is being served (i.e. the
+ /// published version).
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [containerVersionId] - The GTM Container Version ID.
+ ///
+ /// Completes with a [ContainerVersion].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ContainerVersion> restore(core.String accountId,
+ core.String containerId, core.String containerVersionId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2295,38 +2390,42 @@ class AccountsContainersVersionsResourceApi {
throw new core.ArgumentError("Parameter containerVersionId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/versions/' + commons.Escaper.ecapeVariable('$containerVersionId') + '/restore';
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/versions/' +
+ commons.Escaper.ecapeVariable('$containerVersionId') +
+ '/restore';
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ContainerVersion.fromJson(data));
}
- /**
- * Undeletes a Container Version.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [containerVersionId] - The GTM Container Version ID.
- *
- * Completes with a [ContainerVersion].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ContainerVersion> undelete(core.String accountId, core.String containerId, core.String containerVersionId) {
+ /// Undeletes a Container Version.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [containerVersionId] - The GTM Container Version ID.
+ ///
+ /// Completes with a [ContainerVersion].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ContainerVersion> undelete(core.String accountId,
+ core.String containerId, core.String containerVersionId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2344,43 +2443,51 @@ class AccountsContainersVersionsResourceApi {
throw new core.ArgumentError("Parameter containerVersionId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/versions/' + commons.Escaper.ecapeVariable('$containerVersionId') + '/undelete';
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/versions/' +
+ commons.Escaper.ecapeVariable('$containerVersionId') +
+ '/undelete';
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ContainerVersion.fromJson(data));
}
- /**
- * Updates a Container Version.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [containerId] - The GTM Container ID.
- *
- * [containerVersionId] - The GTM Container Version ID.
- *
- * [fingerprint] - When provided, this fingerprint must match the fingerprint
- * of the container version in storage.
- *
- * Completes with a [ContainerVersion].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ContainerVersion> update(ContainerVersion request, core.String accountId, core.String containerId, core.String containerVersionId, {core.String fingerprint}) {
+ /// Updates a Container Version.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [containerId] - The GTM Container ID.
+ ///
+ /// [containerVersionId] - The GTM Container Version ID.
+ ///
+ /// [fingerprint] - When provided, this fingerprint must match the
+ /// fingerprint of the container version in storage.
+ ///
+ /// Completes with a [ContainerVersion].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ContainerVersion> update(
+ ContainerVersion request,
+ core.String accountId,
+ core.String containerId,
+ core.String containerVersionId,
+ {core.String fingerprint}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2404,44 +2511,44 @@ class AccountsContainersVersionsResourceApi {
_queryParams["fingerprint"] = [fingerprint];
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/containers/' + commons.Escaper.ecapeVariable('$containerId') + '/versions/' + commons.Escaper.ecapeVariable('$containerVersionId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/containers/' +
+ commons.Escaper.ecapeVariable('$containerId') +
+ '/versions/' +
+ commons.Escaper.ecapeVariable('$containerVersionId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ContainerVersion.fromJson(data));
}
-
}
-
class AccountsPermissionsResourceApi {
final commons.ApiRequester _requester;
- AccountsPermissionsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Creates a user's Account & Container Permissions.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * Completes with a [UserAccess].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ AccountsPermissionsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Creates a user's Account & Container Permissions.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// Completes with a [UserAccess].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<UserAccess> create(UserAccess request, core.String accountId) {
var _url = null;
var _queryParams = new core.Map();
@@ -2457,34 +2564,33 @@ class AccountsPermissionsResourceApi {
throw new core.ArgumentError("Parameter accountId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/permissions';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/permissions';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new UserAccess.fromJson(data));
}
- /**
- * Removes a user from the account, revoking access to it and all of its
- * containers.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [permissionId] - The GTM User ID.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Removes a user from the account, revoking access to it and all of its
+ /// containers.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [permissionId] - The GTM User ID.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String accountId, core.String permissionId) {
var _url = null;
var _queryParams = new core.Map();
@@ -2502,36 +2608,37 @@ class AccountsPermissionsResourceApi {
_downloadOptions = null;
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/permissions/' + commons.Escaper.ecapeVariable('$permissionId');
-
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/permissions/' +
+ commons.Escaper.ecapeVariable('$permissionId');
+
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Gets a user's Account & Container Permissions.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [permissionId] - The GTM User ID.
- *
- * Completes with a [UserAccess].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<UserAccess> get(core.String accountId, core.String permissionId) {
+ /// Gets a user's Account & Container Permissions.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [permissionId] - The GTM User ID.
+ ///
+ /// Completes with a [UserAccess].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<UserAccess> get(
+ core.String accountId, core.String permissionId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2546,35 +2653,35 @@ class AccountsPermissionsResourceApi {
throw new core.ArgumentError("Parameter permissionId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/permissions/' + commons.Escaper.ecapeVariable('$permissionId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/permissions/' +
+ commons.Escaper.ecapeVariable('$permissionId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new UserAccess.fromJson(data));
}
- /**
- * List all users that have access to the account along with Account and
- * Container Permissions granted to each of them.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID. @required
- * tagmanager.accounts.permissions.list
- *
- * Completes with a [ListAccountUsersResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// List all users that have access to the account along with Account and
+ /// Container Permissions granted to each of them.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID. @required
+ /// tagmanager.accounts.permissions.list
+ ///
+ /// Completes with a [ListAccountUsersResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<ListAccountUsersResponse> list(core.String accountId) {
var _url = null;
var _queryParams = new core.Map();
@@ -2587,38 +2694,39 @@ class AccountsPermissionsResourceApi {
throw new core.ArgumentError("Parameter accountId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/permissions';
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/permissions';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new ListAccountUsersResponse.fromJson(data));
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new ListAccountUsersResponse.fromJson(data));
}
- /**
- * Updates a user's Account & Container Permissions.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [accountId] - The GTM Account ID.
- *
- * [permissionId] - The GTM User ID.
- *
- * Completes with a [UserAccess].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<UserAccess> update(UserAccess request, core.String accountId, core.String permissionId) {
+ /// Updates a user's Account & Container Permissions.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [accountId] - The GTM Account ID.
+ ///
+ /// [permissionId] - The GTM User ID.
+ ///
+ /// Completes with a [UserAccess].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<UserAccess> update(
+ UserAccess request, core.String accountId, core.String permissionId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -2636,34 +2744,34 @@ class AccountsPermissionsResourceApi {
throw new core.ArgumentError("Parameter permissionId is required.");
}
- _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/permissions/' + commons.Escaper.ecapeVariable('$permissionId');
+ _url = 'accounts/' +
+ commons.Escaper.ecapeVariable('$accountId') +
+ '/permissions/' +
+ commons.Escaper.ecapeVariable('$permissionId');
- var _response = _requester.request(_url,
- "PUT",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new UserAccess.fromJson(data));
}
-
}
-
-
-/** Represents a Google Tag Manager Account. */
+/// Represents a Google Tag Manager Account.
class Account {
- /** The Account ID uniquely identifies the GTM Account. */
+ /// The Account ID uniquely identifies the GTM Account.
core.String accountId;
- /**
- * The fingerprint of the GTM Account as computed at storage time. This value
- * is recomputed whenever the account is modified.
- */
+
+ /// The fingerprint of the GTM Account as computed at storage time. This
+ /// value is recomputed whenever the account is modified.
core.String fingerprint;
- /** Account display name. */
+
+ /// Account display name.
core.String name;
- /** Whether the account shares data anonymously with Google and others. */
+
+ /// Whether the account shares data anonymously with Google and others.
core.bool shareData;
Account();
@@ -2684,7 +2792,8 @@ class Account {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -2701,11 +2810,10 @@ class Account {
}
}
-/** Defines the Google Tag Manager Account access permissions. */
+/// Defines the Google Tag Manager Account access permissions.
class AccountAccess {
- /**
- * List of Account permissions. Valid account permissions are read and manage.
- */
+ /// List of Account permissions. Valid account permissions are read and
+ /// manage.
core.List<core.String> permission;
AccountAccess();
@@ -2717,7 +2825,8 @@ class AccountAccess {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (permission != null) {
_json["permission"] = permission;
}
@@ -2725,43 +2834,43 @@ class AccountAccess {
}
}
-/** Represents a predicate. */
+/// Represents a predicate.
class Condition {
- /**
- * 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 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
- * 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 boolean
- * parameter that is set to true.
- */
+ /// 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 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
+ /// 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 boolean
+ /// parameter that is set to true.
core.List<Parameter> parameter;
- /**
- * The type of operator for this condition.
- * Possible string values are:
- * - "contains"
- * - "cssSelector"
- * - "endsWith"
- * - "equals"
- * - "greater"
- * - "greaterOrEquals"
- * - "less"
- * - "lessOrEquals"
- * - "matchRegex"
- * - "startsWith"
- * - "urlMatches"
- */
+
+ /// The type of operator for this condition.
+ /// Possible string values are:
+ /// - "contains"
+ /// - "cssSelector"
+ /// - "endsWith"
+ /// - "equals"
+ /// - "greater"
+ /// - "greaterOrEquals"
+ /// - "less"
+ /// - "lessOrEquals"
+ /// - "matchRegex"
+ /// - "startsWith"
+ /// - "urlMatches"
core.String type;
Condition();
Condition.fromJson(core.Map _json) {
if (_json.containsKey("parameter")) {
- parameter = _json["parameter"].map((value) => new Parameter.fromJson(value)).toList();
+ parameter = _json["parameter"]
+ .map((value) => new Parameter.fromJson(value))
+ .toList();
}
if (_json.containsKey("type")) {
type = _json["type"];
@@ -2769,7 +2878,8 @@ class Condition {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (parameter != null) {
_json["parameter"] = parameter.map((value) => (value).toJson()).toList();
}
@@ -2780,42 +2890,46 @@ class Condition {
}
}
-/** Represents a Google Tag Manager Container. */
+/// Represents a Google Tag Manager Container.
class Container {
- /** GTM Account ID. */
+ /// GTM Account ID.
core.String accountId;
- /** The Container ID uniquely identifies the GTM Container. */
+
+ /// The Container ID uniquely identifies the GTM Container.
core.String containerId;
- /** Optional list of domain names associated with the Container. */
+
+ /// Optional list of domain names associated with the Container.
core.List<core.String> domainName;
- /**
- * List of enabled built-in variables. Valid values include: pageUrl,
- * pageHostname, pagePath, referrer, event, clickElement, clickClasses,
- * clickId, clickTarget, clickUrl, clickText, formElement, formClasses,
- * formId, formTarget, formUrl, formText, errorMessage, errorUrl, errorLine,
- * newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState,
- * historySource, containerVersion, debugMode, randomNumber, containerId.
- */
+
+ /// List of enabled built-in variables. Valid values include: pageUrl,
+ /// pageHostname, pagePath, referrer, event, clickElement, clickClasses,
+ /// clickId, clickTarget, clickUrl, clickText, formElement, formClasses,
+ /// formId, formTarget, formUrl, formText, errorMessage, errorUrl, errorLine,
+ /// newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState,
+ /// historySource, containerVersion, debugMode, randomNumber, containerId.
core.List<core.String> enabledBuiltInVariable;
- /**
- * The fingerprint of the GTM Container as computed at storage time. This
- * value is recomputed whenever the account is modified.
- */
+
+ /// The fingerprint of the GTM Container as computed at storage time. This
+ /// value is recomputed whenever the account is modified.
core.String fingerprint;
- /** Container display name. */
+
+ /// Container display name.
core.String name;
- /** Container Notes. */
+
+ /// Container Notes.
core.String notes;
- /** Container Public ID. */
+
+ /// Container Public ID.
core.String publicId;
- /** Container Country ID. */
+
+ /// Container Country ID.
core.String timeZoneCountryId;
- /** Container Time Zone ID. */
+
+ /// Container Time Zone ID.
core.String timeZoneId;
- /**
- * List of Usage Contexts for the Container. Valid values include: web,
- * android, ios.
- */
+
+ /// List of Usage Contexts for the Container. Valid values include: web,
+ /// android, ios.
core.List<core.String> usageContext;
Container();
@@ -2857,7 +2971,8 @@ class Container {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -2895,14 +3010,13 @@ class Container {
}
}
-/** Defines the Google Tag Manager Container access permissions. */
+/// Defines the Google Tag Manager Container access permissions.
class ContainerAccess {
- /** GTM Container ID. */
+ /// GTM Container ID.
core.String containerId;
- /**
- * List of Container permissions. Valid container permissions are: read, edit,
- * delete, publish.
- */
+
+ /// List of Container permissions. Valid container permissions are: read,
+ /// edit, delete, publish.
core.List<core.String> permission;
ContainerAccess();
@@ -2917,7 +3031,8 @@ class ContainerAccess {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (containerId != null) {
_json["containerId"] = containerId;
}
@@ -2928,40 +3043,49 @@ class ContainerAccess {
}
}
-/** Represents a Google Tag Manager Container Version. */
+/// Represents a Google Tag Manager Container Version.
class ContainerVersion {
- /** GTM Account ID. */
+ /// GTM Account ID.
core.String accountId;
- /** The container that this version was taken from. */
+
+ /// The container that this version was taken from.
Container container;
- /** GTM Container ID. */
+
+ /// GTM Container ID.
core.String containerId;
- /**
- * The Container Version ID uniquely identifies the GTM Container Version.
- */
+
+ /// The Container Version ID uniquely identifies the GTM Container Version.
core.String containerVersionId;
- /** A value of true indicates this container version has been deleted. */
+
+ /// A value of true indicates this container version has been deleted.
core.bool deleted;
- /**
- * The fingerprint of the GTM Container Version as computed at storage time.
- * This value is recomputed whenever the container version is modified.
- */
+
+ /// The fingerprint of the GTM Container Version as computed at storage time.
+ /// This value is recomputed whenever the container version is modified.
core.String fingerprint;
- /** The folders in the container that this version was taken from. */
+
+ /// The folders in the container that this version was taken from.
core.List<Folder> folder;
- /** The macros in the container that this version was taken from. */
+
+ /// The macros in the container that this version was taken from.
core.List<Macro> macro;
- /** Container version display name. */
+
+ /// Container version display name.
core.String name;
- /** User notes on how to apply this container version in the container. */
+
+ /// User notes on how to apply this container version in the container.
core.String notes;
- /** The rules in the container that this version was taken from. */
+
+ /// The rules in the container that this version was taken from.
core.List<Rule> rule;
- /** The tags in the container that this version was taken from. */
+
+ /// The tags in the container that this version was taken from.
core.List<Tag> tag;
- /** The triggers in the container that this version was taken from. */
+
+ /// The triggers in the container that this version was taken from.
core.List<Trigger> trigger;
- /** The variables in the container that this version was taken from. */
+
+ /// The variables in the container that this version was taken from.
core.List<Variable> variable;
ContainerVersion();
@@ -2986,7 +3110,8 @@ class ContainerVersion {
fingerprint = _json["fingerprint"];
}
if (_json.containsKey("folder")) {
- folder = _json["folder"].map((value) => new Folder.fromJson(value)).toList();
+ folder =
+ _json["folder"].map((value) => new Folder.fromJson(value)).toList();
}
if (_json.containsKey("macro")) {
macro = _json["macro"].map((value) => new Macro.fromJson(value)).toList();
@@ -3004,15 +3129,19 @@ class ContainerVersion {
tag = _json["tag"].map((value) => new Tag.fromJson(value)).toList();
}
if (_json.containsKey("trigger")) {
- trigger = _json["trigger"].map((value) => new Trigger.fromJson(value)).toList();
+ trigger =
+ _json["trigger"].map((value) => new Trigger.fromJson(value)).toList();
}
if (_json.containsKey("variable")) {
- variable = _json["variable"].map((value) => new Variable.fromJson(value)).toList();
+ variable = _json["variable"]
+ .map((value) => new Variable.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -3059,29 +3188,36 @@ class ContainerVersion {
}
}
-/** Represents a Google Tag Manager Container Version Header. */
+/// Represents a Google Tag Manager Container Version Header.
class ContainerVersionHeader {
- /** GTM Account ID. */
+ /// GTM Account ID.
core.String accountId;
- /** GTM Container ID. */
+
+ /// GTM Container ID.
core.String containerId;
- /**
- * The Container Version ID uniquely identifies the GTM Container Version.
- */
+
+ /// The Container Version ID uniquely identifies the GTM Container Version.
core.String containerVersionId;
- /** A value of true indicates this container version has been deleted. */
+
+ /// A value of true indicates this container version has been deleted.
core.bool deleted;
- /** Container version display name. */
+
+ /// Container version display name.
core.String name;
- /** Number of macros in the container version. */
+
+ /// Number of macros in the container version.
core.String numMacros;
- /** Number of rules in the container version. */
+
+ /// Number of rules in the container version.
core.String numRules;
- /** Number of tags in the container version. */
+
+ /// Number of tags in the container version.
core.String numTags;
- /** Number of triggers in the container version. */
+
+ /// Number of triggers in the container version.
core.String numTriggers;
- /** Number of variables in the container version. */
+
+ /// Number of variables in the container version.
core.String numVariables;
ContainerVersionHeader();
@@ -3120,7 +3256,8 @@ class ContainerVersionHeader {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -3155,16 +3292,16 @@ class ContainerVersionHeader {
}
}
-/** Options for new container versions. */
+/// Options for new container versions.
class CreateContainerVersionRequestVersionOptions {
- /** The name of the container version to be created. */
+ /// The name of the container version to be created.
core.String name;
- /** The notes of the container version to be created. */
+
+ /// The notes of the container version to be created.
core.String notes;
- /**
- * The creation of this version may be for quick preview and shouldn't be
- * saved.
- */
+
+ /// The creation of this version may be for quick preview and shouldn't be
+ /// saved.
core.bool quickPreview;
CreateContainerVersionRequestVersionOptions();
@@ -3182,7 +3319,8 @@ class CreateContainerVersionRequestVersionOptions {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (name != null) {
_json["name"] = name;
}
@@ -3196,11 +3334,12 @@ class CreateContainerVersionRequestVersionOptions {
}
}
-/** Create container versions response. */
+/// Create container versions response.
class CreateContainerVersionResponse {
- /** Compiler errors or not. */
+ /// Compiler errors or not.
core.bool compilerError;
- /** The container version created. */
+
+ /// The container version created.
ContainerVersion containerVersion;
CreateContainerVersionResponse();
@@ -3210,12 +3349,14 @@ class CreateContainerVersionResponse {
compilerError = _json["compilerError"];
}
if (_json.containsKey("containerVersion")) {
- containerVersion = new ContainerVersion.fromJson(_json["containerVersion"]);
+ containerVersion =
+ new ContainerVersion.fromJson(_json["containerVersion"]);
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (compilerError != null) {
_json["compilerError"] = compilerError;
}
@@ -3226,50 +3367,50 @@ class CreateContainerVersionResponse {
}
}
-/**
- * Represents a Google Tag Manager Environment. Note that a user can create,
- * delete and update environments of type USER, but can only update the
- * enable_debug and url fields of environments of other types.
- */
+/// Represents a Google Tag Manager Environment. Note that a user can create,
+/// delete and update environments of type USER, but can only update the
+/// enable_debug and url fields of environments of other types.
class Environment {
- /** GTM Account ID. */
+ /// GTM Account ID.
core.String accountId;
- /** The environment authorization code. */
+
+ /// The environment authorization code.
core.String authorizationCode;
- /** The last update time-stamp for the authorization code. */
+
+ /// The last update time-stamp for the authorization code.
core.String authorizationTimestampMs;
- /** GTM Container ID. */
+
+ /// GTM Container ID.
core.String containerId;
core.String containerVersionId;
- /**
- * The environment description. Can be set or changed only on USER type
- * environments.
- */
+
+ /// The environment description. Can be set or changed only on USER type
+ /// environments.
core.String description;
- /** Whether or not to enable debug by default on for the environment. */
+
+ /// Whether or not to enable debug by default on for the environment.
core.bool enableDebug;
- /** GTM Environment ID uniquely identifies the GTM Environment. */
+
+ /// GTM Environment ID uniquely identifies the GTM Environment.
core.String environmentId;
- /**
- * The fingerprint of the GTM environment as computed at storage time. This
- * value is recomputed whenever the environment is modified.
- */
+
+ /// The fingerprint of the GTM environment as computed at storage time. This
+ /// value is recomputed whenever the environment is modified.
core.String fingerprint;
- /**
- * The environment display name. Can be set or changed only on USER type
- * environments.
- */
+
+ /// The environment display name. Can be set or changed only on USER type
+ /// environments.
core.String name;
- /**
- * The type of this environment.
- * Possible string values are:
- * - "draft"
- * - "latest"
- * - "live"
- * - "user"
- */
+
+ /// The type of this environment.
+ /// Possible string values are:
+ /// - "draft"
+ /// - "latest"
+ /// - "live"
+ /// - "user"
core.String type;
- /** Default preview page url for the environment. */
+
+ /// Default preview page url for the environment.
core.String url;
Environment();
@@ -3314,7 +3455,8 @@ class Environment {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -3355,20 +3497,22 @@ class Environment {
}
}
-/** Represents a Google Tag Manager Folder. */
+/// Represents a Google Tag Manager Folder.
class Folder {
- /** GTM Account ID. */
+ /// GTM Account ID.
core.String accountId;
- /** GTM Container ID. */
+
+ /// GTM Container ID.
core.String containerId;
- /**
- * The fingerprint of the GTM Folder as computed at storage time. This value
- * is recomputed whenever the folder is modified.
- */
+
+ /// The fingerprint of the GTM Folder as computed at storage time. This value
+ /// is recomputed whenever the folder is modified.
core.String fingerprint;
- /** The Folder ID uniquely identifies the GTM Folder. */
+
+ /// The Folder ID uniquely identifies the GTM Folder.
core.String folderId;
- /** Folder display name. */
+
+ /// Folder display name.
core.String name;
Folder();
@@ -3392,7 +3536,8 @@ class Folder {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -3412,13 +3557,15 @@ class Folder {
}
}
-/** Represents a Google Tag Manager Folder's contents. */
+/// Represents a Google Tag Manager Folder's contents.
class FolderEntities {
- /** The list of tags inside the folder. */
+ /// The list of tags inside the folder.
core.List<Tag> tag;
- /** The list of triggers inside the folder. */
+
+ /// The list of triggers inside the folder.
core.List<Trigger> trigger;
- /** The list of variables inside the folder. */
+
+ /// The list of variables inside the folder.
core.List<Variable> variable;
FolderEntities();
@@ -3428,15 +3575,19 @@ class FolderEntities {
tag = _json["tag"].map((value) => new Tag.fromJson(value)).toList();
}
if (_json.containsKey("trigger")) {
- trigger = _json["trigger"].map((value) => new Trigger.fromJson(value)).toList();
+ trigger =
+ _json["trigger"].map((value) => new Trigger.fromJson(value)).toList();
}
if (_json.containsKey("variable")) {
- variable = _json["variable"].map((value) => new Variable.fromJson(value)).toList();
+ variable = _json["variable"]
+ .map((value) => new Variable.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (tag != null) {
_json["tag"] = tag.map((value) => (value).toJson()).toList();
}
@@ -3450,43 +3601,50 @@ class FolderEntities {
}
}
-/** List AccountUsers Response. */
+/// List AccountUsers Response.
class ListAccountUsersResponse {
- /** All GTM AccountUsers of a GTM Account. */
+ /// All GTM AccountUsers of a GTM Account.
core.List<UserAccess> userAccess;
ListAccountUsersResponse();
ListAccountUsersResponse.fromJson(core.Map _json) {
if (_json.containsKey("userAccess")) {
- userAccess = _json["userAccess"].map((value) => new UserAccess.fromJson(value)).toList();
+ userAccess = _json["userAccess"]
+ .map((value) => new UserAccess.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (userAccess != null) {
- _json["userAccess"] = userAccess.map((value) => (value).toJson()).toList();
+ _json["userAccess"] =
+ userAccess.map((value) => (value).toJson()).toList();
}
return _json;
}
}
-/** List Accounts Response. */
+/// List Accounts Response.
class ListAccountsResponse {
- /** List of GTM Accounts that a user has access to. */
+ /// List of GTM Accounts that a user has access to.
core.List<Account> accounts;
ListAccountsResponse();
ListAccountsResponse.fromJson(core.Map _json) {
if (_json.containsKey("accounts")) {
- accounts = _json["accounts"].map((value) => new Account.fromJson(value)).toList();
+ accounts = _json["accounts"]
+ .map((value) => new Account.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accounts != null) {
_json["accounts"] = accounts.map((value) => (value).toJson()).toList();
}
@@ -3494,95 +3652,113 @@ class ListAccountsResponse {
}
}
-/** List container versions response. */
+/// List container versions response.
class ListContainerVersionsResponse {
- /** All versions of a GTM Container. */
+ /// All versions of a GTM Container.
core.List<ContainerVersion> containerVersion;
- /** All container version headers of a GTM Container. */
+
+ /// All container version headers of a GTM Container.
core.List<ContainerVersionHeader> containerVersionHeader;
ListContainerVersionsResponse();
ListContainerVersionsResponse.fromJson(core.Map _json) {
if (_json.containsKey("containerVersion")) {
- containerVersion = _json["containerVersion"].map((value) => new ContainerVersion.fromJson(value)).toList();
+ containerVersion = _json["containerVersion"]
+ .map((value) => new ContainerVersion.fromJson(value))
+ .toList();
}
if (_json.containsKey("containerVersionHeader")) {
- containerVersionHeader = _json["containerVersionHeader"].map((value) => new ContainerVersionHeader.fromJson(value)).toList();
+ containerVersionHeader = _json["containerVersionHeader"]
+ .map((value) => new ContainerVersionHeader.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (containerVersion != null) {
- _json["containerVersion"] = containerVersion.map((value) => (value).toJson()).toList();
+ _json["containerVersion"] =
+ containerVersion.map((value) => (value).toJson()).toList();
}
if (containerVersionHeader != null) {
- _json["containerVersionHeader"] = containerVersionHeader.map((value) => (value).toJson()).toList();
+ _json["containerVersionHeader"] =
+ containerVersionHeader.map((value) => (value).toJson()).toList();
}
return _json;
}
}
-/** List Containers Response. */
+/// List Containers Response.
class ListContainersResponse {
- /** All Containers of a GTM Account. */
+ /// All Containers of a GTM Account.
core.List<Container> containers;
ListContainersResponse();
ListContainersResponse.fromJson(core.Map _json) {
if (_json.containsKey("containers")) {
- containers = _json["containers"].map((value) => new Container.fromJson(value)).toList();
+ containers = _json["containers"]
+ .map((value) => new Container.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (containers != null) {
- _json["containers"] = containers.map((value) => (value).toJson()).toList();
+ _json["containers"] =
+ containers.map((value) => (value).toJson()).toList();
}
return _json;
}
}
-/** List Environments Response. */
+/// List Environments Response.
class ListEnvironmentsResponse {
- /** All Environments of a GTM Container. */
+ /// All Environments of a GTM Container.
core.List<Environment> environments;
ListEnvironmentsResponse();
ListEnvironmentsResponse.fromJson(core.Map _json) {
if (_json.containsKey("environments")) {
- environments = _json["environments"].map((value) => new Environment.fromJson(value)).toList();
+ environments = _json["environments"]
+ .map((value) => new Environment.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (environments != null) {
- _json["environments"] = environments.map((value) => (value).toJson()).toList();
+ _json["environments"] =
+ environments.map((value) => (value).toJson()).toList();
}
return _json;
}
}
-/** List Folders Response. */
+/// List Folders Response.
class ListFoldersResponse {
- /** All GTM Folders of a GTM Container. */
+ /// All GTM Folders of a GTM Container.
core.List<Folder> folders;
ListFoldersResponse();
ListFoldersResponse.fromJson(core.Map _json) {
if (_json.containsKey("folders")) {
- folders = _json["folders"].map((value) => new Folder.fromJson(value)).toList();
+ folders =
+ _json["folders"].map((value) => new Folder.fromJson(value)).toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (folders != null) {
_json["folders"] = folders.map((value) => (value).toJson()).toList();
}
@@ -3590,9 +3766,9 @@ class ListFoldersResponse {
}
}
-/** List Tags Response. */
+/// List Tags Response.
class ListTagsResponse {
- /** All GTM Tags of a GTM Container. */
+ /// All GTM Tags of a GTM Container.
core.List<Tag> tags;
ListTagsResponse();
@@ -3604,7 +3780,8 @@ class ListTagsResponse {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (tags != null) {
_json["tags"] = tags.map((value) => (value).toJson()).toList();
}
@@ -3612,21 +3789,24 @@ class ListTagsResponse {
}
}
-/** List triggers response. */
+/// List triggers response.
class ListTriggersResponse {
- /** All GTM Triggers of a GTM Container. */
+ /// All GTM Triggers of a GTM Container.
core.List<Trigger> triggers;
ListTriggersResponse();
ListTriggersResponse.fromJson(core.Map _json) {
if (_json.containsKey("triggers")) {
- triggers = _json["triggers"].map((value) => new Trigger.fromJson(value)).toList();
+ triggers = _json["triggers"]
+ .map((value) => new Trigger.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (triggers != null) {
_json["triggers"] = triggers.map((value) => (value).toJson()).toList();
}
@@ -3634,21 +3814,24 @@ class ListTriggersResponse {
}
}
-/** List Variables Response. */
+/// List Variables Response.
class ListVariablesResponse {
- /** All GTM Variables of a GTM Container. */
+ /// All GTM Variables of a GTM Container.
core.List<Variable> variables;
ListVariablesResponse();
ListVariablesResponse.fromJson(core.Map _json) {
if (_json.containsKey("variables")) {
- variables = _json["variables"].map((value) => new Variable.fromJson(value)).toList();
+ variables = _json["variables"]
+ .map((value) => new Variable.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (variables != null) {
_json["variables"] = variables.map((value) => (value).toJson()).toList();
}
@@ -3656,44 +3839,50 @@ class ListVariablesResponse {
}
}
-/** Represents a Google Tag Manager Macro. */
+/// Represents a Google Tag Manager Macro.
class Macro {
- /** GTM Account ID. */
+ /// GTM Account ID.
core.String accountId;
- /** GTM Container ID. */
+
+ /// GTM Container ID.
core.String containerId;
- /**
- * For mobile containers only: A list of rule IDs for disabling conditional
- * macros; the macro is enabled if one of the enabling rules is true while all
- * the disabling rules are false. Treated as an unordered set.
- */
+
+ /// For mobile containers only: A list of rule IDs for disabling conditional
+ /// macros; the macro is enabled if one of the enabling rules is true while
+ /// all the disabling rules are false. Treated as an unordered set.
core.List<core.String> disablingRuleId;
- /**
- * For mobile containers only: A list of rule IDs for enabling conditional
- * macros; the macro is enabled if one of the enabling rules is true while all
- * the disabling rules are false. Treated as an unordered set.
- */
+
+ /// For mobile containers only: A list of rule IDs for enabling conditional
+ /// macros; the macro is enabled if one of the enabling rules is true while
+ /// all the disabling rules are false. Treated as an unordered set.
core.List<core.String> enablingRuleId;
- /**
- * The fingerprint of the GTM Macro as computed at storage time. This value is
- * recomputed whenever the macro is modified.
- */
+
+ /// The fingerprint of the GTM Macro as computed at storage time. This value
+ /// is recomputed whenever the macro is modified.
core.String fingerprint;
- /** The Macro ID uniquely identifies the GTM Macro. */
+
+ /// The Macro ID uniquely identifies the GTM Macro.
core.String macroId;
- /** Macro display name. */
+
+ /// Macro display name.
core.String name;
- /** User notes on how to apply this macro in the container. */
+
+ /// User notes on how to apply this macro in the container.
core.String notes;
- /** The macro's parameters. */
+
+ /// The macro's parameters.
core.List<Parameter> parameter;
- /** Parent folder id. */
+
+ /// Parent folder id.
core.String parentFolderId;
- /** The end timestamp in milliseconds to schedule a macro. */
+
+ /// The end timestamp in milliseconds to schedule a macro.
core.String scheduleEndMs;
- /** The start timestamp in milliseconds to schedule a macro. */
+
+ /// The start timestamp in milliseconds to schedule a macro.
core.String scheduleStartMs;
- /** GTM Macro Type. */
+
+ /// GTM Macro Type.
core.String type;
Macro();
@@ -3724,7 +3913,9 @@ class Macro {
notes = _json["notes"];
}
if (_json.containsKey("parameter")) {
- parameter = _json["parameter"].map((value) => new Parameter.fromJson(value)).toList();
+ parameter = _json["parameter"]
+ .map((value) => new Parameter.fromJson(value))
+ .toList();
}
if (_json.containsKey("parentFolderId")) {
parentFolderId = _json["parentFolderId"];
@@ -3741,7 +3932,8 @@ class Macro {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -3785,37 +3977,36 @@ class Macro {
}
}
-/** Represents a Google Tag Manager Parameter. */
+/// Represents a Google Tag Manager Parameter.
class Parameter {
- /**
- * The named key that uniquely identifies a parameter. Required for top-level
- * parameters, as well as map values. Ignored for list values.
- */
+ /// The named key that uniquely identifies a parameter. Required for
+ /// top-level parameters, as well as map values. Ignored for list values.
core.String key;
- /** This list parameter's parameters (keys will be ignored). */
+
+ /// This list parameter's parameters (keys will be ignored).
core.List<Parameter> list;
- /** This map parameter's parameters (must have keys; keys must be unique). */
+
+ /// This map parameter's parameters (must have keys; keys must be unique).
core.List<Parameter> map;
- /**
- * 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 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
- * references (even variable references that might return non-string types)
- * Possible string values are:
- * - "boolean"
- * - "integer"
- * - "list"
- * - "map"
- * - "template"
- */
+
+ /// 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 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
+ /// references (even variable references that might return non-string types)
+ /// Possible string values are:
+ /// - "boolean"
+ /// - "integer"
+ /// - "list"
+ /// - "map"
+ /// - "template"
core.String type;
- /**
- * A parameter's value (may contain variable references such as
- * "{{myVariable}}") as appropriate to the specified type.
- */
+
+ /// A parameter's value (may contain variable references such as
+ /// "{{myVariable}}") as appropriate to the specified type.
core.String value;
Parameter();
@@ -3825,7 +4016,8 @@ class Parameter {
key = _json["key"];
}
if (_json.containsKey("list")) {
- list = _json["list"].map((value) => new Parameter.fromJson(value)).toList();
+ list =
+ _json["list"].map((value) => new Parameter.fromJson(value)).toList();
}
if (_json.containsKey("map")) {
map = _json["map"].map((value) => new Parameter.fromJson(value)).toList();
@@ -3839,7 +4031,8 @@ class Parameter {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (key != null) {
_json["key"] = key;
}
@@ -3859,11 +4052,12 @@ class Parameter {
}
}
-/** Publish container version response. */
+/// Publish container version response.
class PublishContainerVersionResponse {
- /** Compiler errors or not. */
+ /// Compiler errors or not.
core.bool compilerError;
- /** The container version created. */
+
+ /// The container version created.
ContainerVersion containerVersion;
PublishContainerVersionResponse();
@@ -3873,12 +4067,14 @@ class PublishContainerVersionResponse {
compilerError = _json["compilerError"];
}
if (_json.containsKey("containerVersion")) {
- containerVersion = new ContainerVersion.fromJson(_json["containerVersion"]);
+ containerVersion =
+ new ContainerVersion.fromJson(_json["containerVersion"]);
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (compilerError != null) {
_json["compilerError"] = compilerError;
}
@@ -3889,26 +4085,29 @@ class PublishContainerVersionResponse {
}
}
-/** Represents a Google Tag Manager Rule. */
+/// Represents a Google Tag Manager Rule.
class Rule {
- /** GTM Account ID. */
+ /// GTM Account ID.
core.String accountId;
- /**
- * The list of conditions that make up this rule (implicit AND between them).
- */
+
+ /// The list of conditions that make up this rule (implicit AND between
+ /// them).
core.List<Condition> condition;
- /** GTM Container ID. */
+
+ /// GTM Container ID.
core.String containerId;
- /**
- * The fingerprint of the GTM Rule as computed at storage time. This value is
- * recomputed whenever the rule is modified.
- */
+
+ /// The fingerprint of the GTM Rule as computed at storage time. This value
+ /// is recomputed whenever the rule is modified.
core.String fingerprint;
- /** Rule display name. */
+
+ /// Rule display name.
core.String name;
- /** User notes on how to apply this rule in the container. */
+
+ /// User notes on how to apply this rule in the container.
core.String notes;
- /** The Rule ID uniquely identifies the GTM Rule. */
+
+ /// The Rule ID uniquely identifies the GTM Rule.
core.String ruleId;
Rule();
@@ -3918,7 +4117,9 @@ class Rule {
accountId = _json["accountId"];
}
if (_json.containsKey("condition")) {
- condition = _json["condition"].map((value) => new Condition.fromJson(value)).toList();
+ condition = _json["condition"]
+ .map((value) => new Condition.fromJson(value))
+ .toList();
}
if (_json.containsKey("containerId")) {
containerId = _json["containerId"];
@@ -3938,7 +4139,8 @@ class Rule {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -3965,12 +4167,12 @@ class Rule {
}
class SetupTag {
- /**
- * 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.
- */
+ /// 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.
core.bool stopOnSetupFailure;
- /** The name of the setup tag. */
+
+ /// The name of the setup tag.
core.String tagName;
SetupTag();
@@ -3985,7 +4187,8 @@ class SetupTag {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (stopOnSetupFailure != null) {
_json["stopOnSetupFailure"] = stopOnSetupFailure;
}
@@ -3996,75 +4199,78 @@ class SetupTag {
}
}
-/** Represents a Google Tag Manager Tag. */
+/// Represents a Google Tag Manager Tag.
class Tag {
- /** GTM Account ID. */
+ /// GTM Account ID.
core.String accountId;
- /**
- * Blocking rule IDs. If any of the listed rules evaluate to true, the tag
- * will not fire.
- */
+
+ /// Blocking rule IDs. If any of the listed rules evaluate to true, the tag
+ /// will not fire.
core.List<core.String> blockingRuleId;
- /**
- * Blocking trigger IDs. If any of the listed triggers evaluate to true, the
- * tag will not fire.
- */
+
+ /// Blocking trigger IDs. If any of the listed triggers evaluate to true, the
+ /// tag will not fire.
core.List<core.String> blockingTriggerId;
- /** GTM Container ID. */
+
+ /// GTM Container ID.
core.String containerId;
- /**
- * The fingerprint of the GTM Tag as computed at storage time. This value is
- * recomputed whenever the tag is modified.
- */
+
+ /// The fingerprint of the GTM Tag as computed at storage time. This value is
+ /// recomputed whenever the tag is modified.
core.String fingerprint;
- /**
- * 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.
- */
+
+ /// 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.
core.List<core.String> firingRuleId;
- /**
- * 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.
- */
+
+ /// 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.
core.List<core.String> firingTriggerId;
- /**
- * If set to true, this tag will only fire in the live environment (e.g. not
- * in preview or debug mode).
- */
+
+ /// If set to true, this tag will only fire in the live environment (e.g. not
+ /// in preview or debug mode).
core.bool liveOnly;
- /** Tag display name. */
+
+ /// Tag display name.
core.String name;
- /** User notes on how to apply this tag in the container. */
+
+ /// User notes on how to apply this tag in the container.
core.String notes;
- /** The tag's parameters. */
+
+ /// The tag's parameters.
core.List<Parameter> parameter;
- /** Parent folder id. */
+
+ /// Parent folder id.
core.String parentFolderId;
- /**
- * 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 negative value. The default value is 0.
- */
+
+ /// 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 negative value. The default value is 0.
Parameter priority;
- /** The end timestamp in milliseconds to schedule a tag. */
+
+ /// The end timestamp in milliseconds to schedule a tag.
core.String scheduleEndMs;
- /** The start timestamp in milliseconds to schedule a tag. */
+
+ /// The start timestamp in milliseconds to schedule a tag.
core.String scheduleStartMs;
- /** The list of setup tags. Currently we only allow one. */
+
+ /// The list of setup tags. Currently we only allow one.
core.List<SetupTag> setupTag;
- /**
- * Option to fire this tag.
- * Possible string values are:
- * - "oncePerEvent"
- * - "oncePerLoad"
- * - "unlimited"
- */
+
+ /// Option to fire this tag.
+ /// Possible string values are:
+ /// - "oncePerEvent"
+ /// - "oncePerLoad"
+ /// - "unlimited"
core.String tagFiringOption;
- /** The Tag ID uniquely identifies the GTM Tag. */
+
+ /// The Tag ID uniquely identifies the GTM Tag.
core.String tagId;
- /** The list of teardown tags. Currently we only allow one. */
+
+ /// The list of teardown tags. Currently we only allow one.
core.List<TeardownTag> teardownTag;
- /** GTM Tag Type. */
+
+ /// GTM Tag Type.
core.String type;
Tag();
@@ -4101,7 +4307,9 @@ class Tag {
notes = _json["notes"];
}
if (_json.containsKey("parameter")) {
- parameter = _json["parameter"].map((value) => new Parameter.fromJson(value)).toList();
+ parameter = _json["parameter"]
+ .map((value) => new Parameter.fromJson(value))
+ .toList();
}
if (_json.containsKey("parentFolderId")) {
parentFolderId = _json["parentFolderId"];
@@ -4116,7 +4324,9 @@ class Tag {
scheduleStartMs = _json["scheduleStartMs"];
}
if (_json.containsKey("setupTag")) {
- setupTag = _json["setupTag"].map((value) => new SetupTag.fromJson(value)).toList();
+ setupTag = _json["setupTag"]
+ .map((value) => new SetupTag.fromJson(value))
+ .toList();
}
if (_json.containsKey("tagFiringOption")) {
tagFiringOption = _json["tagFiringOption"];
@@ -4125,7 +4335,9 @@ class Tag {
tagId = _json["tagId"];
}
if (_json.containsKey("teardownTag")) {
- teardownTag = _json["teardownTag"].map((value) => new TeardownTag.fromJson(value)).toList();
+ teardownTag = _json["teardownTag"]
+ .map((value) => new TeardownTag.fromJson(value))
+ .toList();
}
if (_json.containsKey("type")) {
type = _json["type"];
@@ -4133,7 +4345,8 @@ class Tag {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
@@ -4189,7 +4402,8 @@ class Tag {
_json["tagId"] = tagId;
}
if (teardownTag != null) {
- _json["teardownTag"] = teardownTag.map((value) => (value).toJson()).toList();
+ _json["teardownTag"] =
+ teardownTag.map((value) => (value).toJson()).toList();
}
if (type != null) {
_json["type"] = type;
@@ -4199,13 +4413,12 @@ class Tag {
}
class TeardownTag {
- /**
- * 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.
- */
+ /// 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.
core.bool stopTeardownOnFailure;
- /** The name of the teardown tag. */
+
+ /// The name of the teardown tag.
core.String tagName;
TeardownTag();
@@ -4220,7 +4433,8 @@ class TeardownTag {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (stopTeardownOnFailure != null) {
_json["stopTeardownOnFailure"] = stopTeardownOnFailure;
}
@@ -4231,101 +4445,98 @@ class TeardownTag {
}
}
-/** Represents a Google Tag Manager Trigger */
+/// Represents a Google Tag Manager Trigger
class Trigger {
- /** GTM Account ID. */
+ /// GTM Account ID.
core.String accountId;
- /** Used in the case of auto event tracking. */
+
+ /// Used in the case of auto event tracking.
core.List<Condition> autoEventFilter;
- /**
- * 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 Submission and Link Click triggers.
- */
+
+ /// 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 Submission and Link Click triggers.
Parameter checkValidation;
- /** GTM Container ID. */
+
+ /// GTM Container ID.
core.String containerId;
- /**
- * Used in the case of custom event, which is fired iff all Conditions are
- * true.
- */
+
+ /// Used in the case of custom event, which is fired iff all Conditions are
+ /// true.
core.List<Condition> customEventFilter;
- /**
- * Reloads the videos in the page that don't already have the YT API enabled.
- * If false, only capture events from videos that already have the API
- * enabled. Only valid for YouTube triggers.
- */
+
+ /// Reloads the videos in the page that don't already have the YT API
+ /// enabled. If false, only capture events from videos that already have the
+ /// API enabled. Only valid for YouTube triggers.
Parameter enableAllVideos;
- /** Name of the GTM event that is fired. Only valid for Timer triggers. */
+
+ /// Name of the GTM event that is fired. Only valid for Timer triggers.
Parameter eventName;
- /** The trigger will only fire iff all Conditions are true. */
+
+ /// The trigger will only fire iff all Conditions are true.
core.List<Condition> filter;
- /**
- * The fingerprint of the GTM Trigger as computed at storage time. This value
- * is recomputed whenever the trigger is modified.
- */
+
+ /// The fingerprint of the GTM Trigger as computed at storage time. This
+ /// value is recomputed whenever the trigger is modified.
core.String fingerprint;
- /**
- * Time between triggering recurring Timer Events (in milliseconds). Only
- * valid for Timer triggers.
- */
+
+ /// Time between triggering recurring Timer Events (in milliseconds). Only
+ /// valid for Timer triggers.
Parameter interval;
- /**
- * 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 triggers.
- */
+
+ /// 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 triggers.
Parameter limit;
- /** Trigger display name. */
+
+ /// Trigger display name.
core.String name;
- /** Parent folder id. */
+
+ /// Parent folder id.
core.String parentFolderId;
- /** The Trigger ID uniquely identifies the GTM Trigger. */
+
+ /// The Trigger ID uniquely identifies the GTM Trigger.
core.String triggerId;
- /**
- * Defines the data layer event that causes this trigger.
- * Possible string values are:
- * - "ajaxSubmission"
- * - "always"
- * - "click"
- * - "customEvent"
- * - "domReady"
- * - "formSubmission"
- * - "historyChange"
- * - "jsError"
- * - "linkClick"
- * - "pageview"
- * - "timer"
- * - "windowLoaded"
- * - "youTube"
- */
+
+ /// Defines the data layer event that causes this trigger.
+ /// Possible string values are:
+ /// - "ajaxSubmission"
+ /// - "always"
+ /// - "click"
+ /// - "customEvent"
+ /// - "domReady"
+ /// - "formSubmission"
+ /// - "historyChange"
+ /// - "jsError"
+ /// - "linkClick"
+ /// - "pageview"
+ /// - "timer"
+ /// - "windowLoaded"
+ /// - "youTube"
core.String type;
- /**
- * 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 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 and Timer
- * triggers.
- */
+
+ /// 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 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 and Timer triggers.
Parameter uniqueTriggerId;
- /**
- * List of integer percentage values. The trigger will fire as each percentage
- * is reached in any instrumented videos. Only valid for YouTube triggers.
- */
+
+ /// List of integer percentage values. The trigger will fire as each
+ /// percentage is reached in any instrumented videos. Only valid for YouTube
+ /// triggers.
Parameter videoPercentageList;
- /**
- * 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 valid for Form Submission and Link
- * Click triggers.
- */
+
+ /// 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 valid for Form Submission and Link
+ /// Click triggers.
Parameter waitForTags;
- /**
- * 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.
- */
+
+ /// 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.
Parameter waitForTagsTimeout;
Trigger();
@@ -4335,7 +4546,9 @@ class Trigger {
accountId = _json["accountId"];
}
if (_json.containsKey("autoEventFilter")) {
- autoEventFilter = _json["autoEventFilter"].map((value) => new Condition.fromJson(value)).toList();
+ autoEventFilter = _json["autoEventFilter"]
+ .map((value) => new Condition.fromJson(value))
+ .toList();
}
if (_json.containsKey("checkValidation")) {
checkValidation = new Parameter.fromJson(_json["checkValidation"]);
@@ -4344,7 +4557,9 @@ class Trigger {
containerId = _json["containerId"];
}
if (_json.containsKey("customEventFilter")) {
- customEventFilter = _json["customEventFilter"].map((value) => new Condition.fromJson(value)).toList();
+ customEventFilter = _json["customEventFilter"]
+ .map((value) => new Condition.fromJson(value))
+ .toList();
}
if (_json.containsKey("enableAllVideos")) {
enableAllVideos = new Parameter.fromJson(_json["enableAllVideos"]);
@@ -4353,7 +4568,9 @@ class Trigger {
eventName = new Parameter.fromJson(_json["eventName"]);
}
if (_json.containsKey("filter")) {
- filter = _json["filter"].map((value) => new Condition.fromJson(value)).toList();
+ filter = _json["filter"]
+ .map((value) => new Condition.fromJson(value))
+ .toList();
}
if (_json.containsKey("fingerprint")) {
fingerprint = _json["fingerprint"];
@@ -4380,7 +4597,8 @@ class Trigger {
uniqueTriggerId = new Parameter.fromJson(_json["uniqueTriggerId"]);
}
if (_json.containsKey("videoPercentageList")) {
- videoPercentageList = new Parameter.fromJson(_json["videoPercentageList"]);
+ videoPercentageList =
+ new Parameter.fromJson(_json["videoPercentageList"]);
}
if (_json.containsKey("waitForTags")) {
waitForTags = new Parameter.fromJson(_json["waitForTags"]);
@@ -4391,12 +4609,14 @@ class Trigger {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
if (autoEventFilter != null) {
- _json["autoEventFilter"] = autoEventFilter.map((value) => (value).toJson()).toList();
+ _json["autoEventFilter"] =
+ autoEventFilter.map((value) => (value).toJson()).toList();
}
if (checkValidation != null) {
_json["checkValidation"] = (checkValidation).toJson();
@@ -4405,7 +4625,8 @@ class Trigger {
_json["containerId"] = containerId;
}
if (customEventFilter != null) {
- _json["customEventFilter"] = customEventFilter.map((value) => (value).toJson()).toList();
+ _json["customEventFilter"] =
+ customEventFilter.map((value) => (value).toJson()).toList();
}
if (enableAllVideos != null) {
_json["enableAllVideos"] = (enableAllVideos).toJson();
@@ -4453,17 +4674,21 @@ class Trigger {
}
}
-/** Represents a user's permissions to an account and its container. */
+/// Represents a user's permissions to an account and its container.
class UserAccess {
- /** GTM Account access permissions. */
+ /// GTM Account access permissions.
AccountAccess accountAccess;
- /** GTM Account ID. */
+
+ /// GTM Account ID.
core.String accountId;
- /** GTM Container access permissions. */
+
+ /// GTM Container access permissions.
core.List<ContainerAccess> containerAccess;
- /** User's email address. */
+
+ /// User's email address.
core.String emailAddress;
- /** Account Permission ID. */
+
+ /// Account Permission ID.
core.String permissionId;
UserAccess();
@@ -4476,7 +4701,9 @@ class UserAccess {
accountId = _json["accountId"];
}
if (_json.containsKey("containerAccess")) {
- containerAccess = _json["containerAccess"].map((value) => new ContainerAccess.fromJson(value)).toList();
+ containerAccess = _json["containerAccess"]
+ .map((value) => new ContainerAccess.fromJson(value))
+ .toList();
}
if (_json.containsKey("emailAddress")) {
emailAddress = _json["emailAddress"];
@@ -4487,7 +4714,8 @@ class UserAccess {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountAccess != null) {
_json["accountAccess"] = (accountAccess).toJson();
}
@@ -4495,7 +4723,8 @@ class UserAccess {
_json["accountId"] = accountId;
}
if (containerAccess != null) {
- _json["containerAccess"] = containerAccess.map((value) => (value).toJson()).toList();
+ _json["containerAccess"] =
+ containerAccess.map((value) => (value).toJson()).toList();
}
if (emailAddress != null) {
_json["emailAddress"] = emailAddress;
@@ -4507,44 +4736,52 @@ class UserAccess {
}
}
-/** Represents a Google Tag Manager Variable. */
+/// Represents a Google Tag Manager Variable.
class Variable {
- /** GTM Account ID. */
+ /// GTM Account ID.
core.String accountId;
- /** GTM Container ID. */
+
+ /// GTM Container ID.
core.String containerId;
- /**
- * 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 are false. Treated as an unordered set.
- */
+
+ /// 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 are false. Treated as an
+ /// unordered set.
core.List<core.String> disablingTriggerId;
- /**
- * 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 triggers are false. Treated as an unordered set.
- */
+
+ /// 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 triggers are false. Treated as
+ /// an unordered set.
core.List<core.String> enablingTriggerId;
- /**
- * The fingerprint of the GTM Variable as computed at storage time. This value
- * is recomputed whenever the variable is modified.
- */
+
+ /// The fingerprint of the GTM Variable as computed at storage time. This
+ /// value is recomputed whenever the variable is modified.
core.String fingerprint;
- /** Variable display name. */
+
+ /// Variable display name.
core.String name;
- /** User notes on how to apply this variable in the container. */
+
+ /// User notes on how to apply this variable in the container.
core.String notes;
- /** The variable's parameters. */
+
+ /// The variable's parameters.
core.List<Parameter> parameter;
- /** Parent folder id. */
+
+ /// Parent folder id.
core.String parentFolderId;
- /** The end timestamp in milliseconds to schedule a variable. */
+
+ /// The end timestamp in milliseconds to schedule a variable.
core.String scheduleEndMs;
- /** The start timestamp in milliseconds to schedule a variable. */
+
+ /// The start timestamp in milliseconds to schedule a variable.
core.String scheduleStartMs;
- /** GTM Variable Type. */
+
+ /// GTM Variable Type.
core.String type;
- /** The Variable ID uniquely identifies the GTM Variable. */
+
+ /// The Variable ID uniquely identifies the GTM Variable.
core.String variableId;
Variable();
@@ -4572,7 +4809,9 @@ class Variable {
notes = _json["notes"];
}
if (_json.containsKey("parameter")) {
- parameter = _json["parameter"].map((value) => new Parameter.fromJson(value)).toList();
+ parameter = _json["parameter"]
+ .map((value) => new Parameter.fromJson(value))
+ .toList();
}
if (_json.containsKey("parentFolderId")) {
parentFolderId = _json["parentFolderId"];
@@ -4592,7 +4831,8 @@ class Variable {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (accountId != null) {
_json["accountId"] = accountId;
}
« no previous file with comments | « generated/googleapis/lib/surveys/v2.dart ('k') | generated/googleapis/lib/tagmanager/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698