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

Side by Side Diff: generated/googleapis/lib/dfareporting/v1_3.dart

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 8 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).
2
1 library googleapis.dfareporting.v1_3; 3 library googleapis.dfareporting.v1_3;
2 4
3 import "dart:core" as core; 5 import 'dart:core' as core;
4 import "dart:collection" as collection; 6 import 'dart:collection' as collection;
5 import "dart:async" as async; 7 import 'dart:async' as async;
6 import "dart:convert" as convert; 8 import 'dart:convert' as convert;
7 9
8 import "package:crypto/crypto.dart" as crypto; 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
11 import 'package:crypto/crypto.dart' as crypto;
9 import 'package:http/http.dart' as http; 12 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal;
11 import '../common/common.dart' as common;
12 13
13 export '../common/common.dart' show ApiRequestError; 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 export '../common/common.dart' show DetailedApiRequestError; 15 ApiRequestError, DetailedApiRequestError, Media, UploadOptions,
16 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions,
17 ByteRange;
18
19 const core.String USER_AGENT = 'dart-api-client dfareporting/v1.3';
15 20
16 /** Lets you create, run and download reports. */ 21 /** Lets you create, run and download reports. */
17 class DfareportingApi { 22 class DfareportingApi {
18 /** View and manage DoubleClick for Advertisers reports */ 23 /** View and manage DoubleClick for Advertisers reports */
19 static const DfareportingScope = "https://www.googleapis.com/auth/dfareporting "; 24 static const DfareportingScope = "https://www.googleapis.com/auth/dfareporting ";
20 25
21 26
22 final common_internal.ApiRequester _requester; 27 final commons.ApiRequester _requester;
23 28
24 DimensionValuesResourceApi get dimensionValues => new DimensionValuesResourceA pi(_requester); 29 DimensionValuesResourceApi get dimensionValues => new DimensionValuesResourceA pi(_requester);
25 FilesResourceApi get files => new FilesResourceApi(_requester); 30 FilesResourceApi get files => new FilesResourceApi(_requester);
26 ReportsResourceApi get reports => new ReportsResourceApi(_requester); 31 ReportsResourceApi get reports => new ReportsResourceApi(_requester);
27 UserProfilesResourceApi get userProfiles => new UserProfilesResourceApi(_reque ster); 32 UserProfilesResourceApi get userProfiles => new UserProfilesResourceApi(_reque ster);
28 33
29 DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googlea pis.com/", core.String servicePath: "dfareporting/v1.3/"}) : 34 DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googlea pis.com/", core.String servicePath: "dfareporting/v1.3/"}) :
30 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath ); 35 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
31 } 36 }
32 37
33 38
34 /** Not documented yet. */
35 class DimensionValuesResourceApi { 39 class DimensionValuesResourceApi {
36 final common_internal.ApiRequester _requester; 40 final commons.ApiRequester _requester;
37 41
38 DimensionValuesResourceApi(common_internal.ApiRequester client) : 42 DimensionValuesResourceApi(commons.ApiRequester client) :
39 _requester = client; 43 _requester = client;
40 44
41 /** 45 /**
42 * Retrieves list of report dimension values for a list of filters. 46 * Retrieves list of report dimension values for a list of filters.
43 * 47 *
44 * [request] - The metadata request object. 48 * [request] - The metadata request object.
45 * 49 *
46 * Request parameters: 50 * Request parameters:
47 * 51 *
48 * [profileId] - The DFA user profile ID. 52 * [profileId] - The DFA user profile ID.
49 * 53 *
50 * [maxResults] - Maximum number of results to return. 54 * [maxResults] - Maximum number of results to return.
51 * Value must be between "0" and "100". 55 * Value must be between "0" and "100".
52 * 56 *
53 * [pageToken] - The value of the nextToken from the previous result page. 57 * [pageToken] - The value of the nextToken from the previous result page.
54 * 58 *
55 * Completes with a [DimensionValueList]. 59 * Completes with a [DimensionValueList].
56 * 60 *
57 * Completes with a [common.ApiRequestError] if the API endpoint returned an 61 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
58 * error. 62 * error.
59 * 63 *
60 * If the used [http.Client] completes with an error when making a REST call, 64 * If the used [http.Client] completes with an error when making a REST call,
61 * this method will complete with the same error. 65 * this method will complete with the same error.
62 */ 66 */
63 async.Future<DimensionValueList> query(DimensionValueRequest request, core.Str ing profileId, {core.int maxResults, core.String pageToken}) { 67 async.Future<DimensionValueList> query(DimensionValueRequest request, core.Str ing profileId, {core.int maxResults, core.String pageToken}) {
64 var _url = null; 68 var _url = null;
65 var _queryParams = new core.Map(); 69 var _queryParams = new core.Map();
66 var _uploadMedia = null; 70 var _uploadMedia = null;
67 var _uploadOptions = null; 71 var _uploadOptions = null;
68 var _downloadOptions = common.DownloadOptions.Metadata; 72 var _downloadOptions = commons.DownloadOptions.Metadata;
69 var _body = null; 73 var _body = null;
70 74
71 if (request != null) { 75 if (request != null) {
72 _body = convert.JSON.encode((request).toJson()); 76 _body = convert.JSON.encode((request).toJson());
73 } 77 }
74 if (profileId == null) { 78 if (profileId == null) {
75 throw new core.ArgumentError("Parameter profileId is required."); 79 throw new core.ArgumentError("Parameter profileId is required.");
76 } 80 }
77 if (maxResults != null) { 81 if (maxResults != null) {
78 _queryParams["maxResults"] = ["${maxResults}"]; 82 _queryParams["maxResults"] = ["${maxResults}"];
79 } 83 }
80 if (pageToken != null) { 84 if (pageToken != null) {
81 _queryParams["pageToken"] = [pageToken]; 85 _queryParams["pageToken"] = [pageToken];
82 } 86 }
83 87
84 88
85 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId') + '/dimensionvalues/query'; 89 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dim ensionvalues/query';
86 90
87 var _response = _requester.request(_url, 91 var _response = _requester.request(_url,
88 "POST", 92 "POST",
89 body: _body, 93 body: _body,
90 queryParams: _queryParams, 94 queryParams: _queryParams,
91 uploadOptions: _uploadOptions, 95 uploadOptions: _uploadOptions,
92 uploadMedia: _uploadMedia, 96 uploadMedia: _uploadMedia,
93 downloadOptions: _downloadOptions); 97 downloadOptions: _downloadOptions);
94 return _response.then((data) => new DimensionValueList.fromJson(data)); 98 return _response.then((data) => new DimensionValueList.fromJson(data));
95 } 99 }
96 100
97 } 101 }
98 102
99 103
100 /** Not documented yet. */
101 class FilesResourceApi { 104 class FilesResourceApi {
102 final common_internal.ApiRequester _requester; 105 final commons.ApiRequester _requester;
103 106
104 FilesResourceApi(common_internal.ApiRequester client) : 107 FilesResourceApi(commons.ApiRequester client) :
105 _requester = client; 108 _requester = client;
106 109
107 /** 110 /**
108 * Retrieves a report file by its report ID and file ID. 111 * Retrieves a report file by its report ID and file ID.
109 * 112 *
110 * Request parameters: 113 * Request parameters:
111 * 114 *
112 * [reportId] - The ID of the report. 115 * [reportId] - The ID of the report.
113 * 116 *
114 * [fileId] - The ID of the report file. 117 * [fileId] - The ID of the report file.
115 * 118 *
116 * [downloadOptions] - Options for downloading. A download can be either a 119 * [downloadOptions] - Options for downloading. A download can be either a
117 * Metadata (default) or Media download. Partial Media downloads are possible 120 * Metadata (default) or Media download. Partial Media downloads are possible
118 * as well. 121 * as well.
119 * 122 *
120 * Completes with a 123 * Completes with a
121 * 124 *
122 * - [File] for Metadata downloads (see [downloadOptions]). 125 * - [File] for Metadata downloads (see [downloadOptions]).
123 * 126 *
124 * - [common.Media] for Media downloads (see [downloadOptions]). 127 * - [commons.Media] for Media downloads (see [downloadOptions]).
125 * 128 *
126 * Completes with a [common.ApiRequestError] if the API endpoint returned an 129 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
127 * error. 130 * error.
128 * 131 *
129 * If the used [http.Client] completes with an error when making a REST call, 132 * If the used [http.Client] completes with an error when making a REST call,
130 * this method will complete with the same error. 133 * this method will complete with the same error.
131 */ 134 */
132 async.Future get(core.String reportId, core.String fileId, {common.DownloadOpt ions downloadOptions: common.DownloadOptions.Metadata}) { 135 async.Future get(core.String reportId, core.String fileId, {commons.DownloadOp tions downloadOptions: commons.DownloadOptions.Metadata}) {
133 var _url = null; 136 var _url = null;
134 var _queryParams = new core.Map(); 137 var _queryParams = new core.Map();
135 var _uploadMedia = null; 138 var _uploadMedia = null;
136 var _uploadOptions = null; 139 var _uploadOptions = null;
137 var _downloadOptions = common.DownloadOptions.Metadata; 140 var _downloadOptions = commons.DownloadOptions.Metadata;
138 var _body = null; 141 var _body = null;
139 142
140 if (reportId == null) { 143 if (reportId == null) {
141 throw new core.ArgumentError("Parameter reportId is required."); 144 throw new core.ArgumentError("Parameter reportId is required.");
142 } 145 }
143 if (fileId == null) { 146 if (fileId == null) {
144 throw new core.ArgumentError("Parameter fileId is required."); 147 throw new core.ArgumentError("Parameter fileId is required.");
145 } 148 }
146 149
147 _downloadOptions = downloadOptions; 150 _downloadOptions = downloadOptions;
148 151
149 _url = 'reports/' + common_internal.Escaper.ecapeVariable('$reportId') + '/f iles/' + common_internal.Escaper.ecapeVariable('$fileId'); 152 _url = 'reports/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' + commons.Escaper.ecapeVariable('$fileId');
150 153
151 var _response = _requester.request(_url, 154 var _response = _requester.request(_url,
152 "GET", 155 "GET",
153 body: _body, 156 body: _body,
154 queryParams: _queryParams, 157 queryParams: _queryParams,
155 uploadOptions: _uploadOptions, 158 uploadOptions: _uploadOptions,
156 uploadMedia: _uploadMedia, 159 uploadMedia: _uploadMedia,
157 downloadOptions: _downloadOptions); 160 downloadOptions: _downloadOptions);
158 if (_downloadOptions == null || 161 if (_downloadOptions == null ||
159 _downloadOptions == common.DownloadOptions.Metadata) { 162 _downloadOptions == commons.DownloadOptions.Metadata) {
160 return _response.then((data) => new File.fromJson(data)); 163 return _response.then((data) => new File.fromJson(data));
161 } else { 164 } else {
162 return _response; 165 return _response;
163 } 166 }
164 } 167 }
165 168
166 /** 169 /**
167 * Lists files for a user profile. 170 * Lists files for a user profile.
168 * 171 *
169 * Request parameters: 172 * Request parameters:
(...skipping 17 matching lines...) Expand all
187 * - "ID" : Sort by file ID. 190 * - "ID" : Sort by file ID.
188 * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. 191 * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field.
189 * 192 *
190 * [sortOrder] - Order of sorted results, default is 'DESCENDING'. 193 * [sortOrder] - Order of sorted results, default is 'DESCENDING'.
191 * Possible string values are: 194 * Possible string values are:
192 * - "ASCENDING" : Ascending order. 195 * - "ASCENDING" : Ascending order.
193 * - "DESCENDING" : Descending order. 196 * - "DESCENDING" : Descending order.
194 * 197 *
195 * Completes with a [FileList]. 198 * Completes with a [FileList].
196 * 199 *
197 * Completes with a [common.ApiRequestError] if the API endpoint returned an 200 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
198 * error. 201 * error.
199 * 202 *
200 * If the used [http.Client] completes with an error when making a REST call, 203 * If the used [http.Client] completes with an error when making a REST call,
201 * this method will complete with the same error. 204 * this method will complete with the same error.
202 */ 205 */
203 async.Future<FileList> list(core.String profileId, {core.int maxResults, core. String pageToken, core.String scope, core.String sortField, core.String sortOrde r}) { 206 async.Future<FileList> list(core.String profileId, {core.int maxResults, core. String pageToken, core.String scope, core.String sortField, core.String sortOrde r}) {
204 var _url = null; 207 var _url = null;
205 var _queryParams = new core.Map(); 208 var _queryParams = new core.Map();
206 var _uploadMedia = null; 209 var _uploadMedia = null;
207 var _uploadOptions = null; 210 var _uploadOptions = null;
208 var _downloadOptions = common.DownloadOptions.Metadata; 211 var _downloadOptions = commons.DownloadOptions.Metadata;
209 var _body = null; 212 var _body = null;
210 213
211 if (profileId == null) { 214 if (profileId == null) {
212 throw new core.ArgumentError("Parameter profileId is required."); 215 throw new core.ArgumentError("Parameter profileId is required.");
213 } 216 }
214 if (maxResults != null) { 217 if (maxResults != null) {
215 _queryParams["maxResults"] = ["${maxResults}"]; 218 _queryParams["maxResults"] = ["${maxResults}"];
216 } 219 }
217 if (pageToken != null) { 220 if (pageToken != null) {
218 _queryParams["pageToken"] = [pageToken]; 221 _queryParams["pageToken"] = [pageToken];
219 } 222 }
220 if (scope != null) { 223 if (scope != null) {
221 _queryParams["scope"] = [scope]; 224 _queryParams["scope"] = [scope];
222 } 225 }
223 if (sortField != null) { 226 if (sortField != null) {
224 _queryParams["sortField"] = [sortField]; 227 _queryParams["sortField"] = [sortField];
225 } 228 }
226 if (sortOrder != null) { 229 if (sortOrder != null) {
227 _queryParams["sortOrder"] = [sortOrder]; 230 _queryParams["sortOrder"] = [sortOrder];
228 } 231 }
229 232
230 233
231 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId') + '/files'; 234 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/fil es';
232 235
233 var _response = _requester.request(_url, 236 var _response = _requester.request(_url,
234 "GET", 237 "GET",
235 body: _body, 238 body: _body,
236 queryParams: _queryParams, 239 queryParams: _queryParams,
237 uploadOptions: _uploadOptions, 240 uploadOptions: _uploadOptions,
238 uploadMedia: _uploadMedia, 241 uploadMedia: _uploadMedia,
239 downloadOptions: _downloadOptions); 242 downloadOptions: _downloadOptions);
240 return _response.then((data) => new FileList.fromJson(data)); 243 return _response.then((data) => new FileList.fromJson(data));
241 } 244 }
242 245
243 } 246 }
244 247
245 248
246 /** Not documented yet. */
247 class ReportsResourceApi { 249 class ReportsResourceApi {
248 final common_internal.ApiRequester _requester; 250 final commons.ApiRequester _requester;
249 251
250 ReportsCompatibleFieldsResourceApi get compatibleFields => new ReportsCompatib leFieldsResourceApi(_requester); 252 ReportsCompatibleFieldsResourceApi get compatibleFields => new ReportsCompatib leFieldsResourceApi(_requester);
251 ReportsFilesResourceApi get files => new ReportsFilesResourceApi(_requester); 253 ReportsFilesResourceApi get files => new ReportsFilesResourceApi(_requester);
252 254
253 ReportsResourceApi(common_internal.ApiRequester client) : 255 ReportsResourceApi(commons.ApiRequester client) :
254 _requester = client; 256 _requester = client;
255 257
256 /** 258 /**
257 * Deletes a report by its ID. 259 * Deletes a report by its ID.
258 * 260 *
259 * Request parameters: 261 * Request parameters:
260 * 262 *
261 * [profileId] - The DFA user profile ID. 263 * [profileId] - The DFA user profile ID.
262 * 264 *
263 * [reportId] - The ID of the report. 265 * [reportId] - The ID of the report.
264 * 266 *
265 * Completes with a [common.ApiRequestError] if the API endpoint returned an 267 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
266 * error. 268 * error.
267 * 269 *
268 * If the used [http.Client] completes with an error when making a REST call, 270 * If the used [http.Client] completes with an error when making a REST call,
269 * this method will complete with the same error. 271 * this method will complete with the same error.
270 */ 272 */
271 async.Future delete(core.String profileId, core.String reportId) { 273 async.Future delete(core.String profileId, core.String reportId) {
272 var _url = null; 274 var _url = null;
273 var _queryParams = new core.Map(); 275 var _queryParams = new core.Map();
274 var _uploadMedia = null; 276 var _uploadMedia = null;
275 var _uploadOptions = null; 277 var _uploadOptions = null;
276 var _downloadOptions = common.DownloadOptions.Metadata; 278 var _downloadOptions = commons.DownloadOptions.Metadata;
277 var _body = null; 279 var _body = null;
278 280
279 if (profileId == null) { 281 if (profileId == null) {
280 throw new core.ArgumentError("Parameter profileId is required."); 282 throw new core.ArgumentError("Parameter profileId is required.");
281 } 283 }
282 if (reportId == null) { 284 if (reportId == null) {
283 throw new core.ArgumentError("Parameter reportId is required."); 285 throw new core.ArgumentError("Parameter reportId is required.");
284 } 286 }
285 287
286 _downloadOptions = null; 288 _downloadOptions = null;
287 289
288 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId') + '/reports/' + common_internal.Escaper.ecapeVariable('$reportId'); 290 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId');
289 291
290 var _response = _requester.request(_url, 292 var _response = _requester.request(_url,
291 "DELETE", 293 "DELETE",
292 body: _body, 294 body: _body,
293 queryParams: _queryParams, 295 queryParams: _queryParams,
294 uploadOptions: _uploadOptions, 296 uploadOptions: _uploadOptions,
295 uploadMedia: _uploadMedia, 297 uploadMedia: _uploadMedia,
296 downloadOptions: _downloadOptions); 298 downloadOptions: _downloadOptions);
297 return _response.then((data) => null); 299 return _response.then((data) => null);
298 } 300 }
299 301
300 /** 302 /**
301 * Retrieves a report by its ID. 303 * Retrieves a report by its ID.
302 * 304 *
303 * Request parameters: 305 * Request parameters:
304 * 306 *
305 * [profileId] - The DFA user profile ID. 307 * [profileId] - The DFA user profile ID.
306 * 308 *
307 * [reportId] - The ID of the report. 309 * [reportId] - The ID of the report.
308 * 310 *
309 * Completes with a [Report]. 311 * Completes with a [Report].
310 * 312 *
311 * Completes with a [common.ApiRequestError] if the API endpoint returned an 313 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
312 * error. 314 * error.
313 * 315 *
314 * If the used [http.Client] completes with an error when making a REST call, 316 * If the used [http.Client] completes with an error when making a REST call,
315 * this method will complete with the same error. 317 * this method will complete with the same error.
316 */ 318 */
317 async.Future<Report> get(core.String profileId, core.String reportId) { 319 async.Future<Report> get(core.String profileId, core.String reportId) {
318 var _url = null; 320 var _url = null;
319 var _queryParams = new core.Map(); 321 var _queryParams = new core.Map();
320 var _uploadMedia = null; 322 var _uploadMedia = null;
321 var _uploadOptions = null; 323 var _uploadOptions = null;
322 var _downloadOptions = common.DownloadOptions.Metadata; 324 var _downloadOptions = commons.DownloadOptions.Metadata;
323 var _body = null; 325 var _body = null;
324 326
325 if (profileId == null) { 327 if (profileId == null) {
326 throw new core.ArgumentError("Parameter profileId is required."); 328 throw new core.ArgumentError("Parameter profileId is required.");
327 } 329 }
328 if (reportId == null) { 330 if (reportId == null) {
329 throw new core.ArgumentError("Parameter reportId is required."); 331 throw new core.ArgumentError("Parameter reportId is required.");
330 } 332 }
331 333
332 334
333 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId') + '/reports/' + common_internal.Escaper.ecapeVariable('$reportId'); 335 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId');
334 336
335 var _response = _requester.request(_url, 337 var _response = _requester.request(_url,
336 "GET", 338 "GET",
337 body: _body, 339 body: _body,
338 queryParams: _queryParams, 340 queryParams: _queryParams,
339 uploadOptions: _uploadOptions, 341 uploadOptions: _uploadOptions,
340 uploadMedia: _uploadMedia, 342 uploadMedia: _uploadMedia,
341 downloadOptions: _downloadOptions); 343 downloadOptions: _downloadOptions);
342 return _response.then((data) => new Report.fromJson(data)); 344 return _response.then((data) => new Report.fromJson(data));
343 } 345 }
344 346
345 /** 347 /**
346 * Creates a report. 348 * Creates a report.
347 * 349 *
348 * [request] - The metadata request object. 350 * [request] - The metadata request object.
349 * 351 *
350 * Request parameters: 352 * Request parameters:
351 * 353 *
352 * [profileId] - The DFA user profile ID. 354 * [profileId] - The DFA user profile ID.
353 * 355 *
354 * Completes with a [Report]. 356 * Completes with a [Report].
355 * 357 *
356 * Completes with a [common.ApiRequestError] if the API endpoint returned an 358 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
357 * error. 359 * error.
358 * 360 *
359 * If the used [http.Client] completes with an error when making a REST call, 361 * If the used [http.Client] completes with an error when making a REST call,
360 * this method will complete with the same error. 362 * this method will complete with the same error.
361 */ 363 */
362 async.Future<Report> insert(Report request, core.String profileId) { 364 async.Future<Report> insert(Report request, core.String profileId) {
363 var _url = null; 365 var _url = null;
364 var _queryParams = new core.Map(); 366 var _queryParams = new core.Map();
365 var _uploadMedia = null; 367 var _uploadMedia = null;
366 var _uploadOptions = null; 368 var _uploadOptions = null;
367 var _downloadOptions = common.DownloadOptions.Metadata; 369 var _downloadOptions = commons.DownloadOptions.Metadata;
368 var _body = null; 370 var _body = null;
369 371
370 if (request != null) { 372 if (request != null) {
371 _body = convert.JSON.encode((request).toJson()); 373 _body = convert.JSON.encode((request).toJson());
372 } 374 }
373 if (profileId == null) { 375 if (profileId == null) {
374 throw new core.ArgumentError("Parameter profileId is required."); 376 throw new core.ArgumentError("Parameter profileId is required.");
375 } 377 }
376 378
377 379
378 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId') + '/reports'; 380 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts';
379 381
380 var _response = _requester.request(_url, 382 var _response = _requester.request(_url,
381 "POST", 383 "POST",
382 body: _body, 384 body: _body,
383 queryParams: _queryParams, 385 queryParams: _queryParams,
384 uploadOptions: _uploadOptions, 386 uploadOptions: _uploadOptions,
385 uploadMedia: _uploadMedia, 387 uploadMedia: _uploadMedia,
386 downloadOptions: _downloadOptions); 388 downloadOptions: _downloadOptions);
387 return _response.then((data) => new Report.fromJson(data)); 389 return _response.then((data) => new Report.fromJson(data));
388 } 390 }
(...skipping 22 matching lines...) Expand all
411 * - "LAST_MODIFIED_TIME" : Sort by 'lastModifiedTime' field. 413 * - "LAST_MODIFIED_TIME" : Sort by 'lastModifiedTime' field.
412 * - "NAME" : Sort by name of reports. 414 * - "NAME" : Sort by name of reports.
413 * 415 *
414 * [sortOrder] - Order of sorted results, default is 'DESCENDING'. 416 * [sortOrder] - Order of sorted results, default is 'DESCENDING'.
415 * Possible string values are: 417 * Possible string values are:
416 * - "ASCENDING" : Ascending order. 418 * - "ASCENDING" : Ascending order.
417 * - "DESCENDING" : Descending order. 419 * - "DESCENDING" : Descending order.
418 * 420 *
419 * Completes with a [ReportList]. 421 * Completes with a [ReportList].
420 * 422 *
421 * Completes with a [common.ApiRequestError] if the API endpoint returned an 423 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
422 * error. 424 * error.
423 * 425 *
424 * If the used [http.Client] completes with an error when making a REST call, 426 * If the used [http.Client] completes with an error when making a REST call,
425 * this method will complete with the same error. 427 * this method will complete with the same error.
426 */ 428 */
427 async.Future<ReportList> list(core.String profileId, {core.int maxResults, cor e.String pageToken, core.String scope, core.String sortField, core.String sortOr der}) { 429 async.Future<ReportList> list(core.String profileId, {core.int maxResults, cor e.String pageToken, core.String scope, core.String sortField, core.String sortOr der}) {
428 var _url = null; 430 var _url = null;
429 var _queryParams = new core.Map(); 431 var _queryParams = new core.Map();
430 var _uploadMedia = null; 432 var _uploadMedia = null;
431 var _uploadOptions = null; 433 var _uploadOptions = null;
432 var _downloadOptions = common.DownloadOptions.Metadata; 434 var _downloadOptions = commons.DownloadOptions.Metadata;
433 var _body = null; 435 var _body = null;
434 436
435 if (profileId == null) { 437 if (profileId == null) {
436 throw new core.ArgumentError("Parameter profileId is required."); 438 throw new core.ArgumentError("Parameter profileId is required.");
437 } 439 }
438 if (maxResults != null) { 440 if (maxResults != null) {
439 _queryParams["maxResults"] = ["${maxResults}"]; 441 _queryParams["maxResults"] = ["${maxResults}"];
440 } 442 }
441 if (pageToken != null) { 443 if (pageToken != null) {
442 _queryParams["pageToken"] = [pageToken]; 444 _queryParams["pageToken"] = [pageToken];
443 } 445 }
444 if (scope != null) { 446 if (scope != null) {
445 _queryParams["scope"] = [scope]; 447 _queryParams["scope"] = [scope];
446 } 448 }
447 if (sortField != null) { 449 if (sortField != null) {
448 _queryParams["sortField"] = [sortField]; 450 _queryParams["sortField"] = [sortField];
449 } 451 }
450 if (sortOrder != null) { 452 if (sortOrder != null) {
451 _queryParams["sortOrder"] = [sortOrder]; 453 _queryParams["sortOrder"] = [sortOrder];
452 } 454 }
453 455
454 456
455 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId') + '/reports'; 457 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts';
456 458
457 var _response = _requester.request(_url, 459 var _response = _requester.request(_url,
458 "GET", 460 "GET",
459 body: _body, 461 body: _body,
460 queryParams: _queryParams, 462 queryParams: _queryParams,
461 uploadOptions: _uploadOptions, 463 uploadOptions: _uploadOptions,
462 uploadMedia: _uploadMedia, 464 uploadMedia: _uploadMedia,
463 downloadOptions: _downloadOptions); 465 downloadOptions: _downloadOptions);
464 return _response.then((data) => new ReportList.fromJson(data)); 466 return _response.then((data) => new ReportList.fromJson(data));
465 } 467 }
466 468
467 /** 469 /**
468 * Updates a report. This method supports patch semantics. 470 * Updates a report. This method supports patch semantics.
469 * 471 *
470 * [request] - The metadata request object. 472 * [request] - The metadata request object.
471 * 473 *
472 * Request parameters: 474 * Request parameters:
473 * 475 *
474 * [profileId] - The DFA user profile ID. 476 * [profileId] - The DFA user profile ID.
475 * 477 *
476 * [reportId] - The ID of the report. 478 * [reportId] - The ID of the report.
477 * 479 *
478 * Completes with a [Report]. 480 * Completes with a [Report].
479 * 481 *
480 * Completes with a [common.ApiRequestError] if the API endpoint returned an 482 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
481 * error. 483 * error.
482 * 484 *
483 * If the used [http.Client] completes with an error when making a REST call, 485 * If the used [http.Client] completes with an error when making a REST call,
484 * this method will complete with the same error. 486 * this method will complete with the same error.
485 */ 487 */
486 async.Future<Report> patch(Report request, core.String profileId, core.String reportId) { 488 async.Future<Report> patch(Report request, core.String profileId, core.String reportId) {
487 var _url = null; 489 var _url = null;
488 var _queryParams = new core.Map(); 490 var _queryParams = new core.Map();
489 var _uploadMedia = null; 491 var _uploadMedia = null;
490 var _uploadOptions = null; 492 var _uploadOptions = null;
491 var _downloadOptions = common.DownloadOptions.Metadata; 493 var _downloadOptions = commons.DownloadOptions.Metadata;
492 var _body = null; 494 var _body = null;
493 495
494 if (request != null) { 496 if (request != null) {
495 _body = convert.JSON.encode((request).toJson()); 497 _body = convert.JSON.encode((request).toJson());
496 } 498 }
497 if (profileId == null) { 499 if (profileId == null) {
498 throw new core.ArgumentError("Parameter profileId is required."); 500 throw new core.ArgumentError("Parameter profileId is required.");
499 } 501 }
500 if (reportId == null) { 502 if (reportId == null) {
501 throw new core.ArgumentError("Parameter reportId is required."); 503 throw new core.ArgumentError("Parameter reportId is required.");
502 } 504 }
503 505
504 506
505 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId') + '/reports/' + common_internal.Escaper.ecapeVariable('$reportId'); 507 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId');
506 508
507 var _response = _requester.request(_url, 509 var _response = _requester.request(_url,
508 "PATCH", 510 "PATCH",
509 body: _body, 511 body: _body,
510 queryParams: _queryParams, 512 queryParams: _queryParams,
511 uploadOptions: _uploadOptions, 513 uploadOptions: _uploadOptions,
512 uploadMedia: _uploadMedia, 514 uploadMedia: _uploadMedia,
513 downloadOptions: _downloadOptions); 515 downloadOptions: _downloadOptions);
514 return _response.then((data) => new Report.fromJson(data)); 516 return _response.then((data) => new Report.fromJson(data));
515 } 517 }
516 518
517 /** 519 /**
518 * Runs a report. 520 * Runs a report.
519 * 521 *
520 * Request parameters: 522 * Request parameters:
521 * 523 *
522 * [profileId] - The DFA profile ID. 524 * [profileId] - The DFA profile ID.
523 * 525 *
524 * [reportId] - The ID of the report. 526 * [reportId] - The ID of the report.
525 * 527 *
526 * [synchronous] - If set and true, tries to run the report synchronously. 528 * [synchronous] - If set and true, tries to run the report synchronously.
527 * 529 *
528 * Completes with a [File]. 530 * Completes with a [File].
529 * 531 *
530 * Completes with a [common.ApiRequestError] if the API endpoint returned an 532 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
531 * error. 533 * error.
532 * 534 *
533 * If the used [http.Client] completes with an error when making a REST call, 535 * If the used [http.Client] completes with an error when making a REST call,
534 * this method will complete with the same error. 536 * this method will complete with the same error.
535 */ 537 */
536 async.Future<File> run(core.String profileId, core.String reportId, {core.bool synchronous}) { 538 async.Future<File> run(core.String profileId, core.String reportId, {core.bool synchronous}) {
537 var _url = null; 539 var _url = null;
538 var _queryParams = new core.Map(); 540 var _queryParams = new core.Map();
539 var _uploadMedia = null; 541 var _uploadMedia = null;
540 var _uploadOptions = null; 542 var _uploadOptions = null;
541 var _downloadOptions = common.DownloadOptions.Metadata; 543 var _downloadOptions = commons.DownloadOptions.Metadata;
542 var _body = null; 544 var _body = null;
543 545
544 if (profileId == null) { 546 if (profileId == null) {
545 throw new core.ArgumentError("Parameter profileId is required."); 547 throw new core.ArgumentError("Parameter profileId is required.");
546 } 548 }
547 if (reportId == null) { 549 if (reportId == null) {
548 throw new core.ArgumentError("Parameter reportId is required."); 550 throw new core.ArgumentError("Parameter reportId is required.");
549 } 551 }
550 if (synchronous != null) { 552 if (synchronous != null) {
551 _queryParams["synchronous"] = ["${synchronous}"]; 553 _queryParams["synchronous"] = ["${synchronous}"];
552 } 554 }
553 555
554 556
555 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId') + '/reports/' + common_internal.Escaper.ecapeVariable('$reportId') + '/run'; 557 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/run';
556 558
557 var _response = _requester.request(_url, 559 var _response = _requester.request(_url,
558 "POST", 560 "POST",
559 body: _body, 561 body: _body,
560 queryParams: _queryParams, 562 queryParams: _queryParams,
561 uploadOptions: _uploadOptions, 563 uploadOptions: _uploadOptions,
562 uploadMedia: _uploadMedia, 564 uploadMedia: _uploadMedia,
563 downloadOptions: _downloadOptions); 565 downloadOptions: _downloadOptions);
564 return _response.then((data) => new File.fromJson(data)); 566 return _response.then((data) => new File.fromJson(data));
565 } 567 }
566 568
567 /** 569 /**
568 * Updates a report. 570 * Updates a report.
569 * 571 *
570 * [request] - The metadata request object. 572 * [request] - The metadata request object.
571 * 573 *
572 * Request parameters: 574 * Request parameters:
573 * 575 *
574 * [profileId] - The DFA user profile ID. 576 * [profileId] - The DFA user profile ID.
575 * 577 *
576 * [reportId] - The ID of the report. 578 * [reportId] - The ID of the report.
577 * 579 *
578 * Completes with a [Report]. 580 * Completes with a [Report].
579 * 581 *
580 * Completes with a [common.ApiRequestError] if the API endpoint returned an 582 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
581 * error. 583 * error.
582 * 584 *
583 * If the used [http.Client] completes with an error when making a REST call, 585 * If the used [http.Client] completes with an error when making a REST call,
584 * this method will complete with the same error. 586 * this method will complete with the same error.
585 */ 587 */
586 async.Future<Report> update(Report request, core.String profileId, core.String reportId) { 588 async.Future<Report> update(Report request, core.String profileId, core.String reportId) {
587 var _url = null; 589 var _url = null;
588 var _queryParams = new core.Map(); 590 var _queryParams = new core.Map();
589 var _uploadMedia = null; 591 var _uploadMedia = null;
590 var _uploadOptions = null; 592 var _uploadOptions = null;
591 var _downloadOptions = common.DownloadOptions.Metadata; 593 var _downloadOptions = commons.DownloadOptions.Metadata;
592 var _body = null; 594 var _body = null;
593 595
594 if (request != null) { 596 if (request != null) {
595 _body = convert.JSON.encode((request).toJson()); 597 _body = convert.JSON.encode((request).toJson());
596 } 598 }
597 if (profileId == null) { 599 if (profileId == null) {
598 throw new core.ArgumentError("Parameter profileId is required."); 600 throw new core.ArgumentError("Parameter profileId is required.");
599 } 601 }
600 if (reportId == null) { 602 if (reportId == null) {
601 throw new core.ArgumentError("Parameter reportId is required."); 603 throw new core.ArgumentError("Parameter reportId is required.");
602 } 604 }
603 605
604 606
605 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId') + '/reports/' + common_internal.Escaper.ecapeVariable('$reportId'); 607 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId');
606 608
607 var _response = _requester.request(_url, 609 var _response = _requester.request(_url,
608 "PUT", 610 "PUT",
609 body: _body, 611 body: _body,
610 queryParams: _queryParams, 612 queryParams: _queryParams,
611 uploadOptions: _uploadOptions, 613 uploadOptions: _uploadOptions,
612 uploadMedia: _uploadMedia, 614 uploadMedia: _uploadMedia,
613 downloadOptions: _downloadOptions); 615 downloadOptions: _downloadOptions);
614 return _response.then((data) => new Report.fromJson(data)); 616 return _response.then((data) => new Report.fromJson(data));
615 } 617 }
616 618
617 } 619 }
618 620
619 621
620 /** Not documented yet. */
621 class ReportsCompatibleFieldsResourceApi { 622 class ReportsCompatibleFieldsResourceApi {
622 final common_internal.ApiRequester _requester; 623 final commons.ApiRequester _requester;
623 624
624 ReportsCompatibleFieldsResourceApi(common_internal.ApiRequester client) : 625 ReportsCompatibleFieldsResourceApi(commons.ApiRequester client) :
625 _requester = client; 626 _requester = client;
626 627
627 /** 628 /**
628 * Returns the fields that are compatible to be selected in the respective 629 * Returns the fields that are compatible to be selected in the respective
629 * sections of a report criteria, given the fields already selected in the 630 * sections of a report criteria, given the fields already selected in the
630 * input report and user permissions. 631 * input report and user permissions.
631 * 632 *
632 * [request] - The metadata request object. 633 * [request] - The metadata request object.
633 * 634 *
634 * Request parameters: 635 * Request parameters:
635 * 636 *
636 * [profileId] - The DFA user profile ID. 637 * [profileId] - The DFA user profile ID.
637 * 638 *
638 * Completes with a [CompatibleFields]. 639 * Completes with a [CompatibleFields].
639 * 640 *
640 * Completes with a [common.ApiRequestError] if the API endpoint returned an 641 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
641 * error. 642 * error.
642 * 643 *
643 * If the used [http.Client] completes with an error when making a REST call, 644 * If the used [http.Client] completes with an error when making a REST call,
644 * this method will complete with the same error. 645 * this method will complete with the same error.
645 */ 646 */
646 async.Future<CompatibleFields> query(Report request, core.String profileId) { 647 async.Future<CompatibleFields> query(Report request, core.String profileId) {
647 var _url = null; 648 var _url = null;
648 var _queryParams = new core.Map(); 649 var _queryParams = new core.Map();
649 var _uploadMedia = null; 650 var _uploadMedia = null;
650 var _uploadOptions = null; 651 var _uploadOptions = null;
651 var _downloadOptions = common.DownloadOptions.Metadata; 652 var _downloadOptions = commons.DownloadOptions.Metadata;
652 var _body = null; 653 var _body = null;
653 654
654 if (request != null) { 655 if (request != null) {
655 _body = convert.JSON.encode((request).toJson()); 656 _body = convert.JSON.encode((request).toJson());
656 } 657 }
657 if (profileId == null) { 658 if (profileId == null) {
658 throw new core.ArgumentError("Parameter profileId is required."); 659 throw new core.ArgumentError("Parameter profileId is required.");
659 } 660 }
660 661
661 662
662 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId') + '/reports/compatiblefields/query'; 663 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/compatiblefields/query';
663 664
664 var _response = _requester.request(_url, 665 var _response = _requester.request(_url,
665 "POST", 666 "POST",
666 body: _body, 667 body: _body,
667 queryParams: _queryParams, 668 queryParams: _queryParams,
668 uploadOptions: _uploadOptions, 669 uploadOptions: _uploadOptions,
669 uploadMedia: _uploadMedia, 670 uploadMedia: _uploadMedia,
670 downloadOptions: _downloadOptions); 671 downloadOptions: _downloadOptions);
671 return _response.then((data) => new CompatibleFields.fromJson(data)); 672 return _response.then((data) => new CompatibleFields.fromJson(data));
672 } 673 }
673 674
674 } 675 }
675 676
676 677
677 /** Not documented yet. */
678 class ReportsFilesResourceApi { 678 class ReportsFilesResourceApi {
679 final common_internal.ApiRequester _requester; 679 final commons.ApiRequester _requester;
680 680
681 ReportsFilesResourceApi(common_internal.ApiRequester client) : 681 ReportsFilesResourceApi(commons.ApiRequester client) :
682 _requester = client; 682 _requester = client;
683 683
684 /** 684 /**
685 * Retrieves a report file. 685 * Retrieves a report file.
686 * 686 *
687 * Request parameters: 687 * Request parameters:
688 * 688 *
689 * [profileId] - The DFA profile ID. 689 * [profileId] - The DFA profile ID.
690 * 690 *
691 * [reportId] - The ID of the report. 691 * [reportId] - The ID of the report.
692 * 692 *
693 * [fileId] - The ID of the report file. 693 * [fileId] - The ID of the report file.
694 * 694 *
695 * [downloadOptions] - Options for downloading. A download can be either a 695 * [downloadOptions] - Options for downloading. A download can be either a
696 * Metadata (default) or Media download. Partial Media downloads are possible 696 * Metadata (default) or Media download. Partial Media downloads are possible
697 * as well. 697 * as well.
698 * 698 *
699 * Completes with a 699 * Completes with a
700 * 700 *
701 * - [File] for Metadata downloads (see [downloadOptions]). 701 * - [File] for Metadata downloads (see [downloadOptions]).
702 * 702 *
703 * - [common.Media] for Media downloads (see [downloadOptions]). 703 * - [commons.Media] for Media downloads (see [downloadOptions]).
704 * 704 *
705 * Completes with a [common.ApiRequestError] if the API endpoint returned an 705 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
706 * error. 706 * error.
707 * 707 *
708 * If the used [http.Client] completes with an error when making a REST call, 708 * If the used [http.Client] completes with an error when making a REST call,
709 * this method will complete with the same error. 709 * this method will complete with the same error.
710 */ 710 */
711 async.Future get(core.String profileId, core.String reportId, core.String file Id, {common.DownloadOptions downloadOptions: common.DownloadOptions.Metadata}) { 711 async.Future get(core.String profileId, core.String reportId, core.String file Id, {commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) {
712 var _url = null; 712 var _url = null;
713 var _queryParams = new core.Map(); 713 var _queryParams = new core.Map();
714 var _uploadMedia = null; 714 var _uploadMedia = null;
715 var _uploadOptions = null; 715 var _uploadOptions = null;
716 var _downloadOptions = common.DownloadOptions.Metadata; 716 var _downloadOptions = commons.DownloadOptions.Metadata;
717 var _body = null; 717 var _body = null;
718 718
719 if (profileId == null) { 719 if (profileId == null) {
720 throw new core.ArgumentError("Parameter profileId is required."); 720 throw new core.ArgumentError("Parameter profileId is required.");
721 } 721 }
722 if (reportId == null) { 722 if (reportId == null) {
723 throw new core.ArgumentError("Parameter reportId is required."); 723 throw new core.ArgumentError("Parameter reportId is required.");
724 } 724 }
725 if (fileId == null) { 725 if (fileId == null) {
726 throw new core.ArgumentError("Parameter fileId is required."); 726 throw new core.ArgumentError("Parameter fileId is required.");
727 } 727 }
728 728
729 _downloadOptions = downloadOptions; 729 _downloadOptions = downloadOptions;
730 730
731 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId') + '/reports/' + common_internal.Escaper.ecapeVariable('$reportId') + '/files/' + common_internal.Escaper.ecapeVariable('$fileId'); 731 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' + commons.Escape r.ecapeVariable('$fileId');
732 732
733 var _response = _requester.request(_url, 733 var _response = _requester.request(_url,
734 "GET", 734 "GET",
735 body: _body, 735 body: _body,
736 queryParams: _queryParams, 736 queryParams: _queryParams,
737 uploadOptions: _uploadOptions, 737 uploadOptions: _uploadOptions,
738 uploadMedia: _uploadMedia, 738 uploadMedia: _uploadMedia,
739 downloadOptions: _downloadOptions); 739 downloadOptions: _downloadOptions);
740 if (_downloadOptions == null || 740 if (_downloadOptions == null ||
741 _downloadOptions == common.DownloadOptions.Metadata) { 741 _downloadOptions == commons.DownloadOptions.Metadata) {
742 return _response.then((data) => new File.fromJson(data)); 742 return _response.then((data) => new File.fromJson(data));
743 } else { 743 } else {
744 return _response; 744 return _response;
745 } 745 }
746 } 746 }
747 747
748 /** 748 /**
749 * Lists files for a report. 749 * Lists files for a report.
750 * 750 *
751 * Request parameters: 751 * Request parameters:
(...skipping 12 matching lines...) Expand all
764 * - "ID" : Sort by file ID. 764 * - "ID" : Sort by file ID.
765 * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. 765 * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field.
766 * 766 *
767 * [sortOrder] - Order of sorted results, default is 'DESCENDING'. 767 * [sortOrder] - Order of sorted results, default is 'DESCENDING'.
768 * Possible string values are: 768 * Possible string values are:
769 * - "ASCENDING" : Ascending order. 769 * - "ASCENDING" : Ascending order.
770 * - "DESCENDING" : Descending order. 770 * - "DESCENDING" : Descending order.
771 * 771 *
772 * Completes with a [FileList]. 772 * Completes with a [FileList].
773 * 773 *
774 * Completes with a [common.ApiRequestError] if the API endpoint returned an 774 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
775 * error. 775 * error.
776 * 776 *
777 * If the used [http.Client] completes with an error when making a REST call, 777 * If the used [http.Client] completes with an error when making a REST call,
778 * this method will complete with the same error. 778 * this method will complete with the same error.
779 */ 779 */
780 async.Future<FileList> list(core.String profileId, core.String reportId, {core .int maxResults, core.String pageToken, core.String sortField, core.String sortO rder}) { 780 async.Future<FileList> list(core.String profileId, core.String reportId, {core .int maxResults, core.String pageToken, core.String sortField, core.String sortO rder}) {
781 var _url = null; 781 var _url = null;
782 var _queryParams = new core.Map(); 782 var _queryParams = new core.Map();
783 var _uploadMedia = null; 783 var _uploadMedia = null;
784 var _uploadOptions = null; 784 var _uploadOptions = null;
785 var _downloadOptions = common.DownloadOptions.Metadata; 785 var _downloadOptions = commons.DownloadOptions.Metadata;
786 var _body = null; 786 var _body = null;
787 787
788 if (profileId == null) { 788 if (profileId == null) {
789 throw new core.ArgumentError("Parameter profileId is required."); 789 throw new core.ArgumentError("Parameter profileId is required.");
790 } 790 }
791 if (reportId == null) { 791 if (reportId == null) {
792 throw new core.ArgumentError("Parameter reportId is required."); 792 throw new core.ArgumentError("Parameter reportId is required.");
793 } 793 }
794 if (maxResults != null) { 794 if (maxResults != null) {
795 _queryParams["maxResults"] = ["${maxResults}"]; 795 _queryParams["maxResults"] = ["${maxResults}"];
796 } 796 }
797 if (pageToken != null) { 797 if (pageToken != null) {
798 _queryParams["pageToken"] = [pageToken]; 798 _queryParams["pageToken"] = [pageToken];
799 } 799 }
800 if (sortField != null) { 800 if (sortField != null) {
801 _queryParams["sortField"] = [sortField]; 801 _queryParams["sortField"] = [sortField];
802 } 802 }
803 if (sortOrder != null) { 803 if (sortOrder != null) {
804 _queryParams["sortOrder"] = [sortOrder]; 804 _queryParams["sortOrder"] = [sortOrder];
805 } 805 }
806 806
807 807
808 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId') + '/reports/' + common_internal.Escaper.ecapeVariable('$reportId') + '/files'; 808 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep orts/' + commons.Escaper.ecapeVariable('$reportId') + '/files';
809 809
810 var _response = _requester.request(_url, 810 var _response = _requester.request(_url,
811 "GET", 811 "GET",
812 body: _body, 812 body: _body,
813 queryParams: _queryParams, 813 queryParams: _queryParams,
814 uploadOptions: _uploadOptions, 814 uploadOptions: _uploadOptions,
815 uploadMedia: _uploadMedia, 815 uploadMedia: _uploadMedia,
816 downloadOptions: _downloadOptions); 816 downloadOptions: _downloadOptions);
817 return _response.then((data) => new FileList.fromJson(data)); 817 return _response.then((data) => new FileList.fromJson(data));
818 } 818 }
819 819
820 } 820 }
821 821
822 822
823 /** Not documented yet. */
824 class UserProfilesResourceApi { 823 class UserProfilesResourceApi {
825 final common_internal.ApiRequester _requester; 824 final commons.ApiRequester _requester;
826 825
827 UserProfilesResourceApi(common_internal.ApiRequester client) : 826 UserProfilesResourceApi(commons.ApiRequester client) :
828 _requester = client; 827 _requester = client;
829 828
830 /** 829 /**
831 * Gets one user profile by ID. 830 * Gets one user profile by ID.
832 * 831 *
833 * Request parameters: 832 * Request parameters:
834 * 833 *
835 * [profileId] - The user profile ID. 834 * [profileId] - The user profile ID.
836 * 835 *
837 * Completes with a [UserProfile]. 836 * Completes with a [UserProfile].
838 * 837 *
839 * Completes with a [common.ApiRequestError] if the API endpoint returned an 838 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
840 * error. 839 * error.
841 * 840 *
842 * If the used [http.Client] completes with an error when making a REST call, 841 * If the used [http.Client] completes with an error when making a REST call,
843 * this method will complete with the same error. 842 * this method will complete with the same error.
844 */ 843 */
845 async.Future<UserProfile> get(core.String profileId) { 844 async.Future<UserProfile> get(core.String profileId) {
846 var _url = null; 845 var _url = null;
847 var _queryParams = new core.Map(); 846 var _queryParams = new core.Map();
848 var _uploadMedia = null; 847 var _uploadMedia = null;
849 var _uploadOptions = null; 848 var _uploadOptions = null;
850 var _downloadOptions = common.DownloadOptions.Metadata; 849 var _downloadOptions = commons.DownloadOptions.Metadata;
851 var _body = null; 850 var _body = null;
852 851
853 if (profileId == null) { 852 if (profileId == null) {
854 throw new core.ArgumentError("Parameter profileId is required."); 853 throw new core.ArgumentError("Parameter profileId is required.");
855 } 854 }
856 855
857 856
858 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId') ; 857 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId');
859 858
860 var _response = _requester.request(_url, 859 var _response = _requester.request(_url,
861 "GET", 860 "GET",
862 body: _body, 861 body: _body,
863 queryParams: _queryParams, 862 queryParams: _queryParams,
864 uploadOptions: _uploadOptions, 863 uploadOptions: _uploadOptions,
865 uploadMedia: _uploadMedia, 864 uploadMedia: _uploadMedia,
866 downloadOptions: _downloadOptions); 865 downloadOptions: _downloadOptions);
867 return _response.then((data) => new UserProfile.fromJson(data)); 866 return _response.then((data) => new UserProfile.fromJson(data));
868 } 867 }
869 868
870 /** 869 /**
871 * Retrieves list of user profiles for a user. 870 * Retrieves list of user profiles for a user.
872 * 871 *
873 * Request parameters: 872 * Request parameters:
874 * 873 *
875 * Completes with a [UserProfileList]. 874 * Completes with a [UserProfileList].
876 * 875 *
877 * Completes with a [common.ApiRequestError] if the API endpoint returned an 876 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
878 * error. 877 * error.
879 * 878 *
880 * If the used [http.Client] completes with an error when making a REST call, 879 * If the used [http.Client] completes with an error when making a REST call,
881 * this method will complete with the same error. 880 * this method will complete with the same error.
882 */ 881 */
883 async.Future<UserProfileList> list() { 882 async.Future<UserProfileList> list() {
884 var _url = null; 883 var _url = null;
885 var _queryParams = new core.Map(); 884 var _queryParams = new core.Map();
886 var _uploadMedia = null; 885 var _uploadMedia = null;
887 var _uploadOptions = null; 886 var _uploadOptions = null;
888 var _downloadOptions = common.DownloadOptions.Metadata; 887 var _downloadOptions = commons.DownloadOptions.Metadata;
889 var _body = null; 888 var _body = null;
890 889
891 890
892 891
893 _url = 'userprofiles'; 892 _url = 'userprofiles';
894 893
895 var _response = _requester.request(_url, 894 var _response = _requester.request(_url,
896 "GET", 895 "GET",
897 body: _body, 896 body: _body,
898 queryParams: _queryParams, 897 queryParams: _queryParams,
(...skipping 2466 matching lines...) Expand 10 before | Expand all | Expand 10 after
3365 } 3364 }
3366 if (items != null) { 3365 if (items != null) {
3367 _json["items"] = items.map((value) => (value).toJson()).toList(); 3366 _json["items"] = items.map((value) => (value).toJson()).toList();
3368 } 3367 }
3369 if (kind != null) { 3368 if (kind != null) {
3370 _json["kind"] = kind; 3369 _json["kind"] = kind;
3371 } 3370 }
3372 return _json; 3371 return _json;
3373 } 3372 }
3374 } 3373 }
3375
3376
OLDNEW
« no previous file with comments | « generated/googleapis/lib/customsearch/v1.dart ('k') | generated/googleapis/lib/dfareporting/v2_0.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698