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

Side by Side Diff: generated/googleapis/lib/tagmanager/v2.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 unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/tagmanager/v1.dart ('k') | generated/googleapis/lib/tasks/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.tagmanager.v2; 3 library googleapis.tagmanager.v2;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
13 ApiRequestError, DetailedApiRequestError; 13 show ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client tagmanager/v2'; 15 const core.String USER_AGENT = 'dart-api-client tagmanager/v2';
16 16
17 /** Accesses Tag Manager accounts and containers. */ 17 /// Accesses Tag Manager accounts and containers.
18 class TagmanagerApi { 18 class TagmanagerApi {
19 /** Delete your Google Tag Manager containers */ 19 /// Delete your Google Tag Manager containers
20 static const TagmanagerDeleteContainersScope = "https://www.googleapis.com/aut h/tagmanager.delete.containers"; 20 static const TagmanagerDeleteContainersScope =
21 "https://www.googleapis.com/auth/tagmanager.delete.containers";
21 22
22 /** 23 /// Manage your Google Tag Manager container and its subcomponents, excluding
23 * Manage your Google Tag Manager container and its subcomponents, excluding 24 /// versioning and publishing
24 * versioning and publishing 25 static const TagmanagerEditContainersScope =
25 */ 26 "https://www.googleapis.com/auth/tagmanager.edit.containers";
26 static const TagmanagerEditContainersScope = "https://www.googleapis.com/auth/ tagmanager.edit.containers";
27 27
28 /** Manage your Google Tag Manager container versions */ 28 /// Manage your Google Tag Manager container versions
29 static const TagmanagerEditContainerversionsScope = "https://www.googleapis.co m/auth/tagmanager.edit.containerversions"; 29 static const TagmanagerEditContainerversionsScope =
30 "https://www.googleapis.com/auth/tagmanager.edit.containerversions";
30 31
31 /** View and manage your Google Tag Manager accounts */ 32 /// View and manage your Google Tag Manager accounts
32 static const TagmanagerManageAccountsScope = "https://www.googleapis.com/auth/ tagmanager.manage.accounts"; 33 static const TagmanagerManageAccountsScope =
34 "https://www.googleapis.com/auth/tagmanager.manage.accounts";
33 35
34 /** 36 /// Manage user permissions of your Google Tag Manager account and container
35 * Manage user permissions of your Google Tag Manager account and container 37 static const TagmanagerManageUsersScope =
36 */ 38 "https://www.googleapis.com/auth/tagmanager.manage.users";
37 static const TagmanagerManageUsersScope = "https://www.googleapis.com/auth/tag manager.manage.users";
38 39
39 /** Publish your Google Tag Manager container versions */ 40 /// Publish your Google Tag Manager container versions
40 static const TagmanagerPublishScope = "https://www.googleapis.com/auth/tagmana ger.publish"; 41 static const TagmanagerPublishScope =
42 "https://www.googleapis.com/auth/tagmanager.publish";
41 43
42 /** View your Google Tag Manager container and its subcomponents */ 44 /// View your Google Tag Manager container and its subcomponents
43 static const TagmanagerReadonlyScope = "https://www.googleapis.com/auth/tagman ager.readonly"; 45 static const TagmanagerReadonlyScope =
44 46 "https://www.googleapis.com/auth/tagmanager.readonly";
45 47
46 final commons.ApiRequester _requester; 48 final commons.ApiRequester _requester;
47 49
48 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); 50 AccountsResourceApi get accounts => new AccountsResourceApi(_requester);
49 51
50 TagmanagerApi(http.Client client, {core.String rootUrl: "https://www.googleapi s.com/", core.String servicePath: "tagmanager/v2/"}) : 52 TagmanagerApi(http.Client client,
51 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 53 {core.String rootUrl: "https://www.googleapis.com/",
54 core.String servicePath: "tagmanager/v2/"})
55 : _requester =
56 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
52 } 57 }
53 58
54
55 class AccountsResourceApi { 59 class AccountsResourceApi {
56 final commons.ApiRequester _requester; 60 final commons.ApiRequester _requester;
57 61
58 AccountsContainersResourceApi get containers => new AccountsContainersResource Api(_requester); 62 AccountsContainersResourceApi get containers =>
59 AccountsUserPermissionsResourceApi get userPermissions => new AccountsUserPerm issionsResourceApi(_requester); 63 new AccountsContainersResourceApi(_requester);
64 AccountsUserPermissionsResourceApi get userPermissions =>
65 new AccountsUserPermissionsResourceApi(_requester);
60 66
61 AccountsResourceApi(commons.ApiRequester client) : 67 AccountsResourceApi(commons.ApiRequester client) : _requester = client;
62 _requester = client;
63 68
64 /** 69 /// Gets a GTM Account.
65 * Gets a GTM Account. 70 ///
66 * 71 /// Request parameters:
67 * Request parameters: 72 ///
68 * 73 /// [path] - GTM Accounts's API relative path. Example: accounts/{account_id}
69 * [path] - GTM Accounts's API relative path. Example: accounts/{account_id} 74 ///
70 * 75 /// Completes with a [Account].
71 * Completes with a [Account]. 76 ///
72 * 77 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
73 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 78 /// an error.
74 * error. 79 ///
75 * 80 /// If the used [http.Client] completes with an error when making a REST
76 * If the used [http.Client] completes with an error when making a REST call, 81 /// call, this method will complete with the same error.
77 * this method will complete with the same error.
78 */
79 async.Future<Account> get(core.String path) { 82 async.Future<Account> get(core.String path) {
80 var _url = null; 83 var _url = null;
81 var _queryParams = new core.Map(); 84 var _queryParams = new core.Map();
82 var _uploadMedia = null; 85 var _uploadMedia = null;
83 var _uploadOptions = null; 86 var _uploadOptions = null;
84 var _downloadOptions = commons.DownloadOptions.Metadata; 87 var _downloadOptions = commons.DownloadOptions.Metadata;
85 var _body = null; 88 var _body = null;
86 89
87 if (path == null) { 90 if (path == null) {
88 throw new core.ArgumentError("Parameter path is required."); 91 throw new core.ArgumentError("Parameter path is required.");
89 } 92 }
90 93
91 _url = commons.Escaper.ecapeVariableReserved('$path'); 94 _url = commons.Escaper.ecapeVariableReserved('$path');
92 95
93 var _response = _requester.request(_url, 96 var _response = _requester.request(_url, "GET",
94 "GET", 97 body: _body,
95 body: _body, 98 queryParams: _queryParams,
96 queryParams: _queryParams, 99 uploadOptions: _uploadOptions,
97 uploadOptions: _uploadOptions, 100 uploadMedia: _uploadMedia,
98 uploadMedia: _uploadMedia, 101 downloadOptions: _downloadOptions);
99 downloadOptions: _downloadOptions);
100 return _response.then((data) => new Account.fromJson(data)); 102 return _response.then((data) => new Account.fromJson(data));
101 } 103 }
102 104
103 /** 105 /// Lists all GTM Accounts that a user has access to.
104 * Lists all GTM Accounts that a user has access to. 106 ///
105 * 107 /// Request parameters:
106 * Request parameters: 108 ///
107 * 109 /// [pageToken] - Continuation token for fetching the next page of results.
108 * [pageToken] - Continuation token for fetching the next page of results. 110 ///
109 * 111 /// Completes with a [ListAccountsResponse].
110 * Completes with a [ListAccountsResponse]. 112 ///
111 * 113 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
112 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 114 /// an error.
113 * error. 115 ///
114 * 116 /// If the used [http.Client] completes with an error when making a REST
115 * If the used [http.Client] completes with an error when making a REST call, 117 /// call, this method will complete with the same error.
116 * this method will complete with the same error.
117 */
118 async.Future<ListAccountsResponse> list({core.String pageToken}) { 118 async.Future<ListAccountsResponse> list({core.String pageToken}) {
119 var _url = null; 119 var _url = null;
120 var _queryParams = new core.Map(); 120 var _queryParams = new core.Map();
121 var _uploadMedia = null; 121 var _uploadMedia = null;
122 var _uploadOptions = null; 122 var _uploadOptions = null;
123 var _downloadOptions = commons.DownloadOptions.Metadata; 123 var _downloadOptions = commons.DownloadOptions.Metadata;
124 var _body = null; 124 var _body = null;
125 125
126 if (pageToken != null) { 126 if (pageToken != null) {
127 _queryParams["pageToken"] = [pageToken]; 127 _queryParams["pageToken"] = [pageToken];
128 } 128 }
129 129
130 _url = 'accounts'; 130 _url = 'accounts';
131 131
132 var _response = _requester.request(_url, 132 var _response = _requester.request(_url, "GET",
133 "GET", 133 body: _body,
134 body: _body, 134 queryParams: _queryParams,
135 queryParams: _queryParams, 135 uploadOptions: _uploadOptions,
136 uploadOptions: _uploadOptions, 136 uploadMedia: _uploadMedia,
137 uploadMedia: _uploadMedia, 137 downloadOptions: _downloadOptions);
138 downloadOptions: _downloadOptions);
139 return _response.then((data) => new ListAccountsResponse.fromJson(data)); 138 return _response.then((data) => new ListAccountsResponse.fromJson(data));
140 } 139 }
141 140
142 /** 141 /// Updates a GTM Account.
143 * Updates a GTM Account. 142 ///
144 * 143 /// [request] - The metadata request object.
145 * [request] - The metadata request object. 144 ///
146 * 145 /// Request parameters:
147 * Request parameters: 146 ///
148 * 147 /// [path] - GTM Accounts's API relative path. Example: accounts/{account_id}
149 * [path] - GTM Accounts's API relative path. Example: accounts/{account_id} 148 ///
150 * 149 /// [fingerprint] - When provided, this fingerprint must match the
151 * [fingerprint] - When provided, this fingerprint must match the fingerprint 150 /// fingerprint of the account in storage.
152 * of the account in storage. 151 ///
153 * 152 /// Completes with a [Account].
154 * Completes with a [Account]. 153 ///
155 * 154 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
156 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 155 /// an error.
157 * error. 156 ///
158 * 157 /// If the used [http.Client] completes with an error when making a REST
159 * If the used [http.Client] completes with an error when making a REST call, 158 /// call, this method will complete with the same error.
160 * this method will complete with the same error. 159 async.Future<Account> update(Account request, core.String path,
161 */ 160 {core.String fingerprint}) {
162 async.Future<Account> update(Account request, core.String path, {core.String f ingerprint}) {
163 var _url = null; 161 var _url = null;
164 var _queryParams = new core.Map(); 162 var _queryParams = new core.Map();
165 var _uploadMedia = null; 163 var _uploadMedia = null;
166 var _uploadOptions = null; 164 var _uploadOptions = null;
167 var _downloadOptions = commons.DownloadOptions.Metadata; 165 var _downloadOptions = commons.DownloadOptions.Metadata;
168 var _body = null; 166 var _body = null;
169 167
170 if (request != null) { 168 if (request != null) {
171 _body = convert.JSON.encode((request).toJson()); 169 _body = convert.JSON.encode((request).toJson());
172 } 170 }
173 if (path == null) { 171 if (path == null) {
174 throw new core.ArgumentError("Parameter path is required."); 172 throw new core.ArgumentError("Parameter path is required.");
175 } 173 }
176 if (fingerprint != null) { 174 if (fingerprint != null) {
177 _queryParams["fingerprint"] = [fingerprint]; 175 _queryParams["fingerprint"] = [fingerprint];
178 } 176 }
179 177
180 _url = commons.Escaper.ecapeVariableReserved('$path'); 178 _url = commons.Escaper.ecapeVariableReserved('$path');
181 179
182 var _response = _requester.request(_url, 180 var _response = _requester.request(_url, "PUT",
183 "PUT", 181 body: _body,
184 body: _body, 182 queryParams: _queryParams,
185 queryParams: _queryParams, 183 uploadOptions: _uploadOptions,
186 uploadOptions: _uploadOptions, 184 uploadMedia: _uploadMedia,
187 uploadMedia: _uploadMedia, 185 downloadOptions: _downloadOptions);
188 downloadOptions: _downloadOptions);
189 return _response.then((data) => new Account.fromJson(data)); 186 return _response.then((data) => new Account.fromJson(data));
190 } 187 }
191
192 } 188 }
193 189
194
195 class AccountsContainersResourceApi { 190 class AccountsContainersResourceApi {
196 final commons.ApiRequester _requester; 191 final commons.ApiRequester _requester;
197 192
198 AccountsContainersEnvironmentsResourceApi get environments => new AccountsCont ainersEnvironmentsResourceApi(_requester); 193 AccountsContainersEnvironmentsResourceApi get environments =>
199 AccountsContainersVersionHeadersResourceApi get versionHeaders => new Accounts ContainersVersionHeadersResourceApi(_requester); 194 new AccountsContainersEnvironmentsResourceApi(_requester);
200 AccountsContainersVersionsResourceApi get versions => new AccountsContainersVe rsionsResourceApi(_requester); 195 AccountsContainersVersionHeadersResourceApi get versionHeaders =>
201 AccountsContainersWorkspacesResourceApi get workspaces => new AccountsContaine rsWorkspacesResourceApi(_requester); 196 new AccountsContainersVersionHeadersResourceApi(_requester);
197 AccountsContainersVersionsResourceApi get versions =>
198 new AccountsContainersVersionsResourceApi(_requester);
199 AccountsContainersWorkspacesResourceApi get workspaces =>
200 new AccountsContainersWorkspacesResourceApi(_requester);
202 201
203 AccountsContainersResourceApi(commons.ApiRequester client) : 202 AccountsContainersResourceApi(commons.ApiRequester client)
204 _requester = client; 203 : _requester = client;
205 204
206 /** 205 /// Creates a Container.
207 * Creates a Container. 206 ///
208 * 207 /// [request] - The metadata request object.
209 * [request] - The metadata request object. 208 ///
210 * 209 /// Request parameters:
211 * Request parameters: 210 ///
212 * 211 /// [parent] - GTM Account's API relative path. Example:
213 * [parent] - GTM Account's API relative path. Example: accounts/{account_id}. 212 /// accounts/{account_id}.
214 * 213 ///
215 * Completes with a [Container]. 214 /// Completes with a [Container].
216 * 215 ///
217 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 216 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
218 * error. 217 /// an error.
219 * 218 ///
220 * If the used [http.Client] completes with an error when making a REST call, 219 /// If the used [http.Client] completes with an error when making a REST
221 * this method will complete with the same error. 220 /// call, this method will complete with the same error.
222 */
223 async.Future<Container> create(Container request, core.String parent) { 221 async.Future<Container> create(Container request, core.String parent) {
224 var _url = null; 222 var _url = null;
225 var _queryParams = new core.Map(); 223 var _queryParams = new core.Map();
226 var _uploadMedia = null; 224 var _uploadMedia = null;
227 var _uploadOptions = null; 225 var _uploadOptions = null;
228 var _downloadOptions = commons.DownloadOptions.Metadata; 226 var _downloadOptions = commons.DownloadOptions.Metadata;
229 var _body = null; 227 var _body = null;
230 228
231 if (request != null) { 229 if (request != null) {
232 _body = convert.JSON.encode((request).toJson()); 230 _body = convert.JSON.encode((request).toJson());
233 } 231 }
234 if (parent == null) { 232 if (parent == null) {
235 throw new core.ArgumentError("Parameter parent is required."); 233 throw new core.ArgumentError("Parameter parent is required.");
236 } 234 }
237 235
238 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/containers'; 236 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/containers';
239 237
240 var _response = _requester.request(_url, 238 var _response = _requester.request(_url, "POST",
241 "POST", 239 body: _body,
242 body: _body, 240 queryParams: _queryParams,
243 queryParams: _queryParams, 241 uploadOptions: _uploadOptions,
244 uploadOptions: _uploadOptions, 242 uploadMedia: _uploadMedia,
245 uploadMedia: _uploadMedia, 243 downloadOptions: _downloadOptions);
246 downloadOptions: _downloadOptions);
247 return _response.then((data) => new Container.fromJson(data)); 244 return _response.then((data) => new Container.fromJson(data));
248 } 245 }
249 246
250 /** 247 /// Deletes a Container.
251 * Deletes a Container. 248 ///
252 * 249 /// Request parameters:
253 * Request parameters: 250 ///
254 * 251 /// [path] - GTM Container's API relative path. Example:
255 * [path] - GTM Container's API relative path. Example: 252 /// accounts/{account_id}/containers/{container_id}
256 * accounts/{account_id}/containers/{container_id} 253 ///
257 * 254 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
258 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 255 /// an error.
259 * error. 256 ///
260 * 257 /// If the used [http.Client] completes with an error when making a REST
261 * If the used [http.Client] completes with an error when making a REST call, 258 /// call, this method will complete with the same error.
262 * this method will complete with the same error.
263 */
264 async.Future delete(core.String path) { 259 async.Future delete(core.String path) {
265 var _url = null; 260 var _url = null;
266 var _queryParams = new core.Map(); 261 var _queryParams = new core.Map();
267 var _uploadMedia = null; 262 var _uploadMedia = null;
268 var _uploadOptions = null; 263 var _uploadOptions = null;
269 var _downloadOptions = commons.DownloadOptions.Metadata; 264 var _downloadOptions = commons.DownloadOptions.Metadata;
270 var _body = null; 265 var _body = null;
271 266
272 if (path == null) { 267 if (path == null) {
273 throw new core.ArgumentError("Parameter path is required."); 268 throw new core.ArgumentError("Parameter path is required.");
274 } 269 }
275 270
276 _downloadOptions = null; 271 _downloadOptions = null;
277 272
278 _url = commons.Escaper.ecapeVariableReserved('$path'); 273 _url = commons.Escaper.ecapeVariableReserved('$path');
279 274
280 var _response = _requester.request(_url, 275 var _response = _requester.request(_url, "DELETE",
281 "DELETE", 276 body: _body,
282 body: _body, 277 queryParams: _queryParams,
283 queryParams: _queryParams, 278 uploadOptions: _uploadOptions,
284 uploadOptions: _uploadOptions, 279 uploadMedia: _uploadMedia,
285 uploadMedia: _uploadMedia, 280 downloadOptions: _downloadOptions);
286 downloadOptions: _downloadOptions);
287 return _response.then((data) => null); 281 return _response.then((data) => null);
288 } 282 }
289 283
290 /** 284 /// Gets a Container.
291 * Gets a Container. 285 ///
292 * 286 /// Request parameters:
293 * Request parameters: 287 ///
294 * 288 /// [path] - GTM Container's API relative path. Example:
295 * [path] - GTM Container's API relative path. Example: 289 /// accounts/{account_id}/containers/{container_id}
296 * accounts/{account_id}/containers/{container_id} 290 ///
297 * 291 /// Completes with a [Container].
298 * Completes with a [Container]. 292 ///
299 * 293 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 294 /// an error.
301 * error. 295 ///
302 * 296 /// If the used [http.Client] completes with an error when making a REST
303 * If the used [http.Client] completes with an error when making a REST call, 297 /// call, this method will complete with the same error.
304 * this method will complete with the same error.
305 */
306 async.Future<Container> get(core.String path) { 298 async.Future<Container> get(core.String path) {
307 var _url = null; 299 var _url = null;
308 var _queryParams = new core.Map(); 300 var _queryParams = new core.Map();
309 var _uploadMedia = null; 301 var _uploadMedia = null;
310 var _uploadOptions = null; 302 var _uploadOptions = null;
311 var _downloadOptions = commons.DownloadOptions.Metadata; 303 var _downloadOptions = commons.DownloadOptions.Metadata;
312 var _body = null; 304 var _body = null;
313 305
314 if (path == null) { 306 if (path == null) {
315 throw new core.ArgumentError("Parameter path is required."); 307 throw new core.ArgumentError("Parameter path is required.");
316 } 308 }
317 309
318 _url = commons.Escaper.ecapeVariableReserved('$path'); 310 _url = commons.Escaper.ecapeVariableReserved('$path');
319 311
320 var _response = _requester.request(_url, 312 var _response = _requester.request(_url, "GET",
321 "GET", 313 body: _body,
322 body: _body, 314 queryParams: _queryParams,
323 queryParams: _queryParams, 315 uploadOptions: _uploadOptions,
324 uploadOptions: _uploadOptions, 316 uploadMedia: _uploadMedia,
325 uploadMedia: _uploadMedia, 317 downloadOptions: _downloadOptions);
326 downloadOptions: _downloadOptions);
327 return _response.then((data) => new Container.fromJson(data)); 318 return _response.then((data) => new Container.fromJson(data));
328 } 319 }
329 320
330 /** 321 /// Lists all Containers that belongs to a GTM Account.
331 * Lists all Containers that belongs to a GTM Account. 322 ///
332 * 323 /// Request parameters:
333 * Request parameters: 324 ///
334 * 325 /// [parent] - GTM Accounts's API relative path. Example:
335 * [parent] - GTM Accounts's API relative path. Example: 326 /// accounts/{account_id}.
336 * accounts/{account_id}. 327 ///
337 * 328 /// [pageToken] - Continuation token for fetching the next page of results.
338 * [pageToken] - Continuation token for fetching the next page of results. 329 ///
339 * 330 /// Completes with a [ListContainersResponse].
340 * Completes with a [ListContainersResponse]. 331 ///
341 * 332 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
342 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 333 /// an error.
343 * error. 334 ///
344 * 335 /// If the used [http.Client] completes with an error when making a REST
345 * If the used [http.Client] completes with an error when making a REST call, 336 /// call, this method will complete with the same error.
346 * this method will complete with the same error. 337 async.Future<ListContainersResponse> list(core.String parent,
347 */ 338 {core.String pageToken}) {
348 async.Future<ListContainersResponse> list(core.String parent, {core.String pag eToken}) {
349 var _url = null; 339 var _url = null;
350 var _queryParams = new core.Map(); 340 var _queryParams = new core.Map();
351 var _uploadMedia = null; 341 var _uploadMedia = null;
352 var _uploadOptions = null; 342 var _uploadOptions = null;
353 var _downloadOptions = commons.DownloadOptions.Metadata; 343 var _downloadOptions = commons.DownloadOptions.Metadata;
354 var _body = null; 344 var _body = null;
355 345
356 if (parent == null) { 346 if (parent == null) {
357 throw new core.ArgumentError("Parameter parent is required."); 347 throw new core.ArgumentError("Parameter parent is required.");
358 } 348 }
359 if (pageToken != null) { 349 if (pageToken != null) {
360 _queryParams["pageToken"] = [pageToken]; 350 _queryParams["pageToken"] = [pageToken];
361 } 351 }
362 352
363 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/containers'; 353 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/containers';
364 354
365 var _response = _requester.request(_url, 355 var _response = _requester.request(_url, "GET",
366 "GET", 356 body: _body,
367 body: _body, 357 queryParams: _queryParams,
368 queryParams: _queryParams, 358 uploadOptions: _uploadOptions,
369 uploadOptions: _uploadOptions, 359 uploadMedia: _uploadMedia,
370 uploadMedia: _uploadMedia, 360 downloadOptions: _downloadOptions);
371 downloadOptions: _downloadOptions);
372 return _response.then((data) => new ListContainersResponse.fromJson(data)); 361 return _response.then((data) => new ListContainersResponse.fromJson(data));
373 } 362 }
374 363
375 /** 364 /// Updates a Container.
376 * Updates a Container. 365 ///
377 * 366 /// [request] - The metadata request object.
378 * [request] - The metadata request object. 367 ///
379 * 368 /// Request parameters:
380 * Request parameters: 369 ///
381 * 370 /// [path] - GTM Container's API relative path. Example:
382 * [path] - GTM Container's API relative path. Example: 371 /// accounts/{account_id}/containers/{container_id}
383 * accounts/{account_id}/containers/{container_id} 372 ///
384 * 373 /// [fingerprint] - When provided, this fingerprint must match the
385 * [fingerprint] - When provided, this fingerprint must match the fingerprint 374 /// fingerprint of the container in storage.
386 * of the container in storage. 375 ///
387 * 376 /// Completes with a [Container].
388 * Completes with a [Container]. 377 ///
389 * 378 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
390 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 379 /// an error.
391 * error. 380 ///
392 * 381 /// If the used [http.Client] completes with an error when making a REST
393 * If the used [http.Client] completes with an error when making a REST call, 382 /// call, this method will complete with the same error.
394 * this method will complete with the same error. 383 async.Future<Container> update(Container request, core.String path,
395 */ 384 {core.String fingerprint}) {
396 async.Future<Container> update(Container request, core.String path, {core.Stri ng fingerprint}) {
397 var _url = null; 385 var _url = null;
398 var _queryParams = new core.Map(); 386 var _queryParams = new core.Map();
399 var _uploadMedia = null; 387 var _uploadMedia = null;
400 var _uploadOptions = null; 388 var _uploadOptions = null;
401 var _downloadOptions = commons.DownloadOptions.Metadata; 389 var _downloadOptions = commons.DownloadOptions.Metadata;
402 var _body = null; 390 var _body = null;
403 391
404 if (request != null) { 392 if (request != null) {
405 _body = convert.JSON.encode((request).toJson()); 393 _body = convert.JSON.encode((request).toJson());
406 } 394 }
407 if (path == null) { 395 if (path == null) {
408 throw new core.ArgumentError("Parameter path is required."); 396 throw new core.ArgumentError("Parameter path is required.");
409 } 397 }
410 if (fingerprint != null) { 398 if (fingerprint != null) {
411 _queryParams["fingerprint"] = [fingerprint]; 399 _queryParams["fingerprint"] = [fingerprint];
412 } 400 }
413 401
414 _url = commons.Escaper.ecapeVariableReserved('$path'); 402 _url = commons.Escaper.ecapeVariableReserved('$path');
415 403
416 var _response = _requester.request(_url, 404 var _response = _requester.request(_url, "PUT",
417 "PUT", 405 body: _body,
418 body: _body, 406 queryParams: _queryParams,
419 queryParams: _queryParams, 407 uploadOptions: _uploadOptions,
420 uploadOptions: _uploadOptions, 408 uploadMedia: _uploadMedia,
421 uploadMedia: _uploadMedia, 409 downloadOptions: _downloadOptions);
422 downloadOptions: _downloadOptions);
423 return _response.then((data) => new Container.fromJson(data)); 410 return _response.then((data) => new Container.fromJson(data));
424 } 411 }
425
426 } 412 }
427 413
428
429 class AccountsContainersEnvironmentsResourceApi { 414 class AccountsContainersEnvironmentsResourceApi {
430 final commons.ApiRequester _requester; 415 final commons.ApiRequester _requester;
431 416
432 AccountsContainersEnvironmentsResourceApi(commons.ApiRequester client) : 417 AccountsContainersEnvironmentsResourceApi(commons.ApiRequester client)
433 _requester = client; 418 : _requester = client;
434 419
435 /** 420 /// Creates a GTM Environment.
436 * Creates a GTM Environment. 421 ///
437 * 422 /// [request] - The metadata request object.
438 * [request] - The metadata request object. 423 ///
439 * 424 /// Request parameters:
440 * Request parameters: 425 ///
441 * 426 /// [parent] - GTM Container's API relative path. Example:
442 * [parent] - GTM Container's API relative path. Example: 427 /// accounts/{account_id}/containers/{container_id}
443 * accounts/{account_id}/containers/{container_id} 428 ///
444 * 429 /// Completes with a [Environment].
445 * Completes with a [Environment]. 430 ///
446 * 431 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
447 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 432 /// an error.
448 * error. 433 ///
449 * 434 /// If the used [http.Client] completes with an error when making a REST
450 * If the used [http.Client] completes with an error when making a REST call, 435 /// call, this method will complete with the same error.
451 * this method will complete with the same error.
452 */
453 async.Future<Environment> create(Environment request, core.String parent) { 436 async.Future<Environment> create(Environment request, core.String parent) {
454 var _url = null; 437 var _url = null;
455 var _queryParams = new core.Map(); 438 var _queryParams = new core.Map();
456 var _uploadMedia = null; 439 var _uploadMedia = null;
457 var _uploadOptions = null; 440 var _uploadOptions = null;
458 var _downloadOptions = commons.DownloadOptions.Metadata; 441 var _downloadOptions = commons.DownloadOptions.Metadata;
459 var _body = null; 442 var _body = null;
460 443
461 if (request != null) { 444 if (request != null) {
462 _body = convert.JSON.encode((request).toJson()); 445 _body = convert.JSON.encode((request).toJson());
463 } 446 }
464 if (parent == null) { 447 if (parent == null) {
465 throw new core.ArgumentError("Parameter parent is required."); 448 throw new core.ArgumentError("Parameter parent is required.");
466 } 449 }
467 450
468 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/environments'; 451 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/environments';
469 452
470 var _response = _requester.request(_url, 453 var _response = _requester.request(_url, "POST",
471 "POST", 454 body: _body,
472 body: _body, 455 queryParams: _queryParams,
473 queryParams: _queryParams, 456 uploadOptions: _uploadOptions,
474 uploadOptions: _uploadOptions, 457 uploadMedia: _uploadMedia,
475 uploadMedia: _uploadMedia, 458 downloadOptions: _downloadOptions);
476 downloadOptions: _downloadOptions);
477 return _response.then((data) => new Environment.fromJson(data)); 459 return _response.then((data) => new Environment.fromJson(data));
478 } 460 }
479 461
480 /** 462 /// Deletes a GTM Environment.
481 * Deletes a GTM Environment. 463 ///
482 * 464 /// Request parameters:
483 * Request parameters: 465 ///
484 * 466 /// [path] - GTM Environment's API relative path. Example:
485 * [path] - GTM Environment's API relative path. Example: 467 /// accounts/{account_id}/containers/{container_id}/environments/{environment_ id}
486 * accounts/{account_id}/containers/{container_id}/environments/{environment_i d} 468 ///
487 * 469 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
488 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 470 /// an error.
489 * error. 471 ///
490 * 472 /// If the used [http.Client] completes with an error when making a REST
491 * If the used [http.Client] completes with an error when making a REST call, 473 /// call, this method will complete with the same error.
492 * this method will complete with the same error.
493 */
494 async.Future delete(core.String path) { 474 async.Future delete(core.String path) {
495 var _url = null; 475 var _url = null;
496 var _queryParams = new core.Map(); 476 var _queryParams = new core.Map();
497 var _uploadMedia = null; 477 var _uploadMedia = null;
498 var _uploadOptions = null; 478 var _uploadOptions = null;
499 var _downloadOptions = commons.DownloadOptions.Metadata; 479 var _downloadOptions = commons.DownloadOptions.Metadata;
500 var _body = null; 480 var _body = null;
501 481
502 if (path == null) { 482 if (path == null) {
503 throw new core.ArgumentError("Parameter path is required."); 483 throw new core.ArgumentError("Parameter path is required.");
504 } 484 }
505 485
506 _downloadOptions = null; 486 _downloadOptions = null;
507 487
508 _url = commons.Escaper.ecapeVariableReserved('$path'); 488 _url = commons.Escaper.ecapeVariableReserved('$path');
509 489
510 var _response = _requester.request(_url, 490 var _response = _requester.request(_url, "DELETE",
511 "DELETE", 491 body: _body,
512 body: _body, 492 queryParams: _queryParams,
513 queryParams: _queryParams, 493 uploadOptions: _uploadOptions,
514 uploadOptions: _uploadOptions, 494 uploadMedia: _uploadMedia,
515 uploadMedia: _uploadMedia, 495 downloadOptions: _downloadOptions);
516 downloadOptions: _downloadOptions);
517 return _response.then((data) => null); 496 return _response.then((data) => null);
518 } 497 }
519 498
520 /** 499 /// Gets a GTM Environment.
521 * Gets a GTM Environment. 500 ///
522 * 501 /// Request parameters:
523 * Request parameters: 502 ///
524 * 503 /// [path] - GTM Environment's API relative path. Example:
525 * [path] - GTM Environment's API relative path. Example: 504 /// accounts/{account_id}/containers/{container_id}/environments/{environment_ id}
526 * accounts/{account_id}/containers/{container_id}/environments/{environment_i d} 505 ///
527 * 506 /// Completes with a [Environment].
528 * Completes with a [Environment]. 507 ///
529 * 508 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
530 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 509 /// an error.
531 * error. 510 ///
532 * 511 /// If the used [http.Client] completes with an error when making a REST
533 * If the used [http.Client] completes with an error when making a REST call, 512 /// call, this method will complete with the same error.
534 * this method will complete with the same error.
535 */
536 async.Future<Environment> get(core.String path) { 513 async.Future<Environment> get(core.String path) {
537 var _url = null; 514 var _url = null;
538 var _queryParams = new core.Map(); 515 var _queryParams = new core.Map();
539 var _uploadMedia = null; 516 var _uploadMedia = null;
540 var _uploadOptions = null; 517 var _uploadOptions = null;
541 var _downloadOptions = commons.DownloadOptions.Metadata; 518 var _downloadOptions = commons.DownloadOptions.Metadata;
542 var _body = null; 519 var _body = null;
543 520
544 if (path == null) { 521 if (path == null) {
545 throw new core.ArgumentError("Parameter path is required."); 522 throw new core.ArgumentError("Parameter path is required.");
546 } 523 }
547 524
548 _url = commons.Escaper.ecapeVariableReserved('$path'); 525 _url = commons.Escaper.ecapeVariableReserved('$path');
549 526
550 var _response = _requester.request(_url, 527 var _response = _requester.request(_url, "GET",
551 "GET", 528 body: _body,
552 body: _body, 529 queryParams: _queryParams,
553 queryParams: _queryParams, 530 uploadOptions: _uploadOptions,
554 uploadOptions: _uploadOptions, 531 uploadMedia: _uploadMedia,
555 uploadMedia: _uploadMedia, 532 downloadOptions: _downloadOptions);
556 downloadOptions: _downloadOptions);
557 return _response.then((data) => new Environment.fromJson(data)); 533 return _response.then((data) => new Environment.fromJson(data));
558 } 534 }
559 535
560 /** 536 /// Lists all GTM Environments of a GTM Container.
561 * Lists all GTM Environments of a GTM Container. 537 ///
562 * 538 /// Request parameters:
563 * Request parameters: 539 ///
564 * 540 /// [parent] - GTM Container's API relative path. Example:
565 * [parent] - GTM Container's API relative path. Example: 541 /// accounts/{account_id}/containers/{container_id}
566 * accounts/{account_id}/containers/{container_id} 542 ///
567 * 543 /// [pageToken] - Continuation token for fetching the next page of results.
568 * [pageToken] - Continuation token for fetching the next page of results. 544 ///
569 * 545 /// Completes with a [ListEnvironmentsResponse].
570 * Completes with a [ListEnvironmentsResponse]. 546 ///
571 * 547 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
572 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 548 /// an error.
573 * error. 549 ///
574 * 550 /// If the used [http.Client] completes with an error when making a REST
575 * If the used [http.Client] completes with an error when making a REST call, 551 /// call, this method will complete with the same error.
576 * this method will complete with the same error. 552 async.Future<ListEnvironmentsResponse> list(core.String parent,
577 */ 553 {core.String pageToken}) {
578 async.Future<ListEnvironmentsResponse> list(core.String parent, {core.String p ageToken}) {
579 var _url = null; 554 var _url = null;
580 var _queryParams = new core.Map(); 555 var _queryParams = new core.Map();
581 var _uploadMedia = null; 556 var _uploadMedia = null;
582 var _uploadOptions = null; 557 var _uploadOptions = null;
583 var _downloadOptions = commons.DownloadOptions.Metadata; 558 var _downloadOptions = commons.DownloadOptions.Metadata;
584 var _body = null; 559 var _body = null;
585 560
586 if (parent == null) { 561 if (parent == null) {
587 throw new core.ArgumentError("Parameter parent is required."); 562 throw new core.ArgumentError("Parameter parent is required.");
588 } 563 }
589 if (pageToken != null) { 564 if (pageToken != null) {
590 _queryParams["pageToken"] = [pageToken]; 565 _queryParams["pageToken"] = [pageToken];
591 } 566 }
592 567
593 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/environments'; 568 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/environments';
594 569
595 var _response = _requester.request(_url, 570 var _response = _requester.request(_url, "GET",
596 "GET", 571 body: _body,
597 body: _body, 572 queryParams: _queryParams,
598 queryParams: _queryParams, 573 uploadOptions: _uploadOptions,
599 uploadOptions: _uploadOptions, 574 uploadMedia: _uploadMedia,
600 uploadMedia: _uploadMedia, 575 downloadOptions: _downloadOptions);
601 downloadOptions: _downloadOptions); 576 return _response
602 return _response.then((data) => new ListEnvironmentsResponse.fromJson(data)) ; 577 .then((data) => new ListEnvironmentsResponse.fromJson(data));
603 } 578 }
604 579
605 /** 580 /// Updates a GTM Environment. This method supports patch semantics.
606 * Updates a GTM Environment. This method supports patch semantics. 581 ///
607 * 582 /// [request] - The metadata request object.
608 * [request] - The metadata request object. 583 ///
609 * 584 /// Request parameters:
610 * Request parameters: 585 ///
611 * 586 /// [path] - GTM Environment's API relative path. Example:
612 * [path] - GTM Environment's API relative path. Example: 587 /// accounts/{account_id}/containers/{container_id}/environments/{environment_ id}
613 * accounts/{account_id}/containers/{container_id}/environments/{environment_i d} 588 ///
614 * 589 /// [fingerprint] - When provided, this fingerprint must match the
615 * [fingerprint] - When provided, this fingerprint must match the fingerprint 590 /// fingerprint of the environment in storage.
616 * of the environment in storage. 591 ///
617 * 592 /// Completes with a [Environment].
618 * Completes with a [Environment]. 593 ///
619 * 594 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
620 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 595 /// an error.
621 * error. 596 ///
622 * 597 /// If the used [http.Client] completes with an error when making a REST
623 * If the used [http.Client] completes with an error when making a REST call, 598 /// call, this method will complete with the same error.
624 * this method will complete with the same error. 599 async.Future<Environment> patch(Environment request, core.String path,
625 */ 600 {core.String fingerprint}) {
626 async.Future<Environment> patch(Environment request, core.String path, {core.S tring fingerprint}) {
627 var _url = null; 601 var _url = null;
628 var _queryParams = new core.Map(); 602 var _queryParams = new core.Map();
629 var _uploadMedia = null; 603 var _uploadMedia = null;
630 var _uploadOptions = null; 604 var _uploadOptions = null;
631 var _downloadOptions = commons.DownloadOptions.Metadata; 605 var _downloadOptions = commons.DownloadOptions.Metadata;
632 var _body = null; 606 var _body = null;
633 607
634 if (request != null) { 608 if (request != null) {
635 _body = convert.JSON.encode((request).toJson()); 609 _body = convert.JSON.encode((request).toJson());
636 } 610 }
637 if (path == null) { 611 if (path == null) {
638 throw new core.ArgumentError("Parameter path is required."); 612 throw new core.ArgumentError("Parameter path is required.");
639 } 613 }
640 if (fingerprint != null) { 614 if (fingerprint != null) {
641 _queryParams["fingerprint"] = [fingerprint]; 615 _queryParams["fingerprint"] = [fingerprint];
642 } 616 }
643 617
644 _url = commons.Escaper.ecapeVariableReserved('$path'); 618 _url = commons.Escaper.ecapeVariableReserved('$path');
645 619
646 var _response = _requester.request(_url, 620 var _response = _requester.request(_url, "PATCH",
647 "PATCH", 621 body: _body,
648 body: _body, 622 queryParams: _queryParams,
649 queryParams: _queryParams, 623 uploadOptions: _uploadOptions,
650 uploadOptions: _uploadOptions, 624 uploadMedia: _uploadMedia,
651 uploadMedia: _uploadMedia, 625 downloadOptions: _downloadOptions);
652 downloadOptions: _downloadOptions);
653 return _response.then((data) => new Environment.fromJson(data)); 626 return _response.then((data) => new Environment.fromJson(data));
654 } 627 }
655 628
656 /** 629 /// Re-generates the authorization code for a GTM Environment.
657 * Re-generates the authorization code for a GTM Environment. 630 ///
658 * 631 /// [request] - The metadata request object.
659 * [request] - The metadata request object. 632 ///
660 * 633 /// Request parameters:
661 * Request parameters: 634 ///
662 * 635 /// [path] - GTM Environment's API relative path. Example:
663 * [path] - GTM Environment's API relative path. Example: 636 /// accounts/{account_id}/containers/{container_id}/environments/{environment_ id}
664 * accounts/{account_id}/containers/{container_id}/environments/{environment_i d} 637 ///
665 * 638 /// Completes with a [Environment].
666 * Completes with a [Environment]. 639 ///
667 * 640 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
668 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 641 /// an error.
669 * error. 642 ///
670 * 643 /// If the used [http.Client] completes with an error when making a REST
671 * If the used [http.Client] completes with an error when making a REST call, 644 /// call, this method will complete with the same error.
672 * this method will complete with the same error.
673 */
674 async.Future<Environment> reauthorize(Environment request, core.String path) { 645 async.Future<Environment> reauthorize(Environment request, core.String path) {
675 var _url = null; 646 var _url = null;
676 var _queryParams = new core.Map(); 647 var _queryParams = new core.Map();
677 var _uploadMedia = null; 648 var _uploadMedia = null;
678 var _uploadOptions = null; 649 var _uploadOptions = null;
679 var _downloadOptions = commons.DownloadOptions.Metadata; 650 var _downloadOptions = commons.DownloadOptions.Metadata;
680 var _body = null; 651 var _body = null;
681 652
682 if (request != null) { 653 if (request != null) {
683 _body = convert.JSON.encode((request).toJson()); 654 _body = convert.JSON.encode((request).toJson());
684 } 655 }
685 if (path == null) { 656 if (path == null) {
686 throw new core.ArgumentError("Parameter path is required."); 657 throw new core.ArgumentError("Parameter path is required.");
687 } 658 }
688 659
689 _url = commons.Escaper.ecapeVariableReserved('$path') + ':reauthorize'; 660 _url = commons.Escaper.ecapeVariableReserved('$path') + ':reauthorize';
690 661
691 var _response = _requester.request(_url, 662 var _response = _requester.request(_url, "POST",
692 "POST", 663 body: _body,
693 body: _body, 664 queryParams: _queryParams,
694 queryParams: _queryParams, 665 uploadOptions: _uploadOptions,
695 uploadOptions: _uploadOptions, 666 uploadMedia: _uploadMedia,
696 uploadMedia: _uploadMedia, 667 downloadOptions: _downloadOptions);
697 downloadOptions: _downloadOptions);
698 return _response.then((data) => new Environment.fromJson(data)); 668 return _response.then((data) => new Environment.fromJson(data));
699 } 669 }
700 670
701 /** 671 /// Updates a GTM Environment.
702 * Updates a GTM Environment. 672 ///
703 * 673 /// [request] - The metadata request object.
704 * [request] - The metadata request object. 674 ///
705 * 675 /// Request parameters:
706 * Request parameters: 676 ///
707 * 677 /// [path] - GTM Environment's API relative path. Example:
708 * [path] - GTM Environment's API relative path. Example: 678 /// accounts/{account_id}/containers/{container_id}/environments/{environment_ id}
709 * accounts/{account_id}/containers/{container_id}/environments/{environment_i d} 679 ///
710 * 680 /// [fingerprint] - When provided, this fingerprint must match the
711 * [fingerprint] - When provided, this fingerprint must match the fingerprint 681 /// fingerprint of the environment in storage.
712 * of the environment in storage. 682 ///
713 * 683 /// Completes with a [Environment].
714 * Completes with a [Environment]. 684 ///
715 * 685 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
716 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 686 /// an error.
717 * error. 687 ///
718 * 688 /// If the used [http.Client] completes with an error when making a REST
719 * If the used [http.Client] completes with an error when making a REST call, 689 /// call, this method will complete with the same error.
720 * this method will complete with the same error. 690 async.Future<Environment> update(Environment request, core.String path,
721 */ 691 {core.String fingerprint}) {
722 async.Future<Environment> update(Environment request, core.String path, {core. String fingerprint}) {
723 var _url = null; 692 var _url = null;
724 var _queryParams = new core.Map(); 693 var _queryParams = new core.Map();
725 var _uploadMedia = null; 694 var _uploadMedia = null;
726 var _uploadOptions = null; 695 var _uploadOptions = null;
727 var _downloadOptions = commons.DownloadOptions.Metadata; 696 var _downloadOptions = commons.DownloadOptions.Metadata;
728 var _body = null; 697 var _body = null;
729 698
730 if (request != null) { 699 if (request != null) {
731 _body = convert.JSON.encode((request).toJson()); 700 _body = convert.JSON.encode((request).toJson());
732 } 701 }
733 if (path == null) { 702 if (path == null) {
734 throw new core.ArgumentError("Parameter path is required."); 703 throw new core.ArgumentError("Parameter path is required.");
735 } 704 }
736 if (fingerprint != null) { 705 if (fingerprint != null) {
737 _queryParams["fingerprint"] = [fingerprint]; 706 _queryParams["fingerprint"] = [fingerprint];
738 } 707 }
739 708
740 _url = commons.Escaper.ecapeVariableReserved('$path'); 709 _url = commons.Escaper.ecapeVariableReserved('$path');
741 710
742 var _response = _requester.request(_url, 711 var _response = _requester.request(_url, "PUT",
743 "PUT", 712 body: _body,
744 body: _body, 713 queryParams: _queryParams,
745 queryParams: _queryParams, 714 uploadOptions: _uploadOptions,
746 uploadOptions: _uploadOptions, 715 uploadMedia: _uploadMedia,
747 uploadMedia: _uploadMedia, 716 downloadOptions: _downloadOptions);
748 downloadOptions: _downloadOptions);
749 return _response.then((data) => new Environment.fromJson(data)); 717 return _response.then((data) => new Environment.fromJson(data));
750 } 718 }
751
752 } 719 }
753 720
754
755 class AccountsContainersVersionHeadersResourceApi { 721 class AccountsContainersVersionHeadersResourceApi {
756 final commons.ApiRequester _requester; 722 final commons.ApiRequester _requester;
757 723
758 AccountsContainersVersionHeadersResourceApi(commons.ApiRequester client) : 724 AccountsContainersVersionHeadersResourceApi(commons.ApiRequester client)
759 _requester = client; 725 : _requester = client;
760 726
761 /** 727 /// Gets the latest container version header
762 * Gets the latest container version header 728 ///
763 * 729 /// Request parameters:
764 * Request parameters: 730 ///
765 * 731 /// [parent] - GTM Container's API relative path. Example:
766 * [parent] - GTM Container's API relative path. Example: 732 /// accounts/{account_id}/containers/{container_id}
767 * accounts/{account_id}/containers/{container_id} 733 ///
768 * 734 /// Completes with a [ContainerVersionHeader].
769 * Completes with a [ContainerVersionHeader]. 735 ///
770 * 736 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
771 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 737 /// an error.
772 * error. 738 ///
773 * 739 /// If the used [http.Client] completes with an error when making a REST
774 * If the used [http.Client] completes with an error when making a REST call, 740 /// call, this method will complete with the same error.
775 * this method will complete with the same error.
776 */
777 async.Future<ContainerVersionHeader> latest(core.String parent) { 741 async.Future<ContainerVersionHeader> latest(core.String parent) {
778 var _url = null; 742 var _url = null;
779 var _queryParams = new core.Map(); 743 var _queryParams = new core.Map();
780 var _uploadMedia = null; 744 var _uploadMedia = null;
781 var _uploadOptions = null; 745 var _uploadOptions = null;
782 var _downloadOptions = commons.DownloadOptions.Metadata; 746 var _downloadOptions = commons.DownloadOptions.Metadata;
783 var _body = null; 747 var _body = null;
784 748
785 if (parent == null) { 749 if (parent == null) {
786 throw new core.ArgumentError("Parameter parent is required."); 750 throw new core.ArgumentError("Parameter parent is required.");
787 } 751 }
788 752
789 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/version_headers: latest'; 753 _url = commons.Escaper.ecapeVariableReserved('$parent') +
754 '/version_headers:latest';
790 755
791 var _response = _requester.request(_url, 756 var _response = _requester.request(_url, "GET",
792 "GET", 757 body: _body,
793 body: _body, 758 queryParams: _queryParams,
794 queryParams: _queryParams, 759 uploadOptions: _uploadOptions,
795 uploadOptions: _uploadOptions, 760 uploadMedia: _uploadMedia,
796 uploadMedia: _uploadMedia, 761 downloadOptions: _downloadOptions);
797 downloadOptions: _downloadOptions);
798 return _response.then((data) => new ContainerVersionHeader.fromJson(data)); 762 return _response.then((data) => new ContainerVersionHeader.fromJson(data));
799 } 763 }
800 764
801 /** 765 /// Lists all Container Versions of a GTM Container.
802 * Lists all Container Versions of a GTM Container. 766 ///
803 * 767 /// Request parameters:
804 * Request parameters: 768 ///
805 * 769 /// [parent] - GTM Container's API relative path. Example:
806 * [parent] - GTM Container's API relative path. Example: 770 /// accounts/{account_id}/containers/{container_id}
807 * accounts/{account_id}/containers/{container_id} 771 ///
808 * 772 /// [includeDeleted] - Also retrieve deleted (archived) versions when true.
809 * [includeDeleted] - Also retrieve deleted (archived) versions when true. 773 ///
810 * 774 /// [pageToken] - Continuation token for fetching the next page of results.
811 * [pageToken] - Continuation token for fetching the next page of results. 775 ///
812 * 776 /// Completes with a [ListContainerVersionsResponse].
813 * Completes with a [ListContainerVersionsResponse]. 777 ///
814 * 778 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
815 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 779 /// an error.
816 * error. 780 ///
817 * 781 /// If the used [http.Client] completes with an error when making a REST
818 * If the used [http.Client] completes with an error when making a REST call, 782 /// call, this method will complete with the same error.
819 * this method will complete with the same error. 783 async.Future<ListContainerVersionsResponse> list(core.String parent,
820 */ 784 {core.bool includeDeleted, core.String pageToken}) {
821 async.Future<ListContainerVersionsResponse> list(core.String parent, {core.boo l includeDeleted, core.String pageToken}) {
822 var _url = null; 785 var _url = null;
823 var _queryParams = new core.Map(); 786 var _queryParams = new core.Map();
824 var _uploadMedia = null; 787 var _uploadMedia = null;
825 var _uploadOptions = null; 788 var _uploadOptions = null;
826 var _downloadOptions = commons.DownloadOptions.Metadata; 789 var _downloadOptions = commons.DownloadOptions.Metadata;
827 var _body = null; 790 var _body = null;
828 791
829 if (parent == null) { 792 if (parent == null) {
830 throw new core.ArgumentError("Parameter parent is required."); 793 throw new core.ArgumentError("Parameter parent is required.");
831 } 794 }
832 if (includeDeleted != null) { 795 if (includeDeleted != null) {
833 _queryParams["includeDeleted"] = ["${includeDeleted}"]; 796 _queryParams["includeDeleted"] = ["${includeDeleted}"];
834 } 797 }
835 if (pageToken != null) { 798 if (pageToken != null) {
836 _queryParams["pageToken"] = [pageToken]; 799 _queryParams["pageToken"] = [pageToken];
837 } 800 }
838 801
839 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/version_headers' ; 802 _url =
803 commons.Escaper.ecapeVariableReserved('$parent') + '/version_headers';
840 804
841 var _response = _requester.request(_url, 805 var _response = _requester.request(_url, "GET",
842 "GET", 806 body: _body,
843 body: _body, 807 queryParams: _queryParams,
844 queryParams: _queryParams, 808 uploadOptions: _uploadOptions,
845 uploadOptions: _uploadOptions, 809 uploadMedia: _uploadMedia,
846 uploadMedia: _uploadMedia, 810 downloadOptions: _downloadOptions);
847 downloadOptions: _downloadOptions); 811 return _response
848 return _response.then((data) => new ListContainerVersionsResponse.fromJson(d ata)); 812 .then((data) => new ListContainerVersionsResponse.fromJson(data));
849 } 813 }
850
851 } 814 }
852 815
853
854 class AccountsContainersVersionsResourceApi { 816 class AccountsContainersVersionsResourceApi {
855 final commons.ApiRequester _requester; 817 final commons.ApiRequester _requester;
856 818
857 AccountsContainersVersionsResourceApi(commons.ApiRequester client) : 819 AccountsContainersVersionsResourceApi(commons.ApiRequester client)
858 _requester = client; 820 : _requester = client;
859 821
860 /** 822 /// Deletes a Container Version.
861 * Deletes a Container Version. 823 ///
862 * 824 /// Request parameters:
863 * Request parameters: 825 ///
864 * 826 /// [path] - GTM ContainerVersion's API relative path. Example:
865 * [path] - GTM ContainerVersion's API relative path. Example: 827 /// accounts/{account_id}/containers/{container_id}/versions/{version_id}
866 * accounts/{account_id}/containers/{container_id}/versions/{version_id} 828 ///
867 * 829 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
868 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 830 /// an error.
869 * error. 831 ///
870 * 832 /// If the used [http.Client] completes with an error when making a REST
871 * If the used [http.Client] completes with an error when making a REST call, 833 /// call, this method will complete with the same error.
872 * this method will complete with the same error.
873 */
874 async.Future delete(core.String path) { 834 async.Future delete(core.String path) {
875 var _url = null; 835 var _url = null;
876 var _queryParams = new core.Map(); 836 var _queryParams = new core.Map();
877 var _uploadMedia = null; 837 var _uploadMedia = null;
878 var _uploadOptions = null; 838 var _uploadOptions = null;
879 var _downloadOptions = commons.DownloadOptions.Metadata; 839 var _downloadOptions = commons.DownloadOptions.Metadata;
880 var _body = null; 840 var _body = null;
881 841
882 if (path == null) { 842 if (path == null) {
883 throw new core.ArgumentError("Parameter path is required."); 843 throw new core.ArgumentError("Parameter path is required.");
884 } 844 }
885 845
886 _downloadOptions = null; 846 _downloadOptions = null;
887 847
888 _url = commons.Escaper.ecapeVariableReserved('$path'); 848 _url = commons.Escaper.ecapeVariableReserved('$path');
889 849
890 var _response = _requester.request(_url, 850 var _response = _requester.request(_url, "DELETE",
891 "DELETE", 851 body: _body,
892 body: _body, 852 queryParams: _queryParams,
893 queryParams: _queryParams, 853 uploadOptions: _uploadOptions,
894 uploadOptions: _uploadOptions, 854 uploadMedia: _uploadMedia,
895 uploadMedia: _uploadMedia, 855 downloadOptions: _downloadOptions);
896 downloadOptions: _downloadOptions);
897 return _response.then((data) => null); 856 return _response.then((data) => null);
898 } 857 }
899 858
900 /** 859 /// Gets a Container Version.
901 * Gets a Container Version. 860 ///
902 * 861 /// Request parameters:
903 * Request parameters: 862 ///
904 * 863 /// [path] - GTM ContainerVersion's API relative path. Example:
905 * [path] - GTM ContainerVersion's API relative path. Example: 864 /// accounts/{account_id}/containers/{container_id}/versions/{version_id}
906 * accounts/{account_id}/containers/{container_id}/versions/{version_id} 865 ///
907 * 866 /// [containerVersionId] - The GTM ContainerVersion ID. Specify published to
908 * [containerVersionId] - The GTM ContainerVersion ID. Specify published to 867 /// retrieve the currently published version.
909 * retrieve the currently published version. 868 ///
910 * 869 /// Completes with a [ContainerVersion].
911 * Completes with a [ContainerVersion]. 870 ///
912 * 871 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
913 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 872 /// an error.
914 * error. 873 ///
915 * 874 /// If the used [http.Client] completes with an error when making a REST
916 * If the used [http.Client] completes with an error when making a REST call, 875 /// call, this method will complete with the same error.
917 * this method will complete with the same error. 876 async.Future<ContainerVersion> get(core.String path,
918 */ 877 {core.String containerVersionId}) {
919 async.Future<ContainerVersion> get(core.String path, {core.String containerVer sionId}) {
920 var _url = null; 878 var _url = null;
921 var _queryParams = new core.Map(); 879 var _queryParams = new core.Map();
922 var _uploadMedia = null; 880 var _uploadMedia = null;
923 var _uploadOptions = null; 881 var _uploadOptions = null;
924 var _downloadOptions = commons.DownloadOptions.Metadata; 882 var _downloadOptions = commons.DownloadOptions.Metadata;
925 var _body = null; 883 var _body = null;
926 884
927 if (path == null) { 885 if (path == null) {
928 throw new core.ArgumentError("Parameter path is required."); 886 throw new core.ArgumentError("Parameter path is required.");
929 } 887 }
930 if (containerVersionId != null) { 888 if (containerVersionId != null) {
931 _queryParams["containerVersionId"] = [containerVersionId]; 889 _queryParams["containerVersionId"] = [containerVersionId];
932 } 890 }
933 891
934 _url = commons.Escaper.ecapeVariableReserved('$path'); 892 _url = commons.Escaper.ecapeVariableReserved('$path');
935 893
936 var _response = _requester.request(_url, 894 var _response = _requester.request(_url, "GET",
937 "GET", 895 body: _body,
938 body: _body, 896 queryParams: _queryParams,
939 queryParams: _queryParams, 897 uploadOptions: _uploadOptions,
940 uploadOptions: _uploadOptions, 898 uploadMedia: _uploadMedia,
941 uploadMedia: _uploadMedia, 899 downloadOptions: _downloadOptions);
942 downloadOptions: _downloadOptions);
943 return _response.then((data) => new ContainerVersion.fromJson(data)); 900 return _response.then((data) => new ContainerVersion.fromJson(data));
944 } 901 }
945 902
946 /** 903 /// Gets the live (i.e. published) container version
947 * Gets the live (i.e. published) container version 904 ///
948 * 905 /// Request parameters:
949 * Request parameters: 906 ///
950 * 907 /// [parent] - GTM Container's API relative path. Example:
951 * [parent] - GTM Container's API relative path. Example: 908 /// accounts/{account_id}/containers/{container_id}
952 * accounts/{account_id}/containers/{container_id} 909 ///
953 * 910 /// Completes with a [ContainerVersion].
954 * Completes with a [ContainerVersion]. 911 ///
955 * 912 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
956 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 913 /// an error.
957 * error. 914 ///
958 * 915 /// If the used [http.Client] completes with an error when making a REST
959 * If the used [http.Client] completes with an error when making a REST call, 916 /// call, this method will complete with the same error.
960 * this method will complete with the same error.
961 */
962 async.Future<ContainerVersion> live(core.String parent) { 917 async.Future<ContainerVersion> live(core.String parent) {
963 var _url = null; 918 var _url = null;
964 var _queryParams = new core.Map(); 919 var _queryParams = new core.Map();
965 var _uploadMedia = null; 920 var _uploadMedia = null;
966 var _uploadOptions = null; 921 var _uploadOptions = null;
967 var _downloadOptions = commons.DownloadOptions.Metadata; 922 var _downloadOptions = commons.DownloadOptions.Metadata;
968 var _body = null; 923 var _body = null;
969 924
970 if (parent == null) { 925 if (parent == null) {
971 throw new core.ArgumentError("Parameter parent is required."); 926 throw new core.ArgumentError("Parameter parent is required.");
972 } 927 }
973 928
974 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/versions:live'; 929 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/versions:live';
975 930
976 var _response = _requester.request(_url, 931 var _response = _requester.request(_url, "GET",
977 "GET", 932 body: _body,
978 body: _body, 933 queryParams: _queryParams,
979 queryParams: _queryParams, 934 uploadOptions: _uploadOptions,
980 uploadOptions: _uploadOptions, 935 uploadMedia: _uploadMedia,
981 uploadMedia: _uploadMedia, 936 downloadOptions: _downloadOptions);
982 downloadOptions: _downloadOptions);
983 return _response.then((data) => new ContainerVersion.fromJson(data)); 937 return _response.then((data) => new ContainerVersion.fromJson(data));
984 } 938 }
985 939
986 /** 940 /// Publishes a Container Version.
987 * Publishes a Container Version. 941 ///
988 * 942 /// Request parameters:
989 * Request parameters: 943 ///
990 * 944 /// [path] - GTM ContainerVersion's API relative path. Example:
991 * [path] - GTM ContainerVersion's API relative path. Example: 945 /// accounts/{account_id}/containers/{container_id}/versions/{version_id}
992 * accounts/{account_id}/containers/{container_id}/versions/{version_id} 946 ///
993 * 947 /// [fingerprint] - When provided, this fingerprint must match the
994 * [fingerprint] - When provided, this fingerprint must match the fingerprint 948 /// fingerprint of the container version in storage.
995 * of the container version in storage. 949 ///
996 * 950 /// Completes with a [PublishContainerVersionResponse].
997 * Completes with a [PublishContainerVersionResponse]. 951 ///
998 * 952 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
999 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 953 /// an error.
1000 * error. 954 ///
1001 * 955 /// If the used [http.Client] completes with an error when making a REST
1002 * If the used [http.Client] completes with an error when making a REST call, 956 /// call, this method will complete with the same error.
1003 * this method will complete with the same error. 957 async.Future<PublishContainerVersionResponse> publish(core.String path,
1004 */ 958 {core.String fingerprint}) {
1005 async.Future<PublishContainerVersionResponse> publish(core.String path, {core. String fingerprint}) {
1006 var _url = null; 959 var _url = null;
1007 var _queryParams = new core.Map(); 960 var _queryParams = new core.Map();
1008 var _uploadMedia = null; 961 var _uploadMedia = null;
1009 var _uploadOptions = null; 962 var _uploadOptions = null;
1010 var _downloadOptions = commons.DownloadOptions.Metadata; 963 var _downloadOptions = commons.DownloadOptions.Metadata;
1011 var _body = null; 964 var _body = null;
1012 965
1013 if (path == null) { 966 if (path == null) {
1014 throw new core.ArgumentError("Parameter path is required."); 967 throw new core.ArgumentError("Parameter path is required.");
1015 } 968 }
1016 if (fingerprint != null) { 969 if (fingerprint != null) {
1017 _queryParams["fingerprint"] = [fingerprint]; 970 _queryParams["fingerprint"] = [fingerprint];
1018 } 971 }
1019 972
1020 _url = commons.Escaper.ecapeVariableReserved('$path') + ':publish'; 973 _url = commons.Escaper.ecapeVariableReserved('$path') + ':publish';
1021 974
1022 var _response = _requester.request(_url, 975 var _response = _requester.request(_url, "POST",
1023 "POST", 976 body: _body,
1024 body: _body, 977 queryParams: _queryParams,
1025 queryParams: _queryParams, 978 uploadOptions: _uploadOptions,
1026 uploadOptions: _uploadOptions, 979 uploadMedia: _uploadMedia,
1027 uploadMedia: _uploadMedia, 980 downloadOptions: _downloadOptions);
1028 downloadOptions: _downloadOptions); 981 return _response
1029 return _response.then((data) => new PublishContainerVersionResponse.fromJson (data)); 982 .then((data) => new PublishContainerVersionResponse.fromJson(data));
1030 } 983 }
1031 984
1032 /** 985 /// Sets the latest version used for synchronization of workspaces when
1033 * Sets the latest version used for synchronization of workspaces when 986 /// detecting conflicts and errors.
1034 * detecting conflicts and errors. 987 ///
1035 * 988 /// Request parameters:
1036 * Request parameters: 989 ///
1037 * 990 /// [path] - GTM ContainerVersion's API relative path. Example:
1038 * [path] - GTM ContainerVersion's API relative path. Example: 991 /// accounts/{account_id}/containers/{container_id}/versions/{version_id}
1039 * accounts/{account_id}/containers/{container_id}/versions/{version_id} 992 ///
1040 * 993 /// Completes with a [ContainerVersion].
1041 * Completes with a [ContainerVersion]. 994 ///
1042 * 995 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1043 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 996 /// an error.
1044 * error. 997 ///
1045 * 998 /// If the used [http.Client] completes with an error when making a REST
1046 * If the used [http.Client] completes with an error when making a REST call, 999 /// call, this method will complete with the same error.
1047 * this method will complete with the same error.
1048 */
1049 async.Future<ContainerVersion> setLatest(core.String path) { 1000 async.Future<ContainerVersion> setLatest(core.String path) {
1050 var _url = null; 1001 var _url = null;
1051 var _queryParams = new core.Map(); 1002 var _queryParams = new core.Map();
1052 var _uploadMedia = null; 1003 var _uploadMedia = null;
1053 var _uploadOptions = null; 1004 var _uploadOptions = null;
1054 var _downloadOptions = commons.DownloadOptions.Metadata; 1005 var _downloadOptions = commons.DownloadOptions.Metadata;
1055 var _body = null; 1006 var _body = null;
1056 1007
1057 if (path == null) { 1008 if (path == null) {
1058 throw new core.ArgumentError("Parameter path is required."); 1009 throw new core.ArgumentError("Parameter path is required.");
1059 } 1010 }
1060 1011
1061 _url = commons.Escaper.ecapeVariableReserved('$path') + ':set_latest'; 1012 _url = commons.Escaper.ecapeVariableReserved('$path') + ':set_latest';
1062 1013
1063 var _response = _requester.request(_url, 1014 var _response = _requester.request(_url, "POST",
1064 "POST", 1015 body: _body,
1065 body: _body, 1016 queryParams: _queryParams,
1066 queryParams: _queryParams, 1017 uploadOptions: _uploadOptions,
1067 uploadOptions: _uploadOptions, 1018 uploadMedia: _uploadMedia,
1068 uploadMedia: _uploadMedia, 1019 downloadOptions: _downloadOptions);
1069 downloadOptions: _downloadOptions);
1070 return _response.then((data) => new ContainerVersion.fromJson(data)); 1020 return _response.then((data) => new ContainerVersion.fromJson(data));
1071 } 1021 }
1072 1022
1073 /** 1023 /// Undeletes a Container Version.
1074 * Undeletes a Container Version. 1024 ///
1075 * 1025 /// Request parameters:
1076 * Request parameters: 1026 ///
1077 * 1027 /// [path] - GTM ContainerVersion's API relative path. Example:
1078 * [path] - GTM ContainerVersion's API relative path. Example: 1028 /// accounts/{account_id}/containers/{container_id}/versions/{version_id}
1079 * accounts/{account_id}/containers/{container_id}/versions/{version_id} 1029 ///
1080 * 1030 /// Completes with a [ContainerVersion].
1081 * Completes with a [ContainerVersion]. 1031 ///
1082 * 1032 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1083 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1033 /// an error.
1084 * error. 1034 ///
1085 * 1035 /// If the used [http.Client] completes with an error when making a REST
1086 * If the used [http.Client] completes with an error when making a REST call, 1036 /// call, this method will complete with the same error.
1087 * this method will complete with the same error.
1088 */
1089 async.Future<ContainerVersion> undelete(core.String path) { 1037 async.Future<ContainerVersion> undelete(core.String path) {
1090 var _url = null; 1038 var _url = null;
1091 var _queryParams = new core.Map(); 1039 var _queryParams = new core.Map();
1092 var _uploadMedia = null; 1040 var _uploadMedia = null;
1093 var _uploadOptions = null; 1041 var _uploadOptions = null;
1094 var _downloadOptions = commons.DownloadOptions.Metadata; 1042 var _downloadOptions = commons.DownloadOptions.Metadata;
1095 var _body = null; 1043 var _body = null;
1096 1044
1097 if (path == null) { 1045 if (path == null) {
1098 throw new core.ArgumentError("Parameter path is required."); 1046 throw new core.ArgumentError("Parameter path is required.");
1099 } 1047 }
1100 1048
1101 _url = commons.Escaper.ecapeVariableReserved('$path') + ':undelete'; 1049 _url = commons.Escaper.ecapeVariableReserved('$path') + ':undelete';
1102 1050
1103 var _response = _requester.request(_url, 1051 var _response = _requester.request(_url, "POST",
1104 "POST", 1052 body: _body,
1105 body: _body, 1053 queryParams: _queryParams,
1106 queryParams: _queryParams, 1054 uploadOptions: _uploadOptions,
1107 uploadOptions: _uploadOptions, 1055 uploadMedia: _uploadMedia,
1108 uploadMedia: _uploadMedia, 1056 downloadOptions: _downloadOptions);
1109 downloadOptions: _downloadOptions);
1110 return _response.then((data) => new ContainerVersion.fromJson(data)); 1057 return _response.then((data) => new ContainerVersion.fromJson(data));
1111 } 1058 }
1112 1059
1113 /** 1060 /// Updates a Container Version.
1114 * Updates a Container Version. 1061 ///
1115 * 1062 /// [request] - The metadata request object.
1116 * [request] - The metadata request object. 1063 ///
1117 * 1064 /// Request parameters:
1118 * Request parameters: 1065 ///
1119 * 1066 /// [path] - GTM ContainerVersion's API relative path. Example:
1120 * [path] - GTM ContainerVersion's API relative path. Example: 1067 /// accounts/{account_id}/containers/{container_id}/versions/{version_id}
1121 * accounts/{account_id}/containers/{container_id}/versions/{version_id} 1068 ///
1122 * 1069 /// [fingerprint] - When provided, this fingerprint must match the
1123 * [fingerprint] - When provided, this fingerprint must match the fingerprint 1070 /// fingerprint of the container version in storage.
1124 * of the container version in storage. 1071 ///
1125 * 1072 /// Completes with a [ContainerVersion].
1126 * Completes with a [ContainerVersion]. 1073 ///
1127 * 1074 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1128 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1075 /// an error.
1129 * error. 1076 ///
1130 * 1077 /// If the used [http.Client] completes with an error when making a REST
1131 * If the used [http.Client] completes with an error when making a REST call, 1078 /// call, this method will complete with the same error.
1132 * this method will complete with the same error. 1079 async.Future<ContainerVersion> update(
1133 */ 1080 ContainerVersion request, core.String path,
1134 async.Future<ContainerVersion> update(ContainerVersion request, core.String pa th, {core.String fingerprint}) { 1081 {core.String fingerprint}) {
1135 var _url = null; 1082 var _url = null;
1136 var _queryParams = new core.Map(); 1083 var _queryParams = new core.Map();
1137 var _uploadMedia = null; 1084 var _uploadMedia = null;
1138 var _uploadOptions = null; 1085 var _uploadOptions = null;
1139 var _downloadOptions = commons.DownloadOptions.Metadata; 1086 var _downloadOptions = commons.DownloadOptions.Metadata;
1140 var _body = null; 1087 var _body = null;
1141 1088
1142 if (request != null) { 1089 if (request != null) {
1143 _body = convert.JSON.encode((request).toJson()); 1090 _body = convert.JSON.encode((request).toJson());
1144 } 1091 }
1145 if (path == null) { 1092 if (path == null) {
1146 throw new core.ArgumentError("Parameter path is required."); 1093 throw new core.ArgumentError("Parameter path is required.");
1147 } 1094 }
1148 if (fingerprint != null) { 1095 if (fingerprint != null) {
1149 _queryParams["fingerprint"] = [fingerprint]; 1096 _queryParams["fingerprint"] = [fingerprint];
1150 } 1097 }
1151 1098
1152 _url = commons.Escaper.ecapeVariableReserved('$path'); 1099 _url = commons.Escaper.ecapeVariableReserved('$path');
1153 1100
1154 var _response = _requester.request(_url, 1101 var _response = _requester.request(_url, "PUT",
1155 "PUT", 1102 body: _body,
1156 body: _body, 1103 queryParams: _queryParams,
1157 queryParams: _queryParams, 1104 uploadOptions: _uploadOptions,
1158 uploadOptions: _uploadOptions, 1105 uploadMedia: _uploadMedia,
1159 uploadMedia: _uploadMedia, 1106 downloadOptions: _downloadOptions);
1160 downloadOptions: _downloadOptions);
1161 return _response.then((data) => new ContainerVersion.fromJson(data)); 1107 return _response.then((data) => new ContainerVersion.fromJson(data));
1162 } 1108 }
1163
1164 } 1109 }
1165 1110
1166
1167 class AccountsContainersWorkspacesResourceApi { 1111 class AccountsContainersWorkspacesResourceApi {
1168 final commons.ApiRequester _requester; 1112 final commons.ApiRequester _requester;
1169 1113
1170 AccountsContainersWorkspacesBuiltInVariablesResourceApi get builtInVariables = > new AccountsContainersWorkspacesBuiltInVariablesResourceApi(_requester); 1114 AccountsContainersWorkspacesBuiltInVariablesResourceApi
1171 AccountsContainersWorkspacesFoldersResourceApi get folders => new AccountsCont ainersWorkspacesFoldersResourceApi(_requester); 1115 get builtInVariables =>
1172 AccountsContainersWorkspacesProposalResourceApi get proposal => new AccountsCo ntainersWorkspacesProposalResourceApi(_requester); 1116 new AccountsContainersWorkspacesBuiltInVariablesResourceApi(
1173 AccountsContainersWorkspacesTagsResourceApi get tags => new AccountsContainers WorkspacesTagsResourceApi(_requester); 1117 _requester);
1174 AccountsContainersWorkspacesTriggersResourceApi get triggers => new AccountsCo ntainersWorkspacesTriggersResourceApi(_requester); 1118 AccountsContainersWorkspacesFoldersResourceApi get folders =>
1175 AccountsContainersWorkspacesVariablesResourceApi get variables => new Accounts ContainersWorkspacesVariablesResourceApi(_requester); 1119 new AccountsContainersWorkspacesFoldersResourceApi(_requester);
1120 AccountsContainersWorkspacesProposalResourceApi get proposal =>
1121 new AccountsContainersWorkspacesProposalResourceApi(_requester);
1122 AccountsContainersWorkspacesTagsResourceApi get tags =>
1123 new AccountsContainersWorkspacesTagsResourceApi(_requester);
1124 AccountsContainersWorkspacesTriggersResourceApi get triggers =>
1125 new AccountsContainersWorkspacesTriggersResourceApi(_requester);
1126 AccountsContainersWorkspacesVariablesResourceApi get variables =>
1127 new AccountsContainersWorkspacesVariablesResourceApi(_requester);
1176 1128
1177 AccountsContainersWorkspacesResourceApi(commons.ApiRequester client) : 1129 AccountsContainersWorkspacesResourceApi(commons.ApiRequester client)
1178 _requester = client; 1130 : _requester = client;
1179 1131
1180 /** 1132 /// Creates a Workspace.
1181 * Creates a Workspace. 1133 ///
1182 * 1134 /// [request] - The metadata request object.
1183 * [request] - The metadata request object. 1135 ///
1184 * 1136 /// Request parameters:
1185 * Request parameters: 1137 ///
1186 * 1138 /// [parent] - GTM parent Container's API relative path. Example:
1187 * [parent] - GTM parent Container's API relative path. Example: 1139 /// accounts/{account_id}/containers/{container_id}
1188 * accounts/{account_id}/containers/{container_id} 1140 ///
1189 * 1141 /// Completes with a [Workspace].
1190 * Completes with a [Workspace]. 1142 ///
1191 * 1143 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1192 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1144 /// an error.
1193 * error. 1145 ///
1194 * 1146 /// If the used [http.Client] completes with an error when making a REST
1195 * If the used [http.Client] completes with an error when making a REST call, 1147 /// call, this method will complete with the same error.
1196 * this method will complete with the same error.
1197 */
1198 async.Future<Workspace> create(Workspace request, core.String parent) { 1148 async.Future<Workspace> create(Workspace request, core.String parent) {
1199 var _url = null; 1149 var _url = null;
1200 var _queryParams = new core.Map(); 1150 var _queryParams = new core.Map();
1201 var _uploadMedia = null; 1151 var _uploadMedia = null;
1202 var _uploadOptions = null; 1152 var _uploadOptions = null;
1203 var _downloadOptions = commons.DownloadOptions.Metadata; 1153 var _downloadOptions = commons.DownloadOptions.Metadata;
1204 var _body = null; 1154 var _body = null;
1205 1155
1206 if (request != null) { 1156 if (request != null) {
1207 _body = convert.JSON.encode((request).toJson()); 1157 _body = convert.JSON.encode((request).toJson());
1208 } 1158 }
1209 if (parent == null) { 1159 if (parent == null) {
1210 throw new core.ArgumentError("Parameter parent is required."); 1160 throw new core.ArgumentError("Parameter parent is required.");
1211 } 1161 }
1212 1162
1213 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/workspaces'; 1163 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/workspaces';
1214 1164
1215 var _response = _requester.request(_url, 1165 var _response = _requester.request(_url, "POST",
1216 "POST", 1166 body: _body,
1217 body: _body, 1167 queryParams: _queryParams,
1218 queryParams: _queryParams, 1168 uploadOptions: _uploadOptions,
1219 uploadOptions: _uploadOptions, 1169 uploadMedia: _uploadMedia,
1220 uploadMedia: _uploadMedia, 1170 downloadOptions: _downloadOptions);
1221 downloadOptions: _downloadOptions);
1222 return _response.then((data) => new Workspace.fromJson(data)); 1171 return _response.then((data) => new Workspace.fromJson(data));
1223 } 1172 }
1224 1173
1225 /** 1174 /// Creates a Container Version from the entities present in the workspace,
1226 * Creates a Container Version from the entities present in the workspace, 1175 /// deletes the workspace, and sets the base container version to the newly
1227 * deletes the workspace, and sets the base container version to the newly 1176 /// created version.
1228 * created version. 1177 ///
1229 * 1178 /// [request] - The metadata request object.
1230 * [request] - The metadata request object. 1179 ///
1231 * 1180 /// Request parameters:
1232 * Request parameters: 1181 ///
1233 * 1182 /// [path] - GTM Workspace's API relative path. Example:
1234 * [path] - GTM Workspace's API relative path. Example: 1183 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
1235 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 1184 ///
1236 * 1185 /// Completes with a [CreateContainerVersionResponse].
1237 * Completes with a [CreateContainerVersionResponse]. 1186 ///
1238 * 1187 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1239 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1188 /// an error.
1240 * error. 1189 ///
1241 * 1190 /// If the used [http.Client] completes with an error when making a REST
1242 * If the used [http.Client] completes with an error when making a REST call, 1191 /// call, this method will complete with the same error.
1243 * this method will complete with the same error. 1192 async.Future<CreateContainerVersionResponse> createVersion(
1244 */ 1193 CreateContainerVersionRequestVersionOptions request, core.String path) {
1245 async.Future<CreateContainerVersionResponse> createVersion(CreateContainerVers ionRequestVersionOptions request, core.String path) {
1246 var _url = null; 1194 var _url = null;
1247 var _queryParams = new core.Map(); 1195 var _queryParams = new core.Map();
1248 var _uploadMedia = null; 1196 var _uploadMedia = null;
1249 var _uploadOptions = null; 1197 var _uploadOptions = null;
1250 var _downloadOptions = commons.DownloadOptions.Metadata; 1198 var _downloadOptions = commons.DownloadOptions.Metadata;
1251 var _body = null; 1199 var _body = null;
1252 1200
1253 if (request != null) { 1201 if (request != null) {
1254 _body = convert.JSON.encode((request).toJson()); 1202 _body = convert.JSON.encode((request).toJson());
1255 } 1203 }
1256 if (path == null) { 1204 if (path == null) {
1257 throw new core.ArgumentError("Parameter path is required."); 1205 throw new core.ArgumentError("Parameter path is required.");
1258 } 1206 }
1259 1207
1260 _url = commons.Escaper.ecapeVariableReserved('$path') + ':create_version'; 1208 _url = commons.Escaper.ecapeVariableReserved('$path') + ':create_version';
1261 1209
1262 var _response = _requester.request(_url, 1210 var _response = _requester.request(_url, "POST",
1263 "POST", 1211 body: _body,
1264 body: _body, 1212 queryParams: _queryParams,
1265 queryParams: _queryParams, 1213 uploadOptions: _uploadOptions,
1266 uploadOptions: _uploadOptions, 1214 uploadMedia: _uploadMedia,
1267 uploadMedia: _uploadMedia, 1215 downloadOptions: _downloadOptions);
1268 downloadOptions: _downloadOptions); 1216 return _response
1269 return _response.then((data) => new CreateContainerVersionResponse.fromJson( data)); 1217 .then((data) => new CreateContainerVersionResponse.fromJson(data));
1270 } 1218 }
1271 1219
1272 /** 1220 /// Deletes a Workspace.
1273 * Deletes a Workspace. 1221 ///
1274 * 1222 /// Request parameters:
1275 * Request parameters: 1223 ///
1276 * 1224 /// [path] - GTM Workspace's API relative path. Example:
1277 * [path] - GTM Workspace's API relative path. Example: 1225 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
1278 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 1226 ///
1279 * 1227 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1280 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1228 /// an error.
1281 * error. 1229 ///
1282 * 1230 /// If the used [http.Client] completes with an error when making a REST
1283 * If the used [http.Client] completes with an error when making a REST call, 1231 /// call, this method will complete with the same error.
1284 * this method will complete with the same error.
1285 */
1286 async.Future delete(core.String path) { 1232 async.Future delete(core.String path) {
1287 var _url = null; 1233 var _url = null;
1288 var _queryParams = new core.Map(); 1234 var _queryParams = new core.Map();
1289 var _uploadMedia = null; 1235 var _uploadMedia = null;
1290 var _uploadOptions = null; 1236 var _uploadOptions = null;
1291 var _downloadOptions = commons.DownloadOptions.Metadata; 1237 var _downloadOptions = commons.DownloadOptions.Metadata;
1292 var _body = null; 1238 var _body = null;
1293 1239
1294 if (path == null) { 1240 if (path == null) {
1295 throw new core.ArgumentError("Parameter path is required."); 1241 throw new core.ArgumentError("Parameter path is required.");
1296 } 1242 }
1297 1243
1298 _downloadOptions = null; 1244 _downloadOptions = null;
1299 1245
1300 _url = commons.Escaper.ecapeVariableReserved('$path'); 1246 _url = commons.Escaper.ecapeVariableReserved('$path');
1301 1247
1302 var _response = _requester.request(_url, 1248 var _response = _requester.request(_url, "DELETE",
1303 "DELETE", 1249 body: _body,
1304 body: _body, 1250 queryParams: _queryParams,
1305 queryParams: _queryParams, 1251 uploadOptions: _uploadOptions,
1306 uploadOptions: _uploadOptions, 1252 uploadMedia: _uploadMedia,
1307 uploadMedia: _uploadMedia, 1253 downloadOptions: _downloadOptions);
1308 downloadOptions: _downloadOptions);
1309 return _response.then((data) => null); 1254 return _response.then((data) => null);
1310 } 1255 }
1311 1256
1312 /** 1257 /// Gets a Workspace.
1313 * Gets a Workspace. 1258 ///
1314 * 1259 /// Request parameters:
1315 * Request parameters: 1260 ///
1316 * 1261 /// [path] - GTM Workspace's API relative path. Example:
1317 * [path] - GTM Workspace's API relative path. Example: 1262 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
1318 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 1263 ///
1319 * 1264 /// Completes with a [Workspace].
1320 * Completes with a [Workspace]. 1265 ///
1321 * 1266 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1322 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1267 /// an error.
1323 * error. 1268 ///
1324 * 1269 /// If the used [http.Client] completes with an error when making a REST
1325 * If the used [http.Client] completes with an error when making a REST call, 1270 /// call, this method will complete with the same error.
1326 * this method will complete with the same error.
1327 */
1328 async.Future<Workspace> get(core.String path) { 1271 async.Future<Workspace> get(core.String path) {
1329 var _url = null; 1272 var _url = null;
1330 var _queryParams = new core.Map(); 1273 var _queryParams = new core.Map();
1331 var _uploadMedia = null; 1274 var _uploadMedia = null;
1332 var _uploadOptions = null; 1275 var _uploadOptions = null;
1333 var _downloadOptions = commons.DownloadOptions.Metadata; 1276 var _downloadOptions = commons.DownloadOptions.Metadata;
1334 var _body = null; 1277 var _body = null;
1335 1278
1336 if (path == null) { 1279 if (path == null) {
1337 throw new core.ArgumentError("Parameter path is required."); 1280 throw new core.ArgumentError("Parameter path is required.");
1338 } 1281 }
1339 1282
1340 _url = commons.Escaper.ecapeVariableReserved('$path'); 1283 _url = commons.Escaper.ecapeVariableReserved('$path');
1341 1284
1342 var _response = _requester.request(_url, 1285 var _response = _requester.request(_url, "GET",
1343 "GET", 1286 body: _body,
1344 body: _body, 1287 queryParams: _queryParams,
1345 queryParams: _queryParams, 1288 uploadOptions: _uploadOptions,
1346 uploadOptions: _uploadOptions, 1289 uploadMedia: _uploadMedia,
1347 uploadMedia: _uploadMedia, 1290 downloadOptions: _downloadOptions);
1348 downloadOptions: _downloadOptions);
1349 return _response.then((data) => new Workspace.fromJson(data)); 1291 return _response.then((data) => new Workspace.fromJson(data));
1350 } 1292 }
1351 1293
1352 /** 1294 /// Gets a GTM Workspace Proposal.
1353 * Gets a GTM Workspace Proposal. 1295 ///
1354 * 1296 /// Request parameters:
1355 * Request parameters: 1297 ///
1356 * 1298 /// [path] - GTM workspace proposal's relative path: Example:
1357 * [path] - GTM workspace proposal's relative path: Example: 1299 /// accounts/{aid}/containers/{cid}/workspace/{wid}/workspace_proposal
1358 * accounts/{aid}/containers/{cid}/workspace/{wid}/workspace_proposal 1300 ///
1359 * 1301 /// Completes with a [WorkspaceProposal].
1360 * Completes with a [WorkspaceProposal]. 1302 ///
1361 * 1303 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1362 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1304 /// an error.
1363 * error. 1305 ///
1364 * 1306 /// If the used [http.Client] completes with an error when making a REST
1365 * If the used [http.Client] completes with an error when making a REST call, 1307 /// call, this method will complete with the same error.
1366 * this method will complete with the same error.
1367 */
1368 async.Future<WorkspaceProposal> getProposal(core.String path) { 1308 async.Future<WorkspaceProposal> getProposal(core.String path) {
1369 var _url = null; 1309 var _url = null;
1370 var _queryParams = new core.Map(); 1310 var _queryParams = new core.Map();
1371 var _uploadMedia = null; 1311 var _uploadMedia = null;
1372 var _uploadOptions = null; 1312 var _uploadOptions = null;
1373 var _downloadOptions = commons.DownloadOptions.Metadata; 1313 var _downloadOptions = commons.DownloadOptions.Metadata;
1374 var _body = null; 1314 var _body = null;
1375 1315
1376 if (path == null) { 1316 if (path == null) {
1377 throw new core.ArgumentError("Parameter path is required."); 1317 throw new core.ArgumentError("Parameter path is required.");
1378 } 1318 }
1379 1319
1380 _url = commons.Escaper.ecapeVariableReserved('$path'); 1320 _url = commons.Escaper.ecapeVariableReserved('$path');
1381 1321
1382 var _response = _requester.request(_url, 1322 var _response = _requester.request(_url, "GET",
1383 "GET", 1323 body: _body,
1384 body: _body, 1324 queryParams: _queryParams,
1385 queryParams: _queryParams, 1325 uploadOptions: _uploadOptions,
1386 uploadOptions: _uploadOptions, 1326 uploadMedia: _uploadMedia,
1387 uploadMedia: _uploadMedia, 1327 downloadOptions: _downloadOptions);
1388 downloadOptions: _downloadOptions);
1389 return _response.then((data) => new WorkspaceProposal.fromJson(data)); 1328 return _response.then((data) => new WorkspaceProposal.fromJson(data));
1390 } 1329 }
1391 1330
1392 /** 1331 /// Finds conflicting and modified entities in the workspace.
1393 * Finds conflicting and modified entities in the workspace. 1332 ///
1394 * 1333 /// Request parameters:
1395 * Request parameters: 1334 ///
1396 * 1335 /// [path] - GTM Workspace's API relative path. Example:
1397 * [path] - GTM Workspace's API relative path. Example: 1336 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
1398 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 1337 ///
1399 * 1338 /// Completes with a [GetWorkspaceStatusResponse].
1400 * Completes with a [GetWorkspaceStatusResponse]. 1339 ///
1401 * 1340 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1402 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1341 /// an error.
1403 * error. 1342 ///
1404 * 1343 /// If the used [http.Client] completes with an error when making a REST
1405 * If the used [http.Client] completes with an error when making a REST call, 1344 /// call, this method will complete with the same error.
1406 * this method will complete with the same error.
1407 */
1408 async.Future<GetWorkspaceStatusResponse> getStatus(core.String path) { 1345 async.Future<GetWorkspaceStatusResponse> getStatus(core.String path) {
1409 var _url = null; 1346 var _url = null;
1410 var _queryParams = new core.Map(); 1347 var _queryParams = new core.Map();
1411 var _uploadMedia = null; 1348 var _uploadMedia = null;
1412 var _uploadOptions = null; 1349 var _uploadOptions = null;
1413 var _downloadOptions = commons.DownloadOptions.Metadata; 1350 var _downloadOptions = commons.DownloadOptions.Metadata;
1414 var _body = null; 1351 var _body = null;
1415 1352
1416 if (path == null) { 1353 if (path == null) {
1417 throw new core.ArgumentError("Parameter path is required."); 1354 throw new core.ArgumentError("Parameter path is required.");
1418 } 1355 }
1419 1356
1420 _url = commons.Escaper.ecapeVariableReserved('$path') + '/status'; 1357 _url = commons.Escaper.ecapeVariableReserved('$path') + '/status';
1421 1358
1422 var _response = _requester.request(_url, 1359 var _response = _requester.request(_url, "GET",
1423 "GET", 1360 body: _body,
1424 body: _body, 1361 queryParams: _queryParams,
1425 queryParams: _queryParams, 1362 uploadOptions: _uploadOptions,
1426 uploadOptions: _uploadOptions, 1363 uploadMedia: _uploadMedia,
1427 uploadMedia: _uploadMedia, 1364 downloadOptions: _downloadOptions);
1428 downloadOptions: _downloadOptions); 1365 return _response
1429 return _response.then((data) => new GetWorkspaceStatusResponse.fromJson(data )); 1366 .then((data) => new GetWorkspaceStatusResponse.fromJson(data));
1430 } 1367 }
1431 1368
1432 /** 1369 /// Lists all Workspaces that belong to a GTM Container.
1433 * Lists all Workspaces that belong to a GTM Container. 1370 ///
1434 * 1371 /// Request parameters:
1435 * Request parameters: 1372 ///
1436 * 1373 /// [parent] - GTM parent Container's API relative path. Example:
1437 * [parent] - GTM parent Container's API relative path. Example: 1374 /// accounts/{account_id}/containers/{container_id}
1438 * accounts/{account_id}/containers/{container_id} 1375 ///
1439 * 1376 /// [pageToken] - Continuation token for fetching the next page of results.
1440 * [pageToken] - Continuation token for fetching the next page of results. 1377 ///
1441 * 1378 /// Completes with a [ListWorkspacesResponse].
1442 * Completes with a [ListWorkspacesResponse]. 1379 ///
1443 * 1380 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1444 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1381 /// an error.
1445 * error. 1382 ///
1446 * 1383 /// If the used [http.Client] completes with an error when making a REST
1447 * If the used [http.Client] completes with an error when making a REST call, 1384 /// call, this method will complete with the same error.
1448 * this method will complete with the same error. 1385 async.Future<ListWorkspacesResponse> list(core.String parent,
1449 */ 1386 {core.String pageToken}) {
1450 async.Future<ListWorkspacesResponse> list(core.String parent, {core.String pag eToken}) {
1451 var _url = null; 1387 var _url = null;
1452 var _queryParams = new core.Map(); 1388 var _queryParams = new core.Map();
1453 var _uploadMedia = null; 1389 var _uploadMedia = null;
1454 var _uploadOptions = null; 1390 var _uploadOptions = null;
1455 var _downloadOptions = commons.DownloadOptions.Metadata; 1391 var _downloadOptions = commons.DownloadOptions.Metadata;
1456 var _body = null; 1392 var _body = null;
1457 1393
1458 if (parent == null) { 1394 if (parent == null) {
1459 throw new core.ArgumentError("Parameter parent is required."); 1395 throw new core.ArgumentError("Parameter parent is required.");
1460 } 1396 }
1461 if (pageToken != null) { 1397 if (pageToken != null) {
1462 _queryParams["pageToken"] = [pageToken]; 1398 _queryParams["pageToken"] = [pageToken];
1463 } 1399 }
1464 1400
1465 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/workspaces'; 1401 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/workspaces';
1466 1402
1467 var _response = _requester.request(_url, 1403 var _response = _requester.request(_url, "GET",
1468 "GET", 1404 body: _body,
1469 body: _body, 1405 queryParams: _queryParams,
1470 queryParams: _queryParams, 1406 uploadOptions: _uploadOptions,
1471 uploadOptions: _uploadOptions, 1407 uploadMedia: _uploadMedia,
1472 uploadMedia: _uploadMedia, 1408 downloadOptions: _downloadOptions);
1473 downloadOptions: _downloadOptions);
1474 return _response.then((data) => new ListWorkspacesResponse.fromJson(data)); 1409 return _response.then((data) => new ListWorkspacesResponse.fromJson(data));
1475 } 1410 }
1476 1411
1477 /** 1412 /// Quick previews a workspace by creating a fake container version from all
1478 * Quick previews a workspace by creating a fake container version from all 1413 /// entities in the provided workspace.
1479 * entities in the provided workspace. 1414 ///
1480 * 1415 /// Request parameters:
1481 * Request parameters: 1416 ///
1482 * 1417 /// [path] - GTM Workspace's API relative path. Example:
1483 * [path] - GTM Workspace's API relative path. Example: 1418 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
1484 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 1419 ///
1485 * 1420 /// Completes with a [QuickPreviewResponse].
1486 * Completes with a [QuickPreviewResponse]. 1421 ///
1487 * 1422 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1488 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1423 /// an error.
1489 * error. 1424 ///
1490 * 1425 /// If the used [http.Client] completes with an error when making a REST
1491 * If the used [http.Client] completes with an error when making a REST call, 1426 /// call, this method will complete with the same error.
1492 * this method will complete with the same error.
1493 */
1494 async.Future<QuickPreviewResponse> quickPreview(core.String path) { 1427 async.Future<QuickPreviewResponse> quickPreview(core.String path) {
1495 var _url = null; 1428 var _url = null;
1496 var _queryParams = new core.Map(); 1429 var _queryParams = new core.Map();
1497 var _uploadMedia = null; 1430 var _uploadMedia = null;
1498 var _uploadOptions = null; 1431 var _uploadOptions = null;
1499 var _downloadOptions = commons.DownloadOptions.Metadata; 1432 var _downloadOptions = commons.DownloadOptions.Metadata;
1500 var _body = null; 1433 var _body = null;
1501 1434
1502 if (path == null) { 1435 if (path == null) {
1503 throw new core.ArgumentError("Parameter path is required."); 1436 throw new core.ArgumentError("Parameter path is required.");
1504 } 1437 }
1505 1438
1506 _url = commons.Escaper.ecapeVariableReserved('$path') + ':quick_preview'; 1439 _url = commons.Escaper.ecapeVariableReserved('$path') + ':quick_preview';
1507 1440
1508 var _response = _requester.request(_url, 1441 var _response = _requester.request(_url, "POST",
1509 "POST", 1442 body: _body,
1510 body: _body, 1443 queryParams: _queryParams,
1511 queryParams: _queryParams, 1444 uploadOptions: _uploadOptions,
1512 uploadOptions: _uploadOptions, 1445 uploadMedia: _uploadMedia,
1513 uploadMedia: _uploadMedia, 1446 downloadOptions: _downloadOptions);
1514 downloadOptions: _downloadOptions);
1515 return _response.then((data) => new QuickPreviewResponse.fromJson(data)); 1447 return _response.then((data) => new QuickPreviewResponse.fromJson(data));
1516 } 1448 }
1517 1449
1518 /** 1450 /// Resolves a merge conflict for a workspace entity by updating it to the
1519 * Resolves a merge conflict for a workspace entity by updating it to the 1451 /// resolved entity passed in the request.
1520 * resolved entity passed in the request. 1452 ///
1521 * 1453 /// [request] - The metadata request object.
1522 * [request] - The metadata request object. 1454 ///
1523 * 1455 /// Request parameters:
1524 * Request parameters: 1456 ///
1525 * 1457 /// [path] - GTM Workspace's API relative path. Example:
1526 * [path] - GTM Workspace's API relative path. Example: 1458 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
1527 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 1459 ///
1528 * 1460 /// [fingerprint] - When provided, this fingerprint must match the
1529 * [fingerprint] - When provided, this fingerprint must match the fingerprint 1461 /// fingerprint of the entity_in_workspace in the merge conflict.
1530 * of the entity_in_workspace in the merge conflict. 1462 ///
1531 * 1463 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1532 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1464 /// an error.
1533 * error. 1465 ///
1534 * 1466 /// If the used [http.Client] completes with an error when making a REST
1535 * If the used [http.Client] completes with an error when making a REST call, 1467 /// call, this method will complete with the same error.
1536 * this method will complete with the same error. 1468 async.Future resolveConflict(Entity request, core.String path,
1537 */ 1469 {core.String fingerprint}) {
1538 async.Future resolveConflict(Entity request, core.String path, {core.String fi ngerprint}) {
1539 var _url = null; 1470 var _url = null;
1540 var _queryParams = new core.Map(); 1471 var _queryParams = new core.Map();
1541 var _uploadMedia = null; 1472 var _uploadMedia = null;
1542 var _uploadOptions = null; 1473 var _uploadOptions = null;
1543 var _downloadOptions = commons.DownloadOptions.Metadata; 1474 var _downloadOptions = commons.DownloadOptions.Metadata;
1544 var _body = null; 1475 var _body = null;
1545 1476
1546 if (request != null) { 1477 if (request != null) {
1547 _body = convert.JSON.encode((request).toJson()); 1478 _body = convert.JSON.encode((request).toJson());
1548 } 1479 }
1549 if (path == null) { 1480 if (path == null) {
1550 throw new core.ArgumentError("Parameter path is required."); 1481 throw new core.ArgumentError("Parameter path is required.");
1551 } 1482 }
1552 if (fingerprint != null) { 1483 if (fingerprint != null) {
1553 _queryParams["fingerprint"] = [fingerprint]; 1484 _queryParams["fingerprint"] = [fingerprint];
1554 } 1485 }
1555 1486
1556 _downloadOptions = null; 1487 _downloadOptions = null;
1557 1488
1558 _url = commons.Escaper.ecapeVariableReserved('$path') + ':resolve_conflict'; 1489 _url = commons.Escaper.ecapeVariableReserved('$path') + ':resolve_conflict';
1559 1490
1560 var _response = _requester.request(_url, 1491 var _response = _requester.request(_url, "POST",
1561 "POST", 1492 body: _body,
1562 body: _body, 1493 queryParams: _queryParams,
1563 queryParams: _queryParams, 1494 uploadOptions: _uploadOptions,
1564 uploadOptions: _uploadOptions, 1495 uploadMedia: _uploadMedia,
1565 uploadMedia: _uploadMedia, 1496 downloadOptions: _downloadOptions);
1566 downloadOptions: _downloadOptions);
1567 return _response.then((data) => null); 1497 return _response.then((data) => null);
1568 } 1498 }
1569 1499
1570 /** 1500 /// Syncs a workspace to the latest container version by updating all
1571 * Syncs a workspace to the latest container version by updating all 1501 /// unmodified workspace entities and displaying conflicts for modified
1572 * unmodified workspace entities and displaying conflicts for modified 1502 /// entities.
1573 * entities. 1503 ///
1574 * 1504 /// Request parameters:
1575 * Request parameters: 1505 ///
1576 * 1506 /// [path] - GTM Workspace's API relative path. Example:
1577 * [path] - GTM Workspace's API relative path. Example: 1507 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
1578 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 1508 ///
1579 * 1509 /// Completes with a [SyncWorkspaceResponse].
1580 * Completes with a [SyncWorkspaceResponse]. 1510 ///
1581 * 1511 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1582 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1512 /// an error.
1583 * error. 1513 ///
1584 * 1514 /// If the used [http.Client] completes with an error when making a REST
1585 * If the used [http.Client] completes with an error when making a REST call, 1515 /// call, this method will complete with the same error.
1586 * this method will complete with the same error.
1587 */
1588 async.Future<SyncWorkspaceResponse> sync(core.String path) { 1516 async.Future<SyncWorkspaceResponse> sync(core.String path) {
1589 var _url = null; 1517 var _url = null;
1590 var _queryParams = new core.Map(); 1518 var _queryParams = new core.Map();
1591 var _uploadMedia = null; 1519 var _uploadMedia = null;
1592 var _uploadOptions = null; 1520 var _uploadOptions = null;
1593 var _downloadOptions = commons.DownloadOptions.Metadata; 1521 var _downloadOptions = commons.DownloadOptions.Metadata;
1594 var _body = null; 1522 var _body = null;
1595 1523
1596 if (path == null) { 1524 if (path == null) {
1597 throw new core.ArgumentError("Parameter path is required."); 1525 throw new core.ArgumentError("Parameter path is required.");
1598 } 1526 }
1599 1527
1600 _url = commons.Escaper.ecapeVariableReserved('$path') + ':sync'; 1528 _url = commons.Escaper.ecapeVariableReserved('$path') + ':sync';
1601 1529
1602 var _response = _requester.request(_url, 1530 var _response = _requester.request(_url, "POST",
1603 "POST", 1531 body: _body,
1604 body: _body, 1532 queryParams: _queryParams,
1605 queryParams: _queryParams, 1533 uploadOptions: _uploadOptions,
1606 uploadOptions: _uploadOptions, 1534 uploadMedia: _uploadMedia,
1607 uploadMedia: _uploadMedia, 1535 downloadOptions: _downloadOptions);
1608 downloadOptions: _downloadOptions);
1609 return _response.then((data) => new SyncWorkspaceResponse.fromJson(data)); 1536 return _response.then((data) => new SyncWorkspaceResponse.fromJson(data));
1610 } 1537 }
1611 1538
1612 /** 1539 /// Updates a Workspace.
1613 * Updates a Workspace. 1540 ///
1614 * 1541 /// [request] - The metadata request object.
1615 * [request] - The metadata request object. 1542 ///
1616 * 1543 /// Request parameters:
1617 * Request parameters: 1544 ///
1618 * 1545 /// [path] - GTM Workspace's API relative path. Example:
1619 * [path] - GTM Workspace's API relative path. Example: 1546 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
1620 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 1547 ///
1621 * 1548 /// [fingerprint] - When provided, this fingerprint must match the
1622 * [fingerprint] - When provided, this fingerprint must match the fingerprint 1549 /// fingerprint of the workspace in storage.
1623 * of the workspace in storage. 1550 ///
1624 * 1551 /// Completes with a [Workspace].
1625 * Completes with a [Workspace]. 1552 ///
1626 * 1553 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1627 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1554 /// an error.
1628 * error. 1555 ///
1629 * 1556 /// If the used [http.Client] completes with an error when making a REST
1630 * If the used [http.Client] completes with an error when making a REST call, 1557 /// call, this method will complete with the same error.
1631 * this method will complete with the same error. 1558 async.Future<Workspace> update(Workspace request, core.String path,
1632 */ 1559 {core.String fingerprint}) {
1633 async.Future<Workspace> update(Workspace request, core.String path, {core.Stri ng fingerprint}) {
1634 var _url = null; 1560 var _url = null;
1635 var _queryParams = new core.Map(); 1561 var _queryParams = new core.Map();
1636 var _uploadMedia = null; 1562 var _uploadMedia = null;
1637 var _uploadOptions = null; 1563 var _uploadOptions = null;
1638 var _downloadOptions = commons.DownloadOptions.Metadata; 1564 var _downloadOptions = commons.DownloadOptions.Metadata;
1639 var _body = null; 1565 var _body = null;
1640 1566
1641 if (request != null) { 1567 if (request != null) {
1642 _body = convert.JSON.encode((request).toJson()); 1568 _body = convert.JSON.encode((request).toJson());
1643 } 1569 }
1644 if (path == null) { 1570 if (path == null) {
1645 throw new core.ArgumentError("Parameter path is required."); 1571 throw new core.ArgumentError("Parameter path is required.");
1646 } 1572 }
1647 if (fingerprint != null) { 1573 if (fingerprint != null) {
1648 _queryParams["fingerprint"] = [fingerprint]; 1574 _queryParams["fingerprint"] = [fingerprint];
1649 } 1575 }
1650 1576
1651 _url = commons.Escaper.ecapeVariableReserved('$path'); 1577 _url = commons.Escaper.ecapeVariableReserved('$path');
1652 1578
1653 var _response = _requester.request(_url, 1579 var _response = _requester.request(_url, "PUT",
1654 "PUT", 1580 body: _body,
1655 body: _body, 1581 queryParams: _queryParams,
1656 queryParams: _queryParams, 1582 uploadOptions: _uploadOptions,
1657 uploadOptions: _uploadOptions, 1583 uploadMedia: _uploadMedia,
1658 uploadMedia: _uploadMedia, 1584 downloadOptions: _downloadOptions);
1659 downloadOptions: _downloadOptions);
1660 return _response.then((data) => new Workspace.fromJson(data)); 1585 return _response.then((data) => new Workspace.fromJson(data));
1661 } 1586 }
1662 1587
1663 /** 1588 /// Updates a GTM Workspace Proposal.
1664 * Updates a GTM Workspace Proposal. 1589 ///
1665 * 1590 /// [request] - The metadata request object.
1666 * [request] - The metadata request object. 1591 ///
1667 * 1592 /// Request parameters:
1668 * Request parameters: 1593 ///
1669 * 1594 /// [path] - GTM workspace proposal's relative path: Example:
1670 * [path] - GTM workspace proposal's relative path: Example: 1595 /// accounts/{aid}/containers/{cid}/workspace/{wid}/workspace_proposal
1671 * accounts/{aid}/containers/{cid}/workspace/{wid}/workspace_proposal 1596 ///
1672 * 1597 /// Completes with a [WorkspaceProposal].
1673 * Completes with a [WorkspaceProposal]. 1598 ///
1674 * 1599 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1675 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1600 /// an error.
1676 * error. 1601 ///
1677 * 1602 /// If the used [http.Client] completes with an error when making a REST
1678 * If the used [http.Client] completes with an error when making a REST call, 1603 /// call, this method will complete with the same error.
1679 * this method will complete with the same error. 1604 async.Future<WorkspaceProposal> updateProposal(
1680 */ 1605 UpdateWorkspaceProposalRequest request, core.String path) {
1681 async.Future<WorkspaceProposal> updateProposal(UpdateWorkspaceProposalRequest request, core.String path) {
1682 var _url = null; 1606 var _url = null;
1683 var _queryParams = new core.Map(); 1607 var _queryParams = new core.Map();
1684 var _uploadMedia = null; 1608 var _uploadMedia = null;
1685 var _uploadOptions = null; 1609 var _uploadOptions = null;
1686 var _downloadOptions = commons.DownloadOptions.Metadata; 1610 var _downloadOptions = commons.DownloadOptions.Metadata;
1687 var _body = null; 1611 var _body = null;
1688 1612
1689 if (request != null) { 1613 if (request != null) {
1690 _body = convert.JSON.encode((request).toJson()); 1614 _body = convert.JSON.encode((request).toJson());
1691 } 1615 }
1692 if (path == null) { 1616 if (path == null) {
1693 throw new core.ArgumentError("Parameter path is required."); 1617 throw new core.ArgumentError("Parameter path is required.");
1694 } 1618 }
1695 1619
1696 _url = commons.Escaper.ecapeVariableReserved('$path'); 1620 _url = commons.Escaper.ecapeVariableReserved('$path');
1697 1621
1698 var _response = _requester.request(_url, 1622 var _response = _requester.request(_url, "PUT",
1699 "PUT", 1623 body: _body,
1700 body: _body, 1624 queryParams: _queryParams,
1701 queryParams: _queryParams, 1625 uploadOptions: _uploadOptions,
1702 uploadOptions: _uploadOptions, 1626 uploadMedia: _uploadMedia,
1703 uploadMedia: _uploadMedia, 1627 downloadOptions: _downloadOptions);
1704 downloadOptions: _downloadOptions);
1705 return _response.then((data) => new WorkspaceProposal.fromJson(data)); 1628 return _response.then((data) => new WorkspaceProposal.fromJson(data));
1706 } 1629 }
1707
1708 } 1630 }
1709 1631
1710
1711 class AccountsContainersWorkspacesBuiltInVariablesResourceApi { 1632 class AccountsContainersWorkspacesBuiltInVariablesResourceApi {
1712 final commons.ApiRequester _requester; 1633 final commons.ApiRequester _requester;
1713 1634
1714 AccountsContainersWorkspacesBuiltInVariablesResourceApi(commons.ApiRequester c lient) : 1635 AccountsContainersWorkspacesBuiltInVariablesResourceApi(
1715 _requester = client; 1636 commons.ApiRequester client)
1637 : _requester = client;
1716 1638
1717 /** 1639 /// Creates one or more GTM Built-In Variables.
1718 * Creates one or more GTM Built-In Variables. 1640 ///
1719 * 1641 /// Request parameters:
1720 * Request parameters: 1642 ///
1721 * 1643 /// [parent] - GTM Workspace's API relative path. Example:
1722 * [parent] - GTM Workspace's API relative path. Example: 1644 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
1723 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 1645 ///
1724 * 1646 /// [type] - The types of built-in variables to enable.
1725 * [type] - The types of built-in variables to enable. 1647 ///
1726 * 1648 /// Completes with a [CreateBuiltInVariableResponse].
1727 * Completes with a [CreateBuiltInVariableResponse]. 1649 ///
1728 * 1650 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1729 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1651 /// an error.
1730 * error. 1652 ///
1731 * 1653 /// If the used [http.Client] completes with an error when making a REST
1732 * If the used [http.Client] completes with an error when making a REST call, 1654 /// call, this method will complete with the same error.
1733 * this method will complete with the same error. 1655 async.Future<CreateBuiltInVariableResponse> create(core.String parent,
1734 */ 1656 {core.List<core.String> type}) {
1735 async.Future<CreateBuiltInVariableResponse> create(core.String parent, {core.L ist<core.String> type}) {
1736 var _url = null; 1657 var _url = null;
1737 var _queryParams = new core.Map(); 1658 var _queryParams = new core.Map();
1738 var _uploadMedia = null; 1659 var _uploadMedia = null;
1739 var _uploadOptions = null; 1660 var _uploadOptions = null;
1740 var _downloadOptions = commons.DownloadOptions.Metadata; 1661 var _downloadOptions = commons.DownloadOptions.Metadata;
1741 var _body = null; 1662 var _body = null;
1742 1663
1743 if (parent == null) { 1664 if (parent == null) {
1744 throw new core.ArgumentError("Parameter parent is required."); 1665 throw new core.ArgumentError("Parameter parent is required.");
1745 } 1666 }
1746 if (type != null) { 1667 if (type != null) {
1747 _queryParams["type"] = type; 1668 _queryParams["type"] = type;
1748 } 1669 }
1749 1670
1750 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/built_in_variabl es'; 1671 _url = commons.Escaper.ecapeVariableReserved('$parent') +
1672 '/built_in_variables';
1751 1673
1752 var _response = _requester.request(_url, 1674 var _response = _requester.request(_url, "POST",
1753 "POST", 1675 body: _body,
1754 body: _body, 1676 queryParams: _queryParams,
1755 queryParams: _queryParams, 1677 uploadOptions: _uploadOptions,
1756 uploadOptions: _uploadOptions, 1678 uploadMedia: _uploadMedia,
1757 uploadMedia: _uploadMedia, 1679 downloadOptions: _downloadOptions);
1758 downloadOptions: _downloadOptions); 1680 return _response
1759 return _response.then((data) => new CreateBuiltInVariableResponse.fromJson(d ata)); 1681 .then((data) => new CreateBuiltInVariableResponse.fromJson(data));
1760 } 1682 }
1761 1683
1762 /** 1684 /// Deletes one or more GTM Built-In Variables.
1763 * Deletes one or more GTM Built-In Variables. 1685 ///
1764 * 1686 /// Request parameters:
1765 * Request parameters: 1687 ///
1766 * 1688 /// [path] - GTM BuiltInVariable's API relative path. Example:
1767 * [path] - GTM BuiltInVariable's API relative path. Example: 1689 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ built_in_variables
1768 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/b uilt_in_variables 1690 ///
1769 * 1691 /// [type] - The types of built-in variables to delete.
1770 * [type] - The types of built-in variables to delete. 1692 ///
1771 * 1693 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1772 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1694 /// an error.
1773 * error. 1695 ///
1774 * 1696 /// If the used [http.Client] completes with an error when making a REST
1775 * If the used [http.Client] completes with an error when making a REST call, 1697 /// call, this method will complete with the same error.
1776 * this method will complete with the same error.
1777 */
1778 async.Future delete(core.String path, {core.List<core.String> type}) { 1698 async.Future delete(core.String path, {core.List<core.String> type}) {
1779 var _url = null; 1699 var _url = null;
1780 var _queryParams = new core.Map(); 1700 var _queryParams = new core.Map();
1781 var _uploadMedia = null; 1701 var _uploadMedia = null;
1782 var _uploadOptions = null; 1702 var _uploadOptions = null;
1783 var _downloadOptions = commons.DownloadOptions.Metadata; 1703 var _downloadOptions = commons.DownloadOptions.Metadata;
1784 var _body = null; 1704 var _body = null;
1785 1705
1786 if (path == null) { 1706 if (path == null) {
1787 throw new core.ArgumentError("Parameter path is required."); 1707 throw new core.ArgumentError("Parameter path is required.");
1788 } 1708 }
1789 if (type != null) { 1709 if (type != null) {
1790 _queryParams["type"] = type; 1710 _queryParams["type"] = type;
1791 } 1711 }
1792 1712
1793 _downloadOptions = null; 1713 _downloadOptions = null;
1794 1714
1795 _url = commons.Escaper.ecapeVariableReserved('$path'); 1715 _url = commons.Escaper.ecapeVariableReserved('$path');
1796 1716
1797 var _response = _requester.request(_url, 1717 var _response = _requester.request(_url, "DELETE",
1798 "DELETE", 1718 body: _body,
1799 body: _body, 1719 queryParams: _queryParams,
1800 queryParams: _queryParams, 1720 uploadOptions: _uploadOptions,
1801 uploadOptions: _uploadOptions, 1721 uploadMedia: _uploadMedia,
1802 uploadMedia: _uploadMedia, 1722 downloadOptions: _downloadOptions);
1803 downloadOptions: _downloadOptions);
1804 return _response.then((data) => null); 1723 return _response.then((data) => null);
1805 } 1724 }
1806 1725
1807 /** 1726 /// Lists all the enabled Built-In Variables of a GTM Container.
1808 * Lists all the enabled Built-In Variables of a GTM Container. 1727 ///
1809 * 1728 /// Request parameters:
1810 * Request parameters: 1729 ///
1811 * 1730 /// [parent] - GTM Workspace's API relative path. Example:
1812 * [parent] - GTM Workspace's API relative path. Example: 1731 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
1813 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 1732 ///
1814 * 1733 /// [pageToken] - Continuation token for fetching the next page of results.
1815 * [pageToken] - Continuation token for fetching the next page of results. 1734 ///
1816 * 1735 /// Completes with a [ListEnabledBuiltInVariablesResponse].
1817 * Completes with a [ListEnabledBuiltInVariablesResponse]. 1736 ///
1818 * 1737 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1819 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1738 /// an error.
1820 * error. 1739 ///
1821 * 1740 /// If the used [http.Client] completes with an error when making a REST
1822 * If the used [http.Client] completes with an error when making a REST call, 1741 /// call, this method will complete with the same error.
1823 * this method will complete with the same error. 1742 async.Future<ListEnabledBuiltInVariablesResponse> list(core.String parent,
1824 */ 1743 {core.String pageToken}) {
1825 async.Future<ListEnabledBuiltInVariablesResponse> list(core.String parent, {co re.String pageToken}) {
1826 var _url = null; 1744 var _url = null;
1827 var _queryParams = new core.Map(); 1745 var _queryParams = new core.Map();
1828 var _uploadMedia = null; 1746 var _uploadMedia = null;
1829 var _uploadOptions = null; 1747 var _uploadOptions = null;
1830 var _downloadOptions = commons.DownloadOptions.Metadata; 1748 var _downloadOptions = commons.DownloadOptions.Metadata;
1831 var _body = null; 1749 var _body = null;
1832 1750
1833 if (parent == null) { 1751 if (parent == null) {
1834 throw new core.ArgumentError("Parameter parent is required."); 1752 throw new core.ArgumentError("Parameter parent is required.");
1835 } 1753 }
1836 if (pageToken != null) { 1754 if (pageToken != null) {
1837 _queryParams["pageToken"] = [pageToken]; 1755 _queryParams["pageToken"] = [pageToken];
1838 } 1756 }
1839 1757
1840 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/built_in_variabl es'; 1758 _url = commons.Escaper.ecapeVariableReserved('$parent') +
1759 '/built_in_variables';
1841 1760
1842 var _response = _requester.request(_url, 1761 var _response = _requester.request(_url, "GET",
1843 "GET", 1762 body: _body,
1844 body: _body, 1763 queryParams: _queryParams,
1845 queryParams: _queryParams, 1764 uploadOptions: _uploadOptions,
1846 uploadOptions: _uploadOptions, 1765 uploadMedia: _uploadMedia,
1847 uploadMedia: _uploadMedia, 1766 downloadOptions: _downloadOptions);
1848 downloadOptions: _downloadOptions); 1767 return _response
1849 return _response.then((data) => new ListEnabledBuiltInVariablesResponse.from Json(data)); 1768 .then((data) => new ListEnabledBuiltInVariablesResponse.fromJson(data));
1850 } 1769 }
1851 1770
1852 /** 1771 /// Reverts changes to a GTM Built-In Variables in a GTM Workspace.
1853 * Reverts changes to a GTM Built-In Variables in a GTM Workspace. 1772 ///
1854 * 1773 /// Request parameters:
1855 * Request parameters: 1774 ///
1856 * 1775 /// [path] - GTM BuiltInVariable's API relative path. Example:
1857 * [path] - GTM BuiltInVariable's API relative path. Example: 1776 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ built_in_variables
1858 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/b uilt_in_variables 1777 ///
1859 * 1778 /// [type] - The type of built-in variable to revert.
1860 * [type] - The type of built-in variable to revert. 1779 /// Possible string values are:
1861 * Possible string values are: 1780 /// - "advertiserId"
1862 * - "advertiserId" 1781 /// - "advertisingTrackingEnabled"
1863 * - "advertisingTrackingEnabled" 1782 /// - "ampBrowserLanguage"
1864 * - "ampBrowserLanguage" 1783 /// - "ampCanonicalHost"
1865 * - "ampCanonicalHost" 1784 /// - "ampCanonicalPath"
1866 * - "ampCanonicalPath" 1785 /// - "ampCanonicalUrl"
1867 * - "ampCanonicalUrl" 1786 /// - "ampClientId"
1868 * - "ampClientId" 1787 /// - "ampClientMaxScrollX"
1869 * - "ampClientMaxScrollX" 1788 /// - "ampClientMaxScrollY"
1870 * - "ampClientMaxScrollY" 1789 /// - "ampClientScreenHeight"
1871 * - "ampClientScreenHeight" 1790 /// - "ampClientScreenWidth"
1872 * - "ampClientScreenWidth" 1791 /// - "ampClientScrollX"
1873 * - "ampClientScrollX" 1792 /// - "ampClientScrollY"
1874 * - "ampClientScrollY" 1793 /// - "ampClientTimestamp"
1875 * - "ampClientTimestamp" 1794 /// - "ampClientTimezone"
1876 * - "ampClientTimezone" 1795 /// - "ampGtmEvent"
1877 * - "ampGtmEvent" 1796 /// - "ampPageDownloadTime"
1878 * - "ampPageDownloadTime" 1797 /// - "ampPageLoadTime"
1879 * - "ampPageLoadTime" 1798 /// - "ampPageViewId"
1880 * - "ampPageViewId" 1799 /// - "ampReferrer"
1881 * - "ampReferrer" 1800 /// - "ampTitle"
1882 * - "ampTitle" 1801 /// - "ampTotalEngagedTime"
1883 * - "ampTotalEngagedTime" 1802 /// - "appId"
1884 * - "appId" 1803 /// - "appName"
1885 * - "appName" 1804 /// - "appVersionCode"
1886 * - "appVersionCode" 1805 /// - "appVersionName"
1887 * - "appVersionName" 1806 /// - "builtInVariableTypeUnspecified"
1888 * - "builtInVariableTypeUnspecified" 1807 /// - "clickClasses"
1889 * - "clickClasses" 1808 /// - "clickElement"
1890 * - "clickElement" 1809 /// - "clickId"
1891 * - "clickId" 1810 /// - "clickTarget"
1892 * - "clickTarget" 1811 /// - "clickText"
1893 * - "clickText" 1812 /// - "clickUrl"
1894 * - "clickUrl" 1813 /// - "containerId"
1895 * - "containerId" 1814 /// - "containerVersion"
1896 * - "containerVersion" 1815 /// - "debugMode"
1897 * - "debugMode" 1816 /// - "deviceName"
1898 * - "deviceName" 1817 /// - "environmentName"
1899 * - "environmentName" 1818 /// - "errorLine"
1900 * - "errorLine" 1819 /// - "errorMessage"
1901 * - "errorMessage" 1820 /// - "errorUrl"
1902 * - "errorUrl" 1821 /// - "event"
1903 * - "event" 1822 /// - "eventName"
1904 * - "eventName" 1823 /// - "firebaseEventParameterCampaign"
1905 * - "firebaseEventParameterCampaign" 1824 /// - "firebaseEventParameterCampaignAclid"
1906 * - "firebaseEventParameterCampaignAclid" 1825 /// - "firebaseEventParameterCampaignAnid"
1907 * - "firebaseEventParameterCampaignAnid" 1826 /// - "firebaseEventParameterCampaignClickTimestamp"
1908 * - "firebaseEventParameterCampaignClickTimestamp" 1827 /// - "firebaseEventParameterCampaignContent"
1909 * - "firebaseEventParameterCampaignContent" 1828 /// - "firebaseEventParameterCampaignCp1"
1910 * - "firebaseEventParameterCampaignCp1" 1829 /// - "firebaseEventParameterCampaignGclid"
1911 * - "firebaseEventParameterCampaignGclid" 1830 /// - "firebaseEventParameterCampaignSource"
1912 * - "firebaseEventParameterCampaignSource" 1831 /// - "firebaseEventParameterCampaignTerm"
1913 * - "firebaseEventParameterCampaignTerm" 1832 /// - "firebaseEventParameterCurrency"
1914 * - "firebaseEventParameterCurrency" 1833 /// - "firebaseEventParameterDynamicLinkAcceptTime"
1915 * - "firebaseEventParameterDynamicLinkAcceptTime" 1834 /// - "firebaseEventParameterDynamicLinkLinkid"
1916 * - "firebaseEventParameterDynamicLinkLinkid" 1835 /// - "firebaseEventParameterNotificationMessageDeviceTime"
1917 * - "firebaseEventParameterNotificationMessageDeviceTime" 1836 /// - "firebaseEventParameterNotificationMessageId"
1918 * - "firebaseEventParameterNotificationMessageId" 1837 /// - "firebaseEventParameterNotificationMessageName"
1919 * - "firebaseEventParameterNotificationMessageName" 1838 /// - "firebaseEventParameterNotificationMessageTime"
1920 * - "firebaseEventParameterNotificationMessageTime" 1839 /// - "firebaseEventParameterNotificationTopic"
1921 * - "firebaseEventParameterNotificationTopic" 1840 /// - "firebaseEventParameterPreviousAppVersion"
1922 * - "firebaseEventParameterPreviousAppVersion" 1841 /// - "firebaseEventParameterPreviousOsVersion"
1923 * - "firebaseEventParameterPreviousOsVersion" 1842 /// - "firebaseEventParameterPrice"
1924 * - "firebaseEventParameterPrice" 1843 /// - "firebaseEventParameterProductId"
1925 * - "firebaseEventParameterProductId" 1844 /// - "firebaseEventParameterQuantity"
1926 * - "firebaseEventParameterQuantity" 1845 /// - "firebaseEventParameterValue"
1927 * - "firebaseEventParameterValue" 1846 /// - "formClasses"
1928 * - "formClasses" 1847 /// - "formElement"
1929 * - "formElement" 1848 /// - "formId"
1930 * - "formId" 1849 /// - "formTarget"
1931 * - "formTarget" 1850 /// - "formText"
1932 * - "formText" 1851 /// - "formUrl"
1933 * - "formUrl" 1852 /// - "historySource"
1934 * - "historySource" 1853 /// - "htmlId"
1935 * - "htmlId" 1854 /// - "language"
1936 * - "language" 1855 /// - "newHistoryFragment"
1937 * - "newHistoryFragment" 1856 /// - "newHistoryState"
1938 * - "newHistoryState" 1857 /// - "oldHistoryFragment"
1939 * - "oldHistoryFragment" 1858 /// - "oldHistoryState"
1940 * - "oldHistoryState" 1859 /// - "osVersion"
1941 * - "osVersion" 1860 /// - "pageHostname"
1942 * - "pageHostname" 1861 /// - "pagePath"
1943 * - "pagePath" 1862 /// - "pageUrl"
1944 * - "pageUrl" 1863 /// - "platform"
1945 * - "platform" 1864 /// - "randomNumber"
1946 * - "randomNumber" 1865 /// - "referrer"
1947 * - "referrer" 1866 /// - "resolution"
1948 * - "resolution" 1867 /// - "sdkVersion"
1949 * - "sdkVersion" 1868 ///
1950 * 1869 /// Completes with a [RevertBuiltInVariableResponse].
1951 * Completes with a [RevertBuiltInVariableResponse]. 1870 ///
1952 * 1871 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1953 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1872 /// an error.
1954 * error. 1873 ///
1955 * 1874 /// If the used [http.Client] completes with an error when making a REST
1956 * If the used [http.Client] completes with an error when making a REST call, 1875 /// call, this method will complete with the same error.
1957 * this method will complete with the same error. 1876 async.Future<RevertBuiltInVariableResponse> revert(core.String path,
1958 */ 1877 {core.String type}) {
1959 async.Future<RevertBuiltInVariableResponse> revert(core.String path, {core.Str ing type}) {
1960 var _url = null; 1878 var _url = null;
1961 var _queryParams = new core.Map(); 1879 var _queryParams = new core.Map();
1962 var _uploadMedia = null; 1880 var _uploadMedia = null;
1963 var _uploadOptions = null; 1881 var _uploadOptions = null;
1964 var _downloadOptions = commons.DownloadOptions.Metadata; 1882 var _downloadOptions = commons.DownloadOptions.Metadata;
1965 var _body = null; 1883 var _body = null;
1966 1884
1967 if (path == null) { 1885 if (path == null) {
1968 throw new core.ArgumentError("Parameter path is required."); 1886 throw new core.ArgumentError("Parameter path is required.");
1969 } 1887 }
1970 if (type != null) { 1888 if (type != null) {
1971 _queryParams["type"] = [type]; 1889 _queryParams["type"] = [type];
1972 } 1890 }
1973 1891
1974 _url = commons.Escaper.ecapeVariableReserved('$path') + '/built_in_variables :revert'; 1892 _url = commons.Escaper.ecapeVariableReserved('$path') +
1893 '/built_in_variables:revert';
1975 1894
1976 var _response = _requester.request(_url, 1895 var _response = _requester.request(_url, "POST",
1977 "POST", 1896 body: _body,
1978 body: _body, 1897 queryParams: _queryParams,
1979 queryParams: _queryParams, 1898 uploadOptions: _uploadOptions,
1980 uploadOptions: _uploadOptions, 1899 uploadMedia: _uploadMedia,
1981 uploadMedia: _uploadMedia, 1900 downloadOptions: _downloadOptions);
1982 downloadOptions: _downloadOptions); 1901 return _response
1983 return _response.then((data) => new RevertBuiltInVariableResponse.fromJson(d ata)); 1902 .then((data) => new RevertBuiltInVariableResponse.fromJson(data));
1984 } 1903 }
1985
1986 } 1904 }
1987 1905
1988
1989 class AccountsContainersWorkspacesFoldersResourceApi { 1906 class AccountsContainersWorkspacesFoldersResourceApi {
1990 final commons.ApiRequester _requester; 1907 final commons.ApiRequester _requester;
1991 1908
1992 AccountsContainersWorkspacesFoldersResourceApi(commons.ApiRequester client) : 1909 AccountsContainersWorkspacesFoldersResourceApi(commons.ApiRequester client)
1993 _requester = client; 1910 : _requester = client;
1994 1911
1995 /** 1912 /// Creates a GTM Folder.
1996 * Creates a GTM Folder. 1913 ///
1997 * 1914 /// [request] - The metadata request object.
1998 * [request] - The metadata request object. 1915 ///
1999 * 1916 /// Request parameters:
2000 * Request parameters: 1917 ///
2001 * 1918 /// [parent] - GTM Workspace's API relative path. Example:
2002 * [parent] - GTM Workspace's API relative path. Example: 1919 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
2003 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 1920 ///
2004 * 1921 /// Completes with a [Folder].
2005 * Completes with a [Folder]. 1922 ///
2006 * 1923 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2007 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1924 /// an error.
2008 * error. 1925 ///
2009 * 1926 /// If the used [http.Client] completes with an error when making a REST
2010 * If the used [http.Client] completes with an error when making a REST call, 1927 /// call, this method will complete with the same error.
2011 * this method will complete with the same error.
2012 */
2013 async.Future<Folder> create(Folder request, core.String parent) { 1928 async.Future<Folder> create(Folder request, core.String parent) {
2014 var _url = null; 1929 var _url = null;
2015 var _queryParams = new core.Map(); 1930 var _queryParams = new core.Map();
2016 var _uploadMedia = null; 1931 var _uploadMedia = null;
2017 var _uploadOptions = null; 1932 var _uploadOptions = null;
2018 var _downloadOptions = commons.DownloadOptions.Metadata; 1933 var _downloadOptions = commons.DownloadOptions.Metadata;
2019 var _body = null; 1934 var _body = null;
2020 1935
2021 if (request != null) { 1936 if (request != null) {
2022 _body = convert.JSON.encode((request).toJson()); 1937 _body = convert.JSON.encode((request).toJson());
2023 } 1938 }
2024 if (parent == null) { 1939 if (parent == null) {
2025 throw new core.ArgumentError("Parameter parent is required."); 1940 throw new core.ArgumentError("Parameter parent is required.");
2026 } 1941 }
2027 1942
2028 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/folders'; 1943 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/folders';
2029 1944
2030 var _response = _requester.request(_url, 1945 var _response = _requester.request(_url, "POST",
2031 "POST", 1946 body: _body,
2032 body: _body, 1947 queryParams: _queryParams,
2033 queryParams: _queryParams, 1948 uploadOptions: _uploadOptions,
2034 uploadOptions: _uploadOptions, 1949 uploadMedia: _uploadMedia,
2035 uploadMedia: _uploadMedia, 1950 downloadOptions: _downloadOptions);
2036 downloadOptions: _downloadOptions);
2037 return _response.then((data) => new Folder.fromJson(data)); 1951 return _response.then((data) => new Folder.fromJson(data));
2038 } 1952 }
2039 1953
2040 /** 1954 /// Deletes a GTM Folder.
2041 * Deletes a GTM Folder. 1955 ///
2042 * 1956 /// Request parameters:
2043 * Request parameters: 1957 ///
2044 * 1958 /// [path] - GTM Folder's API relative path. Example:
2045 * [path] - GTM Folder's API relative path. Example: 1959 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ folders/{folder_id}
2046 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/f olders/{folder_id} 1960 ///
2047 * 1961 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2048 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1962 /// an error.
2049 * error. 1963 ///
2050 * 1964 /// If the used [http.Client] completes with an error when making a REST
2051 * If the used [http.Client] completes with an error when making a REST call, 1965 /// call, this method will complete with the same error.
2052 * this method will complete with the same error.
2053 */
2054 async.Future delete(core.String path) { 1966 async.Future delete(core.String path) {
2055 var _url = null; 1967 var _url = null;
2056 var _queryParams = new core.Map(); 1968 var _queryParams = new core.Map();
2057 var _uploadMedia = null; 1969 var _uploadMedia = null;
2058 var _uploadOptions = null; 1970 var _uploadOptions = null;
2059 var _downloadOptions = commons.DownloadOptions.Metadata; 1971 var _downloadOptions = commons.DownloadOptions.Metadata;
2060 var _body = null; 1972 var _body = null;
2061 1973
2062 if (path == null) { 1974 if (path == null) {
2063 throw new core.ArgumentError("Parameter path is required."); 1975 throw new core.ArgumentError("Parameter path is required.");
2064 } 1976 }
2065 1977
2066 _downloadOptions = null; 1978 _downloadOptions = null;
2067 1979
2068 _url = commons.Escaper.ecapeVariableReserved('$path'); 1980 _url = commons.Escaper.ecapeVariableReserved('$path');
2069 1981
2070 var _response = _requester.request(_url, 1982 var _response = _requester.request(_url, "DELETE",
2071 "DELETE", 1983 body: _body,
2072 body: _body, 1984 queryParams: _queryParams,
2073 queryParams: _queryParams, 1985 uploadOptions: _uploadOptions,
2074 uploadOptions: _uploadOptions, 1986 uploadMedia: _uploadMedia,
2075 uploadMedia: _uploadMedia, 1987 downloadOptions: _downloadOptions);
2076 downloadOptions: _downloadOptions);
2077 return _response.then((data) => null); 1988 return _response.then((data) => null);
2078 } 1989 }
2079 1990
2080 /** 1991 /// List all entities in a GTM Folder.
2081 * List all entities in a GTM Folder. 1992 ///
2082 * 1993 /// Request parameters:
2083 * Request parameters: 1994 ///
2084 * 1995 /// [path] - GTM Folder's API relative path. Example:
2085 * [path] - GTM Folder's API relative path. Example: 1996 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ folders/{folder_id}
2086 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/f olders/{folder_id} 1997 ///
2087 * 1998 /// [pageToken] - Continuation token for fetching the next page of results.
2088 * [pageToken] - Continuation token for fetching the next page of results. 1999 ///
2089 * 2000 /// Completes with a [FolderEntities].
2090 * Completes with a [FolderEntities]. 2001 ///
2091 * 2002 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2092 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2003 /// an error.
2093 * error. 2004 ///
2094 * 2005 /// If the used [http.Client] completes with an error when making a REST
2095 * If the used [http.Client] completes with an error when making a REST call, 2006 /// call, this method will complete with the same error.
2096 * this method will complete with the same error. 2007 async.Future<FolderEntities> entities(core.String path,
2097 */ 2008 {core.String pageToken}) {
2098 async.Future<FolderEntities> entities(core.String path, {core.String pageToken }) {
2099 var _url = null; 2009 var _url = null;
2100 var _queryParams = new core.Map(); 2010 var _queryParams = new core.Map();
2101 var _uploadMedia = null; 2011 var _uploadMedia = null;
2102 var _uploadOptions = null; 2012 var _uploadOptions = null;
2103 var _downloadOptions = commons.DownloadOptions.Metadata; 2013 var _downloadOptions = commons.DownloadOptions.Metadata;
2104 var _body = null; 2014 var _body = null;
2105 2015
2106 if (path == null) { 2016 if (path == null) {
2107 throw new core.ArgumentError("Parameter path is required."); 2017 throw new core.ArgumentError("Parameter path is required.");
2108 } 2018 }
2109 if (pageToken != null) { 2019 if (pageToken != null) {
2110 _queryParams["pageToken"] = [pageToken]; 2020 _queryParams["pageToken"] = [pageToken];
2111 } 2021 }
2112 2022
2113 _url = commons.Escaper.ecapeVariableReserved('$path') + ':entities'; 2023 _url = commons.Escaper.ecapeVariableReserved('$path') + ':entities';
2114 2024
2115 var _response = _requester.request(_url, 2025 var _response = _requester.request(_url, "POST",
2116 "POST", 2026 body: _body,
2117 body: _body, 2027 queryParams: _queryParams,
2118 queryParams: _queryParams, 2028 uploadOptions: _uploadOptions,
2119 uploadOptions: _uploadOptions, 2029 uploadMedia: _uploadMedia,
2120 uploadMedia: _uploadMedia, 2030 downloadOptions: _downloadOptions);
2121 downloadOptions: _downloadOptions);
2122 return _response.then((data) => new FolderEntities.fromJson(data)); 2031 return _response.then((data) => new FolderEntities.fromJson(data));
2123 } 2032 }
2124 2033
2125 /** 2034 /// Gets a GTM Folder.
2126 * Gets a GTM Folder. 2035 ///
2127 * 2036 /// Request parameters:
2128 * Request parameters: 2037 ///
2129 * 2038 /// [path] - GTM Folder's API relative path. Example:
2130 * [path] - GTM Folder's API relative path. Example: 2039 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ folders/{folder_id}
2131 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/f olders/{folder_id} 2040 ///
2132 * 2041 /// Completes with a [Folder].
2133 * Completes with a [Folder]. 2042 ///
2134 * 2043 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2135 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2044 /// an error.
2136 * error. 2045 ///
2137 * 2046 /// If the used [http.Client] completes with an error when making a REST
2138 * If the used [http.Client] completes with an error when making a REST call, 2047 /// call, this method will complete with the same error.
2139 * this method will complete with the same error.
2140 */
2141 async.Future<Folder> get(core.String path) { 2048 async.Future<Folder> get(core.String path) {
2142 var _url = null; 2049 var _url = null;
2143 var _queryParams = new core.Map(); 2050 var _queryParams = new core.Map();
2144 var _uploadMedia = null; 2051 var _uploadMedia = null;
2145 var _uploadOptions = null; 2052 var _uploadOptions = null;
2146 var _downloadOptions = commons.DownloadOptions.Metadata; 2053 var _downloadOptions = commons.DownloadOptions.Metadata;
2147 var _body = null; 2054 var _body = null;
2148 2055
2149 if (path == null) { 2056 if (path == null) {
2150 throw new core.ArgumentError("Parameter path is required."); 2057 throw new core.ArgumentError("Parameter path is required.");
2151 } 2058 }
2152 2059
2153 _url = commons.Escaper.ecapeVariableReserved('$path'); 2060 _url = commons.Escaper.ecapeVariableReserved('$path');
2154 2061
2155 var _response = _requester.request(_url, 2062 var _response = _requester.request(_url, "GET",
2156 "GET", 2063 body: _body,
2157 body: _body, 2064 queryParams: _queryParams,
2158 queryParams: _queryParams, 2065 uploadOptions: _uploadOptions,
2159 uploadOptions: _uploadOptions, 2066 uploadMedia: _uploadMedia,
2160 uploadMedia: _uploadMedia, 2067 downloadOptions: _downloadOptions);
2161 downloadOptions: _downloadOptions);
2162 return _response.then((data) => new Folder.fromJson(data)); 2068 return _response.then((data) => new Folder.fromJson(data));
2163 } 2069 }
2164 2070
2165 /** 2071 /// Lists all GTM Folders of a Container.
2166 * Lists all GTM Folders of a Container. 2072 ///
2167 * 2073 /// Request parameters:
2168 * Request parameters: 2074 ///
2169 * 2075 /// [parent] - GTM Workspace's API relative path. Example:
2170 * [parent] - GTM Workspace's API relative path. Example: 2076 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
2171 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 2077 ///
2172 * 2078 /// [pageToken] - Continuation token for fetching the next page of results.
2173 * [pageToken] - Continuation token for fetching the next page of results. 2079 ///
2174 * 2080 /// Completes with a [ListFoldersResponse].
2175 * Completes with a [ListFoldersResponse]. 2081 ///
2176 * 2082 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2177 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2083 /// an error.
2178 * error. 2084 ///
2179 * 2085 /// If the used [http.Client] completes with an error when making a REST
2180 * If the used [http.Client] completes with an error when making a REST call, 2086 /// call, this method will complete with the same error.
2181 * this method will complete with the same error. 2087 async.Future<ListFoldersResponse> list(core.String parent,
2182 */ 2088 {core.String pageToken}) {
2183 async.Future<ListFoldersResponse> list(core.String parent, {core.String pageTo ken}) {
2184 var _url = null; 2089 var _url = null;
2185 var _queryParams = new core.Map(); 2090 var _queryParams = new core.Map();
2186 var _uploadMedia = null; 2091 var _uploadMedia = null;
2187 var _uploadOptions = null; 2092 var _uploadOptions = null;
2188 var _downloadOptions = commons.DownloadOptions.Metadata; 2093 var _downloadOptions = commons.DownloadOptions.Metadata;
2189 var _body = null; 2094 var _body = null;
2190 2095
2191 if (parent == null) { 2096 if (parent == null) {
2192 throw new core.ArgumentError("Parameter parent is required."); 2097 throw new core.ArgumentError("Parameter parent is required.");
2193 } 2098 }
2194 if (pageToken != null) { 2099 if (pageToken != null) {
2195 _queryParams["pageToken"] = [pageToken]; 2100 _queryParams["pageToken"] = [pageToken];
2196 } 2101 }
2197 2102
2198 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/folders'; 2103 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/folders';
2199 2104
2200 var _response = _requester.request(_url, 2105 var _response = _requester.request(_url, "GET",
2201 "GET", 2106 body: _body,
2202 body: _body, 2107 queryParams: _queryParams,
2203 queryParams: _queryParams, 2108 uploadOptions: _uploadOptions,
2204 uploadOptions: _uploadOptions, 2109 uploadMedia: _uploadMedia,
2205 uploadMedia: _uploadMedia, 2110 downloadOptions: _downloadOptions);
2206 downloadOptions: _downloadOptions);
2207 return _response.then((data) => new ListFoldersResponse.fromJson(data)); 2111 return _response.then((data) => new ListFoldersResponse.fromJson(data));
2208 } 2112 }
2209 2113
2210 /** 2114 /// Moves entities to a GTM Folder.
2211 * Moves entities to a GTM Folder. 2115 ///
2212 * 2116 /// [request] - The metadata request object.
2213 * [request] - The metadata request object. 2117 ///
2214 * 2118 /// Request parameters:
2215 * Request parameters: 2119 ///
2216 * 2120 /// [path] - GTM Folder's API relative path. Example:
2217 * [path] - GTM Folder's API relative path. Example: 2121 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ folders/{folder_id}
2218 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/f olders/{folder_id} 2122 ///
2219 * 2123 /// [tagId] - The tags to be moved to the folder.
2220 * [tagId] - The tags to be moved to the folder. 2124 ///
2221 * 2125 /// [triggerId] - The triggers to be moved to the folder.
2222 * [triggerId] - The triggers to be moved to the folder. 2126 ///
2223 * 2127 /// [variableId] - The variables to be moved to the folder.
2224 * [variableId] - The variables to be moved to the folder. 2128 ///
2225 * 2129 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2226 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2130 /// an error.
2227 * error. 2131 ///
2228 * 2132 /// If the used [http.Client] completes with an error when making a REST
2229 * If the used [http.Client] completes with an error when making a REST call, 2133 /// call, this method will complete with the same error.
2230 * this method will complete with the same error. 2134 async.Future moveEntitiesToFolder(Folder request, core.String path,
2231 */ 2135 {core.List<core.String> tagId,
2232 async.Future moveEntitiesToFolder(Folder request, core.String path, {core.List <core.String> tagId, core.List<core.String> triggerId, core.List<core.String> va riableId}) { 2136 core.List<core.String> triggerId,
2137 core.List<core.String> variableId}) {
2233 var _url = null; 2138 var _url = null;
2234 var _queryParams = new core.Map(); 2139 var _queryParams = new core.Map();
2235 var _uploadMedia = null; 2140 var _uploadMedia = null;
2236 var _uploadOptions = null; 2141 var _uploadOptions = null;
2237 var _downloadOptions = commons.DownloadOptions.Metadata; 2142 var _downloadOptions = commons.DownloadOptions.Metadata;
2238 var _body = null; 2143 var _body = null;
2239 2144
2240 if (request != null) { 2145 if (request != null) {
2241 _body = convert.JSON.encode((request).toJson()); 2146 _body = convert.JSON.encode((request).toJson());
2242 } 2147 }
2243 if (path == null) { 2148 if (path == null) {
2244 throw new core.ArgumentError("Parameter path is required."); 2149 throw new core.ArgumentError("Parameter path is required.");
2245 } 2150 }
2246 if (tagId != null) { 2151 if (tagId != null) {
2247 _queryParams["tagId"] = tagId; 2152 _queryParams["tagId"] = tagId;
2248 } 2153 }
2249 if (triggerId != null) { 2154 if (triggerId != null) {
2250 _queryParams["triggerId"] = triggerId; 2155 _queryParams["triggerId"] = triggerId;
2251 } 2156 }
2252 if (variableId != null) { 2157 if (variableId != null) {
2253 _queryParams["variableId"] = variableId; 2158 _queryParams["variableId"] = variableId;
2254 } 2159 }
2255 2160
2256 _downloadOptions = null; 2161 _downloadOptions = null;
2257 2162
2258 _url = commons.Escaper.ecapeVariableReserved('$path') + ':move_entities_to_f older'; 2163 _url = commons.Escaper.ecapeVariableReserved('$path') +
2164 ':move_entities_to_folder';
2259 2165
2260 var _response = _requester.request(_url, 2166 var _response = _requester.request(_url, "POST",
2261 "POST", 2167 body: _body,
2262 body: _body, 2168 queryParams: _queryParams,
2263 queryParams: _queryParams, 2169 uploadOptions: _uploadOptions,
2264 uploadOptions: _uploadOptions, 2170 uploadMedia: _uploadMedia,
2265 uploadMedia: _uploadMedia, 2171 downloadOptions: _downloadOptions);
2266 downloadOptions: _downloadOptions);
2267 return _response.then((data) => null); 2172 return _response.then((data) => null);
2268 } 2173 }
2269 2174
2270 /** 2175 /// Reverts changes to a GTM Folder in a GTM Workspace.
2271 * Reverts changes to a GTM Folder in a GTM Workspace. 2176 ///
2272 * 2177 /// Request parameters:
2273 * Request parameters: 2178 ///
2274 * 2179 /// [path] - GTM Folder's API relative path. Example:
2275 * [path] - GTM Folder's API relative path. Example: 2180 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ folders/{folder_id}
2276 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/f olders/{folder_id} 2181 ///
2277 * 2182 /// [fingerprint] - When provided, this fingerprint must match the
2278 * [fingerprint] - When provided, this fingerprint must match the fingerprint 2183 /// fingerprint of the tag in storage.
2279 * of the tag in storage. 2184 ///
2280 * 2185 /// Completes with a [RevertFolderResponse].
2281 * Completes with a [RevertFolderResponse]. 2186 ///
2282 * 2187 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2283 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2188 /// an error.
2284 * error. 2189 ///
2285 * 2190 /// If the used [http.Client] completes with an error when making a REST
2286 * If the used [http.Client] completes with an error when making a REST call, 2191 /// call, this method will complete with the same error.
2287 * this method will complete with the same error. 2192 async.Future<RevertFolderResponse> revert(core.String path,
2288 */ 2193 {core.String fingerprint}) {
2289 async.Future<RevertFolderResponse> revert(core.String path, {core.String finge rprint}) {
2290 var _url = null; 2194 var _url = null;
2291 var _queryParams = new core.Map(); 2195 var _queryParams = new core.Map();
2292 var _uploadMedia = null; 2196 var _uploadMedia = null;
2293 var _uploadOptions = null; 2197 var _uploadOptions = null;
2294 var _downloadOptions = commons.DownloadOptions.Metadata; 2198 var _downloadOptions = commons.DownloadOptions.Metadata;
2295 var _body = null; 2199 var _body = null;
2296 2200
2297 if (path == null) { 2201 if (path == null) {
2298 throw new core.ArgumentError("Parameter path is required."); 2202 throw new core.ArgumentError("Parameter path is required.");
2299 } 2203 }
2300 if (fingerprint != null) { 2204 if (fingerprint != null) {
2301 _queryParams["fingerprint"] = [fingerprint]; 2205 _queryParams["fingerprint"] = [fingerprint];
2302 } 2206 }
2303 2207
2304 _url = commons.Escaper.ecapeVariableReserved('$path') + ':revert'; 2208 _url = commons.Escaper.ecapeVariableReserved('$path') + ':revert';
2305 2209
2306 var _response = _requester.request(_url, 2210 var _response = _requester.request(_url, "POST",
2307 "POST", 2211 body: _body,
2308 body: _body, 2212 queryParams: _queryParams,
2309 queryParams: _queryParams, 2213 uploadOptions: _uploadOptions,
2310 uploadOptions: _uploadOptions, 2214 uploadMedia: _uploadMedia,
2311 uploadMedia: _uploadMedia, 2215 downloadOptions: _downloadOptions);
2312 downloadOptions: _downloadOptions);
2313 return _response.then((data) => new RevertFolderResponse.fromJson(data)); 2216 return _response.then((data) => new RevertFolderResponse.fromJson(data));
2314 } 2217 }
2315 2218
2316 /** 2219 /// Updates a GTM Folder.
2317 * Updates a GTM Folder. 2220 ///
2318 * 2221 /// [request] - The metadata request object.
2319 * [request] - The metadata request object. 2222 ///
2320 * 2223 /// Request parameters:
2321 * Request parameters: 2224 ///
2322 * 2225 /// [path] - GTM Folder's API relative path. Example:
2323 * [path] - GTM Folder's API relative path. Example: 2226 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ folders/{folder_id}
2324 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/f olders/{folder_id} 2227 ///
2325 * 2228 /// [fingerprint] - When provided, this fingerprint must match the
2326 * [fingerprint] - When provided, this fingerprint must match the fingerprint 2229 /// fingerprint of the folder in storage.
2327 * of the folder in storage. 2230 ///
2328 * 2231 /// Completes with a [Folder].
2329 * Completes with a [Folder]. 2232 ///
2330 * 2233 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2331 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2234 /// an error.
2332 * error. 2235 ///
2333 * 2236 /// If the used [http.Client] completes with an error when making a REST
2334 * If the used [http.Client] completes with an error when making a REST call, 2237 /// call, this method will complete with the same error.
2335 * this method will complete with the same error. 2238 async.Future<Folder> update(Folder request, core.String path,
2336 */ 2239 {core.String fingerprint}) {
2337 async.Future<Folder> update(Folder request, core.String path, {core.String fin gerprint}) {
2338 var _url = null; 2240 var _url = null;
2339 var _queryParams = new core.Map(); 2241 var _queryParams = new core.Map();
2340 var _uploadMedia = null; 2242 var _uploadMedia = null;
2341 var _uploadOptions = null; 2243 var _uploadOptions = null;
2342 var _downloadOptions = commons.DownloadOptions.Metadata; 2244 var _downloadOptions = commons.DownloadOptions.Metadata;
2343 var _body = null; 2245 var _body = null;
2344 2246
2345 if (request != null) { 2247 if (request != null) {
2346 _body = convert.JSON.encode((request).toJson()); 2248 _body = convert.JSON.encode((request).toJson());
2347 } 2249 }
2348 if (path == null) { 2250 if (path == null) {
2349 throw new core.ArgumentError("Parameter path is required."); 2251 throw new core.ArgumentError("Parameter path is required.");
2350 } 2252 }
2351 if (fingerprint != null) { 2253 if (fingerprint != null) {
2352 _queryParams["fingerprint"] = [fingerprint]; 2254 _queryParams["fingerprint"] = [fingerprint];
2353 } 2255 }
2354 2256
2355 _url = commons.Escaper.ecapeVariableReserved('$path'); 2257 _url = commons.Escaper.ecapeVariableReserved('$path');
2356 2258
2357 var _response = _requester.request(_url, 2259 var _response = _requester.request(_url, "PUT",
2358 "PUT", 2260 body: _body,
2359 body: _body, 2261 queryParams: _queryParams,
2360 queryParams: _queryParams, 2262 uploadOptions: _uploadOptions,
2361 uploadOptions: _uploadOptions, 2263 uploadMedia: _uploadMedia,
2362 uploadMedia: _uploadMedia, 2264 downloadOptions: _downloadOptions);
2363 downloadOptions: _downloadOptions);
2364 return _response.then((data) => new Folder.fromJson(data)); 2265 return _response.then((data) => new Folder.fromJson(data));
2365 } 2266 }
2366
2367 } 2267 }
2368 2268
2369
2370 class AccountsContainersWorkspacesProposalResourceApi { 2269 class AccountsContainersWorkspacesProposalResourceApi {
2371 final commons.ApiRequester _requester; 2270 final commons.ApiRequester _requester;
2372 2271
2373 AccountsContainersWorkspacesProposalResourceApi(commons.ApiRequester client) : 2272 AccountsContainersWorkspacesProposalResourceApi(commons.ApiRequester client)
2374 _requester = client; 2273 : _requester = client;
2375 2274
2376 /** 2275 /// Creates a GTM Workspace Proposal.
2377 * Creates a GTM Workspace Proposal. 2276 ///
2378 * 2277 /// [request] - The metadata request object.
2379 * [request] - The metadata request object. 2278 ///
2380 * 2279 /// Request parameters:
2381 * Request parameters: 2280 ///
2382 * 2281 /// [parent] - GTM Workspace's API relative path. Example:
2383 * [parent] - GTM Workspace's API relative path. Example: 2282 /// accounts/{aid}/containers/{cid}/workspace/{wid}
2384 * accounts/{aid}/containers/{cid}/workspace/{wid} 2283 ///
2385 * 2284 /// Completes with a [WorkspaceProposal].
2386 * Completes with a [WorkspaceProposal]. 2285 ///
2387 * 2286 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2388 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2287 /// an error.
2389 * error. 2288 ///
2390 * 2289 /// If the used [http.Client] completes with an error when making a REST
2391 * If the used [http.Client] completes with an error when making a REST call, 2290 /// call, this method will complete with the same error.
2392 * this method will complete with the same error. 2291 async.Future<WorkspaceProposal> create(
2393 */ 2292 CreateWorkspaceProposalRequest request, core.String parent) {
2394 async.Future<WorkspaceProposal> create(CreateWorkspaceProposalRequest request, core.String parent) {
2395 var _url = null; 2293 var _url = null;
2396 var _queryParams = new core.Map(); 2294 var _queryParams = new core.Map();
2397 var _uploadMedia = null; 2295 var _uploadMedia = null;
2398 var _uploadOptions = null; 2296 var _uploadOptions = null;
2399 var _downloadOptions = commons.DownloadOptions.Metadata; 2297 var _downloadOptions = commons.DownloadOptions.Metadata;
2400 var _body = null; 2298 var _body = null;
2401 2299
2402 if (request != null) { 2300 if (request != null) {
2403 _body = convert.JSON.encode((request).toJson()); 2301 _body = convert.JSON.encode((request).toJson());
2404 } 2302 }
2405 if (parent == null) { 2303 if (parent == null) {
2406 throw new core.ArgumentError("Parameter parent is required."); 2304 throw new core.ArgumentError("Parameter parent is required.");
2407 } 2305 }
2408 2306
2409 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/proposal'; 2307 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/proposal';
2410 2308
2411 var _response = _requester.request(_url, 2309 var _response = _requester.request(_url, "POST",
2412 "POST", 2310 body: _body,
2413 body: _body, 2311 queryParams: _queryParams,
2414 queryParams: _queryParams, 2312 uploadOptions: _uploadOptions,
2415 uploadOptions: _uploadOptions, 2313 uploadMedia: _uploadMedia,
2416 uploadMedia: _uploadMedia, 2314 downloadOptions: _downloadOptions);
2417 downloadOptions: _downloadOptions);
2418 return _response.then((data) => new WorkspaceProposal.fromJson(data)); 2315 return _response.then((data) => new WorkspaceProposal.fromJson(data));
2419 } 2316 }
2420 2317
2421 /** 2318 /// Deletes a GTM Workspace Proposal.
2422 * Deletes a GTM Workspace Proposal. 2319 ///
2423 * 2320 /// Request parameters:
2424 * Request parameters: 2321 ///
2425 * 2322 /// [path] - GTM workspace proposal's relative path: Example:
2426 * [path] - GTM workspace proposal's relative path: Example: 2323 /// accounts/{aid}/containers/{cid}/workspace/{wid}/workspace_proposal
2427 * accounts/{aid}/containers/{cid}/workspace/{wid}/workspace_proposal 2324 ///
2428 * 2325 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2429 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2326 /// an error.
2430 * error. 2327 ///
2431 * 2328 /// If the used [http.Client] completes with an error when making a REST
2432 * If the used [http.Client] completes with an error when making a REST call, 2329 /// call, this method will complete with the same error.
2433 * this method will complete with the same error.
2434 */
2435 async.Future delete(core.String path) { 2330 async.Future delete(core.String path) {
2436 var _url = null; 2331 var _url = null;
2437 var _queryParams = new core.Map(); 2332 var _queryParams = new core.Map();
2438 var _uploadMedia = null; 2333 var _uploadMedia = null;
2439 var _uploadOptions = null; 2334 var _uploadOptions = null;
2440 var _downloadOptions = commons.DownloadOptions.Metadata; 2335 var _downloadOptions = commons.DownloadOptions.Metadata;
2441 var _body = null; 2336 var _body = null;
2442 2337
2443 if (path == null) { 2338 if (path == null) {
2444 throw new core.ArgumentError("Parameter path is required."); 2339 throw new core.ArgumentError("Parameter path is required.");
2445 } 2340 }
2446 2341
2447 _downloadOptions = null; 2342 _downloadOptions = null;
2448 2343
2449 _url = commons.Escaper.ecapeVariableReserved('$path'); 2344 _url = commons.Escaper.ecapeVariableReserved('$path');
2450 2345
2451 var _response = _requester.request(_url, 2346 var _response = _requester.request(_url, "DELETE",
2452 "DELETE", 2347 body: _body,
2453 body: _body, 2348 queryParams: _queryParams,
2454 queryParams: _queryParams, 2349 uploadOptions: _uploadOptions,
2455 uploadOptions: _uploadOptions, 2350 uploadMedia: _uploadMedia,
2456 uploadMedia: _uploadMedia, 2351 downloadOptions: _downloadOptions);
2457 downloadOptions: _downloadOptions);
2458 return _response.then((data) => null); 2352 return _response.then((data) => null);
2459 } 2353 }
2460
2461 } 2354 }
2462 2355
2463
2464 class AccountsContainersWorkspacesTagsResourceApi { 2356 class AccountsContainersWorkspacesTagsResourceApi {
2465 final commons.ApiRequester _requester; 2357 final commons.ApiRequester _requester;
2466 2358
2467 AccountsContainersWorkspacesTagsResourceApi(commons.ApiRequester client) : 2359 AccountsContainersWorkspacesTagsResourceApi(commons.ApiRequester client)
2468 _requester = client; 2360 : _requester = client;
2469 2361
2470 /** 2362 /// Creates a GTM Tag.
2471 * Creates a GTM Tag. 2363 ///
2472 * 2364 /// [request] - The metadata request object.
2473 * [request] - The metadata request object. 2365 ///
2474 * 2366 /// Request parameters:
2475 * Request parameters: 2367 ///
2476 * 2368 /// [parent] - GTM Workspace's API relative path. Example:
2477 * [parent] - GTM Workspace's API relative path. Example: 2369 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
2478 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 2370 ///
2479 * 2371 /// Completes with a [Tag].
2480 * Completes with a [Tag]. 2372 ///
2481 * 2373 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2482 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2374 /// an error.
2483 * error. 2375 ///
2484 * 2376 /// If the used [http.Client] completes with an error when making a REST
2485 * If the used [http.Client] completes with an error when making a REST call, 2377 /// call, this method will complete with the same error.
2486 * this method will complete with the same error.
2487 */
2488 async.Future<Tag> create(Tag request, core.String parent) { 2378 async.Future<Tag> create(Tag request, core.String parent) {
2489 var _url = null; 2379 var _url = null;
2490 var _queryParams = new core.Map(); 2380 var _queryParams = new core.Map();
2491 var _uploadMedia = null; 2381 var _uploadMedia = null;
2492 var _uploadOptions = null; 2382 var _uploadOptions = null;
2493 var _downloadOptions = commons.DownloadOptions.Metadata; 2383 var _downloadOptions = commons.DownloadOptions.Metadata;
2494 var _body = null; 2384 var _body = null;
2495 2385
2496 if (request != null) { 2386 if (request != null) {
2497 _body = convert.JSON.encode((request).toJson()); 2387 _body = convert.JSON.encode((request).toJson());
2498 } 2388 }
2499 if (parent == null) { 2389 if (parent == null) {
2500 throw new core.ArgumentError("Parameter parent is required."); 2390 throw new core.ArgumentError("Parameter parent is required.");
2501 } 2391 }
2502 2392
2503 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/tags'; 2393 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/tags';
2504 2394
2505 var _response = _requester.request(_url, 2395 var _response = _requester.request(_url, "POST",
2506 "POST", 2396 body: _body,
2507 body: _body, 2397 queryParams: _queryParams,
2508 queryParams: _queryParams, 2398 uploadOptions: _uploadOptions,
2509 uploadOptions: _uploadOptions, 2399 uploadMedia: _uploadMedia,
2510 uploadMedia: _uploadMedia, 2400 downloadOptions: _downloadOptions);
2511 downloadOptions: _downloadOptions);
2512 return _response.then((data) => new Tag.fromJson(data)); 2401 return _response.then((data) => new Tag.fromJson(data));
2513 } 2402 }
2514 2403
2515 /** 2404 /// Deletes a GTM Tag.
2516 * Deletes a GTM Tag. 2405 ///
2517 * 2406 /// Request parameters:
2518 * Request parameters: 2407 ///
2519 * 2408 /// [path] - GTM Tag's API relative path. Example:
2520 * [path] - GTM Tag's API relative path. Example: 2409 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ tags/{tag_id}
2521 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/t ags/{tag_id} 2410 ///
2522 * 2411 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2523 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2412 /// an error.
2524 * error. 2413 ///
2525 * 2414 /// If the used [http.Client] completes with an error when making a REST
2526 * If the used [http.Client] completes with an error when making a REST call, 2415 /// call, this method will complete with the same error.
2527 * this method will complete with the same error.
2528 */
2529 async.Future delete(core.String path) { 2416 async.Future delete(core.String path) {
2530 var _url = null; 2417 var _url = null;
2531 var _queryParams = new core.Map(); 2418 var _queryParams = new core.Map();
2532 var _uploadMedia = null; 2419 var _uploadMedia = null;
2533 var _uploadOptions = null; 2420 var _uploadOptions = null;
2534 var _downloadOptions = commons.DownloadOptions.Metadata; 2421 var _downloadOptions = commons.DownloadOptions.Metadata;
2535 var _body = null; 2422 var _body = null;
2536 2423
2537 if (path == null) { 2424 if (path == null) {
2538 throw new core.ArgumentError("Parameter path is required."); 2425 throw new core.ArgumentError("Parameter path is required.");
2539 } 2426 }
2540 2427
2541 _downloadOptions = null; 2428 _downloadOptions = null;
2542 2429
2543 _url = commons.Escaper.ecapeVariableReserved('$path'); 2430 _url = commons.Escaper.ecapeVariableReserved('$path');
2544 2431
2545 var _response = _requester.request(_url, 2432 var _response = _requester.request(_url, "DELETE",
2546 "DELETE", 2433 body: _body,
2547 body: _body, 2434 queryParams: _queryParams,
2548 queryParams: _queryParams, 2435 uploadOptions: _uploadOptions,
2549 uploadOptions: _uploadOptions, 2436 uploadMedia: _uploadMedia,
2550 uploadMedia: _uploadMedia, 2437 downloadOptions: _downloadOptions);
2551 downloadOptions: _downloadOptions);
2552 return _response.then((data) => null); 2438 return _response.then((data) => null);
2553 } 2439 }
2554 2440
2555 /** 2441 /// Gets a GTM Tag.
2556 * Gets a GTM Tag. 2442 ///
2557 * 2443 /// Request parameters:
2558 * Request parameters: 2444 ///
2559 * 2445 /// [path] - GTM Tag's API relative path. Example:
2560 * [path] - GTM Tag's API relative path. Example: 2446 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ tags/{tag_id}
2561 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/t ags/{tag_id} 2447 ///
2562 * 2448 /// Completes with a [Tag].
2563 * Completes with a [Tag]. 2449 ///
2564 * 2450 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2565 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2451 /// an error.
2566 * error. 2452 ///
2567 * 2453 /// If the used [http.Client] completes with an error when making a REST
2568 * If the used [http.Client] completes with an error when making a REST call, 2454 /// call, this method will complete with the same error.
2569 * this method will complete with the same error.
2570 */
2571 async.Future<Tag> get(core.String path) { 2455 async.Future<Tag> get(core.String path) {
2572 var _url = null; 2456 var _url = null;
2573 var _queryParams = new core.Map(); 2457 var _queryParams = new core.Map();
2574 var _uploadMedia = null; 2458 var _uploadMedia = null;
2575 var _uploadOptions = null; 2459 var _uploadOptions = null;
2576 var _downloadOptions = commons.DownloadOptions.Metadata; 2460 var _downloadOptions = commons.DownloadOptions.Metadata;
2577 var _body = null; 2461 var _body = null;
2578 2462
2579 if (path == null) { 2463 if (path == null) {
2580 throw new core.ArgumentError("Parameter path is required."); 2464 throw new core.ArgumentError("Parameter path is required.");
2581 } 2465 }
2582 2466
2583 _url = commons.Escaper.ecapeVariableReserved('$path'); 2467 _url = commons.Escaper.ecapeVariableReserved('$path');
2584 2468
2585 var _response = _requester.request(_url, 2469 var _response = _requester.request(_url, "GET",
2586 "GET", 2470 body: _body,
2587 body: _body, 2471 queryParams: _queryParams,
2588 queryParams: _queryParams, 2472 uploadOptions: _uploadOptions,
2589 uploadOptions: _uploadOptions, 2473 uploadMedia: _uploadMedia,
2590 uploadMedia: _uploadMedia, 2474 downloadOptions: _downloadOptions);
2591 downloadOptions: _downloadOptions);
2592 return _response.then((data) => new Tag.fromJson(data)); 2475 return _response.then((data) => new Tag.fromJson(data));
2593 } 2476 }
2594 2477
2595 /** 2478 /// Lists all GTM Tags of a Container.
2596 * Lists all GTM Tags of a Container. 2479 ///
2597 * 2480 /// Request parameters:
2598 * Request parameters: 2481 ///
2599 * 2482 /// [parent] - GTM Workspace's API relative path. Example:
2600 * [parent] - GTM Workspace's API relative path. Example: 2483 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
2601 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 2484 ///
2602 * 2485 /// [pageToken] - Continuation token for fetching the next page of results.
2603 * [pageToken] - Continuation token for fetching the next page of results. 2486 ///
2604 * 2487 /// Completes with a [ListTagsResponse].
2605 * Completes with a [ListTagsResponse]. 2488 ///
2606 * 2489 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2607 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2490 /// an error.
2608 * error. 2491 ///
2609 * 2492 /// If the used [http.Client] completes with an error when making a REST
2610 * If the used [http.Client] completes with an error when making a REST call, 2493 /// call, this method will complete with the same error.
2611 * this method will complete with the same error. 2494 async.Future<ListTagsResponse> list(core.String parent,
2612 */ 2495 {core.String pageToken}) {
2613 async.Future<ListTagsResponse> list(core.String parent, {core.String pageToken }) {
2614 var _url = null; 2496 var _url = null;
2615 var _queryParams = new core.Map(); 2497 var _queryParams = new core.Map();
2616 var _uploadMedia = null; 2498 var _uploadMedia = null;
2617 var _uploadOptions = null; 2499 var _uploadOptions = null;
2618 var _downloadOptions = commons.DownloadOptions.Metadata; 2500 var _downloadOptions = commons.DownloadOptions.Metadata;
2619 var _body = null; 2501 var _body = null;
2620 2502
2621 if (parent == null) { 2503 if (parent == null) {
2622 throw new core.ArgumentError("Parameter parent is required."); 2504 throw new core.ArgumentError("Parameter parent is required.");
2623 } 2505 }
2624 if (pageToken != null) { 2506 if (pageToken != null) {
2625 _queryParams["pageToken"] = [pageToken]; 2507 _queryParams["pageToken"] = [pageToken];
2626 } 2508 }
2627 2509
2628 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/tags'; 2510 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/tags';
2629 2511
2630 var _response = _requester.request(_url, 2512 var _response = _requester.request(_url, "GET",
2631 "GET", 2513 body: _body,
2632 body: _body, 2514 queryParams: _queryParams,
2633 queryParams: _queryParams, 2515 uploadOptions: _uploadOptions,
2634 uploadOptions: _uploadOptions, 2516 uploadMedia: _uploadMedia,
2635 uploadMedia: _uploadMedia, 2517 downloadOptions: _downloadOptions);
2636 downloadOptions: _downloadOptions);
2637 return _response.then((data) => new ListTagsResponse.fromJson(data)); 2518 return _response.then((data) => new ListTagsResponse.fromJson(data));
2638 } 2519 }
2639 2520
2640 /** 2521 /// Reverts changes to a GTM Tag in a GTM Workspace.
2641 * Reverts changes to a GTM Tag in a GTM Workspace. 2522 ///
2642 * 2523 /// Request parameters:
2643 * Request parameters: 2524 ///
2644 * 2525 /// [path] - GTM Tag's API relative path. Example:
2645 * [path] - GTM Tag's API relative path. Example: 2526 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ tags/{tag_id}
2646 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/t ags/{tag_id} 2527 ///
2647 * 2528 /// [fingerprint] - When provided, this fingerprint must match the
2648 * [fingerprint] - When provided, this fingerprint must match the fingerprint 2529 /// fingerprint of thetag in storage.
2649 * of thetag in storage. 2530 ///
2650 * 2531 /// Completes with a [RevertTagResponse].
2651 * Completes with a [RevertTagResponse]. 2532 ///
2652 * 2533 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2653 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2534 /// an error.
2654 * error. 2535 ///
2655 * 2536 /// If the used [http.Client] completes with an error when making a REST
2656 * If the used [http.Client] completes with an error when making a REST call, 2537 /// call, this method will complete with the same error.
2657 * this method will complete with the same error. 2538 async.Future<RevertTagResponse> revert(core.String path,
2658 */ 2539 {core.String fingerprint}) {
2659 async.Future<RevertTagResponse> revert(core.String path, {core.String fingerpr int}) {
2660 var _url = null; 2540 var _url = null;
2661 var _queryParams = new core.Map(); 2541 var _queryParams = new core.Map();
2662 var _uploadMedia = null; 2542 var _uploadMedia = null;
2663 var _uploadOptions = null; 2543 var _uploadOptions = null;
2664 var _downloadOptions = commons.DownloadOptions.Metadata; 2544 var _downloadOptions = commons.DownloadOptions.Metadata;
2665 var _body = null; 2545 var _body = null;
2666 2546
2667 if (path == null) { 2547 if (path == null) {
2668 throw new core.ArgumentError("Parameter path is required."); 2548 throw new core.ArgumentError("Parameter path is required.");
2669 } 2549 }
2670 if (fingerprint != null) { 2550 if (fingerprint != null) {
2671 _queryParams["fingerprint"] = [fingerprint]; 2551 _queryParams["fingerprint"] = [fingerprint];
2672 } 2552 }
2673 2553
2674 _url = commons.Escaper.ecapeVariableReserved('$path') + ':revert'; 2554 _url = commons.Escaper.ecapeVariableReserved('$path') + ':revert';
2675 2555
2676 var _response = _requester.request(_url, 2556 var _response = _requester.request(_url, "POST",
2677 "POST", 2557 body: _body,
2678 body: _body, 2558 queryParams: _queryParams,
2679 queryParams: _queryParams, 2559 uploadOptions: _uploadOptions,
2680 uploadOptions: _uploadOptions, 2560 uploadMedia: _uploadMedia,
2681 uploadMedia: _uploadMedia, 2561 downloadOptions: _downloadOptions);
2682 downloadOptions: _downloadOptions);
2683 return _response.then((data) => new RevertTagResponse.fromJson(data)); 2562 return _response.then((data) => new RevertTagResponse.fromJson(data));
2684 } 2563 }
2685 2564
2686 /** 2565 /// Updates a GTM Tag.
2687 * Updates a GTM Tag. 2566 ///
2688 * 2567 /// [request] - The metadata request object.
2689 * [request] - The metadata request object. 2568 ///
2690 * 2569 /// Request parameters:
2691 * Request parameters: 2570 ///
2692 * 2571 /// [path] - GTM Tag's API relative path. Example:
2693 * [path] - GTM Tag's API relative path. Example: 2572 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ tags/{tag_id}
2694 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/t ags/{tag_id} 2573 ///
2695 * 2574 /// [fingerprint] - When provided, this fingerprint must match the
2696 * [fingerprint] - When provided, this fingerprint must match the fingerprint 2575 /// fingerprint of the tag in storage.
2697 * of the tag in storage. 2576 ///
2698 * 2577 /// Completes with a [Tag].
2699 * Completes with a [Tag]. 2578 ///
2700 * 2579 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2701 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2580 /// an error.
2702 * error. 2581 ///
2703 * 2582 /// If the used [http.Client] completes with an error when making a REST
2704 * If the used [http.Client] completes with an error when making a REST call, 2583 /// call, this method will complete with the same error.
2705 * this method will complete with the same error. 2584 async.Future<Tag> update(Tag request, core.String path,
2706 */ 2585 {core.String fingerprint}) {
2707 async.Future<Tag> update(Tag request, core.String path, {core.String fingerpri nt}) {
2708 var _url = null; 2586 var _url = null;
2709 var _queryParams = new core.Map(); 2587 var _queryParams = new core.Map();
2710 var _uploadMedia = null; 2588 var _uploadMedia = null;
2711 var _uploadOptions = null; 2589 var _uploadOptions = null;
2712 var _downloadOptions = commons.DownloadOptions.Metadata; 2590 var _downloadOptions = commons.DownloadOptions.Metadata;
2713 var _body = null; 2591 var _body = null;
2714 2592
2715 if (request != null) { 2593 if (request != null) {
2716 _body = convert.JSON.encode((request).toJson()); 2594 _body = convert.JSON.encode((request).toJson());
2717 } 2595 }
2718 if (path == null) { 2596 if (path == null) {
2719 throw new core.ArgumentError("Parameter path is required."); 2597 throw new core.ArgumentError("Parameter path is required.");
2720 } 2598 }
2721 if (fingerprint != null) { 2599 if (fingerprint != null) {
2722 _queryParams["fingerprint"] = [fingerprint]; 2600 _queryParams["fingerprint"] = [fingerprint];
2723 } 2601 }
2724 2602
2725 _url = commons.Escaper.ecapeVariableReserved('$path'); 2603 _url = commons.Escaper.ecapeVariableReserved('$path');
2726 2604
2727 var _response = _requester.request(_url, 2605 var _response = _requester.request(_url, "PUT",
2728 "PUT", 2606 body: _body,
2729 body: _body, 2607 queryParams: _queryParams,
2730 queryParams: _queryParams, 2608 uploadOptions: _uploadOptions,
2731 uploadOptions: _uploadOptions, 2609 uploadMedia: _uploadMedia,
2732 uploadMedia: _uploadMedia, 2610 downloadOptions: _downloadOptions);
2733 downloadOptions: _downloadOptions);
2734 return _response.then((data) => new Tag.fromJson(data)); 2611 return _response.then((data) => new Tag.fromJson(data));
2735 } 2612 }
2736
2737 } 2613 }
2738 2614
2739
2740 class AccountsContainersWorkspacesTriggersResourceApi { 2615 class AccountsContainersWorkspacesTriggersResourceApi {
2741 final commons.ApiRequester _requester; 2616 final commons.ApiRequester _requester;
2742 2617
2743 AccountsContainersWorkspacesTriggersResourceApi(commons.ApiRequester client) : 2618 AccountsContainersWorkspacesTriggersResourceApi(commons.ApiRequester client)
2744 _requester = client; 2619 : _requester = client;
2745 2620
2746 /** 2621 /// Creates a GTM Trigger.
2747 * Creates a GTM Trigger. 2622 ///
2748 * 2623 /// [request] - The metadata request object.
2749 * [request] - The metadata request object. 2624 ///
2750 * 2625 /// Request parameters:
2751 * Request parameters: 2626 ///
2752 * 2627 /// [parent] - GTM Workspaces's API relative path. Example:
2753 * [parent] - GTM Workspaces's API relative path. Example: 2628 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
2754 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 2629 ///
2755 * 2630 /// Completes with a [Trigger].
2756 * Completes with a [Trigger]. 2631 ///
2757 * 2632 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2758 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2633 /// an error.
2759 * error. 2634 ///
2760 * 2635 /// If the used [http.Client] completes with an error when making a REST
2761 * If the used [http.Client] completes with an error when making a REST call, 2636 /// call, this method will complete with the same error.
2762 * this method will complete with the same error.
2763 */
2764 async.Future<Trigger> create(Trigger request, core.String parent) { 2637 async.Future<Trigger> create(Trigger request, core.String parent) {
2765 var _url = null; 2638 var _url = null;
2766 var _queryParams = new core.Map(); 2639 var _queryParams = new core.Map();
2767 var _uploadMedia = null; 2640 var _uploadMedia = null;
2768 var _uploadOptions = null; 2641 var _uploadOptions = null;
2769 var _downloadOptions = commons.DownloadOptions.Metadata; 2642 var _downloadOptions = commons.DownloadOptions.Metadata;
2770 var _body = null; 2643 var _body = null;
2771 2644
2772 if (request != null) { 2645 if (request != null) {
2773 _body = convert.JSON.encode((request).toJson()); 2646 _body = convert.JSON.encode((request).toJson());
2774 } 2647 }
2775 if (parent == null) { 2648 if (parent == null) {
2776 throw new core.ArgumentError("Parameter parent is required."); 2649 throw new core.ArgumentError("Parameter parent is required.");
2777 } 2650 }
2778 2651
2779 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/triggers'; 2652 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/triggers';
2780 2653
2781 var _response = _requester.request(_url, 2654 var _response = _requester.request(_url, "POST",
2782 "POST", 2655 body: _body,
2783 body: _body, 2656 queryParams: _queryParams,
2784 queryParams: _queryParams, 2657 uploadOptions: _uploadOptions,
2785 uploadOptions: _uploadOptions, 2658 uploadMedia: _uploadMedia,
2786 uploadMedia: _uploadMedia, 2659 downloadOptions: _downloadOptions);
2787 downloadOptions: _downloadOptions);
2788 return _response.then((data) => new Trigger.fromJson(data)); 2660 return _response.then((data) => new Trigger.fromJson(data));
2789 } 2661 }
2790 2662
2791 /** 2663 /// Deletes a GTM Trigger.
2792 * Deletes a GTM Trigger. 2664 ///
2793 * 2665 /// Request parameters:
2794 * Request parameters: 2666 ///
2795 * 2667 /// [path] - GTM Trigger's API relative path. Example:
2796 * [path] - GTM Trigger's API relative path. Example: 2668 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ triggers/{trigger_id}
2797 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/t riggers/{trigger_id} 2669 ///
2798 * 2670 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2799 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2671 /// an error.
2800 * error. 2672 ///
2801 * 2673 /// If the used [http.Client] completes with an error when making a REST
2802 * If the used [http.Client] completes with an error when making a REST call, 2674 /// call, this method will complete with the same error.
2803 * this method will complete with the same error.
2804 */
2805 async.Future delete(core.String path) { 2675 async.Future delete(core.String path) {
2806 var _url = null; 2676 var _url = null;
2807 var _queryParams = new core.Map(); 2677 var _queryParams = new core.Map();
2808 var _uploadMedia = null; 2678 var _uploadMedia = null;
2809 var _uploadOptions = null; 2679 var _uploadOptions = null;
2810 var _downloadOptions = commons.DownloadOptions.Metadata; 2680 var _downloadOptions = commons.DownloadOptions.Metadata;
2811 var _body = null; 2681 var _body = null;
2812 2682
2813 if (path == null) { 2683 if (path == null) {
2814 throw new core.ArgumentError("Parameter path is required."); 2684 throw new core.ArgumentError("Parameter path is required.");
2815 } 2685 }
2816 2686
2817 _downloadOptions = null; 2687 _downloadOptions = null;
2818 2688
2819 _url = commons.Escaper.ecapeVariableReserved('$path'); 2689 _url = commons.Escaper.ecapeVariableReserved('$path');
2820 2690
2821 var _response = _requester.request(_url, 2691 var _response = _requester.request(_url, "DELETE",
2822 "DELETE", 2692 body: _body,
2823 body: _body, 2693 queryParams: _queryParams,
2824 queryParams: _queryParams, 2694 uploadOptions: _uploadOptions,
2825 uploadOptions: _uploadOptions, 2695 uploadMedia: _uploadMedia,
2826 uploadMedia: _uploadMedia, 2696 downloadOptions: _downloadOptions);
2827 downloadOptions: _downloadOptions);
2828 return _response.then((data) => null); 2697 return _response.then((data) => null);
2829 } 2698 }
2830 2699
2831 /** 2700 /// Gets a GTM Trigger.
2832 * Gets a GTM Trigger. 2701 ///
2833 * 2702 /// Request parameters:
2834 * Request parameters: 2703 ///
2835 * 2704 /// [path] - GTM Trigger's API relative path. Example:
2836 * [path] - GTM Trigger's API relative path. Example: 2705 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ triggers/{trigger_id}
2837 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/t riggers/{trigger_id} 2706 ///
2838 * 2707 /// Completes with a [Trigger].
2839 * Completes with a [Trigger]. 2708 ///
2840 * 2709 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2841 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2710 /// an error.
2842 * error. 2711 ///
2843 * 2712 /// If the used [http.Client] completes with an error when making a REST
2844 * If the used [http.Client] completes with an error when making a REST call, 2713 /// call, this method will complete with the same error.
2845 * this method will complete with the same error.
2846 */
2847 async.Future<Trigger> get(core.String path) { 2714 async.Future<Trigger> get(core.String path) {
2848 var _url = null; 2715 var _url = null;
2849 var _queryParams = new core.Map(); 2716 var _queryParams = new core.Map();
2850 var _uploadMedia = null; 2717 var _uploadMedia = null;
2851 var _uploadOptions = null; 2718 var _uploadOptions = null;
2852 var _downloadOptions = commons.DownloadOptions.Metadata; 2719 var _downloadOptions = commons.DownloadOptions.Metadata;
2853 var _body = null; 2720 var _body = null;
2854 2721
2855 if (path == null) { 2722 if (path == null) {
2856 throw new core.ArgumentError("Parameter path is required."); 2723 throw new core.ArgumentError("Parameter path is required.");
2857 } 2724 }
2858 2725
2859 _url = commons.Escaper.ecapeVariableReserved('$path'); 2726 _url = commons.Escaper.ecapeVariableReserved('$path');
2860 2727
2861 var _response = _requester.request(_url, 2728 var _response = _requester.request(_url, "GET",
2862 "GET", 2729 body: _body,
2863 body: _body, 2730 queryParams: _queryParams,
2864 queryParams: _queryParams, 2731 uploadOptions: _uploadOptions,
2865 uploadOptions: _uploadOptions, 2732 uploadMedia: _uploadMedia,
2866 uploadMedia: _uploadMedia, 2733 downloadOptions: _downloadOptions);
2867 downloadOptions: _downloadOptions);
2868 return _response.then((data) => new Trigger.fromJson(data)); 2734 return _response.then((data) => new Trigger.fromJson(data));
2869 } 2735 }
2870 2736
2871 /** 2737 /// Lists all GTM Triggers of a Container.
2872 * Lists all GTM Triggers of a Container. 2738 ///
2873 * 2739 /// Request parameters:
2874 * Request parameters: 2740 ///
2875 * 2741 /// [parent] - GTM Workspaces's API relative path. Example:
2876 * [parent] - GTM Workspaces's API relative path. Example: 2742 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
2877 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 2743 ///
2878 * 2744 /// [pageToken] - Continuation token for fetching the next page of results.
2879 * [pageToken] - Continuation token for fetching the next page of results. 2745 ///
2880 * 2746 /// Completes with a [ListTriggersResponse].
2881 * Completes with a [ListTriggersResponse]. 2747 ///
2882 * 2748 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2883 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2749 /// an error.
2884 * error. 2750 ///
2885 * 2751 /// If the used [http.Client] completes with an error when making a REST
2886 * If the used [http.Client] completes with an error when making a REST call, 2752 /// call, this method will complete with the same error.
2887 * this method will complete with the same error. 2753 async.Future<ListTriggersResponse> list(core.String parent,
2888 */ 2754 {core.String pageToken}) {
2889 async.Future<ListTriggersResponse> list(core.String parent, {core.String pageT oken}) {
2890 var _url = null; 2755 var _url = null;
2891 var _queryParams = new core.Map(); 2756 var _queryParams = new core.Map();
2892 var _uploadMedia = null; 2757 var _uploadMedia = null;
2893 var _uploadOptions = null; 2758 var _uploadOptions = null;
2894 var _downloadOptions = commons.DownloadOptions.Metadata; 2759 var _downloadOptions = commons.DownloadOptions.Metadata;
2895 var _body = null; 2760 var _body = null;
2896 2761
2897 if (parent == null) { 2762 if (parent == null) {
2898 throw new core.ArgumentError("Parameter parent is required."); 2763 throw new core.ArgumentError("Parameter parent is required.");
2899 } 2764 }
2900 if (pageToken != null) { 2765 if (pageToken != null) {
2901 _queryParams["pageToken"] = [pageToken]; 2766 _queryParams["pageToken"] = [pageToken];
2902 } 2767 }
2903 2768
2904 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/triggers'; 2769 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/triggers';
2905 2770
2906 var _response = _requester.request(_url, 2771 var _response = _requester.request(_url, "GET",
2907 "GET", 2772 body: _body,
2908 body: _body, 2773 queryParams: _queryParams,
2909 queryParams: _queryParams, 2774 uploadOptions: _uploadOptions,
2910 uploadOptions: _uploadOptions, 2775 uploadMedia: _uploadMedia,
2911 uploadMedia: _uploadMedia, 2776 downloadOptions: _downloadOptions);
2912 downloadOptions: _downloadOptions);
2913 return _response.then((data) => new ListTriggersResponse.fromJson(data)); 2777 return _response.then((data) => new ListTriggersResponse.fromJson(data));
2914 } 2778 }
2915 2779
2916 /** 2780 /// Reverts changes to a GTM Trigger in a GTM Workspace.
2917 * Reverts changes to a GTM Trigger in a GTM Workspace. 2781 ///
2918 * 2782 /// Request parameters:
2919 * Request parameters: 2783 ///
2920 * 2784 /// [path] - GTM Trigger's API relative path. Example:
2921 * [path] - GTM Trigger's API relative path. Example: 2785 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ triggers/{trigger_id}
2922 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/t riggers/{trigger_id} 2786 ///
2923 * 2787 /// [fingerprint] - When provided, this fingerprint must match the
2924 * [fingerprint] - When provided, this fingerprint must match the fingerprint 2788 /// fingerprint of the trigger in storage.
2925 * of the trigger in storage. 2789 ///
2926 * 2790 /// Completes with a [RevertTriggerResponse].
2927 * Completes with a [RevertTriggerResponse]. 2791 ///
2928 * 2792 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2929 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2793 /// an error.
2930 * error. 2794 ///
2931 * 2795 /// If the used [http.Client] completes with an error when making a REST
2932 * If the used [http.Client] completes with an error when making a REST call, 2796 /// call, this method will complete with the same error.
2933 * this method will complete with the same error. 2797 async.Future<RevertTriggerResponse> revert(core.String path,
2934 */ 2798 {core.String fingerprint}) {
2935 async.Future<RevertTriggerResponse> revert(core.String path, {core.String fing erprint}) {
2936 var _url = null; 2799 var _url = null;
2937 var _queryParams = new core.Map(); 2800 var _queryParams = new core.Map();
2938 var _uploadMedia = null; 2801 var _uploadMedia = null;
2939 var _uploadOptions = null; 2802 var _uploadOptions = null;
2940 var _downloadOptions = commons.DownloadOptions.Metadata; 2803 var _downloadOptions = commons.DownloadOptions.Metadata;
2941 var _body = null; 2804 var _body = null;
2942 2805
2943 if (path == null) { 2806 if (path == null) {
2944 throw new core.ArgumentError("Parameter path is required."); 2807 throw new core.ArgumentError("Parameter path is required.");
2945 } 2808 }
2946 if (fingerprint != null) { 2809 if (fingerprint != null) {
2947 _queryParams["fingerprint"] = [fingerprint]; 2810 _queryParams["fingerprint"] = [fingerprint];
2948 } 2811 }
2949 2812
2950 _url = commons.Escaper.ecapeVariableReserved('$path') + ':revert'; 2813 _url = commons.Escaper.ecapeVariableReserved('$path') + ':revert';
2951 2814
2952 var _response = _requester.request(_url, 2815 var _response = _requester.request(_url, "POST",
2953 "POST", 2816 body: _body,
2954 body: _body, 2817 queryParams: _queryParams,
2955 queryParams: _queryParams, 2818 uploadOptions: _uploadOptions,
2956 uploadOptions: _uploadOptions, 2819 uploadMedia: _uploadMedia,
2957 uploadMedia: _uploadMedia, 2820 downloadOptions: _downloadOptions);
2958 downloadOptions: _downloadOptions);
2959 return _response.then((data) => new RevertTriggerResponse.fromJson(data)); 2821 return _response.then((data) => new RevertTriggerResponse.fromJson(data));
2960 } 2822 }
2961 2823
2962 /** 2824 /// Updates a GTM Trigger.
2963 * Updates a GTM Trigger. 2825 ///
2964 * 2826 /// [request] - The metadata request object.
2965 * [request] - The metadata request object. 2827 ///
2966 * 2828 /// Request parameters:
2967 * Request parameters: 2829 ///
2968 * 2830 /// [path] - GTM Trigger's API relative path. Example:
2969 * [path] - GTM Trigger's API relative path. Example: 2831 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ triggers/{trigger_id}
2970 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/t riggers/{trigger_id} 2832 ///
2971 * 2833 /// [fingerprint] - When provided, this fingerprint must match the
2972 * [fingerprint] - When provided, this fingerprint must match the fingerprint 2834 /// fingerprint of the trigger in storage.
2973 * of the trigger in storage. 2835 ///
2974 * 2836 /// Completes with a [Trigger].
2975 * Completes with a [Trigger]. 2837 ///
2976 * 2838 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2977 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2839 /// an error.
2978 * error. 2840 ///
2979 * 2841 /// If the used [http.Client] completes with an error when making a REST
2980 * If the used [http.Client] completes with an error when making a REST call, 2842 /// call, this method will complete with the same error.
2981 * this method will complete with the same error. 2843 async.Future<Trigger> update(Trigger request, core.String path,
2982 */ 2844 {core.String fingerprint}) {
2983 async.Future<Trigger> update(Trigger request, core.String path, {core.String f ingerprint}) {
2984 var _url = null; 2845 var _url = null;
2985 var _queryParams = new core.Map(); 2846 var _queryParams = new core.Map();
2986 var _uploadMedia = null; 2847 var _uploadMedia = null;
2987 var _uploadOptions = null; 2848 var _uploadOptions = null;
2988 var _downloadOptions = commons.DownloadOptions.Metadata; 2849 var _downloadOptions = commons.DownloadOptions.Metadata;
2989 var _body = null; 2850 var _body = null;
2990 2851
2991 if (request != null) { 2852 if (request != null) {
2992 _body = convert.JSON.encode((request).toJson()); 2853 _body = convert.JSON.encode((request).toJson());
2993 } 2854 }
2994 if (path == null) { 2855 if (path == null) {
2995 throw new core.ArgumentError("Parameter path is required."); 2856 throw new core.ArgumentError("Parameter path is required.");
2996 } 2857 }
2997 if (fingerprint != null) { 2858 if (fingerprint != null) {
2998 _queryParams["fingerprint"] = [fingerprint]; 2859 _queryParams["fingerprint"] = [fingerprint];
2999 } 2860 }
3000 2861
3001 _url = commons.Escaper.ecapeVariableReserved('$path'); 2862 _url = commons.Escaper.ecapeVariableReserved('$path');
3002 2863
3003 var _response = _requester.request(_url, 2864 var _response = _requester.request(_url, "PUT",
3004 "PUT", 2865 body: _body,
3005 body: _body, 2866 queryParams: _queryParams,
3006 queryParams: _queryParams, 2867 uploadOptions: _uploadOptions,
3007 uploadOptions: _uploadOptions, 2868 uploadMedia: _uploadMedia,
3008 uploadMedia: _uploadMedia, 2869 downloadOptions: _downloadOptions);
3009 downloadOptions: _downloadOptions);
3010 return _response.then((data) => new Trigger.fromJson(data)); 2870 return _response.then((data) => new Trigger.fromJson(data));
3011 } 2871 }
3012
3013 } 2872 }
3014 2873
3015
3016 class AccountsContainersWorkspacesVariablesResourceApi { 2874 class AccountsContainersWorkspacesVariablesResourceApi {
3017 final commons.ApiRequester _requester; 2875 final commons.ApiRequester _requester;
3018 2876
3019 AccountsContainersWorkspacesVariablesResourceApi(commons.ApiRequester client) : 2877 AccountsContainersWorkspacesVariablesResourceApi(commons.ApiRequester client)
3020 _requester = client; 2878 : _requester = client;
3021 2879
3022 /** 2880 /// Creates a GTM Variable.
3023 * Creates a GTM Variable. 2881 ///
3024 * 2882 /// [request] - The metadata request object.
3025 * [request] - The metadata request object. 2883 ///
3026 * 2884 /// Request parameters:
3027 * Request parameters: 2885 ///
3028 * 2886 /// [parent] - GTM Workspace's API relative path. Example:
3029 * [parent] - GTM Workspace's API relative path. Example: 2887 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
3030 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 2888 ///
3031 * 2889 /// Completes with a [Variable].
3032 * Completes with a [Variable]. 2890 ///
3033 * 2891 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3034 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2892 /// an error.
3035 * error. 2893 ///
3036 * 2894 /// If the used [http.Client] completes with an error when making a REST
3037 * If the used [http.Client] completes with an error when making a REST call, 2895 /// call, this method will complete with the same error.
3038 * this method will complete with the same error.
3039 */
3040 async.Future<Variable> create(Variable request, core.String parent) { 2896 async.Future<Variable> create(Variable request, core.String parent) {
3041 var _url = null; 2897 var _url = null;
3042 var _queryParams = new core.Map(); 2898 var _queryParams = new core.Map();
3043 var _uploadMedia = null; 2899 var _uploadMedia = null;
3044 var _uploadOptions = null; 2900 var _uploadOptions = null;
3045 var _downloadOptions = commons.DownloadOptions.Metadata; 2901 var _downloadOptions = commons.DownloadOptions.Metadata;
3046 var _body = null; 2902 var _body = null;
3047 2903
3048 if (request != null) { 2904 if (request != null) {
3049 _body = convert.JSON.encode((request).toJson()); 2905 _body = convert.JSON.encode((request).toJson());
3050 } 2906 }
3051 if (parent == null) { 2907 if (parent == null) {
3052 throw new core.ArgumentError("Parameter parent is required."); 2908 throw new core.ArgumentError("Parameter parent is required.");
3053 } 2909 }
3054 2910
3055 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/variables'; 2911 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/variables';
3056 2912
3057 var _response = _requester.request(_url, 2913 var _response = _requester.request(_url, "POST",
3058 "POST", 2914 body: _body,
3059 body: _body, 2915 queryParams: _queryParams,
3060 queryParams: _queryParams, 2916 uploadOptions: _uploadOptions,
3061 uploadOptions: _uploadOptions, 2917 uploadMedia: _uploadMedia,
3062 uploadMedia: _uploadMedia, 2918 downloadOptions: _downloadOptions);
3063 downloadOptions: _downloadOptions);
3064 return _response.then((data) => new Variable.fromJson(data)); 2919 return _response.then((data) => new Variable.fromJson(data));
3065 } 2920 }
3066 2921
3067 /** 2922 /// Deletes a GTM Variable.
3068 * Deletes a GTM Variable. 2923 ///
3069 * 2924 /// Request parameters:
3070 * Request parameters: 2925 ///
3071 * 2926 /// [path] - GTM Variable's API relative path. Example:
3072 * [path] - GTM Variable's API relative path. Example: 2927 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ variables/{variable_id}
3073 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/v ariables/{variable_id} 2928 ///
3074 * 2929 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3075 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2930 /// an error.
3076 * error. 2931 ///
3077 * 2932 /// If the used [http.Client] completes with an error when making a REST
3078 * If the used [http.Client] completes with an error when making a REST call, 2933 /// call, this method will complete with the same error.
3079 * this method will complete with the same error.
3080 */
3081 async.Future delete(core.String path) { 2934 async.Future delete(core.String path) {
3082 var _url = null; 2935 var _url = null;
3083 var _queryParams = new core.Map(); 2936 var _queryParams = new core.Map();
3084 var _uploadMedia = null; 2937 var _uploadMedia = null;
3085 var _uploadOptions = null; 2938 var _uploadOptions = null;
3086 var _downloadOptions = commons.DownloadOptions.Metadata; 2939 var _downloadOptions = commons.DownloadOptions.Metadata;
3087 var _body = null; 2940 var _body = null;
3088 2941
3089 if (path == null) { 2942 if (path == null) {
3090 throw new core.ArgumentError("Parameter path is required."); 2943 throw new core.ArgumentError("Parameter path is required.");
3091 } 2944 }
3092 2945
3093 _downloadOptions = null; 2946 _downloadOptions = null;
3094 2947
3095 _url = commons.Escaper.ecapeVariableReserved('$path'); 2948 _url = commons.Escaper.ecapeVariableReserved('$path');
3096 2949
3097 var _response = _requester.request(_url, 2950 var _response = _requester.request(_url, "DELETE",
3098 "DELETE", 2951 body: _body,
3099 body: _body, 2952 queryParams: _queryParams,
3100 queryParams: _queryParams, 2953 uploadOptions: _uploadOptions,
3101 uploadOptions: _uploadOptions, 2954 uploadMedia: _uploadMedia,
3102 uploadMedia: _uploadMedia, 2955 downloadOptions: _downloadOptions);
3103 downloadOptions: _downloadOptions);
3104 return _response.then((data) => null); 2956 return _response.then((data) => null);
3105 } 2957 }
3106 2958
3107 /** 2959 /// Gets a GTM Variable.
3108 * Gets a GTM Variable. 2960 ///
3109 * 2961 /// Request parameters:
3110 * Request parameters: 2962 ///
3111 * 2963 /// [path] - GTM Variable's API relative path. Example:
3112 * [path] - GTM Variable's API relative path. Example: 2964 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ variables/{variable_id}
3113 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/v ariables/{variable_id} 2965 ///
3114 * 2966 /// Completes with a [Variable].
3115 * Completes with a [Variable]. 2967 ///
3116 * 2968 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3117 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2969 /// an error.
3118 * error. 2970 ///
3119 * 2971 /// If the used [http.Client] completes with an error when making a REST
3120 * If the used [http.Client] completes with an error when making a REST call, 2972 /// call, this method will complete with the same error.
3121 * this method will complete with the same error.
3122 */
3123 async.Future<Variable> get(core.String path) { 2973 async.Future<Variable> get(core.String path) {
3124 var _url = null; 2974 var _url = null;
3125 var _queryParams = new core.Map(); 2975 var _queryParams = new core.Map();
3126 var _uploadMedia = null; 2976 var _uploadMedia = null;
3127 var _uploadOptions = null; 2977 var _uploadOptions = null;
3128 var _downloadOptions = commons.DownloadOptions.Metadata; 2978 var _downloadOptions = commons.DownloadOptions.Metadata;
3129 var _body = null; 2979 var _body = null;
3130 2980
3131 if (path == null) { 2981 if (path == null) {
3132 throw new core.ArgumentError("Parameter path is required."); 2982 throw new core.ArgumentError("Parameter path is required.");
3133 } 2983 }
3134 2984
3135 _url = commons.Escaper.ecapeVariableReserved('$path'); 2985 _url = commons.Escaper.ecapeVariableReserved('$path');
3136 2986
3137 var _response = _requester.request(_url, 2987 var _response = _requester.request(_url, "GET",
3138 "GET", 2988 body: _body,
3139 body: _body, 2989 queryParams: _queryParams,
3140 queryParams: _queryParams, 2990 uploadOptions: _uploadOptions,
3141 uploadOptions: _uploadOptions, 2991 uploadMedia: _uploadMedia,
3142 uploadMedia: _uploadMedia, 2992 downloadOptions: _downloadOptions);
3143 downloadOptions: _downloadOptions);
3144 return _response.then((data) => new Variable.fromJson(data)); 2993 return _response.then((data) => new Variable.fromJson(data));
3145 } 2994 }
3146 2995
3147 /** 2996 /// Lists all GTM Variables of a Container.
3148 * Lists all GTM Variables of a Container. 2997 ///
3149 * 2998 /// Request parameters:
3150 * Request parameters: 2999 ///
3151 * 3000 /// [parent] - GTM Workspace's API relative path. Example:
3152 * [parent] - GTM Workspace's API relative path. Example: 3001 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
3153 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} 3002 ///
3154 * 3003 /// [pageToken] - Continuation token for fetching the next page of results.
3155 * [pageToken] - Continuation token for fetching the next page of results. 3004 ///
3156 * 3005 /// Completes with a [ListVariablesResponse].
3157 * Completes with a [ListVariablesResponse]. 3006 ///
3158 * 3007 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3159 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3008 /// an error.
3160 * error. 3009 ///
3161 * 3010 /// If the used [http.Client] completes with an error when making a REST
3162 * If the used [http.Client] completes with an error when making a REST call, 3011 /// call, this method will complete with the same error.
3163 * this method will complete with the same error. 3012 async.Future<ListVariablesResponse> list(core.String parent,
3164 */ 3013 {core.String pageToken}) {
3165 async.Future<ListVariablesResponse> list(core.String parent, {core.String page Token}) {
3166 var _url = null; 3014 var _url = null;
3167 var _queryParams = new core.Map(); 3015 var _queryParams = new core.Map();
3168 var _uploadMedia = null; 3016 var _uploadMedia = null;
3169 var _uploadOptions = null; 3017 var _uploadOptions = null;
3170 var _downloadOptions = commons.DownloadOptions.Metadata; 3018 var _downloadOptions = commons.DownloadOptions.Metadata;
3171 var _body = null; 3019 var _body = null;
3172 3020
3173 if (parent == null) { 3021 if (parent == null) {
3174 throw new core.ArgumentError("Parameter parent is required."); 3022 throw new core.ArgumentError("Parameter parent is required.");
3175 } 3023 }
3176 if (pageToken != null) { 3024 if (pageToken != null) {
3177 _queryParams["pageToken"] = [pageToken]; 3025 _queryParams["pageToken"] = [pageToken];
3178 } 3026 }
3179 3027
3180 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/variables'; 3028 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/variables';
3181 3029
3182 var _response = _requester.request(_url, 3030 var _response = _requester.request(_url, "GET",
3183 "GET", 3031 body: _body,
3184 body: _body, 3032 queryParams: _queryParams,
3185 queryParams: _queryParams, 3033 uploadOptions: _uploadOptions,
3186 uploadOptions: _uploadOptions, 3034 uploadMedia: _uploadMedia,
3187 uploadMedia: _uploadMedia, 3035 downloadOptions: _downloadOptions);
3188 downloadOptions: _downloadOptions);
3189 return _response.then((data) => new ListVariablesResponse.fromJson(data)); 3036 return _response.then((data) => new ListVariablesResponse.fromJson(data));
3190 } 3037 }
3191 3038
3192 /** 3039 /// Reverts changes to a GTM Variable in a GTM Workspace.
3193 * Reverts changes to a GTM Variable in a GTM Workspace. 3040 ///
3194 * 3041 /// Request parameters:
3195 * Request parameters: 3042 ///
3196 * 3043 /// [path] - GTM Variable's API relative path. Example:
3197 * [path] - GTM Variable's API relative path. Example: 3044 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ variables/{variable_id}
3198 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/v ariables/{variable_id} 3045 ///
3199 * 3046 /// [fingerprint] - When provided, this fingerprint must match the
3200 * [fingerprint] - When provided, this fingerprint must match the fingerprint 3047 /// fingerprint of the variable in storage.
3201 * of the variable in storage. 3048 ///
3202 * 3049 /// Completes with a [RevertVariableResponse].
3203 * Completes with a [RevertVariableResponse]. 3050 ///
3204 * 3051 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3205 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3052 /// an error.
3206 * error. 3053 ///
3207 * 3054 /// If the used [http.Client] completes with an error when making a REST
3208 * If the used [http.Client] completes with an error when making a REST call, 3055 /// call, this method will complete with the same error.
3209 * this method will complete with the same error. 3056 async.Future<RevertVariableResponse> revert(core.String path,
3210 */ 3057 {core.String fingerprint}) {
3211 async.Future<RevertVariableResponse> revert(core.String path, {core.String fin gerprint}) {
3212 var _url = null; 3058 var _url = null;
3213 var _queryParams = new core.Map(); 3059 var _queryParams = new core.Map();
3214 var _uploadMedia = null; 3060 var _uploadMedia = null;
3215 var _uploadOptions = null; 3061 var _uploadOptions = null;
3216 var _downloadOptions = commons.DownloadOptions.Metadata; 3062 var _downloadOptions = commons.DownloadOptions.Metadata;
3217 var _body = null; 3063 var _body = null;
3218 3064
3219 if (path == null) { 3065 if (path == null) {
3220 throw new core.ArgumentError("Parameter path is required."); 3066 throw new core.ArgumentError("Parameter path is required.");
3221 } 3067 }
3222 if (fingerprint != null) { 3068 if (fingerprint != null) {
3223 _queryParams["fingerprint"] = [fingerprint]; 3069 _queryParams["fingerprint"] = [fingerprint];
3224 } 3070 }
3225 3071
3226 _url = commons.Escaper.ecapeVariableReserved('$path') + ':revert'; 3072 _url = commons.Escaper.ecapeVariableReserved('$path') + ':revert';
3227 3073
3228 var _response = _requester.request(_url, 3074 var _response = _requester.request(_url, "POST",
3229 "POST", 3075 body: _body,
3230 body: _body, 3076 queryParams: _queryParams,
3231 queryParams: _queryParams, 3077 uploadOptions: _uploadOptions,
3232 uploadOptions: _uploadOptions, 3078 uploadMedia: _uploadMedia,
3233 uploadMedia: _uploadMedia, 3079 downloadOptions: _downloadOptions);
3234 downloadOptions: _downloadOptions);
3235 return _response.then((data) => new RevertVariableResponse.fromJson(data)); 3080 return _response.then((data) => new RevertVariableResponse.fromJson(data));
3236 } 3081 }
3237 3082
3238 /** 3083 /// Updates a GTM Variable.
3239 * Updates a GTM Variable. 3084 ///
3240 * 3085 /// [request] - The metadata request object.
3241 * [request] - The metadata request object. 3086 ///
3242 * 3087 /// Request parameters:
3243 * Request parameters: 3088 ///
3244 * 3089 /// [path] - GTM Variable's API relative path. Example:
3245 * [path] - GTM Variable's API relative path. Example: 3090 /// accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/ variables/{variable_id}
3246 * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/v ariables/{variable_id} 3091 ///
3247 * 3092 /// [fingerprint] - When provided, this fingerprint must match the
3248 * [fingerprint] - When provided, this fingerprint must match the fingerprint 3093 /// fingerprint of the variable in storage.
3249 * of the variable in storage. 3094 ///
3250 * 3095 /// Completes with a [Variable].
3251 * Completes with a [Variable]. 3096 ///
3252 * 3097 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3253 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3098 /// an error.
3254 * error. 3099 ///
3255 * 3100 /// If the used [http.Client] completes with an error when making a REST
3256 * If the used [http.Client] completes with an error when making a REST call, 3101 /// call, this method will complete with the same error.
3257 * this method will complete with the same error. 3102 async.Future<Variable> update(Variable request, core.String path,
3258 */ 3103 {core.String fingerprint}) {
3259 async.Future<Variable> update(Variable request, core.String path, {core.String fingerprint}) {
3260 var _url = null; 3104 var _url = null;
3261 var _queryParams = new core.Map(); 3105 var _queryParams = new core.Map();
3262 var _uploadMedia = null; 3106 var _uploadMedia = null;
3263 var _uploadOptions = null; 3107 var _uploadOptions = null;
3264 var _downloadOptions = commons.DownloadOptions.Metadata; 3108 var _downloadOptions = commons.DownloadOptions.Metadata;
3265 var _body = null; 3109 var _body = null;
3266 3110
3267 if (request != null) { 3111 if (request != null) {
3268 _body = convert.JSON.encode((request).toJson()); 3112 _body = convert.JSON.encode((request).toJson());
3269 } 3113 }
3270 if (path == null) { 3114 if (path == null) {
3271 throw new core.ArgumentError("Parameter path is required."); 3115 throw new core.ArgumentError("Parameter path is required.");
3272 } 3116 }
3273 if (fingerprint != null) { 3117 if (fingerprint != null) {
3274 _queryParams["fingerprint"] = [fingerprint]; 3118 _queryParams["fingerprint"] = [fingerprint];
3275 } 3119 }
3276 3120
3277 _url = commons.Escaper.ecapeVariableReserved('$path'); 3121 _url = commons.Escaper.ecapeVariableReserved('$path');
3278 3122
3279 var _response = _requester.request(_url, 3123 var _response = _requester.request(_url, "PUT",
3280 "PUT", 3124 body: _body,
3281 body: _body, 3125 queryParams: _queryParams,
3282 queryParams: _queryParams, 3126 uploadOptions: _uploadOptions,
3283 uploadOptions: _uploadOptions, 3127 uploadMedia: _uploadMedia,
3284 uploadMedia: _uploadMedia, 3128 downloadOptions: _downloadOptions);
3285 downloadOptions: _downloadOptions);
3286 return _response.then((data) => new Variable.fromJson(data)); 3129 return _response.then((data) => new Variable.fromJson(data));
3287 } 3130 }
3288
3289 } 3131 }
3290 3132
3291
3292 class AccountsUserPermissionsResourceApi { 3133 class AccountsUserPermissionsResourceApi {
3293 final commons.ApiRequester _requester; 3134 final commons.ApiRequester _requester;
3294 3135
3295 AccountsUserPermissionsResourceApi(commons.ApiRequester client) : 3136 AccountsUserPermissionsResourceApi(commons.ApiRequester client)
3296 _requester = client; 3137 : _requester = client;
3297 3138
3298 /** 3139 /// Creates a user's Account & Container access.
3299 * Creates a user's Account & Container access. 3140 ///
3300 * 3141 /// [request] - The metadata request object.
3301 * [request] - The metadata request object. 3142 ///
3302 * 3143 /// Request parameters:
3303 * Request parameters: 3144 ///
3304 * 3145 /// [parent] - GTM Account's API relative path. Example:
3305 * [parent] - GTM Account's API relative path. Example: accounts/{account_id} 3146 /// accounts/{account_id}
3306 * 3147 ///
3307 * Completes with a [UserPermission]. 3148 /// Completes with a [UserPermission].
3308 * 3149 ///
3309 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3150 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3310 * error. 3151 /// an error.
3311 * 3152 ///
3312 * If the used [http.Client] completes with an error when making a REST call, 3153 /// If the used [http.Client] completes with an error when making a REST
3313 * this method will complete with the same error. 3154 /// call, this method will complete with the same error.
3314 */ 3155 async.Future<UserPermission> create(
3315 async.Future<UserPermission> create(UserPermission request, core.String parent ) { 3156 UserPermission request, core.String parent) {
3316 var _url = null; 3157 var _url = null;
3317 var _queryParams = new core.Map(); 3158 var _queryParams = new core.Map();
3318 var _uploadMedia = null; 3159 var _uploadMedia = null;
3319 var _uploadOptions = null; 3160 var _uploadOptions = null;
3320 var _downloadOptions = commons.DownloadOptions.Metadata; 3161 var _downloadOptions = commons.DownloadOptions.Metadata;
3321 var _body = null; 3162 var _body = null;
3322 3163
3323 if (request != null) { 3164 if (request != null) {
3324 _body = convert.JSON.encode((request).toJson()); 3165 _body = convert.JSON.encode((request).toJson());
3325 } 3166 }
3326 if (parent == null) { 3167 if (parent == null) {
3327 throw new core.ArgumentError("Parameter parent is required."); 3168 throw new core.ArgumentError("Parameter parent is required.");
3328 } 3169 }
3329 3170
3330 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/user_permissions '; 3171 _url =
3172 commons.Escaper.ecapeVariableReserved('$parent') + '/user_permissions';
3331 3173
3332 var _response = _requester.request(_url, 3174 var _response = _requester.request(_url, "POST",
3333 "POST", 3175 body: _body,
3334 body: _body, 3176 queryParams: _queryParams,
3335 queryParams: _queryParams, 3177 uploadOptions: _uploadOptions,
3336 uploadOptions: _uploadOptions, 3178 uploadMedia: _uploadMedia,
3337 uploadMedia: _uploadMedia, 3179 downloadOptions: _downloadOptions);
3338 downloadOptions: _downloadOptions);
3339 return _response.then((data) => new UserPermission.fromJson(data)); 3180 return _response.then((data) => new UserPermission.fromJson(data));
3340 } 3181 }
3341 3182
3342 /** 3183 /// Removes a user from the account, revoking access to it and all of its
3343 * Removes a user from the account, revoking access to it and all of its 3184 /// containers.
3344 * containers. 3185 ///
3345 * 3186 /// Request parameters:
3346 * Request parameters: 3187 ///
3347 * 3188 /// [path] - GTM UserPermission's API relative path. Example:
3348 * [path] - GTM UserPermission's API relative path. Example: 3189 /// accounts/{account_id}/user_permissions/{user_permission_id}
3349 * accounts/{account_id}/user_permissions/{user_permission_id} 3190 ///
3350 * 3191 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3351 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3192 /// an error.
3352 * error. 3193 ///
3353 * 3194 /// If the used [http.Client] completes with an error when making a REST
3354 * If the used [http.Client] completes with an error when making a REST call, 3195 /// call, this method will complete with the same error.
3355 * this method will complete with the same error.
3356 */
3357 async.Future delete(core.String path) { 3196 async.Future delete(core.String path) {
3358 var _url = null; 3197 var _url = null;
3359 var _queryParams = new core.Map(); 3198 var _queryParams = new core.Map();
3360 var _uploadMedia = null; 3199 var _uploadMedia = null;
3361 var _uploadOptions = null; 3200 var _uploadOptions = null;
3362 var _downloadOptions = commons.DownloadOptions.Metadata; 3201 var _downloadOptions = commons.DownloadOptions.Metadata;
3363 var _body = null; 3202 var _body = null;
3364 3203
3365 if (path == null) { 3204 if (path == null) {
3366 throw new core.ArgumentError("Parameter path is required."); 3205 throw new core.ArgumentError("Parameter path is required.");
3367 } 3206 }
3368 3207
3369 _downloadOptions = null; 3208 _downloadOptions = null;
3370 3209
3371 _url = commons.Escaper.ecapeVariableReserved('$path'); 3210 _url = commons.Escaper.ecapeVariableReserved('$path');
3372 3211
3373 var _response = _requester.request(_url, 3212 var _response = _requester.request(_url, "DELETE",
3374 "DELETE", 3213 body: _body,
3375 body: _body, 3214 queryParams: _queryParams,
3376 queryParams: _queryParams, 3215 uploadOptions: _uploadOptions,
3377 uploadOptions: _uploadOptions, 3216 uploadMedia: _uploadMedia,
3378 uploadMedia: _uploadMedia, 3217 downloadOptions: _downloadOptions);
3379 downloadOptions: _downloadOptions);
3380 return _response.then((data) => null); 3218 return _response.then((data) => null);
3381 } 3219 }
3382 3220
3383 /** 3221 /// Gets a user's Account & Container access.
3384 * Gets a user's Account & Container access. 3222 ///
3385 * 3223 /// Request parameters:
3386 * Request parameters: 3224 ///
3387 * 3225 /// [path] - GTM UserPermission's API relative path. Example:
3388 * [path] - GTM UserPermission's API relative path. Example: 3226 /// accounts/{account_id}/user_permissions/{user_permission_id}
3389 * accounts/{account_id}/user_permissions/{user_permission_id} 3227 ///
3390 * 3228 /// Completes with a [UserPermission].
3391 * Completes with a [UserPermission]. 3229 ///
3392 * 3230 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3393 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3231 /// an error.
3394 * error. 3232 ///
3395 * 3233 /// If the used [http.Client] completes with an error when making a REST
3396 * If the used [http.Client] completes with an error when making a REST call, 3234 /// call, this method will complete with the same error.
3397 * this method will complete with the same error.
3398 */
3399 async.Future<UserPermission> get(core.String path) { 3235 async.Future<UserPermission> get(core.String path) {
3400 var _url = null; 3236 var _url = null;
3401 var _queryParams = new core.Map(); 3237 var _queryParams = new core.Map();
3402 var _uploadMedia = null; 3238 var _uploadMedia = null;
3403 var _uploadOptions = null; 3239 var _uploadOptions = null;
3404 var _downloadOptions = commons.DownloadOptions.Metadata; 3240 var _downloadOptions = commons.DownloadOptions.Metadata;
3405 var _body = null; 3241 var _body = null;
3406 3242
3407 if (path == null) { 3243 if (path == null) {
3408 throw new core.ArgumentError("Parameter path is required."); 3244 throw new core.ArgumentError("Parameter path is required.");
3409 } 3245 }
3410 3246
3411 _url = commons.Escaper.ecapeVariableReserved('$path'); 3247 _url = commons.Escaper.ecapeVariableReserved('$path');
3412 3248
3413 var _response = _requester.request(_url, 3249 var _response = _requester.request(_url, "GET",
3414 "GET", 3250 body: _body,
3415 body: _body, 3251 queryParams: _queryParams,
3416 queryParams: _queryParams, 3252 uploadOptions: _uploadOptions,
3417 uploadOptions: _uploadOptions, 3253 uploadMedia: _uploadMedia,
3418 uploadMedia: _uploadMedia, 3254 downloadOptions: _downloadOptions);
3419 downloadOptions: _downloadOptions);
3420 return _response.then((data) => new UserPermission.fromJson(data)); 3255 return _response.then((data) => new UserPermission.fromJson(data));
3421 } 3256 }
3422 3257
3423 /** 3258 /// List all users that have access to the account along with Account and
3424 * List all users that have access to the account along with Account and 3259 /// Container user access granted to each of them.
3425 * Container user access granted to each of them. 3260 ///
3426 * 3261 /// Request parameters:
3427 * Request parameters: 3262 ///
3428 * 3263 /// [parent] - GTM Accounts's API relative path. Example:
3429 * [parent] - GTM Accounts's API relative path. Example: accounts/{account_id} 3264 /// accounts/{account_id}
3430 * 3265 ///
3431 * [pageToken] - Continuation token for fetching the next page of results. 3266 /// [pageToken] - Continuation token for fetching the next page of results.
3432 * 3267 ///
3433 * Completes with a [ListUserPermissionsResponse]. 3268 /// Completes with a [ListUserPermissionsResponse].
3434 * 3269 ///
3435 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3270 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3436 * error. 3271 /// an error.
3437 * 3272 ///
3438 * If the used [http.Client] completes with an error when making a REST call, 3273 /// If the used [http.Client] completes with an error when making a REST
3439 * this method will complete with the same error. 3274 /// call, this method will complete with the same error.
3440 */ 3275 async.Future<ListUserPermissionsResponse> list(core.String parent,
3441 async.Future<ListUserPermissionsResponse> list(core.String parent, {core.Strin g pageToken}) { 3276 {core.String pageToken}) {
3442 var _url = null; 3277 var _url = null;
3443 var _queryParams = new core.Map(); 3278 var _queryParams = new core.Map();
3444 var _uploadMedia = null; 3279 var _uploadMedia = null;
3445 var _uploadOptions = null; 3280 var _uploadOptions = null;
3446 var _downloadOptions = commons.DownloadOptions.Metadata; 3281 var _downloadOptions = commons.DownloadOptions.Metadata;
3447 var _body = null; 3282 var _body = null;
3448 3283
3449 if (parent == null) { 3284 if (parent == null) {
3450 throw new core.ArgumentError("Parameter parent is required."); 3285 throw new core.ArgumentError("Parameter parent is required.");
3451 } 3286 }
3452 if (pageToken != null) { 3287 if (pageToken != null) {
3453 _queryParams["pageToken"] = [pageToken]; 3288 _queryParams["pageToken"] = [pageToken];
3454 } 3289 }
3455 3290
3456 _url = commons.Escaper.ecapeVariableReserved('$parent') + '/user_permissions '; 3291 _url =
3292 commons.Escaper.ecapeVariableReserved('$parent') + '/user_permissions';
3457 3293
3458 var _response = _requester.request(_url, 3294 var _response = _requester.request(_url, "GET",
3459 "GET", 3295 body: _body,
3460 body: _body, 3296 queryParams: _queryParams,
3461 queryParams: _queryParams, 3297 uploadOptions: _uploadOptions,
3462 uploadOptions: _uploadOptions, 3298 uploadMedia: _uploadMedia,
3463 uploadMedia: _uploadMedia, 3299 downloadOptions: _downloadOptions);
3464 downloadOptions: _downloadOptions); 3300 return _response
3465 return _response.then((data) => new ListUserPermissionsResponse.fromJson(dat a)); 3301 .then((data) => new ListUserPermissionsResponse.fromJson(data));
3466 } 3302 }
3467 3303
3468 /** 3304 /// Updates a user's Account & Container access.
3469 * Updates a user's Account & Container access. 3305 ///
3470 * 3306 /// [request] - The metadata request object.
3471 * [request] - The metadata request object. 3307 ///
3472 * 3308 /// Request parameters:
3473 * Request parameters: 3309 ///
3474 * 3310 /// [path] - GTM UserPermission's API relative path. Example:
3475 * [path] - GTM UserPermission's API relative path. Example: 3311 /// accounts/{account_id}/user_permissions/{user_permission_id}
3476 * accounts/{account_id}/user_permissions/{user_permission_id} 3312 ///
3477 * 3313 /// Completes with a [UserPermission].
3478 * Completes with a [UserPermission]. 3314 ///
3479 * 3315 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3480 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3316 /// an error.
3481 * error. 3317 ///
3482 * 3318 /// If the used [http.Client] completes with an error when making a REST
3483 * If the used [http.Client] completes with an error when making a REST call, 3319 /// call, this method will complete with the same error.
3484 * this method will complete with the same error. 3320 async.Future<UserPermission> update(
3485 */ 3321 UserPermission request, core.String path) {
3486 async.Future<UserPermission> update(UserPermission request, core.String path) {
3487 var _url = null; 3322 var _url = null;
3488 var _queryParams = new core.Map(); 3323 var _queryParams = new core.Map();
3489 var _uploadMedia = null; 3324 var _uploadMedia = null;
3490 var _uploadOptions = null; 3325 var _uploadOptions = null;
3491 var _downloadOptions = commons.DownloadOptions.Metadata; 3326 var _downloadOptions = commons.DownloadOptions.Metadata;
3492 var _body = null; 3327 var _body = null;
3493 3328
3494 if (request != null) { 3329 if (request != null) {
3495 _body = convert.JSON.encode((request).toJson()); 3330 _body = convert.JSON.encode((request).toJson());
3496 } 3331 }
3497 if (path == null) { 3332 if (path == null) {
3498 throw new core.ArgumentError("Parameter path is required."); 3333 throw new core.ArgumentError("Parameter path is required.");
3499 } 3334 }
3500 3335
3501 _url = commons.Escaper.ecapeVariableReserved('$path'); 3336 _url = commons.Escaper.ecapeVariableReserved('$path');
3502 3337
3503 var _response = _requester.request(_url, 3338 var _response = _requester.request(_url, "PUT",
3504 "PUT", 3339 body: _body,
3505 body: _body, 3340 queryParams: _queryParams,
3506 queryParams: _queryParams, 3341 uploadOptions: _uploadOptions,
3507 uploadOptions: _uploadOptions, 3342 uploadMedia: _uploadMedia,
3508 uploadMedia: _uploadMedia, 3343 downloadOptions: _downloadOptions);
3509 downloadOptions: _downloadOptions);
3510 return _response.then((data) => new UserPermission.fromJson(data)); 3344 return _response.then((data) => new UserPermission.fromJson(data));
3511 } 3345 }
3512
3513 } 3346 }
3514 3347
3348 /// Represents a Google Tag Manager Account.
3349 class Account {
3350 /// The Account ID uniquely identifies the GTM Account.
3351 core.String accountId;
3515 3352
3353 /// The fingerprint of the GTM Account as computed at storage time. This
3354 /// value is recomputed whenever the account is modified.
3355 core.String fingerprint;
3516 3356
3517 /** Represents a Google Tag Manager Account. */ 3357 /// Account display name.
3518 class Account {
3519 /** The Account ID uniquely identifies the GTM Account. */
3520 core.String accountId;
3521 /**
3522 * The fingerprint of the GTM Account as computed at storage time. This value
3523 * is recomputed whenever the account is modified.
3524 */
3525 core.String fingerprint;
3526 /** Account display name. */
3527 core.String name; 3358 core.String name;
3528 /** GTM Account's API relative path. */ 3359
3360 /// GTM Account's API relative path.
3529 core.String path; 3361 core.String path;
3530 /** 3362
3531 * Whether the account shares data anonymously with Google and others. This 3363 /// Whether the account shares data anonymously with Google and others. This
3532 * flag enables benchmarking by sharing your data in an anonymous form. Google 3364 /// flag enables benchmarking by sharing your data in an anonymous form.
3533 * will remove all identifiable information about your website, combine the 3365 /// Google will remove all identifiable information about your website,
3534 * data with hundreds of other anonymous sites and report aggregate trends in 3366 /// combine the data with hundreds of other anonymous sites and report
3535 * the benchmarking service. 3367 /// aggregate trends in the benchmarking service.
3536 */
3537 core.bool shareData; 3368 core.bool shareData;
3538 /** Auto generated link to the tag manager UI */ 3369
3370 /// Auto generated link to the tag manager UI
3539 core.String tagManagerUrl; 3371 core.String tagManagerUrl;
3540 3372
3541 Account(); 3373 Account();
3542 3374
3543 Account.fromJson(core.Map _json) { 3375 Account.fromJson(core.Map _json) {
3544 if (_json.containsKey("accountId")) { 3376 if (_json.containsKey("accountId")) {
3545 accountId = _json["accountId"]; 3377 accountId = _json["accountId"];
3546 } 3378 }
3547 if (_json.containsKey("fingerprint")) { 3379 if (_json.containsKey("fingerprint")) {
3548 fingerprint = _json["fingerprint"]; 3380 fingerprint = _json["fingerprint"];
3549 } 3381 }
3550 if (_json.containsKey("name")) { 3382 if (_json.containsKey("name")) {
3551 name = _json["name"]; 3383 name = _json["name"];
3552 } 3384 }
3553 if (_json.containsKey("path")) { 3385 if (_json.containsKey("path")) {
3554 path = _json["path"]; 3386 path = _json["path"];
3555 } 3387 }
3556 if (_json.containsKey("shareData")) { 3388 if (_json.containsKey("shareData")) {
3557 shareData = _json["shareData"]; 3389 shareData = _json["shareData"];
3558 } 3390 }
3559 if (_json.containsKey("tagManagerUrl")) { 3391 if (_json.containsKey("tagManagerUrl")) {
3560 tagManagerUrl = _json["tagManagerUrl"]; 3392 tagManagerUrl = _json["tagManagerUrl"];
3561 } 3393 }
3562 } 3394 }
3563 3395
3564 core.Map<core.String, core.Object> toJson() { 3396 core.Map<core.String, core.Object> toJson() {
3565 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3397 final core.Map<core.String, core.Object> _json =
3398 new core.Map<core.String, core.Object>();
3566 if (accountId != null) { 3399 if (accountId != null) {
3567 _json["accountId"] = accountId; 3400 _json["accountId"] = accountId;
3568 } 3401 }
3569 if (fingerprint != null) { 3402 if (fingerprint != null) {
3570 _json["fingerprint"] = fingerprint; 3403 _json["fingerprint"] = fingerprint;
3571 } 3404 }
3572 if (name != null) { 3405 if (name != null) {
3573 _json["name"] = name; 3406 _json["name"] = name;
3574 } 3407 }
3575 if (path != null) { 3408 if (path != null) {
3576 _json["path"] = path; 3409 _json["path"] = path;
3577 } 3410 }
3578 if (shareData != null) { 3411 if (shareData != null) {
3579 _json["shareData"] = shareData; 3412 _json["shareData"] = shareData;
3580 } 3413 }
3581 if (tagManagerUrl != null) { 3414 if (tagManagerUrl != null) {
3582 _json["tagManagerUrl"] = tagManagerUrl; 3415 _json["tagManagerUrl"] = tagManagerUrl;
3583 } 3416 }
3584 return _json; 3417 return _json;
3585 } 3418 }
3586 } 3419 }
3587 3420
3588 /** Defines the Google Tag Manager Account access permissions. */ 3421 /// Defines the Google Tag Manager Account access permissions.
3589 class AccountAccess { 3422 class AccountAccess {
3590 /** 3423 /// Whether the user has no access, user access, or admin access to an
3591 * Whether the user has no access, user access, or admin access to an account. 3424 /// account.
3592 * Possible string values are: 3425 /// Possible string values are:
3593 * - "accountPermissionUnspecified" 3426 /// - "accountPermissionUnspecified"
3594 * - "admin" 3427 /// - "admin"
3595 * - "noAccess" 3428 /// - "noAccess"
3596 * - "user" 3429 /// - "user"
3597 */
3598 core.String permission; 3430 core.String permission;
3599 3431
3600 AccountAccess(); 3432 AccountAccess();
3601 3433
3602 AccountAccess.fromJson(core.Map _json) { 3434 AccountAccess.fromJson(core.Map _json) {
3603 if (_json.containsKey("permission")) { 3435 if (_json.containsKey("permission")) {
3604 permission = _json["permission"]; 3436 permission = _json["permission"];
3605 } 3437 }
3606 } 3438 }
3607 3439
3608 core.Map<core.String, core.Object> toJson() { 3440 core.Map<core.String, core.Object> toJson() {
3609 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3441 final core.Map<core.String, core.Object> _json =
3442 new core.Map<core.String, core.Object>();
3610 if (permission != null) { 3443 if (permission != null) {
3611 _json["permission"] = permission; 3444 _json["permission"] = permission;
3612 } 3445 }
3613 return _json; 3446 return _json;
3614 } 3447 }
3615 } 3448 }
3616 3449
3617 /** 3450 /// Built-in variables are a special category of variables that are pre-created
3618 * Built-in variables are a special category of variables that are pre-created 3451 /// and non-customizable. They provide common functionality like accessing
3619 * and non-customizable. They provide common functionality like accessing 3452 /// propeties of the gtm data layer, monitoring clicks, or accessing elements
3620 * propeties of the gtm data layer, monitoring clicks, or accessing elements of 3453 /// of a page URL.
3621 * a page URL.
3622 */
3623 class BuiltInVariable { 3454 class BuiltInVariable {
3624 /** GTM Account ID. */ 3455 /// GTM Account ID.
3625 core.String accountId; 3456 core.String accountId;
3626 /** GTM Container ID. */ 3457
3458 /// GTM Container ID.
3627 core.String containerId; 3459 core.String containerId;
3628 /** 3460
3629 * Name of the built-in variable to be used to refer to the built-in variable. 3461 /// Name of the built-in variable to be used to refer to the built-in
3630 */ 3462 /// variable.
3631 core.String name; 3463 core.String name;
3632 /** GTM BuiltInVariable's API relative path. */ 3464
3465 /// GTM BuiltInVariable's API relative path.
3633 core.String path; 3466 core.String path;
3634 /** 3467
3635 * Type of built-in variable. 3468 /// Type of built-in variable.
3636 * Possible string values are: 3469 /// Possible string values are:
3637 * - "advertiserId" 3470 /// - "advertiserId"
3638 * - "advertisingTrackingEnabled" 3471 /// - "advertisingTrackingEnabled"
3639 * - "ampBrowserLanguage" 3472 /// - "ampBrowserLanguage"
3640 * - "ampCanonicalHost" 3473 /// - "ampCanonicalHost"
3641 * - "ampCanonicalPath" 3474 /// - "ampCanonicalPath"
3642 * - "ampCanonicalUrl" 3475 /// - "ampCanonicalUrl"
3643 * - "ampClientId" 3476 /// - "ampClientId"
3644 * - "ampClientMaxScrollX" 3477 /// - "ampClientMaxScrollX"
3645 * - "ampClientMaxScrollY" 3478 /// - "ampClientMaxScrollY"
3646 * - "ampClientScreenHeight" 3479 /// - "ampClientScreenHeight"
3647 * - "ampClientScreenWidth" 3480 /// - "ampClientScreenWidth"
3648 * - "ampClientScrollX" 3481 /// - "ampClientScrollX"
3649 * - "ampClientScrollY" 3482 /// - "ampClientScrollY"
3650 * - "ampClientTimestamp" 3483 /// - "ampClientTimestamp"
3651 * - "ampClientTimezone" 3484 /// - "ampClientTimezone"
3652 * - "ampGtmEvent" 3485 /// - "ampGtmEvent"
3653 * - "ampPageDownloadTime" 3486 /// - "ampPageDownloadTime"
3654 * - "ampPageLoadTime" 3487 /// - "ampPageLoadTime"
3655 * - "ampPageViewId" 3488 /// - "ampPageViewId"
3656 * - "ampReferrer" 3489 /// - "ampReferrer"
3657 * - "ampTitle" 3490 /// - "ampTitle"
3658 * - "ampTotalEngagedTime" 3491 /// - "ampTotalEngagedTime"
3659 * - "appId" 3492 /// - "appId"
3660 * - "appName" 3493 /// - "appName"
3661 * - "appVersionCode" 3494 /// - "appVersionCode"
3662 * - "appVersionName" 3495 /// - "appVersionName"
3663 * - "builtInVariableTypeUnspecified" 3496 /// - "builtInVariableTypeUnspecified"
3664 * - "clickClasses" 3497 /// - "clickClasses"
3665 * - "clickElement" 3498 /// - "clickElement"
3666 * - "clickId" 3499 /// - "clickId"
3667 * - "clickTarget" 3500 /// - "clickTarget"
3668 * - "clickText" 3501 /// - "clickText"
3669 * - "clickUrl" 3502 /// - "clickUrl"
3670 * - "containerId" 3503 /// - "containerId"
3671 * - "containerVersion" 3504 /// - "containerVersion"
3672 * - "debugMode" 3505 /// - "debugMode"
3673 * - "deviceName" 3506 /// - "deviceName"
3674 * - "environmentName" 3507 /// - "environmentName"
3675 * - "errorLine" 3508 /// - "errorLine"
3676 * - "errorMessage" 3509 /// - "errorMessage"
3677 * - "errorUrl" 3510 /// - "errorUrl"
3678 * - "event" 3511 /// - "event"
3679 * - "eventName" 3512 /// - "eventName"
3680 * - "firebaseEventParameterCampaign" 3513 /// - "firebaseEventParameterCampaign"
3681 * - "firebaseEventParameterCampaignAclid" 3514 /// - "firebaseEventParameterCampaignAclid"
3682 * - "firebaseEventParameterCampaignAnid" 3515 /// - "firebaseEventParameterCampaignAnid"
3683 * - "firebaseEventParameterCampaignClickTimestamp" 3516 /// - "firebaseEventParameterCampaignClickTimestamp"
3684 * - "firebaseEventParameterCampaignContent" 3517 /// - "firebaseEventParameterCampaignContent"
3685 * - "firebaseEventParameterCampaignCp1" 3518 /// - "firebaseEventParameterCampaignCp1"
3686 * - "firebaseEventParameterCampaignGclid" 3519 /// - "firebaseEventParameterCampaignGclid"
3687 * - "firebaseEventParameterCampaignSource" 3520 /// - "firebaseEventParameterCampaignSource"
3688 * - "firebaseEventParameterCampaignTerm" 3521 /// - "firebaseEventParameterCampaignTerm"
3689 * - "firebaseEventParameterCurrency" 3522 /// - "firebaseEventParameterCurrency"
3690 * - "firebaseEventParameterDynamicLinkAcceptTime" 3523 /// - "firebaseEventParameterDynamicLinkAcceptTime"
3691 * - "firebaseEventParameterDynamicLinkLinkid" 3524 /// - "firebaseEventParameterDynamicLinkLinkid"
3692 * - "firebaseEventParameterNotificationMessageDeviceTime" 3525 /// - "firebaseEventParameterNotificationMessageDeviceTime"
3693 * - "firebaseEventParameterNotificationMessageId" 3526 /// - "firebaseEventParameterNotificationMessageId"
3694 * - "firebaseEventParameterNotificationMessageName" 3527 /// - "firebaseEventParameterNotificationMessageName"
3695 * - "firebaseEventParameterNotificationMessageTime" 3528 /// - "firebaseEventParameterNotificationMessageTime"
3696 * - "firebaseEventParameterNotificationTopic" 3529 /// - "firebaseEventParameterNotificationTopic"
3697 * - "firebaseEventParameterPreviousAppVersion" 3530 /// - "firebaseEventParameterPreviousAppVersion"
3698 * - "firebaseEventParameterPreviousOsVersion" 3531 /// - "firebaseEventParameterPreviousOsVersion"
3699 * - "firebaseEventParameterPrice" 3532 /// - "firebaseEventParameterPrice"
3700 * - "firebaseEventParameterProductId" 3533 /// - "firebaseEventParameterProductId"
3701 * - "firebaseEventParameterQuantity" 3534 /// - "firebaseEventParameterQuantity"
3702 * - "firebaseEventParameterValue" 3535 /// - "firebaseEventParameterValue"
3703 * - "formClasses" 3536 /// - "formClasses"
3704 * - "formElement" 3537 /// - "formElement"
3705 * - "formId" 3538 /// - "formId"
3706 * - "formTarget" 3539 /// - "formTarget"
3707 * - "formText" 3540 /// - "formText"
3708 * - "formUrl" 3541 /// - "formUrl"
3709 * - "historySource" 3542 /// - "historySource"
3710 * - "htmlId" 3543 /// - "htmlId"
3711 * - "language" 3544 /// - "language"
3712 * - "newHistoryFragment" 3545 /// - "newHistoryFragment"
3713 * - "newHistoryState" 3546 /// - "newHistoryState"
3714 * - "oldHistoryFragment" 3547 /// - "oldHistoryFragment"
3715 * - "oldHistoryState" 3548 /// - "oldHistoryState"
3716 * - "osVersion" 3549 /// - "osVersion"
3717 * - "pageHostname" 3550 /// - "pageHostname"
3718 * - "pagePath" 3551 /// - "pagePath"
3719 * - "pageUrl" 3552 /// - "pageUrl"
3720 * - "platform" 3553 /// - "platform"
3721 * - "randomNumber" 3554 /// - "randomNumber"
3722 * - "referrer" 3555 /// - "referrer"
3723 * - "resolution" 3556 /// - "resolution"
3724 * - "sdkVersion" 3557 /// - "sdkVersion"
3725 */
3726 core.String type; 3558 core.String type;
3727 /** GTM Workspace ID. */ 3559
3560 /// GTM Workspace ID.
3728 core.String workspaceId; 3561 core.String workspaceId;
3729 3562
3730 BuiltInVariable(); 3563 BuiltInVariable();
3731 3564
3732 BuiltInVariable.fromJson(core.Map _json) { 3565 BuiltInVariable.fromJson(core.Map _json) {
3733 if (_json.containsKey("accountId")) { 3566 if (_json.containsKey("accountId")) {
3734 accountId = _json["accountId"]; 3567 accountId = _json["accountId"];
3735 } 3568 }
3736 if (_json.containsKey("containerId")) { 3569 if (_json.containsKey("containerId")) {
3737 containerId = _json["containerId"]; 3570 containerId = _json["containerId"];
3738 } 3571 }
3739 if (_json.containsKey("name")) { 3572 if (_json.containsKey("name")) {
3740 name = _json["name"]; 3573 name = _json["name"];
3741 } 3574 }
3742 if (_json.containsKey("path")) { 3575 if (_json.containsKey("path")) {
3743 path = _json["path"]; 3576 path = _json["path"];
3744 } 3577 }
3745 if (_json.containsKey("type")) { 3578 if (_json.containsKey("type")) {
3746 type = _json["type"]; 3579 type = _json["type"];
3747 } 3580 }
3748 if (_json.containsKey("workspaceId")) { 3581 if (_json.containsKey("workspaceId")) {
3749 workspaceId = _json["workspaceId"]; 3582 workspaceId = _json["workspaceId"];
3750 } 3583 }
3751 } 3584 }
3752 3585
3753 core.Map<core.String, core.Object> toJson() { 3586 core.Map<core.String, core.Object> toJson() {
3754 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3587 final core.Map<core.String, core.Object> _json =
3588 new core.Map<core.String, core.Object>();
3755 if (accountId != null) { 3589 if (accountId != null) {
3756 _json["accountId"] = accountId; 3590 _json["accountId"] = accountId;
3757 } 3591 }
3758 if (containerId != null) { 3592 if (containerId != null) {
3759 _json["containerId"] = containerId; 3593 _json["containerId"] = containerId;
3760 } 3594 }
3761 if (name != null) { 3595 if (name != null) {
3762 _json["name"] = name; 3596 _json["name"] = name;
3763 } 3597 }
3764 if (path != null) { 3598 if (path != null) {
3765 _json["path"] = path; 3599 _json["path"] = path;
3766 } 3600 }
3767 if (type != null) { 3601 if (type != null) {
3768 _json["type"] = type; 3602 _json["type"] = type;
3769 } 3603 }
3770 if (workspaceId != null) { 3604 if (workspaceId != null) {
3771 _json["workspaceId"] = workspaceId; 3605 _json["workspaceId"] = workspaceId;
3772 } 3606 }
3773 return _json; 3607 return _json;
3774 } 3608 }
3775 } 3609 }
3776 3610
3777 /** Represents a predicate. */ 3611 /// Represents a predicate.
3778 class Condition { 3612 class Condition {
3779 /** 3613 /// A list of named parameters (key/value), depending on the condition's
3780 * A list of named parameters (key/value), depending on the condition's type. 3614 /// type. Notes:
3781 * Notes: 3615 /// - For binary operators, include parameters named arg0 and arg1 for
3782 * - For binary operators, include parameters named arg0 and arg1 for 3616 /// specifying the left and right operands, respectively.
3783 * specifying the left and right operands, respectively. 3617 /// - At this time, the left operand (arg0) must be a reference to a
3784 * - At this time, the left operand (arg0) must be a reference to a variable. 3618 /// variable.
3785 * - For case-insensitive Regex matching, include a boolean parameter named 3619 /// - For case-insensitive Regex matching, include a boolean parameter named
3786 * ignore_case that is set to true. If not specified or set to any other 3620 /// ignore_case that is set to true. If not specified or set to any other
3787 * value, the matching will be case sensitive. 3621 /// value, the matching will be case sensitive.
3788 * - To negate an operator, include a boolean parameter named negate boolean 3622 /// - To negate an operator, include a boolean parameter named negate boolean
3789 * parameter that is set to true. 3623 /// parameter that is set to true.
3790 */
3791 core.List<Parameter> parameter; 3624 core.List<Parameter> parameter;
3792 /** 3625
3793 * The type of operator for this condition. 3626 /// The type of operator for this condition.
3794 * Possible string values are: 3627 /// Possible string values are:
3795 * - "conditionTypeUnspecified" 3628 /// - "conditionTypeUnspecified"
3796 * - "contains" 3629 /// - "contains"
3797 * - "cssSelector" 3630 /// - "cssSelector"
3798 * - "endsWith" 3631 /// - "endsWith"
3799 * - "equals" 3632 /// - "equals"
3800 * - "greater" 3633 /// - "greater"
3801 * - "greaterOrEquals" 3634 /// - "greaterOrEquals"
3802 * - "less" 3635 /// - "less"
3803 * - "lessOrEquals" 3636 /// - "lessOrEquals"
3804 * - "matchRegex" 3637 /// - "matchRegex"
3805 * - "startsWith" 3638 /// - "startsWith"
3806 * - "urlMatches" 3639 /// - "urlMatches"
3807 */
3808 core.String type; 3640 core.String type;
3809 3641
3810 Condition(); 3642 Condition();
3811 3643
3812 Condition.fromJson(core.Map _json) { 3644 Condition.fromJson(core.Map _json) {
3813 if (_json.containsKey("parameter")) { 3645 if (_json.containsKey("parameter")) {
3814 parameter = _json["parameter"].map((value) => new Parameter.fromJson(value )).toList(); 3646 parameter = _json["parameter"]
3647 .map((value) => new Parameter.fromJson(value))
3648 .toList();
3815 } 3649 }
3816 if (_json.containsKey("type")) { 3650 if (_json.containsKey("type")) {
3817 type = _json["type"]; 3651 type = _json["type"];
3818 } 3652 }
3819 } 3653 }
3820 3654
3821 core.Map<core.String, core.Object> toJson() { 3655 core.Map<core.String, core.Object> toJson() {
3822 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3656 final core.Map<core.String, core.Object> _json =
3657 new core.Map<core.String, core.Object>();
3823 if (parameter != null) { 3658 if (parameter != null) {
3824 _json["parameter"] = parameter.map((value) => (value).toJson()).toList(); 3659 _json["parameter"] = parameter.map((value) => (value).toJson()).toList();
3825 } 3660 }
3826 if (type != null) { 3661 if (type != null) {
3827 _json["type"] = type; 3662 _json["type"] = type;
3828 } 3663 }
3829 return _json; 3664 return _json;
3830 } 3665 }
3831 } 3666 }
3832 3667
3833 /** 3668 /// Represents a Google Tag Manager Container, which specifies the platform
3834 * Represents a Google Tag Manager Container, which specifies the platform tags 3669 /// tags will run on, manages workspaces, and retains container versions.
3835 * will run on, manages workspaces, and retains container versions.
3836 */
3837 class Container { 3670 class Container {
3838 /** GTM Account ID. */ 3671 /// GTM Account ID.
3839 core.String accountId; 3672 core.String accountId;
3840 /** The Container ID uniquely identifies the GTM Container. */ 3673
3674 /// The Container ID uniquely identifies the GTM Container.
3841 core.String containerId; 3675 core.String containerId;
3842 /** List of domain names associated with the Container. */ 3676
3677 /// List of domain names associated with the Container.
3843 core.List<core.String> domainName; 3678 core.List<core.String> domainName;
3844 /** 3679
3845 * The fingerprint of the GTM Container as computed at storage time. This 3680 /// The fingerprint of the GTM Container as computed at storage time. This
3846 * value is recomputed whenever the account is modified. 3681 /// value is recomputed whenever the account is modified.
3847 */
3848 core.String fingerprint; 3682 core.String fingerprint;
3849 /** Container display name. */ 3683
3684 /// Container display name.
3850 core.String name; 3685 core.String name;
3851 /** Container Notes. */ 3686
3687 /// Container Notes.
3852 core.String notes; 3688 core.String notes;
3853 /** GTM Container's API relative path. */ 3689
3690 /// GTM Container's API relative path.
3854 core.String path; 3691 core.String path;
3855 /** Container Public ID. */ 3692
3693 /// Container Public ID.
3856 core.String publicId; 3694 core.String publicId;
3857 /** Auto generated link to the tag manager UI */ 3695
3696 /// Auto generated link to the tag manager UI
3858 core.String tagManagerUrl; 3697 core.String tagManagerUrl;
3859 /** 3698
3860 * List of Usage Contexts for the Container. Valid values include: web, 3699 /// List of Usage Contexts for the Container. Valid values include: web,
3861 * android, or ios. 3700 /// android, or ios.
3862 */
3863 core.List<core.String> usageContext; 3701 core.List<core.String> usageContext;
3864 3702
3865 Container(); 3703 Container();
3866 3704
3867 Container.fromJson(core.Map _json) { 3705 Container.fromJson(core.Map _json) {
3868 if (_json.containsKey("accountId")) { 3706 if (_json.containsKey("accountId")) {
3869 accountId = _json["accountId"]; 3707 accountId = _json["accountId"];
3870 } 3708 }
3871 if (_json.containsKey("containerId")) { 3709 if (_json.containsKey("containerId")) {
3872 containerId = _json["containerId"]; 3710 containerId = _json["containerId"];
(...skipping 18 matching lines...) Expand all
3891 } 3729 }
3892 if (_json.containsKey("tagManagerUrl")) { 3730 if (_json.containsKey("tagManagerUrl")) {
3893 tagManagerUrl = _json["tagManagerUrl"]; 3731 tagManagerUrl = _json["tagManagerUrl"];
3894 } 3732 }
3895 if (_json.containsKey("usageContext")) { 3733 if (_json.containsKey("usageContext")) {
3896 usageContext = _json["usageContext"]; 3734 usageContext = _json["usageContext"];
3897 } 3735 }
3898 } 3736 }
3899 3737
3900 core.Map<core.String, core.Object> toJson() { 3738 core.Map<core.String, core.Object> toJson() {
3901 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3739 final core.Map<core.String, core.Object> _json =
3740 new core.Map<core.String, core.Object>();
3902 if (accountId != null) { 3741 if (accountId != null) {
3903 _json["accountId"] = accountId; 3742 _json["accountId"] = accountId;
3904 } 3743 }
3905 if (containerId != null) { 3744 if (containerId != null) {
3906 _json["containerId"] = containerId; 3745 _json["containerId"] = containerId;
3907 } 3746 }
3908 if (domainName != null) { 3747 if (domainName != null) {
3909 _json["domainName"] = domainName; 3748 _json["domainName"] = domainName;
3910 } 3749 }
3911 if (fingerprint != null) { 3750 if (fingerprint != null) {
(...skipping 14 matching lines...) Expand all
3926 if (tagManagerUrl != null) { 3765 if (tagManagerUrl != null) {
3927 _json["tagManagerUrl"] = tagManagerUrl; 3766 _json["tagManagerUrl"] = tagManagerUrl;
3928 } 3767 }
3929 if (usageContext != null) { 3768 if (usageContext != null) {
3930 _json["usageContext"] = usageContext; 3769 _json["usageContext"] = usageContext;
3931 } 3770 }
3932 return _json; 3771 return _json;
3933 } 3772 }
3934 } 3773 }
3935 3774
3936 /** Defines the Google Tag Manager Container access permissions. */ 3775 /// Defines the Google Tag Manager Container access permissions.
3937 class ContainerAccess { 3776 class ContainerAccess {
3938 /** GTM Container ID. */ 3777 /// GTM Container ID.
3939 core.String containerId; 3778 core.String containerId;
3940 /** 3779
3941 * List of Container permissions. 3780 /// List of Container permissions.
3942 * Possible string values are: 3781 /// Possible string values are:
3943 * - "approve" 3782 /// - "approve"
3944 * - "containerPermissionUnspecified" 3783 /// - "containerPermissionUnspecified"
3945 * - "edit" 3784 /// - "edit"
3946 * - "noAccess" 3785 /// - "noAccess"
3947 * - "publish" 3786 /// - "publish"
3948 * - "read" 3787 /// - "read"
3949 */
3950 core.String permission; 3788 core.String permission;
3951 3789
3952 ContainerAccess(); 3790 ContainerAccess();
3953 3791
3954 ContainerAccess.fromJson(core.Map _json) { 3792 ContainerAccess.fromJson(core.Map _json) {
3955 if (_json.containsKey("containerId")) { 3793 if (_json.containsKey("containerId")) {
3956 containerId = _json["containerId"]; 3794 containerId = _json["containerId"];
3957 } 3795 }
3958 if (_json.containsKey("permission")) { 3796 if (_json.containsKey("permission")) {
3959 permission = _json["permission"]; 3797 permission = _json["permission"];
3960 } 3798 }
3961 } 3799 }
3962 3800
3963 core.Map<core.String, core.Object> toJson() { 3801 core.Map<core.String, core.Object> toJson() {
3964 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3802 final core.Map<core.String, core.Object> _json =
3803 new core.Map<core.String, core.Object>();
3965 if (containerId != null) { 3804 if (containerId != null) {
3966 _json["containerId"] = containerId; 3805 _json["containerId"] = containerId;
3967 } 3806 }
3968 if (permission != null) { 3807 if (permission != null) {
3969 _json["permission"] = permission; 3808 _json["permission"] = permission;
3970 } 3809 }
3971 return _json; 3810 return _json;
3972 } 3811 }
3973 } 3812 }
3974 3813
3975 /** Represents a Google Tag Manager Container Version. */ 3814 /// Represents a Google Tag Manager Container Version.
3976 class ContainerVersion { 3815 class ContainerVersion {
3977 /** GTM Account ID. */ 3816 /// GTM Account ID.
3978 core.String accountId; 3817 core.String accountId;
3979 /** 3818
3980 * The built-in variables in the container that this version was taken from. 3819 /// The built-in variables in the container that this version was taken from.
3981 */
3982 core.List<BuiltInVariable> builtInVariable; 3820 core.List<BuiltInVariable> builtInVariable;
3983 /** The container that this version was taken from. */ 3821
3822 /// The container that this version was taken from.
3984 Container container; 3823 Container container;
3985 /** GTM Container ID. */ 3824
3825 /// GTM Container ID.
3986 core.String containerId; 3826 core.String containerId;
3987 /** 3827
3988 * The Container Version ID uniquely identifies the GTM Container Version. 3828 /// The Container Version ID uniquely identifies the GTM Container Version.
3989 */
3990 core.String containerVersionId; 3829 core.String containerVersionId;
3991 /** A value of true indicates this container version has been deleted. */ 3830
3831 /// A value of true indicates this container version has been deleted.
3992 core.bool deleted; 3832 core.bool deleted;
3993 /** Container version description. */ 3833
3834 /// Container version description.
3994 core.String description; 3835 core.String description;
3995 /** 3836
3996 * The fingerprint of the GTM Container Version as computed at storage time. 3837 /// The fingerprint of the GTM Container Version as computed at storage time.
3997 * This value is recomputed whenever the container version is modified. 3838 /// This value is recomputed whenever the container version is modified.
3998 */
3999 core.String fingerprint; 3839 core.String fingerprint;
4000 /** The folders in the container that this version was taken from. */ 3840
3841 /// The folders in the container that this version was taken from.
4001 core.List<Folder> folder; 3842 core.List<Folder> folder;
4002 /** Container version display name. */ 3843
3844 /// Container version display name.
4003 core.String name; 3845 core.String name;
4004 /** GTM ContainerVersions's API relative path. */ 3846
3847 /// GTM ContainerVersions's API relative path.
4005 core.String path; 3848 core.String path;
4006 /** The tags in the container that this version was taken from. */ 3849
3850 /// The tags in the container that this version was taken from.
4007 core.List<Tag> tag; 3851 core.List<Tag> tag;
4008 /** Auto generated link to the tag manager UI */ 3852
3853 /// Auto generated link to the tag manager UI
4009 core.String tagManagerUrl; 3854 core.String tagManagerUrl;
4010 /** The triggers in the container that this version was taken from. */ 3855
3856 /// The triggers in the container that this version was taken from.
4011 core.List<Trigger> trigger; 3857 core.List<Trigger> trigger;
4012 /** The variables in the container that this version was taken from. */ 3858
3859 /// The variables in the container that this version was taken from.
4013 core.List<Variable> variable; 3860 core.List<Variable> variable;
4014 3861
4015 ContainerVersion(); 3862 ContainerVersion();
4016 3863
4017 ContainerVersion.fromJson(core.Map _json) { 3864 ContainerVersion.fromJson(core.Map _json) {
4018 if (_json.containsKey("accountId")) { 3865 if (_json.containsKey("accountId")) {
4019 accountId = _json["accountId"]; 3866 accountId = _json["accountId"];
4020 } 3867 }
4021 if (_json.containsKey("builtInVariable")) { 3868 if (_json.containsKey("builtInVariable")) {
4022 builtInVariable = _json["builtInVariable"].map((value) => new BuiltInVaria ble.fromJson(value)).toList(); 3869 builtInVariable = _json["builtInVariable"]
3870 .map((value) => new BuiltInVariable.fromJson(value))
3871 .toList();
4023 } 3872 }
4024 if (_json.containsKey("container")) { 3873 if (_json.containsKey("container")) {
4025 container = new Container.fromJson(_json["container"]); 3874 container = new Container.fromJson(_json["container"]);
4026 } 3875 }
4027 if (_json.containsKey("containerId")) { 3876 if (_json.containsKey("containerId")) {
4028 containerId = _json["containerId"]; 3877 containerId = _json["containerId"];
4029 } 3878 }
4030 if (_json.containsKey("containerVersionId")) { 3879 if (_json.containsKey("containerVersionId")) {
4031 containerVersionId = _json["containerVersionId"]; 3880 containerVersionId = _json["containerVersionId"];
4032 } 3881 }
4033 if (_json.containsKey("deleted")) { 3882 if (_json.containsKey("deleted")) {
4034 deleted = _json["deleted"]; 3883 deleted = _json["deleted"];
4035 } 3884 }
4036 if (_json.containsKey("description")) { 3885 if (_json.containsKey("description")) {
4037 description = _json["description"]; 3886 description = _json["description"];
4038 } 3887 }
4039 if (_json.containsKey("fingerprint")) { 3888 if (_json.containsKey("fingerprint")) {
4040 fingerprint = _json["fingerprint"]; 3889 fingerprint = _json["fingerprint"];
4041 } 3890 }
4042 if (_json.containsKey("folder")) { 3891 if (_json.containsKey("folder")) {
4043 folder = _json["folder"].map((value) => new Folder.fromJson(value)).toList (); 3892 folder =
3893 _json["folder"].map((value) => new Folder.fromJson(value)).toList();
4044 } 3894 }
4045 if (_json.containsKey("name")) { 3895 if (_json.containsKey("name")) {
4046 name = _json["name"]; 3896 name = _json["name"];
4047 } 3897 }
4048 if (_json.containsKey("path")) { 3898 if (_json.containsKey("path")) {
4049 path = _json["path"]; 3899 path = _json["path"];
4050 } 3900 }
4051 if (_json.containsKey("tag")) { 3901 if (_json.containsKey("tag")) {
4052 tag = _json["tag"].map((value) => new Tag.fromJson(value)).toList(); 3902 tag = _json["tag"].map((value) => new Tag.fromJson(value)).toList();
4053 } 3903 }
4054 if (_json.containsKey("tagManagerUrl")) { 3904 if (_json.containsKey("tagManagerUrl")) {
4055 tagManagerUrl = _json["tagManagerUrl"]; 3905 tagManagerUrl = _json["tagManagerUrl"];
4056 } 3906 }
4057 if (_json.containsKey("trigger")) { 3907 if (_json.containsKey("trigger")) {
4058 trigger = _json["trigger"].map((value) => new Trigger.fromJson(value)).toL ist(); 3908 trigger =
3909 _json["trigger"].map((value) => new Trigger.fromJson(value)).toList();
4059 } 3910 }
4060 if (_json.containsKey("variable")) { 3911 if (_json.containsKey("variable")) {
4061 variable = _json["variable"].map((value) => new Variable.fromJson(value)). toList(); 3912 variable = _json["variable"]
3913 .map((value) => new Variable.fromJson(value))
3914 .toList();
4062 } 3915 }
4063 } 3916 }
4064 3917
4065 core.Map<core.String, core.Object> toJson() { 3918 core.Map<core.String, core.Object> toJson() {
4066 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3919 final core.Map<core.String, core.Object> _json =
3920 new core.Map<core.String, core.Object>();
4067 if (accountId != null) { 3921 if (accountId != null) {
4068 _json["accountId"] = accountId; 3922 _json["accountId"] = accountId;
4069 } 3923 }
4070 if (builtInVariable != null) { 3924 if (builtInVariable != null) {
4071 _json["builtInVariable"] = builtInVariable.map((value) => (value).toJson() ).toList(); 3925 _json["builtInVariable"] =
3926 builtInVariable.map((value) => (value).toJson()).toList();
4072 } 3927 }
4073 if (container != null) { 3928 if (container != null) {
4074 _json["container"] = (container).toJson(); 3929 _json["container"] = (container).toJson();
4075 } 3930 }
4076 if (containerId != null) { 3931 if (containerId != null) {
4077 _json["containerId"] = containerId; 3932 _json["containerId"] = containerId;
4078 } 3933 }
4079 if (containerVersionId != null) { 3934 if (containerVersionId != null) {
4080 _json["containerVersionId"] = containerVersionId; 3935 _json["containerVersionId"] = containerVersionId;
4081 } 3936 }
(...skipping 24 matching lines...) Expand all
4106 if (trigger != null) { 3961 if (trigger != null) {
4107 _json["trigger"] = trigger.map((value) => (value).toJson()).toList(); 3962 _json["trigger"] = trigger.map((value) => (value).toJson()).toList();
4108 } 3963 }
4109 if (variable != null) { 3964 if (variable != null) {
4110 _json["variable"] = variable.map((value) => (value).toJson()).toList(); 3965 _json["variable"] = variable.map((value) => (value).toJson()).toList();
4111 } 3966 }
4112 return _json; 3967 return _json;
4113 } 3968 }
4114 } 3969 }
4115 3970
4116 /** Represents a Google Tag Manager Container Version Header. */ 3971 /// Represents a Google Tag Manager Container Version Header.
4117 class ContainerVersionHeader { 3972 class ContainerVersionHeader {
4118 /** GTM Account ID. */ 3973 /// GTM Account ID.
4119 core.String accountId; 3974 core.String accountId;
4120 /** GTM Container ID. */ 3975
3976 /// GTM Container ID.
4121 core.String containerId; 3977 core.String containerId;
4122 /** 3978
4123 * The Container Version ID uniquely identifies the GTM Container Version. 3979 /// The Container Version ID uniquely identifies the GTM Container Version.
4124 */
4125 core.String containerVersionId; 3980 core.String containerVersionId;
4126 /** A value of true indicates this container version has been deleted. */ 3981
3982 /// A value of true indicates this container version has been deleted.
4127 core.bool deleted; 3983 core.bool deleted;
4128 /** Container version display name. */ 3984
3985 /// Container version display name.
4129 core.String name; 3986 core.String name;
4130 /** Number of macros in the container version. */ 3987
3988 /// Number of macros in the container version.
4131 core.String numMacros; 3989 core.String numMacros;
4132 /** Number of rules in the container version. */ 3990
3991 /// Number of rules in the container version.
4133 core.String numRules; 3992 core.String numRules;
4134 /** Number of tags in the container version. */ 3993
3994 /// Number of tags in the container version.
4135 core.String numTags; 3995 core.String numTags;
4136 /** Number of triggers in the container version. */ 3996
3997 /// Number of triggers in the container version.
4137 core.String numTriggers; 3998 core.String numTriggers;
4138 /** Number of variables in the container version. */ 3999
4000 /// Number of variables in the container version.
4139 core.String numVariables; 4001 core.String numVariables;
4140 /** GTM Container Versions's API relative path. */ 4002
4003 /// GTM Container Versions's API relative path.
4141 core.String path; 4004 core.String path;
4142 4005
4143 ContainerVersionHeader(); 4006 ContainerVersionHeader();
4144 4007
4145 ContainerVersionHeader.fromJson(core.Map _json) { 4008 ContainerVersionHeader.fromJson(core.Map _json) {
4146 if (_json.containsKey("accountId")) { 4009 if (_json.containsKey("accountId")) {
4147 accountId = _json["accountId"]; 4010 accountId = _json["accountId"];
4148 } 4011 }
4149 if (_json.containsKey("containerId")) { 4012 if (_json.containsKey("containerId")) {
4150 containerId = _json["containerId"]; 4013 containerId = _json["containerId"];
(...skipping 21 matching lines...) Expand all
4172 } 4035 }
4173 if (_json.containsKey("numVariables")) { 4036 if (_json.containsKey("numVariables")) {
4174 numVariables = _json["numVariables"]; 4037 numVariables = _json["numVariables"];
4175 } 4038 }
4176 if (_json.containsKey("path")) { 4039 if (_json.containsKey("path")) {
4177 path = _json["path"]; 4040 path = _json["path"];
4178 } 4041 }
4179 } 4042 }
4180 4043
4181 core.Map<core.String, core.Object> toJson() { 4044 core.Map<core.String, core.Object> toJson() {
4182 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4045 final core.Map<core.String, core.Object> _json =
4046 new core.Map<core.String, core.Object>();
4183 if (accountId != null) { 4047 if (accountId != null) {
4184 _json["accountId"] = accountId; 4048 _json["accountId"] = accountId;
4185 } 4049 }
4186 if (containerId != null) { 4050 if (containerId != null) {
4187 _json["containerId"] = containerId; 4051 _json["containerId"] = containerId;
4188 } 4052 }
4189 if (containerVersionId != null) { 4053 if (containerVersionId != null) {
4190 _json["containerVersionId"] = containerVersionId; 4054 _json["containerVersionId"] = containerVersionId;
4191 } 4055 }
4192 if (deleted != null) { 4056 if (deleted != null) {
(...skipping 18 matching lines...) Expand all
4211 _json["numVariables"] = numVariables; 4075 _json["numVariables"] = numVariables;
4212 } 4076 }
4213 if (path != null) { 4077 if (path != null) {
4214 _json["path"] = path; 4078 _json["path"] = path;
4215 } 4079 }
4216 return _json; 4080 return _json;
4217 } 4081 }
4218 } 4082 }
4219 4083
4220 class CreateBuiltInVariableResponse { 4084 class CreateBuiltInVariableResponse {
4221 /** List of created built-in variables. */ 4085 /// List of created built-in variables.
4222 core.List<BuiltInVariable> builtInVariable; 4086 core.List<BuiltInVariable> builtInVariable;
4223 4087
4224 CreateBuiltInVariableResponse(); 4088 CreateBuiltInVariableResponse();
4225 4089
4226 CreateBuiltInVariableResponse.fromJson(core.Map _json) { 4090 CreateBuiltInVariableResponse.fromJson(core.Map _json) {
4227 if (_json.containsKey("builtInVariable")) { 4091 if (_json.containsKey("builtInVariable")) {
4228 builtInVariable = _json["builtInVariable"].map((value) => new BuiltInVaria ble.fromJson(value)).toList(); 4092 builtInVariable = _json["builtInVariable"]
4093 .map((value) => new BuiltInVariable.fromJson(value))
4094 .toList();
4229 } 4095 }
4230 } 4096 }
4231 4097
4232 core.Map<core.String, core.Object> toJson() { 4098 core.Map<core.String, core.Object> toJson() {
4233 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4099 final core.Map<core.String, core.Object> _json =
4100 new core.Map<core.String, core.Object>();
4234 if (builtInVariable != null) { 4101 if (builtInVariable != null) {
4235 _json["builtInVariable"] = builtInVariable.map((value) => (value).toJson() ).toList(); 4102 _json["builtInVariable"] =
4103 builtInVariable.map((value) => (value).toJson()).toList();
4236 } 4104 }
4237 return _json; 4105 return _json;
4238 } 4106 }
4239 } 4107 }
4240 4108
4241 /** Options for new container versions. */ 4109 /// Options for new container versions.
4242 class CreateContainerVersionRequestVersionOptions { 4110 class CreateContainerVersionRequestVersionOptions {
4243 /** The name of the container version to be created. */ 4111 /// The name of the container version to be created.
4244 core.String name; 4112 core.String name;
4245 /** The notes of the container version to be created. */ 4113
4114 /// The notes of the container version to be created.
4246 core.String notes; 4115 core.String notes;
4247 4116
4248 CreateContainerVersionRequestVersionOptions(); 4117 CreateContainerVersionRequestVersionOptions();
4249 4118
4250 CreateContainerVersionRequestVersionOptions.fromJson(core.Map _json) { 4119 CreateContainerVersionRequestVersionOptions.fromJson(core.Map _json) {
4251 if (_json.containsKey("name")) { 4120 if (_json.containsKey("name")) {
4252 name = _json["name"]; 4121 name = _json["name"];
4253 } 4122 }
4254 if (_json.containsKey("notes")) { 4123 if (_json.containsKey("notes")) {
4255 notes = _json["notes"]; 4124 notes = _json["notes"];
4256 } 4125 }
4257 } 4126 }
4258 4127
4259 core.Map<core.String, core.Object> toJson() { 4128 core.Map<core.String, core.Object> toJson() {
4260 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4129 final core.Map<core.String, core.Object> _json =
4130 new core.Map<core.String, core.Object>();
4261 if (name != null) { 4131 if (name != null) {
4262 _json["name"] = name; 4132 _json["name"] = name;
4263 } 4133 }
4264 if (notes != null) { 4134 if (notes != null) {
4265 _json["notes"] = notes; 4135 _json["notes"] = notes;
4266 } 4136 }
4267 return _json; 4137 return _json;
4268 } 4138 }
4269 } 4139 }
4270 4140
4271 /** Create container versions response. */ 4141 /// Create container versions response.
4272 class CreateContainerVersionResponse { 4142 class CreateContainerVersionResponse {
4273 /** Compiler errors or not. */ 4143 /// Compiler errors or not.
4274 core.bool compilerError; 4144 core.bool compilerError;
4275 /** The container version created. */ 4145
4146 /// The container version created.
4276 ContainerVersion containerVersion; 4147 ContainerVersion containerVersion;
4277 /** 4148
4278 * Auto generated workspace path created as a result of version creation. This 4149 /// Auto generated workspace path created as a result of version creation.
4279 * field should only be populated if the created version was not a quick 4150 /// This field should only be populated if the created version was not a
4280 * preview. 4151 /// quick preview.
4281 */
4282 core.String newWorkspacePath; 4152 core.String newWorkspacePath;
4283 /** 4153
4284 * Whether version creation failed when syncing the workspace to the latest 4154 /// Whether version creation failed when syncing the workspace to the latest
4285 * container version. 4155 /// container version.
4286 */
4287 SyncStatus syncStatus; 4156 SyncStatus syncStatus;
4288 4157
4289 CreateContainerVersionResponse(); 4158 CreateContainerVersionResponse();
4290 4159
4291 CreateContainerVersionResponse.fromJson(core.Map _json) { 4160 CreateContainerVersionResponse.fromJson(core.Map _json) {
4292 if (_json.containsKey("compilerError")) { 4161 if (_json.containsKey("compilerError")) {
4293 compilerError = _json["compilerError"]; 4162 compilerError = _json["compilerError"];
4294 } 4163 }
4295 if (_json.containsKey("containerVersion")) { 4164 if (_json.containsKey("containerVersion")) {
4296 containerVersion = new ContainerVersion.fromJson(_json["containerVersion"] ); 4165 containerVersion =
4166 new ContainerVersion.fromJson(_json["containerVersion"]);
4297 } 4167 }
4298 if (_json.containsKey("newWorkspacePath")) { 4168 if (_json.containsKey("newWorkspacePath")) {
4299 newWorkspacePath = _json["newWorkspacePath"]; 4169 newWorkspacePath = _json["newWorkspacePath"];
4300 } 4170 }
4301 if (_json.containsKey("syncStatus")) { 4171 if (_json.containsKey("syncStatus")) {
4302 syncStatus = new SyncStatus.fromJson(_json["syncStatus"]); 4172 syncStatus = new SyncStatus.fromJson(_json["syncStatus"]);
4303 } 4173 }
4304 } 4174 }
4305 4175
4306 core.Map<core.String, core.Object> toJson() { 4176 core.Map<core.String, core.Object> toJson() {
4307 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4177 final core.Map<core.String, core.Object> _json =
4178 new core.Map<core.String, core.Object>();
4308 if (compilerError != null) { 4179 if (compilerError != null) {
4309 _json["compilerError"] = compilerError; 4180 _json["compilerError"] = compilerError;
4310 } 4181 }
4311 if (containerVersion != null) { 4182 if (containerVersion != null) {
4312 _json["containerVersion"] = (containerVersion).toJson(); 4183 _json["containerVersion"] = (containerVersion).toJson();
4313 } 4184 }
4314 if (newWorkspacePath != null) { 4185 if (newWorkspacePath != null) {
4315 _json["newWorkspacePath"] = newWorkspacePath; 4186 _json["newWorkspacePath"] = newWorkspacePath;
4316 } 4187 }
4317 if (syncStatus != null) { 4188 if (syncStatus != null) {
4318 _json["syncStatus"] = (syncStatus).toJson(); 4189 _json["syncStatus"] = (syncStatus).toJson();
4319 } 4190 }
4320 return _json; 4191 return _json;
4321 } 4192 }
4322 } 4193 }
4323 4194
4324 /** Creates a workspace proposal to start a review of a workspace. */ 4195 /// Creates a workspace proposal to start a review of a workspace.
4325 class CreateWorkspaceProposalRequest { 4196 class CreateWorkspaceProposalRequest {
4326 /** 4197 /// If present, an initial comment to associate with the workspace proposal.
4327 * If present, an initial comment to associate with the workspace proposal.
4328 */
4329 WorkspaceProposalHistoryComment initialComment; 4198 WorkspaceProposalHistoryComment initialComment;
4330 /** List of users to review the workspace proposal. */ 4199
4200 /// List of users to review the workspace proposal.
4331 core.List<WorkspaceProposalUser> reviewers; 4201 core.List<WorkspaceProposalUser> reviewers;
4332 4202
4333 CreateWorkspaceProposalRequest(); 4203 CreateWorkspaceProposalRequest();
4334 4204
4335 CreateWorkspaceProposalRequest.fromJson(core.Map _json) { 4205 CreateWorkspaceProposalRequest.fromJson(core.Map _json) {
4336 if (_json.containsKey("initialComment")) { 4206 if (_json.containsKey("initialComment")) {
4337 initialComment = new WorkspaceProposalHistoryComment.fromJson(_json["initi alComment"]); 4207 initialComment =
4208 new WorkspaceProposalHistoryComment.fromJson(_json["initialComment"]);
4338 } 4209 }
4339 if (_json.containsKey("reviewers")) { 4210 if (_json.containsKey("reviewers")) {
4340 reviewers = _json["reviewers"].map((value) => new WorkspaceProposalUser.fr omJson(value)).toList(); 4211 reviewers = _json["reviewers"]
4212 .map((value) => new WorkspaceProposalUser.fromJson(value))
4213 .toList();
4341 } 4214 }
4342 } 4215 }
4343 4216
4344 core.Map<core.String, core.Object> toJson() { 4217 core.Map<core.String, core.Object> toJson() {
4345 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4218 final core.Map<core.String, core.Object> _json =
4219 new core.Map<core.String, core.Object>();
4346 if (initialComment != null) { 4220 if (initialComment != null) {
4347 _json["initialComment"] = (initialComment).toJson(); 4221 _json["initialComment"] = (initialComment).toJson();
4348 } 4222 }
4349 if (reviewers != null) { 4223 if (reviewers != null) {
4350 _json["reviewers"] = reviewers.map((value) => (value).toJson()).toList(); 4224 _json["reviewers"] = reviewers.map((value) => (value).toJson()).toList();
4351 } 4225 }
4352 return _json; 4226 return _json;
4353 } 4227 }
4354 } 4228 }
4355 4229
4356 /** 4230 /// A workspace entity that may represent a tag, trigger, variable, or folder
4357 * A workspace entity that may represent a tag, trigger, variable, or folder in 4231 /// in addition to its status in the workspace.
4358 * addition to its status in the workspace.
4359 */
4360 class Entity { 4232 class Entity {
4361 /** 4233 /// Represents how the entity has been changed in the workspace.
4362 * Represents how the entity has been changed in the workspace. 4234 /// Possible string values are:
4363 * Possible string values are: 4235 /// - "added"
4364 * - "added" 4236 /// - "changeStatusUnspecified"
4365 * - "changeStatusUnspecified" 4237 /// - "deleted"
4366 * - "deleted" 4238 /// - "none"
4367 * - "none" 4239 /// - "updated"
4368 * - "updated"
4369 */
4370 core.String changeStatus; 4240 core.String changeStatus;
4371 /** The Folder being represented by the entity. */ 4241
4242 /// The Folder being represented by the entity.
4372 Folder folder; 4243 Folder folder;
4373 /** The tag being represented by the entity. */ 4244
4245 /// The tag being represented by the entity.
4374 Tag tag; 4246 Tag tag;
4375 /** The trigger being represented by the entity. */ 4247
4248 /// The trigger being represented by the entity.
4376 Trigger trigger; 4249 Trigger trigger;
4377 /** The variable being represented by the entity. */ 4250
4251 /// The variable being represented by the entity.
4378 Variable variable; 4252 Variable variable;
4379 4253
4380 Entity(); 4254 Entity();
4381 4255
4382 Entity.fromJson(core.Map _json) { 4256 Entity.fromJson(core.Map _json) {
4383 if (_json.containsKey("changeStatus")) { 4257 if (_json.containsKey("changeStatus")) {
4384 changeStatus = _json["changeStatus"]; 4258 changeStatus = _json["changeStatus"];
4385 } 4259 }
4386 if (_json.containsKey("folder")) { 4260 if (_json.containsKey("folder")) {
4387 folder = new Folder.fromJson(_json["folder"]); 4261 folder = new Folder.fromJson(_json["folder"]);
4388 } 4262 }
4389 if (_json.containsKey("tag")) { 4263 if (_json.containsKey("tag")) {
4390 tag = new Tag.fromJson(_json["tag"]); 4264 tag = new Tag.fromJson(_json["tag"]);
4391 } 4265 }
4392 if (_json.containsKey("trigger")) { 4266 if (_json.containsKey("trigger")) {
4393 trigger = new Trigger.fromJson(_json["trigger"]); 4267 trigger = new Trigger.fromJson(_json["trigger"]);
4394 } 4268 }
4395 if (_json.containsKey("variable")) { 4269 if (_json.containsKey("variable")) {
4396 variable = new Variable.fromJson(_json["variable"]); 4270 variable = new Variable.fromJson(_json["variable"]);
4397 } 4271 }
4398 } 4272 }
4399 4273
4400 core.Map<core.String, core.Object> toJson() { 4274 core.Map<core.String, core.Object> toJson() {
4401 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4275 final core.Map<core.String, core.Object> _json =
4276 new core.Map<core.String, core.Object>();
4402 if (changeStatus != null) { 4277 if (changeStatus != null) {
4403 _json["changeStatus"] = changeStatus; 4278 _json["changeStatus"] = changeStatus;
4404 } 4279 }
4405 if (folder != null) { 4280 if (folder != null) {
4406 _json["folder"] = (folder).toJson(); 4281 _json["folder"] = (folder).toJson();
4407 } 4282 }
4408 if (tag != null) { 4283 if (tag != null) {
4409 _json["tag"] = (tag).toJson(); 4284 _json["tag"] = (tag).toJson();
4410 } 4285 }
4411 if (trigger != null) { 4286 if (trigger != null) {
4412 _json["trigger"] = (trigger).toJson(); 4287 _json["trigger"] = (trigger).toJson();
4413 } 4288 }
4414 if (variable != null) { 4289 if (variable != null) {
4415 _json["variable"] = (variable).toJson(); 4290 _json["variable"] = (variable).toJson();
4416 } 4291 }
4417 return _json; 4292 return _json;
4418 } 4293 }
4419 } 4294 }
4420 4295
4421 /** 4296 /// Represents a Google Tag Manager Environment. Note that a user can create,
4422 * Represents a Google Tag Manager Environment. Note that a user can create, 4297 /// delete and update environments of type USER, but can only update the
4423 * delete and update environments of type USER, but can only update the 4298 /// enable_debug and url fields of environments of other types.
4424 * enable_debug and url fields of environments of other types.
4425 */
4426 class Environment { 4299 class Environment {
4427 /** GTM Account ID. */ 4300 /// GTM Account ID.
4428 core.String accountId; 4301 core.String accountId;
4429 /** The environment authorization code. */ 4302
4303 /// The environment authorization code.
4430 core.String authorizationCode; 4304 core.String authorizationCode;
4431 /** The last update time-stamp for the authorization code. */ 4305
4306 /// The last update time-stamp for the authorization code.
4432 Timestamp authorizationTimestamp; 4307 Timestamp authorizationTimestamp;
4433 /** GTM Container ID. */ 4308
4309 /// GTM Container ID.
4434 core.String containerId; 4310 core.String containerId;
4435 /** Represents a link to a container version. */ 4311
4312 /// Represents a link to a container version.
4436 core.String containerVersionId; 4313 core.String containerVersionId;
4437 /** 4314
4438 * The environment description. Can be set or changed only on USER type 4315 /// The environment description. Can be set or changed only on USER type
4439 * environments. 4316 /// environments.
4440 */
4441 core.String description; 4317 core.String description;
4442 /** Whether or not to enable debug by default for the environment. */ 4318
4319 /// Whether or not to enable debug by default for the environment.
4443 core.bool enableDebug; 4320 core.bool enableDebug;
4444 /** GTM Environment ID uniquely identifies the GTM Environment. */ 4321
4322 /// GTM Environment ID uniquely identifies the GTM Environment.
4445 core.String environmentId; 4323 core.String environmentId;
4446 /** 4324
4447 * The fingerprint of the GTM environment as computed at storage time. This 4325 /// The fingerprint of the GTM environment as computed at storage time. This
4448 * value is recomputed whenever the environment is modified. 4326 /// value is recomputed whenever the environment is modified.
4449 */
4450 core.String fingerprint; 4327 core.String fingerprint;
4451 /** 4328
4452 * The environment display name. Can be set or changed only on USER type 4329 /// The environment display name. Can be set or changed only on USER type
4453 * environments. 4330 /// environments.
4454 */
4455 core.String name; 4331 core.String name;
4456 /** GTM Environment's API relative path. */ 4332
4333 /// GTM Environment's API relative path.
4457 core.String path; 4334 core.String path;
4458 /** Auto generated link to the tag manager UI */ 4335
4336 /// Auto generated link to the tag manager UI
4459 core.String tagManagerUrl; 4337 core.String tagManagerUrl;
4460 /** 4338
4461 * The type of this environment. 4339 /// The type of this environment.
4462 * Possible string values are: 4340 /// Possible string values are:
4463 * - "latest" 4341 /// - "latest"
4464 * - "live" 4342 /// - "live"
4465 * - "user" 4343 /// - "user"
4466 * - "workspace" 4344 /// - "workspace"
4467 */
4468 core.String type; 4345 core.String type;
4469 /** Default preview page url for the environment. */ 4346
4347 /// Default preview page url for the environment.
4470 core.String url; 4348 core.String url;
4471 /** Represents a link to a quick preview of a workspace. */ 4349
4350 /// Represents a link to a quick preview of a workspace.
4472 core.String workspaceId; 4351 core.String workspaceId;
4473 4352
4474 Environment(); 4353 Environment();
4475 4354
4476 Environment.fromJson(core.Map _json) { 4355 Environment.fromJson(core.Map _json) {
4477 if (_json.containsKey("accountId")) { 4356 if (_json.containsKey("accountId")) {
4478 accountId = _json["accountId"]; 4357 accountId = _json["accountId"];
4479 } 4358 }
4480 if (_json.containsKey("authorizationCode")) { 4359 if (_json.containsKey("authorizationCode")) {
4481 authorizationCode = _json["authorizationCode"]; 4360 authorizationCode = _json["authorizationCode"];
4482 } 4361 }
4483 if (_json.containsKey("authorizationTimestamp")) { 4362 if (_json.containsKey("authorizationTimestamp")) {
4484 authorizationTimestamp = new Timestamp.fromJson(_json["authorizationTimest amp"]); 4363 authorizationTimestamp =
4364 new Timestamp.fromJson(_json["authorizationTimestamp"]);
4485 } 4365 }
4486 if (_json.containsKey("containerId")) { 4366 if (_json.containsKey("containerId")) {
4487 containerId = _json["containerId"]; 4367 containerId = _json["containerId"];
4488 } 4368 }
4489 if (_json.containsKey("containerVersionId")) { 4369 if (_json.containsKey("containerVersionId")) {
4490 containerVersionId = _json["containerVersionId"]; 4370 containerVersionId = _json["containerVersionId"];
4491 } 4371 }
4492 if (_json.containsKey("description")) { 4372 if (_json.containsKey("description")) {
4493 description = _json["description"]; 4373 description = _json["description"];
4494 } 4374 }
(...skipping 20 matching lines...) Expand all
4515 } 4395 }
4516 if (_json.containsKey("url")) { 4396 if (_json.containsKey("url")) {
4517 url = _json["url"]; 4397 url = _json["url"];
4518 } 4398 }
4519 if (_json.containsKey("workspaceId")) { 4399 if (_json.containsKey("workspaceId")) {
4520 workspaceId = _json["workspaceId"]; 4400 workspaceId = _json["workspaceId"];
4521 } 4401 }
4522 } 4402 }
4523 4403
4524 core.Map<core.String, core.Object> toJson() { 4404 core.Map<core.String, core.Object> toJson() {
4525 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4405 final core.Map<core.String, core.Object> _json =
4406 new core.Map<core.String, core.Object>();
4526 if (accountId != null) { 4407 if (accountId != null) {
4527 _json["accountId"] = accountId; 4408 _json["accountId"] = accountId;
4528 } 4409 }
4529 if (authorizationCode != null) { 4410 if (authorizationCode != null) {
4530 _json["authorizationCode"] = authorizationCode; 4411 _json["authorizationCode"] = authorizationCode;
4531 } 4412 }
4532 if (authorizationTimestamp != null) { 4413 if (authorizationTimestamp != null) {
4533 _json["authorizationTimestamp"] = (authorizationTimestamp).toJson(); 4414 _json["authorizationTimestamp"] = (authorizationTimestamp).toJson();
4534 } 4415 }
4535 if (containerId != null) { 4416 if (containerId != null) {
(...skipping 29 matching lines...) Expand all
4565 if (url != null) { 4446 if (url != null) {
4566 _json["url"] = url; 4447 _json["url"] = url;
4567 } 4448 }
4568 if (workspaceId != null) { 4449 if (workspaceId != null) {
4569 _json["workspaceId"] = workspaceId; 4450 _json["workspaceId"] = workspaceId;
4570 } 4451 }
4571 return _json; 4452 return _json;
4572 } 4453 }
4573 } 4454 }
4574 4455
4575 /** Represents a Google Tag Manager Folder. */ 4456 /// Represents a Google Tag Manager Folder.
4576 class Folder { 4457 class Folder {
4577 /** GTM Account ID. */ 4458 /// GTM Account ID.
4578 core.String accountId; 4459 core.String accountId;
4579 /** GTM Container ID. */ 4460
4461 /// GTM Container ID.
4580 core.String containerId; 4462 core.String containerId;
4581 /** 4463
4582 * The fingerprint of the GTM Folder as computed at storage time. This value 4464 /// The fingerprint of the GTM Folder as computed at storage time. This value
4583 * is recomputed whenever the folder is modified. 4465 /// is recomputed whenever the folder is modified.
4584 */
4585 core.String fingerprint; 4466 core.String fingerprint;
4586 /** The Folder ID uniquely identifies the GTM Folder. */ 4467
4468 /// The Folder ID uniquely identifies the GTM Folder.
4587 core.String folderId; 4469 core.String folderId;
4588 /** Folder display name. */ 4470
4471 /// Folder display name.
4589 core.String name; 4472 core.String name;
4590 /** User notes on how to apply this folder in the container. */ 4473
4474 /// User notes on how to apply this folder in the container.
4591 core.String notes; 4475 core.String notes;
4592 /** GTM Folder's API relative path. */ 4476
4477 /// GTM Folder's API relative path.
4593 core.String path; 4478 core.String path;
4594 /** Auto generated link to the tag manager UI */ 4479
4480 /// Auto generated link to the tag manager UI
4595 core.String tagManagerUrl; 4481 core.String tagManagerUrl;
4596 /** GTM Workspace ID. */ 4482
4483 /// GTM Workspace ID.
4597 core.String workspaceId; 4484 core.String workspaceId;
4598 4485
4599 Folder(); 4486 Folder();
4600 4487
4601 Folder.fromJson(core.Map _json) { 4488 Folder.fromJson(core.Map _json) {
4602 if (_json.containsKey("accountId")) { 4489 if (_json.containsKey("accountId")) {
4603 accountId = _json["accountId"]; 4490 accountId = _json["accountId"];
4604 } 4491 }
4605 if (_json.containsKey("containerId")) { 4492 if (_json.containsKey("containerId")) {
4606 containerId = _json["containerId"]; 4493 containerId = _json["containerId"];
(...skipping 15 matching lines...) Expand all
4622 } 4509 }
4623 if (_json.containsKey("tagManagerUrl")) { 4510 if (_json.containsKey("tagManagerUrl")) {
4624 tagManagerUrl = _json["tagManagerUrl"]; 4511 tagManagerUrl = _json["tagManagerUrl"];
4625 } 4512 }
4626 if (_json.containsKey("workspaceId")) { 4513 if (_json.containsKey("workspaceId")) {
4627 workspaceId = _json["workspaceId"]; 4514 workspaceId = _json["workspaceId"];
4628 } 4515 }
4629 } 4516 }
4630 4517
4631 core.Map<core.String, core.Object> toJson() { 4518 core.Map<core.String, core.Object> toJson() {
4632 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4519 final core.Map<core.String, core.Object> _json =
4520 new core.Map<core.String, core.Object>();
4633 if (accountId != null) { 4521 if (accountId != null) {
4634 _json["accountId"] = accountId; 4522 _json["accountId"] = accountId;
4635 } 4523 }
4636 if (containerId != null) { 4524 if (containerId != null) {
4637 _json["containerId"] = containerId; 4525 _json["containerId"] = containerId;
4638 } 4526 }
4639 if (fingerprint != null) { 4527 if (fingerprint != null) {
4640 _json["fingerprint"] = fingerprint; 4528 _json["fingerprint"] = fingerprint;
4641 } 4529 }
4642 if (folderId != null) { 4530 if (folderId != null) {
(...skipping 11 matching lines...) Expand all
4654 if (tagManagerUrl != null) { 4542 if (tagManagerUrl != null) {
4655 _json["tagManagerUrl"] = tagManagerUrl; 4543 _json["tagManagerUrl"] = tagManagerUrl;
4656 } 4544 }
4657 if (workspaceId != null) { 4545 if (workspaceId != null) {
4658 _json["workspaceId"] = workspaceId; 4546 _json["workspaceId"] = workspaceId;
4659 } 4547 }
4660 return _json; 4548 return _json;
4661 } 4549 }
4662 } 4550 }
4663 4551
4664 /** Represents a Google Tag Manager Folder's contents. */ 4552 /// Represents a Google Tag Manager Folder's contents.
4665 class FolderEntities { 4553 class FolderEntities {
4666 /** Continuation token for fetching the next page of results. */ 4554 /// Continuation token for fetching the next page of results.
4667 core.String nextPageToken; 4555 core.String nextPageToken;
4668 /** The list of tags inside the folder. */ 4556
4557 /// The list of tags inside the folder.
4669 core.List<Tag> tag; 4558 core.List<Tag> tag;
4670 /** The list of triggers inside the folder. */ 4559
4560 /// The list of triggers inside the folder.
4671 core.List<Trigger> trigger; 4561 core.List<Trigger> trigger;
4672 /** The list of variables inside the folder. */ 4562
4563 /// The list of variables inside the folder.
4673 core.List<Variable> variable; 4564 core.List<Variable> variable;
4674 4565
4675 FolderEntities(); 4566 FolderEntities();
4676 4567
4677 FolderEntities.fromJson(core.Map _json) { 4568 FolderEntities.fromJson(core.Map _json) {
4678 if (_json.containsKey("nextPageToken")) { 4569 if (_json.containsKey("nextPageToken")) {
4679 nextPageToken = _json["nextPageToken"]; 4570 nextPageToken = _json["nextPageToken"];
4680 } 4571 }
4681 if (_json.containsKey("tag")) { 4572 if (_json.containsKey("tag")) {
4682 tag = _json["tag"].map((value) => new Tag.fromJson(value)).toList(); 4573 tag = _json["tag"].map((value) => new Tag.fromJson(value)).toList();
4683 } 4574 }
4684 if (_json.containsKey("trigger")) { 4575 if (_json.containsKey("trigger")) {
4685 trigger = _json["trigger"].map((value) => new Trigger.fromJson(value)).toL ist(); 4576 trigger =
4577 _json["trigger"].map((value) => new Trigger.fromJson(value)).toList();
4686 } 4578 }
4687 if (_json.containsKey("variable")) { 4579 if (_json.containsKey("variable")) {
4688 variable = _json["variable"].map((value) => new Variable.fromJson(value)). toList(); 4580 variable = _json["variable"]
4581 .map((value) => new Variable.fromJson(value))
4582 .toList();
4689 } 4583 }
4690 } 4584 }
4691 4585
4692 core.Map<core.String, core.Object> toJson() { 4586 core.Map<core.String, core.Object> toJson() {
4693 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4587 final core.Map<core.String, core.Object> _json =
4588 new core.Map<core.String, core.Object>();
4694 if (nextPageToken != null) { 4589 if (nextPageToken != null) {
4695 _json["nextPageToken"] = nextPageToken; 4590 _json["nextPageToken"] = nextPageToken;
4696 } 4591 }
4697 if (tag != null) { 4592 if (tag != null) {
4698 _json["tag"] = tag.map((value) => (value).toJson()).toList(); 4593 _json["tag"] = tag.map((value) => (value).toJson()).toList();
4699 } 4594 }
4700 if (trigger != null) { 4595 if (trigger != null) {
4701 _json["trigger"] = trigger.map((value) => (value).toJson()).toList(); 4596 _json["trigger"] = trigger.map((value) => (value).toJson()).toList();
4702 } 4597 }
4703 if (variable != null) { 4598 if (variable != null) {
4704 _json["variable"] = variable.map((value) => (value).toJson()).toList(); 4599 _json["variable"] = variable.map((value) => (value).toJson()).toList();
4705 } 4600 }
4706 return _json; 4601 return _json;
4707 } 4602 }
4708 } 4603 }
4709 4604
4710 /** 4605 /// The changes that have occurred in the workspace since the base container
4711 * The changes that have occurred in the workspace since the base container 4606 /// version.
4712 * version.
4713 */
4714 class GetWorkspaceStatusResponse { 4607 class GetWorkspaceStatusResponse {
4715 /** The merge conflict after sync. */ 4608 /// The merge conflict after sync.
4716 core.List<MergeConflict> mergeConflict; 4609 core.List<MergeConflict> mergeConflict;
4717 /** Entities that have been changed in the workspace. */ 4610
4611 /// Entities that have been changed in the workspace.
4718 core.List<Entity> workspaceChange; 4612 core.List<Entity> workspaceChange;
4719 4613
4720 GetWorkspaceStatusResponse(); 4614 GetWorkspaceStatusResponse();
4721 4615
4722 GetWorkspaceStatusResponse.fromJson(core.Map _json) { 4616 GetWorkspaceStatusResponse.fromJson(core.Map _json) {
4723 if (_json.containsKey("mergeConflict")) { 4617 if (_json.containsKey("mergeConflict")) {
4724 mergeConflict = _json["mergeConflict"].map((value) => new MergeConflict.fr omJson(value)).toList(); 4618 mergeConflict = _json["mergeConflict"]
4619 .map((value) => new MergeConflict.fromJson(value))
4620 .toList();
4725 } 4621 }
4726 if (_json.containsKey("workspaceChange")) { 4622 if (_json.containsKey("workspaceChange")) {
4727 workspaceChange = _json["workspaceChange"].map((value) => new Entity.fromJ son(value)).toList(); 4623 workspaceChange = _json["workspaceChange"]
4624 .map((value) => new Entity.fromJson(value))
4625 .toList();
4728 } 4626 }
4729 } 4627 }
4730 4628
4731 core.Map<core.String, core.Object> toJson() { 4629 core.Map<core.String, core.Object> toJson() {
4732 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4630 final core.Map<core.String, core.Object> _json =
4631 new core.Map<core.String, core.Object>();
4733 if (mergeConflict != null) { 4632 if (mergeConflict != null) {
4734 _json["mergeConflict"] = mergeConflict.map((value) => (value).toJson()).to List(); 4633 _json["mergeConflict"] =
4634 mergeConflict.map((value) => (value).toJson()).toList();
4735 } 4635 }
4736 if (workspaceChange != null) { 4636 if (workspaceChange != null) {
4737 _json["workspaceChange"] = workspaceChange.map((value) => (value).toJson() ).toList(); 4637 _json["workspaceChange"] =
4638 workspaceChange.map((value) => (value).toJson()).toList();
4738 } 4639 }
4739 return _json; 4640 return _json;
4740 } 4641 }
4741 } 4642 }
4742 4643
4743 /** List Accounts Response. */ 4644 /// List Accounts Response.
4744 class ListAccountsResponse { 4645 class ListAccountsResponse {
4745 /** List of GTM Accounts that a user has access to. */ 4646 /// List of GTM Accounts that a user has access to.
4746 core.List<Account> account; 4647 core.List<Account> account;
4747 /** Continuation token for fetching the next page of results. */ 4648
4649 /// Continuation token for fetching the next page of results.
4748 core.String nextPageToken; 4650 core.String nextPageToken;
4749 4651
4750 ListAccountsResponse(); 4652 ListAccountsResponse();
4751 4653
4752 ListAccountsResponse.fromJson(core.Map _json) { 4654 ListAccountsResponse.fromJson(core.Map _json) {
4753 if (_json.containsKey("account")) { 4655 if (_json.containsKey("account")) {
4754 account = _json["account"].map((value) => new Account.fromJson(value)).toL ist(); 4656 account =
4657 _json["account"].map((value) => new Account.fromJson(value)).toList();
4755 } 4658 }
4756 if (_json.containsKey("nextPageToken")) { 4659 if (_json.containsKey("nextPageToken")) {
4757 nextPageToken = _json["nextPageToken"]; 4660 nextPageToken = _json["nextPageToken"];
4758 } 4661 }
4759 } 4662 }
4760 4663
4761 core.Map<core.String, core.Object> toJson() { 4664 core.Map<core.String, core.Object> toJson() {
4762 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4665 final core.Map<core.String, core.Object> _json =
4666 new core.Map<core.String, core.Object>();
4763 if (account != null) { 4667 if (account != null) {
4764 _json["account"] = account.map((value) => (value).toJson()).toList(); 4668 _json["account"] = account.map((value) => (value).toJson()).toList();
4765 } 4669 }
4766 if (nextPageToken != null) { 4670 if (nextPageToken != null) {
4767 _json["nextPageToken"] = nextPageToken; 4671 _json["nextPageToken"] = nextPageToken;
4768 } 4672 }
4769 return _json; 4673 return _json;
4770 } 4674 }
4771 } 4675 }
4772 4676
4773 /** List container versions response. */ 4677 /// List container versions response.
4774 class ListContainerVersionsResponse { 4678 class ListContainerVersionsResponse {
4775 /** All container version headers of a GTM Container. */ 4679 /// All container version headers of a GTM Container.
4776 core.List<ContainerVersionHeader> containerVersionHeader; 4680 core.List<ContainerVersionHeader> containerVersionHeader;
4777 /** Continuation token for fetching the next page of results. */ 4681
4682 /// Continuation token for fetching the next page of results.
4778 core.String nextPageToken; 4683 core.String nextPageToken;
4779 4684
4780 ListContainerVersionsResponse(); 4685 ListContainerVersionsResponse();
4781 4686
4782 ListContainerVersionsResponse.fromJson(core.Map _json) { 4687 ListContainerVersionsResponse.fromJson(core.Map _json) {
4783 if (_json.containsKey("containerVersionHeader")) { 4688 if (_json.containsKey("containerVersionHeader")) {
4784 containerVersionHeader = _json["containerVersionHeader"].map((value) => ne w ContainerVersionHeader.fromJson(value)).toList(); 4689 containerVersionHeader = _json["containerVersionHeader"]
4690 .map((value) => new ContainerVersionHeader.fromJson(value))
4691 .toList();
4785 } 4692 }
4786 if (_json.containsKey("nextPageToken")) { 4693 if (_json.containsKey("nextPageToken")) {
4787 nextPageToken = _json["nextPageToken"]; 4694 nextPageToken = _json["nextPageToken"];
4788 } 4695 }
4789 } 4696 }
4790 4697
4791 core.Map<core.String, core.Object> toJson() { 4698 core.Map<core.String, core.Object> toJson() {
4792 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4699 final core.Map<core.String, core.Object> _json =
4700 new core.Map<core.String, core.Object>();
4793 if (containerVersionHeader != null) { 4701 if (containerVersionHeader != null) {
4794 _json["containerVersionHeader"] = containerVersionHeader.map((value) => (v alue).toJson()).toList(); 4702 _json["containerVersionHeader"] =
4703 containerVersionHeader.map((value) => (value).toJson()).toList();
4795 } 4704 }
4796 if (nextPageToken != null) { 4705 if (nextPageToken != null) {
4797 _json["nextPageToken"] = nextPageToken; 4706 _json["nextPageToken"] = nextPageToken;
4798 } 4707 }
4799 return _json; 4708 return _json;
4800 } 4709 }
4801 } 4710 }
4802 4711
4803 /** List Containers Response. */ 4712 /// List Containers Response.
4804 class ListContainersResponse { 4713 class ListContainersResponse {
4805 /** All Containers of a GTM Account. */ 4714 /// All Containers of a GTM Account.
4806 core.List<Container> container; 4715 core.List<Container> container;
4807 /** Continuation token for fetching the next page of results. */ 4716
4717 /// Continuation token for fetching the next page of results.
4808 core.String nextPageToken; 4718 core.String nextPageToken;
4809 4719
4810 ListContainersResponse(); 4720 ListContainersResponse();
4811 4721
4812 ListContainersResponse.fromJson(core.Map _json) { 4722 ListContainersResponse.fromJson(core.Map _json) {
4813 if (_json.containsKey("container")) { 4723 if (_json.containsKey("container")) {
4814 container = _json["container"].map((value) => new Container.fromJson(value )).toList(); 4724 container = _json["container"]
4725 .map((value) => new Container.fromJson(value))
4726 .toList();
4815 } 4727 }
4816 if (_json.containsKey("nextPageToken")) { 4728 if (_json.containsKey("nextPageToken")) {
4817 nextPageToken = _json["nextPageToken"]; 4729 nextPageToken = _json["nextPageToken"];
4818 } 4730 }
4819 } 4731 }
4820 4732
4821 core.Map<core.String, core.Object> toJson() { 4733 core.Map<core.String, core.Object> toJson() {
4822 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4734 final core.Map<core.String, core.Object> _json =
4735 new core.Map<core.String, core.Object>();
4823 if (container != null) { 4736 if (container != null) {
4824 _json["container"] = container.map((value) => (value).toJson()).toList(); 4737 _json["container"] = container.map((value) => (value).toJson()).toList();
4825 } 4738 }
4826 if (nextPageToken != null) { 4739 if (nextPageToken != null) {
4827 _json["nextPageToken"] = nextPageToken; 4740 _json["nextPageToken"] = nextPageToken;
4828 } 4741 }
4829 return _json; 4742 return _json;
4830 } 4743 }
4831 } 4744 }
4832 4745
4833 /** A list of enabled built-in variables. */ 4746 /// A list of enabled built-in variables.
4834 class ListEnabledBuiltInVariablesResponse { 4747 class ListEnabledBuiltInVariablesResponse {
4835 /** All GTM BuiltInVariables of a GTM container. */ 4748 /// All GTM BuiltInVariables of a GTM container.
4836 core.List<BuiltInVariable> builtInVariable; 4749 core.List<BuiltInVariable> builtInVariable;
4837 /** Continuation token for fetching the next page of results. */ 4750
4751 /// Continuation token for fetching the next page of results.
4838 core.String nextPageToken; 4752 core.String nextPageToken;
4839 4753
4840 ListEnabledBuiltInVariablesResponse(); 4754 ListEnabledBuiltInVariablesResponse();
4841 4755
4842 ListEnabledBuiltInVariablesResponse.fromJson(core.Map _json) { 4756 ListEnabledBuiltInVariablesResponse.fromJson(core.Map _json) {
4843 if (_json.containsKey("builtInVariable")) { 4757 if (_json.containsKey("builtInVariable")) {
4844 builtInVariable = _json["builtInVariable"].map((value) => new BuiltInVaria ble.fromJson(value)).toList(); 4758 builtInVariable = _json["builtInVariable"]
4759 .map((value) => new BuiltInVariable.fromJson(value))
4760 .toList();
4845 } 4761 }
4846 if (_json.containsKey("nextPageToken")) { 4762 if (_json.containsKey("nextPageToken")) {
4847 nextPageToken = _json["nextPageToken"]; 4763 nextPageToken = _json["nextPageToken"];
4848 } 4764 }
4849 } 4765 }
4850 4766
4851 core.Map<core.String, core.Object> toJson() { 4767 core.Map<core.String, core.Object> toJson() {
4852 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4768 final core.Map<core.String, core.Object> _json =
4769 new core.Map<core.String, core.Object>();
4853 if (builtInVariable != null) { 4770 if (builtInVariable != null) {
4854 _json["builtInVariable"] = builtInVariable.map((value) => (value).toJson() ).toList(); 4771 _json["builtInVariable"] =
4772 builtInVariable.map((value) => (value).toJson()).toList();
4855 } 4773 }
4856 if (nextPageToken != null) { 4774 if (nextPageToken != null) {
4857 _json["nextPageToken"] = nextPageToken; 4775 _json["nextPageToken"] = nextPageToken;
4858 } 4776 }
4859 return _json; 4777 return _json;
4860 } 4778 }
4861 } 4779 }
4862 4780
4863 /** List Environments Response. */ 4781 /// List Environments Response.
4864 class ListEnvironmentsResponse { 4782 class ListEnvironmentsResponse {
4865 /** All Environments of a GTM Container. */ 4783 /// All Environments of a GTM Container.
4866 core.List<Environment> environment; 4784 core.List<Environment> environment;
4867 /** Continuation token for fetching the next page of results. */ 4785
4786 /// Continuation token for fetching the next page of results.
4868 core.String nextPageToken; 4787 core.String nextPageToken;
4869 4788
4870 ListEnvironmentsResponse(); 4789 ListEnvironmentsResponse();
4871 4790
4872 ListEnvironmentsResponse.fromJson(core.Map _json) { 4791 ListEnvironmentsResponse.fromJson(core.Map _json) {
4873 if (_json.containsKey("environment")) { 4792 if (_json.containsKey("environment")) {
4874 environment = _json["environment"].map((value) => new Environment.fromJson (value)).toList(); 4793 environment = _json["environment"]
4794 .map((value) => new Environment.fromJson(value))
4795 .toList();
4875 } 4796 }
4876 if (_json.containsKey("nextPageToken")) { 4797 if (_json.containsKey("nextPageToken")) {
4877 nextPageToken = _json["nextPageToken"]; 4798 nextPageToken = _json["nextPageToken"];
4878 } 4799 }
4879 } 4800 }
4880 4801
4881 core.Map<core.String, core.Object> toJson() { 4802 core.Map<core.String, core.Object> toJson() {
4882 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4803 final core.Map<core.String, core.Object> _json =
4804 new core.Map<core.String, core.Object>();
4883 if (environment != null) { 4805 if (environment != null) {
4884 _json["environment"] = environment.map((value) => (value).toJson()).toList (); 4806 _json["environment"] =
4807 environment.map((value) => (value).toJson()).toList();
4885 } 4808 }
4886 if (nextPageToken != null) { 4809 if (nextPageToken != null) {
4887 _json["nextPageToken"] = nextPageToken; 4810 _json["nextPageToken"] = nextPageToken;
4888 } 4811 }
4889 return _json; 4812 return _json;
4890 } 4813 }
4891 } 4814 }
4892 4815
4893 /** List Folders Response. */ 4816 /// List Folders Response.
4894 class ListFoldersResponse { 4817 class ListFoldersResponse {
4895 /** All GTM Folders of a GTM Container. */ 4818 /// All GTM Folders of a GTM Container.
4896 core.List<Folder> folder; 4819 core.List<Folder> folder;
4897 /** Continuation token for fetching the next page of results. */ 4820
4821 /// Continuation token for fetching the next page of results.
4898 core.String nextPageToken; 4822 core.String nextPageToken;
4899 4823
4900 ListFoldersResponse(); 4824 ListFoldersResponse();
4901 4825
4902 ListFoldersResponse.fromJson(core.Map _json) { 4826 ListFoldersResponse.fromJson(core.Map _json) {
4903 if (_json.containsKey("folder")) { 4827 if (_json.containsKey("folder")) {
4904 folder = _json["folder"].map((value) => new Folder.fromJson(value)).toList (); 4828 folder =
4829 _json["folder"].map((value) => new Folder.fromJson(value)).toList();
4905 } 4830 }
4906 if (_json.containsKey("nextPageToken")) { 4831 if (_json.containsKey("nextPageToken")) {
4907 nextPageToken = _json["nextPageToken"]; 4832 nextPageToken = _json["nextPageToken"];
4908 } 4833 }
4909 } 4834 }
4910 4835
4911 core.Map<core.String, core.Object> toJson() { 4836 core.Map<core.String, core.Object> toJson() {
4912 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4837 final core.Map<core.String, core.Object> _json =
4838 new core.Map<core.String, core.Object>();
4913 if (folder != null) { 4839 if (folder != null) {
4914 _json["folder"] = folder.map((value) => (value).toJson()).toList(); 4840 _json["folder"] = folder.map((value) => (value).toJson()).toList();
4915 } 4841 }
4916 if (nextPageToken != null) { 4842 if (nextPageToken != null) {
4917 _json["nextPageToken"] = nextPageToken; 4843 _json["nextPageToken"] = nextPageToken;
4918 } 4844 }
4919 return _json; 4845 return _json;
4920 } 4846 }
4921 } 4847 }
4922 4848
4923 /** List Tags Response. */ 4849 /// List Tags Response.
4924 class ListTagsResponse { 4850 class ListTagsResponse {
4925 /** Continuation token for fetching the next page of results. */ 4851 /// Continuation token for fetching the next page of results.
4926 core.String nextPageToken; 4852 core.String nextPageToken;
4927 /** All GTM Tags of a GTM Container. */ 4853
4854 /// All GTM Tags of a GTM Container.
4928 core.List<Tag> tag; 4855 core.List<Tag> tag;
4929 4856
4930 ListTagsResponse(); 4857 ListTagsResponse();
4931 4858
4932 ListTagsResponse.fromJson(core.Map _json) { 4859 ListTagsResponse.fromJson(core.Map _json) {
4933 if (_json.containsKey("nextPageToken")) { 4860 if (_json.containsKey("nextPageToken")) {
4934 nextPageToken = _json["nextPageToken"]; 4861 nextPageToken = _json["nextPageToken"];
4935 } 4862 }
4936 if (_json.containsKey("tag")) { 4863 if (_json.containsKey("tag")) {
4937 tag = _json["tag"].map((value) => new Tag.fromJson(value)).toList(); 4864 tag = _json["tag"].map((value) => new Tag.fromJson(value)).toList();
4938 } 4865 }
4939 } 4866 }
4940 4867
4941 core.Map<core.String, core.Object> toJson() { 4868 core.Map<core.String, core.Object> toJson() {
4942 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4869 final core.Map<core.String, core.Object> _json =
4870 new core.Map<core.String, core.Object>();
4943 if (nextPageToken != null) { 4871 if (nextPageToken != null) {
4944 _json["nextPageToken"] = nextPageToken; 4872 _json["nextPageToken"] = nextPageToken;
4945 } 4873 }
4946 if (tag != null) { 4874 if (tag != null) {
4947 _json["tag"] = tag.map((value) => (value).toJson()).toList(); 4875 _json["tag"] = tag.map((value) => (value).toJson()).toList();
4948 } 4876 }
4949 return _json; 4877 return _json;
4950 } 4878 }
4951 } 4879 }
4952 4880
4953 /** List triggers response. */ 4881 /// List triggers response.
4954 class ListTriggersResponse { 4882 class ListTriggersResponse {
4955 /** Continuation token for fetching the next page of results. */ 4883 /// Continuation token for fetching the next page of results.
4956 core.String nextPageToken; 4884 core.String nextPageToken;
4957 /** All GTM Triggers of a GTM Container. */ 4885
4886 /// All GTM Triggers of a GTM Container.
4958 core.List<Trigger> trigger; 4887 core.List<Trigger> trigger;
4959 4888
4960 ListTriggersResponse(); 4889 ListTriggersResponse();
4961 4890
4962 ListTriggersResponse.fromJson(core.Map _json) { 4891 ListTriggersResponse.fromJson(core.Map _json) {
4963 if (_json.containsKey("nextPageToken")) { 4892 if (_json.containsKey("nextPageToken")) {
4964 nextPageToken = _json["nextPageToken"]; 4893 nextPageToken = _json["nextPageToken"];
4965 } 4894 }
4966 if (_json.containsKey("trigger")) { 4895 if (_json.containsKey("trigger")) {
4967 trigger = _json["trigger"].map((value) => new Trigger.fromJson(value)).toL ist(); 4896 trigger =
4897 _json["trigger"].map((value) => new Trigger.fromJson(value)).toList();
4968 } 4898 }
4969 } 4899 }
4970 4900
4971 core.Map<core.String, core.Object> toJson() { 4901 core.Map<core.String, core.Object> toJson() {
4972 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4902 final core.Map<core.String, core.Object> _json =
4903 new core.Map<core.String, core.Object>();
4973 if (nextPageToken != null) { 4904 if (nextPageToken != null) {
4974 _json["nextPageToken"] = nextPageToken; 4905 _json["nextPageToken"] = nextPageToken;
4975 } 4906 }
4976 if (trigger != null) { 4907 if (trigger != null) {
4977 _json["trigger"] = trigger.map((value) => (value).toJson()).toList(); 4908 _json["trigger"] = trigger.map((value) => (value).toJson()).toList();
4978 } 4909 }
4979 return _json; 4910 return _json;
4980 } 4911 }
4981 } 4912 }
4982 4913
4983 /** List user permissions response. */ 4914 /// List user permissions response.
4984 class ListUserPermissionsResponse { 4915 class ListUserPermissionsResponse {
4985 /** Continuation token for fetching the next page of results. */ 4916 /// Continuation token for fetching the next page of results.
4986 core.String nextPageToken; 4917 core.String nextPageToken;
4987 /** All GTM UserPermissions of a GTM Account. */ 4918
4919 /// All GTM UserPermissions of a GTM Account.
4988 core.List<UserPermission> userPermission; 4920 core.List<UserPermission> userPermission;
4989 4921
4990 ListUserPermissionsResponse(); 4922 ListUserPermissionsResponse();
4991 4923
4992 ListUserPermissionsResponse.fromJson(core.Map _json) { 4924 ListUserPermissionsResponse.fromJson(core.Map _json) {
4993 if (_json.containsKey("nextPageToken")) { 4925 if (_json.containsKey("nextPageToken")) {
4994 nextPageToken = _json["nextPageToken"]; 4926 nextPageToken = _json["nextPageToken"];
4995 } 4927 }
4996 if (_json.containsKey("userPermission")) { 4928 if (_json.containsKey("userPermission")) {
4997 userPermission = _json["userPermission"].map((value) => new UserPermission .fromJson(value)).toList(); 4929 userPermission = _json["userPermission"]
4930 .map((value) => new UserPermission.fromJson(value))
4931 .toList();
4998 } 4932 }
4999 } 4933 }
5000 4934
5001 core.Map<core.String, core.Object> toJson() { 4935 core.Map<core.String, core.Object> toJson() {
5002 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4936 final core.Map<core.String, core.Object> _json =
4937 new core.Map<core.String, core.Object>();
5003 if (nextPageToken != null) { 4938 if (nextPageToken != null) {
5004 _json["nextPageToken"] = nextPageToken; 4939 _json["nextPageToken"] = nextPageToken;
5005 } 4940 }
5006 if (userPermission != null) { 4941 if (userPermission != null) {
5007 _json["userPermission"] = userPermission.map((value) => (value).toJson()). toList(); 4942 _json["userPermission"] =
4943 userPermission.map((value) => (value).toJson()).toList();
5008 } 4944 }
5009 return _json; 4945 return _json;
5010 } 4946 }
5011 } 4947 }
5012 4948
5013 /** List Variables Response. */ 4949 /// List Variables Response.
5014 class ListVariablesResponse { 4950 class ListVariablesResponse {
5015 /** Continuation token for fetching the next page of results. */ 4951 /// Continuation token for fetching the next page of results.
5016 core.String nextPageToken; 4952 core.String nextPageToken;
5017 /** All GTM Variables of a GTM Container. */ 4953
4954 /// All GTM Variables of a GTM Container.
5018 core.List<Variable> variable; 4955 core.List<Variable> variable;
5019 4956
5020 ListVariablesResponse(); 4957 ListVariablesResponse();
5021 4958
5022 ListVariablesResponse.fromJson(core.Map _json) { 4959 ListVariablesResponse.fromJson(core.Map _json) {
5023 if (_json.containsKey("nextPageToken")) { 4960 if (_json.containsKey("nextPageToken")) {
5024 nextPageToken = _json["nextPageToken"]; 4961 nextPageToken = _json["nextPageToken"];
5025 } 4962 }
5026 if (_json.containsKey("variable")) { 4963 if (_json.containsKey("variable")) {
5027 variable = _json["variable"].map((value) => new Variable.fromJson(value)). toList(); 4964 variable = _json["variable"]
4965 .map((value) => new Variable.fromJson(value))
4966 .toList();
5028 } 4967 }
5029 } 4968 }
5030 4969
5031 core.Map<core.String, core.Object> toJson() { 4970 core.Map<core.String, core.Object> toJson() {
5032 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4971 final core.Map<core.String, core.Object> _json =
4972 new core.Map<core.String, core.Object>();
5033 if (nextPageToken != null) { 4973 if (nextPageToken != null) {
5034 _json["nextPageToken"] = nextPageToken; 4974 _json["nextPageToken"] = nextPageToken;
5035 } 4975 }
5036 if (variable != null) { 4976 if (variable != null) {
5037 _json["variable"] = variable.map((value) => (value).toJson()).toList(); 4977 _json["variable"] = variable.map((value) => (value).toJson()).toList();
5038 } 4978 }
5039 return _json; 4979 return _json;
5040 } 4980 }
5041 } 4981 }
5042 4982
5043 /** A list of workspaces in a container. */ 4983 /// A list of workspaces in a container.
5044 class ListWorkspacesResponse { 4984 class ListWorkspacesResponse {
5045 /** Continuation token for fetching the next page of results. */ 4985 /// Continuation token for fetching the next page of results.
5046 core.String nextPageToken; 4986 core.String nextPageToken;
5047 /** All Workspaces of a GTM Container. */ 4987
4988 /// All Workspaces of a GTM Container.
5048 core.List<Workspace> workspace; 4989 core.List<Workspace> workspace;
5049 4990
5050 ListWorkspacesResponse(); 4991 ListWorkspacesResponse();
5051 4992
5052 ListWorkspacesResponse.fromJson(core.Map _json) { 4993 ListWorkspacesResponse.fromJson(core.Map _json) {
5053 if (_json.containsKey("nextPageToken")) { 4994 if (_json.containsKey("nextPageToken")) {
5054 nextPageToken = _json["nextPageToken"]; 4995 nextPageToken = _json["nextPageToken"];
5055 } 4996 }
5056 if (_json.containsKey("workspace")) { 4997 if (_json.containsKey("workspace")) {
5057 workspace = _json["workspace"].map((value) => new Workspace.fromJson(value )).toList(); 4998 workspace = _json["workspace"]
4999 .map((value) => new Workspace.fromJson(value))
5000 .toList();
5058 } 5001 }
5059 } 5002 }
5060 5003
5061 core.Map<core.String, core.Object> toJson() { 5004 core.Map<core.String, core.Object> toJson() {
5062 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5005 final core.Map<core.String, core.Object> _json =
5006 new core.Map<core.String, core.Object>();
5063 if (nextPageToken != null) { 5007 if (nextPageToken != null) {
5064 _json["nextPageToken"] = nextPageToken; 5008 _json["nextPageToken"] = nextPageToken;
5065 } 5009 }
5066 if (workspace != null) { 5010 if (workspace != null) {
5067 _json["workspace"] = workspace.map((value) => (value).toJson()).toList(); 5011 _json["workspace"] = workspace.map((value) => (value).toJson()).toList();
5068 } 5012 }
5069 return _json; 5013 return _json;
5070 } 5014 }
5071 } 5015 }
5072 5016
5073 /** Represents a merge conflict. */ 5017 /// Represents a merge conflict.
5074 class MergeConflict { 5018 class MergeConflict {
5075 /** 5019 /// The base version entity (since the latest sync operation) that has
5076 * The base version entity (since the latest sync operation) that has 5020 /// conflicting changes compared to the workspace. If this field is missing,
5077 * conflicting changes compared to the workspace. If this field is missing, it 5021 /// it means the workspace entity is deleted from the base version.
5078 * means the workspace entity is deleted from the base version.
5079 */
5080 Entity entityInBaseVersion; 5022 Entity entityInBaseVersion;
5081 /** 5023
5082 * The workspace entity that has conflicting changes compared to the base 5024 /// The workspace entity that has conflicting changes compared to the base
5083 * version. If an entity is deleted in a workspace, it will still appear with 5025 /// version. If an entity is deleted in a workspace, it will still appear
5084 * a deleted change status. 5026 /// with a deleted change status.
5085 */
5086 Entity entityInWorkspace; 5027 Entity entityInWorkspace;
5087 5028
5088 MergeConflict(); 5029 MergeConflict();
5089 5030
5090 MergeConflict.fromJson(core.Map _json) { 5031 MergeConflict.fromJson(core.Map _json) {
5091 if (_json.containsKey("entityInBaseVersion")) { 5032 if (_json.containsKey("entityInBaseVersion")) {
5092 entityInBaseVersion = new Entity.fromJson(_json["entityInBaseVersion"]); 5033 entityInBaseVersion = new Entity.fromJson(_json["entityInBaseVersion"]);
5093 } 5034 }
5094 if (_json.containsKey("entityInWorkspace")) { 5035 if (_json.containsKey("entityInWorkspace")) {
5095 entityInWorkspace = new Entity.fromJson(_json["entityInWorkspace"]); 5036 entityInWorkspace = new Entity.fromJson(_json["entityInWorkspace"]);
5096 } 5037 }
5097 } 5038 }
5098 5039
5099 core.Map<core.String, core.Object> toJson() { 5040 core.Map<core.String, core.Object> toJson() {
5100 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5041 final core.Map<core.String, core.Object> _json =
5042 new core.Map<core.String, core.Object>();
5101 if (entityInBaseVersion != null) { 5043 if (entityInBaseVersion != null) {
5102 _json["entityInBaseVersion"] = (entityInBaseVersion).toJson(); 5044 _json["entityInBaseVersion"] = (entityInBaseVersion).toJson();
5103 } 5045 }
5104 if (entityInWorkspace != null) { 5046 if (entityInWorkspace != null) {
5105 _json["entityInWorkspace"] = (entityInWorkspace).toJson(); 5047 _json["entityInWorkspace"] = (entityInWorkspace).toJson();
5106 } 5048 }
5107 return _json; 5049 return _json;
5108 } 5050 }
5109 } 5051 }
5110 5052
5111 /** Represents a Google Tag Manager Parameter. */ 5053 /// Represents a Google Tag Manager Parameter.
5112 class Parameter { 5054 class Parameter {
5113 /** 5055 /// The named key that uniquely identifies a parameter. Required for
5114 * The named key that uniquely identifies a parameter. Required for top-level 5056 /// top-level parameters, as well as map values. Ignored for list values.
5115 * parameters, as well as map values. Ignored for list values.
5116 */
5117 core.String key; 5057 core.String key;
5118 /** This list parameter's parameters (keys will be ignored). */ 5058
5059 /// This list parameter's parameters (keys will be ignored).
5119 core.List<Parameter> list; 5060 core.List<Parameter> list;
5120 /** This map parameter's parameters (must have keys; keys must be unique). */ 5061
5062 /// This map parameter's parameters (must have keys; keys must be unique).
5121 core.List<Parameter> map; 5063 core.List<Parameter> map;
5122 /** 5064
5123 * The parameter type. Valid values are: 5065 /// The parameter type. Valid values are:
5124 * - boolean: The value represents a boolean, represented as 'true' or 'false' 5066 /// - boolean: The value represents a boolean, represented as 'true' or
5125 * - integer: The value represents a 64-bit signed integer value, in base 10 5067 /// 'false'
5126 * - list: A list of parameters should be specified 5068 /// - integer: The value represents a 64-bit signed integer value, in base 10
5127 * - map: A map of parameters should be specified 5069 /// - list: A list of parameters should be specified
5128 * - template: The value represents any text; this can include variable 5070 /// - map: A map of parameters should be specified
5129 * references (even variable references that might return non-string types) 5071 /// - template: The value represents any text; this can include variable
5130 * Possible string values are: 5072 /// references (even variable references that might return non-string types)
5131 * - "boolean" 5073 /// Possible string values are:
5132 * - "integer" 5074 /// - "boolean"
5133 * - "list" 5075 /// - "integer"
5134 * - "map" 5076 /// - "list"
5135 * - "template" 5077 /// - "map"
5136 * - "typeUnspecified" 5078 /// - "template"
5137 */ 5079 /// - "typeUnspecified"
5138 core.String type; 5080 core.String type;
5139 /** 5081
5140 * A parameter's value (may contain variable references such as 5082 /// A parameter's value (may contain variable references such as
5141 * "{{myVariable}}") as appropriate to the specified type. 5083 /// "{{myVariable}}") as appropriate to the specified type.
5142 */
5143 core.String value; 5084 core.String value;
5144 5085
5145 Parameter(); 5086 Parameter();
5146 5087
5147 Parameter.fromJson(core.Map _json) { 5088 Parameter.fromJson(core.Map _json) {
5148 if (_json.containsKey("key")) { 5089 if (_json.containsKey("key")) {
5149 key = _json["key"]; 5090 key = _json["key"];
5150 } 5091 }
5151 if (_json.containsKey("list")) { 5092 if (_json.containsKey("list")) {
5152 list = _json["list"].map((value) => new Parameter.fromJson(value)).toList( ); 5093 list =
5094 _json["list"].map((value) => new Parameter.fromJson(value)).toList();
5153 } 5095 }
5154 if (_json.containsKey("map")) { 5096 if (_json.containsKey("map")) {
5155 map = _json["map"].map((value) => new Parameter.fromJson(value)).toList(); 5097 map = _json["map"].map((value) => new Parameter.fromJson(value)).toList();
5156 } 5098 }
5157 if (_json.containsKey("type")) { 5099 if (_json.containsKey("type")) {
5158 type = _json["type"]; 5100 type = _json["type"];
5159 } 5101 }
5160 if (_json.containsKey("value")) { 5102 if (_json.containsKey("value")) {
5161 value = _json["value"]; 5103 value = _json["value"];
5162 } 5104 }
5163 } 5105 }
5164 5106
5165 core.Map<core.String, core.Object> toJson() { 5107 core.Map<core.String, core.Object> toJson() {
5166 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5108 final core.Map<core.String, core.Object> _json =
5109 new core.Map<core.String, core.Object>();
5167 if (key != null) { 5110 if (key != null) {
5168 _json["key"] = key; 5111 _json["key"] = key;
5169 } 5112 }
5170 if (list != null) { 5113 if (list != null) {
5171 _json["list"] = list.map((value) => (value).toJson()).toList(); 5114 _json["list"] = list.map((value) => (value).toJson()).toList();
5172 } 5115 }
5173 if (map != null) { 5116 if (map != null) {
5174 _json["map"] = map.map((value) => (value).toJson()).toList(); 5117 _json["map"] = map.map((value) => (value).toJson()).toList();
5175 } 5118 }
5176 if (type != null) { 5119 if (type != null) {
5177 _json["type"] = type; 5120 _json["type"] = type;
5178 } 5121 }
5179 if (value != null) { 5122 if (value != null) {
5180 _json["value"] = value; 5123 _json["value"] = value;
5181 } 5124 }
5182 return _json; 5125 return _json;
5183 } 5126 }
5184 } 5127 }
5185 5128
5186 /** Publish container version response. */ 5129 /// Publish container version response.
5187 class PublishContainerVersionResponse { 5130 class PublishContainerVersionResponse {
5188 /** Compiler errors or not. */ 5131 /// Compiler errors or not.
5189 core.bool compilerError; 5132 core.bool compilerError;
5190 /** The container version created. */ 5133
5134 /// The container version created.
5191 ContainerVersion containerVersion; 5135 ContainerVersion containerVersion;
5192 5136
5193 PublishContainerVersionResponse(); 5137 PublishContainerVersionResponse();
5194 5138
5195 PublishContainerVersionResponse.fromJson(core.Map _json) { 5139 PublishContainerVersionResponse.fromJson(core.Map _json) {
5196 if (_json.containsKey("compilerError")) { 5140 if (_json.containsKey("compilerError")) {
5197 compilerError = _json["compilerError"]; 5141 compilerError = _json["compilerError"];
5198 } 5142 }
5199 if (_json.containsKey("containerVersion")) { 5143 if (_json.containsKey("containerVersion")) {
5200 containerVersion = new ContainerVersion.fromJson(_json["containerVersion"] ); 5144 containerVersion =
5145 new ContainerVersion.fromJson(_json["containerVersion"]);
5201 } 5146 }
5202 } 5147 }
5203 5148
5204 core.Map<core.String, core.Object> toJson() { 5149 core.Map<core.String, core.Object> toJson() {
5205 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5150 final core.Map<core.String, core.Object> _json =
5151 new core.Map<core.String, core.Object>();
5206 if (compilerError != null) { 5152 if (compilerError != null) {
5207 _json["compilerError"] = compilerError; 5153 _json["compilerError"] = compilerError;
5208 } 5154 }
5209 if (containerVersion != null) { 5155 if (containerVersion != null) {
5210 _json["containerVersion"] = (containerVersion).toJson(); 5156 _json["containerVersion"] = (containerVersion).toJson();
5211 } 5157 }
5212 return _json; 5158 return _json;
5213 } 5159 }
5214 } 5160 }
5215 5161
5216 /** Response to quick previewing a workspace. */ 5162 /// Response to quick previewing a workspace.
5217 class QuickPreviewResponse { 5163 class QuickPreviewResponse {
5218 /** Were there compiler errors or not. */ 5164 /// Were there compiler errors or not.
5219 core.bool compilerError; 5165 core.bool compilerError;
5220 /** The quick previewed container version. */ 5166
5167 /// The quick previewed container version.
5221 ContainerVersion containerVersion; 5168 ContainerVersion containerVersion;
5222 /** 5169
5223 * Whether quick previewing failed when syncing the workspace to the latest 5170 /// Whether quick previewing failed when syncing the workspace to the latest
5224 * container version. 5171 /// container version.
5225 */
5226 SyncStatus syncStatus; 5172 SyncStatus syncStatus;
5227 5173
5228 QuickPreviewResponse(); 5174 QuickPreviewResponse();
5229 5175
5230 QuickPreviewResponse.fromJson(core.Map _json) { 5176 QuickPreviewResponse.fromJson(core.Map _json) {
5231 if (_json.containsKey("compilerError")) { 5177 if (_json.containsKey("compilerError")) {
5232 compilerError = _json["compilerError"]; 5178 compilerError = _json["compilerError"];
5233 } 5179 }
5234 if (_json.containsKey("containerVersion")) { 5180 if (_json.containsKey("containerVersion")) {
5235 containerVersion = new ContainerVersion.fromJson(_json["containerVersion"] ); 5181 containerVersion =
5182 new ContainerVersion.fromJson(_json["containerVersion"]);
5236 } 5183 }
5237 if (_json.containsKey("syncStatus")) { 5184 if (_json.containsKey("syncStatus")) {
5238 syncStatus = new SyncStatus.fromJson(_json["syncStatus"]); 5185 syncStatus = new SyncStatus.fromJson(_json["syncStatus"]);
5239 } 5186 }
5240 } 5187 }
5241 5188
5242 core.Map<core.String, core.Object> toJson() { 5189 core.Map<core.String, core.Object> toJson() {
5243 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5190 final core.Map<core.String, core.Object> _json =
5191 new core.Map<core.String, core.Object>();
5244 if (compilerError != null) { 5192 if (compilerError != null) {
5245 _json["compilerError"] = compilerError; 5193 _json["compilerError"] = compilerError;
5246 } 5194 }
5247 if (containerVersion != null) { 5195 if (containerVersion != null) {
5248 _json["containerVersion"] = (containerVersion).toJson(); 5196 _json["containerVersion"] = (containerVersion).toJson();
5249 } 5197 }
5250 if (syncStatus != null) { 5198 if (syncStatus != null) {
5251 _json["syncStatus"] = (syncStatus).toJson(); 5199 _json["syncStatus"] = (syncStatus).toJson();
5252 } 5200 }
5253 return _json; 5201 return _json;
5254 } 5202 }
5255 } 5203 }
5256 5204
5257 /** The result of reverting a built-in variable in a workspace. */ 5205 /// The result of reverting a built-in variable in a workspace.
5258 class RevertBuiltInVariableResponse { 5206 class RevertBuiltInVariableResponse {
5259 /** Whether the built-in variable is enabled after reversion. */ 5207 /// Whether the built-in variable is enabled after reversion.
5260 core.bool enabled; 5208 core.bool enabled;
5261 5209
5262 RevertBuiltInVariableResponse(); 5210 RevertBuiltInVariableResponse();
5263 5211
5264 RevertBuiltInVariableResponse.fromJson(core.Map _json) { 5212 RevertBuiltInVariableResponse.fromJson(core.Map _json) {
5265 if (_json.containsKey("enabled")) { 5213 if (_json.containsKey("enabled")) {
5266 enabled = _json["enabled"]; 5214 enabled = _json["enabled"];
5267 } 5215 }
5268 } 5216 }
5269 5217
5270 core.Map<core.String, core.Object> toJson() { 5218 core.Map<core.String, core.Object> toJson() {
5271 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5219 final core.Map<core.String, core.Object> _json =
5220 new core.Map<core.String, core.Object>();
5272 if (enabled != null) { 5221 if (enabled != null) {
5273 _json["enabled"] = enabled; 5222 _json["enabled"] = enabled;
5274 } 5223 }
5275 return _json; 5224 return _json;
5276 } 5225 }
5277 } 5226 }
5278 5227
5279 /** The result of reverting folder changes in a workspace. */ 5228 /// The result of reverting folder changes in a workspace.
5280 class RevertFolderResponse { 5229 class RevertFolderResponse {
5281 /** 5230 /// Folder as it appears in the latest container version since the last
5282 * Folder as it appears in the latest container version since the last 5231 /// workspace synchronization operation. If no folder is present, that means
5283 * workspace synchronization operation. If no folder is present, that means 5232 /// the folder was deleted in the latest container version.
5284 * the folder was deleted in the latest container version.
5285 */
5286 Folder folder; 5233 Folder folder;
5287 5234
5288 RevertFolderResponse(); 5235 RevertFolderResponse();
5289 5236
5290 RevertFolderResponse.fromJson(core.Map _json) { 5237 RevertFolderResponse.fromJson(core.Map _json) {
5291 if (_json.containsKey("folder")) { 5238 if (_json.containsKey("folder")) {
5292 folder = new Folder.fromJson(_json["folder"]); 5239 folder = new Folder.fromJson(_json["folder"]);
5293 } 5240 }
5294 } 5241 }
5295 5242
5296 core.Map<core.String, core.Object> toJson() { 5243 core.Map<core.String, core.Object> toJson() {
5297 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5244 final core.Map<core.String, core.Object> _json =
5245 new core.Map<core.String, core.Object>();
5298 if (folder != null) { 5246 if (folder != null) {
5299 _json["folder"] = (folder).toJson(); 5247 _json["folder"] = (folder).toJson();
5300 } 5248 }
5301 return _json; 5249 return _json;
5302 } 5250 }
5303 } 5251 }
5304 5252
5305 /** The result of reverting a tag in a workspace. */ 5253 /// The result of reverting a tag in a workspace.
5306 class RevertTagResponse { 5254 class RevertTagResponse {
5307 /** 5255 /// Tag as it appears in the latest container version since the last
5308 * Tag as it appears in the latest container version since the last workspace 5256 /// workspace synchronization operation. If no tag is present, that means the
5309 * synchronization operation. If no tag is present, that means the tag was 5257 /// tag was deleted in the latest container version.
5310 * deleted in the latest container version.
5311 */
5312 Tag tag; 5258 Tag tag;
5313 5259
5314 RevertTagResponse(); 5260 RevertTagResponse();
5315 5261
5316 RevertTagResponse.fromJson(core.Map _json) { 5262 RevertTagResponse.fromJson(core.Map _json) {
5317 if (_json.containsKey("tag")) { 5263 if (_json.containsKey("tag")) {
5318 tag = new Tag.fromJson(_json["tag"]); 5264 tag = new Tag.fromJson(_json["tag"]);
5319 } 5265 }
5320 } 5266 }
5321 5267
5322 core.Map<core.String, core.Object> toJson() { 5268 core.Map<core.String, core.Object> toJson() {
5323 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5269 final core.Map<core.String, core.Object> _json =
5270 new core.Map<core.String, core.Object>();
5324 if (tag != null) { 5271 if (tag != null) {
5325 _json["tag"] = (tag).toJson(); 5272 _json["tag"] = (tag).toJson();
5326 } 5273 }
5327 return _json; 5274 return _json;
5328 } 5275 }
5329 } 5276 }
5330 5277
5331 /** The result of reverting a trigger in a workspace. */ 5278 /// The result of reverting a trigger in a workspace.
5332 class RevertTriggerResponse { 5279 class RevertTriggerResponse {
5333 /** 5280 /// Trigger as it appears in the latest container version since the last
5334 * Trigger as it appears in the latest container version since the last 5281 /// workspace synchronization operation. If no trigger is present, that means
5335 * workspace synchronization operation. If no trigger is present, that means 5282 /// the trigger was deleted in the latest container version.
5336 * the trigger was deleted in the latest container version.
5337 */
5338 Trigger trigger; 5283 Trigger trigger;
5339 5284
5340 RevertTriggerResponse(); 5285 RevertTriggerResponse();
5341 5286
5342 RevertTriggerResponse.fromJson(core.Map _json) { 5287 RevertTriggerResponse.fromJson(core.Map _json) {
5343 if (_json.containsKey("trigger")) { 5288 if (_json.containsKey("trigger")) {
5344 trigger = new Trigger.fromJson(_json["trigger"]); 5289 trigger = new Trigger.fromJson(_json["trigger"]);
5345 } 5290 }
5346 } 5291 }
5347 5292
5348 core.Map<core.String, core.Object> toJson() { 5293 core.Map<core.String, core.Object> toJson() {
5349 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5294 final core.Map<core.String, core.Object> _json =
5295 new core.Map<core.String, core.Object>();
5350 if (trigger != null) { 5296 if (trigger != null) {
5351 _json["trigger"] = (trigger).toJson(); 5297 _json["trigger"] = (trigger).toJson();
5352 } 5298 }
5353 return _json; 5299 return _json;
5354 } 5300 }
5355 } 5301 }
5356 5302
5357 /** The result of reverting a variable in a workspace. */ 5303 /// The result of reverting a variable in a workspace.
5358 class RevertVariableResponse { 5304 class RevertVariableResponse {
5359 /** 5305 /// Variable as it appears in the latest container version since the last
5360 * Variable as it appears in the latest container version since the last 5306 /// workspace synchronization operation. If no variable is present, that
5361 * workspace synchronization operation. If no variable is present, that means 5307 /// means the variable was deleted in the latest container version.
5362 * the variable was deleted in the latest container version.
5363 */
5364 Variable variable; 5308 Variable variable;
5365 5309
5366 RevertVariableResponse(); 5310 RevertVariableResponse();
5367 5311
5368 RevertVariableResponse.fromJson(core.Map _json) { 5312 RevertVariableResponse.fromJson(core.Map _json) {
5369 if (_json.containsKey("variable")) { 5313 if (_json.containsKey("variable")) {
5370 variable = new Variable.fromJson(_json["variable"]); 5314 variable = new Variable.fromJson(_json["variable"]);
5371 } 5315 }
5372 } 5316 }
5373 5317
5374 core.Map<core.String, core.Object> toJson() { 5318 core.Map<core.String, core.Object> toJson() {
5375 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5319 final core.Map<core.String, core.Object> _json =
5320 new core.Map<core.String, core.Object>();
5376 if (variable != null) { 5321 if (variable != null) {
5377 _json["variable"] = (variable).toJson(); 5322 _json["variable"] = (variable).toJson();
5378 } 5323 }
5379 return _json; 5324 return _json;
5380 } 5325 }
5381 } 5326 }
5382 5327
5383 /** 5328 /// Represents a reference to atag that fires before another tag in order to
5384 * Represents a reference to atag that fires before another tag in order to set 5329 /// set up dependencies.
5385 * up dependencies.
5386 */
5387 class SetupTag { 5330 class SetupTag {
5388 /** 5331 /// If true, fire the main tag if and only if the setup tag fires
5389 * If true, fire the main tag if and only if the setup tag fires successfully. 5332 /// successfully. If false, fire the main tag regardless of setup tag firing
5390 * If false, fire the main tag regardless of setup tag firing status. 5333 /// status.
5391 */
5392 core.bool stopOnSetupFailure; 5334 core.bool stopOnSetupFailure;
5393 /** The name of the setup tag. */ 5335
5336 /// The name of the setup tag.
5394 core.String tagName; 5337 core.String tagName;
5395 5338
5396 SetupTag(); 5339 SetupTag();
5397 5340
5398 SetupTag.fromJson(core.Map _json) { 5341 SetupTag.fromJson(core.Map _json) {
5399 if (_json.containsKey("stopOnSetupFailure")) { 5342 if (_json.containsKey("stopOnSetupFailure")) {
5400 stopOnSetupFailure = _json["stopOnSetupFailure"]; 5343 stopOnSetupFailure = _json["stopOnSetupFailure"];
5401 } 5344 }
5402 if (_json.containsKey("tagName")) { 5345 if (_json.containsKey("tagName")) {
5403 tagName = _json["tagName"]; 5346 tagName = _json["tagName"];
5404 } 5347 }
5405 } 5348 }
5406 5349
5407 core.Map<core.String, core.Object> toJson() { 5350 core.Map<core.String, core.Object> toJson() {
5408 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5351 final core.Map<core.String, core.Object> _json =
5352 new core.Map<core.String, core.Object>();
5409 if (stopOnSetupFailure != null) { 5353 if (stopOnSetupFailure != null) {
5410 _json["stopOnSetupFailure"] = stopOnSetupFailure; 5354 _json["stopOnSetupFailure"] = stopOnSetupFailure;
5411 } 5355 }
5412 if (tagName != null) { 5356 if (tagName != null) {
5413 _json["tagName"] = tagName; 5357 _json["tagName"] = tagName;
5414 } 5358 }
5415 return _json; 5359 return _json;
5416 } 5360 }
5417 } 5361 }
5418 5362
5419 /** The status of a workspace after synchronization. */ 5363 /// The status of a workspace after synchronization.
5420 class SyncStatus { 5364 class SyncStatus {
5421 /** Synchornization operation detected a merge conflict. */ 5365 /// Synchornization operation detected a merge conflict.
5422 core.bool mergeConflict; 5366 core.bool mergeConflict;
5423 /** An error occurred during the synchronization operation. */ 5367
5368 /// An error occurred during the synchronization operation.
5424 core.bool syncError; 5369 core.bool syncError;
5425 5370
5426 SyncStatus(); 5371 SyncStatus();
5427 5372
5428 SyncStatus.fromJson(core.Map _json) { 5373 SyncStatus.fromJson(core.Map _json) {
5429 if (_json.containsKey("mergeConflict")) { 5374 if (_json.containsKey("mergeConflict")) {
5430 mergeConflict = _json["mergeConflict"]; 5375 mergeConflict = _json["mergeConflict"];
5431 } 5376 }
5432 if (_json.containsKey("syncError")) { 5377 if (_json.containsKey("syncError")) {
5433 syncError = _json["syncError"]; 5378 syncError = _json["syncError"];
5434 } 5379 }
5435 } 5380 }
5436 5381
5437 core.Map<core.String, core.Object> toJson() { 5382 core.Map<core.String, core.Object> toJson() {
5438 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5383 final core.Map<core.String, core.Object> _json =
5384 new core.Map<core.String, core.Object>();
5439 if (mergeConflict != null) { 5385 if (mergeConflict != null) {
5440 _json["mergeConflict"] = mergeConflict; 5386 _json["mergeConflict"] = mergeConflict;
5441 } 5387 }
5442 if (syncError != null) { 5388 if (syncError != null) {
5443 _json["syncError"] = syncError; 5389 _json["syncError"] = syncError;
5444 } 5390 }
5445 return _json; 5391 return _json;
5446 } 5392 }
5447 } 5393 }
5448 5394
5449 /** 5395 /// A response after synchronizing the workspace to the latest container
5450 * A response after synchronizing the workspace to the latest container version. 5396 /// version.
5451 */
5452 class SyncWorkspaceResponse { 5397 class SyncWorkspaceResponse {
5453 /** 5398 /// The merge conflict after sync. If this field is not empty, the sync is
5454 * The merge conflict after sync. If this field is not empty, the sync is 5399 /// still treated as successful. But a version cannot be created until all
5455 * still treated as successful. But a version cannot be created until all 5400 /// conflicts are resolved.
5456 * conflicts are resolved.
5457 */
5458 core.List<MergeConflict> mergeConflict; 5401 core.List<MergeConflict> mergeConflict;
5459 /** 5402
5460 * Indicates whether synchronization caused a merge conflict or sync error. 5403 /// Indicates whether synchronization caused a merge conflict or sync error.
5461 */
5462 SyncStatus syncStatus; 5404 SyncStatus syncStatus;
5463 5405
5464 SyncWorkspaceResponse(); 5406 SyncWorkspaceResponse();
5465 5407
5466 SyncWorkspaceResponse.fromJson(core.Map _json) { 5408 SyncWorkspaceResponse.fromJson(core.Map _json) {
5467 if (_json.containsKey("mergeConflict")) { 5409 if (_json.containsKey("mergeConflict")) {
5468 mergeConflict = _json["mergeConflict"].map((value) => new MergeConflict.fr omJson(value)).toList(); 5410 mergeConflict = _json["mergeConflict"]
5411 .map((value) => new MergeConflict.fromJson(value))
5412 .toList();
5469 } 5413 }
5470 if (_json.containsKey("syncStatus")) { 5414 if (_json.containsKey("syncStatus")) {
5471 syncStatus = new SyncStatus.fromJson(_json["syncStatus"]); 5415 syncStatus = new SyncStatus.fromJson(_json["syncStatus"]);
5472 } 5416 }
5473 } 5417 }
5474 5418
5475 core.Map<core.String, core.Object> toJson() { 5419 core.Map<core.String, core.Object> toJson() {
5476 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5420 final core.Map<core.String, core.Object> _json =
5421 new core.Map<core.String, core.Object>();
5477 if (mergeConflict != null) { 5422 if (mergeConflict != null) {
5478 _json["mergeConflict"] = mergeConflict.map((value) => (value).toJson()).to List(); 5423 _json["mergeConflict"] =
5424 mergeConflict.map((value) => (value).toJson()).toList();
5479 } 5425 }
5480 if (syncStatus != null) { 5426 if (syncStatus != null) {
5481 _json["syncStatus"] = (syncStatus).toJson(); 5427 _json["syncStatus"] = (syncStatus).toJson();
5482 } 5428 }
5483 return _json; 5429 return _json;
5484 } 5430 }
5485 } 5431 }
5486 5432
5487 /** Represents a Google Tag Manager Tag. */ 5433 /// Represents a Google Tag Manager Tag.
5488 class Tag { 5434 class Tag {
5489 /** GTM Account ID. */ 5435 /// GTM Account ID.
5490 core.String accountId; 5436 core.String accountId;
5491 /** 5437
5492 * Blocking rule IDs. If any of the listed rules evaluate to true, the tag 5438 /// Blocking rule IDs. If any of the listed rules evaluate to true, the tag
5493 * will not fire. 5439 /// will not fire.
5494 */
5495 core.List<core.String> blockingRuleId; 5440 core.List<core.String> blockingRuleId;
5496 /** 5441
5497 * Blocking trigger IDs. If any of the listed triggers evaluate to true, the 5442 /// Blocking trigger IDs. If any of the listed triggers evaluate to true, the
5498 * tag will not fire. 5443 /// tag will not fire.
5499 */
5500 core.List<core.String> blockingTriggerId; 5444 core.List<core.String> blockingTriggerId;
5501 /** GTM Container ID. */ 5445
5446 /// GTM Container ID.
5502 core.String containerId; 5447 core.String containerId;
5503 /** 5448
5504 * The fingerprint of the GTM Tag as computed at storage time. This value is 5449 /// The fingerprint of the GTM Tag as computed at storage time. This value is
5505 * recomputed whenever the tag is modified. 5450 /// recomputed whenever the tag is modified.
5506 */
5507 core.String fingerprint; 5451 core.String fingerprint;
5508 /** 5452
5509 * Firing rule IDs. A tag will fire when any of the listed rules are true and 5453 /// Firing rule IDs. A tag will fire when any of the listed rules are true
5510 * all of its blockingRuleIds (if any specified) are false. 5454 /// and all of its blockingRuleIds (if any specified) are false.
5511 */
5512 core.List<core.String> firingRuleId; 5455 core.List<core.String> firingRuleId;
5513 /** 5456
5514 * Firing trigger IDs. A tag will fire when any of the listed triggers are 5457 /// Firing trigger IDs. A tag will fire when any of the listed triggers are
5515 * true and all of its blockingTriggerIds (if any specified) are false. 5458 /// true and all of its blockingTriggerIds (if any specified) are false.
5516 */
5517 core.List<core.String> firingTriggerId; 5459 core.List<core.String> firingTriggerId;
5518 /** 5460
5519 * If set to true, this tag will only fire in the live environment (e.g. not 5461 /// If set to true, this tag will only fire in the live environment (e.g. not
5520 * in preview or debug mode). 5462 /// in preview or debug mode).
5521 */
5522 core.bool liveOnly; 5463 core.bool liveOnly;
5523 /** Tag display name. */ 5464
5465 /// Tag display name.
5524 core.String name; 5466 core.String name;
5525 /** User notes on how to apply this tag in the container. */ 5467
5468 /// User notes on how to apply this tag in the container.
5526 core.String notes; 5469 core.String notes;
5527 /** The tag's parameters. */ 5470
5471 /// The tag's parameters.
5528 core.List<Parameter> parameter; 5472 core.List<Parameter> parameter;
5529 /** Parent folder id. */ 5473
5474 /// Parent folder id.
5530 core.String parentFolderId; 5475 core.String parentFolderId;
5531 /** GTM Tag's API relative path. */ 5476
5477 /// GTM Tag's API relative path.
5532 core.String path; 5478 core.String path;
5533 /** 5479
5534 * User defined numeric priority of the tag. Tags are fired asynchronously in 5480 /// User defined numeric priority of the tag. Tags are fired asynchronously
5535 * order of priority. Tags with higher numeric value fire first. A tag's 5481 /// in order of priority. Tags with higher numeric value fire first. A tag's
5536 * priority can be a positive or negative value. The default value is 0. 5482 /// priority can be a positive or negative value. The default value is 0.
5537 */
5538 Parameter priority; 5483 Parameter priority;
5539 /** The end timestamp in milliseconds to schedule a tag. */ 5484
5485 /// The end timestamp in milliseconds to schedule a tag.
5540 core.String scheduleEndMs; 5486 core.String scheduleEndMs;
5541 /** The start timestamp in milliseconds to schedule a tag. */ 5487
5488 /// The start timestamp in milliseconds to schedule a tag.
5542 core.String scheduleStartMs; 5489 core.String scheduleStartMs;
5543 /** The list of setup tags. Currently we only allow one. */ 5490
5491 /// The list of setup tags. Currently we only allow one.
5544 core.List<SetupTag> setupTag; 5492 core.List<SetupTag> setupTag;
5545 /** 5493
5546 * Option to fire this tag. 5494 /// Option to fire this tag.
5547 * Possible string values are: 5495 /// Possible string values are:
5548 * - "oncePerEvent" 5496 /// - "oncePerEvent"
5549 * - "oncePerLoad" 5497 /// - "oncePerLoad"
5550 * - "tagFiringOptionUnspecified" 5498 /// - "tagFiringOptionUnspecified"
5551 * - "unlimited" 5499 /// - "unlimited"
5552 */
5553 core.String tagFiringOption; 5500 core.String tagFiringOption;
5554 /** The Tag ID uniquely identifies the GTM Tag. */ 5501
5502 /// The Tag ID uniquely identifies the GTM Tag.
5555 core.String tagId; 5503 core.String tagId;
5556 /** Auto generated link to the tag manager UI */ 5504
5505 /// Auto generated link to the tag manager UI
5557 core.String tagManagerUrl; 5506 core.String tagManagerUrl;
5558 /** The list of teardown tags. Currently we only allow one. */ 5507
5508 /// The list of teardown tags. Currently we only allow one.
5559 core.List<TeardownTag> teardownTag; 5509 core.List<TeardownTag> teardownTag;
5560 /** GTM Tag Type. */ 5510
5511 /// GTM Tag Type.
5561 core.String type; 5512 core.String type;
5562 /** GTM Workspace ID. */ 5513
5514 /// GTM Workspace ID.
5563 core.String workspaceId; 5515 core.String workspaceId;
5564 5516
5565 Tag(); 5517 Tag();
5566 5518
5567 Tag.fromJson(core.Map _json) { 5519 Tag.fromJson(core.Map _json) {
5568 if (_json.containsKey("accountId")) { 5520 if (_json.containsKey("accountId")) {
5569 accountId = _json["accountId"]; 5521 accountId = _json["accountId"];
5570 } 5522 }
5571 if (_json.containsKey("blockingRuleId")) { 5523 if (_json.containsKey("blockingRuleId")) {
5572 blockingRuleId = _json["blockingRuleId"]; 5524 blockingRuleId = _json["blockingRuleId"];
(...skipping 16 matching lines...) Expand all
5589 if (_json.containsKey("liveOnly")) { 5541 if (_json.containsKey("liveOnly")) {
5590 liveOnly = _json["liveOnly"]; 5542 liveOnly = _json["liveOnly"];
5591 } 5543 }
5592 if (_json.containsKey("name")) { 5544 if (_json.containsKey("name")) {
5593 name = _json["name"]; 5545 name = _json["name"];
5594 } 5546 }
5595 if (_json.containsKey("notes")) { 5547 if (_json.containsKey("notes")) {
5596 notes = _json["notes"]; 5548 notes = _json["notes"];
5597 } 5549 }
5598 if (_json.containsKey("parameter")) { 5550 if (_json.containsKey("parameter")) {
5599 parameter = _json["parameter"].map((value) => new Parameter.fromJson(value )).toList(); 5551 parameter = _json["parameter"]
5552 .map((value) => new Parameter.fromJson(value))
5553 .toList();
5600 } 5554 }
5601 if (_json.containsKey("parentFolderId")) { 5555 if (_json.containsKey("parentFolderId")) {
5602 parentFolderId = _json["parentFolderId"]; 5556 parentFolderId = _json["parentFolderId"];
5603 } 5557 }
5604 if (_json.containsKey("path")) { 5558 if (_json.containsKey("path")) {
5605 path = _json["path"]; 5559 path = _json["path"];
5606 } 5560 }
5607 if (_json.containsKey("priority")) { 5561 if (_json.containsKey("priority")) {
5608 priority = new Parameter.fromJson(_json["priority"]); 5562 priority = new Parameter.fromJson(_json["priority"]);
5609 } 5563 }
5610 if (_json.containsKey("scheduleEndMs")) { 5564 if (_json.containsKey("scheduleEndMs")) {
5611 scheduleEndMs = _json["scheduleEndMs"]; 5565 scheduleEndMs = _json["scheduleEndMs"];
5612 } 5566 }
5613 if (_json.containsKey("scheduleStartMs")) { 5567 if (_json.containsKey("scheduleStartMs")) {
5614 scheduleStartMs = _json["scheduleStartMs"]; 5568 scheduleStartMs = _json["scheduleStartMs"];
5615 } 5569 }
5616 if (_json.containsKey("setupTag")) { 5570 if (_json.containsKey("setupTag")) {
5617 setupTag = _json["setupTag"].map((value) => new SetupTag.fromJson(value)). toList(); 5571 setupTag = _json["setupTag"]
5572 .map((value) => new SetupTag.fromJson(value))
5573 .toList();
5618 } 5574 }
5619 if (_json.containsKey("tagFiringOption")) { 5575 if (_json.containsKey("tagFiringOption")) {
5620 tagFiringOption = _json["tagFiringOption"]; 5576 tagFiringOption = _json["tagFiringOption"];
5621 } 5577 }
5622 if (_json.containsKey("tagId")) { 5578 if (_json.containsKey("tagId")) {
5623 tagId = _json["tagId"]; 5579 tagId = _json["tagId"];
5624 } 5580 }
5625 if (_json.containsKey("tagManagerUrl")) { 5581 if (_json.containsKey("tagManagerUrl")) {
5626 tagManagerUrl = _json["tagManagerUrl"]; 5582 tagManagerUrl = _json["tagManagerUrl"];
5627 } 5583 }
5628 if (_json.containsKey("teardownTag")) { 5584 if (_json.containsKey("teardownTag")) {
5629 teardownTag = _json["teardownTag"].map((value) => new TeardownTag.fromJson (value)).toList(); 5585 teardownTag = _json["teardownTag"]
5586 .map((value) => new TeardownTag.fromJson(value))
5587 .toList();
5630 } 5588 }
5631 if (_json.containsKey("type")) { 5589 if (_json.containsKey("type")) {
5632 type = _json["type"]; 5590 type = _json["type"];
5633 } 5591 }
5634 if (_json.containsKey("workspaceId")) { 5592 if (_json.containsKey("workspaceId")) {
5635 workspaceId = _json["workspaceId"]; 5593 workspaceId = _json["workspaceId"];
5636 } 5594 }
5637 } 5595 }
5638 5596
5639 core.Map<core.String, core.Object> toJson() { 5597 core.Map<core.String, core.Object> toJson() {
5640 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5598 final core.Map<core.String, core.Object> _json =
5599 new core.Map<core.String, core.Object>();
5641 if (accountId != null) { 5600 if (accountId != null) {
5642 _json["accountId"] = accountId; 5601 _json["accountId"] = accountId;
5643 } 5602 }
5644 if (blockingRuleId != null) { 5603 if (blockingRuleId != null) {
5645 _json["blockingRuleId"] = blockingRuleId; 5604 _json["blockingRuleId"] = blockingRuleId;
5646 } 5605 }
5647 if (blockingTriggerId != null) { 5606 if (blockingTriggerId != null) {
5648 _json["blockingTriggerId"] = blockingTriggerId; 5607 _json["blockingTriggerId"] = blockingTriggerId;
5649 } 5608 }
5650 if (containerId != null) { 5609 if (containerId != null) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
5692 if (tagFiringOption != null) { 5651 if (tagFiringOption != null) {
5693 _json["tagFiringOption"] = tagFiringOption; 5652 _json["tagFiringOption"] = tagFiringOption;
5694 } 5653 }
5695 if (tagId != null) { 5654 if (tagId != null) {
5696 _json["tagId"] = tagId; 5655 _json["tagId"] = tagId;
5697 } 5656 }
5698 if (tagManagerUrl != null) { 5657 if (tagManagerUrl != null) {
5699 _json["tagManagerUrl"] = tagManagerUrl; 5658 _json["tagManagerUrl"] = tagManagerUrl;
5700 } 5659 }
5701 if (teardownTag != null) { 5660 if (teardownTag != null) {
5702 _json["teardownTag"] = teardownTag.map((value) => (value).toJson()).toList (); 5661 _json["teardownTag"] =
5662 teardownTag.map((value) => (value).toJson()).toList();
5703 } 5663 }
5704 if (type != null) { 5664 if (type != null) {
5705 _json["type"] = type; 5665 _json["type"] = type;
5706 } 5666 }
5707 if (workspaceId != null) { 5667 if (workspaceId != null) {
5708 _json["workspaceId"] = workspaceId; 5668 _json["workspaceId"] = workspaceId;
5709 } 5669 }
5710 return _json; 5670 return _json;
5711 } 5671 }
5712 } 5672 }
5713 5673
5714 /** 5674 /// Represents a tag that fires after another tag in order to tear down
5715 * Represents a tag that fires after another tag in order to tear down 5675 /// dependencies.
5716 * dependencies.
5717 */
5718 class TeardownTag { 5676 class TeardownTag {
5719 /** 5677 /// If true, fire the teardown tag if and only if the main tag fires
5720 * If true, fire the teardown tag if and only if the main tag fires 5678 /// successfully. If false, fire the teardown tag regardless of main tag
5721 * successfully. If false, fire the teardown tag regardless of main tag firing 5679 /// firing status.
5722 * status.
5723 */
5724 core.bool stopTeardownOnFailure; 5680 core.bool stopTeardownOnFailure;
5725 /** The name of the teardown tag. */ 5681
5682 /// The name of the teardown tag.
5726 core.String tagName; 5683 core.String tagName;
5727 5684
5728 TeardownTag(); 5685 TeardownTag();
5729 5686
5730 TeardownTag.fromJson(core.Map _json) { 5687 TeardownTag.fromJson(core.Map _json) {
5731 if (_json.containsKey("stopTeardownOnFailure")) { 5688 if (_json.containsKey("stopTeardownOnFailure")) {
5732 stopTeardownOnFailure = _json["stopTeardownOnFailure"]; 5689 stopTeardownOnFailure = _json["stopTeardownOnFailure"];
5733 } 5690 }
5734 if (_json.containsKey("tagName")) { 5691 if (_json.containsKey("tagName")) {
5735 tagName = _json["tagName"]; 5692 tagName = _json["tagName"];
5736 } 5693 }
5737 } 5694 }
5738 5695
5739 core.Map<core.String, core.Object> toJson() { 5696 core.Map<core.String, core.Object> toJson() {
5740 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5697 final core.Map<core.String, core.Object> _json =
5698 new core.Map<core.String, core.Object>();
5741 if (stopTeardownOnFailure != null) { 5699 if (stopTeardownOnFailure != null) {
5742 _json["stopTeardownOnFailure"] = stopTeardownOnFailure; 5700 _json["stopTeardownOnFailure"] = stopTeardownOnFailure;
5743 } 5701 }
5744 if (tagName != null) { 5702 if (tagName != null) {
5745 _json["tagName"] = tagName; 5703 _json["tagName"] = tagName;
5746 } 5704 }
5747 return _json; 5705 return _json;
5748 } 5706 }
5749 } 5707 }
5750 5708
5751 /** 5709 /// A Timestamp represents a point in time independent of any time zone or
5752 * A Timestamp represents a point in time independent of any time zone or 5710 /// calendar, represented as seconds and fractions of seconds at nanosecond
5753 * calendar, represented as seconds and fractions of seconds at nanosecond 5711 /// resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian
5754 * resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian 5712 /// Calendar which extends the Gregorian calendar backwards to year one. It is
5755 * Calendar which extends the Gregorian calendar backwards to year one. It is 5713 /// encoded assuming all minutes are 60 seconds long, i.e. leap seconds are
5756 * encoded assuming all minutes are 60 seconds long, i.e. leap seconds are 5714 /// "smeared" so that no leap second table is needed for interpretation. Range
5757 * "smeared" so that no leap second table is needed for interpretation. Range is 5715 /// is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
5758 * from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting 5716 /// restricting to that range, we ensure that we can convert to and from RFC
5759 * to that range, we ensure that we can convert to and from RFC 3339 date 5717 /// 3339 date strings. See
5760 * strings. See 5718 /// [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt) .
5761 * [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). 5719 ///
5762 * 5720 /// # Examples
5763 * # Examples 5721 ///
5764 * 5722 /// Example 1: Compute Timestamp from POSIX `time()`.
5765 * Example 1: Compute Timestamp from POSIX `time()`. 5723 ///
5766 * 5724 /// Timestamp timestamp; timestamp.set_seconds(time(NULL));
5767 * Timestamp timestamp; timestamp.set_seconds(time(NULL)); 5725 /// timestamp.set_nanos(0);
5768 * timestamp.set_nanos(0); 5726 ///
5769 * 5727 /// Example 2: Compute Timestamp from POSIX `gettimeofday()`.
5770 * Example 2: Compute Timestamp from POSIX `gettimeofday()`. 5728 ///
5771 * 5729 /// struct timeval tv; gettimeofday(&tv, NULL);
5772 * struct timeval tv; gettimeofday(&tv, NULL); 5730 ///
5773 * 5731 /// Timestamp timestamp; timestamp.set_seconds(tv.tv_sec);
5774 * Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); 5732 /// timestamp.set_nanos(tv.tv_usec * 1000);
5775 * timestamp.set_nanos(tv.tv_usec * 1000); 5733 ///
5776 * 5734 /// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
5777 * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. 5735 ///
5778 * 5736 /// FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks =
5779 * FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = 5737 /// (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
5780 * (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; 5738 ///
5781 * 5739 /// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z //
5782 * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z // 5740 /// is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp
5783 * is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp 5741 /// timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) -
5784 * timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) - 5742 /// 11644473600LL)); timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
5785 * 11644473600LL)); timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); 5743 ///
5786 * 5744 /// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
5787 * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. 5745 ///
5788 * 5746 /// long millis = System.currentTimeMillis();
5789 * long millis = System.currentTimeMillis(); 5747 ///
5790 * 5748 /// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
5791 * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) 5749 /// .setNanos((int) ((millis % 1000) * 1000000)).build();
5792 * .setNanos((int) ((millis % 1000) * 1000000)).build(); 5750 ///
5793 * 5751 ///
5794 * 5752 ///
5795 * 5753 /// Example 5: Compute Timestamp from current time in Python.
5796 * Example 5: Compute Timestamp from current time in Python. 5754 ///
5797 * 5755 /// timestamp = Timestamp() timestamp.GetCurrentTime()
5798 * timestamp = Timestamp() timestamp.GetCurrentTime() 5756 ///
5799 * 5757 /// # JSON Mapping
5800 * # JSON Mapping 5758 ///
5801 * 5759 /// In JSON format, the Timestamp type is encoded as a string in the [RFC
5802 * In JSON format, the Timestamp type is encoded as a string in the [RFC 5760 /// 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the format is
5803 * 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the format is 5761 /// "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" where {year} is
5804 * "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" where {year} is 5762 /// always expressed using four digits while {month}, {day}, {hour}, {min}, and
5805 * always expressed using four digits while {month}, {day}, {hour}, {min}, and 5763 /// {sec} are zero-padded to two digits each. The fractional seconds, which can
5806 * {sec} are zero-padded to two digits each. The fractional seconds, which can 5764 /// go up to 9 digits (i.e. up to 1 nanosecond resolution), are optional. The
5807 * go up to 9 digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" 5765 /// "Z" suffix indicates the timezone ("UTC"); the timezone is required, though
5808 * suffix indicates the timezone ("UTC"); the timezone is required, though only 5766 /// only UTC (as indicated by "Z") is presently supported.
5809 * UTC (as indicated by "Z") is presently supported. 5767 ///
5810 * 5768 /// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC
5811 * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC 5769 /// on January 15, 2017.
5812 * on January 15, 2017. 5770 ///
5813 * 5771 /// In JavaScript, one can convert a Date object to this format using the
5814 * In JavaScript, one can convert a Date object to this format using the 5772 /// standard
5815 * standard 5773 /// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe rence/Global_Objects/Date/toISOString]
5816 * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refer ence/Global_Objects/Date/toISOString] 5774 /// method. In Python, a standard `datetime.datetime` object can be converted
5817 * method. In Python, a standard `datetime.datetime` object can be converted to 5775 /// to this format using
5818 * this format using 5776 /// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
5819 * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with 5777 /// with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
5820 * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use 5778 /// can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
5821 * the Joda Time's [`ISODateTimeFormat.dateTime()`]( 5779 /// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFor mat.html#dateTime())
5822 * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeForm at.html#dateTime()) 5780 /// to obtain a formatter capable of generating timestamps in this format.
5823 * to obtain a formatter capable of generating timestamps in this format.
5824 */
5825 class Timestamp { 5781 class Timestamp {
5826 /** 5782 /// Non-negative fractions of a second at nanosecond resolution. Negative
5827 * Non-negative fractions of a second at nanosecond resolution. Negative 5783 /// second values with fractions must still have non-negative nanos values
5828 * second values with fractions must still have non-negative nanos values that 5784 /// that count forward in time. Must be from 0 to 999,999,999 inclusive.
5829 * count forward in time. Must be from 0 to 999,999,999 inclusive.
5830 */
5831 core.int nanos; 5785 core.int nanos;
5832 /** 5786
5833 * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must 5787 /// Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z.
5834 * be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. 5788 /// Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
5835 */
5836 core.String seconds; 5789 core.String seconds;
5837 5790
5838 Timestamp(); 5791 Timestamp();
5839 5792
5840 Timestamp.fromJson(core.Map _json) { 5793 Timestamp.fromJson(core.Map _json) {
5841 if (_json.containsKey("nanos")) { 5794 if (_json.containsKey("nanos")) {
5842 nanos = _json["nanos"]; 5795 nanos = _json["nanos"];
5843 } 5796 }
5844 if (_json.containsKey("seconds")) { 5797 if (_json.containsKey("seconds")) {
5845 seconds = _json["seconds"]; 5798 seconds = _json["seconds"];
5846 } 5799 }
5847 } 5800 }
5848 5801
5849 core.Map<core.String, core.Object> toJson() { 5802 core.Map<core.String, core.Object> toJson() {
5850 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5803 final core.Map<core.String, core.Object> _json =
5804 new core.Map<core.String, core.Object>();
5851 if (nanos != null) { 5805 if (nanos != null) {
5852 _json["nanos"] = nanos; 5806 _json["nanos"] = nanos;
5853 } 5807 }
5854 if (seconds != null) { 5808 if (seconds != null) {
5855 _json["seconds"] = seconds; 5809 _json["seconds"] = seconds;
5856 } 5810 }
5857 return _json; 5811 return _json;
5858 } 5812 }
5859 } 5813 }
5860 5814
5861 /** Represents a Google Tag Manager Trigger */ 5815 /// Represents a Google Tag Manager Trigger
5862 class Trigger { 5816 class Trigger {
5863 /** GTM Account ID. */ 5817 /// GTM Account ID.
5864 core.String accountId; 5818 core.String accountId;
5865 /** Used in the case of auto event tracking. */ 5819
5820 /// Used in the case of auto event tracking.
5866 core.List<Condition> autoEventFilter; 5821 core.List<Condition> autoEventFilter;
5867 /** 5822
5868 * Whether or not we should only fire tags if the form submit or link click 5823 /// Whether or not we should only fire tags if the form submit or link click
5869 * event is not cancelled by some other event handler (e.g. because of 5824 /// event is not cancelled by some other event handler (e.g. because of
5870 * validation). Only valid for Form Submission and Link Click triggers. 5825 /// validation). Only valid for Form Submission and Link Click triggers.
5871 */
5872 Parameter checkValidation; 5826 Parameter checkValidation;
5873 /** GTM Container ID. */ 5827
5828 /// GTM Container ID.
5874 core.String containerId; 5829 core.String containerId;
5875 /** 5830
5876 * A visibility trigger minimum continuous visible time (in milliseconds). 5831 /// A visibility trigger minimum continuous visible time (in milliseconds).
5877 * Only valid for AMP Visibility trigger. 5832 /// Only valid for AMP Visibility trigger.
5878 */
5879 Parameter continuousTimeMinMilliseconds; 5833 Parameter continuousTimeMinMilliseconds;
5880 /** 5834
5881 * Used in the case of custom event, which is fired iff all Conditions are 5835 /// Used in the case of custom event, which is fired iff all Conditions are
5882 * true. 5836 /// true.
5883 */
5884 core.List<Condition> customEventFilter; 5837 core.List<Condition> customEventFilter;
5885 /** Name of the GTM event that is fired. Only valid for Timer triggers. */ 5838
5839 /// Name of the GTM event that is fired. Only valid for Timer triggers.
5886 Parameter eventName; 5840 Parameter eventName;
5887 /** The trigger will only fire iff all Conditions are true. */ 5841
5842 /// The trigger will only fire iff all Conditions are true.
5888 core.List<Condition> filter; 5843 core.List<Condition> filter;
5889 /** 5844
5890 * The fingerprint of the GTM Trigger as computed at storage time. This value 5845 /// The fingerprint of the GTM Trigger as computed at storage time. This
5891 * is recomputed whenever the trigger is modified. 5846 /// value is recomputed whenever the trigger is modified.
5892 */
5893 core.String fingerprint; 5847 core.String fingerprint;
5894 /** 5848
5895 * List of integer percentage values for scroll triggers. The trigger will 5849 /// List of integer percentage values for scroll triggers. The trigger will
5896 * fire when each percentage is reached when the view is scrolled 5850 /// fire when each percentage is reached when the view is scrolled
5897 * horizontally. Only valid for AMP scroll triggers. 5851 /// horizontally. Only valid for AMP scroll triggers.
5898 */
5899 Parameter horizontalScrollPercentageList; 5852 Parameter horizontalScrollPercentageList;
5900 /** 5853
5901 * Time between triggering recurring Timer Events (in milliseconds). Only 5854 /// Time between triggering recurring Timer Events (in milliseconds). Only
5902 * valid for Timer triggers. 5855 /// valid for Timer triggers.
5903 */
5904 Parameter interval; 5856 Parameter interval;
5905 /** 5857
5906 * Time between Timer Events to fire (in seconds). Only valid for AMP Timer 5858 /// Time between Timer Events to fire (in seconds). Only valid for AMP Timer
5907 * trigger. 5859 /// trigger.
5908 */
5909 Parameter intervalSeconds; 5860 Parameter intervalSeconds;
5910 /** 5861
5911 * Limit of the number of GTM events this Timer Trigger will fire. If no limit 5862 /// Limit of the number of GTM events this Timer Trigger will fire. If no
5912 * is set, we will continue to fire GTM events until the user leaves the page. 5863 /// limit is set, we will continue to fire GTM events until the user leaves
5913 * Only valid for Timer triggers. 5864 /// the page. Only valid for Timer triggers.
5914 */
5915 Parameter limit; 5865 Parameter limit;
5916 /** 5866
5917 * Max time to fire Timer Events (in seconds). Only valid for AMP Timer 5867 /// Max time to fire Timer Events (in seconds). Only valid for AMP Timer
5918 * trigger. 5868 /// trigger.
5919 */
5920 Parameter maxTimerLengthSeconds; 5869 Parameter maxTimerLengthSeconds;
5921 /** Trigger display name. */ 5870
5871 /// Trigger display name.
5922 core.String name; 5872 core.String name;
5923 /** User notes on how to apply this trigger in the container. */ 5873
5874 /// User notes on how to apply this trigger in the container.
5924 core.String notes; 5875 core.String notes;
5925 /** Parent folder id. */ 5876
5877 /// Parent folder id.
5926 core.String parentFolderId; 5878 core.String parentFolderId;
5927 /** GTM Trigger's API relative path. */ 5879
5880 /// GTM Trigger's API relative path.
5928 core.String path; 5881 core.String path;
5929 /** 5882
5930 * A click trigger CSS selector (i.e. "a", "button" etc.). Only valid for AMP 5883 /// A click trigger CSS selector (i.e. "a", "button" etc.). Only valid for
5931 * Click trigger. 5884 /// AMP Click trigger.
5932 */
5933 Parameter selector; 5885 Parameter selector;
5934 /** Auto generated link to the tag manager UI */ 5886
5887 /// Auto generated link to the tag manager UI
5935 core.String tagManagerUrl; 5888 core.String tagManagerUrl;
5936 /** 5889
5937 * A visibility trigger minimum total visible time (in milliseconds). Only 5890 /// A visibility trigger minimum total visible time (in milliseconds). Only
5938 * valid for AMP Visibility trigger. 5891 /// valid for AMP Visibility trigger.
5939 */
5940 Parameter totalTimeMinMilliseconds; 5892 Parameter totalTimeMinMilliseconds;
5941 /** The Trigger ID uniquely identifies the GTM Trigger. */ 5893
5894 /// The Trigger ID uniquely identifies the GTM Trigger.
5942 core.String triggerId; 5895 core.String triggerId;
5943 /** 5896
5944 * Defines the data layer event that causes this trigger. 5897 /// Defines the data layer event that causes this trigger.
5945 * Possible string values are: 5898 /// Possible string values are:
5946 * - "always" 5899 /// - "always"
5947 * - "ampClick" 5900 /// - "ampClick"
5948 * - "ampScroll" 5901 /// - "ampScroll"
5949 * - "ampTimer" 5902 /// - "ampTimer"
5950 * - "ampVisibility" 5903 /// - "ampVisibility"
5951 * - "click" 5904 /// - "click"
5952 * - "customEvent" 5905 /// - "customEvent"
5953 * - "domReady" 5906 /// - "domReady"
5954 * - "eventTypeUnspecified" 5907 /// - "eventTypeUnspecified"
5955 * - "firebaseAppException" 5908 /// - "firebaseAppException"
5956 * - "firebaseAppUpdate" 5909 /// - "firebaseAppUpdate"
5957 * - "firebaseCampaign" 5910 /// - "firebaseCampaign"
5958 * - "firebaseFirstOpen" 5911 /// - "firebaseFirstOpen"
5959 * - "firebaseInAppPurchase" 5912 /// - "firebaseInAppPurchase"
5960 * - "firebaseNotificationDismiss" 5913 /// - "firebaseNotificationDismiss"
5961 * - "firebaseNotificationForeground" 5914 /// - "firebaseNotificationForeground"
5962 * - "firebaseNotificationOpen" 5915 /// - "firebaseNotificationOpen"
5963 * - "firebaseNotificationReceive" 5916 /// - "firebaseNotificationReceive"
5964 * - "firebaseOsUpdate" 5917 /// - "firebaseOsUpdate"
5965 * - "firebaseSessionStart" 5918 /// - "firebaseSessionStart"
5966 * - "firebaseUserEngagement" 5919 /// - "firebaseUserEngagement"
5967 * - "formSubmission" 5920 /// - "formSubmission"
5968 * - "historyChange" 5921 /// - "historyChange"
5969 * - "jsError" 5922 /// - "jsError"
5970 * - "linkClick" 5923 /// - "linkClick"
5971 * - "pageview" 5924 /// - "pageview"
5972 * - "timer" 5925 /// - "timer"
5973 * - "windowLoaded" 5926 /// - "windowLoaded"
5974 */
5975 core.String type; 5927 core.String type;
5976 /** 5928
5977 * Globally unique id of the trigger that auto-generates this (a Form Submit, 5929 /// Globally unique id of the trigger that auto-generates this (a Form
5978 * Link Click or Timer listener) if any. Used to make incompatible auto-events 5930 /// Submit, Link Click or Timer listener) if any. Used to make incompatible
5979 * work together with trigger filtering based on trigger ids. This value is 5931 /// auto-events work together with trigger filtering based on trigger ids.
5980 * populated during output generation since the tags implied by triggers don't 5932 /// This value is populated during output generation since the tags implied
5981 * exist until then. Only valid for Form Submit, Link Click and Timer 5933 /// by triggers don't exist until then. Only valid for Form Submit, Link
5982 * triggers. 5934 /// Click and Timer triggers.
5983 */
5984 Parameter uniqueTriggerId; 5935 Parameter uniqueTriggerId;
5985 /** 5936
5986 * List of integer percentage values for scroll triggers. The trigger will 5937 /// List of integer percentage values for scroll triggers. The trigger will
5987 * fire when each percentage is reached when the view is scrolled vertically. 5938 /// fire when each percentage is reached when the view is scrolled
5988 * Only valid for AMP scroll triggers. 5939 /// vertically. Only valid for AMP scroll triggers.
5989 */
5990 Parameter verticalScrollPercentageList; 5940 Parameter verticalScrollPercentageList;
5991 /** 5941
5992 * A visibility trigger CSS selector (i.e. "#id"). Only valid for AMP 5942 /// A visibility trigger CSS selector (i.e. "#id"). Only valid for AMP
5993 * Visibility trigger. 5943 /// Visibility trigger.
5994 */
5995 Parameter visibilitySelector; 5944 Parameter visibilitySelector;
5996 /** 5945
5997 * A visibility trigger maximum percent visibility. Only valid for AMP 5946 /// A visibility trigger maximum percent visibility. Only valid for AMP
5998 * Visibility trigger. 5947 /// Visibility trigger.
5999 */
6000 Parameter visiblePercentageMax; 5948 Parameter visiblePercentageMax;
6001 /** 5949
6002 * A visibility trigger minimum percent visibility. Only valid for AMP 5950 /// A visibility trigger minimum percent visibility. Only valid for AMP
6003 * Visibility trigger. 5951 /// Visibility trigger.
6004 */
6005 Parameter visiblePercentageMin; 5952 Parameter visiblePercentageMin;
6006 /** 5953
6007 * Whether or not we should delay the form submissions or link opening until 5954 /// Whether or not we should delay the form submissions or link opening until
6008 * all of the tags have fired (by preventing the default action and later 5955 /// all of the tags have fired (by preventing the default action and later
6009 * simulating the default action). Only valid for Form Submission and Link 5956 /// simulating the default action). Only valid for Form Submission and Link
6010 * Click triggers. 5957 /// Click triggers.
6011 */
6012 Parameter waitForTags; 5958 Parameter waitForTags;
6013 /** 5959
6014 * How long to wait (in milliseconds) for tags to fire when 'waits_for_tags' 5960 /// How long to wait (in milliseconds) for tags to fire when 'waits_for_tags'
6015 * above evaluates to true. Only valid for Form Submission and Link Click 5961 /// above evaluates to true. Only valid for Form Submission and Link Click
6016 * triggers. 5962 /// triggers.
6017 */
6018 Parameter waitForTagsTimeout; 5963 Parameter waitForTagsTimeout;
6019 /** GTM Workspace ID. */ 5964
5965 /// GTM Workspace ID.
6020 core.String workspaceId; 5966 core.String workspaceId;
6021 5967
6022 Trigger(); 5968 Trigger();
6023 5969
6024 Trigger.fromJson(core.Map _json) { 5970 Trigger.fromJson(core.Map _json) {
6025 if (_json.containsKey("accountId")) { 5971 if (_json.containsKey("accountId")) {
6026 accountId = _json["accountId"]; 5972 accountId = _json["accountId"];
6027 } 5973 }
6028 if (_json.containsKey("autoEventFilter")) { 5974 if (_json.containsKey("autoEventFilter")) {
6029 autoEventFilter = _json["autoEventFilter"].map((value) => new Condition.fr omJson(value)).toList(); 5975 autoEventFilter = _json["autoEventFilter"]
5976 .map((value) => new Condition.fromJson(value))
5977 .toList();
6030 } 5978 }
6031 if (_json.containsKey("checkValidation")) { 5979 if (_json.containsKey("checkValidation")) {
6032 checkValidation = new Parameter.fromJson(_json["checkValidation"]); 5980 checkValidation = new Parameter.fromJson(_json["checkValidation"]);
6033 } 5981 }
6034 if (_json.containsKey("containerId")) { 5982 if (_json.containsKey("containerId")) {
6035 containerId = _json["containerId"]; 5983 containerId = _json["containerId"];
6036 } 5984 }
6037 if (_json.containsKey("continuousTimeMinMilliseconds")) { 5985 if (_json.containsKey("continuousTimeMinMilliseconds")) {
6038 continuousTimeMinMilliseconds = new Parameter.fromJson(_json["continuousTi meMinMilliseconds"]); 5986 continuousTimeMinMilliseconds =
5987 new Parameter.fromJson(_json["continuousTimeMinMilliseconds"]);
6039 } 5988 }
6040 if (_json.containsKey("customEventFilter")) { 5989 if (_json.containsKey("customEventFilter")) {
6041 customEventFilter = _json["customEventFilter"].map((value) => new Conditio n.fromJson(value)).toList(); 5990 customEventFilter = _json["customEventFilter"]
5991 .map((value) => new Condition.fromJson(value))
5992 .toList();
6042 } 5993 }
6043 if (_json.containsKey("eventName")) { 5994 if (_json.containsKey("eventName")) {
6044 eventName = new Parameter.fromJson(_json["eventName"]); 5995 eventName = new Parameter.fromJson(_json["eventName"]);
6045 } 5996 }
6046 if (_json.containsKey("filter")) { 5997 if (_json.containsKey("filter")) {
6047 filter = _json["filter"].map((value) => new Condition.fromJson(value)).toL ist(); 5998 filter = _json["filter"]
5999 .map((value) => new Condition.fromJson(value))
6000 .toList();
6048 } 6001 }
6049 if (_json.containsKey("fingerprint")) { 6002 if (_json.containsKey("fingerprint")) {
6050 fingerprint = _json["fingerprint"]; 6003 fingerprint = _json["fingerprint"];
6051 } 6004 }
6052 if (_json.containsKey("horizontalScrollPercentageList")) { 6005 if (_json.containsKey("horizontalScrollPercentageList")) {
6053 horizontalScrollPercentageList = new Parameter.fromJson(_json["horizontalS crollPercentageList"]); 6006 horizontalScrollPercentageList =
6007 new Parameter.fromJson(_json["horizontalScrollPercentageList"]);
6054 } 6008 }
6055 if (_json.containsKey("interval")) { 6009 if (_json.containsKey("interval")) {
6056 interval = new Parameter.fromJson(_json["interval"]); 6010 interval = new Parameter.fromJson(_json["interval"]);
6057 } 6011 }
6058 if (_json.containsKey("intervalSeconds")) { 6012 if (_json.containsKey("intervalSeconds")) {
6059 intervalSeconds = new Parameter.fromJson(_json["intervalSeconds"]); 6013 intervalSeconds = new Parameter.fromJson(_json["intervalSeconds"]);
6060 } 6014 }
6061 if (_json.containsKey("limit")) { 6015 if (_json.containsKey("limit")) {
6062 limit = new Parameter.fromJson(_json["limit"]); 6016 limit = new Parameter.fromJson(_json["limit"]);
6063 } 6017 }
6064 if (_json.containsKey("maxTimerLengthSeconds")) { 6018 if (_json.containsKey("maxTimerLengthSeconds")) {
6065 maxTimerLengthSeconds = new Parameter.fromJson(_json["maxTimerLengthSecond s"]); 6019 maxTimerLengthSeconds =
6020 new Parameter.fromJson(_json["maxTimerLengthSeconds"]);
6066 } 6021 }
6067 if (_json.containsKey("name")) { 6022 if (_json.containsKey("name")) {
6068 name = _json["name"]; 6023 name = _json["name"];
6069 } 6024 }
6070 if (_json.containsKey("notes")) { 6025 if (_json.containsKey("notes")) {
6071 notes = _json["notes"]; 6026 notes = _json["notes"];
6072 } 6027 }
6073 if (_json.containsKey("parentFolderId")) { 6028 if (_json.containsKey("parentFolderId")) {
6074 parentFolderId = _json["parentFolderId"]; 6029 parentFolderId = _json["parentFolderId"];
6075 } 6030 }
6076 if (_json.containsKey("path")) { 6031 if (_json.containsKey("path")) {
6077 path = _json["path"]; 6032 path = _json["path"];
6078 } 6033 }
6079 if (_json.containsKey("selector")) { 6034 if (_json.containsKey("selector")) {
6080 selector = new Parameter.fromJson(_json["selector"]); 6035 selector = new Parameter.fromJson(_json["selector"]);
6081 } 6036 }
6082 if (_json.containsKey("tagManagerUrl")) { 6037 if (_json.containsKey("tagManagerUrl")) {
6083 tagManagerUrl = _json["tagManagerUrl"]; 6038 tagManagerUrl = _json["tagManagerUrl"];
6084 } 6039 }
6085 if (_json.containsKey("totalTimeMinMilliseconds")) { 6040 if (_json.containsKey("totalTimeMinMilliseconds")) {
6086 totalTimeMinMilliseconds = new Parameter.fromJson(_json["totalTimeMinMilli seconds"]); 6041 totalTimeMinMilliseconds =
6042 new Parameter.fromJson(_json["totalTimeMinMilliseconds"]);
6087 } 6043 }
6088 if (_json.containsKey("triggerId")) { 6044 if (_json.containsKey("triggerId")) {
6089 triggerId = _json["triggerId"]; 6045 triggerId = _json["triggerId"];
6090 } 6046 }
6091 if (_json.containsKey("type")) { 6047 if (_json.containsKey("type")) {
6092 type = _json["type"]; 6048 type = _json["type"];
6093 } 6049 }
6094 if (_json.containsKey("uniqueTriggerId")) { 6050 if (_json.containsKey("uniqueTriggerId")) {
6095 uniqueTriggerId = new Parameter.fromJson(_json["uniqueTriggerId"]); 6051 uniqueTriggerId = new Parameter.fromJson(_json["uniqueTriggerId"]);
6096 } 6052 }
6097 if (_json.containsKey("verticalScrollPercentageList")) { 6053 if (_json.containsKey("verticalScrollPercentageList")) {
6098 verticalScrollPercentageList = new Parameter.fromJson(_json["verticalScrol lPercentageList"]); 6054 verticalScrollPercentageList =
6055 new Parameter.fromJson(_json["verticalScrollPercentageList"]);
6099 } 6056 }
6100 if (_json.containsKey("visibilitySelector")) { 6057 if (_json.containsKey("visibilitySelector")) {
6101 visibilitySelector = new Parameter.fromJson(_json["visibilitySelector"]); 6058 visibilitySelector = new Parameter.fromJson(_json["visibilitySelector"]);
6102 } 6059 }
6103 if (_json.containsKey("visiblePercentageMax")) { 6060 if (_json.containsKey("visiblePercentageMax")) {
6104 visiblePercentageMax = new Parameter.fromJson(_json["visiblePercentageMax" ]); 6061 visiblePercentageMax =
6062 new Parameter.fromJson(_json["visiblePercentageMax"]);
6105 } 6063 }
6106 if (_json.containsKey("visiblePercentageMin")) { 6064 if (_json.containsKey("visiblePercentageMin")) {
6107 visiblePercentageMin = new Parameter.fromJson(_json["visiblePercentageMin" ]); 6065 visiblePercentageMin =
6066 new Parameter.fromJson(_json["visiblePercentageMin"]);
6108 } 6067 }
6109 if (_json.containsKey("waitForTags")) { 6068 if (_json.containsKey("waitForTags")) {
6110 waitForTags = new Parameter.fromJson(_json["waitForTags"]); 6069 waitForTags = new Parameter.fromJson(_json["waitForTags"]);
6111 } 6070 }
6112 if (_json.containsKey("waitForTagsTimeout")) { 6071 if (_json.containsKey("waitForTagsTimeout")) {
6113 waitForTagsTimeout = new Parameter.fromJson(_json["waitForTagsTimeout"]); 6072 waitForTagsTimeout = new Parameter.fromJson(_json["waitForTagsTimeout"]);
6114 } 6073 }
6115 if (_json.containsKey("workspaceId")) { 6074 if (_json.containsKey("workspaceId")) {
6116 workspaceId = _json["workspaceId"]; 6075 workspaceId = _json["workspaceId"];
6117 } 6076 }
6118 } 6077 }
6119 6078
6120 core.Map<core.String, core.Object> toJson() { 6079 core.Map<core.String, core.Object> toJson() {
6121 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6080 final core.Map<core.String, core.Object> _json =
6081 new core.Map<core.String, core.Object>();
6122 if (accountId != null) { 6082 if (accountId != null) {
6123 _json["accountId"] = accountId; 6083 _json["accountId"] = accountId;
6124 } 6084 }
6125 if (autoEventFilter != null) { 6085 if (autoEventFilter != null) {
6126 _json["autoEventFilter"] = autoEventFilter.map((value) => (value).toJson() ).toList(); 6086 _json["autoEventFilter"] =
6087 autoEventFilter.map((value) => (value).toJson()).toList();
6127 } 6088 }
6128 if (checkValidation != null) { 6089 if (checkValidation != null) {
6129 _json["checkValidation"] = (checkValidation).toJson(); 6090 _json["checkValidation"] = (checkValidation).toJson();
6130 } 6091 }
6131 if (containerId != null) { 6092 if (containerId != null) {
6132 _json["containerId"] = containerId; 6093 _json["containerId"] = containerId;
6133 } 6094 }
6134 if (continuousTimeMinMilliseconds != null) { 6095 if (continuousTimeMinMilliseconds != null) {
6135 _json["continuousTimeMinMilliseconds"] = (continuousTimeMinMilliseconds).t oJson(); 6096 _json["continuousTimeMinMilliseconds"] =
6097 (continuousTimeMinMilliseconds).toJson();
6136 } 6098 }
6137 if (customEventFilter != null) { 6099 if (customEventFilter != null) {
6138 _json["customEventFilter"] = customEventFilter.map((value) => (value).toJs on()).toList(); 6100 _json["customEventFilter"] =
6101 customEventFilter.map((value) => (value).toJson()).toList();
6139 } 6102 }
6140 if (eventName != null) { 6103 if (eventName != null) {
6141 _json["eventName"] = (eventName).toJson(); 6104 _json["eventName"] = (eventName).toJson();
6142 } 6105 }
6143 if (filter != null) { 6106 if (filter != null) {
6144 _json["filter"] = filter.map((value) => (value).toJson()).toList(); 6107 _json["filter"] = filter.map((value) => (value).toJson()).toList();
6145 } 6108 }
6146 if (fingerprint != null) { 6109 if (fingerprint != null) {
6147 _json["fingerprint"] = fingerprint; 6110 _json["fingerprint"] = fingerprint;
6148 } 6111 }
6149 if (horizontalScrollPercentageList != null) { 6112 if (horizontalScrollPercentageList != null) {
6150 _json["horizontalScrollPercentageList"] = (horizontalScrollPercentageList) .toJson(); 6113 _json["horizontalScrollPercentageList"] =
6114 (horizontalScrollPercentageList).toJson();
6151 } 6115 }
6152 if (interval != null) { 6116 if (interval != null) {
6153 _json["interval"] = (interval).toJson(); 6117 _json["interval"] = (interval).toJson();
6154 } 6118 }
6155 if (intervalSeconds != null) { 6119 if (intervalSeconds != null) {
6156 _json["intervalSeconds"] = (intervalSeconds).toJson(); 6120 _json["intervalSeconds"] = (intervalSeconds).toJson();
6157 } 6121 }
6158 if (limit != null) { 6122 if (limit != null) {
6159 _json["limit"] = (limit).toJson(); 6123 _json["limit"] = (limit).toJson();
6160 } 6124 }
(...skipping 24 matching lines...) Expand all
6185 if (triggerId != null) { 6149 if (triggerId != null) {
6186 _json["triggerId"] = triggerId; 6150 _json["triggerId"] = triggerId;
6187 } 6151 }
6188 if (type != null) { 6152 if (type != null) {
6189 _json["type"] = type; 6153 _json["type"] = type;
6190 } 6154 }
6191 if (uniqueTriggerId != null) { 6155 if (uniqueTriggerId != null) {
6192 _json["uniqueTriggerId"] = (uniqueTriggerId).toJson(); 6156 _json["uniqueTriggerId"] = (uniqueTriggerId).toJson();
6193 } 6157 }
6194 if (verticalScrollPercentageList != null) { 6158 if (verticalScrollPercentageList != null) {
6195 _json["verticalScrollPercentageList"] = (verticalScrollPercentageList).toJ son(); 6159 _json["verticalScrollPercentageList"] =
6160 (verticalScrollPercentageList).toJson();
6196 } 6161 }
6197 if (visibilitySelector != null) { 6162 if (visibilitySelector != null) {
6198 _json["visibilitySelector"] = (visibilitySelector).toJson(); 6163 _json["visibilitySelector"] = (visibilitySelector).toJson();
6199 } 6164 }
6200 if (visiblePercentageMax != null) { 6165 if (visiblePercentageMax != null) {
6201 _json["visiblePercentageMax"] = (visiblePercentageMax).toJson(); 6166 _json["visiblePercentageMax"] = (visiblePercentageMax).toJson();
6202 } 6167 }
6203 if (visiblePercentageMin != null) { 6168 if (visiblePercentageMin != null) {
6204 _json["visiblePercentageMin"] = (visiblePercentageMin).toJson(); 6169 _json["visiblePercentageMin"] = (visiblePercentageMin).toJson();
6205 } 6170 }
6206 if (waitForTags != null) { 6171 if (waitForTags != null) {
6207 _json["waitForTags"] = (waitForTags).toJson(); 6172 _json["waitForTags"] = (waitForTags).toJson();
6208 } 6173 }
6209 if (waitForTagsTimeout != null) { 6174 if (waitForTagsTimeout != null) {
6210 _json["waitForTagsTimeout"] = (waitForTagsTimeout).toJson(); 6175 _json["waitForTagsTimeout"] = (waitForTagsTimeout).toJson();
6211 } 6176 }
6212 if (workspaceId != null) { 6177 if (workspaceId != null) {
6213 _json["workspaceId"] = workspaceId; 6178 _json["workspaceId"] = workspaceId;
6214 } 6179 }
6215 return _json; 6180 return _json;
6216 } 6181 }
6217 } 6182 }
6218 6183
6219 /** Updates a workspace proposal with patch-like semantics. */ 6184 /// Updates a workspace proposal with patch-like semantics.
6220 class UpdateWorkspaceProposalRequest { 6185 class UpdateWorkspaceProposalRequest {
6221 /** 6186 /// When provided, this fingerprint must match the fingerprint of the
6222 * When provided, this fingerprint must match the fingerprint of the proposal 6187 /// proposal in storage.
6223 * in storage.
6224 */
6225 core.String fingerprint; 6188 core.String fingerprint;
6226 /** If present, a new comment is added to the workspace proposal history. */ 6189
6190 /// If present, a new comment is added to the workspace proposal history.
6227 WorkspaceProposalHistoryComment newComment; 6191 WorkspaceProposalHistoryComment newComment;
6228 /** 6192
6229 * If present, the list of reviewers of the workspace proposal is updated. 6193 /// If present, the list of reviewers of the workspace proposal is updated.
6230 */
6231 core.List<WorkspaceProposalUser> reviewers; 6194 core.List<WorkspaceProposalUser> reviewers;
6232 /** 6195
6233 * If present, the status of the workspace proposal is updated. 6196 /// If present, the status of the workspace proposal is updated.
6234 * Possible string values are: 6197 /// Possible string values are:
6235 * - "approved" 6198 /// - "approved"
6236 * - "cancelled" 6199 /// - "cancelled"
6237 * - "completed" 6200 /// - "completed"
6238 * - "requested" 6201 /// - "requested"
6239 * - "reviewed" 6202 /// - "reviewed"
6240 * - "statusUnspecified" 6203 /// - "statusUnspecified"
6241 */
6242 core.String status; 6204 core.String status;
6243 6205
6244 UpdateWorkspaceProposalRequest(); 6206 UpdateWorkspaceProposalRequest();
6245 6207
6246 UpdateWorkspaceProposalRequest.fromJson(core.Map _json) { 6208 UpdateWorkspaceProposalRequest.fromJson(core.Map _json) {
6247 if (_json.containsKey("fingerprint")) { 6209 if (_json.containsKey("fingerprint")) {
6248 fingerprint = _json["fingerprint"]; 6210 fingerprint = _json["fingerprint"];
6249 } 6211 }
6250 if (_json.containsKey("newComment")) { 6212 if (_json.containsKey("newComment")) {
6251 newComment = new WorkspaceProposalHistoryComment.fromJson(_json["newCommen t"]); 6213 newComment =
6214 new WorkspaceProposalHistoryComment.fromJson(_json["newComment"]);
6252 } 6215 }
6253 if (_json.containsKey("reviewers")) { 6216 if (_json.containsKey("reviewers")) {
6254 reviewers = _json["reviewers"].map((value) => new WorkspaceProposalUser.fr omJson(value)).toList(); 6217 reviewers = _json["reviewers"]
6218 .map((value) => new WorkspaceProposalUser.fromJson(value))
6219 .toList();
6255 } 6220 }
6256 if (_json.containsKey("status")) { 6221 if (_json.containsKey("status")) {
6257 status = _json["status"]; 6222 status = _json["status"];
6258 } 6223 }
6259 } 6224 }
6260 6225
6261 core.Map<core.String, core.Object> toJson() { 6226 core.Map<core.String, core.Object> toJson() {
6262 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6227 final core.Map<core.String, core.Object> _json =
6228 new core.Map<core.String, core.Object>();
6263 if (fingerprint != null) { 6229 if (fingerprint != null) {
6264 _json["fingerprint"] = fingerprint; 6230 _json["fingerprint"] = fingerprint;
6265 } 6231 }
6266 if (newComment != null) { 6232 if (newComment != null) {
6267 _json["newComment"] = (newComment).toJson(); 6233 _json["newComment"] = (newComment).toJson();
6268 } 6234 }
6269 if (reviewers != null) { 6235 if (reviewers != null) {
6270 _json["reviewers"] = reviewers.map((value) => (value).toJson()).toList(); 6236 _json["reviewers"] = reviewers.map((value) => (value).toJson()).toList();
6271 } 6237 }
6272 if (status != null) { 6238 if (status != null) {
6273 _json["status"] = status; 6239 _json["status"] = status;
6274 } 6240 }
6275 return _json; 6241 return _json;
6276 } 6242 }
6277 } 6243 }
6278 6244
6279 /** Represents a user's permissions to an account and its container. */ 6245 /// Represents a user's permissions to an account and its container.
6280 class UserPermission { 6246 class UserPermission {
6281 /** GTM Account access permissions. */ 6247 /// GTM Account access permissions.
6282 AccountAccess accountAccess; 6248 AccountAccess accountAccess;
6283 /** The Account ID uniquely identifies the GTM Account. */ 6249
6250 /// The Account ID uniquely identifies the GTM Account.
6284 core.String accountId; 6251 core.String accountId;
6285 /** GTM Container access permissions. */ 6252
6253 /// GTM Container access permissions.
6286 core.List<ContainerAccess> containerAccess; 6254 core.List<ContainerAccess> containerAccess;
6287 /** User's email address. */ 6255
6256 /// User's email address.
6288 core.String emailAddress; 6257 core.String emailAddress;
6289 /** GTM UserPermission's API relative path. */ 6258
6259 /// GTM UserPermission's API relative path.
6290 core.String path; 6260 core.String path;
6291 6261
6292 UserPermission(); 6262 UserPermission();
6293 6263
6294 UserPermission.fromJson(core.Map _json) { 6264 UserPermission.fromJson(core.Map _json) {
6295 if (_json.containsKey("accountAccess")) { 6265 if (_json.containsKey("accountAccess")) {
6296 accountAccess = new AccountAccess.fromJson(_json["accountAccess"]); 6266 accountAccess = new AccountAccess.fromJson(_json["accountAccess"]);
6297 } 6267 }
6298 if (_json.containsKey("accountId")) { 6268 if (_json.containsKey("accountId")) {
6299 accountId = _json["accountId"]; 6269 accountId = _json["accountId"];
6300 } 6270 }
6301 if (_json.containsKey("containerAccess")) { 6271 if (_json.containsKey("containerAccess")) {
6302 containerAccess = _json["containerAccess"].map((value) => new ContainerAcc ess.fromJson(value)).toList(); 6272 containerAccess = _json["containerAccess"]
6273 .map((value) => new ContainerAccess.fromJson(value))
6274 .toList();
6303 } 6275 }
6304 if (_json.containsKey("emailAddress")) { 6276 if (_json.containsKey("emailAddress")) {
6305 emailAddress = _json["emailAddress"]; 6277 emailAddress = _json["emailAddress"];
6306 } 6278 }
6307 if (_json.containsKey("path")) { 6279 if (_json.containsKey("path")) {
6308 path = _json["path"]; 6280 path = _json["path"];
6309 } 6281 }
6310 } 6282 }
6311 6283
6312 core.Map<core.String, core.Object> toJson() { 6284 core.Map<core.String, core.Object> toJson() {
6313 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6285 final core.Map<core.String, core.Object> _json =
6286 new core.Map<core.String, core.Object>();
6314 if (accountAccess != null) { 6287 if (accountAccess != null) {
6315 _json["accountAccess"] = (accountAccess).toJson(); 6288 _json["accountAccess"] = (accountAccess).toJson();
6316 } 6289 }
6317 if (accountId != null) { 6290 if (accountId != null) {
6318 _json["accountId"] = accountId; 6291 _json["accountId"] = accountId;
6319 } 6292 }
6320 if (containerAccess != null) { 6293 if (containerAccess != null) {
6321 _json["containerAccess"] = containerAccess.map((value) => (value).toJson() ).toList(); 6294 _json["containerAccess"] =
6295 containerAccess.map((value) => (value).toJson()).toList();
6322 } 6296 }
6323 if (emailAddress != null) { 6297 if (emailAddress != null) {
6324 _json["emailAddress"] = emailAddress; 6298 _json["emailAddress"] = emailAddress;
6325 } 6299 }
6326 if (path != null) { 6300 if (path != null) {
6327 _json["path"] = path; 6301 _json["path"] = path;
6328 } 6302 }
6329 return _json; 6303 return _json;
6330 } 6304 }
6331 } 6305 }
6332 6306
6333 /** Represents a Google Tag Manager Variable. */ 6307 /// Represents a Google Tag Manager Variable.
6334 class Variable { 6308 class Variable {
6335 /** GTM Account ID. */ 6309 /// GTM Account ID.
6336 core.String accountId; 6310 core.String accountId;
6337 /** GTM Container ID. */ 6311
6312 /// GTM Container ID.
6338 core.String containerId; 6313 core.String containerId;
6339 /** 6314
6340 * For mobile containers only: A list of trigger IDs for disabling conditional 6315 /// For mobile containers only: A list of trigger IDs for disabling
6341 * variables; the variable is enabled if one of the enabling trigger is true 6316 /// conditional variables; the variable is enabled if one of the enabling
6342 * while all the disabling trigger are false. Treated as an unordered set. 6317 /// trigger is true while all the disabling trigger are false. Treated as an
6343 */ 6318 /// unordered set.
6344 core.List<core.String> disablingTriggerId; 6319 core.List<core.String> disablingTriggerId;
6345 /** 6320
6346 * For mobile containers only: A list of trigger IDs for enabling conditional 6321 /// For mobile containers only: A list of trigger IDs for enabling
6347 * variables; the variable is enabled if one of the enabling triggers is true 6322 /// conditional variables; the variable is enabled if one of the enabling
6348 * while all the disabling triggers are false. Treated as an unordered set. 6323 /// triggers is true while all the disabling triggers are false. Treated as
6349 */ 6324 /// an unordered set.
6350 core.List<core.String> enablingTriggerId; 6325 core.List<core.String> enablingTriggerId;
6351 /** 6326
6352 * The fingerprint of the GTM Variable as computed at storage time. This value 6327 /// The fingerprint of the GTM Variable as computed at storage time. This
6353 * is recomputed whenever the variable is modified. 6328 /// value is recomputed whenever the variable is modified.
6354 */
6355 core.String fingerprint; 6329 core.String fingerprint;
6356 /** Variable display name. */ 6330
6331 /// Variable display name.
6357 core.String name; 6332 core.String name;
6358 /** User notes on how to apply this variable in the container. */ 6333
6334 /// User notes on how to apply this variable in the container.
6359 core.String notes; 6335 core.String notes;
6360 /** The variable's parameters. */ 6336
6337 /// The variable's parameters.
6361 core.List<Parameter> parameter; 6338 core.List<Parameter> parameter;
6362 /** Parent folder id. */ 6339
6340 /// Parent folder id.
6363 core.String parentFolderId; 6341 core.String parentFolderId;
6364 /** GTM Variable's API relative path. */ 6342
6343 /// GTM Variable's API relative path.
6365 core.String path; 6344 core.String path;
6366 /** The end timestamp in milliseconds to schedule a variable. */ 6345
6346 /// The end timestamp in milliseconds to schedule a variable.
6367 core.String scheduleEndMs; 6347 core.String scheduleEndMs;
6368 /** The start timestamp in milliseconds to schedule a variable. */ 6348
6349 /// The start timestamp in milliseconds to schedule a variable.
6369 core.String scheduleStartMs; 6350 core.String scheduleStartMs;
6370 /** Auto generated link to the tag manager UI */ 6351
6352 /// Auto generated link to the tag manager UI
6371 core.String tagManagerUrl; 6353 core.String tagManagerUrl;
6372 /** GTM Variable Type. */ 6354
6355 /// GTM Variable Type.
6373 core.String type; 6356 core.String type;
6374 /** The Variable ID uniquely identifies the GTM Variable. */ 6357
6358 /// The Variable ID uniquely identifies the GTM Variable.
6375 core.String variableId; 6359 core.String variableId;
6376 /** GTM Workspace ID. */ 6360
6361 /// GTM Workspace ID.
6377 core.String workspaceId; 6362 core.String workspaceId;
6378 6363
6379 Variable(); 6364 Variable();
6380 6365
6381 Variable.fromJson(core.Map _json) { 6366 Variable.fromJson(core.Map _json) {
6382 if (_json.containsKey("accountId")) { 6367 if (_json.containsKey("accountId")) {
6383 accountId = _json["accountId"]; 6368 accountId = _json["accountId"];
6384 } 6369 }
6385 if (_json.containsKey("containerId")) { 6370 if (_json.containsKey("containerId")) {
6386 containerId = _json["containerId"]; 6371 containerId = _json["containerId"];
6387 } 6372 }
6388 if (_json.containsKey("disablingTriggerId")) { 6373 if (_json.containsKey("disablingTriggerId")) {
6389 disablingTriggerId = _json["disablingTriggerId"]; 6374 disablingTriggerId = _json["disablingTriggerId"];
6390 } 6375 }
6391 if (_json.containsKey("enablingTriggerId")) { 6376 if (_json.containsKey("enablingTriggerId")) {
6392 enablingTriggerId = _json["enablingTriggerId"]; 6377 enablingTriggerId = _json["enablingTriggerId"];
6393 } 6378 }
6394 if (_json.containsKey("fingerprint")) { 6379 if (_json.containsKey("fingerprint")) {
6395 fingerprint = _json["fingerprint"]; 6380 fingerprint = _json["fingerprint"];
6396 } 6381 }
6397 if (_json.containsKey("name")) { 6382 if (_json.containsKey("name")) {
6398 name = _json["name"]; 6383 name = _json["name"];
6399 } 6384 }
6400 if (_json.containsKey("notes")) { 6385 if (_json.containsKey("notes")) {
6401 notes = _json["notes"]; 6386 notes = _json["notes"];
6402 } 6387 }
6403 if (_json.containsKey("parameter")) { 6388 if (_json.containsKey("parameter")) {
6404 parameter = _json["parameter"].map((value) => new Parameter.fromJson(value )).toList(); 6389 parameter = _json["parameter"]
6390 .map((value) => new Parameter.fromJson(value))
6391 .toList();
6405 } 6392 }
6406 if (_json.containsKey("parentFolderId")) { 6393 if (_json.containsKey("parentFolderId")) {
6407 parentFolderId = _json["parentFolderId"]; 6394 parentFolderId = _json["parentFolderId"];
6408 } 6395 }
6409 if (_json.containsKey("path")) { 6396 if (_json.containsKey("path")) {
6410 path = _json["path"]; 6397 path = _json["path"];
6411 } 6398 }
6412 if (_json.containsKey("scheduleEndMs")) { 6399 if (_json.containsKey("scheduleEndMs")) {
6413 scheduleEndMs = _json["scheduleEndMs"]; 6400 scheduleEndMs = _json["scheduleEndMs"];
6414 } 6401 }
6415 if (_json.containsKey("scheduleStartMs")) { 6402 if (_json.containsKey("scheduleStartMs")) {
6416 scheduleStartMs = _json["scheduleStartMs"]; 6403 scheduleStartMs = _json["scheduleStartMs"];
6417 } 6404 }
6418 if (_json.containsKey("tagManagerUrl")) { 6405 if (_json.containsKey("tagManagerUrl")) {
6419 tagManagerUrl = _json["tagManagerUrl"]; 6406 tagManagerUrl = _json["tagManagerUrl"];
6420 } 6407 }
6421 if (_json.containsKey("type")) { 6408 if (_json.containsKey("type")) {
6422 type = _json["type"]; 6409 type = _json["type"];
6423 } 6410 }
6424 if (_json.containsKey("variableId")) { 6411 if (_json.containsKey("variableId")) {
6425 variableId = _json["variableId"]; 6412 variableId = _json["variableId"];
6426 } 6413 }
6427 if (_json.containsKey("workspaceId")) { 6414 if (_json.containsKey("workspaceId")) {
6428 workspaceId = _json["workspaceId"]; 6415 workspaceId = _json["workspaceId"];
6429 } 6416 }
6430 } 6417 }
6431 6418
6432 core.Map<core.String, core.Object> toJson() { 6419 core.Map<core.String, core.Object> toJson() {
6433 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6420 final core.Map<core.String, core.Object> _json =
6421 new core.Map<core.String, core.Object>();
6434 if (accountId != null) { 6422 if (accountId != null) {
6435 _json["accountId"] = accountId; 6423 _json["accountId"] = accountId;
6436 } 6424 }
6437 if (containerId != null) { 6425 if (containerId != null) {
6438 _json["containerId"] = containerId; 6426 _json["containerId"] = containerId;
6439 } 6427 }
6440 if (disablingTriggerId != null) { 6428 if (disablingTriggerId != null) {
6441 _json["disablingTriggerId"] = disablingTriggerId; 6429 _json["disablingTriggerId"] = disablingTriggerId;
6442 } 6430 }
6443 if (enablingTriggerId != null) { 6431 if (enablingTriggerId != null) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
6476 if (variableId != null) { 6464 if (variableId != null) {
6477 _json["variableId"] = variableId; 6465 _json["variableId"] = variableId;
6478 } 6466 }
6479 if (workspaceId != null) { 6467 if (workspaceId != null) {
6480 _json["workspaceId"] = workspaceId; 6468 _json["workspaceId"] = workspaceId;
6481 } 6469 }
6482 return _json; 6470 return _json;
6483 } 6471 }
6484 } 6472 }
6485 6473
6486 /** Represents a Google Tag Manager Container Workspace. */ 6474 /// Represents a Google Tag Manager Container Workspace.
6487 class Workspace { 6475 class Workspace {
6488 /** GTM Account ID. */ 6476 /// GTM Account ID.
6489 core.String accountId; 6477 core.String accountId;
6490 /** GTM Container ID. */ 6478
6479 /// GTM Container ID.
6491 core.String containerId; 6480 core.String containerId;
6492 /** Workspace description. */ 6481
6482 /// Workspace description.
6493 core.String description; 6483 core.String description;
6494 /** 6484
6495 * The fingerprint of the GTM Workspace as computed at storage time. This 6485 /// The fingerprint of the GTM Workspace as computed at storage time. This
6496 * value is recomputed whenever the workspace is modified. 6486 /// value is recomputed whenever the workspace is modified.
6497 */
6498 core.String fingerprint; 6487 core.String fingerprint;
6499 /** Workspace display name. */ 6488
6489 /// Workspace display name.
6500 core.String name; 6490 core.String name;
6501 /** GTM Workspace's API relative path. */ 6491
6492 /// GTM Workspace's API relative path.
6502 core.String path; 6493 core.String path;
6503 /** Auto generated link to the tag manager UI */ 6494
6495 /// Auto generated link to the tag manager UI
6504 core.String tagManagerUrl; 6496 core.String tagManagerUrl;
6505 /** The Workspace ID uniquely identifies the GTM Workspace. */ 6497
6498 /// The Workspace ID uniquely identifies the GTM Workspace.
6506 core.String workspaceId; 6499 core.String workspaceId;
6507 6500
6508 Workspace(); 6501 Workspace();
6509 6502
6510 Workspace.fromJson(core.Map _json) { 6503 Workspace.fromJson(core.Map _json) {
6511 if (_json.containsKey("accountId")) { 6504 if (_json.containsKey("accountId")) {
6512 accountId = _json["accountId"]; 6505 accountId = _json["accountId"];
6513 } 6506 }
6514 if (_json.containsKey("containerId")) { 6507 if (_json.containsKey("containerId")) {
6515 containerId = _json["containerId"]; 6508 containerId = _json["containerId"];
(...skipping 12 matching lines...) Expand all
6528 } 6521 }
6529 if (_json.containsKey("tagManagerUrl")) { 6522 if (_json.containsKey("tagManagerUrl")) {
6530 tagManagerUrl = _json["tagManagerUrl"]; 6523 tagManagerUrl = _json["tagManagerUrl"];
6531 } 6524 }
6532 if (_json.containsKey("workspaceId")) { 6525 if (_json.containsKey("workspaceId")) {
6533 workspaceId = _json["workspaceId"]; 6526 workspaceId = _json["workspaceId"];
6534 } 6527 }
6535 } 6528 }
6536 6529
6537 core.Map<core.String, core.Object> toJson() { 6530 core.Map<core.String, core.Object> toJson() {
6538 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6531 final core.Map<core.String, core.Object> _json =
6532 new core.Map<core.String, core.Object>();
6539 if (accountId != null) { 6533 if (accountId != null) {
6540 _json["accountId"] = accountId; 6534 _json["accountId"] = accountId;
6541 } 6535 }
6542 if (containerId != null) { 6536 if (containerId != null) {
6543 _json["containerId"] = containerId; 6537 _json["containerId"] = containerId;
6544 } 6538 }
6545 if (description != null) { 6539 if (description != null) {
6546 _json["description"] = description; 6540 _json["description"] = description;
6547 } 6541 }
6548 if (fingerprint != null) { 6542 if (fingerprint != null) {
6549 _json["fingerprint"] = fingerprint; 6543 _json["fingerprint"] = fingerprint;
6550 } 6544 }
6551 if (name != null) { 6545 if (name != null) {
6552 _json["name"] = name; 6546 _json["name"] = name;
6553 } 6547 }
6554 if (path != null) { 6548 if (path != null) {
6555 _json["path"] = path; 6549 _json["path"] = path;
6556 } 6550 }
6557 if (tagManagerUrl != null) { 6551 if (tagManagerUrl != null) {
6558 _json["tagManagerUrl"] = tagManagerUrl; 6552 _json["tagManagerUrl"] = tagManagerUrl;
6559 } 6553 }
6560 if (workspaceId != null) { 6554 if (workspaceId != null) {
6561 _json["workspaceId"] = workspaceId; 6555 _json["workspaceId"] = workspaceId;
6562 } 6556 }
6563 return _json; 6557 return _json;
6564 } 6558 }
6565 } 6559 }
6566 6560
6567 /** 6561 /// A workspace proposal represents an ongoing review of workspace changes in
6568 * A workspace proposal represents an ongoing review of workspace changes in an 6562 /// an effort to gain approval for container version creation.
6569 * effort to gain approval for container version creation.
6570 */
6571 class WorkspaceProposal { 6563 class WorkspaceProposal {
6572 /** List of authors for the workspace proposal. */ 6564 /// List of authors for the workspace proposal.
6573 core.List<WorkspaceProposalUser> authors; 6565 core.List<WorkspaceProposalUser> authors;
6574 /** 6566
6575 * The fingerprint of the GTM workspace proposal as computed at storage time. 6567 /// The fingerprint of the GTM workspace proposal as computed at storage
6576 * This value is recomputed whenever the proposal is modified. 6568 /// time. This value is recomputed whenever the proposal is modified.
6577 */
6578 core.String fingerprint; 6569 core.String fingerprint;
6579 /** Records the history of comments and status changes. */ 6570
6571 /// Records the history of comments and status changes.
6580 core.List<WorkspaceProposalHistory> history; 6572 core.List<WorkspaceProposalHistory> history;
6581 /** GTM workspace proposal's relative path. */ 6573
6574 /// GTM workspace proposal's relative path.
6582 core.String path; 6575 core.String path;
6583 /** Lists of reviewers for the workspace proposal. */ 6576
6577 /// Lists of reviewers for the workspace proposal.
6584 core.List<WorkspaceProposalUser> reviewers; 6578 core.List<WorkspaceProposalUser> reviewers;
6585 /** 6579
6586 * The status of the workspace proposal as it goes through review. 6580 /// The status of the workspace proposal as it goes through review.
6587 * Possible string values are: 6581 /// Possible string values are:
6588 * - "approved" 6582 /// - "approved"
6589 * - "cancelled" 6583 /// - "cancelled"
6590 * - "completed" 6584 /// - "completed"
6591 * - "requested" 6585 /// - "requested"
6592 * - "reviewed" 6586 /// - "reviewed"
6593 * - "statusUnspecified" 6587 /// - "statusUnspecified"
6594 */
6595 core.String status; 6588 core.String status;
6596 6589
6597 WorkspaceProposal(); 6590 WorkspaceProposal();
6598 6591
6599 WorkspaceProposal.fromJson(core.Map _json) { 6592 WorkspaceProposal.fromJson(core.Map _json) {
6600 if (_json.containsKey("authors")) { 6593 if (_json.containsKey("authors")) {
6601 authors = _json["authors"].map((value) => new WorkspaceProposalUser.fromJs on(value)).toList(); 6594 authors = _json["authors"]
6595 .map((value) => new WorkspaceProposalUser.fromJson(value))
6596 .toList();
6602 } 6597 }
6603 if (_json.containsKey("fingerprint")) { 6598 if (_json.containsKey("fingerprint")) {
6604 fingerprint = _json["fingerprint"]; 6599 fingerprint = _json["fingerprint"];
6605 } 6600 }
6606 if (_json.containsKey("history")) { 6601 if (_json.containsKey("history")) {
6607 history = _json["history"].map((value) => new WorkspaceProposalHistory.fro mJson(value)).toList(); 6602 history = _json["history"]
6603 .map((value) => new WorkspaceProposalHistory.fromJson(value))
6604 .toList();
6608 } 6605 }
6609 if (_json.containsKey("path")) { 6606 if (_json.containsKey("path")) {
6610 path = _json["path"]; 6607 path = _json["path"];
6611 } 6608 }
6612 if (_json.containsKey("reviewers")) { 6609 if (_json.containsKey("reviewers")) {
6613 reviewers = _json["reviewers"].map((value) => new WorkspaceProposalUser.fr omJson(value)).toList(); 6610 reviewers = _json["reviewers"]
6611 .map((value) => new WorkspaceProposalUser.fromJson(value))
6612 .toList();
6614 } 6613 }
6615 if (_json.containsKey("status")) { 6614 if (_json.containsKey("status")) {
6616 status = _json["status"]; 6615 status = _json["status"];
6617 } 6616 }
6618 } 6617 }
6619 6618
6620 core.Map<core.String, core.Object> toJson() { 6619 core.Map<core.String, core.Object> toJson() {
6621 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6620 final core.Map<core.String, core.Object> _json =
6621 new core.Map<core.String, core.Object>();
6622 if (authors != null) { 6622 if (authors != null) {
6623 _json["authors"] = authors.map((value) => (value).toJson()).toList(); 6623 _json["authors"] = authors.map((value) => (value).toJson()).toList();
6624 } 6624 }
6625 if (fingerprint != null) { 6625 if (fingerprint != null) {
6626 _json["fingerprint"] = fingerprint; 6626 _json["fingerprint"] = fingerprint;
6627 } 6627 }
6628 if (history != null) { 6628 if (history != null) {
6629 _json["history"] = history.map((value) => (value).toJson()).toList(); 6629 _json["history"] = history.map((value) => (value).toJson()).toList();
6630 } 6630 }
6631 if (path != null) { 6631 if (path != null) {
6632 _json["path"] = path; 6632 _json["path"] = path;
6633 } 6633 }
6634 if (reviewers != null) { 6634 if (reviewers != null) {
6635 _json["reviewers"] = reviewers.map((value) => (value).toJson()).toList(); 6635 _json["reviewers"] = reviewers.map((value) => (value).toJson()).toList();
6636 } 6636 }
6637 if (status != null) { 6637 if (status != null) {
6638 _json["status"] = status; 6638 _json["status"] = status;
6639 } 6639 }
6640 return _json; 6640 return _json;
6641 } 6641 }
6642 } 6642 }
6643 6643
6644 /** 6644 /// A history event that represents a comment or status change in the proposal.
6645 * A history event that represents a comment or status change in the proposal.
6646 */
6647 class WorkspaceProposalHistory { 6645 class WorkspaceProposalHistory {
6648 /** A user or reviewer comment. */ 6646 /// A user or reviewer comment.
6649 WorkspaceProposalHistoryComment comment; 6647 WorkspaceProposalHistoryComment comment;
6650 /** The party responsible for the change in history. */ 6648
6649 /// The party responsible for the change in history.
6651 WorkspaceProposalUser createdBy; 6650 WorkspaceProposalUser createdBy;
6652 /** When this history event was added to the workspace proposal. */ 6651
6652 /// When this history event was added to the workspace proposal.
6653 Timestamp createdTimestamp; 6653 Timestamp createdTimestamp;
6654 /** A change in the proposal's status. */ 6654
6655 /// A change in the proposal's status.
6655 WorkspaceProposalHistoryStatusChange statusChange; 6656 WorkspaceProposalHistoryStatusChange statusChange;
6656 /** 6657
6657 * The history type distinguishing between comments and status changes. 6658 /// The history type distinguishing between comments and status changes.
6658 * Possible string values are: 6659 /// Possible string values are:
6659 * - "comment" 6660 /// - "comment"
6660 * - "statusChange" 6661 /// - "statusChange"
6661 * - "unspecified" 6662 /// - "unspecified"
6662 */
6663 core.String type; 6663 core.String type;
6664 6664
6665 WorkspaceProposalHistory(); 6665 WorkspaceProposalHistory();
6666 6666
6667 WorkspaceProposalHistory.fromJson(core.Map _json) { 6667 WorkspaceProposalHistory.fromJson(core.Map _json) {
6668 if (_json.containsKey("comment")) { 6668 if (_json.containsKey("comment")) {
6669 comment = new WorkspaceProposalHistoryComment.fromJson(_json["comment"]); 6669 comment = new WorkspaceProposalHistoryComment.fromJson(_json["comment"]);
6670 } 6670 }
6671 if (_json.containsKey("createdBy")) { 6671 if (_json.containsKey("createdBy")) {
6672 createdBy = new WorkspaceProposalUser.fromJson(_json["createdBy"]); 6672 createdBy = new WorkspaceProposalUser.fromJson(_json["createdBy"]);
6673 } 6673 }
6674 if (_json.containsKey("createdTimestamp")) { 6674 if (_json.containsKey("createdTimestamp")) {
6675 createdTimestamp = new Timestamp.fromJson(_json["createdTimestamp"]); 6675 createdTimestamp = new Timestamp.fromJson(_json["createdTimestamp"]);
6676 } 6676 }
6677 if (_json.containsKey("statusChange")) { 6677 if (_json.containsKey("statusChange")) {
6678 statusChange = new WorkspaceProposalHistoryStatusChange.fromJson(_json["st atusChange"]); 6678 statusChange = new WorkspaceProposalHistoryStatusChange.fromJson(
6679 _json["statusChange"]);
6679 } 6680 }
6680 if (_json.containsKey("type")) { 6681 if (_json.containsKey("type")) {
6681 type = _json["type"]; 6682 type = _json["type"];
6682 } 6683 }
6683 } 6684 }
6684 6685
6685 core.Map<core.String, core.Object> toJson() { 6686 core.Map<core.String, core.Object> toJson() {
6686 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6687 final core.Map<core.String, core.Object> _json =
6688 new core.Map<core.String, core.Object>();
6687 if (comment != null) { 6689 if (comment != null) {
6688 _json["comment"] = (comment).toJson(); 6690 _json["comment"] = (comment).toJson();
6689 } 6691 }
6690 if (createdBy != null) { 6692 if (createdBy != null) {
6691 _json["createdBy"] = (createdBy).toJson(); 6693 _json["createdBy"] = (createdBy).toJson();
6692 } 6694 }
6693 if (createdTimestamp != null) { 6695 if (createdTimestamp != null) {
6694 _json["createdTimestamp"] = (createdTimestamp).toJson(); 6696 _json["createdTimestamp"] = (createdTimestamp).toJson();
6695 } 6697 }
6696 if (statusChange != null) { 6698 if (statusChange != null) {
6697 _json["statusChange"] = (statusChange).toJson(); 6699 _json["statusChange"] = (statusChange).toJson();
6698 } 6700 }
6699 if (type != null) { 6701 if (type != null) {
6700 _json["type"] = type; 6702 _json["type"] = type;
6701 } 6703 }
6702 return _json; 6704 return _json;
6703 } 6705 }
6704 } 6706 }
6705 6707
6706 /** A comment from the reviewer or author. */ 6708 /// A comment from the reviewer or author.
6707 class WorkspaceProposalHistoryComment { 6709 class WorkspaceProposalHistoryComment {
6708 /** The contents of the reviewer or author comment. */ 6710 /// The contents of the reviewer or author comment.
6709 core.String content; 6711 core.String content;
6710 6712
6711 WorkspaceProposalHistoryComment(); 6713 WorkspaceProposalHistoryComment();
6712 6714
6713 WorkspaceProposalHistoryComment.fromJson(core.Map _json) { 6715 WorkspaceProposalHistoryComment.fromJson(core.Map _json) {
6714 if (_json.containsKey("content")) { 6716 if (_json.containsKey("content")) {
6715 content = _json["content"]; 6717 content = _json["content"];
6716 } 6718 }
6717 } 6719 }
6718 6720
6719 core.Map<core.String, core.Object> toJson() { 6721 core.Map<core.String, core.Object> toJson() {
6720 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6722 final core.Map<core.String, core.Object> _json =
6723 new core.Map<core.String, core.Object>();
6721 if (content != null) { 6724 if (content != null) {
6722 _json["content"] = content; 6725 _json["content"] = content;
6723 } 6726 }
6724 return _json; 6727 return _json;
6725 } 6728 }
6726 } 6729 }
6727 6730
6728 /** A change in the proposal's status. */ 6731 /// A change in the proposal's status.
6729 class WorkspaceProposalHistoryStatusChange { 6732 class WorkspaceProposalHistoryStatusChange {
6730 /** 6733 /// The new proposal status after that status change.
6731 * The new proposal status after that status change. 6734 /// Possible string values are:
6732 * Possible string values are: 6735 /// - "approved"
6733 * - "approved" 6736 /// - "cancelled"
6734 * - "cancelled" 6737 /// - "completed"
6735 * - "completed" 6738 /// - "requested"
6736 * - "requested" 6739 /// - "reviewed"
6737 * - "reviewed" 6740 /// - "statusUnspecified"
6738 * - "statusUnspecified"
6739 */
6740 core.String newStatus; 6741 core.String newStatus;
6741 /** 6742
6742 * The old proposal status before the status change. 6743 /// The old proposal status before the status change.
6743 * Possible string values are: 6744 /// Possible string values are:
6744 * - "approved" 6745 /// - "approved"
6745 * - "cancelled" 6746 /// - "cancelled"
6746 * - "completed" 6747 /// - "completed"
6747 * - "requested" 6748 /// - "requested"
6748 * - "reviewed" 6749 /// - "reviewed"
6749 * - "statusUnspecified" 6750 /// - "statusUnspecified"
6750 */
6751 core.String oldStatus; 6751 core.String oldStatus;
6752 6752
6753 WorkspaceProposalHistoryStatusChange(); 6753 WorkspaceProposalHistoryStatusChange();
6754 6754
6755 WorkspaceProposalHistoryStatusChange.fromJson(core.Map _json) { 6755 WorkspaceProposalHistoryStatusChange.fromJson(core.Map _json) {
6756 if (_json.containsKey("newStatus")) { 6756 if (_json.containsKey("newStatus")) {
6757 newStatus = _json["newStatus"]; 6757 newStatus = _json["newStatus"];
6758 } 6758 }
6759 if (_json.containsKey("oldStatus")) { 6759 if (_json.containsKey("oldStatus")) {
6760 oldStatus = _json["oldStatus"]; 6760 oldStatus = _json["oldStatus"];
6761 } 6761 }
6762 } 6762 }
6763 6763
6764 core.Map<core.String, core.Object> toJson() { 6764 core.Map<core.String, core.Object> toJson() {
6765 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6765 final core.Map<core.String, core.Object> _json =
6766 new core.Map<core.String, core.Object>();
6766 if (newStatus != null) { 6767 if (newStatus != null) {
6767 _json["newStatus"] = newStatus; 6768 _json["newStatus"] = newStatus;
6768 } 6769 }
6769 if (oldStatus != null) { 6770 if (oldStatus != null) {
6770 _json["oldStatus"] = oldStatus; 6771 _json["oldStatus"] = oldStatus;
6771 } 6772 }
6772 return _json; 6773 return _json;
6773 } 6774 }
6774 } 6775 }
6775 6776
6776 /** Represents an external user or internal Google Tag Manager system. */ 6777 /// Represents an external user or internal Google Tag Manager system.
6777 class WorkspaceProposalUser { 6778 class WorkspaceProposalUser {
6778 /** 6779 /// Gaia id associated with a user, absent for the Google Tag Manager system.
6779 * Gaia id associated with a user, absent for the Google Tag Manager system.
6780 */
6781 core.String gaiaId; 6780 core.String gaiaId;
6782 /** 6781
6783 * User type distinguishes between a user and the Google Tag Manager system. 6782 /// User type distinguishes between a user and the Google Tag Manager system.
6784 * Possible string values are: 6783 /// Possible string values are:
6785 * - "gaiaId" 6784 /// - "gaiaId"
6786 * - "system" 6785 /// - "system"
6787 */
6788 core.String type; 6786 core.String type;
6789 6787
6790 WorkspaceProposalUser(); 6788 WorkspaceProposalUser();
6791 6789
6792 WorkspaceProposalUser.fromJson(core.Map _json) { 6790 WorkspaceProposalUser.fromJson(core.Map _json) {
6793 if (_json.containsKey("gaiaId")) { 6791 if (_json.containsKey("gaiaId")) {
6794 gaiaId = _json["gaiaId"]; 6792 gaiaId = _json["gaiaId"];
6795 } 6793 }
6796 if (_json.containsKey("type")) { 6794 if (_json.containsKey("type")) {
6797 type = _json["type"]; 6795 type = _json["type"];
6798 } 6796 }
6799 } 6797 }
6800 6798
6801 core.Map<core.String, core.Object> toJson() { 6799 core.Map<core.String, core.Object> toJson() {
6802 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6800 final core.Map<core.String, core.Object> _json =
6801 new core.Map<core.String, core.Object>();
6803 if (gaiaId != null) { 6802 if (gaiaId != null) {
6804 _json["gaiaId"] = gaiaId; 6803 _json["gaiaId"] = gaiaId;
6805 } 6804 }
6806 if (type != null) { 6805 if (type != null) {
6807 _json["type"] = type; 6806 _json["type"] = type;
6808 } 6807 }
6809 return _json; 6808 return _json;
6810 } 6809 }
6811 } 6810 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/tagmanager/v1.dart ('k') | generated/googleapis/lib/tasks/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698