OLD | NEW |
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.v1; | 3 library googleapis.tagmanager.v1; |
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' show |
13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client tagmanager/v1'; | 15 const core.String USER_AGENT = 'dart-api-client tagmanager/v1'; |
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 = "https://www.googleapis.com/aut
h/tagmanager.delete.containers"; |
21 | 21 |
22 /** Manage your Google Tag Manager containers */ | 22 /** |
| 23 * Manage your Google Tag Manager container and its subcomponents, excluding |
| 24 * versioning and publishing |
| 25 */ |
23 static const TagmanagerEditContainersScope = "https://www.googleapis.com/auth/
tagmanager.edit.containers"; | 26 static const TagmanagerEditContainersScope = "https://www.googleapis.com/auth/
tagmanager.edit.containers"; |
24 | 27 |
25 /** Manage your Google Tag Manager container versions */ | 28 /** Manage your Google Tag Manager container versions */ |
26 static const TagmanagerEditContainerversionsScope = "https://www.googleapis.co
m/auth/tagmanager.edit.containerversions"; | 29 static const TagmanagerEditContainerversionsScope = "https://www.googleapis.co
m/auth/tagmanager.edit.containerversions"; |
27 | 30 |
28 /** Manage your Google Tag Manager accounts */ | 31 /** View and manage your Google Tag Manager accounts */ |
29 static const TagmanagerManageAccountsScope = "https://www.googleapis.com/auth/
tagmanager.manage.accounts"; | 32 static const TagmanagerManageAccountsScope = "https://www.googleapis.com/auth/
tagmanager.manage.accounts"; |
30 | 33 |
31 /** Manage user permissions of your Google Tag Manager data */ | 34 /** |
| 35 * Manage user permissions of your Google Tag Manager account and container |
| 36 */ |
32 static const TagmanagerManageUsersScope = "https://www.googleapis.com/auth/tag
manager.manage.users"; | 37 static const TagmanagerManageUsersScope = "https://www.googleapis.com/auth/tag
manager.manage.users"; |
33 | 38 |
34 /** Publish your Google Tag Manager containers */ | 39 /** Publish your Google Tag Manager container versions */ |
35 static const TagmanagerPublishScope = "https://www.googleapis.com/auth/tagmana
ger.publish"; | 40 static const TagmanagerPublishScope = "https://www.googleapis.com/auth/tagmana
ger.publish"; |
36 | 41 |
37 /** View your Google Tag Manager containers */ | 42 /** View your Google Tag Manager container and its subcomponents */ |
38 static const TagmanagerReadonlyScope = "https://www.googleapis.com/auth/tagman
ager.readonly"; | 43 static const TagmanagerReadonlyScope = "https://www.googleapis.com/auth/tagman
ager.readonly"; |
39 | 44 |
40 | 45 |
41 final commons.ApiRequester _requester; | 46 final commons.ApiRequester _requester; |
42 | 47 |
43 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); | 48 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); |
44 | 49 |
45 TagmanagerApi(http.Client client, {core.String rootUrl: "https://www.googleapi
s.com/", core.String servicePath: "tagmanager/v1/"}) : | 50 TagmanagerApi(http.Client client, {core.String rootUrl: "https://www.googleapi
s.com/", core.String servicePath: "tagmanager/v1/"}) : |
46 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 51 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
47 } | 52 } |
(...skipping 4575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4623 } | 4628 } |
4624 if (type != null) { | 4629 if (type != null) { |
4625 _json["type"] = type; | 4630 _json["type"] = type; |
4626 } | 4631 } |
4627 if (variableId != null) { | 4632 if (variableId != null) { |
4628 _json["variableId"] = variableId; | 4633 _json["variableId"] = variableId; |
4629 } | 4634 } |
4630 return _json; | 4635 return _json; |
4631 } | 4636 } |
4632 } | 4637 } |
OLD | NEW |