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

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

Issue 2987103002: Api-Roll 52: 2017-07-31 (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 *
71 * [maxMembers] - Specifies the maximum number of members to return for each 73 * [maxMembers] - Specifies the maximum number of members to return for each
72 * group. 74 * group.
73 * 75 *
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.int maxMembers, cor e.List<core.String> resourceNames}) { 84 async.Future<BatchGetContactGroupsResponse> batchGet({core.List<core.String> r esourceNames, core.int maxMembers}) {
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 (resourceNames != null) {
93 _queryParams["resourceNames"] = resourceNames;
94 }
92 if (maxMembers != null) { 95 if (maxMembers != null) {
93 _queryParams["maxMembers"] = ["${maxMembers}"]; 96 _queryParams["maxMembers"] = ["${maxMembers}"];
94 } 97 }
95 if (resourceNames != null) {
96 _queryParams["resourceNames"] = resourceNames;
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 * [pageSize] - The maximum number of resources to return.
250 *
249 * [syncToken] - A sync token, returned by a previous call to 251 * [syncToken] - A sync token, returned by a previous call to
250 * `contactgroups.list`. 252 * `contactgroups.list`.
251 * Only resources changed since the sync token was created will be returned. 253 * Only resources changed since the sync token was created will be returned.
252 * 254 *
253 * [pageToken] - The next_page_token value returned from a previous call to 255 * [pageToken] - The next_page_token value returned from a previous call to
254 * [ListContactGroups](/people/api/rest/v1/contactgroups/list). 256 * [ListContactGroups](/people/api/rest/v1/contactgroups/list).
255 * Requests the next page of resources. 257 * Requests the next page of resources.
256 * 258 *
257 * [pageSize] - The maximum number of resources to return.
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.String syncToken, core.Stri ng pageToken, core.int pageSize}) { 267 async.Future<ListContactGroupsResponse> list({core.int pageSize, core.String s yncToken, core.String pageToken}) {
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 (pageSize != null) {
276 _queryParams["pageSize"] = ["${pageSize}"];
277 }
275 if (syncToken != null) { 278 if (syncToken != null) {
276 _queryParams["syncToken"] = [syncToken]; 279 _queryParams["syncToken"] = [syncToken];
277 } 280 }
278 if (pageToken != null) { 281 if (pageToken != null) {
279 _queryParams["pageToken"] = [pageToken]; 282 _queryParams["pageToken"] = [pageToken];
280 } 283 }
281 if (pageSize != null) {
282 _queryParams["pageSize"] = ["${pageSize}"];
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);
294 return _response.then((data) => new ListContactGroupsResponse.fromJson(data) ); 294 return _response.then((data) => new ListContactGroupsResponse.fromJson(data) );
295 } 295 }
296 296
297 /** 297 /**
298 * Update the name of an existing contact group owned by the authenticated 298 * Update the name of an existing contact group owned by the authenticated
299 * user. 299 * user.
300 * 300 *
301 * [request] - The metadata request object. 301 * [request] - The metadata request object.
302 * 302 *
303 * Request parameters: 303 * Request parameters:
304 * 304 *
305 * [resourceName] - The resource name for the contact group, assigned by the 305 * [resourceName] - The resource name for the contact group, assigned by the
306 * server. An ASCII 306 * server. An ASCII
307 * string, in the form of `contactGroups/<contact_group_id>`. 307 * string, in the form of `contactGroups/`<var>contact_group_id</var>.
308 * Value must have pattern "^contactGroups/[^/]+$". 308 * Value must have pattern "^contactGroups/[^/]+$".
309 * 309 *
310 * Completes with a [ContactGroup]. 310 * Completes with a [ContactGroup].
311 * 311 *
312 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 312 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
313 * error. 313 * error.
314 * 314 *
315 * If the used [http.Client] completes with an error when making a REST call, 315 * If the used [http.Client] completes with an error when making a REST call,
316 * this method will complete with the same error. 316 * this method will complete with the same error.
317 */ 317 */
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 * `people/me` to indicate the authenticated user. 496 * `people/me` to indicate the authenticated user.
497 * <br> 497 * <br>
498 * The request throws a 400 error if 'personFields' is not specified. 498 * The request throws a 400 error if 'personFields' is not specified.
499 * 499 *
500 * Request parameters: 500 * Request parameters:
501 * 501 *
502 * [resourceName] - The resource name of the person to provide information 502 * [resourceName] - The resource name of the person to provide information
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 `people/<account_id>`. 506 * - To get information about a google account, specify
507 * `people/`<var>account_id</var>.
507 * - To get information about a contact, specify the resource name that 508 * - To get information about a contact, specify the resource name that
508 * identifies the contact as returned by 509 * identifies the contact as returned by
509 * [`people.connections.list`](/people/api/rest/v1/people.connections/list). 510 * [`people.connections.list`](/people/api/rest/v1/people.connections/list).
510 * Value must have pattern "^people/[^/]+$". 511 * Value must have pattern "^people/[^/]+$".
511 * 512 *
512 * [personFields] - **Required.** A field mask to restrict which fields on the 513 * [personFields] - **Required.** A field mask to restrict which fields on the
513 * person are 514 * person are
514 * returned. Valid values are: 515 * returned. Valid values are:
515 * 516 *
516 * * addresses 517 * * addresses
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 587
587 /** 588 /**
588 * 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
589 * of requested resource names. Use `people/me` to indicate the authenticated 590 * of requested resource names. Use `people/me` to indicate the authenticated
590 * user. 591 * user.
591 * <br> 592 * <br>
592 * The request throws a 400 error if 'personFields' is not specified. 593 * The request throws a 400 error if 'personFields' is not specified.
593 * 594 *
594 * Request parameters: 595 * Request parameters:
595 * 596 *
596 * [requestMask_includeField] - **Required.** Comma-separated list of person
597 * fields to be included in the
598 * response. Each path should start with `person.`: for example,
599 * `person.names` or `person.photos`.
600 *
601 * [resourceNames] - The resource name, such as one returned by
602 * [`people.connections.list`](/people/api/rest/v1/people.connections/list),
603 * of one of the people to provide information about. You can include this
604 * parameter up to 50 times in one request.
605 *
606 * [personFields] - **Required.** A field mask to restrict which fields on 597 * [personFields] - **Required.** A field mask to restrict which fields on
607 * each person are 598 * each person are
608 * returned. Valid values are: 599 * returned. Valid values are:
609 * 600 *
610 * * addresses 601 * * addresses
611 * * ageRanges 602 * * ageRanges
612 * * biographies 603 * * biographies
613 * * birthdays 604 * * birthdays
614 * * braggingRights 605 * * braggingRights
615 * * coverPhotos 606 * * coverPhotos
(...skipping 12 matching lines...) Expand all
628 * * phoneNumbers 619 * * phoneNumbers
629 * * photos 620 * * photos
630 * * relations 621 * * relations
631 * * relationshipInterests 622 * * relationshipInterests
632 * * relationshipStatuses 623 * * relationshipStatuses
633 * * residences 624 * * residences
634 * * skills 625 * * skills
635 * * taglines 626 * * taglines
636 * * urls 627 * * urls
637 * 628 *
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 *
638 * Completes with a [GetPeopleResponse]. 646 * Completes with a [GetPeopleResponse].
639 * 647 *
640 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 648 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
641 * error. 649 * error.
642 * 650 *
643 * 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,
644 * this method will complete with the same error. 652 * this method will complete with the same error.
645 */ 653 */
646 async.Future<GetPeopleResponse> getBatchGet({core.String requestMask_includeFi eld, core.List<core.String> resourceNames, core.String personFields}) { 654 async.Future<GetPeopleResponse> getBatchGet({core.String personFields, core.St ring requestMask_includeField, core.List<core.String> resourceNames}) {
647 var _url = null; 655 var _url = null;
648 var _queryParams = new core.Map(); 656 var _queryParams = new core.Map();
649 var _uploadMedia = null; 657 var _uploadMedia = null;
650 var _uploadOptions = null; 658 var _uploadOptions = null;
651 var _downloadOptions = commons.DownloadOptions.Metadata; 659 var _downloadOptions = commons.DownloadOptions.Metadata;
652 var _body = null; 660 var _body = null;
653 661
662 if (personFields != null) {
663 _queryParams["personFields"] = [personFields];
664 }
654 if (requestMask_includeField != null) { 665 if (requestMask_includeField != null) {
655 _queryParams["requestMask.includeField"] = [requestMask_includeField]; 666 _queryParams["requestMask.includeField"] = [requestMask_includeField];
656 } 667 }
657 if (resourceNames != null) { 668 if (resourceNames != null) {
658 _queryParams["resourceNames"] = resourceNames; 669 _queryParams["resourceNames"] = resourceNames;
659 } 670 }
660 if (personFields != null) {
661 _queryParams["personFields"] = [personFields];
662 }
663 671
664 _url = 'v1/people:batchGet'; 672 _url = 'v1/people:batchGet';
665 673
666 var _response = _requester.request(_url, 674 var _response = _requester.request(_url,
667 "GET", 675 "GET",
668 body: _body, 676 body: _body,
669 queryParams: _queryParams, 677 queryParams: _queryParams,
670 uploadOptions: _uploadOptions, 678 uploadOptions: _uploadOptions,
671 uploadMedia: _uploadMedia, 679 uploadMedia: _uploadMedia,
672 downloadOptions: _downloadOptions); 680 downloadOptions: _downloadOptions);
(...skipping 13 matching lines...) Expand all
686 * different than the contact's etag, which indicates the contact has changed 694 * different than the contact's etag, which indicates the contact has changed
687 * since its data was read. Clients should get the latest person and re-apply 695 * since its data was read. Clients should get the latest person and re-apply
688 * their updates to the latest person. 696 * their updates to the latest person.
689 * 697 *
690 * [request] - The metadata request object. 698 * [request] - The metadata request object.
691 * 699 *
692 * Request parameters: 700 * Request parameters:
693 * 701 *
694 * [resourceName] - The resource name for the person, assigned by the server. 702 * [resourceName] - The resource name for the person, assigned by the server.
695 * An ASCII string 703 * An ASCII string
696 * with a max length of 27 characters, in the form of `people/<person_id>`. 704 * with a max length of 27 characters, in the form of
705 * `people/`<var>person_id</var>.
697 * Value must have pattern "^people/[^/]+$". 706 * Value must have pattern "^people/[^/]+$".
698 * 707 *
699 * [updatePersonFields] - **Required.** A field mask to restrict which fields 708 * [updatePersonFields] - **Required.** A field mask to restrict which fields
700 * on the person are 709 * on the person are
701 * updated. Valid values are: 710 * updated. Valid values are:
702 * 711 *
703 * * addresses 712 * * addresses
704 * * biographies 713 * * biographies
705 * * birthdays 714 * * birthdays
706 * * braggingRights 715 * * braggingRights
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 * connected profiles. 781 * connected profiles.
773 * <br> 782 * <br>
774 * The request throws a 400 error if 'personFields' is not specified. 783 * The request throws a 400 error if 'personFields' is not specified.
775 * 784 *
776 * Request parameters: 785 * Request parameters:
777 * 786 *
778 * [resourceName] - The resource name to return connections for. Only 787 * [resourceName] - The resource name to return connections for. Only
779 * `people/me` is valid. 788 * `people/me` is valid.
780 * Value must have pattern "^people/[^/]+$". 789 * Value must have pattern "^people/[^/]+$".
781 * 790 *
782 * [syncToken] - A sync token, returned by a previous call to
783 * `people.connections.list`.
784 * Only resources changed since the sync token was created will be returned.
785 *
786 * [personFields] - **Required.** A field mask to restrict which fields on 791 * [personFields] - **Required.** A field mask to restrict which fields on
787 * each person are 792 * each person are
788 * returned. Valid values are: 793 * returned. Valid values are:
789 * 794 *
790 * * addresses 795 * * addresses
791 * * ageRanges 796 * * ageRanges
792 * * biographies 797 * * biographies
793 * * birthdays 798 * * birthdays
794 * * braggingRights 799 * * braggingRights
795 * * coverPhotos 800 * * coverPhotos
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 * 836 *
832 * [pageSize] - The number of connections to include in the response. Valid 837 * [pageSize] - The number of connections to include in the response. Valid
833 * values are 838 * values are
834 * between 1 and 2000, inclusive. Defaults to 100. 839 * between 1 and 2000, inclusive. Defaults to 100.
835 * 840 *
836 * [requestMask_includeField] - **Required.** Comma-separated list of person 841 * [requestMask_includeField] - **Required.** Comma-separated list of person
837 * fields to be included in the 842 * fields to be included in the
838 * response. Each path should start with `person.`: for example, 843 * response. Each path should start with `person.`: for example,
839 * `person.names` or `person.photos`. 844 * `person.names` or `person.photos`.
840 * 845 *
846 * [syncToken] - A sync token, returned by a previous call to
847 * `people.connections.list`.
848 * Only resources changed since the sync token was created will be returned.
849 *
841 * Completes with a [ListConnectionsResponse]. 850 * Completes with a [ListConnectionsResponse].
842 * 851 *
843 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 852 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
844 * error. 853 * error.
845 * 854 *
846 * 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,
847 * this method will complete with the same error. 856 * this method will complete with the same error.
848 */ 857 */
849 async.Future<ListConnectionsResponse> list(core.String resourceName, {core.Str ing syncToken, core.String personFields, core.String sortOrder, core.bool reques tSyncToken, core.String pageToken, core.int pageSize, core.String requestMask_in cludeField}) { 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}) {
850 var _url = null; 859 var _url = null;
851 var _queryParams = new core.Map(); 860 var _queryParams = new core.Map();
852 var _uploadMedia = null; 861 var _uploadMedia = null;
853 var _uploadOptions = null; 862 var _uploadOptions = null;
854 var _downloadOptions = commons.DownloadOptions.Metadata; 863 var _downloadOptions = commons.DownloadOptions.Metadata;
855 var _body = null; 864 var _body = null;
856 865
857 if (resourceName == null) { 866 if (resourceName == null) {
858 throw new core.ArgumentError("Parameter resourceName is required."); 867 throw new core.ArgumentError("Parameter resourceName is required.");
859 } 868 }
860 if (syncToken != null) {
861 _queryParams["syncToken"] = [syncToken];
862 }
863 if (personFields != null) { 869 if (personFields != null) {
864 _queryParams["personFields"] = [personFields]; 870 _queryParams["personFields"] = [personFields];
865 } 871 }
866 if (sortOrder != null) { 872 if (sortOrder != null) {
867 _queryParams["sortOrder"] = [sortOrder]; 873 _queryParams["sortOrder"] = [sortOrder];
868 } 874 }
869 if (requestSyncToken != null) { 875 if (requestSyncToken != null) {
870 _queryParams["requestSyncToken"] = ["${requestSyncToken}"]; 876 _queryParams["requestSyncToken"] = ["${requestSyncToken}"];
871 } 877 }
872 if (pageToken != null) { 878 if (pageToken != null) {
873 _queryParams["pageToken"] = [pageToken]; 879 _queryParams["pageToken"] = [pageToken];
874 } 880 }
875 if (pageSize != null) { 881 if (pageSize != null) {
876 _queryParams["pageSize"] = ["${pageSize}"]; 882 _queryParams["pageSize"] = ["${pageSize}"];
877 } 883 }
878 if (requestMask_includeField != null) { 884 if (requestMask_includeField != null) {
879 _queryParams["requestMask.includeField"] = [requestMask_includeField]; 885 _queryParams["requestMask.includeField"] = [requestMask_includeField];
880 } 886 }
887 if (syncToken != null) {
888 _queryParams["syncToken"] = [syncToken];
889 }
881 890
882 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resourceName') + '/co nnections'; 891 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resourceName') + '/co nnections';
883 892
884 var _response = _requester.request(_url, 893 var _response = _requester.request(_url,
885 "GET", 894 "GET",
886 body: _body, 895 body: _body,
887 queryParams: _queryParams, 896 queryParams: _queryParams,
888 uploadOptions: _uploadOptions, 897 uploadOptions: _uploadOptions,
889 uploadMedia: _uploadMedia, 898 uploadMedia: _uploadMedia,
890 downloadOptions: _downloadOptions); 899 downloadOptions: _downloadOptions);
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 core.List<core.String> memberResourceNames; 1245 core.List<core.String> memberResourceNames;
1237 /** Metadata about the contact group. */ 1246 /** Metadata about the contact group. */
1238 ContactGroupMetadata metadata; 1247 ContactGroupMetadata metadata;
1239 /** 1248 /**
1240 * The contact group name set by the group owner or a system provided name 1249 * The contact group name set by the group owner or a system provided name
1241 * for system groups. 1250 * for system groups.
1242 */ 1251 */
1243 core.String name; 1252 core.String name;
1244 /** 1253 /**
1245 * The resource name for the contact group, assigned by the server. An ASCII 1254 * The resource name for the contact group, assigned by the server. An ASCII
1246 * string, in the form of `contactGroups/<contact_group_id>`. 1255 * string, in the form of `contactGroups/`<var>contact_group_id</var>.
1247 */ 1256 */
1248 core.String resourceName; 1257 core.String resourceName;
1249 1258
1250 ContactGroup(); 1259 ContactGroup();
1251 1260
1252 ContactGroup.fromJson(core.Map _json) { 1261 ContactGroup.fromJson(core.Map _json) {
1253 if (_json.containsKey("etag")) { 1262 if (_json.containsKey("etag")) {
1254 etag = _json["etag"]; 1263 etag = _json["etag"];
1255 } 1264 }
1256 if (_json.containsKey("formattedName")) { 1265 if (_json.containsKey("formattedName")) {
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 _json["metadata"] = (metadata).toJson(); 2108 _json["metadata"] = (metadata).toJson();
2100 } 2109 }
2101 return _json; 2110 return _json;
2102 } 2111 }
2103 } 2112 }
2104 2113
2105 /** A request to modify an existing contact group's members. */ 2114 /** A request to modify an existing contact group's members. */
2106 class ModifyContactGroupMembersRequest { 2115 class ModifyContactGroupMembersRequest {
2107 /** 2116 /**
2108 * The resource names of the contact people to add in the form of in the form 2117 * The resource names of the contact people to add in the form of in the form
2109 * `people/<person_id>`. 2118 * `people/`<var>person_id</var>.
2110 */ 2119 */
2111 core.List<core.String> resourceNamesToAdd; 2120 core.List<core.String> resourceNamesToAdd;
2112 /** 2121 /**
2113 * The resource names of the contact people to remove in the form of in the 2122 * The resource names of the contact people to remove in the form of in the
2114 * form of `people/<person_id>`. 2123 * form of `people/`<var>person_id</var>.
2115 */ 2124 */
2116 core.List<core.String> resourceNamesToRemove; 2125 core.List<core.String> resourceNamesToRemove;
2117 2126
2118 ModifyContactGroupMembersRequest(); 2127 ModifyContactGroupMembersRequest();
2119 2128
2120 ModifyContactGroupMembersRequest.fromJson(core.Map _json) { 2129 ModifyContactGroupMembersRequest.fromJson(core.Map _json) {
2121 if (_json.containsKey("resourceNamesToAdd")) { 2130 if (_json.containsKey("resourceNamesToAdd")) {
2122 resourceNamesToAdd = _json["resourceNamesToAdd"]; 2131 resourceNamesToAdd = _json["resourceNamesToAdd"];
2123 } 2132 }
2124 if (_json.containsKey("resourceNamesToRemove")) { 2133 if (_json.containsKey("resourceNamesToRemove")) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2157 _json["notFoundResourceNames"] = notFoundResourceNames; 2166 _json["notFoundResourceNames"] = notFoundResourceNames;
2158 } 2167 }
2159 return _json; 2168 return _json;
2160 } 2169 }
2161 } 2170 }
2162 2171
2163 /** A person's name. If the name is a mononym, the family name is empty. */ 2172 /** A person's name. If the name is a mononym, the family name is empty. */
2164 class Name { 2173 class Name {
2165 /** 2174 /**
2166 * The read-only display name formatted according to the locale specified by 2175 * The read-only display name formatted according to the locale specified by
2167 * the viewer's account or the <code>Accept-Language</code> HTTP header. 2176 * the viewer's account or the `Accept-Language` HTTP header.
2168 */ 2177 */
2169 core.String displayName; 2178 core.String displayName;
2170 /** 2179 /**
2171 * The read-only display name with the last name first formatted according to 2180 * The read-only display name with the last name first formatted according to
2172 * the locale specified by the viewer's account or the 2181 * the locale specified by the viewer's account or the
2173 * <code>Accept-Language</code> HTTP header. 2182 * `Accept-Language` HTTP header.
2174 */ 2183 */
2175 core.String displayNameLastFirst; 2184 core.String displayNameLastFirst;
2176 /** The family name. */ 2185 /** The family name. */
2177 core.String familyName; 2186 core.String familyName;
2178 /** The given name. */ 2187 /** The given name. */
2179 core.String givenName; 2188 core.String givenName;
2180 /** The honorific prefixes, such as `Mrs.` or `Dr.` */ 2189 /** The honorific prefixes, such as `Mrs.` or `Dr.` */
2181 core.String honorificPrefix; 2190 core.String honorificPrefix;
2182 /** The honorific suffixes, such as `Jr.` */ 2191 /** The honorific suffixes, such as `Jr.` */
2183 core.String honorificSuffix; 2192 core.String honorificSuffix;
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
2587 /** The person's relations. */ 2596 /** The person's relations. */
2588 core.List<Relation> relations; 2597 core.List<Relation> relations;
2589 /** The person's read-only relationship interests. */ 2598 /** The person's read-only relationship interests. */
2590 core.List<RelationshipInterest> relationshipInterests; 2599 core.List<RelationshipInterest> relationshipInterests;
2591 /** The person's read-only relationship statuses. */ 2600 /** The person's read-only relationship statuses. */
2592 core.List<RelationshipStatus> relationshipStatuses; 2601 core.List<RelationshipStatus> relationshipStatuses;
2593 /** The person's residences. */ 2602 /** The person's residences. */
2594 core.List<Residence> residences; 2603 core.List<Residence> residences;
2595 /** 2604 /**
2596 * The resource name for the person, assigned by the server. An ASCII string 2605 * The resource name for the person, assigned by the server. An ASCII string
2597 * with a max length of 27 characters, in the form of `people/<person_id>`. 2606 * with a max length of 27 characters, in the form of
2607 * `people/`<var>person_id</var>.
2598 */ 2608 */
2599 core.String resourceName; 2609 core.String resourceName;
2600 /** The person's skills. */ 2610 /** The person's skills. */
2601 core.List<Skill> skills; 2611 core.List<Skill> skills;
2602 /** The person's read-only taglines. */ 2612 /** The person's read-only taglines. */
2603 core.List<Tagline> taglines; 2613 core.List<Tagline> taglines;
2604 /** The person's associated URLs. */ 2614 /** The person's associated URLs. */
2605 core.List<Url> urls; 2615 core.List<Url> urls;
2606 2616
2607 Person(); 2617 Person();
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
3007 3017
3008 /** 3018 /**
3009 * A person's read-only photo. A picture shown next to the person's name to 3019 * A person's read-only photo. A picture shown next to the person's name to
3010 * help others recognize the person. 3020 * help others recognize the person.
3011 */ 3021 */
3012 class Photo { 3022 class Photo {
3013 /** Metadata about the photo. */ 3023 /** Metadata about the photo. */
3014 FieldMetadata metadata; 3024 FieldMetadata metadata;
3015 /** 3025 /**
3016 * The URL of the photo. You can change the desired size by appending a query 3026 * The URL of the photo. You can change the desired size by appending a query
3017 * parameter `sz=<size>` at the end of the url. Example: 3027 * parameter `sz=`<var>size</var> at the end of the url. Example:
3018 * `https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/AAAAAAAABa8/00g zXvDBYqw/s100/photo.jpg?sz=50` 3028 * `https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/AAAAAAAABa8/00g zXvDBYqw/s100/photo.jpg?sz=50`
3019 */ 3029 */
3020 core.String url; 3030 core.String url;
3021 3031
3022 Photo(); 3032 Photo();
3023 3033
3024 Photo.fromJson(core.Map _json) { 3034 Photo.fromJson(core.Map _json) {
3025 if (_json.containsKey("metadata")) { 3035 if (_json.containsKey("metadata")) {
3026 metadata = new FieldMetadata.fromJson(_json["metadata"]); 3036 metadata = new FieldMetadata.fromJson(_json["metadata"]);
3027 } 3037 }
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
3318 if (value != null) { 3328 if (value != null) {
3319 _json["value"] = value; 3329 _json["value"] = value;
3320 } 3330 }
3321 return _json; 3331 return _json;
3322 } 3332 }
3323 } 3333 }
3324 3334
3325 /** The source of a field. */ 3335 /** The source of a field. */
3326 class Source { 3336 class Source {
3327 /** 3337 /**
3338 * **Only populated in `person.metadata.sources`.**
3339 *
3328 * The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the 3340 * The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
3329 * source. Used for web cache validation. Only populated in 3341 * source. Used for web cache validation.
3330 * person.metadata.sources.
3331 */ 3342 */
3332 core.String etag; 3343 core.String etag;
3333 /** The unique identifier within the source type generated by the server. */ 3344 /** The unique identifier within the source type generated by the server. */
3334 core.String id; 3345 core.String id;
3335 /** Metadata about a source of type PROFILE. */ 3346 /**
3347 * **Only populated in `person.metadata.sources`.**
3348 *
3349 * Metadata about a source of type PROFILE.
3350 */
3336 ProfileMetadata profileMetadata; 3351 ProfileMetadata profileMetadata;
3337 /** 3352 /**
3338 * The source type. 3353 * The source type.
3339 * Possible string values are: 3354 * Possible string values are:
3340 * - "SOURCE_TYPE_UNSPECIFIED" : Unspecified. 3355 * - "SOURCE_TYPE_UNSPECIFIED" : Unspecified.
3341 * - "ACCOUNT" : [Google Account](https://accounts.google.com). 3356 * - "ACCOUNT" : [Google Account](https://accounts.google.com).
3342 * - "PROFILE" : [Google profile](https://profiles.google.com). You can view 3357 * - "PROFILE" : [Google profile](https://profiles.google.com). You can view
3343 * the 3358 * the
3344 * profile at https://profiles.google.com/<var>id</var> where 3359 * profile at https://profiles.google.com/<var>id</var> where
3345 * <var>id</var> is the source id. 3360 * <var>id</var> is the source id.
3346 * - "DOMAIN_PROFILE" : [Google Apps domain 3361 * - "DOMAIN_PROFILE" : [Google Apps domain
3347 * profile](https://admin.google.com). 3362 * profile](https://admin.google.com).
3348 * - "CONTACT" : [Google contact](https://contacts.google.com). You can view 3363 * - "CONTACT" : [Google contact](https://contacts.google.com). You can view
3349 * the 3364 * the
3350 * contact at https://contact.google.com/<var>id</var> where <var>id</var> 3365 * contact at https://contact.google.com/<var>id</var> where <var>id</var>
3351 * is the source id. 3366 * is the source id.
3352 */ 3367 */
3353 core.String type; 3368 core.String type;
3354 /** Last update timestamp of this source. */ 3369 /**
3370 * **Only populated in `person.metadata.sources`.**
3371 *
3372 * Last update timestamp of this source.
3373 */
3355 core.String updateTime; 3374 core.String updateTime;
3356 3375
3357 Source(); 3376 Source();
3358 3377
3359 Source.fromJson(core.Map _json) { 3378 Source.fromJson(core.Map _json) {
3360 if (_json.containsKey("etag")) { 3379 if (_json.containsKey("etag")) {
3361 etag = _json["etag"]; 3380 etag = _json["etag"];
3362 } 3381 }
3363 if (_json.containsKey("id")) { 3382 if (_json.containsKey("id")) {
3364 id = _json["id"]; 3383 id = _json["id"];
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
3606 } 3625 }
3607 if (type != null) { 3626 if (type != null) {
3608 _json["type"] = type; 3627 _json["type"] = type;
3609 } 3628 }
3610 if (value != null) { 3629 if (value != null) {
3611 _json["value"] = value; 3630 _json["value"] = value;
3612 } 3631 }
3613 return _json; 3632 return _json;
3614 } 3633 }
3615 } 3634 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/partners/v2.dart ('k') | generated/googleapis/lib/playcustomapp/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698