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

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

Issue 1296863002: Api-roll 22: 2015-08-17 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 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.plus.v1; 3 library googleapis.plus.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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 var _response = _requester.request(_url, 464 var _response = _requester.request(_url,
465 "GET", 465 "GET",
466 body: _body, 466 body: _body,
467 queryParams: _queryParams, 467 queryParams: _queryParams,
468 uploadOptions: _uploadOptions, 468 uploadOptions: _uploadOptions,
469 uploadMedia: _uploadMedia, 469 uploadMedia: _uploadMedia,
470 downloadOptions: _downloadOptions); 470 downloadOptions: _downloadOptions);
471 return _response.then((data) => new MomentsFeed.fromJson(data)); 471 return _response.then((data) => new MomentsFeed.fromJson(data));
472 } 472 }
473 473
474 /**
475 * Delete a moment.
476 *
477 * Request parameters:
478 *
479 * [id] - The ID of the moment to delete.
480 *
481 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
482 * error.
483 *
484 * If the used [http.Client] completes with an error when making a REST call,
485 * this method will complete with the same error.
486 */
487 async.Future remove(core.String id) {
488 var _url = null;
489 var _queryParams = new core.Map();
490 var _uploadMedia = null;
491 var _uploadOptions = null;
492 var _downloadOptions = commons.DownloadOptions.Metadata;
493 var _body = null;
494
495 if (id == null) {
496 throw new core.ArgumentError("Parameter id is required.");
497 }
498
499 _downloadOptions = null;
500
501 _url = 'moments/' + commons.Escaper.ecapeVariable('$id');
502
503 var _response = _requester.request(_url,
504 "DELETE",
505 body: _body,
506 queryParams: _queryParams,
507 uploadOptions: _uploadOptions,
508 uploadMedia: _uploadMedia,
509 downloadOptions: _downloadOptions);
510 return _response.then((data) => null);
511 }
512
513 } 474 }
514 475
515 476
516 class PeopleResourceApi { 477 class PeopleResourceApi {
517 final commons.ApiRequester _requester; 478 final commons.ApiRequester _requester;
518 479
519 PeopleResourceApi(commons.ApiRequester client) : 480 PeopleResourceApi(commons.ApiRequester client) :
520 _requester = client; 481 _requester = client;
521 482
522 /** 483 /**
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 if (familyName != null) { 815 if (familyName != null) {
855 _json["familyName"] = familyName; 816 _json["familyName"] = familyName;
856 } 817 }
857 if (givenName != null) { 818 if (givenName != null) {
858 _json["givenName"] = givenName; 819 _json["givenName"] = givenName;
859 } 820 }
860 return _json; 821 return _json;
861 } 822 }
862 } 823 }
863 824
825 /** Verification status of actor. */
826 class ActivityActorVerification {
827 /** Verification for one-time or manual processes. */
828 core.String adHocVerified;
829
830 ActivityActorVerification();
831
832 ActivityActorVerification.fromJson(core.Map _json) {
833 if (_json.containsKey("adHocVerified")) {
834 adHocVerified = _json["adHocVerified"];
835 }
836 }
837
838 core.Map toJson() {
839 var _json = new core.Map();
840 if (adHocVerified != null) {
841 _json["adHocVerified"] = adHocVerified;
842 }
843 return _json;
844 }
845 }
846
864 /** The person who performed this activity. */ 847 /** The person who performed this activity. */
865 class ActivityActor { 848 class ActivityActor {
866 /** The name of the actor, suitable for display. */ 849 /** The name of the actor, suitable for display. */
867 core.String displayName; 850 core.String displayName;
868 /** The ID of the actor's Person resource. */ 851 /** The ID of the actor's Person resource. */
869 core.String id; 852 core.String id;
870 /** The image representation of the actor. */ 853 /** The image representation of the actor. */
871 ActivityActorImage image; 854 ActivityActorImage image;
872 /** An object representation of the individual components of name. */ 855 /** An object representation of the individual components of name. */
873 ActivityActorName name; 856 ActivityActorName name;
874 /** The link to the actor's Google profile. */ 857 /** The link to the actor's Google profile. */
875 core.String url; 858 core.String url;
859 /** Verification status of actor. */
860 ActivityActorVerification verification;
876 861
877 ActivityActor(); 862 ActivityActor();
878 863
879 ActivityActor.fromJson(core.Map _json) { 864 ActivityActor.fromJson(core.Map _json) {
880 if (_json.containsKey("displayName")) { 865 if (_json.containsKey("displayName")) {
881 displayName = _json["displayName"]; 866 displayName = _json["displayName"];
882 } 867 }
883 if (_json.containsKey("id")) { 868 if (_json.containsKey("id")) {
884 id = _json["id"]; 869 id = _json["id"];
885 } 870 }
886 if (_json.containsKey("image")) { 871 if (_json.containsKey("image")) {
887 image = new ActivityActorImage.fromJson(_json["image"]); 872 image = new ActivityActorImage.fromJson(_json["image"]);
888 } 873 }
889 if (_json.containsKey("name")) { 874 if (_json.containsKey("name")) {
890 name = new ActivityActorName.fromJson(_json["name"]); 875 name = new ActivityActorName.fromJson(_json["name"]);
891 } 876 }
892 if (_json.containsKey("url")) { 877 if (_json.containsKey("url")) {
893 url = _json["url"]; 878 url = _json["url"];
894 } 879 }
880 if (_json.containsKey("verification")) {
881 verification = new ActivityActorVerification.fromJson(_json["verification" ]);
882 }
895 } 883 }
896 884
897 core.Map toJson() { 885 core.Map toJson() {
898 var _json = new core.Map(); 886 var _json = new core.Map();
899 if (displayName != null) { 887 if (displayName != null) {
900 _json["displayName"] = displayName; 888 _json["displayName"] = displayName;
901 } 889 }
902 if (id != null) { 890 if (id != null) {
903 _json["id"] = id; 891 _json["id"] = id;
904 } 892 }
905 if (image != null) { 893 if (image != null) {
906 _json["image"] = (image).toJson(); 894 _json["image"] = (image).toJson();
907 } 895 }
908 if (name != null) { 896 if (name != null) {
909 _json["name"] = (name).toJson(); 897 _json["name"] = (name).toJson();
910 } 898 }
911 if (url != null) { 899 if (url != null) {
912 _json["url"] = url; 900 _json["url"] = url;
913 } 901 }
902 if (verification != null) {
903 _json["verification"] = (verification).toJson();
904 }
914 return _json; 905 return _json;
915 } 906 }
916 } 907 }
917 908
918 /** The image representation of the original actor. */ 909 /** The image representation of the original actor. */
919 class ActivityObjectActorImage { 910 class ActivityObjectActorImage {
920 /** A URL that points to a thumbnail photo of the original actor. */ 911 /** A URL that points to a thumbnail photo of the original actor. */
921 core.String url; 912 core.String url;
922 913
923 ActivityObjectActorImage(); 914 ActivityObjectActorImage();
924 915
925 ActivityObjectActorImage.fromJson(core.Map _json) { 916 ActivityObjectActorImage.fromJson(core.Map _json) {
926 if (_json.containsKey("url")) { 917 if (_json.containsKey("url")) {
927 url = _json["url"]; 918 url = _json["url"];
928 } 919 }
929 } 920 }
930 921
931 core.Map toJson() { 922 core.Map toJson() {
932 var _json = new core.Map(); 923 var _json = new core.Map();
933 if (url != null) { 924 if (url != null) {
934 _json["url"] = url; 925 _json["url"] = url;
935 } 926 }
936 return _json; 927 return _json;
937 } 928 }
938 } 929 }
939 930
931 /** Verification status of actor. */
932 class ActivityObjectActorVerification {
933 /** Verification for one-time or manual processes. */
934 core.String adHocVerified;
935
936 ActivityObjectActorVerification();
937
938 ActivityObjectActorVerification.fromJson(core.Map _json) {
939 if (_json.containsKey("adHocVerified")) {
940 adHocVerified = _json["adHocVerified"];
941 }
942 }
943
944 core.Map toJson() {
945 var _json = new core.Map();
946 if (adHocVerified != null) {
947 _json["adHocVerified"] = adHocVerified;
948 }
949 return _json;
950 }
951 }
952
940 /** 953 /**
941 * If this activity's object is itself another activity, such as when a person 954 * If this activity's object is itself another activity, such as when a person
942 * reshares an activity, this property specifies the original activity's actor. 955 * reshares an activity, this property specifies the original activity's actor.
943 */ 956 */
944 class ActivityObjectActor { 957 class ActivityObjectActor {
945 /** The original actor's name, which is suitable for display. */ 958 /** The original actor's name, which is suitable for display. */
946 core.String displayName; 959 core.String displayName;
947 /** ID of the original actor. */ 960 /** ID of the original actor. */
948 core.String id; 961 core.String id;
949 /** The image representation of the original actor. */ 962 /** The image representation of the original actor. */
950 ActivityObjectActorImage image; 963 ActivityObjectActorImage image;
951 /** A link to the original actor's Google profile. */ 964 /** A link to the original actor's Google profile. */
952 core.String url; 965 core.String url;
966 /** Verification status of actor. */
967 ActivityObjectActorVerification verification;
953 968
954 ActivityObjectActor(); 969 ActivityObjectActor();
955 970
956 ActivityObjectActor.fromJson(core.Map _json) { 971 ActivityObjectActor.fromJson(core.Map _json) {
957 if (_json.containsKey("displayName")) { 972 if (_json.containsKey("displayName")) {
958 displayName = _json["displayName"]; 973 displayName = _json["displayName"];
959 } 974 }
960 if (_json.containsKey("id")) { 975 if (_json.containsKey("id")) {
961 id = _json["id"]; 976 id = _json["id"];
962 } 977 }
963 if (_json.containsKey("image")) { 978 if (_json.containsKey("image")) {
964 image = new ActivityObjectActorImage.fromJson(_json["image"]); 979 image = new ActivityObjectActorImage.fromJson(_json["image"]);
965 } 980 }
966 if (_json.containsKey("url")) { 981 if (_json.containsKey("url")) {
967 url = _json["url"]; 982 url = _json["url"];
968 } 983 }
984 if (_json.containsKey("verification")) {
985 verification = new ActivityObjectActorVerification.fromJson(_json["verific ation"]);
986 }
969 } 987 }
970 988
971 core.Map toJson() { 989 core.Map toJson() {
972 var _json = new core.Map(); 990 var _json = new core.Map();
973 if (displayName != null) { 991 if (displayName != null) {
974 _json["displayName"] = displayName; 992 _json["displayName"] = displayName;
975 } 993 }
976 if (id != null) { 994 if (id != null) {
977 _json["id"] = id; 995 _json["id"] = id;
978 } 996 }
979 if (image != null) { 997 if (image != null) {
980 _json["image"] = (image).toJson(); 998 _json["image"] = (image).toJson();
981 } 999 }
982 if (url != null) { 1000 if (url != null) {
983 _json["url"] = url; 1001 _json["url"] = url;
984 } 1002 }
1003 if (verification != null) {
1004 _json["verification"] = (verification).toJson();
1005 }
985 return _json; 1006 return _json;
986 } 1007 }
987 } 1008 }
988 1009
989 /** If the attachment is a video, the embeddable link. */ 1010 /** If the attachment is a video, the embeddable link. */
990 class ActivityObjectAttachmentsEmbed { 1011 class ActivityObjectAttachmentsEmbed {
991 /** Media type of the link. */ 1012 /** Media type of the link. */
992 core.String type; 1013 core.String type;
993 /** URL of the link. */ 1014 /** URL of the link. */
994 core.String url; 1015 core.String url;
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 1847
1827 core.Map toJson() { 1848 core.Map toJson() {
1828 var _json = new core.Map(); 1849 var _json = new core.Map();
1829 if (url != null) { 1850 if (url != null) {
1830 _json["url"] = url; 1851 _json["url"] = url;
1831 } 1852 }
1832 return _json; 1853 return _json;
1833 } 1854 }
1834 } 1855 }
1835 1856
1857 /** Verification status of actor. */
1858 class CommentActorVerification {
1859 /** Verification for one-time or manual processes. */
1860 core.String adHocVerified;
1861
1862 CommentActorVerification();
1863
1864 CommentActorVerification.fromJson(core.Map _json) {
1865 if (_json.containsKey("adHocVerified")) {
1866 adHocVerified = _json["adHocVerified"];
1867 }
1868 }
1869
1870 core.Map toJson() {
1871 var _json = new core.Map();
1872 if (adHocVerified != null) {
1873 _json["adHocVerified"] = adHocVerified;
1874 }
1875 return _json;
1876 }
1877 }
1878
1836 /** The person who posted this comment. */ 1879 /** The person who posted this comment. */
1837 class CommentActor { 1880 class CommentActor {
1838 /** The name of this actor, suitable for display. */ 1881 /** The name of this actor, suitable for display. */
1839 core.String displayName; 1882 core.String displayName;
1840 /** The ID of the actor. */ 1883 /** The ID of the actor. */
1841 core.String id; 1884 core.String id;
1842 /** The image representation of this actor. */ 1885 /** The image representation of this actor. */
1843 CommentActorImage image; 1886 CommentActorImage image;
1844 /** A link to the Person resource for this actor. */ 1887 /** A link to the Person resource for this actor. */
1845 core.String url; 1888 core.String url;
1889 /** Verification status of actor. */
1890 CommentActorVerification verification;
1846 1891
1847 CommentActor(); 1892 CommentActor();
1848 1893
1849 CommentActor.fromJson(core.Map _json) { 1894 CommentActor.fromJson(core.Map _json) {
1850 if (_json.containsKey("displayName")) { 1895 if (_json.containsKey("displayName")) {
1851 displayName = _json["displayName"]; 1896 displayName = _json["displayName"];
1852 } 1897 }
1853 if (_json.containsKey("id")) { 1898 if (_json.containsKey("id")) {
1854 id = _json["id"]; 1899 id = _json["id"];
1855 } 1900 }
1856 if (_json.containsKey("image")) { 1901 if (_json.containsKey("image")) {
1857 image = new CommentActorImage.fromJson(_json["image"]); 1902 image = new CommentActorImage.fromJson(_json["image"]);
1858 } 1903 }
1859 if (_json.containsKey("url")) { 1904 if (_json.containsKey("url")) {
1860 url = _json["url"]; 1905 url = _json["url"];
1861 } 1906 }
1907 if (_json.containsKey("verification")) {
1908 verification = new CommentActorVerification.fromJson(_json["verification"] );
1909 }
1862 } 1910 }
1863 1911
1864 core.Map toJson() { 1912 core.Map toJson() {
1865 var _json = new core.Map(); 1913 var _json = new core.Map();
1866 if (displayName != null) { 1914 if (displayName != null) {
1867 _json["displayName"] = displayName; 1915 _json["displayName"] = displayName;
1868 } 1916 }
1869 if (id != null) { 1917 if (id != null) {
1870 _json["id"] = id; 1918 _json["id"] = id;
1871 } 1919 }
1872 if (image != null) { 1920 if (image != null) {
1873 _json["image"] = (image).toJson(); 1921 _json["image"] = (image).toJson();
1874 } 1922 }
1875 if (url != null) { 1923 if (url != null) {
1876 _json["url"] = url; 1924 _json["url"] = url;
1877 } 1925 }
1926 if (verification != null) {
1927 _json["verification"] = (verification).toJson();
1928 }
1878 return _json; 1929 return _json;
1879 } 1930 }
1880 } 1931 }
1881 1932
1882 class CommentInReplyTo { 1933 class CommentInReplyTo {
1883 /** The ID of the activity. */ 1934 /** The ID of the activity. */
1884 core.String id; 1935 core.String id;
1885 /** The URL of the activity. */ 1936 /** The URL of the activity. */
1886 core.String url; 1937 core.String url;
1887 1938
(...skipping 1972 matching lines...) Expand 10 before | Expand all | Expand 10 after
3860 } 3911 }
3861 if (id != null) { 3912 if (id != null) {
3862 _json["id"] = id; 3913 _json["id"] = id;
3863 } 3914 }
3864 if (type != null) { 3915 if (type != null) {
3865 _json["type"] = type; 3916 _json["type"] = type;
3866 } 3917 }
3867 return _json; 3918 return _json;
3868 } 3919 }
3869 } 3920 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/playmoviespartner/v1.dart ('k') | generated/googleapis/lib/plusdomains/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698