OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis_beta.adexchangebuyer2.v2beta1; | 3 library googleapis_beta.adexchangebuyer2.v2beta1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 * (required) | 377 * (required) |
378 * | 378 * |
379 * [clientAccountId] - Numerical account ID of the client buyer to list | 379 * [clientAccountId] - Numerical account ID of the client buyer to list |
380 * invitations for. | 380 * invitations for. |
381 * (required) | 381 * (required) |
382 * You must either specify a string representation of a | 382 * You must either specify a string representation of a |
383 * numerical account identifier or the `-` character | 383 * numerical account identifier or the `-` character |
384 * to list all the invitations for all the clients | 384 * to list all the invitations for all the clients |
385 * of a given sponsor buyer. | 385 * of a given sponsor buyer. |
386 * | 386 * |
387 * [pageSize] - Requested page size. Server may return fewer clients than | |
388 * requested. | |
389 * If unspecified, server will pick an appropriate default. | |
390 * | |
391 * [pageToken] - A token identifying a page of results the server should | 387 * [pageToken] - A token identifying a page of results the server should |
392 * return. | 388 * return. |
393 * Typically, this is the value of | 389 * Typically, this is the value of |
394 * ListClientUserInvitationsResponse.nextPageToken | 390 * ListClientUserInvitationsResponse.nextPageToken |
395 * returned from the previous call to the | 391 * returned from the previous call to the |
396 * clients.invitations.list | 392 * clients.invitations.list |
397 * method. | 393 * method. |
398 * | 394 * |
| 395 * [pageSize] - Requested page size. Server may return fewer clients than |
| 396 * requested. |
| 397 * If unspecified, server will pick an appropriate default. |
| 398 * |
399 * Completes with a [ListClientUserInvitationsResponse]. | 399 * Completes with a [ListClientUserInvitationsResponse]. |
400 * | 400 * |
401 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 401 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
402 * error. | 402 * error. |
403 * | 403 * |
404 * If the used [http.Client] completes with an error when making a REST call, | 404 * If the used [http.Client] completes with an error when making a REST call, |
405 * this method will complete with the same error. | 405 * this method will complete with the same error. |
406 */ | 406 */ |
407 async.Future<ListClientUserInvitationsResponse> list(core.String accountId, co
re.String clientAccountId, {core.int pageSize, core.String pageToken}) { | 407 async.Future<ListClientUserInvitationsResponse> list(core.String accountId, co
re.String clientAccountId, {core.String pageToken, core.int pageSize}) { |
408 var _url = null; | 408 var _url = null; |
409 var _queryParams = new core.Map(); | 409 var _queryParams = new core.Map(); |
410 var _uploadMedia = null; | 410 var _uploadMedia = null; |
411 var _uploadOptions = null; | 411 var _uploadOptions = null; |
412 var _downloadOptions = commons.DownloadOptions.Metadata; | 412 var _downloadOptions = commons.DownloadOptions.Metadata; |
413 var _body = null; | 413 var _body = null; |
414 | 414 |
415 if (accountId == null) { | 415 if (accountId == null) { |
416 throw new core.ArgumentError("Parameter accountId is required."); | 416 throw new core.ArgumentError("Parameter accountId is required."); |
417 } | 417 } |
418 if (clientAccountId == null) { | 418 if (clientAccountId == null) { |
419 throw new core.ArgumentError("Parameter clientAccountId is required."); | 419 throw new core.ArgumentError("Parameter clientAccountId is required."); |
420 } | 420 } |
| 421 if (pageToken != null) { |
| 422 _queryParams["pageToken"] = [pageToken]; |
| 423 } |
421 if (pageSize != null) { | 424 if (pageSize != null) { |
422 _queryParams["pageSize"] = ["${pageSize}"]; | 425 _queryParams["pageSize"] = ["${pageSize}"]; |
423 } | 426 } |
424 if (pageToken != null) { | |
425 _queryParams["pageToken"] = [pageToken]; | |
426 } | |
427 | 427 |
428 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId') + '/invitations'; | 428 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId') + '/invitations'; |
429 | 429 |
430 var _response = _requester.request(_url, | 430 var _response = _requester.request(_url, |
431 "GET", | 431 "GET", |
432 body: _body, | 432 body: _body, |
433 queryParams: _queryParams, | 433 queryParams: _queryParams, |
434 uploadOptions: _uploadOptions, | 434 uploadOptions: _uploadOptions, |
435 uploadMedia: _uploadMedia, | 435 uploadMedia: _uploadMedia, |
436 downloadOptions: _downloadOptions); | 436 downloadOptions: _downloadOptions); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 * list users for. | 507 * list users for. |
508 * (required) | 508 * (required) |
509 * | 509 * |
510 * [clientAccountId] - The account ID of the client buyer to list users for. | 510 * [clientAccountId] - The account ID of the client buyer to list users for. |
511 * (required) | 511 * (required) |
512 * You must specify either a string representation of a | 512 * You must specify either a string representation of a |
513 * numerical account identifier or the `-` character | 513 * numerical account identifier or the `-` character |
514 * to list all the client users for all the clients | 514 * to list all the client users for all the clients |
515 * of a given sponsor buyer. | 515 * of a given sponsor buyer. |
516 * | 516 * |
517 * [pageSize] - Requested page size. The server may return fewer clients than | |
518 * requested. | |
519 * If unspecified, the server will pick an appropriate default. | |
520 * | |
521 * [pageToken] - A token identifying a page of results the server should | 517 * [pageToken] - A token identifying a page of results the server should |
522 * return. | 518 * return. |
523 * Typically, this is the value of | 519 * Typically, this is the value of |
524 * ListClientUsersResponse.nextPageToken | 520 * ListClientUsersResponse.nextPageToken |
525 * returned from the previous call to the | 521 * returned from the previous call to the |
526 * accounts.clients.users.list method. | 522 * accounts.clients.users.list method. |
527 * | 523 * |
| 524 * [pageSize] - Requested page size. The server may return fewer clients than |
| 525 * requested. |
| 526 * If unspecified, the server will pick an appropriate default. |
| 527 * |
528 * Completes with a [ListClientUsersResponse]. | 528 * Completes with a [ListClientUsersResponse]. |
529 * | 529 * |
530 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 530 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
531 * error. | 531 * error. |
532 * | 532 * |
533 * If the used [http.Client] completes with an error when making a REST call, | 533 * If the used [http.Client] completes with an error when making a REST call, |
534 * this method will complete with the same error. | 534 * this method will complete with the same error. |
535 */ | 535 */ |
536 async.Future<ListClientUsersResponse> list(core.String accountId, core.String
clientAccountId, {core.int pageSize, core.String pageToken}) { | 536 async.Future<ListClientUsersResponse> list(core.String accountId, core.String
clientAccountId, {core.String pageToken, core.int pageSize}) { |
537 var _url = null; | 537 var _url = null; |
538 var _queryParams = new core.Map(); | 538 var _queryParams = new core.Map(); |
539 var _uploadMedia = null; | 539 var _uploadMedia = null; |
540 var _uploadOptions = null; | 540 var _uploadOptions = null; |
541 var _downloadOptions = commons.DownloadOptions.Metadata; | 541 var _downloadOptions = commons.DownloadOptions.Metadata; |
542 var _body = null; | 542 var _body = null; |
543 | 543 |
544 if (accountId == null) { | 544 if (accountId == null) { |
545 throw new core.ArgumentError("Parameter accountId is required."); | 545 throw new core.ArgumentError("Parameter accountId is required."); |
546 } | 546 } |
547 if (clientAccountId == null) { | 547 if (clientAccountId == null) { |
548 throw new core.ArgumentError("Parameter clientAccountId is required."); | 548 throw new core.ArgumentError("Parameter clientAccountId is required."); |
549 } | 549 } |
| 550 if (pageToken != null) { |
| 551 _queryParams["pageToken"] = [pageToken]; |
| 552 } |
550 if (pageSize != null) { | 553 if (pageSize != null) { |
551 _queryParams["pageSize"] = ["${pageSize}"]; | 554 _queryParams["pageSize"] = ["${pageSize}"]; |
552 } | 555 } |
553 if (pageToken != null) { | |
554 _queryParams["pageToken"] = [pageToken]; | |
555 } | |
556 | 556 |
557 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId') + '/users'; | 557 _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '
/clients/' + commons.Escaper.ecapeVariable('$clientAccountId') + '/users'; |
558 | 558 |
559 var _response = _requester.request(_url, | 559 var _response = _requester.request(_url, |
560 "GET", | 560 "GET", |
561 body: _body, | 561 body: _body, |
562 queryParams: _queryParams, | 562 queryParams: _queryParams, |
563 uploadOptions: _uploadOptions, | 563 uploadOptions: _uploadOptions, |
564 uploadMedia: _uploadMedia, | 564 uploadMedia: _uploadMedia, |
565 downloadOptions: _downloadOptions); | 565 downloadOptions: _downloadOptions); |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 var _json = new core.Map(); | 1013 var _json = new core.Map(); |
1014 if (clients != null) { | 1014 if (clients != null) { |
1015 _json["clients"] = clients.map((value) => (value).toJson()).toList(); | 1015 _json["clients"] = clients.map((value) => (value).toJson()).toList(); |
1016 } | 1016 } |
1017 if (nextPageToken != null) { | 1017 if (nextPageToken != null) { |
1018 _json["nextPageToken"] = nextPageToken; | 1018 _json["nextPageToken"] = nextPageToken; |
1019 } | 1019 } |
1020 return _json; | 1020 return _json; |
1021 } | 1021 } |
1022 } | 1022 } |
OLD | NEW |