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

Side by Side Diff: generated/googleapis/lib/admin/reports_v1.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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.admin.reports_v1; 3 library googleapis.admin.reports_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'
13 ApiRequestError, DetailedApiRequestError; 13 show ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client admin/reports_v1'; 15 const core.String USER_AGENT = 'dart-api-client admin/reports_v1';
16 16
17 /** 17 /// Fetches reports for the administrators of G Suite customers about the
18 * Fetches reports for the administrators of G Suite customers about the usage, 18 /// usage, collaboration, security, and risk for their users.
19 * collaboration, security, and risk for their users.
20 */
21 class AdminApi { 19 class AdminApi {
22 /** View audit reports for your G Suite domain */ 20 /// View audit reports for your G Suite domain
23 static const AdminReportsAuditReadonlyScope = "https://www.googleapis.com/auth /admin.reports.audit.readonly"; 21 static const AdminReportsAuditReadonlyScope =
22 "https://www.googleapis.com/auth/admin.reports.audit.readonly";
24 23
25 /** View usage reports for your G Suite domain */ 24 /// View usage reports for your G Suite domain
26 static const AdminReportsUsageReadonlyScope = "https://www.googleapis.com/auth /admin.reports.usage.readonly"; 25 static const AdminReportsUsageReadonlyScope =
27 26 "https://www.googleapis.com/auth/admin.reports.usage.readonly";
28 27
29 final commons.ApiRequester _requester; 28 final commons.ApiRequester _requester;
30 29
31 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); 30 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester);
32 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester); 31 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester);
33 CustomerUsageReportsResourceApi get customerUsageReports => new CustomerUsageR eportsResourceApi(_requester); 32 CustomerUsageReportsResourceApi get customerUsageReports =>
34 UserUsageReportResourceApi get userUsageReport => new UserUsageReportResourceA pi(_requester); 33 new CustomerUsageReportsResourceApi(_requester);
34 UserUsageReportResourceApi get userUsageReport =>
35 new UserUsageReportResourceApi(_requester);
35 36
36 AdminApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com /", core.String servicePath: "admin/reports/v1/"}) : 37 AdminApi(http.Client client,
37 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 38 {core.String rootUrl: "https://www.googleapis.com/",
39 core.String servicePath: "admin/reports/v1/"})
40 : _requester =
41 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
38 } 42 }
39 43
40
41 class ActivitiesResourceApi { 44 class ActivitiesResourceApi {
42 final commons.ApiRequester _requester; 45 final commons.ApiRequester _requester;
43 46
44 ActivitiesResourceApi(commons.ApiRequester client) : 47 ActivitiesResourceApi(commons.ApiRequester client) : _requester = client;
45 _requester = client;
46 48
47 /** 49 /// Retrieves a list of activities for a specific customer and application.
48 * Retrieves a list of activities for a specific customer and application. 50 ///
49 * 51 /// Request parameters:
50 * Request parameters: 52 ///
51 * 53 /// [userKey] - Represents the profile id or the user email for which the
52 * [userKey] - Represents the profile id or the user email for which the data 54 /// data should be filtered. When 'all' is specified as the userKey, it
53 * should be filtered. When 'all' is specified as the userKey, it returns 55 /// returns usageReports for all users.
54 * usageReports for all users. 56 ///
55 * 57 /// [applicationName] - Application name for which the events are to be
56 * [applicationName] - Application name for which the events are to be 58 /// retrieved.
57 * retrieved. 59 /// Value must have pattern
58 * Value must have pattern 60 /// "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat )|(gplus)|(rules)".
59 * "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat) |(gplus)|(rules)". 61 ///
60 * 62 /// [actorIpAddress] - IP Address of host where the event was performed.
61 * [actorIpAddress] - IP Address of host where the event was performed. 63 /// Supports both IPv4 and IPv6 addresses.
62 * Supports both IPv4 and IPv6 addresses. 64 ///
63 * 65 /// [customerId] - Represents the customer for which the data is to be
64 * [customerId] - Represents the customer for which the data is to be fetched. 66 /// fetched.
65 * Value must have pattern "C.+". 67 /// Value must have pattern "C.+".
66 * 68 ///
67 * [endTime] - Return events which occurred at or before this time. 69 /// [endTime] - Return events which occurred at or before this time.
68 * Value must have pattern 70 /// Value must have pattern
69 * "(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|([-+])(\d\ d):(\d\d))". 71 /// "(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|([-+])(\d \d):(\d\d))".
70 * 72 ///
71 * [eventName] - Name of the event being queried. 73 /// [eventName] - Name of the event being queried.
72 * 74 ///
73 * [filters] - Event parameters in the form [parameter1 75 /// [filters] - Event parameters in the form [parameter1
74 * name][operator][parameter1 value],[parameter2 name][operator][parameter2 76 /// name][operator][parameter1 value],[parameter2 name][operator][parameter2
75 * value],... 77 /// value],...
76 * Value must have pattern "(.+[<,<=,==,>=,>,<>].+,)*(.+[<,<=,==,>=,>,<>].+)". 78 /// Value must have pattern
77 * 79 /// "(.+[<,<=,==,>=,>,<>].+,)*(.+[<,<=,==,>=,>,<>].+)".
78 * [maxResults] - Number of activity records to be shown in each page. 80 ///
79 * Value must be between "1" and "1000". 81 /// [maxResults] - Number of activity records to be shown in each page.
80 * 82 /// Value must be between "1" and "1000".
81 * [pageToken] - Token to specify next page. 83 ///
82 * 84 /// [pageToken] - Token to specify next page.
83 * [startTime] - Return events which occurred at or after this time. 85 ///
84 * Value must have pattern 86 /// [startTime] - Return events which occurred at or after this time.
85 * "(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|([-+])(\d\ d):(\d\d))". 87 /// Value must have pattern
86 * 88 /// "(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|([-+])(\d \d):(\d\d))".
87 * Completes with a [Activities]. 89 ///
88 * 90 /// Completes with a [Activities].
89 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 91 ///
90 * error. 92 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
91 * 93 /// an error.
92 * If the used [http.Client] completes with an error when making a REST call, 94 ///
93 * this method will complete with the same error. 95 /// If the used [http.Client] completes with an error when making a REST
94 */ 96 /// call, this method will complete with the same error.
95 async.Future<Activities> list(core.String userKey, core.String applicationName , {core.String actorIpAddress, core.String customerId, core.String endTime, core .String eventName, core.String filters, core.int maxResults, core.String pageTok en, core.String startTime}) { 97 async.Future<Activities> list(
98 core.String userKey, core.String applicationName,
99 {core.String actorIpAddress,
100 core.String customerId,
101 core.String endTime,
102 core.String eventName,
103 core.String filters,
104 core.int maxResults,
105 core.String pageToken,
106 core.String startTime}) {
96 var _url = null; 107 var _url = null;
97 var _queryParams = new core.Map(); 108 var _queryParams = new core.Map();
98 var _uploadMedia = null; 109 var _uploadMedia = null;
99 var _uploadOptions = null; 110 var _uploadOptions = null;
100 var _downloadOptions = commons.DownloadOptions.Metadata; 111 var _downloadOptions = commons.DownloadOptions.Metadata;
101 var _body = null; 112 var _body = null;
102 113
103 if (userKey == null) { 114 if (userKey == null) {
104 throw new core.ArgumentError("Parameter userKey is required."); 115 throw new core.ArgumentError("Parameter userKey is required.");
105 } 116 }
(...skipping 18 matching lines...) Expand all
124 if (maxResults != null) { 135 if (maxResults != null) {
125 _queryParams["maxResults"] = ["${maxResults}"]; 136 _queryParams["maxResults"] = ["${maxResults}"];
126 } 137 }
127 if (pageToken != null) { 138 if (pageToken != null) {
128 _queryParams["pageToken"] = [pageToken]; 139 _queryParams["pageToken"] = [pageToken];
129 } 140 }
130 if (startTime != null) { 141 if (startTime != null) {
131 _queryParams["startTime"] = [startTime]; 142 _queryParams["startTime"] = [startTime];
132 } 143 }
133 144
134 _url = 'activity/users/' + commons.Escaper.ecapeVariable('$userKey') + '/app lications/' + commons.Escaper.ecapeVariable('$applicationName'); 145 _url = 'activity/users/' +
146 commons.Escaper.ecapeVariable('$userKey') +
147 '/applications/' +
148 commons.Escaper.ecapeVariable('$applicationName');
135 149
136 var _response = _requester.request(_url, 150 var _response = _requester.request(_url, "GET",
137 "GET", 151 body: _body,
138 body: _body, 152 queryParams: _queryParams,
139 queryParams: _queryParams, 153 uploadOptions: _uploadOptions,
140 uploadOptions: _uploadOptions, 154 uploadMedia: _uploadMedia,
141 uploadMedia: _uploadMedia, 155 downloadOptions: _downloadOptions);
142 downloadOptions: _downloadOptions);
143 return _response.then((data) => new Activities.fromJson(data)); 156 return _response.then((data) => new Activities.fromJson(data));
144 } 157 }
145 158
146 /** 159 /// Push changes to activities
147 * Push changes to activities 160 ///
148 * 161 /// [request] - The metadata request object.
149 * [request] - The metadata request object. 162 ///
150 * 163 /// Request parameters:
151 * Request parameters: 164 ///
152 * 165 /// [userKey] - Represents the profile id or the user email for which the
153 * [userKey] - Represents the profile id or the user email for which the data 166 /// data should be filtered. When 'all' is specified as the userKey, it
154 * should be filtered. When 'all' is specified as the userKey, it returns 167 /// returns usageReports for all users.
155 * usageReports for all users. 168 ///
156 * 169 /// [applicationName] - Application name for which the events are to be
157 * [applicationName] - Application name for which the events are to be 170 /// retrieved.
158 * retrieved. 171 /// Value must have pattern
159 * Value must have pattern 172 /// "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat )|(gplus)|(rules)".
160 * "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat) |(gplus)|(rules)". 173 ///
161 * 174 /// [actorIpAddress] - IP Address of host where the event was performed.
162 * [actorIpAddress] - IP Address of host where the event was performed. 175 /// Supports both IPv4 and IPv6 addresses.
163 * Supports both IPv4 and IPv6 addresses. 176 ///
164 * 177 /// [customerId] - Represents the customer for which the data is to be
165 * [customerId] - Represents the customer for which the data is to be fetched. 178 /// fetched.
166 * Value must have pattern "C.+". 179 /// Value must have pattern "C.+".
167 * 180 ///
168 * [endTime] - Return events which occurred at or before this time. 181 /// [endTime] - Return events which occurred at or before this time.
169 * Value must have pattern 182 /// Value must have pattern
170 * "(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|([-+])(\d\ d):(\d\d))". 183 /// "(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|([-+])(\d \d):(\d\d))".
171 * 184 ///
172 * [eventName] - Name of the event being queried. 185 /// [eventName] - Name of the event being queried.
173 * 186 ///
174 * [filters] - Event parameters in the form [parameter1 187 /// [filters] - Event parameters in the form [parameter1
175 * name][operator][parameter1 value],[parameter2 name][operator][parameter2 188 /// name][operator][parameter1 value],[parameter2 name][operator][parameter2
176 * value],... 189 /// value],...
177 * Value must have pattern "(.+[<,<=,==,>=,>,<>].+,)*(.+[<,<=,==,>=,>,<>].+)". 190 /// Value must have pattern
178 * 191 /// "(.+[<,<=,==,>=,>,<>].+,)*(.+[<,<=,==,>=,>,<>].+)".
179 * [maxResults] - Number of activity records to be shown in each page. 192 ///
180 * Value must be between "1" and "1000". 193 /// [maxResults] - Number of activity records to be shown in each page.
181 * 194 /// Value must be between "1" and "1000".
182 * [pageToken] - Token to specify next page. 195 ///
183 * 196 /// [pageToken] - Token to specify next page.
184 * [startTime] - Return events which occurred at or after this time. 197 ///
185 * Value must have pattern 198 /// [startTime] - Return events which occurred at or after this time.
186 * "(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|([-+])(\d\ d):(\d\d))". 199 /// Value must have pattern
187 * 200 /// "(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|([-+])(\d \d):(\d\d))".
188 * Completes with a [Channel]. 201 ///
189 * 202 /// Completes with a [Channel].
190 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 203 ///
191 * error. 204 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
192 * 205 /// an error.
193 * If the used [http.Client] completes with an error when making a REST call, 206 ///
194 * this method will complete with the same error. 207 /// If the used [http.Client] completes with an error when making a REST
195 */ 208 /// call, this method will complete with the same error.
196 async.Future<Channel> watch(Channel request, core.String userKey, core.String applicationName, {core.String actorIpAddress, core.String customerId, core.Strin g endTime, core.String eventName, core.String filters, core.int maxResults, core .String pageToken, core.String startTime}) { 209 async.Future<Channel> watch(
210 Channel request, core.String userKey, core.String applicationName,
211 {core.String actorIpAddress,
212 core.String customerId,
213 core.String endTime,
214 core.String eventName,
215 core.String filters,
216 core.int maxResults,
217 core.String pageToken,
218 core.String startTime}) {
197 var _url = null; 219 var _url = null;
198 var _queryParams = new core.Map(); 220 var _queryParams = new core.Map();
199 var _uploadMedia = null; 221 var _uploadMedia = null;
200 var _uploadOptions = null; 222 var _uploadOptions = null;
201 var _downloadOptions = commons.DownloadOptions.Metadata; 223 var _downloadOptions = commons.DownloadOptions.Metadata;
202 var _body = null; 224 var _body = null;
203 225
204 if (request != null) { 226 if (request != null) {
205 _body = convert.JSON.encode((request).toJson()); 227 _body = convert.JSON.encode((request).toJson());
206 } 228 }
(...skipping 21 matching lines...) Expand all
228 if (maxResults != null) { 250 if (maxResults != null) {
229 _queryParams["maxResults"] = ["${maxResults}"]; 251 _queryParams["maxResults"] = ["${maxResults}"];
230 } 252 }
231 if (pageToken != null) { 253 if (pageToken != null) {
232 _queryParams["pageToken"] = [pageToken]; 254 _queryParams["pageToken"] = [pageToken];
233 } 255 }
234 if (startTime != null) { 256 if (startTime != null) {
235 _queryParams["startTime"] = [startTime]; 257 _queryParams["startTime"] = [startTime];
236 } 258 }
237 259
238 _url = 'activity/users/' + commons.Escaper.ecapeVariable('$userKey') + '/app lications/' + commons.Escaper.ecapeVariable('$applicationName') + '/watch'; 260 _url = 'activity/users/' +
261 commons.Escaper.ecapeVariable('$userKey') +
262 '/applications/' +
263 commons.Escaper.ecapeVariable('$applicationName') +
264 '/watch';
239 265
240 var _response = _requester.request(_url, 266 var _response = _requester.request(_url, "POST",
241 "POST", 267 body: _body,
242 body: _body, 268 queryParams: _queryParams,
243 queryParams: _queryParams, 269 uploadOptions: _uploadOptions,
244 uploadOptions: _uploadOptions, 270 uploadMedia: _uploadMedia,
245 uploadMedia: _uploadMedia, 271 downloadOptions: _downloadOptions);
246 downloadOptions: _downloadOptions);
247 return _response.then((data) => new Channel.fromJson(data)); 272 return _response.then((data) => new Channel.fromJson(data));
248 } 273 }
249
250 } 274 }
251 275
252
253 class ChannelsResourceApi { 276 class ChannelsResourceApi {
254 final commons.ApiRequester _requester; 277 final commons.ApiRequester _requester;
255 278
256 ChannelsResourceApi(commons.ApiRequester client) : 279 ChannelsResourceApi(commons.ApiRequester client) : _requester = client;
257 _requester = client;
258 280
259 /** 281 /// Stop watching resources through this channel
260 * Stop watching resources through this channel 282 ///
261 * 283 /// [request] - The metadata request object.
262 * [request] - The metadata request object. 284 ///
263 * 285 /// Request parameters:
264 * Request parameters: 286 ///
265 * 287 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
266 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 288 /// an error.
267 * error. 289 ///
268 * 290 /// If the used [http.Client] completes with an error when making a REST
269 * If the used [http.Client] completes with an error when making a REST call, 291 /// call, this method will complete with the same error.
270 * this method will complete with the same error.
271 */
272 async.Future stop(Channel request) { 292 async.Future stop(Channel request) {
273 var _url = null; 293 var _url = null;
274 var _queryParams = new core.Map(); 294 var _queryParams = new core.Map();
275 var _uploadMedia = null; 295 var _uploadMedia = null;
276 var _uploadOptions = null; 296 var _uploadOptions = null;
277 var _downloadOptions = commons.DownloadOptions.Metadata; 297 var _downloadOptions = commons.DownloadOptions.Metadata;
278 var _body = null; 298 var _body = null;
279 299
280 if (request != null) { 300 if (request != null) {
281 _body = convert.JSON.encode((request).toJson()); 301 _body = convert.JSON.encode((request).toJson());
282 } 302 }
283 303
284 _downloadOptions = null; 304 _downloadOptions = null;
285 305
286 _url = '/admin/reports_v1/channels/stop'; 306 _url = '/admin/reports_v1/channels/stop';
287 307
288 var _response = _requester.request(_url, 308 var _response = _requester.request(_url, "POST",
289 "POST", 309 body: _body,
290 body: _body, 310 queryParams: _queryParams,
291 queryParams: _queryParams, 311 uploadOptions: _uploadOptions,
292 uploadOptions: _uploadOptions, 312 uploadMedia: _uploadMedia,
293 uploadMedia: _uploadMedia, 313 downloadOptions: _downloadOptions);
294 downloadOptions: _downloadOptions);
295 return _response.then((data) => null); 314 return _response.then((data) => null);
296 } 315 }
297
298 } 316 }
299 317
300
301 class CustomerUsageReportsResourceApi { 318 class CustomerUsageReportsResourceApi {
302 final commons.ApiRequester _requester; 319 final commons.ApiRequester _requester;
303 320
304 CustomerUsageReportsResourceApi(commons.ApiRequester client) : 321 CustomerUsageReportsResourceApi(commons.ApiRequester client)
305 _requester = client; 322 : _requester = client;
306 323
307 /** 324 /// Retrieves a report which is a collection of properties / statistics for a
308 * Retrieves a report which is a collection of properties / statistics for a 325 /// specific customer.
309 * specific customer. 326 ///
310 * 327 /// Request parameters:
311 * Request parameters: 328 ///
312 * 329 /// [date] - Represents the date in yyyy-mm-dd format for which the data is
313 * [date] - Represents the date in yyyy-mm-dd format for which the data is to 330 /// to be fetched.
314 * be fetched. 331 /// Value must have pattern "(\d){4}-(\d){2}-(\d){2}".
315 * Value must have pattern "(\d){4}-(\d){2}-(\d){2}". 332 ///
316 * 333 /// [customerId] - Represents the customer for which the data is to be
317 * [customerId] - Represents the customer for which the data is to be fetched. 334 /// fetched.
318 * Value must have pattern "C.+". 335 /// Value must have pattern "C.+".
319 * 336 ///
320 * [pageToken] - Token to specify next page. 337 /// [pageToken] - Token to specify next page.
321 * 338 ///
322 * [parameters] - Represents the application name, parameter name pairs to 339 /// [parameters] - Represents the application name, parameter name pairs to
323 * fetch in csv as app_name1:param_name1, app_name2:param_name2. 340 /// fetch in csv as app_name1:param_name1, app_name2:param_name2.
324 * Value must have pattern 341 /// Value must have pattern
325 * "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calend ar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(ap p_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(si tes)|(device_management)|(drive)):[^,]+)". 342 /// "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calen dar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(a pp_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(s ites)|(device_management)|(drive)):[^,]+)".
326 * 343 ///
327 * Completes with a [UsageReports]. 344 /// Completes with a [UsageReports].
328 * 345 ///
329 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 346 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
330 * error. 347 /// an error.
331 * 348 ///
332 * If the used [http.Client] completes with an error when making a REST call, 349 /// If the used [http.Client] completes with an error when making a REST
333 * this method will complete with the same error. 350 /// call, this method will complete with the same error.
334 */ 351 async.Future<UsageReports> get(core.String date,
335 async.Future<UsageReports> get(core.String date, {core.String customerId, core .String pageToken, core.String parameters}) { 352 {core.String customerId, core.String pageToken, core.String parameters}) {
336 var _url = null; 353 var _url = null;
337 var _queryParams = new core.Map(); 354 var _queryParams = new core.Map();
338 var _uploadMedia = null; 355 var _uploadMedia = null;
339 var _uploadOptions = null; 356 var _uploadOptions = null;
340 var _downloadOptions = commons.DownloadOptions.Metadata; 357 var _downloadOptions = commons.DownloadOptions.Metadata;
341 var _body = null; 358 var _body = null;
342 359
343 if (date == null) { 360 if (date == null) {
344 throw new core.ArgumentError("Parameter date is required."); 361 throw new core.ArgumentError("Parameter date is required.");
345 } 362 }
346 if (customerId != null) { 363 if (customerId != null) {
347 _queryParams["customerId"] = [customerId]; 364 _queryParams["customerId"] = [customerId];
348 } 365 }
349 if (pageToken != null) { 366 if (pageToken != null) {
350 _queryParams["pageToken"] = [pageToken]; 367 _queryParams["pageToken"] = [pageToken];
351 } 368 }
352 if (parameters != null) { 369 if (parameters != null) {
353 _queryParams["parameters"] = [parameters]; 370 _queryParams["parameters"] = [parameters];
354 } 371 }
355 372
356 _url = 'usage/dates/' + commons.Escaper.ecapeVariable('$date'); 373 _url = 'usage/dates/' + commons.Escaper.ecapeVariable('$date');
357 374
358 var _response = _requester.request(_url, 375 var _response = _requester.request(_url, "GET",
359 "GET", 376 body: _body,
360 body: _body, 377 queryParams: _queryParams,
361 queryParams: _queryParams, 378 uploadOptions: _uploadOptions,
362 uploadOptions: _uploadOptions, 379 uploadMedia: _uploadMedia,
363 uploadMedia: _uploadMedia, 380 downloadOptions: _downloadOptions);
364 downloadOptions: _downloadOptions);
365 return _response.then((data) => new UsageReports.fromJson(data)); 381 return _response.then((data) => new UsageReports.fromJson(data));
366 } 382 }
367
368 } 383 }
369 384
370
371 class UserUsageReportResourceApi { 385 class UserUsageReportResourceApi {
372 final commons.ApiRequester _requester; 386 final commons.ApiRequester _requester;
373 387
374 UserUsageReportResourceApi(commons.ApiRequester client) : 388 UserUsageReportResourceApi(commons.ApiRequester client) : _requester = client;
375 _requester = client;
376 389
377 /** 390 /// Retrieves a report which is a collection of properties / statistics for a
378 * Retrieves a report which is a collection of properties / statistics for a 391 /// set of users.
379 * set of users. 392 ///
380 * 393 /// Request parameters:
381 * Request parameters: 394 ///
382 * 395 /// [userKey] - Represents the profile id or the user email for which the
383 * [userKey] - Represents the profile id or the user email for which the data 396 /// data should be filtered.
384 * should be filtered. 397 ///
385 * 398 /// [date] - Represents the date in yyyy-mm-dd format for which the data is
386 * [date] - Represents the date in yyyy-mm-dd format for which the data is to 399 /// to be fetched.
387 * be fetched. 400 /// Value must have pattern "(\d){4}-(\d){2}-(\d){2}".
388 * Value must have pattern "(\d){4}-(\d){2}-(\d){2}". 401 ///
389 * 402 /// [customerId] - Represents the customer for which the data is to be
390 * [customerId] - Represents the customer for which the data is to be fetched. 403 /// fetched.
391 * Value must have pattern "C.+". 404 /// Value must have pattern "C.+".
392 * 405 ///
393 * [filters] - Represents the set of filters including parameter operator 406 /// [filters] - Represents the set of filters including parameter operator
394 * value. 407 /// value.
395 * Value must have pattern 408 /// Value must have pattern
396 * "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)| (device_management)|(drive)):[a-z0-9_]+[<,<=,==,>=,>,!=][^,]+,)*(((accounts)|(cl assroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(d rive)):[a-z0-9_]+[<,<=,==,>=,>,!=][^,]+)". 409 /// "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites) |(device_management)|(drive)):[a-z0-9_]+[<,<=,==,>=,>,!=][^,]+,)*(((accounts)|(c lassroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|( drive)):[a-z0-9_]+[<,<=,==,>=,>,!=][^,]+)".
397 * 410 ///
398 * [maxResults] - Maximum number of results to return. Maximum allowed is 1000 411 /// [maxResults] - Maximum number of results to return. Maximum allowed is
399 * 412 /// 1000
400 * [pageToken] - Token to specify next page. 413 ///
401 * 414 /// [pageToken] - Token to specify next page.
402 * [parameters] - Represents the application name, parameter name pairs to 415 ///
403 * fetch in csv as app_name1:param_name1, app_name2:param_name2. 416 /// [parameters] - Represents the application name, parameter name pairs to
404 * Value must have pattern 417 /// fetch in csv as app_name1:param_name1, app_name2:param_name2.
405 * "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)| (device_management)|(drive)):[^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(ca lendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)". 418 /// Value must have pattern
406 * 419 /// "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites) |(device_management)|(drive)):[^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(c alendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)".
407 * Completes with a [UsageReports]. 420 ///
408 * 421 /// Completes with a [UsageReports].
409 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 422 ///
410 * error. 423 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
411 * 424 /// an error.
412 * If the used [http.Client] completes with an error when making a REST call, 425 ///
413 * this method will complete with the same error. 426 /// If the used [http.Client] completes with an error when making a REST
414 */ 427 /// call, this method will complete with the same error.
415 async.Future<UsageReports> get(core.String userKey, core.String date, {core.St ring customerId, core.String filters, core.int maxResults, core.String pageToken , core.String parameters}) { 428 async.Future<UsageReports> get(core.String userKey, core.String date,
429 {core.String customerId,
430 core.String filters,
431 core.int maxResults,
432 core.String pageToken,
433 core.String parameters}) {
416 var _url = null; 434 var _url = null;
417 var _queryParams = new core.Map(); 435 var _queryParams = new core.Map();
418 var _uploadMedia = null; 436 var _uploadMedia = null;
419 var _uploadOptions = null; 437 var _uploadOptions = null;
420 var _downloadOptions = commons.DownloadOptions.Metadata; 438 var _downloadOptions = commons.DownloadOptions.Metadata;
421 var _body = null; 439 var _body = null;
422 440
423 if (userKey == null) { 441 if (userKey == null) {
424 throw new core.ArgumentError("Parameter userKey is required."); 442 throw new core.ArgumentError("Parameter userKey is required.");
425 } 443 }
426 if (date == null) { 444 if (date == null) {
427 throw new core.ArgumentError("Parameter date is required."); 445 throw new core.ArgumentError("Parameter date is required.");
428 } 446 }
429 if (customerId != null) { 447 if (customerId != null) {
430 _queryParams["customerId"] = [customerId]; 448 _queryParams["customerId"] = [customerId];
431 } 449 }
432 if (filters != null) { 450 if (filters != null) {
433 _queryParams["filters"] = [filters]; 451 _queryParams["filters"] = [filters];
434 } 452 }
435 if (maxResults != null) { 453 if (maxResults != null) {
436 _queryParams["maxResults"] = ["${maxResults}"]; 454 _queryParams["maxResults"] = ["${maxResults}"];
437 } 455 }
438 if (pageToken != null) { 456 if (pageToken != null) {
439 _queryParams["pageToken"] = [pageToken]; 457 _queryParams["pageToken"] = [pageToken];
440 } 458 }
441 if (parameters != null) { 459 if (parameters != null) {
442 _queryParams["parameters"] = [parameters]; 460 _queryParams["parameters"] = [parameters];
443 } 461 }
444 462
445 _url = 'usage/users/' + commons.Escaper.ecapeVariable('$userKey') + '/dates/ ' + commons.Escaper.ecapeVariable('$date'); 463 _url = 'usage/users/' +
464 commons.Escaper.ecapeVariable('$userKey') +
465 '/dates/' +
466 commons.Escaper.ecapeVariable('$date');
446 467
447 var _response = _requester.request(_url, 468 var _response = _requester.request(_url, "GET",
448 "GET", 469 body: _body,
449 body: _body, 470 queryParams: _queryParams,
450 queryParams: _queryParams, 471 uploadOptions: _uploadOptions,
451 uploadOptions: _uploadOptions, 472 uploadMedia: _uploadMedia,
452 uploadMedia: _uploadMedia, 473 downloadOptions: _downloadOptions);
453 downloadOptions: _downloadOptions);
454 return _response.then((data) => new UsageReports.fromJson(data)); 474 return _response.then((data) => new UsageReports.fromJson(data));
455 } 475 }
456
457 } 476 }
458 477
478 /// JSON template for a collection of activites.
479 class Activities {
480 /// ETag of the resource.
481 core.String etag;
459 482
483 /// Each record in read response.
484 core.List<Activity> items;
460 485
461 /** JSON template for a collection of activites. */ 486 /// Kind of list response this is.
462 class Activities {
463 /** ETag of the resource. */
464 core.String etag;
465 /** Each record in read response. */
466 core.List<Activity> items;
467 /** Kind of list response this is. */
468 core.String kind; 487 core.String kind;
469 /** Token for retrieving the next page */ 488
489 /// Token for retrieving the next page
470 core.String nextPageToken; 490 core.String nextPageToken;
471 491
472 Activities(); 492 Activities();
473 493
474 Activities.fromJson(core.Map _json) { 494 Activities.fromJson(core.Map _json) {
475 if (_json.containsKey("etag")) { 495 if (_json.containsKey("etag")) {
476 etag = _json["etag"]; 496 etag = _json["etag"];
477 } 497 }
478 if (_json.containsKey("items")) { 498 if (_json.containsKey("items")) {
479 items = _json["items"].map((value) => new Activity.fromJson(value)).toList (); 499 items =
500 _json["items"].map((value) => new Activity.fromJson(value)).toList();
480 } 501 }
481 if (_json.containsKey("kind")) { 502 if (_json.containsKey("kind")) {
482 kind = _json["kind"]; 503 kind = _json["kind"];
483 } 504 }
484 if (_json.containsKey("nextPageToken")) { 505 if (_json.containsKey("nextPageToken")) {
485 nextPageToken = _json["nextPageToken"]; 506 nextPageToken = _json["nextPageToken"];
486 } 507 }
487 } 508 }
488 509
489 core.Map<core.String, core.Object> toJson() { 510 core.Map<core.String, core.Object> toJson() {
490 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 511 final core.Map<core.String, core.Object> _json =
512 new core.Map<core.String, core.Object>();
491 if (etag != null) { 513 if (etag != null) {
492 _json["etag"] = etag; 514 _json["etag"] = etag;
493 } 515 }
494 if (items != null) { 516 if (items != null) {
495 _json["items"] = items.map((value) => (value).toJson()).toList(); 517 _json["items"] = items.map((value) => (value).toJson()).toList();
496 } 518 }
497 if (kind != null) { 519 if (kind != null) {
498 _json["kind"] = kind; 520 _json["kind"] = kind;
499 } 521 }
500 if (nextPageToken != null) { 522 if (nextPageToken != null) {
501 _json["nextPageToken"] = nextPageToken; 523 _json["nextPageToken"] = nextPageToken;
502 } 524 }
503 return _json; 525 return _json;
504 } 526 }
505 } 527 }
506 528
507 /** User doing the action. */ 529 /// User doing the action.
508 class ActivityActor { 530 class ActivityActor {
509 /** User or OAuth 2LO request. */ 531 /// User or OAuth 2LO request.
510 core.String callerType; 532 core.String callerType;
511 /** Email address of the user. */ 533
534 /// Email address of the user.
512 core.String email; 535 core.String email;
513 /** For OAuth 2LO API requests, consumer_key of the requestor. */ 536
537 /// For OAuth 2LO API requests, consumer_key of the requestor.
514 core.String key; 538 core.String key;
515 /** Obfuscated user id of the user. */ 539
540 /// Obfuscated user id of the user.
516 core.String profileId; 541 core.String profileId;
517 542
518 ActivityActor(); 543 ActivityActor();
519 544
520 ActivityActor.fromJson(core.Map _json) { 545 ActivityActor.fromJson(core.Map _json) {
521 if (_json.containsKey("callerType")) { 546 if (_json.containsKey("callerType")) {
522 callerType = _json["callerType"]; 547 callerType = _json["callerType"];
523 } 548 }
524 if (_json.containsKey("email")) { 549 if (_json.containsKey("email")) {
525 email = _json["email"]; 550 email = _json["email"];
526 } 551 }
527 if (_json.containsKey("key")) { 552 if (_json.containsKey("key")) {
528 key = _json["key"]; 553 key = _json["key"];
529 } 554 }
530 if (_json.containsKey("profileId")) { 555 if (_json.containsKey("profileId")) {
531 profileId = _json["profileId"]; 556 profileId = _json["profileId"];
532 } 557 }
533 } 558 }
534 559
535 core.Map<core.String, core.Object> toJson() { 560 core.Map<core.String, core.Object> toJson() {
536 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 561 final core.Map<core.String, core.Object> _json =
562 new core.Map<core.String, core.Object>();
537 if (callerType != null) { 563 if (callerType != null) {
538 _json["callerType"] = callerType; 564 _json["callerType"] = callerType;
539 } 565 }
540 if (email != null) { 566 if (email != null) {
541 _json["email"] = email; 567 _json["email"] = email;
542 } 568 }
543 if (key != null) { 569 if (key != null) {
544 _json["key"] = key; 570 _json["key"] = key;
545 } 571 }
546 if (profileId != null) { 572 if (profileId != null) {
547 _json["profileId"] = profileId; 573 _json["profileId"] = profileId;
548 } 574 }
549 return _json; 575 return _json;
550 } 576 }
551 } 577 }
552 578
553 class ActivityEventsParameters { 579 class ActivityEventsParameters {
554 /** Boolean value of the parameter. */ 580 /// Boolean value of the parameter.
555 core.bool boolValue; 581 core.bool boolValue;
556 /** Integral value of the parameter. */ 582
583 /// Integral value of the parameter.
557 core.String intValue; 584 core.String intValue;
558 /** Multi-int value of the parameter. */ 585
586 /// Multi-int value of the parameter.
559 core.List<core.String> multiIntValue; 587 core.List<core.String> multiIntValue;
560 /** Multi-string value of the parameter. */ 588
589 /// Multi-string value of the parameter.
561 core.List<core.String> multiValue; 590 core.List<core.String> multiValue;
562 /** The name of the parameter. */ 591
592 /// The name of the parameter.
563 core.String name; 593 core.String name;
564 /** String value of the parameter. */ 594
595 /// String value of the parameter.
565 core.String value; 596 core.String value;
566 597
567 ActivityEventsParameters(); 598 ActivityEventsParameters();
568 599
569 ActivityEventsParameters.fromJson(core.Map _json) { 600 ActivityEventsParameters.fromJson(core.Map _json) {
570 if (_json.containsKey("boolValue")) { 601 if (_json.containsKey("boolValue")) {
571 boolValue = _json["boolValue"]; 602 boolValue = _json["boolValue"];
572 } 603 }
573 if (_json.containsKey("intValue")) { 604 if (_json.containsKey("intValue")) {
574 intValue = _json["intValue"]; 605 intValue = _json["intValue"];
575 } 606 }
576 if (_json.containsKey("multiIntValue")) { 607 if (_json.containsKey("multiIntValue")) {
577 multiIntValue = _json["multiIntValue"]; 608 multiIntValue = _json["multiIntValue"];
578 } 609 }
579 if (_json.containsKey("multiValue")) { 610 if (_json.containsKey("multiValue")) {
580 multiValue = _json["multiValue"]; 611 multiValue = _json["multiValue"];
581 } 612 }
582 if (_json.containsKey("name")) { 613 if (_json.containsKey("name")) {
583 name = _json["name"]; 614 name = _json["name"];
584 } 615 }
585 if (_json.containsKey("value")) { 616 if (_json.containsKey("value")) {
586 value = _json["value"]; 617 value = _json["value"];
587 } 618 }
588 } 619 }
589 620
590 core.Map<core.String, core.Object> toJson() { 621 core.Map<core.String, core.Object> toJson() {
591 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 622 final core.Map<core.String, core.Object> _json =
623 new core.Map<core.String, core.Object>();
592 if (boolValue != null) { 624 if (boolValue != null) {
593 _json["boolValue"] = boolValue; 625 _json["boolValue"] = boolValue;
594 } 626 }
595 if (intValue != null) { 627 if (intValue != null) {
596 _json["intValue"] = intValue; 628 _json["intValue"] = intValue;
597 } 629 }
598 if (multiIntValue != null) { 630 if (multiIntValue != null) {
599 _json["multiIntValue"] = multiIntValue; 631 _json["multiIntValue"] = multiIntValue;
600 } 632 }
601 if (multiValue != null) { 633 if (multiValue != null) {
602 _json["multiValue"] = multiValue; 634 _json["multiValue"] = multiValue;
603 } 635 }
604 if (name != null) { 636 if (name != null) {
605 _json["name"] = name; 637 _json["name"] = name;
606 } 638 }
607 if (value != null) { 639 if (value != null) {
608 _json["value"] = value; 640 _json["value"] = value;
609 } 641 }
610 return _json; 642 return _json;
611 } 643 }
612 } 644 }
613 645
614 class ActivityEvents { 646 class ActivityEvents {
615 /** Name of event. */ 647 /// Name of event.
616 core.String name; 648 core.String name;
617 /** Parameter value pairs for various applications. */ 649
650 /// Parameter value pairs for various applications.
618 core.List<ActivityEventsParameters> parameters; 651 core.List<ActivityEventsParameters> parameters;
619 /** Type of event. */ 652
653 /// Type of event.
620 core.String type; 654 core.String type;
621 655
622 ActivityEvents(); 656 ActivityEvents();
623 657
624 ActivityEvents.fromJson(core.Map _json) { 658 ActivityEvents.fromJson(core.Map _json) {
625 if (_json.containsKey("name")) { 659 if (_json.containsKey("name")) {
626 name = _json["name"]; 660 name = _json["name"];
627 } 661 }
628 if (_json.containsKey("parameters")) { 662 if (_json.containsKey("parameters")) {
629 parameters = _json["parameters"].map((value) => new ActivityEventsParamete rs.fromJson(value)).toList(); 663 parameters = _json["parameters"]
664 .map((value) => new ActivityEventsParameters.fromJson(value))
665 .toList();
630 } 666 }
631 if (_json.containsKey("type")) { 667 if (_json.containsKey("type")) {
632 type = _json["type"]; 668 type = _json["type"];
633 } 669 }
634 } 670 }
635 671
636 core.Map<core.String, core.Object> toJson() { 672 core.Map<core.String, core.Object> toJson() {
637 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 673 final core.Map<core.String, core.Object> _json =
674 new core.Map<core.String, core.Object>();
638 if (name != null) { 675 if (name != null) {
639 _json["name"] = name; 676 _json["name"] = name;
640 } 677 }
641 if (parameters != null) { 678 if (parameters != null) {
642 _json["parameters"] = parameters.map((value) => (value).toJson()).toList() ; 679 _json["parameters"] =
680 parameters.map((value) => (value).toJson()).toList();
643 } 681 }
644 if (type != null) { 682 if (type != null) {
645 _json["type"] = type; 683 _json["type"] = type;
646 } 684 }
647 return _json; 685 return _json;
648 } 686 }
649 } 687 }
650 688
651 /** Unique identifier for each activity record. */ 689 /// Unique identifier for each activity record.
652 class ActivityId { 690 class ActivityId {
653 /** Application name to which the event belongs. */ 691 /// Application name to which the event belongs.
654 core.String applicationName; 692 core.String applicationName;
655 /** Obfuscated customer ID of the source customer. */ 693
694 /// Obfuscated customer ID of the source customer.
656 core.String customerId; 695 core.String customerId;
657 /** Time of occurrence of the activity. */ 696
697 /// Time of occurrence of the activity.
658 core.DateTime time; 698 core.DateTime time;
659 /** Unique qualifier if multiple events have the same time. */ 699
700 /// Unique qualifier if multiple events have the same time.
660 core.String uniqueQualifier; 701 core.String uniqueQualifier;
661 702
662 ActivityId(); 703 ActivityId();
663 704
664 ActivityId.fromJson(core.Map _json) { 705 ActivityId.fromJson(core.Map _json) {
665 if (_json.containsKey("applicationName")) { 706 if (_json.containsKey("applicationName")) {
666 applicationName = _json["applicationName"]; 707 applicationName = _json["applicationName"];
667 } 708 }
668 if (_json.containsKey("customerId")) { 709 if (_json.containsKey("customerId")) {
669 customerId = _json["customerId"]; 710 customerId = _json["customerId"];
670 } 711 }
671 if (_json.containsKey("time")) { 712 if (_json.containsKey("time")) {
672 time = core.DateTime.parse(_json["time"]); 713 time = core.DateTime.parse(_json["time"]);
673 } 714 }
674 if (_json.containsKey("uniqueQualifier")) { 715 if (_json.containsKey("uniqueQualifier")) {
675 uniqueQualifier = _json["uniqueQualifier"]; 716 uniqueQualifier = _json["uniqueQualifier"];
676 } 717 }
677 } 718 }
678 719
679 core.Map<core.String, core.Object> toJson() { 720 core.Map<core.String, core.Object> toJson() {
680 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 721 final core.Map<core.String, core.Object> _json =
722 new core.Map<core.String, core.Object>();
681 if (applicationName != null) { 723 if (applicationName != null) {
682 _json["applicationName"] = applicationName; 724 _json["applicationName"] = applicationName;
683 } 725 }
684 if (customerId != null) { 726 if (customerId != null) {
685 _json["customerId"] = customerId; 727 _json["customerId"] = customerId;
686 } 728 }
687 if (time != null) { 729 if (time != null) {
688 _json["time"] = (time).toIso8601String(); 730 _json["time"] = (time).toIso8601String();
689 } 731 }
690 if (uniqueQualifier != null) { 732 if (uniqueQualifier != null) {
691 _json["uniqueQualifier"] = uniqueQualifier; 733 _json["uniqueQualifier"] = uniqueQualifier;
692 } 734 }
693 return _json; 735 return _json;
694 } 736 }
695 } 737 }
696 738
697 /** JSON template for the activity resource. */ 739 /// JSON template for the activity resource.
698 class Activity { 740 class Activity {
699 /** User doing the action. */ 741 /// User doing the action.
700 ActivityActor actor; 742 ActivityActor actor;
701 /** ETag of the entry. */ 743
744 /// ETag of the entry.
702 core.String etag; 745 core.String etag;
703 /** Activity events. */ 746
747 /// Activity events.
704 core.List<ActivityEvents> events; 748 core.List<ActivityEvents> events;
705 /** Unique identifier for each activity record. */ 749
750 /// Unique identifier for each activity record.
706 ActivityId id; 751 ActivityId id;
707 /** IP Address of the user doing the action. */ 752
753 /// IP Address of the user doing the action.
708 core.String ipAddress; 754 core.String ipAddress;
709 /** Kind of resource this is. */ 755
756 /// Kind of resource this is.
710 core.String kind; 757 core.String kind;
711 /** Domain of source customer. */ 758
759 /// Domain of source customer.
712 core.String ownerDomain; 760 core.String ownerDomain;
713 761
714 Activity(); 762 Activity();
715 763
716 Activity.fromJson(core.Map _json) { 764 Activity.fromJson(core.Map _json) {
717 if (_json.containsKey("actor")) { 765 if (_json.containsKey("actor")) {
718 actor = new ActivityActor.fromJson(_json["actor"]); 766 actor = new ActivityActor.fromJson(_json["actor"]);
719 } 767 }
720 if (_json.containsKey("etag")) { 768 if (_json.containsKey("etag")) {
721 etag = _json["etag"]; 769 etag = _json["etag"];
722 } 770 }
723 if (_json.containsKey("events")) { 771 if (_json.containsKey("events")) {
724 events = _json["events"].map((value) => new ActivityEvents.fromJson(value) ).toList(); 772 events = _json["events"]
773 .map((value) => new ActivityEvents.fromJson(value))
774 .toList();
725 } 775 }
726 if (_json.containsKey("id")) { 776 if (_json.containsKey("id")) {
727 id = new ActivityId.fromJson(_json["id"]); 777 id = new ActivityId.fromJson(_json["id"]);
728 } 778 }
729 if (_json.containsKey("ipAddress")) { 779 if (_json.containsKey("ipAddress")) {
730 ipAddress = _json["ipAddress"]; 780 ipAddress = _json["ipAddress"];
731 } 781 }
732 if (_json.containsKey("kind")) { 782 if (_json.containsKey("kind")) {
733 kind = _json["kind"]; 783 kind = _json["kind"];
734 } 784 }
735 if (_json.containsKey("ownerDomain")) { 785 if (_json.containsKey("ownerDomain")) {
736 ownerDomain = _json["ownerDomain"]; 786 ownerDomain = _json["ownerDomain"];
737 } 787 }
738 } 788 }
739 789
740 core.Map<core.String, core.Object> toJson() { 790 core.Map<core.String, core.Object> toJson() {
741 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 791 final core.Map<core.String, core.Object> _json =
792 new core.Map<core.String, core.Object>();
742 if (actor != null) { 793 if (actor != null) {
743 _json["actor"] = (actor).toJson(); 794 _json["actor"] = (actor).toJson();
744 } 795 }
745 if (etag != null) { 796 if (etag != null) {
746 _json["etag"] = etag; 797 _json["etag"] = etag;
747 } 798 }
748 if (events != null) { 799 if (events != null) {
749 _json["events"] = events.map((value) => (value).toJson()).toList(); 800 _json["events"] = events.map((value) => (value).toJson()).toList();
750 } 801 }
751 if (id != null) { 802 if (id != null) {
752 _json["id"] = (id).toJson(); 803 _json["id"] = (id).toJson();
753 } 804 }
754 if (ipAddress != null) { 805 if (ipAddress != null) {
755 _json["ipAddress"] = ipAddress; 806 _json["ipAddress"] = ipAddress;
756 } 807 }
757 if (kind != null) { 808 if (kind != null) {
758 _json["kind"] = kind; 809 _json["kind"] = kind;
759 } 810 }
760 if (ownerDomain != null) { 811 if (ownerDomain != null) {
761 _json["ownerDomain"] = ownerDomain; 812 _json["ownerDomain"] = ownerDomain;
762 } 813 }
763 return _json; 814 return _json;
764 } 815 }
765 } 816 }
766 817
767 /** An notification channel used to watch for resource changes. */ 818 /// An notification channel used to watch for resource changes.
768 class Channel { 819 class Channel {
769 /** The address where notifications are delivered for this channel. */ 820 /// The address where notifications are delivered for this channel.
770 core.String address; 821 core.String address;
771 /** 822
772 * Date and time of notification channel expiration, expressed as a Unix 823 /// Date and time of notification channel expiration, expressed as a Unix
773 * timestamp, in milliseconds. Optional. 824 /// timestamp, in milliseconds. Optional.
774 */
775 core.String expiration; 825 core.String expiration;
776 /** A UUID or similar unique string that identifies this channel. */ 826
827 /// A UUID or similar unique string that identifies this channel.
777 core.String id; 828 core.String id;
778 /** 829
779 * Identifies this as a notification channel used to watch for changes to a 830 /// Identifies this as a notification channel used to watch for changes to a
780 * resource. Value: the fixed string "api#channel". 831 /// resource. Value: the fixed string "api#channel".
781 */
782 core.String kind; 832 core.String kind;
783 /** Additional parameters controlling delivery channel behavior. Optional. */ 833
834 /// Additional parameters controlling delivery channel behavior. Optional.
784 core.Map<core.String, core.String> params; 835 core.Map<core.String, core.String> params;
785 /** A Boolean value to indicate whether payload is wanted. Optional. */ 836
837 /// A Boolean value to indicate whether payload is wanted. Optional.
786 core.bool payload; 838 core.bool payload;
787 /** 839
788 * An opaque ID that identifies the resource being watched on this channel. 840 /// An opaque ID that identifies the resource being watched on this channel.
789 * Stable across different API versions. 841 /// Stable across different API versions.
790 */
791 core.String resourceId; 842 core.String resourceId;
792 /** A version-specific identifier for the watched resource. */ 843
844 /// A version-specific identifier for the watched resource.
793 core.String resourceUri; 845 core.String resourceUri;
794 /** 846
795 * An arbitrary string delivered to the target address with each notification 847 /// An arbitrary string delivered to the target address with each
796 * delivered over this channel. Optional. 848 /// notification delivered over this channel. Optional.
797 */
798 core.String token; 849 core.String token;
799 /** The type of delivery mechanism used for this channel. */ 850
851 /// The type of delivery mechanism used for this channel.
800 core.String type; 852 core.String type;
801 853
802 Channel(); 854 Channel();
803 855
804 Channel.fromJson(core.Map _json) { 856 Channel.fromJson(core.Map _json) {
805 if (_json.containsKey("address")) { 857 if (_json.containsKey("address")) {
806 address = _json["address"]; 858 address = _json["address"];
807 } 859 }
808 if (_json.containsKey("expiration")) { 860 if (_json.containsKey("expiration")) {
809 expiration = _json["expiration"]; 861 expiration = _json["expiration"];
(...skipping 18 matching lines...) Expand all
828 } 880 }
829 if (_json.containsKey("token")) { 881 if (_json.containsKey("token")) {
830 token = _json["token"]; 882 token = _json["token"];
831 } 883 }
832 if (_json.containsKey("type")) { 884 if (_json.containsKey("type")) {
833 type = _json["type"]; 885 type = _json["type"];
834 } 886 }
835 } 887 }
836 888
837 core.Map<core.String, core.Object> toJson() { 889 core.Map<core.String, core.Object> toJson() {
838 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 890 final core.Map<core.String, core.Object> _json =
891 new core.Map<core.String, core.Object>();
839 if (address != null) { 892 if (address != null) {
840 _json["address"] = address; 893 _json["address"] = address;
841 } 894 }
842 if (expiration != null) { 895 if (expiration != null) {
843 _json["expiration"] = expiration; 896 _json["expiration"] = expiration;
844 } 897 }
845 if (id != null) { 898 if (id != null) {
846 _json["id"] = id; 899 _json["id"] = id;
847 } 900 }
848 if (kind != null) { 901 if (kind != null) {
(...skipping 14 matching lines...) Expand all
863 if (token != null) { 916 if (token != null) {
864 _json["token"] = token; 917 _json["token"] = token;
865 } 918 }
866 if (type != null) { 919 if (type != null) {
867 _json["type"] = type; 920 _json["type"] = type;
868 } 921 }
869 return _json; 922 return _json;
870 } 923 }
871 } 924 }
872 925
873 /** Information about the type of the item. */ 926 /// Information about the type of the item.
874 class UsageReportEntity { 927 class UsageReportEntity {
875 /** Obfuscated customer id for the record. */ 928 /// Obfuscated customer id for the record.
876 core.String customerId; 929 core.String customerId;
877 /** Obfuscated user id for the record. */ 930
931 /// Obfuscated user id for the record.
878 core.String profileId; 932 core.String profileId;
879 /** The type of item, can be a customer or user. */ 933
934 /// The type of item, can be a customer or user.
880 core.String type; 935 core.String type;
881 /** user's email. */ 936
937 /// user's email.
882 core.String userEmail; 938 core.String userEmail;
883 939
884 UsageReportEntity(); 940 UsageReportEntity();
885 941
886 UsageReportEntity.fromJson(core.Map _json) { 942 UsageReportEntity.fromJson(core.Map _json) {
887 if (_json.containsKey("customerId")) { 943 if (_json.containsKey("customerId")) {
888 customerId = _json["customerId"]; 944 customerId = _json["customerId"];
889 } 945 }
890 if (_json.containsKey("profileId")) { 946 if (_json.containsKey("profileId")) {
891 profileId = _json["profileId"]; 947 profileId = _json["profileId"];
892 } 948 }
893 if (_json.containsKey("type")) { 949 if (_json.containsKey("type")) {
894 type = _json["type"]; 950 type = _json["type"];
895 } 951 }
896 if (_json.containsKey("userEmail")) { 952 if (_json.containsKey("userEmail")) {
897 userEmail = _json["userEmail"]; 953 userEmail = _json["userEmail"];
898 } 954 }
899 } 955 }
900 956
901 core.Map<core.String, core.Object> toJson() { 957 core.Map<core.String, core.Object> toJson() {
902 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 958 final core.Map<core.String, core.Object> _json =
959 new core.Map<core.String, core.Object>();
903 if (customerId != null) { 960 if (customerId != null) {
904 _json["customerId"] = customerId; 961 _json["customerId"] = customerId;
905 } 962 }
906 if (profileId != null) { 963 if (profileId != null) {
907 _json["profileId"] = profileId; 964 _json["profileId"] = profileId;
908 } 965 }
909 if (type != null) { 966 if (type != null) {
910 _json["type"] = type; 967 _json["type"] = type;
911 } 968 }
912 if (userEmail != null) { 969 if (userEmail != null) {
913 _json["userEmail"] = userEmail; 970 _json["userEmail"] = userEmail;
914 } 971 }
915 return _json; 972 return _json;
916 } 973 }
917 } 974 }
918 975
919 class UsageReportParameters { 976 class UsageReportParameters {
920 /** Boolean value of the parameter. */ 977 /// Boolean value of the parameter.
921 core.bool boolValue; 978 core.bool boolValue;
922 /** RFC 3339 formatted value of the parameter. */ 979
980 /// RFC 3339 formatted value of the parameter.
923 core.DateTime datetimeValue; 981 core.DateTime datetimeValue;
924 /** Integral value of the parameter. */ 982
983 /// Integral value of the parameter.
925 core.String intValue; 984 core.String intValue;
926 /** 985
927 * Nested message value of the parameter. 986 /// Nested message value of the parameter.
928 * 987 ///
929 * The values for Object must be JSON objects. It can consist of `num`, 988 /// The values for Object must be JSON objects. It can consist of `num`,
930 * `String`, `bool` and `null` as well as `Map` and `List` values. 989 /// `String`, `bool` and `null` as well as `Map` and `List` values.
931 */
932 core.List<core.Map<core.String, core.Object>> msgValue; 990 core.List<core.Map<core.String, core.Object>> msgValue;
933 /** The name of the parameter. */ 991
992 /// The name of the parameter.
934 core.String name; 993 core.String name;
935 /** String value of the parameter. */ 994
995 /// String value of the parameter.
936 core.String stringValue; 996 core.String stringValue;
937 997
938 UsageReportParameters(); 998 UsageReportParameters();
939 999
940 UsageReportParameters.fromJson(core.Map _json) { 1000 UsageReportParameters.fromJson(core.Map _json) {
941 if (_json.containsKey("boolValue")) { 1001 if (_json.containsKey("boolValue")) {
942 boolValue = _json["boolValue"]; 1002 boolValue = _json["boolValue"];
943 } 1003 }
944 if (_json.containsKey("datetimeValue")) { 1004 if (_json.containsKey("datetimeValue")) {
945 datetimeValue = core.DateTime.parse(_json["datetimeValue"]); 1005 datetimeValue = core.DateTime.parse(_json["datetimeValue"]);
946 } 1006 }
947 if (_json.containsKey("intValue")) { 1007 if (_json.containsKey("intValue")) {
948 intValue = _json["intValue"]; 1008 intValue = _json["intValue"];
949 } 1009 }
950 if (_json.containsKey("msgValue")) { 1010 if (_json.containsKey("msgValue")) {
951 msgValue = _json["msgValue"]; 1011 msgValue = _json["msgValue"];
952 } 1012 }
953 if (_json.containsKey("name")) { 1013 if (_json.containsKey("name")) {
954 name = _json["name"]; 1014 name = _json["name"];
955 } 1015 }
956 if (_json.containsKey("stringValue")) { 1016 if (_json.containsKey("stringValue")) {
957 stringValue = _json["stringValue"]; 1017 stringValue = _json["stringValue"];
958 } 1018 }
959 } 1019 }
960 1020
961 core.Map<core.String, core.Object> toJson() { 1021 core.Map<core.String, core.Object> toJson() {
962 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1022 final core.Map<core.String, core.Object> _json =
1023 new core.Map<core.String, core.Object>();
963 if (boolValue != null) { 1024 if (boolValue != null) {
964 _json["boolValue"] = boolValue; 1025 _json["boolValue"] = boolValue;
965 } 1026 }
966 if (datetimeValue != null) { 1027 if (datetimeValue != null) {
967 _json["datetimeValue"] = (datetimeValue).toIso8601String(); 1028 _json["datetimeValue"] = (datetimeValue).toIso8601String();
968 } 1029 }
969 if (intValue != null) { 1030 if (intValue != null) {
970 _json["intValue"] = intValue; 1031 _json["intValue"] = intValue;
971 } 1032 }
972 if (msgValue != null) { 1033 if (msgValue != null) {
973 _json["msgValue"] = msgValue; 1034 _json["msgValue"] = msgValue;
974 } 1035 }
975 if (name != null) { 1036 if (name != null) {
976 _json["name"] = name; 1037 _json["name"] = name;
977 } 1038 }
978 if (stringValue != null) { 1039 if (stringValue != null) {
979 _json["stringValue"] = stringValue; 1040 _json["stringValue"] = stringValue;
980 } 1041 }
981 return _json; 1042 return _json;
982 } 1043 }
983 } 1044 }
984 1045
985 /** JSON template for a usage report. */ 1046 /// JSON template for a usage report.
986 class UsageReport { 1047 class UsageReport {
987 /** The date to which the record belongs. */ 1048 /// The date to which the record belongs.
988 core.String date; 1049 core.String date;
989 /** Information about the type of the item. */ 1050
1051 /// Information about the type of the item.
990 UsageReportEntity entity; 1052 UsageReportEntity entity;
991 /** ETag of the resource. */ 1053
1054 /// ETag of the resource.
992 core.String etag; 1055 core.String etag;
993 /** The kind of object. */ 1056
1057 /// The kind of object.
994 core.String kind; 1058 core.String kind;
995 /** Parameter value pairs for various applications. */ 1059
1060 /// Parameter value pairs for various applications.
996 core.List<UsageReportParameters> parameters; 1061 core.List<UsageReportParameters> parameters;
997 1062
998 UsageReport(); 1063 UsageReport();
999 1064
1000 UsageReport.fromJson(core.Map _json) { 1065 UsageReport.fromJson(core.Map _json) {
1001 if (_json.containsKey("date")) { 1066 if (_json.containsKey("date")) {
1002 date = _json["date"]; 1067 date = _json["date"];
1003 } 1068 }
1004 if (_json.containsKey("entity")) { 1069 if (_json.containsKey("entity")) {
1005 entity = new UsageReportEntity.fromJson(_json["entity"]); 1070 entity = new UsageReportEntity.fromJson(_json["entity"]);
1006 } 1071 }
1007 if (_json.containsKey("etag")) { 1072 if (_json.containsKey("etag")) {
1008 etag = _json["etag"]; 1073 etag = _json["etag"];
1009 } 1074 }
1010 if (_json.containsKey("kind")) { 1075 if (_json.containsKey("kind")) {
1011 kind = _json["kind"]; 1076 kind = _json["kind"];
1012 } 1077 }
1013 if (_json.containsKey("parameters")) { 1078 if (_json.containsKey("parameters")) {
1014 parameters = _json["parameters"].map((value) => new UsageReportParameters. fromJson(value)).toList(); 1079 parameters = _json["parameters"]
1080 .map((value) => new UsageReportParameters.fromJson(value))
1081 .toList();
1015 } 1082 }
1016 } 1083 }
1017 1084
1018 core.Map<core.String, core.Object> toJson() { 1085 core.Map<core.String, core.Object> toJson() {
1019 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1086 final core.Map<core.String, core.Object> _json =
1087 new core.Map<core.String, core.Object>();
1020 if (date != null) { 1088 if (date != null) {
1021 _json["date"] = date; 1089 _json["date"] = date;
1022 } 1090 }
1023 if (entity != null) { 1091 if (entity != null) {
1024 _json["entity"] = (entity).toJson(); 1092 _json["entity"] = (entity).toJson();
1025 } 1093 }
1026 if (etag != null) { 1094 if (etag != null) {
1027 _json["etag"] = etag; 1095 _json["etag"] = etag;
1028 } 1096 }
1029 if (kind != null) { 1097 if (kind != null) {
1030 _json["kind"] = kind; 1098 _json["kind"] = kind;
1031 } 1099 }
1032 if (parameters != null) { 1100 if (parameters != null) {
1033 _json["parameters"] = parameters.map((value) => (value).toJson()).toList() ; 1101 _json["parameters"] =
1102 parameters.map((value) => (value).toJson()).toList();
1034 } 1103 }
1035 return _json; 1104 return _json;
1036 } 1105 }
1037 } 1106 }
1038 1107
1039 class UsageReportsWarningsData { 1108 class UsageReportsWarningsData {
1040 /** 1109 /// Key associated with a key-value pair to give detailed information on the
1041 * Key associated with a key-value pair to give detailed information on the 1110 /// warning.
1042 * warning.
1043 */
1044 core.String key; 1111 core.String key;
1045 /** 1112
1046 * Value associated with a key-value pair to give detailed information on the 1113 /// Value associated with a key-value pair to give detailed information on
1047 * warning. 1114 /// the warning.
1048 */
1049 core.String value; 1115 core.String value;
1050 1116
1051 UsageReportsWarningsData(); 1117 UsageReportsWarningsData();
1052 1118
1053 UsageReportsWarningsData.fromJson(core.Map _json) { 1119 UsageReportsWarningsData.fromJson(core.Map _json) {
1054 if (_json.containsKey("key")) { 1120 if (_json.containsKey("key")) {
1055 key = _json["key"]; 1121 key = _json["key"];
1056 } 1122 }
1057 if (_json.containsKey("value")) { 1123 if (_json.containsKey("value")) {
1058 value = _json["value"]; 1124 value = _json["value"];
1059 } 1125 }
1060 } 1126 }
1061 1127
1062 core.Map<core.String, core.Object> toJson() { 1128 core.Map<core.String, core.Object> toJson() {
1063 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1129 final core.Map<core.String, core.Object> _json =
1130 new core.Map<core.String, core.Object>();
1064 if (key != null) { 1131 if (key != null) {
1065 _json["key"] = key; 1132 _json["key"] = key;
1066 } 1133 }
1067 if (value != null) { 1134 if (value != null) {
1068 _json["value"] = value; 1135 _json["value"] = value;
1069 } 1136 }
1070 return _json; 1137 return _json;
1071 } 1138 }
1072 } 1139 }
1073 1140
1074 class UsageReportsWarnings { 1141 class UsageReportsWarnings {
1075 /** Machine readable code / warning type. */ 1142 /// Machine readable code / warning type.
1076 core.String code; 1143 core.String code;
1077 /** Key-Value pairs to give detailed information on the warning. */ 1144
1145 /// Key-Value pairs to give detailed information on the warning.
1078 core.List<UsageReportsWarningsData> data; 1146 core.List<UsageReportsWarningsData> data;
1079 /** Human readable message for the warning. */ 1147
1148 /// Human readable message for the warning.
1080 core.String message; 1149 core.String message;
1081 1150
1082 UsageReportsWarnings(); 1151 UsageReportsWarnings();
1083 1152
1084 UsageReportsWarnings.fromJson(core.Map _json) { 1153 UsageReportsWarnings.fromJson(core.Map _json) {
1085 if (_json.containsKey("code")) { 1154 if (_json.containsKey("code")) {
1086 code = _json["code"]; 1155 code = _json["code"];
1087 } 1156 }
1088 if (_json.containsKey("data")) { 1157 if (_json.containsKey("data")) {
1089 data = _json["data"].map((value) => new UsageReportsWarningsData.fromJson( value)).toList(); 1158 data = _json["data"]
1159 .map((value) => new UsageReportsWarningsData.fromJson(value))
1160 .toList();
1090 } 1161 }
1091 if (_json.containsKey("message")) { 1162 if (_json.containsKey("message")) {
1092 message = _json["message"]; 1163 message = _json["message"];
1093 } 1164 }
1094 } 1165 }
1095 1166
1096 core.Map<core.String, core.Object> toJson() { 1167 core.Map<core.String, core.Object> toJson() {
1097 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1168 final core.Map<core.String, core.Object> _json =
1169 new core.Map<core.String, core.Object>();
1098 if (code != null) { 1170 if (code != null) {
1099 _json["code"] = code; 1171 _json["code"] = code;
1100 } 1172 }
1101 if (data != null) { 1173 if (data != null) {
1102 _json["data"] = data.map((value) => (value).toJson()).toList(); 1174 _json["data"] = data.map((value) => (value).toJson()).toList();
1103 } 1175 }
1104 if (message != null) { 1176 if (message != null) {
1105 _json["message"] = message; 1177 _json["message"] = message;
1106 } 1178 }
1107 return _json; 1179 return _json;
1108 } 1180 }
1109 } 1181 }
1110 1182
1111 /** JSON template for a collection of usage reports. */ 1183 /// JSON template for a collection of usage reports.
1112 class UsageReports { 1184 class UsageReports {
1113 /** ETag of the resource. */ 1185 /// ETag of the resource.
1114 core.String etag; 1186 core.String etag;
1115 /** The kind of object. */ 1187
1188 /// The kind of object.
1116 core.String kind; 1189 core.String kind;
1117 /** Token for retrieving the next page */ 1190
1191 /// Token for retrieving the next page
1118 core.String nextPageToken; 1192 core.String nextPageToken;
1119 /** Various application parameter records. */ 1193
1194 /// Various application parameter records.
1120 core.List<UsageReport> usageReports; 1195 core.List<UsageReport> usageReports;
1121 /** Warnings if any. */ 1196
1197 /// Warnings if any.
1122 core.List<UsageReportsWarnings> warnings; 1198 core.List<UsageReportsWarnings> warnings;
1123 1199
1124 UsageReports(); 1200 UsageReports();
1125 1201
1126 UsageReports.fromJson(core.Map _json) { 1202 UsageReports.fromJson(core.Map _json) {
1127 if (_json.containsKey("etag")) { 1203 if (_json.containsKey("etag")) {
1128 etag = _json["etag"]; 1204 etag = _json["etag"];
1129 } 1205 }
1130 if (_json.containsKey("kind")) { 1206 if (_json.containsKey("kind")) {
1131 kind = _json["kind"]; 1207 kind = _json["kind"];
1132 } 1208 }
1133 if (_json.containsKey("nextPageToken")) { 1209 if (_json.containsKey("nextPageToken")) {
1134 nextPageToken = _json["nextPageToken"]; 1210 nextPageToken = _json["nextPageToken"];
1135 } 1211 }
1136 if (_json.containsKey("usageReports")) { 1212 if (_json.containsKey("usageReports")) {
1137 usageReports = _json["usageReports"].map((value) => new UsageReport.fromJs on(value)).toList(); 1213 usageReports = _json["usageReports"]
1214 .map((value) => new UsageReport.fromJson(value))
1215 .toList();
1138 } 1216 }
1139 if (_json.containsKey("warnings")) { 1217 if (_json.containsKey("warnings")) {
1140 warnings = _json["warnings"].map((value) => new UsageReportsWarnings.fromJ son(value)).toList(); 1218 warnings = _json["warnings"]
1219 .map((value) => new UsageReportsWarnings.fromJson(value))
1220 .toList();
1141 } 1221 }
1142 } 1222 }
1143 1223
1144 core.Map<core.String, core.Object> toJson() { 1224 core.Map<core.String, core.Object> toJson() {
1145 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1225 final core.Map<core.String, core.Object> _json =
1226 new core.Map<core.String, core.Object>();
1146 if (etag != null) { 1227 if (etag != null) {
1147 _json["etag"] = etag; 1228 _json["etag"] = etag;
1148 } 1229 }
1149 if (kind != null) { 1230 if (kind != null) {
1150 _json["kind"] = kind; 1231 _json["kind"] = kind;
1151 } 1232 }
1152 if (nextPageToken != null) { 1233 if (nextPageToken != null) {
1153 _json["nextPageToken"] = nextPageToken; 1234 _json["nextPageToken"] = nextPageToken;
1154 } 1235 }
1155 if (usageReports != null) { 1236 if (usageReports != null) {
1156 _json["usageReports"] = usageReports.map((value) => (value).toJson()).toLi st(); 1237 _json["usageReports"] =
1238 usageReports.map((value) => (value).toJson()).toList();
1157 } 1239 }
1158 if (warnings != null) { 1240 if (warnings != null) {
1159 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); 1241 _json["warnings"] = warnings.map((value) => (value).toJson()).toList();
1160 } 1242 }
1161 return _json; 1243 return _json;
1162 } 1244 }
1163 } 1245 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/admin/directory_v1.dart ('k') | generated/googleapis/lib/adsense/v1_4.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698