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

Side by Side Diff: generated/googleapis/lib/adexchangeseller/v2_0.dart

Issue 612053002: Api roll 2: 2014-09-29 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Addressed more review comments Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/README.md ('k') | generated/googleapis/lib/civicinfo/us_v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library googleapis.adexchangeseller.v1_1; 1 library googleapis.adexchangeseller.v2_0;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import "package:crypto/crypto.dart" as crypto; 8 import "package:crypto/crypto.dart" as crypto;
9 import 'package:http/http.dart' as http; 9 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal; 10 import '../src/common_internal.dart' as common_internal;
11 import '../common/common.dart' as common; 11 import '../common/common.dart' as common;
12 12
13 export '../common/common.dart' show ApiRequestError; 13 export '../common/common.dart' show ApiRequestError;
14 export '../common/common.dart' show DetailedApiRequestError; 14 export '../common/common.dart' show DetailedApiRequestError;
15 15
16 /** 16 /**
17 * Gives Ad Exchange seller users access to their inventory and the ability to 17 * Gives Ad Exchange seller users access to their inventory and the ability to
18 * generate reports 18 * generate reports
19 */ 19 */
20 class AdexchangesellerApi { 20 class AdexchangesellerApi {
21 /** View and manage your Ad Exchange data */ 21 /** View and manage your Ad Exchange data */
22 static const AdexchangeSellerScope = "https://www.googleapis.com/auth/adexchan ge.seller"; 22 static const AdexchangeSellerScope = "https://www.googleapis.com/auth/adexchan ge.seller";
23 23
24 /** View your Ad Exchange data */ 24 /** View your Ad Exchange data */
25 static const AdexchangeSellerReadonlyScope = "https://www.googleapis.com/auth/ adexchange.seller.readonly"; 25 static const AdexchangeSellerReadonlyScope = "https://www.googleapis.com/auth/ adexchange.seller.readonly";
26 26
27 27
28 final common_internal.ApiRequester _requester; 28 final common_internal.ApiRequester _requester;
29 29
30 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); 30 AccountsResourceApi get accounts => new AccountsResourceApi(_requester);
31 AdclientsResourceApi get adclients => new AdclientsResourceApi(_requester);
32 AdunitsResourceApi get adunits => new AdunitsResourceApi(_requester);
33 AlertsResourceApi get alerts => new AlertsResourceApi(_requester);
34 CustomchannelsResourceApi get customchannels => new CustomchannelsResourceApi( _requester);
35 MetadataResourceApi get metadata => new MetadataResourceApi(_requester);
36 PreferreddealsResourceApi get preferreddeals => new PreferreddealsResourceApi( _requester);
37 ReportsResourceApi get reports => new ReportsResourceApi(_requester);
38 UrlchannelsResourceApi get urlchannels => new UrlchannelsResourceApi(_requeste r);
39 31
40 AdexchangesellerApi(http.Client client) : 32 AdexchangesellerApi(http.Client client) :
41 _requester = new common_internal.ApiRequester(client, "https://www.googlea pis.com/", "adexchangeseller/v1.1/"); 33 _requester = new common_internal.ApiRequester(client, "https://www.googlea pis.com/", "adexchangeseller/v2.0/");
42 } 34 }
43 35
44 36
45 /** Not documented yet. */ 37 /** Not documented yet. */
46 class AccountsResourceApi { 38 class AccountsResourceApi {
47 final common_internal.ApiRequester _requester; 39 final common_internal.ApiRequester _requester;
48 40
41 AccountsAdclientsResourceApi get adclients => new AccountsAdclientsResourceApi (_requester);
42 AccountsAlertsResourceApi get alerts => new AccountsAlertsResourceApi(_request er);
43 AccountsCustomchannelsResourceApi get customchannels => new AccountsCustomchan nelsResourceApi(_requester);
44 AccountsMetadataResourceApi get metadata => new AccountsMetadataResourceApi(_r equester);
45 AccountsPreferreddealsResourceApi get preferreddeals => new AccountsPreferredd ealsResourceApi(_requester);
46 AccountsReportsResourceApi get reports => new AccountsReportsResourceApi(_requ ester);
47 AccountsUrlchannelsResourceApi get urlchannels => new AccountsUrlchannelsResou rceApi(_requester);
48
49 AccountsResourceApi(common_internal.ApiRequester client) : 49 AccountsResourceApi(common_internal.ApiRequester client) :
50 _requester = client; 50 _requester = client;
51 51
52 /** 52 /**
53 * Get information about the selected Ad Exchange account. 53 * Get information about the selected Ad Exchange account.
54 * 54 *
55 * Request parameters: 55 * Request parameters:
56 * 56 *
57 * [accountId] - Account to get information about. Tip: 'myaccount' is a valid 57 * [accountId] - Account to get information about. Tip: 'myaccount' is a valid
58 * ID. 58 * ID.
(...skipping 24 matching lines...) Expand all
83 var _response = _requester.request(_url, 83 var _response = _requester.request(_url,
84 "GET", 84 "GET",
85 body: _body, 85 body: _body,
86 queryParams: _queryParams, 86 queryParams: _queryParams,
87 uploadOptions: _uploadOptions, 87 uploadOptions: _uploadOptions,
88 uploadMedia: _uploadMedia, 88 uploadMedia: _uploadMedia,
89 downloadOptions: _downloadOptions); 89 downloadOptions: _downloadOptions);
90 return _response.then((data) => new Account.fromJson(data)); 90 return _response.then((data) => new Account.fromJson(data));
91 } 91 }
92 92
93 }
94
95
96 /** Not documented yet. */
97 class AdclientsResourceApi {
98 final common_internal.ApiRequester _requester;
99
100 AdclientsResourceApi(common_internal.ApiRequester client) :
101 _requester = client;
102
103 /** 93 /**
104 * List all ad clients in this Ad Exchange account. 94 * List all accounts available to this Ad Exchange account.
105 * 95 *
106 * Request parameters: 96 * Request parameters:
107 * 97 *
108 * [maxResults] - The maximum number of ad clients to include in the response, 98 * [maxResults] - The maximum number of accounts to include in the response,
109 * used for paging. 99 * used for paging.
110 * Value must be between "0" and "10000". 100 * Value must be between "0" and "10000".
111 * 101 *
112 * [pageToken] - A continuation token, used to page through ad clients. To 102 * [pageToken] - A continuation token, used to page through accounts. To
113 * retrieve the next page, set this parameter to the value of "nextPageToken" 103 * retrieve the next page, set this parameter to the value of "nextPageToken"
114 * from the previous response. 104 * from the previous response.
115 * 105 *
116 * Completes with a [AdClients]. 106 * Completes with a [Accounts].
117 * 107 *
118 * Completes with a [common.ApiRequestError] if the API endpoint returned an 108 * Completes with a [common.ApiRequestError] if the API endpoint returned an
119 * error. 109 * error.
120 * 110 *
121 * If the used [http.Client] completes with an error when making a REST call, 111 * If the used [http.Client] completes with an error when making a REST call,
122 * this method will complete with the same error. 112 * this method will complete with the same error.
123 */ 113 */
124 async.Future<AdClients> list({core.int maxResults, core.String pageToken}) { 114 async.Future<Accounts> list({core.int maxResults, core.String pageToken}) {
125 var _url = null; 115 var _url = null;
126 var _queryParams = new core.Map(); 116 var _queryParams = new core.Map();
127 var _uploadMedia = null; 117 var _uploadMedia = null;
128 var _uploadOptions = null; 118 var _uploadOptions = null;
129 var _downloadOptions = common.DownloadOptions.Metadata; 119 var _downloadOptions = common.DownloadOptions.Metadata;
130 var _body = null; 120 var _body = null;
131 121
132 if (maxResults != null) { 122 if (maxResults != null) {
133 _queryParams["maxResults"] = ["${maxResults}"]; 123 _queryParams["maxResults"] = ["${maxResults}"];
134 } 124 }
135 if (pageToken != null) { 125 if (pageToken != null) {
136 _queryParams["pageToken"] = [pageToken]; 126 _queryParams["pageToken"] = [pageToken];
137 } 127 }
138 128
139 129
140 _url = 'adclients'; 130 _url = 'accounts';
141 131
142 var _response = _requester.request(_url, 132 var _response = _requester.request(_url,
143 "GET", 133 "GET",
144 body: _body, 134 body: _body,
145 queryParams: _queryParams, 135 queryParams: _queryParams,
146 uploadOptions: _uploadOptions, 136 uploadOptions: _uploadOptions,
147 uploadMedia: _uploadMedia, 137 uploadMedia: _uploadMedia,
148 downloadOptions: _downloadOptions); 138 downloadOptions: _downloadOptions);
149 return _response.then((data) => new AdClients.fromJson(data)); 139 return _response.then((data) => new Accounts.fromJson(data));
150 } 140 }
151 141
152 } 142 }
153 143
154 144
155 /** Not documented yet. */ 145 /** Not documented yet. */
156 class AdunitsResourceApi { 146 class AccountsAdclientsResourceApi {
157 final common_internal.ApiRequester _requester; 147 final common_internal.ApiRequester _requester;
158 148
159 AdunitsCustomchannelsResourceApi get customchannels => new AdunitsCustomchanne lsResourceApi(_requester); 149 AccountsAdclientsResourceApi(common_internal.ApiRequester client) :
160
161 AdunitsResourceApi(common_internal.ApiRequester client) :
162 _requester = client; 150 _requester = client;
163 151
164 /** 152 /**
165 * Gets the specified ad unit in the specified ad client. 153 * List all ad clients in this Ad Exchange account.
166 * 154 *
167 * Request parameters: 155 * Request parameters:
168 * 156 *
169 * [adClientId] - Ad client for which to get the ad unit. 157 * [accountId] - Account to which the ad client belongs.
170 * 158 *
171 * [adUnitId] - Ad unit to retrieve. 159 * [maxResults] - The maximum number of ad clients to include in the response,
160 * used for paging.
161 * Value must be between "0" and "10000".
172 * 162 *
173 * Completes with a [AdUnit]. 163 * [pageToken] - A continuation token, used to page through ad clients. To
164 * retrieve the next page, set this parameter to the value of "nextPageToken"
165 * from the previous response.
166 *
167 * Completes with a [AdClients].
174 * 168 *
175 * Completes with a [common.ApiRequestError] if the API endpoint returned an 169 * Completes with a [common.ApiRequestError] if the API endpoint returned an
176 * error. 170 * error.
177 *
178 * If the used [http.Client] completes with an error when making a REST call,
179 * this method will complete with the same error.
180 */
181 async.Future<AdUnit> get(core.String adClientId, core.String adUnitId) {
182 var _url = null;
183 var _queryParams = new core.Map();
184 var _uploadMedia = null;
185 var _uploadOptions = null;
186 var _downloadOptions = common.DownloadOptions.Metadata;
187 var _body = null;
188
189 if (adClientId == null) {
190 throw new core.ArgumentError("Parameter adClientId is required.");
191 }
192 if (adUnitId == null) {
193 throw new core.ArgumentError("Parameter adUnitId is required.");
194 }
195
196
197 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/adunits/' + common_internal.Escaper.ecapeVariable('$adUnitId');
198
199 var _response = _requester.request(_url,
200 "GET",
201 body: _body,
202 queryParams: _queryParams,
203 uploadOptions: _uploadOptions,
204 uploadMedia: _uploadMedia,
205 downloadOptions: _downloadOptions);
206 return _response.then((data) => new AdUnit.fromJson(data));
207 }
208
209 /**
210 * List all ad units in the specified ad client for this Ad Exchange account.
211 *
212 * Request parameters:
213 *
214 * [adClientId] - Ad client for which to list ad units.
215 *
216 * [includeInactive] - Whether to include inactive ad units. Default: true.
217 *
218 * [maxResults] - The maximum number of ad units to include in the response,
219 * used for paging.
220 * Value must be between "0" and "10000".
221 *
222 * [pageToken] - A continuation token, used to page through ad units. To
223 * retrieve the next page, set this parameter to the value of "nextPageToken"
224 * from the previous response.
225 *
226 * Completes with a [AdUnits].
227 *
228 * Completes with a [common.ApiRequestError] if the API endpoint returned an
229 * error.
230 *
231 * If the used [http.Client] completes with an error when making a REST call,
232 * this method will complete with the same error.
233 */
234 async.Future<AdUnits> list(core.String adClientId, {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
235 var _url = null;
236 var _queryParams = new core.Map();
237 var _uploadMedia = null;
238 var _uploadOptions = null;
239 var _downloadOptions = common.DownloadOptions.Metadata;
240 var _body = null;
241
242 if (adClientId == null) {
243 throw new core.ArgumentError("Parameter adClientId is required.");
244 }
245 if (includeInactive != null) {
246 _queryParams["includeInactive"] = ["${includeInactive}"];
247 }
248 if (maxResults != null) {
249 _queryParams["maxResults"] = ["${maxResults}"];
250 }
251 if (pageToken != null) {
252 _queryParams["pageToken"] = [pageToken];
253 }
254
255
256 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/adunits';
257
258 var _response = _requester.request(_url,
259 "GET",
260 body: _body,
261 queryParams: _queryParams,
262 uploadOptions: _uploadOptions,
263 uploadMedia: _uploadMedia,
264 downloadOptions: _downloadOptions);
265 return _response.then((data) => new AdUnits.fromJson(data));
266 }
267
268 }
269
270
271 /** Not documented yet. */
272 class AdunitsCustomchannelsResourceApi {
273 final common_internal.ApiRequester _requester;
274
275 AdunitsCustomchannelsResourceApi(common_internal.ApiRequester client) :
276 _requester = client;
277
278 /**
279 * List all custom channels which the specified ad unit belongs to.
280 *
281 * Request parameters:
282 *
283 * [adClientId] - Ad client which contains the ad unit.
284 *
285 * [adUnitId] - Ad unit for which to list custom channels.
286 *
287 * [maxResults] - The maximum number of custom channels to include in the
288 * response, used for paging.
289 * Value must be between "0" and "10000".
290 *
291 * [pageToken] - A continuation token, used to page through custom channels.
292 * To retrieve the next page, set this parameter to the value of
293 * "nextPageToken" from the previous response.
294 *
295 * Completes with a [CustomChannels].
296 *
297 * Completes with a [common.ApiRequestError] if the API endpoint returned an
298 * error.
299 * 171 *
300 * If the used [http.Client] completes with an error when making a REST call, 172 * If the used [http.Client] completes with an error when making a REST call,
301 * this method will complete with the same error. 173 * this method will complete with the same error.
302 */ 174 */
303 async.Future<CustomChannels> list(core.String adClientId, core.String adUnitId , {core.int maxResults, core.String pageToken}) { 175 async.Future<AdClients> list(core.String accountId, {core.int maxResults, core .String pageToken}) {
304 var _url = null; 176 var _url = null;
305 var _queryParams = new core.Map(); 177 var _queryParams = new core.Map();
306 var _uploadMedia = null; 178 var _uploadMedia = null;
307 var _uploadOptions = null; 179 var _uploadOptions = null;
308 var _downloadOptions = common.DownloadOptions.Metadata; 180 var _downloadOptions = common.DownloadOptions.Metadata;
309 var _body = null; 181 var _body = null;
310 182
311 if (adClientId == null) { 183 if (accountId == null) {
312 throw new core.ArgumentError("Parameter adClientId is required."); 184 throw new core.ArgumentError("Parameter accountId is required.");
313 }
314 if (adUnitId == null) {
315 throw new core.ArgumentError("Parameter adUnitId is required.");
316 } 185 }
317 if (maxResults != null) { 186 if (maxResults != null) {
318 _queryParams["maxResults"] = ["${maxResults}"]; 187 _queryParams["maxResults"] = ["${maxResults}"];
319 } 188 }
320 if (pageToken != null) { 189 if (pageToken != null) {
321 _queryParams["pageToken"] = [pageToken]; 190 _queryParams["pageToken"] = [pageToken];
322 } 191 }
323 192
324 193
325 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/adunits/' + common_internal.Escaper.ecapeVariable('$adUnitId') + '/customchan nels'; 194 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + ' /adclients';
326 195
327 var _response = _requester.request(_url, 196 var _response = _requester.request(_url,
328 "GET", 197 "GET",
329 body: _body, 198 body: _body,
330 queryParams: _queryParams, 199 queryParams: _queryParams,
331 uploadOptions: _uploadOptions, 200 uploadOptions: _uploadOptions,
332 uploadMedia: _uploadMedia, 201 uploadMedia: _uploadMedia,
333 downloadOptions: _downloadOptions); 202 downloadOptions: _downloadOptions);
334 return _response.then((data) => new CustomChannels.fromJson(data)); 203 return _response.then((data) => new AdClients.fromJson(data));
335 } 204 }
336 205
337 } 206 }
338 207
339 208
340 /** Not documented yet. */ 209 /** Not documented yet. */
341 class AlertsResourceApi { 210 class AccountsAlertsResourceApi {
342 final common_internal.ApiRequester _requester; 211 final common_internal.ApiRequester _requester;
343 212
344 AlertsResourceApi(common_internal.ApiRequester client) : 213 AccountsAlertsResourceApi(common_internal.ApiRequester client) :
345 _requester = client; 214 _requester = client;
346 215
347 /** 216 /**
348 * List the alerts for this Ad Exchange account. 217 * List the alerts for this Ad Exchange account.
349 * 218 *
350 * Request parameters: 219 * Request parameters:
351 * 220 *
221 * [accountId] - Account owning the alerts.
222 *
352 * [locale] - The locale to use for translating alert messages. The account 223 * [locale] - The locale to use for translating alert messages. The account
353 * locale will be used if this is not supplied. The AdSense default (English) 224 * locale will be used if this is not supplied. The AdSense default (English)
354 * will be used if the supplied locale is invalid or unsupported. 225 * will be used if the supplied locale is invalid or unsupported.
355 * 226 *
356 * Completes with a [Alerts]. 227 * Completes with a [Alerts].
357 * 228 *
358 * Completes with a [common.ApiRequestError] if the API endpoint returned an 229 * Completes with a [common.ApiRequestError] if the API endpoint returned an
359 * error. 230 * error.
360 * 231 *
361 * If the used [http.Client] completes with an error when making a REST call, 232 * If the used [http.Client] completes with an error when making a REST call,
362 * this method will complete with the same error. 233 * this method will complete with the same error.
363 */ 234 */
364 async.Future<Alerts> list({core.String locale}) { 235 async.Future<Alerts> list(core.String accountId, {core.String locale}) {
365 var _url = null; 236 var _url = null;
366 var _queryParams = new core.Map(); 237 var _queryParams = new core.Map();
367 var _uploadMedia = null; 238 var _uploadMedia = null;
368 var _uploadOptions = null; 239 var _uploadOptions = null;
369 var _downloadOptions = common.DownloadOptions.Metadata; 240 var _downloadOptions = common.DownloadOptions.Metadata;
370 var _body = null; 241 var _body = null;
371 242
243 if (accountId == null) {
244 throw new core.ArgumentError("Parameter accountId is required.");
245 }
372 if (locale != null) { 246 if (locale != null) {
373 _queryParams["locale"] = [locale]; 247 _queryParams["locale"] = [locale];
374 } 248 }
375 249
376 250
377 _url = 'alerts'; 251 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + ' /alerts';
378 252
379 var _response = _requester.request(_url, 253 var _response = _requester.request(_url,
380 "GET", 254 "GET",
381 body: _body, 255 body: _body,
382 queryParams: _queryParams, 256 queryParams: _queryParams,
383 uploadOptions: _uploadOptions, 257 uploadOptions: _uploadOptions,
384 uploadMedia: _uploadMedia, 258 uploadMedia: _uploadMedia,
385 downloadOptions: _downloadOptions); 259 downloadOptions: _downloadOptions);
386 return _response.then((data) => new Alerts.fromJson(data)); 260 return _response.then((data) => new Alerts.fromJson(data));
387 } 261 }
388 262
389 } 263 }
390 264
391 265
392 /** Not documented yet. */ 266 /** Not documented yet. */
393 class CustomchannelsResourceApi { 267 class AccountsCustomchannelsResourceApi {
394 final common_internal.ApiRequester _requester; 268 final common_internal.ApiRequester _requester;
395 269
396 CustomchannelsAdunitsResourceApi get adunits => new CustomchannelsAdunitsResou rceApi(_requester); 270 AccountsCustomchannelsResourceApi(common_internal.ApiRequester client) :
397
398 CustomchannelsResourceApi(common_internal.ApiRequester client) :
399 _requester = client; 271 _requester = client;
400 272
401 /** 273 /**
402 * Get the specified custom channel from the specified ad client. 274 * Get the specified custom channel from the specified ad client.
403 * 275 *
404 * Request parameters: 276 * Request parameters:
405 * 277 *
278 * [accountId] - Account to which the ad client belongs.
279 *
406 * [adClientId] - Ad client which contains the custom channel. 280 * [adClientId] - Ad client which contains the custom channel.
407 * 281 *
408 * [customChannelId] - Custom channel to retrieve. 282 * [customChannelId] - Custom channel to retrieve.
409 * 283 *
410 * Completes with a [CustomChannel]. 284 * Completes with a [CustomChannel].
411 * 285 *
412 * Completes with a [common.ApiRequestError] if the API endpoint returned an 286 * Completes with a [common.ApiRequestError] if the API endpoint returned an
413 * error. 287 * error.
414 * 288 *
415 * If the used [http.Client] completes with an error when making a REST call, 289 * If the used [http.Client] completes with an error when making a REST call,
416 * this method will complete with the same error. 290 * this method will complete with the same error.
417 */ 291 */
418 async.Future<CustomChannel> get(core.String adClientId, core.String customChan nelId) { 292 async.Future<CustomChannel> get(core.String accountId, core.String adClientId, core.String customChannelId) {
419 var _url = null; 293 var _url = null;
420 var _queryParams = new core.Map(); 294 var _queryParams = new core.Map();
421 var _uploadMedia = null; 295 var _uploadMedia = null;
422 var _uploadOptions = null; 296 var _uploadOptions = null;
423 var _downloadOptions = common.DownloadOptions.Metadata; 297 var _downloadOptions = common.DownloadOptions.Metadata;
424 var _body = null; 298 var _body = null;
425 299
300 if (accountId == null) {
301 throw new core.ArgumentError("Parameter accountId is required.");
302 }
426 if (adClientId == null) { 303 if (adClientId == null) {
427 throw new core.ArgumentError("Parameter adClientId is required."); 304 throw new core.ArgumentError("Parameter adClientId is required.");
428 } 305 }
429 if (customChannelId == null) { 306 if (customChannelId == null) {
430 throw new core.ArgumentError("Parameter customChannelId is required."); 307 throw new core.ArgumentError("Parameter customChannelId is required.");
431 } 308 }
432 309
433 310
434 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + common_internal.Escaper.ecapeVariable('$customChannelId'); 311 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + ' /adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customch annels/' + common_internal.Escaper.ecapeVariable('$customChannelId');
435 312
436 var _response = _requester.request(_url, 313 var _response = _requester.request(_url,
437 "GET", 314 "GET",
438 body: _body, 315 body: _body,
439 queryParams: _queryParams, 316 queryParams: _queryParams,
440 uploadOptions: _uploadOptions, 317 uploadOptions: _uploadOptions,
441 uploadMedia: _uploadMedia, 318 uploadMedia: _uploadMedia,
442 downloadOptions: _downloadOptions); 319 downloadOptions: _downloadOptions);
443 return _response.then((data) => new CustomChannel.fromJson(data)); 320 return _response.then((data) => new CustomChannel.fromJson(data));
444 } 321 }
445 322
446 /** 323 /**
447 * List all custom channels in the specified ad client for this Ad Exchange 324 * List all custom channels in the specified ad client for this Ad Exchange
448 * account. 325 * account.
449 * 326 *
450 * Request parameters: 327 * Request parameters:
451 * 328 *
329 * [accountId] - Account to which the ad client belongs.
330 *
452 * [adClientId] - Ad client for which to list custom channels. 331 * [adClientId] - Ad client for which to list custom channels.
453 * 332 *
454 * [maxResults] - The maximum number of custom channels to include in the 333 * [maxResults] - The maximum number of custom channels to include in the
455 * response, used for paging. 334 * response, used for paging.
456 * Value must be between "0" and "10000". 335 * Value must be between "0" and "10000".
457 * 336 *
458 * [pageToken] - A continuation token, used to page through custom channels. 337 * [pageToken] - A continuation token, used to page through custom channels.
459 * To retrieve the next page, set this parameter to the value of 338 * To retrieve the next page, set this parameter to the value of
460 * "nextPageToken" from the previous response. 339 * "nextPageToken" from the previous response.
461 * 340 *
462 * Completes with a [CustomChannels]. 341 * Completes with a [CustomChannels].
463 * 342 *
464 * Completes with a [common.ApiRequestError] if the API endpoint returned an 343 * Completes with a [common.ApiRequestError] if the API endpoint returned an
465 * error. 344 * error.
466 * 345 *
467 * If the used [http.Client] completes with an error when making a REST call, 346 * If the used [http.Client] completes with an error when making a REST call,
468 * this method will complete with the same error. 347 * this method will complete with the same error.
469 */ 348 */
470 async.Future<CustomChannels> list(core.String adClientId, {core.int maxResults , core.String pageToken}) { 349 async.Future<CustomChannels> list(core.String accountId, core.String adClientI d, {core.int maxResults, core.String pageToken}) {
471 var _url = null; 350 var _url = null;
472 var _queryParams = new core.Map(); 351 var _queryParams = new core.Map();
473 var _uploadMedia = null; 352 var _uploadMedia = null;
474 var _uploadOptions = null; 353 var _uploadOptions = null;
475 var _downloadOptions = common.DownloadOptions.Metadata; 354 var _downloadOptions = common.DownloadOptions.Metadata;
476 var _body = null; 355 var _body = null;
477 356
357 if (accountId == null) {
358 throw new core.ArgumentError("Parameter accountId is required.");
359 }
478 if (adClientId == null) { 360 if (adClientId == null) {
479 throw new core.ArgumentError("Parameter adClientId is required."); 361 throw new core.ArgumentError("Parameter adClientId is required.");
480 } 362 }
481 if (maxResults != null) { 363 if (maxResults != null) {
482 _queryParams["maxResults"] = ["${maxResults}"]; 364 _queryParams["maxResults"] = ["${maxResults}"];
483 } 365 }
484 if (pageToken != null) {
485 _queryParams["pageToken"] = [pageToken];
486 }
487
488
489 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customchannels';
490
491 var _response = _requester.request(_url,
492 "GET",
493 body: _body,
494 queryParams: _queryParams,
495 uploadOptions: _uploadOptions,
496 uploadMedia: _uploadMedia,
497 downloadOptions: _downloadOptions);
498 return _response.then((data) => new CustomChannels.fromJson(data));
499 }
500
501 }
502
503
504 /** Not documented yet. */
505 class CustomchannelsAdunitsResourceApi {
506 final common_internal.ApiRequester _requester;
507
508 CustomchannelsAdunitsResourceApi(common_internal.ApiRequester client) :
509 _requester = client;
510
511 /**
512 * List all ad units in the specified custom channel.
513 *
514 * Request parameters:
515 *
516 * [adClientId] - Ad client which contains the custom channel.
517 *
518 * [customChannelId] - Custom channel for which to list ad units.
519 *
520 * [includeInactive] - Whether to include inactive ad units. Default: true.
521 *
522 * [maxResults] - The maximum number of ad units to include in the response,
523 * used for paging.
524 * Value must be between "0" and "10000".
525 *
526 * [pageToken] - A continuation token, used to page through ad units. To
527 * retrieve the next page, set this parameter to the value of "nextPageToken"
528 * from the previous response.
529 *
530 * Completes with a [AdUnits].
531 *
532 * Completes with a [common.ApiRequestError] if the API endpoint returned an
533 * error.
534 *
535 * If the used [http.Client] completes with an error when making a REST call,
536 * this method will complete with the same error.
537 */
538 async.Future<AdUnits> list(core.String adClientId, core.String customChannelId , {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
539 var _url = null;
540 var _queryParams = new core.Map();
541 var _uploadMedia = null;
542 var _uploadOptions = null;
543 var _downloadOptions = common.DownloadOptions.Metadata;
544 var _body = null;
545
546 if (adClientId == null) {
547 throw new core.ArgumentError("Parameter adClientId is required.");
548 }
549 if (customChannelId == null) {
550 throw new core.ArgumentError("Parameter customChannelId is required.");
551 }
552 if (includeInactive != null) {
553 _queryParams["includeInactive"] = ["${includeInactive}"];
554 }
555 if (maxResults != null) {
556 _queryParams["maxResults"] = ["${maxResults}"];
557 }
558 if (pageToken != null) { 366 if (pageToken != null) {
559 _queryParams["pageToken"] = [pageToken]; 367 _queryParams["pageToken"] = [pageToken];
560 } 368 }
561 369
562 370
563 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + common_internal.Escaper.ecapeVariable('$customChannelId') + '/adunits'; 371 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + ' /adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customch annels';
564 372
565 var _response = _requester.request(_url, 373 var _response = _requester.request(_url,
566 "GET", 374 "GET",
567 body: _body, 375 body: _body,
568 queryParams: _queryParams, 376 queryParams: _queryParams,
569 uploadOptions: _uploadOptions, 377 uploadOptions: _uploadOptions,
570 uploadMedia: _uploadMedia, 378 uploadMedia: _uploadMedia,
571 downloadOptions: _downloadOptions); 379 downloadOptions: _downloadOptions);
572 return _response.then((data) => new AdUnits.fromJson(data)); 380 return _response.then((data) => new CustomChannels.fromJson(data));
573 } 381 }
574 382
575 } 383 }
576 384
577 385
578 /** Not documented yet. */ 386 /** Not documented yet. */
579 class MetadataResourceApi { 387 class AccountsMetadataResourceApi {
580 final common_internal.ApiRequester _requester; 388 final common_internal.ApiRequester _requester;
581 389
582 MetadataDimensionsResourceApi get dimensions => new MetadataDimensionsResource Api(_requester); 390 AccountsMetadataDimensionsResourceApi get dimensions => new AccountsMetadataDi mensionsResourceApi(_requester);
583 MetadataMetricsResourceApi get metrics => new MetadataMetricsResourceApi(_requ ester); 391 AccountsMetadataMetricsResourceApi get metrics => new AccountsMetadataMetricsR esourceApi(_requester);
584 392
585 MetadataResourceApi(common_internal.ApiRequester client) : 393 AccountsMetadataResourceApi(common_internal.ApiRequester client) :
586 _requester = client; 394 _requester = client;
587 } 395 }
588 396
589 397
590 /** Not documented yet. */ 398 /** Not documented yet. */
591 class MetadataDimensionsResourceApi { 399 class AccountsMetadataDimensionsResourceApi {
592 final common_internal.ApiRequester _requester; 400 final common_internal.ApiRequester _requester;
593 401
594 MetadataDimensionsResourceApi(common_internal.ApiRequester client) : 402 AccountsMetadataDimensionsResourceApi(common_internal.ApiRequester client) :
595 _requester = client; 403 _requester = client;
596 404
597 /** 405 /**
598 * List the metadata for the dimensions available to this AdExchange account. 406 * List the metadata for the dimensions available to this AdExchange account.
599 * 407 *
600 * Request parameters: 408 * Request parameters:
601 * 409 *
410 * [accountId] - Account with visibility to the dimensions.
411 *
602 * Completes with a [Metadata]. 412 * Completes with a [Metadata].
603 * 413 *
604 * Completes with a [common.ApiRequestError] if the API endpoint returned an 414 * Completes with a [common.ApiRequestError] if the API endpoint returned an
605 * error. 415 * error.
606 * 416 *
607 * If the used [http.Client] completes with an error when making a REST call, 417 * If the used [http.Client] completes with an error when making a REST call,
608 * this method will complete with the same error. 418 * this method will complete with the same error.
609 */ 419 */
610 async.Future<Metadata> list() { 420 async.Future<Metadata> list(core.String accountId) {
611 var _url = null; 421 var _url = null;
612 var _queryParams = new core.Map(); 422 var _queryParams = new core.Map();
613 var _uploadMedia = null; 423 var _uploadMedia = null;
614 var _uploadOptions = null; 424 var _uploadOptions = null;
615 var _downloadOptions = common.DownloadOptions.Metadata; 425 var _downloadOptions = common.DownloadOptions.Metadata;
616 var _body = null; 426 var _body = null;
617 427
428 if (accountId == null) {
429 throw new core.ArgumentError("Parameter accountId is required.");
430 }
618 431
619 432
620 _url = 'metadata/dimensions'; 433 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + ' /metadata/dimensions';
621 434
622 var _response = _requester.request(_url, 435 var _response = _requester.request(_url,
623 "GET", 436 "GET",
624 body: _body, 437 body: _body,
625 queryParams: _queryParams, 438 queryParams: _queryParams,
626 uploadOptions: _uploadOptions, 439 uploadOptions: _uploadOptions,
627 uploadMedia: _uploadMedia, 440 uploadMedia: _uploadMedia,
628 downloadOptions: _downloadOptions); 441 downloadOptions: _downloadOptions);
629 return _response.then((data) => new Metadata.fromJson(data)); 442 return _response.then((data) => new Metadata.fromJson(data));
630 } 443 }
631 444
632 } 445 }
633 446
634 447
635 /** Not documented yet. */ 448 /** Not documented yet. */
636 class MetadataMetricsResourceApi { 449 class AccountsMetadataMetricsResourceApi {
637 final common_internal.ApiRequester _requester; 450 final common_internal.ApiRequester _requester;
638 451
639 MetadataMetricsResourceApi(common_internal.ApiRequester client) : 452 AccountsMetadataMetricsResourceApi(common_internal.ApiRequester client) :
640 _requester = client; 453 _requester = client;
641 454
642 /** 455 /**
643 * List the metadata for the metrics available to this AdExchange account. 456 * List the metadata for the metrics available to this AdExchange account.
644 * 457 *
645 * Request parameters: 458 * Request parameters:
646 * 459 *
460 * [accountId] - Account with visibility to the metrics.
461 *
647 * Completes with a [Metadata]. 462 * Completes with a [Metadata].
648 * 463 *
649 * Completes with a [common.ApiRequestError] if the API endpoint returned an 464 * Completes with a [common.ApiRequestError] if the API endpoint returned an
650 * error. 465 * error.
651 * 466 *
652 * If the used [http.Client] completes with an error when making a REST call, 467 * If the used [http.Client] completes with an error when making a REST call,
653 * this method will complete with the same error. 468 * this method will complete with the same error.
654 */ 469 */
655 async.Future<Metadata> list() { 470 async.Future<Metadata> list(core.String accountId) {
656 var _url = null; 471 var _url = null;
657 var _queryParams = new core.Map(); 472 var _queryParams = new core.Map();
658 var _uploadMedia = null; 473 var _uploadMedia = null;
659 var _uploadOptions = null; 474 var _uploadOptions = null;
660 var _downloadOptions = common.DownloadOptions.Metadata; 475 var _downloadOptions = common.DownloadOptions.Metadata;
661 var _body = null; 476 var _body = null;
662 477
478 if (accountId == null) {
479 throw new core.ArgumentError("Parameter accountId is required.");
480 }
663 481
664 482
665 _url = 'metadata/metrics'; 483 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + ' /metadata/metrics';
666 484
667 var _response = _requester.request(_url, 485 var _response = _requester.request(_url,
668 "GET", 486 "GET",
669 body: _body, 487 body: _body,
670 queryParams: _queryParams, 488 queryParams: _queryParams,
671 uploadOptions: _uploadOptions, 489 uploadOptions: _uploadOptions,
672 uploadMedia: _uploadMedia, 490 uploadMedia: _uploadMedia,
673 downloadOptions: _downloadOptions); 491 downloadOptions: _downloadOptions);
674 return _response.then((data) => new Metadata.fromJson(data)); 492 return _response.then((data) => new Metadata.fromJson(data));
675 } 493 }
676 494
677 } 495 }
678 496
679 497
680 /** Not documented yet. */ 498 /** Not documented yet. */
681 class PreferreddealsResourceApi { 499 class AccountsPreferreddealsResourceApi {
682 final common_internal.ApiRequester _requester; 500 final common_internal.ApiRequester _requester;
683 501
684 PreferreddealsResourceApi(common_internal.ApiRequester client) : 502 AccountsPreferreddealsResourceApi(common_internal.ApiRequester client) :
685 _requester = client; 503 _requester = client;
686 504
687 /** 505 /**
688 * Get information about the selected Ad Exchange Preferred Deal. 506 * Get information about the selected Ad Exchange Preferred Deal.
689 * 507 *
690 * Request parameters: 508 * Request parameters:
691 * 509 *
510 * [accountId] - Account owning the deal.
511 *
692 * [dealId] - Preferred deal to get information about. 512 * [dealId] - Preferred deal to get information about.
693 * 513 *
694 * Completes with a [PreferredDeal]. 514 * Completes with a [PreferredDeal].
695 * 515 *
696 * Completes with a [common.ApiRequestError] if the API endpoint returned an 516 * Completes with a [common.ApiRequestError] if the API endpoint returned an
697 * error. 517 * error.
698 * 518 *
699 * If the used [http.Client] completes with an error when making a REST call, 519 * If the used [http.Client] completes with an error when making a REST call,
700 * this method will complete with the same error. 520 * this method will complete with the same error.
701 */ 521 */
702 async.Future<PreferredDeal> get(core.String dealId) { 522 async.Future<PreferredDeal> get(core.String accountId, core.String dealId) {
703 var _url = null; 523 var _url = null;
704 var _queryParams = new core.Map(); 524 var _queryParams = new core.Map();
705 var _uploadMedia = null; 525 var _uploadMedia = null;
706 var _uploadOptions = null; 526 var _uploadOptions = null;
707 var _downloadOptions = common.DownloadOptions.Metadata; 527 var _downloadOptions = common.DownloadOptions.Metadata;
708 var _body = null; 528 var _body = null;
709 529
530 if (accountId == null) {
531 throw new core.ArgumentError("Parameter accountId is required.");
532 }
710 if (dealId == null) { 533 if (dealId == null) {
711 throw new core.ArgumentError("Parameter dealId is required."); 534 throw new core.ArgumentError("Parameter dealId is required.");
712 } 535 }
713 536
714 537
715 _url = 'preferreddeals/' + common_internal.Escaper.ecapeVariable('$dealId'); 538 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + ' /preferreddeals/' + common_internal.Escaper.ecapeVariable('$dealId');
716 539
717 var _response = _requester.request(_url, 540 var _response = _requester.request(_url,
718 "GET", 541 "GET",
719 body: _body, 542 body: _body,
720 queryParams: _queryParams, 543 queryParams: _queryParams,
721 uploadOptions: _uploadOptions, 544 uploadOptions: _uploadOptions,
722 uploadMedia: _uploadMedia, 545 uploadMedia: _uploadMedia,
723 downloadOptions: _downloadOptions); 546 downloadOptions: _downloadOptions);
724 return _response.then((data) => new PreferredDeal.fromJson(data)); 547 return _response.then((data) => new PreferredDeal.fromJson(data));
725 } 548 }
726 549
727 /** 550 /**
728 * List the preferred deals for this Ad Exchange account. 551 * List the preferred deals for this Ad Exchange account.
729 * 552 *
730 * Request parameters: 553 * Request parameters:
731 * 554 *
555 * [accountId] - Account owning the deals.
556 *
732 * Completes with a [PreferredDeals]. 557 * Completes with a [PreferredDeals].
733 * 558 *
734 * Completes with a [common.ApiRequestError] if the API endpoint returned an 559 * Completes with a [common.ApiRequestError] if the API endpoint returned an
735 * error. 560 * error.
736 * 561 *
737 * If the used [http.Client] completes with an error when making a REST call, 562 * If the used [http.Client] completes with an error when making a REST call,
738 * this method will complete with the same error. 563 * this method will complete with the same error.
739 */ 564 */
740 async.Future<PreferredDeals> list() { 565 async.Future<PreferredDeals> list(core.String accountId) {
741 var _url = null; 566 var _url = null;
742 var _queryParams = new core.Map(); 567 var _queryParams = new core.Map();
743 var _uploadMedia = null; 568 var _uploadMedia = null;
744 var _uploadOptions = null; 569 var _uploadOptions = null;
745 var _downloadOptions = common.DownloadOptions.Metadata; 570 var _downloadOptions = common.DownloadOptions.Metadata;
746 var _body = null; 571 var _body = null;
747 572
573 if (accountId == null) {
574 throw new core.ArgumentError("Parameter accountId is required.");
575 }
748 576
749 577
750 _url = 'preferreddeals'; 578 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + ' /preferreddeals';
751 579
752 var _response = _requester.request(_url, 580 var _response = _requester.request(_url,
753 "GET", 581 "GET",
754 body: _body, 582 body: _body,
755 queryParams: _queryParams, 583 queryParams: _queryParams,
756 uploadOptions: _uploadOptions, 584 uploadOptions: _uploadOptions,
757 uploadMedia: _uploadMedia, 585 uploadMedia: _uploadMedia,
758 downloadOptions: _downloadOptions); 586 downloadOptions: _downloadOptions);
759 return _response.then((data) => new PreferredDeals.fromJson(data)); 587 return _response.then((data) => new PreferredDeals.fromJson(data));
760 } 588 }
761 589
762 } 590 }
763 591
764 592
765 /** Not documented yet. */ 593 /** Not documented yet. */
766 class ReportsResourceApi { 594 class AccountsReportsResourceApi {
767 final common_internal.ApiRequester _requester; 595 final common_internal.ApiRequester _requester;
768 596
769 ReportsSavedResourceApi get saved => new ReportsSavedResourceApi(_requester); 597 AccountsReportsSavedResourceApi get saved => new AccountsReportsSavedResourceA pi(_requester);
770 598
771 ReportsResourceApi(common_internal.ApiRequester client) : 599 AccountsReportsResourceApi(common_internal.ApiRequester client) :
772 _requester = client; 600 _requester = client;
773 601
774 /** 602 /**
775 * Generate an Ad Exchange report based on the report request sent in the 603 * Generate an Ad Exchange report based on the report request sent in the
776 * query parameters. Returns the result as JSON; to retrieve output in CSV 604 * query parameters. Returns the result as JSON; to retrieve output in CSV
777 * format specify "alt=csv" as a query parameter. 605 * format specify "alt=csv" as a query parameter.
778 * 606 *
779 * Request parameters: 607 * Request parameters:
780 * 608 *
609 * [accountId] - Account which owns the generated report.
610 *
781 * [startDate] - Start of the date range to report on in "YYYY-MM-DD" format, 611 * [startDate] - Start of the date range to report on in "YYYY-MM-DD" format,
782 * inclusive. 612 * inclusive.
783 * Value must have pattern 613 * Value must have pattern
784 * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}? )". 614 * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}? )".
785 * 615 *
786 * [endDate] - End of the date range to report on in "YYYY-MM-DD" format, 616 * [endDate] - End of the date range to report on in "YYYY-MM-DD" format,
787 * inclusive. 617 * inclusive.
788 * Value must have pattern 618 * Value must have pattern
789 * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}? )". 619 * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}? )".
790 * 620 *
(...skipping 30 matching lines...) Expand all
821 * - [Report] for Metadata downloads (see [downloadOptions]). 651 * - [Report] for Metadata downloads (see [downloadOptions]).
822 * 652 *
823 * - [common.Media] for Media downloads (see [downloadOptions]). 653 * - [common.Media] for Media downloads (see [downloadOptions]).
824 * 654 *
825 * Completes with a [common.ApiRequestError] if the API endpoint returned an 655 * Completes with a [common.ApiRequestError] if the API endpoint returned an
826 * error. 656 * error.
827 * 657 *
828 * If the used [http.Client] completes with an error when making a REST call, 658 * If the used [http.Client] completes with an error when making a REST call,
829 * this method will complete with the same error. 659 * this method will complete with the same error.
830 */ 660 */
831 async.Future generate(core.String startDate, core.String endDate, {core.List<c ore.String> dimension, core.List<core.String> filter, core.String locale, core.i nt maxResults, core.List<core.String> metric, core.List<core.String> sort, core. int startIndex, common.DownloadOptions downloadOptions: common.DownloadOptions.M etadata}) { 661 async.Future generate(core.String accountId, core.String startDate, core.Strin g endDate, {core.List<core.String> dimension, core.List<core.String> filter, cor e.String locale, core.int maxResults, core.List<core.String> metric, core.List<c ore.String> sort, core.int startIndex, common.DownloadOptions downloadOptions: c ommon.DownloadOptions.Metadata}) {
832 var _url = null; 662 var _url = null;
833 var _queryParams = new core.Map(); 663 var _queryParams = new core.Map();
834 var _uploadMedia = null; 664 var _uploadMedia = null;
835 var _uploadOptions = null; 665 var _uploadOptions = null;
836 var _downloadOptions = common.DownloadOptions.Metadata; 666 var _downloadOptions = common.DownloadOptions.Metadata;
837 var _body = null; 667 var _body = null;
838 668
669 if (accountId == null) {
670 throw new core.ArgumentError("Parameter accountId is required.");
671 }
839 if (startDate == null) { 672 if (startDate == null) {
840 throw new core.ArgumentError("Parameter startDate is required."); 673 throw new core.ArgumentError("Parameter startDate is required.");
841 } 674 }
842 _queryParams["startDate"] = [startDate]; 675 _queryParams["startDate"] = [startDate];
843 if (endDate == null) { 676 if (endDate == null) {
844 throw new core.ArgumentError("Parameter endDate is required."); 677 throw new core.ArgumentError("Parameter endDate is required.");
845 } 678 }
846 _queryParams["endDate"] = [endDate]; 679 _queryParams["endDate"] = [endDate];
847 if (dimension != null) { 680 if (dimension != null) {
848 _queryParams["dimension"] = dimension; 681 _queryParams["dimension"] = dimension;
(...skipping 12 matching lines...) Expand all
861 } 694 }
862 if (sort != null) { 695 if (sort != null) {
863 _queryParams["sort"] = sort; 696 _queryParams["sort"] = sort;
864 } 697 }
865 if (startIndex != null) { 698 if (startIndex != null) {
866 _queryParams["startIndex"] = ["${startIndex}"]; 699 _queryParams["startIndex"] = ["${startIndex}"];
867 } 700 }
868 701
869 _downloadOptions = downloadOptions; 702 _downloadOptions = downloadOptions;
870 703
871 _url = 'reports'; 704 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + ' /reports';
872 705
873 var _response = _requester.request(_url, 706 var _response = _requester.request(_url,
874 "GET", 707 "GET",
875 body: _body, 708 body: _body,
876 queryParams: _queryParams, 709 queryParams: _queryParams,
877 uploadOptions: _uploadOptions, 710 uploadOptions: _uploadOptions,
878 uploadMedia: _uploadMedia, 711 uploadMedia: _uploadMedia,
879 downloadOptions: _downloadOptions); 712 downloadOptions: _downloadOptions);
880 if (_downloadOptions == null || 713 if (_downloadOptions == null ||
881 _downloadOptions == common.DownloadOptions.Metadata) { 714 _downloadOptions == common.DownloadOptions.Metadata) {
882 return _response.then((data) => new Report.fromJson(data)); 715 return _response.then((data) => new Report.fromJson(data));
883 } else { 716 } else {
884 return _response; 717 return _response;
885 } 718 }
886 } 719 }
887 720
888 } 721 }
889 722
890 723
891 /** Not documented yet. */ 724 /** Not documented yet. */
892 class ReportsSavedResourceApi { 725 class AccountsReportsSavedResourceApi {
893 final common_internal.ApiRequester _requester; 726 final common_internal.ApiRequester _requester;
894 727
895 ReportsSavedResourceApi(common_internal.ApiRequester client) : 728 AccountsReportsSavedResourceApi(common_internal.ApiRequester client) :
896 _requester = client; 729 _requester = client;
897 730
898 /** 731 /**
899 * Generate an Ad Exchange report based on the saved report ID sent in the 732 * Generate an Ad Exchange report based on the saved report ID sent in the
900 * query parameters. 733 * query parameters.
901 * 734 *
902 * Request parameters: 735 * Request parameters:
903 * 736 *
737 * [accountId] - Account owning the saved report.
738 *
904 * [savedReportId] - The saved report to retrieve. 739 * [savedReportId] - The saved report to retrieve.
905 * 740 *
906 * [locale] - Optional locale to use for translating report output to a local 741 * [locale] - Optional locale to use for translating report output to a local
907 * language. Defaults to "en_US" if not specified. 742 * language. Defaults to "en_US" if not specified.
908 * Value must have pattern "[a-zA-Z_]+". 743 * Value must have pattern "[a-zA-Z_]+".
909 * 744 *
910 * [maxResults] - The maximum number of rows of report data to return. 745 * [maxResults] - The maximum number of rows of report data to return.
911 * Value must be between "0" and "50000". 746 * Value must be between "0" and "50000".
912 * 747 *
913 * [startIndex] - Index of the first row of report data to return. 748 * [startIndex] - Index of the first row of report data to return.
914 * Value must be between "0" and "5000". 749 * Value must be between "0" and "5000".
915 * 750 *
916 * Completes with a [Report]. 751 * Completes with a [Report].
917 * 752 *
918 * Completes with a [common.ApiRequestError] if the API endpoint returned an 753 * Completes with a [common.ApiRequestError] if the API endpoint returned an
919 * error. 754 * error.
920 * 755 *
921 * If the used [http.Client] completes with an error when making a REST call, 756 * If the used [http.Client] completes with an error when making a REST call,
922 * this method will complete with the same error. 757 * this method will complete with the same error.
923 */ 758 */
924 async.Future<Report> generate(core.String savedReportId, {core.String locale, core.int maxResults, core.int startIndex}) { 759 async.Future<Report> generate(core.String accountId, core.String savedReportId , {core.String locale, core.int maxResults, core.int startIndex}) {
925 var _url = null; 760 var _url = null;
926 var _queryParams = new core.Map(); 761 var _queryParams = new core.Map();
927 var _uploadMedia = null; 762 var _uploadMedia = null;
928 var _uploadOptions = null; 763 var _uploadOptions = null;
929 var _downloadOptions = common.DownloadOptions.Metadata; 764 var _downloadOptions = common.DownloadOptions.Metadata;
930 var _body = null; 765 var _body = null;
931 766
767 if (accountId == null) {
768 throw new core.ArgumentError("Parameter accountId is required.");
769 }
932 if (savedReportId == null) { 770 if (savedReportId == null) {
933 throw new core.ArgumentError("Parameter savedReportId is required."); 771 throw new core.ArgumentError("Parameter savedReportId is required.");
934 } 772 }
935 if (locale != null) { 773 if (locale != null) {
936 _queryParams["locale"] = [locale]; 774 _queryParams["locale"] = [locale];
937 } 775 }
938 if (maxResults != null) { 776 if (maxResults != null) {
939 _queryParams["maxResults"] = ["${maxResults}"]; 777 _queryParams["maxResults"] = ["${maxResults}"];
940 } 778 }
941 if (startIndex != null) { 779 if (startIndex != null) {
942 _queryParams["startIndex"] = ["${startIndex}"]; 780 _queryParams["startIndex"] = ["${startIndex}"];
943 } 781 }
944 782
945 783
946 _url = 'reports/' + common_internal.Escaper.ecapeVariable('$savedReportId'); 784 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + ' /reports/' + common_internal.Escaper.ecapeVariable('$savedReportId');
947 785
948 var _response = _requester.request(_url, 786 var _response = _requester.request(_url,
949 "GET", 787 "GET",
950 body: _body, 788 body: _body,
951 queryParams: _queryParams, 789 queryParams: _queryParams,
952 uploadOptions: _uploadOptions, 790 uploadOptions: _uploadOptions,
953 uploadMedia: _uploadMedia, 791 uploadMedia: _uploadMedia,
954 downloadOptions: _downloadOptions); 792 downloadOptions: _downloadOptions);
955 return _response.then((data) => new Report.fromJson(data)); 793 return _response.then((data) => new Report.fromJson(data));
956 } 794 }
957 795
958 /** 796 /**
959 * List all saved reports in this Ad Exchange account. 797 * List all saved reports in this Ad Exchange account.
960 * 798 *
961 * Request parameters: 799 * Request parameters:
962 * 800 *
801 * [accountId] - Account owning the saved reports.
802 *
963 * [maxResults] - The maximum number of saved reports to include in the 803 * [maxResults] - The maximum number of saved reports to include in the
964 * response, used for paging. 804 * response, used for paging.
965 * Value must be between "0" and "100". 805 * Value must be between "0" and "100".
966 * 806 *
967 * [pageToken] - A continuation token, used to page through saved reports. To 807 * [pageToken] - A continuation token, used to page through saved reports. To
968 * retrieve the next page, set this parameter to the value of "nextPageToken" 808 * retrieve the next page, set this parameter to the value of "nextPageToken"
969 * from the previous response. 809 * from the previous response.
970 * 810 *
971 * Completes with a [SavedReports]. 811 * Completes with a [SavedReports].
972 * 812 *
973 * Completes with a [common.ApiRequestError] if the API endpoint returned an 813 * Completes with a [common.ApiRequestError] if the API endpoint returned an
974 * error. 814 * error.
975 * 815 *
976 * If the used [http.Client] completes with an error when making a REST call, 816 * If the used [http.Client] completes with an error when making a REST call,
977 * this method will complete with the same error. 817 * this method will complete with the same error.
978 */ 818 */
979 async.Future<SavedReports> list({core.int maxResults, core.String pageToken}) { 819 async.Future<SavedReports> list(core.String accountId, {core.int maxResults, c ore.String pageToken}) {
980 var _url = null; 820 var _url = null;
981 var _queryParams = new core.Map(); 821 var _queryParams = new core.Map();
982 var _uploadMedia = null; 822 var _uploadMedia = null;
983 var _uploadOptions = null; 823 var _uploadOptions = null;
984 var _downloadOptions = common.DownloadOptions.Metadata; 824 var _downloadOptions = common.DownloadOptions.Metadata;
985 var _body = null; 825 var _body = null;
986 826
827 if (accountId == null) {
828 throw new core.ArgumentError("Parameter accountId is required.");
829 }
987 if (maxResults != null) { 830 if (maxResults != null) {
988 _queryParams["maxResults"] = ["${maxResults}"]; 831 _queryParams["maxResults"] = ["${maxResults}"];
989 } 832 }
990 if (pageToken != null) { 833 if (pageToken != null) {
991 _queryParams["pageToken"] = [pageToken]; 834 _queryParams["pageToken"] = [pageToken];
992 } 835 }
993 836
994 837
995 _url = 'reports/saved'; 838 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + ' /reports/saved';
996 839
997 var _response = _requester.request(_url, 840 var _response = _requester.request(_url,
998 "GET", 841 "GET",
999 body: _body, 842 body: _body,
1000 queryParams: _queryParams, 843 queryParams: _queryParams,
1001 uploadOptions: _uploadOptions, 844 uploadOptions: _uploadOptions,
1002 uploadMedia: _uploadMedia, 845 uploadMedia: _uploadMedia,
1003 downloadOptions: _downloadOptions); 846 downloadOptions: _downloadOptions);
1004 return _response.then((data) => new SavedReports.fromJson(data)); 847 return _response.then((data) => new SavedReports.fromJson(data));
1005 } 848 }
1006 849
1007 } 850 }
1008 851
1009 852
1010 /** Not documented yet. */ 853 /** Not documented yet. */
1011 class UrlchannelsResourceApi { 854 class AccountsUrlchannelsResourceApi {
1012 final common_internal.ApiRequester _requester; 855 final common_internal.ApiRequester _requester;
1013 856
1014 UrlchannelsResourceApi(common_internal.ApiRequester client) : 857 AccountsUrlchannelsResourceApi(common_internal.ApiRequester client) :
1015 _requester = client; 858 _requester = client;
1016 859
1017 /** 860 /**
1018 * List all URL channels in the specified ad client for this Ad Exchange 861 * List all URL channels in the specified ad client for this Ad Exchange
1019 * account. 862 * account.
1020 * 863 *
1021 * Request parameters: 864 * Request parameters:
1022 * 865 *
866 * [accountId] - Account to which the ad client belongs.
867 *
1023 * [adClientId] - Ad client for which to list URL channels. 868 * [adClientId] - Ad client for which to list URL channels.
1024 * 869 *
1025 * [maxResults] - The maximum number of URL channels to include in the 870 * [maxResults] - The maximum number of URL channels to include in the
1026 * response, used for paging. 871 * response, used for paging.
1027 * Value must be between "0" and "10000". 872 * Value must be between "0" and "10000".
1028 * 873 *
1029 * [pageToken] - A continuation token, used to page through URL channels. To 874 * [pageToken] - A continuation token, used to page through URL channels. To
1030 * retrieve the next page, set this parameter to the value of "nextPageToken" 875 * retrieve the next page, set this parameter to the value of "nextPageToken"
1031 * from the previous response. 876 * from the previous response.
1032 * 877 *
1033 * Completes with a [UrlChannels]. 878 * Completes with a [UrlChannels].
1034 * 879 *
1035 * Completes with a [common.ApiRequestError] if the API endpoint returned an 880 * Completes with a [common.ApiRequestError] if the API endpoint returned an
1036 * error. 881 * error.
1037 * 882 *
1038 * If the used [http.Client] completes with an error when making a REST call, 883 * If the used [http.Client] completes with an error when making a REST call,
1039 * this method will complete with the same error. 884 * this method will complete with the same error.
1040 */ 885 */
1041 async.Future<UrlChannels> list(core.String adClientId, {core.int maxResults, c ore.String pageToken}) { 886 async.Future<UrlChannels> list(core.String accountId, core.String adClientId, {core.int maxResults, core.String pageToken}) {
1042 var _url = null; 887 var _url = null;
1043 var _queryParams = new core.Map(); 888 var _queryParams = new core.Map();
1044 var _uploadMedia = null; 889 var _uploadMedia = null;
1045 var _uploadOptions = null; 890 var _uploadOptions = null;
1046 var _downloadOptions = common.DownloadOptions.Metadata; 891 var _downloadOptions = common.DownloadOptions.Metadata;
1047 var _body = null; 892 var _body = null;
1048 893
894 if (accountId == null) {
895 throw new core.ArgumentError("Parameter accountId is required.");
896 }
1049 if (adClientId == null) { 897 if (adClientId == null) {
1050 throw new core.ArgumentError("Parameter adClientId is required."); 898 throw new core.ArgumentError("Parameter adClientId is required.");
1051 } 899 }
1052 if (maxResults != null) { 900 if (maxResults != null) {
1053 _queryParams["maxResults"] = ["${maxResults}"]; 901 _queryParams["maxResults"] = ["${maxResults}"];
1054 } 902 }
1055 if (pageToken != null) { 903 if (pageToken != null) {
1056 _queryParams["pageToken"] = [pageToken]; 904 _queryParams["pageToken"] = [pageToken];
1057 } 905 }
1058 906
1059 907
1060 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/urlchannels'; 908 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + ' /adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/urlchann els';
1061 909
1062 var _response = _requester.request(_url, 910 var _response = _requester.request(_url,
1063 "GET", 911 "GET",
1064 body: _body, 912 body: _body,
1065 queryParams: _queryParams, 913 queryParams: _queryParams,
1066 uploadOptions: _uploadOptions, 914 uploadOptions: _uploadOptions,
1067 uploadMedia: _uploadMedia, 915 uploadMedia: _uploadMedia,
1068 downloadOptions: _downloadOptions); 916 downloadOptions: _downloadOptions);
1069 return _response.then((data) => new UrlChannels.fromJson(data)); 917 return _response.then((data) => new UrlChannels.fromJson(data));
1070 } 918 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 } 957 }
1110 if (name != null) { 958 if (name != null) {
1111 _json["name"] = name; 959 _json["name"] = name;
1112 } 960 }
1113 return _json; 961 return _json;
1114 } 962 }
1115 } 963 }
1116 964
1117 965
1118 /** Not documented yet. */ 966 /** Not documented yet. */
1119 class AdClient { 967 class Accounts {
1120 /** Whether this ad client is opted in to ARC. */ 968 /** ETag of this response for caching purposes. */
1121 core.bool arcOptIn; 969 core.String etag;
1122 970
1123 /** Unique identifier of this ad client. */ 971 /** The accounts returned in this list response. */
1124 core.String id; 972 core.List<Account> items;
1125 973
1126 /** Kind of resource this is, in this case adexchangeseller#adClient. */ 974 /** Kind of list this is, in this case adexchangeseller#accounts. */
1127 core.String kind; 975 core.String kind;
1128 976
1129 /** 977 /**
1130 * This ad client's product code, which corresponds to the PRODUCT_CODE report 978 * Continuation token used to page through accounts. To retrieve the next page
1131 * dimension. 979 * of results, set the next request's "pageToken" value to this.
1132 */
1133 core.String productCode;
1134
1135 /** Whether this ad client supports being reported on. */
1136 core.bool supportsReporting;
1137
1138
1139 AdClient();
1140
1141 AdClient.fromJson(core.Map _json) {
1142 if (_json.containsKey("arcOptIn")) {
1143 arcOptIn = _json["arcOptIn"];
1144 }
1145 if (_json.containsKey("id")) {
1146 id = _json["id"];
1147 }
1148 if (_json.containsKey("kind")) {
1149 kind = _json["kind"];
1150 }
1151 if (_json.containsKey("productCode")) {
1152 productCode = _json["productCode"];
1153 }
1154 if (_json.containsKey("supportsReporting")) {
1155 supportsReporting = _json["supportsReporting"];
1156 }
1157 }
1158
1159 core.Map toJson() {
1160 var _json = new core.Map();
1161 if (arcOptIn != null) {
1162 _json["arcOptIn"] = arcOptIn;
1163 }
1164 if (id != null) {
1165 _json["id"] = id;
1166 }
1167 if (kind != null) {
1168 _json["kind"] = kind;
1169 }
1170 if (productCode != null) {
1171 _json["productCode"] = productCode;
1172 }
1173 if (supportsReporting != null) {
1174 _json["supportsReporting"] = supportsReporting;
1175 }
1176 return _json;
1177 }
1178 }
1179
1180
1181 /** Not documented yet. */
1182 class AdClients {
1183 /** ETag of this response for caching purposes. */
1184 core.String etag;
1185
1186 /** The ad clients returned in this list response. */
1187 core.List<AdClient> items;
1188
1189 /** Kind of list this is, in this case adexchangeseller#adClients. */
1190 core.String kind;
1191
1192 /**
1193 * Continuation token used to page through ad clients. To retrieve the next
1194 * page of results, set the next request's "pageToken" value to this.
1195 */ 980 */
1196 core.String nextPageToken; 981 core.String nextPageToken;
1197 982
1198 983
1199 AdClients(); 984 Accounts();
1200 985
1201 AdClients.fromJson(core.Map _json) { 986 Accounts.fromJson(core.Map _json) {
1202 if (_json.containsKey("etag")) { 987 if (_json.containsKey("etag")) {
1203 etag = _json["etag"]; 988 etag = _json["etag"];
1204 } 989 }
1205 if (_json.containsKey("items")) { 990 if (_json.containsKey("items")) {
1206 items = _json["items"].map((value) => new AdClient.fromJson(value)).toList (); 991 items = _json["items"].map((value) => new Account.fromJson(value)).toList( );
1207 } 992 }
1208 if (_json.containsKey("kind")) { 993 if (_json.containsKey("kind")) {
1209 kind = _json["kind"]; 994 kind = _json["kind"];
1210 } 995 }
1211 if (_json.containsKey("nextPageToken")) { 996 if (_json.containsKey("nextPageToken")) {
1212 nextPageToken = _json["nextPageToken"]; 997 nextPageToken = _json["nextPageToken"];
1213 } 998 }
1214 } 999 }
1215 1000
1216 core.Map toJson() { 1001 core.Map toJson() {
1217 var _json = new core.Map(); 1002 var _json = new core.Map();
1218 if (etag != null) { 1003 if (etag != null) {
1219 _json["etag"] = etag; 1004 _json["etag"] = etag;
1220 } 1005 }
1221 if (items != null) { 1006 if (items != null) {
1222 _json["items"] = items.map((value) => (value).toJson()).toList(); 1007 _json["items"] = items.map((value) => (value).toJson()).toList();
1223 } 1008 }
1224 if (kind != null) { 1009 if (kind != null) {
1225 _json["kind"] = kind; 1010 _json["kind"] = kind;
1226 } 1011 }
1227 if (nextPageToken != null) { 1012 if (nextPageToken != null) {
1228 _json["nextPageToken"] = nextPageToken; 1013 _json["nextPageToken"] = nextPageToken;
1229 } 1014 }
1230 return _json; 1015 return _json;
1231 } 1016 }
1232 } 1017 }
1233 1018
1234 1019
1235 /** Not documented yet. */ 1020 /** Not documented yet. */
1236 class AdUnit { 1021 class AdClient {
1237 /** 1022 /** Whether this ad client is opted in to ARC. */
1238 * Identity code of this ad unit, not necessarily unique across ad clients. 1023 core.bool arcOptIn;
1239 */ 1024
1240 core.String code; 1025 /** Unique identifier of this ad client. */
1026 core.String id;
1027
1028 /** Kind of resource this is, in this case adexchangeseller#adClient. */
1029 core.String kind;
1241 1030
1242 /** 1031 /**
1243 * Unique identifier of this ad unit. This should be considered an opaque 1032 * This ad client's product code, which corresponds to the PRODUCT_CODE report
1244 * identifier; it is not safe to rely on it being in any particular format. 1033 * dimension.
1245 */ 1034 */
1246 core.String id; 1035 core.String productCode;
1247 1036
1248 /** Kind of resource this is, in this case adexchangeseller#adUnit. */ 1037 /** Whether this ad client supports being reported on. */
1249 core.String kind; 1038 core.bool supportsReporting;
1250
1251 /** Name of this ad unit. */
1252 core.String name;
1253
1254 /**
1255 * Status of this ad unit. Possible values are:
1256 * NEW: Indicates that the ad unit was created within the last seven days and
1257 * does not yet have any activity associated with it.
1258 *
1259 * ACTIVE: Indicates that there has been activity on this ad unit in the last
1260 * seven days.
1261 *
1262 * INACTIVE: Indicates that there has been no activity on this ad unit in the
1263 * last seven days.
1264 */
1265 core.String status;
1266 1039
1267 1040
1268 AdUnit(); 1041 AdClient();
1269 1042
1270 AdUnit.fromJson(core.Map _json) { 1043 AdClient.fromJson(core.Map _json) {
1271 if (_json.containsKey("code")) { 1044 if (_json.containsKey("arcOptIn")) {
1272 code = _json["code"]; 1045 arcOptIn = _json["arcOptIn"];
1273 } 1046 }
1274 if (_json.containsKey("id")) { 1047 if (_json.containsKey("id")) {
1275 id = _json["id"]; 1048 id = _json["id"];
1276 } 1049 }
1277 if (_json.containsKey("kind")) { 1050 if (_json.containsKey("kind")) {
1278 kind = _json["kind"]; 1051 kind = _json["kind"];
1279 } 1052 }
1280 if (_json.containsKey("name")) { 1053 if (_json.containsKey("productCode")) {
1281 name = _json["name"]; 1054 productCode = _json["productCode"];
1282 } 1055 }
1283 if (_json.containsKey("status")) { 1056 if (_json.containsKey("supportsReporting")) {
1284 status = _json["status"]; 1057 supportsReporting = _json["supportsReporting"];
1285 } 1058 }
1286 } 1059 }
1287 1060
1288 core.Map toJson() { 1061 core.Map toJson() {
1289 var _json = new core.Map(); 1062 var _json = new core.Map();
1290 if (code != null) { 1063 if (arcOptIn != null) {
1291 _json["code"] = code; 1064 _json["arcOptIn"] = arcOptIn;
1292 } 1065 }
1293 if (id != null) { 1066 if (id != null) {
1294 _json["id"] = id; 1067 _json["id"] = id;
1295 } 1068 }
1296 if (kind != null) { 1069 if (kind != null) {
1297 _json["kind"] = kind; 1070 _json["kind"] = kind;
1298 } 1071 }
1299 if (name != null) { 1072 if (productCode != null) {
1300 _json["name"] = name; 1073 _json["productCode"] = productCode;
1301 } 1074 }
1302 if (status != null) { 1075 if (supportsReporting != null) {
1303 _json["status"] = status; 1076 _json["supportsReporting"] = supportsReporting;
1304 } 1077 }
1305 return _json; 1078 return _json;
1306 } 1079 }
1307 } 1080 }
1308 1081
1309 1082
1310 /** Not documented yet. */ 1083 /** Not documented yet. */
1311 class AdUnits { 1084 class AdClients {
1312 /** ETag of this response for caching purposes. */ 1085 /** ETag of this response for caching purposes. */
1313 core.String etag; 1086 core.String etag;
1314 1087
1315 /** The ad units returned in this list response. */ 1088 /** The ad clients returned in this list response. */
1316 core.List<AdUnit> items; 1089 core.List<AdClient> items;
1317 1090
1318 /** Kind of list this is, in this case adexchangeseller#adUnits. */ 1091 /** Kind of list this is, in this case adexchangeseller#adClients. */
1319 core.String kind; 1092 core.String kind;
1320 1093
1321 /** 1094 /**
1322 * Continuation token used to page through ad units. To retrieve the next page 1095 * Continuation token used to page through ad clients. To retrieve the next
1323 * of results, set the next request's "pageToken" value to this. 1096 * page of results, set the next request's "pageToken" value to this.
1324 */ 1097 */
1325 core.String nextPageToken; 1098 core.String nextPageToken;
1326 1099
1327 1100
1328 AdUnits(); 1101 AdClients();
1329 1102
1330 AdUnits.fromJson(core.Map _json) { 1103 AdClients.fromJson(core.Map _json) {
1331 if (_json.containsKey("etag")) { 1104 if (_json.containsKey("etag")) {
1332 etag = _json["etag"]; 1105 etag = _json["etag"];
1333 } 1106 }
1334 if (_json.containsKey("items")) { 1107 if (_json.containsKey("items")) {
1335 items = _json["items"].map((value) => new AdUnit.fromJson(value)).toList() ; 1108 items = _json["items"].map((value) => new AdClient.fromJson(value)).toList ();
1336 } 1109 }
1337 if (_json.containsKey("kind")) { 1110 if (_json.containsKey("kind")) {
1338 kind = _json["kind"]; 1111 kind = _json["kind"];
1339 } 1112 }
1340 if (_json.containsKey("nextPageToken")) { 1113 if (_json.containsKey("nextPageToken")) {
1341 nextPageToken = _json["nextPageToken"]; 1114 nextPageToken = _json["nextPageToken"];
1342 } 1115 }
1343 } 1116 }
1344 1117
1345 core.Map toJson() { 1118 core.Map toJson() {
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
2242 _json["kind"] = kind; 2015 _json["kind"] = kind;
2243 } 2016 }
2244 if (nextPageToken != null) { 2017 if (nextPageToken != null) {
2245 _json["nextPageToken"] = nextPageToken; 2018 _json["nextPageToken"] = nextPageToken;
2246 } 2019 }
2247 return _json; 2020 return _json;
2248 } 2021 }
2249 } 2022 }
2250 2023
2251 2024
OLDNEW
« no previous file with comments | « generated/googleapis/README.md ('k') | generated/googleapis/lib/civicinfo/us_v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698