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

Side by Side Diff: generated/googleapis/lib/people/v1.dart

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.people.v1; 3 library googleapis.people.v1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 ContactGroupsResourceApi(commons.ApiRequester client) : 62 ContactGroupsResourceApi(commons.ApiRequester client) :
63 _requester = client; 63 _requester = client;
64 64
65 /** 65 /**
66 * Get a list of contact groups owned by the authenticated user by specifying 66 * Get a list of contact groups owned by the authenticated user by specifying
67 * a list of contact group resource names. 67 * a list of contact group resource names.
68 * 68 *
69 * Request parameters: 69 * Request parameters:
70 * 70 *
71 * [resourceNames] - The resource names of the contact groups to get.
72 *
73 * [maxMembers] - Specifies the maximum number of members to return for each 71 * [maxMembers] - Specifies the maximum number of members to return for each
74 * group. 72 * group.
75 * 73 *
74 * [resourceNames] - The resource names of the contact groups to get.
75 *
76 * Completes with a [BatchGetContactGroupsResponse]. 76 * Completes with a [BatchGetContactGroupsResponse].
77 * 77 *
78 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 78 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
79 * error. 79 * error.
80 * 80 *
81 * If the used [http.Client] completes with an error when making a REST call, 81 * If the used [http.Client] completes with an error when making a REST call,
82 * this method will complete with the same error. 82 * this method will complete with the same error.
83 */ 83 */
84 async.Future<BatchGetContactGroupsResponse> batchGet({core.List<core.String> r esourceNames, core.int maxMembers}) { 84 async.Future<BatchGetContactGroupsResponse> batchGet({core.int maxMembers, cor e.List<core.String> resourceNames}) {
85 var _url = null; 85 var _url = null;
86 var _queryParams = new core.Map(); 86 var _queryParams = new core.Map();
87 var _uploadMedia = null; 87 var _uploadMedia = null;
88 var _uploadOptions = null; 88 var _uploadOptions = null;
89 var _downloadOptions = commons.DownloadOptions.Metadata; 89 var _downloadOptions = commons.DownloadOptions.Metadata;
90 var _body = null; 90 var _body = null;
91 91
92 if (maxMembers != null) {
93 _queryParams["maxMembers"] = ["${maxMembers}"];
94 }
92 if (resourceNames != null) { 95 if (resourceNames != null) {
93 _queryParams["resourceNames"] = resourceNames; 96 _queryParams["resourceNames"] = resourceNames;
94 } 97 }
95 if (maxMembers != null) {
96 _queryParams["maxMembers"] = ["${maxMembers}"];
97 }
98 98
99 _url = 'v1/contactGroups:batchGet'; 99 _url = 'v1/contactGroups:batchGet';
100 100
101 var _response = _requester.request(_url, 101 var _response = _requester.request(_url,
102 "GET", 102 "GET",
103 body: _body, 103 body: _body,
104 queryParams: _queryParams, 104 queryParams: _queryParams,
105 uploadOptions: _uploadOptions, 105 uploadOptions: _uploadOptions,
106 uploadMedia: _uploadMedia, 106 uploadMedia: _uploadMedia,
107 downloadOptions: _downloadOptions); 107 downloadOptions: _downloadOptions);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 downloadOptions: _downloadOptions); 239 downloadOptions: _downloadOptions);
240 return _response.then((data) => new ContactGroup.fromJson(data)); 240 return _response.then((data) => new ContactGroup.fromJson(data));
241 } 241 }
242 242
243 /** 243 /**
244 * List all contact groups owned by the authenticated user. Members of the 244 * List all contact groups owned by the authenticated user. Members of the
245 * contact groups are not populated. 245 * contact groups are not populated.
246 * 246 *
247 * Request parameters: 247 * Request parameters:
248 * 248 *
249 * [pageToken] - The next_page_token value returned from a previous call to
250 * [ListContactGroups](/people/api/rest/v1/contactgroups/list).
251 * Requests the next page of resources.
252 *
249 * [pageSize] - The maximum number of resources to return. 253 * [pageSize] - The maximum number of resources to return.
250 * 254 *
251 * [syncToken] - A sync token, returned by a previous call to 255 * [syncToken] - A sync token, returned by a previous call to
252 * `contactgroups.list`. 256 * `contactgroups.list`.
253 * Only resources changed since the sync token was created will be returned. 257 * Only resources changed since the sync token was created will be returned.
254 * 258 *
255 * [pageToken] - The next_page_token value returned from a previous call to
256 * [ListContactGroups](/people/api/rest/v1/contactgroups/list).
257 * Requests the next page of resources.
258 *
259 * Completes with a [ListContactGroupsResponse]. 259 * Completes with a [ListContactGroupsResponse].
260 * 260 *
261 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 261 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
262 * error. 262 * error.
263 * 263 *
264 * If the used [http.Client] completes with an error when making a REST call, 264 * If the used [http.Client] completes with an error when making a REST call,
265 * this method will complete with the same error. 265 * this method will complete with the same error.
266 */ 266 */
267 async.Future<ListContactGroupsResponse> list({core.int pageSize, core.String s yncToken, core.String pageToken}) { 267 async.Future<ListContactGroupsResponse> list({core.String pageToken, core.int pageSize, core.String syncToken}) {
268 var _url = null; 268 var _url = null;
269 var _queryParams = new core.Map(); 269 var _queryParams = new core.Map();
270 var _uploadMedia = null; 270 var _uploadMedia = null;
271 var _uploadOptions = null; 271 var _uploadOptions = null;
272 var _downloadOptions = commons.DownloadOptions.Metadata; 272 var _downloadOptions = commons.DownloadOptions.Metadata;
273 var _body = null; 273 var _body = null;
274 274
275 if (pageToken != null) {
276 _queryParams["pageToken"] = [pageToken];
277 }
275 if (pageSize != null) { 278 if (pageSize != null) {
276 _queryParams["pageSize"] = ["${pageSize}"]; 279 _queryParams["pageSize"] = ["${pageSize}"];
277 } 280 }
278 if (syncToken != null) { 281 if (syncToken != null) {
279 _queryParams["syncToken"] = [syncToken]; 282 _queryParams["syncToken"] = [syncToken];
280 } 283 }
281 if (pageToken != null) {
282 _queryParams["pageToken"] = [pageToken];
283 }
284 284
285 _url = 'v1/contactGroups'; 285 _url = 'v1/contactGroups';
286 286
287 var _response = _requester.request(_url, 287 var _response = _requester.request(_url,
288 "GET", 288 "GET",
289 body: _body, 289 body: _body,
290 queryParams: _queryParams, 290 queryParams: _queryParams,
291 uploadOptions: _uploadOptions, 291 uploadOptions: _uploadOptions,
292 uploadMedia: _uploadMedia, 292 uploadMedia: _uploadMedia,
293 downloadOptions: _downloadOptions); 293 downloadOptions: _downloadOptions);
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 * about. 503 * about.
504 * 504 *
505 * - To get information about the authenticated user, specify `people/me`. 505 * - To get information about the authenticated user, specify `people/me`.
506 * - To get information about a google account, specify 506 * - To get information about a google account, specify
507 * `people/`<var>account_id</var>. 507 * `people/`<var>account_id</var>.
508 * - To get information about a contact, specify the resource name that 508 * - To get information about a contact, specify the resource name that
509 * identifies the contact as returned by 509 * identifies the contact as returned by
510 * [`people.connections.list`](/people/api/rest/v1/people.connections/list). 510 * [`people.connections.list`](/people/api/rest/v1/people.connections/list).
511 * Value must have pattern "^people/[^/]+$". 511 * Value must have pattern "^people/[^/]+$".
512 * 512 *
513 * [requestMask_includeField] - **Required.** Comma-separated list of person
514 * fields to be included in the
515 * response. Each path should start with `person.`: for example,
516 * `person.names` or `person.photos`.
517 *
513 * [personFields] - **Required.** A field mask to restrict which fields on the 518 * [personFields] - **Required.** A field mask to restrict which fields on the
514 * person are 519 * person are
515 * returned. Valid values are: 520 * returned. Valid values are:
516 * 521 *
517 * * addresses 522 * * addresses
518 * * ageRanges 523 * * ageRanges
519 * * biographies 524 * * biographies
520 * * birthdays 525 * * birthdays
521 * * braggingRights 526 * * braggingRights
522 * * coverPhotos 527 * * coverPhotos
(...skipping 12 matching lines...) Expand all
535 * * phoneNumbers 540 * * phoneNumbers
536 * * photos 541 * * photos
537 * * relations 542 * * relations
538 * * relationshipInterests 543 * * relationshipInterests
539 * * relationshipStatuses 544 * * relationshipStatuses
540 * * residences 545 * * residences
541 * * skills 546 * * skills
542 * * taglines 547 * * taglines
543 * * urls 548 * * urls
544 * 549 *
545 * [requestMask_includeField] - **Required.** Comma-separated list of person
546 * fields to be included in the
547 * response. Each path should start with `person.`: for example,
548 * `person.names` or `person.photos`.
549 *
550 * Completes with a [Person]. 550 * Completes with a [Person].
551 * 551 *
552 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 552 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
553 * error. 553 * error.
554 * 554 *
555 * If the used [http.Client] completes with an error when making a REST call, 555 * If the used [http.Client] completes with an error when making a REST call,
556 * this method will complete with the same error. 556 * this method will complete with the same error.
557 */ 557 */
558 async.Future<Person> get(core.String resourceName, {core.String personFields, core.String requestMask_includeField}) { 558 async.Future<Person> get(core.String resourceName, {core.String requestMask_in cludeField, core.String personFields}) {
559 var _url = null; 559 var _url = null;
560 var _queryParams = new core.Map(); 560 var _queryParams = new core.Map();
561 var _uploadMedia = null; 561 var _uploadMedia = null;
562 var _uploadOptions = null; 562 var _uploadOptions = null;
563 var _downloadOptions = commons.DownloadOptions.Metadata; 563 var _downloadOptions = commons.DownloadOptions.Metadata;
564 var _body = null; 564 var _body = null;
565 565
566 if (resourceName == null) { 566 if (resourceName == null) {
567 throw new core.ArgumentError("Parameter resourceName is required."); 567 throw new core.ArgumentError("Parameter resourceName is required.");
568 } 568 }
569 if (requestMask_includeField != null) {
570 _queryParams["requestMask.includeField"] = [requestMask_includeField];
571 }
569 if (personFields != null) { 572 if (personFields != null) {
570 _queryParams["personFields"] = [personFields]; 573 _queryParams["personFields"] = [personFields];
571 } 574 }
572 if (requestMask_includeField != null) {
573 _queryParams["requestMask.includeField"] = [requestMask_includeField];
574 }
575 575
576 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resourceName'); 576 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resourceName');
577 577
578 var _response = _requester.request(_url, 578 var _response = _requester.request(_url,
579 "GET", 579 "GET",
580 body: _body, 580 body: _body,
581 queryParams: _queryParams, 581 queryParams: _queryParams,
582 uploadOptions: _uploadOptions, 582 uploadOptions: _uploadOptions,
583 uploadMedia: _uploadMedia, 583 uploadMedia: _uploadMedia,
584 downloadOptions: _downloadOptions); 584 downloadOptions: _downloadOptions);
585 return _response.then((data) => new Person.fromJson(data)); 585 return _response.then((data) => new Person.fromJson(data));
586 } 586 }
587 587
588 /** 588 /**
589 * Provides information about a list of specific people by specifying a list 589 * Provides information about a list of specific people by specifying a list
590 * of requested resource names. Use `people/me` to indicate the authenticated 590 * of requested resource names. Use `people/me` to indicate the authenticated
591 * user. 591 * user.
592 * <br> 592 * <br>
593 * The request throws a 400 error if 'personFields' is not specified. 593 * The request throws a 400 error if 'personFields' is not specified.
594 * 594 *
595 * Request parameters: 595 * Request parameters:
596 * 596 *
597 * [requestMask_includeField] - **Required.** Comma-separated list of person
598 * fields to be included in the
599 * response. Each path should start with `person.`: for example,
600 * `person.names` or `person.photos`.
601 *
602 * [resourceNames] - The resource names of the people to provide information
603 * about.
604 *
605 * - To get information about the authenticated user, specify `people/me`.
606 * - To get information about a google account, specify
607 * `people/`<var>account_id</var>.
608 * - To get information about a contact, specify the resource name that
609 * identifies the contact as returned by
610 * [`people.connections.list`](/people/api/rest/v1/people.connections/list).
611 *
612 * You can include up to 50 resource names in one request.
613 *
597 * [personFields] - **Required.** A field mask to restrict which fields on 614 * [personFields] - **Required.** A field mask to restrict which fields on
598 * each person are 615 * each person are
599 * returned. Valid values are: 616 * returned. Valid values are:
600 * 617 *
601 * * addresses 618 * * addresses
602 * * ageRanges 619 * * ageRanges
603 * * biographies 620 * * biographies
604 * * birthdays 621 * * birthdays
605 * * braggingRights 622 * * braggingRights
606 * * coverPhotos 623 * * coverPhotos
(...skipping 12 matching lines...) Expand all
619 * * phoneNumbers 636 * * phoneNumbers
620 * * photos 637 * * photos
621 * * relations 638 * * relations
622 * * relationshipInterests 639 * * relationshipInterests
623 * * relationshipStatuses 640 * * relationshipStatuses
624 * * residences 641 * * residences
625 * * skills 642 * * skills
626 * * taglines 643 * * taglines
627 * * urls 644 * * urls
628 * 645 *
629 * [requestMask_includeField] - **Required.** Comma-separated list of person
630 * fields to be included in the
631 * response. Each path should start with `person.`: for example,
632 * `person.names` or `person.photos`.
633 *
634 * [resourceNames] - The resource names of the people to provide information
635 * about.
636 *
637 * - To get information about the authenticated user, specify `people/me`.
638 * - To get information about a google account, specify
639 * `people/`<var>account_id</var>.
640 * - To get information about a contact, specify the resource name that
641 * identifies the contact as returned by
642 * [`people.connections.list`](/people/api/rest/v1/people.connections/list).
643 *
644 * You can include up to 50 resource names in one request.
645 *
646 * Completes with a [GetPeopleResponse]. 646 * Completes with a [GetPeopleResponse].
647 * 647 *
648 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 648 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
649 * error. 649 * error.
650 * 650 *
651 * If the used [http.Client] completes with an error when making a REST call, 651 * If the used [http.Client] completes with an error when making a REST call,
652 * this method will complete with the same error. 652 * this method will complete with the same error.
653 */ 653 */
654 async.Future<GetPeopleResponse> getBatchGet({core.String personFields, core.St ring requestMask_includeField, core.List<core.String> resourceNames}) { 654 async.Future<GetPeopleResponse> getBatchGet({core.String requestMask_includeFi eld, core.List<core.String> resourceNames, core.String personFields}) {
655 var _url = null; 655 var _url = null;
656 var _queryParams = new core.Map(); 656 var _queryParams = new core.Map();
657 var _uploadMedia = null; 657 var _uploadMedia = null;
658 var _uploadOptions = null; 658 var _uploadOptions = null;
659 var _downloadOptions = commons.DownloadOptions.Metadata; 659 var _downloadOptions = commons.DownloadOptions.Metadata;
660 var _body = null; 660 var _body = null;
661 661
662 if (personFields != null) {
663 _queryParams["personFields"] = [personFields];
664 }
665 if (requestMask_includeField != null) { 662 if (requestMask_includeField != null) {
666 _queryParams["requestMask.includeField"] = [requestMask_includeField]; 663 _queryParams["requestMask.includeField"] = [requestMask_includeField];
667 } 664 }
668 if (resourceNames != null) { 665 if (resourceNames != null) {
669 _queryParams["resourceNames"] = resourceNames; 666 _queryParams["resourceNames"] = resourceNames;
670 } 667 }
668 if (personFields != null) {
669 _queryParams["personFields"] = [personFields];
670 }
671 671
672 _url = 'v1/people:batchGet'; 672 _url = 'v1/people:batchGet';
673 673
674 var _response = _requester.request(_url, 674 var _response = _requester.request(_url,
675 "GET", 675 "GET",
676 body: _body, 676 body: _body,
677 queryParams: _queryParams, 677 queryParams: _queryParams,
678 uploadOptions: _uploadOptions, 678 uploadOptions: _uploadOptions,
679 uploadMedia: _uploadMedia, 679 uploadMedia: _uploadMedia,
680 downloadOptions: _downloadOptions); 680 downloadOptions: _downloadOptions);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 * - "LAST_MODIFIED_ASCENDING" : A LAST_MODIFIED_ASCENDING. 827 * - "LAST_MODIFIED_ASCENDING" : A LAST_MODIFIED_ASCENDING.
828 * - "FIRST_NAME_ASCENDING" : A FIRST_NAME_ASCENDING. 828 * - "FIRST_NAME_ASCENDING" : A FIRST_NAME_ASCENDING.
829 * - "LAST_NAME_ASCENDING" : A LAST_NAME_ASCENDING. 829 * - "LAST_NAME_ASCENDING" : A LAST_NAME_ASCENDING.
830 * 830 *
831 * [requestSyncToken] - Whether the response should include a sync token, 831 * [requestSyncToken] - Whether the response should include a sync token,
832 * which can be used to get 832 * which can be used to get
833 * all changes since the last request. 833 * all changes since the last request.
834 * 834 *
835 * [pageToken] - The token of the page to be returned. 835 * [pageToken] - The token of the page to be returned.
836 * 836 *
837 * [pageSize] - The number of connections to include in the response. Valid
838 * values are
839 * between 1 and 2000, inclusive. Defaults to 100.
840 *
841 * [requestMask_includeField] - **Required.** Comma-separated list of person 837 * [requestMask_includeField] - **Required.** Comma-separated list of person
842 * fields to be included in the 838 * fields to be included in the
843 * response. Each path should start with `person.`: for example, 839 * response. Each path should start with `person.`: for example,
844 * `person.names` or `person.photos`. 840 * `person.names` or `person.photos`.
845 * 841 *
842 * [pageSize] - The number of connections to include in the response. Valid
843 * values are
844 * between 1 and 2000, inclusive. Defaults to 100.
845 *
846 * [syncToken] - A sync token, returned by a previous call to 846 * [syncToken] - A sync token, returned by a previous call to
847 * `people.connections.list`. 847 * `people.connections.list`.
848 * Only resources changed since the sync token was created will be returned. 848 * Only resources changed since the sync token was created will be returned.
849 * 849 *
850 * Completes with a [ListConnectionsResponse]. 850 * Completes with a [ListConnectionsResponse].
851 * 851 *
852 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 852 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
853 * error. 853 * error.
854 * 854 *
855 * If the used [http.Client] completes with an error when making a REST call, 855 * If the used [http.Client] completes with an error when making a REST call,
856 * this method will complete with the same error. 856 * this method will complete with the same error.
857 */ 857 */
858 async.Future<ListConnectionsResponse> list(core.String resourceName, {core.Str ing personFields, core.String sortOrder, core.bool requestSyncToken, core.String pageToken, core.int pageSize, core.String requestMask_includeField, core.String syncToken}) { 858 async.Future<ListConnectionsResponse> list(core.String resourceName, {core.Str ing personFields, core.String sortOrder, core.bool requestSyncToken, core.String pageToken, core.String requestMask_includeField, core.int pageSize, core.String syncToken}) {
859 var _url = null; 859 var _url = null;
860 var _queryParams = new core.Map(); 860 var _queryParams = new core.Map();
861 var _uploadMedia = null; 861 var _uploadMedia = null;
862 var _uploadOptions = null; 862 var _uploadOptions = null;
863 var _downloadOptions = commons.DownloadOptions.Metadata; 863 var _downloadOptions = commons.DownloadOptions.Metadata;
864 var _body = null; 864 var _body = null;
865 865
866 if (resourceName == null) { 866 if (resourceName == null) {
867 throw new core.ArgumentError("Parameter resourceName is required."); 867 throw new core.ArgumentError("Parameter resourceName is required.");
868 } 868 }
869 if (personFields != null) { 869 if (personFields != null) {
870 _queryParams["personFields"] = [personFields]; 870 _queryParams["personFields"] = [personFields];
871 } 871 }
872 if (sortOrder != null) { 872 if (sortOrder != null) {
873 _queryParams["sortOrder"] = [sortOrder]; 873 _queryParams["sortOrder"] = [sortOrder];
874 } 874 }
875 if (requestSyncToken != null) { 875 if (requestSyncToken != null) {
876 _queryParams["requestSyncToken"] = ["${requestSyncToken}"]; 876 _queryParams["requestSyncToken"] = ["${requestSyncToken}"];
877 } 877 }
878 if (pageToken != null) { 878 if (pageToken != null) {
879 _queryParams["pageToken"] = [pageToken]; 879 _queryParams["pageToken"] = [pageToken];
880 } 880 }
881 if (requestMask_includeField != null) {
882 _queryParams["requestMask.includeField"] = [requestMask_includeField];
883 }
881 if (pageSize != null) { 884 if (pageSize != null) {
882 _queryParams["pageSize"] = ["${pageSize}"]; 885 _queryParams["pageSize"] = ["${pageSize}"];
883 } 886 }
884 if (requestMask_includeField != null) {
885 _queryParams["requestMask.includeField"] = [requestMask_includeField];
886 }
887 if (syncToken != null) { 887 if (syncToken != null) {
888 _queryParams["syncToken"] = [syncToken]; 888 _queryParams["syncToken"] = [syncToken];
889 } 889 }
890 890
891 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resourceName') + '/co nnections'; 891 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resourceName') + '/co nnections';
892 892
893 var _response = _requester.request(_url, 893 var _response = _requester.request(_url,
894 "GET", 894 "GET",
895 body: _body, 895 body: _body,
896 queryParams: _queryParams, 896 queryParams: _queryParams,
(...skipping 2728 matching lines...) Expand 10 before | Expand all | Expand 10 after
3625 } 3625 }
3626 if (type != null) { 3626 if (type != null) {
3627 _json["type"] = type; 3627 _json["type"] = type;
3628 } 3628 }
3629 if (value != null) { 3629 if (value != null) {
3630 _json["value"] = value; 3630 _json["value"] = value;
3631 } 3631 }
3632 return _json; 3632 return _json;
3633 } 3633 }
3634 } 3634 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/partners/v2.dart ('k') | generated/googleapis/lib/playmoviespartner/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698