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

Side by Side Diff: generated/googleapis/lib/identitytoolkit/v3.dart

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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/lib/iam/v1.dart ('k') | generated/googleapis/lib/logging/v2.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 // 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.identitytoolkit.v3; 3 library googleapis.identitytoolkit.v3;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:collection' as collection; 6 import 'dart:collection' as collection;
7 import 'dart:async' as async; 7 import 'dart:async' as async;
8 import 'dart:convert' as convert; 8 import 'dart:convert' as convert;
9 9
10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
11 import 'package:http/http.dart' as http; 11 import 'package:http/http.dart' as http;
12 12
13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 ApiRequestError, DetailedApiRequestError; 14 ApiRequestError, DetailedApiRequestError;
15 15
16 const core.String USER_AGENT = 'dart-api-client identitytoolkit/v3'; 16 const core.String USER_AGENT = 'dart-api-client identitytoolkit/v3';
17 17
18 /** Help the third party sites to implement federated login. */ 18 /** Help the third party sites to implement federated login. */
19 class IdentitytoolkitApi { 19 class IdentitytoolkitApi {
20 /** View and administer all your Firebase data and settings */
21 static const FirebaseScope = "https://www.googleapis.com/auth/firebase";
22
20 23
21 final commons.ApiRequester _requester; 24 final commons.ApiRequester _requester;
22 25
23 RelyingpartyResourceApi get relyingparty => new RelyingpartyResourceApi(_reque ster); 26 RelyingpartyResourceApi get relyingparty => new RelyingpartyResourceApi(_reque ster);
24 27
25 IdentitytoolkitApi(http.Client client, {core.String rootUrl: "https://www.goog leapis.com/", core.String servicePath: "identitytoolkit/v3/relyingparty/"}) : 28 IdentitytoolkitApi(http.Client client, {core.String rootUrl: "https://www.goog leapis.com/", core.String servicePath: "identitytoolkit/v3/relyingparty/"}) :
26 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 29 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
27 } 30 }
28 31
29 32
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 /** 1032 /**
1030 * The opaque value used by the client to maintain context info between the 1033 * The opaque value used by the client to maintain context info between the
1031 * authentication request and the IDP callback. 1034 * authentication request and the IDP callback.
1032 */ 1035 */
1033 core.String context; 1036 core.String context;
1034 /** 1037 /**
1035 * The URI to which the IDP redirects the user after the federated login flow. 1038 * The URI to which the IDP redirects the user after the federated login flow.
1036 */ 1039 */
1037 core.String continueUri; 1040 core.String continueUri;
1038 /** 1041 /**
1042 * The query parameter that client can customize by themselves in auth url.
1043 * The following parameters are reserved for server so that they cannot be
1044 * customized by clients: client_id, response_type, scope, redirect_uri,
1045 * state, oauth_token.
1046 */
1047 core.Map<core.String, core.String> customParameter;
1048 /**
1039 * The hosted domain to restrict sign-in to accounts at that domain for Google 1049 * The hosted domain to restrict sign-in to accounts at that domain for Google
1040 * Apps hosted accounts. 1050 * Apps hosted accounts.
1041 */ 1051 */
1042 core.String hostedDomain; 1052 core.String hostedDomain;
1043 /** The email or federated ID of the user. */ 1053 /** The email or federated ID of the user. */
1044 core.String identifier; 1054 core.String identifier;
1045 /** The developer's consumer key for OpenId OAuth Extension */ 1055 /** The developer's consumer key for OpenId OAuth Extension */
1046 core.String oauthConsumerKey; 1056 core.String oauthConsumerKey;
1047 /** 1057 /**
1048 * Additional oauth scopes, beyond the basid user profile, that the user would 1058 * Additional oauth scopes, beyond the basid user profile, that the user would
(...skipping 27 matching lines...) Expand all
1076 } 1086 }
1077 if (_json.containsKey("clientId")) { 1087 if (_json.containsKey("clientId")) {
1078 clientId = _json["clientId"]; 1088 clientId = _json["clientId"];
1079 } 1089 }
1080 if (_json.containsKey("context")) { 1090 if (_json.containsKey("context")) {
1081 context = _json["context"]; 1091 context = _json["context"];
1082 } 1092 }
1083 if (_json.containsKey("continueUri")) { 1093 if (_json.containsKey("continueUri")) {
1084 continueUri = _json["continueUri"]; 1094 continueUri = _json["continueUri"];
1085 } 1095 }
1096 if (_json.containsKey("customParameter")) {
1097 customParameter = _json["customParameter"];
1098 }
1086 if (_json.containsKey("hostedDomain")) { 1099 if (_json.containsKey("hostedDomain")) {
1087 hostedDomain = _json["hostedDomain"]; 1100 hostedDomain = _json["hostedDomain"];
1088 } 1101 }
1089 if (_json.containsKey("identifier")) { 1102 if (_json.containsKey("identifier")) {
1090 identifier = _json["identifier"]; 1103 identifier = _json["identifier"];
1091 } 1104 }
1092 if (_json.containsKey("oauthConsumerKey")) { 1105 if (_json.containsKey("oauthConsumerKey")) {
1093 oauthConsumerKey = _json["oauthConsumerKey"]; 1106 oauthConsumerKey = _json["oauthConsumerKey"];
1094 } 1107 }
1095 if (_json.containsKey("oauthScope")) { 1108 if (_json.containsKey("oauthScope")) {
(...skipping 23 matching lines...) Expand all
1119 } 1132 }
1120 if (clientId != null) { 1133 if (clientId != null) {
1121 _json["clientId"] = clientId; 1134 _json["clientId"] = clientId;
1122 } 1135 }
1123 if (context != null) { 1136 if (context != null) {
1124 _json["context"] = context; 1137 _json["context"] = context;
1125 } 1138 }
1126 if (continueUri != null) { 1139 if (continueUri != null) {
1127 _json["continueUri"] = continueUri; 1140 _json["continueUri"] = continueUri;
1128 } 1141 }
1142 if (customParameter != null) {
1143 _json["customParameter"] = customParameter;
1144 }
1129 if (hostedDomain != null) { 1145 if (hostedDomain != null) {
1130 _json["hostedDomain"] = hostedDomain; 1146 _json["hostedDomain"] = hostedDomain;
1131 } 1147 }
1132 if (identifier != null) { 1148 if (identifier != null) {
1133 _json["identifier"] = identifier; 1149 _json["identifier"] = identifier;
1134 } 1150 }
1135 if (oauthConsumerKey != null) { 1151 if (oauthConsumerKey != null) {
1136 _json["oauthConsumerKey"] = oauthConsumerKey; 1152 _json["oauthConsumerKey"] = oauthConsumerKey;
1137 } 1153 }
1138 if (oauthScope != null) { 1154 if (oauthScope != null) {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 /** Response of getting the project configuration. */ 1307 /** Response of getting the project configuration. */
1292 class IdentitytoolkitRelyingpartyGetProjectConfigResponse { 1308 class IdentitytoolkitRelyingpartyGetProjectConfigResponse {
1293 /** Whether to allow password user sign in or sign up. */ 1309 /** Whether to allow password user sign in or sign up. */
1294 core.bool allowPasswordUser; 1310 core.bool allowPasswordUser;
1295 /** Browser API key, needed when making http request to Apiary. */ 1311 /** Browser API key, needed when making http request to Apiary. */
1296 core.String apiKey; 1312 core.String apiKey;
1297 /** Authorized domains. */ 1313 /** Authorized domains. */
1298 core.List<core.String> authorizedDomains; 1314 core.List<core.String> authorizedDomains;
1299 /** Change email template. */ 1315 /** Change email template. */
1300 EmailTemplate changeEmailTemplate; 1316 EmailTemplate changeEmailTemplate;
1317 core.String dynamicLinksDomain;
1301 /** Whether anonymous user is enabled. */ 1318 /** Whether anonymous user is enabled. */
1302 core.bool enableAnonymousUser; 1319 core.bool enableAnonymousUser;
1303 /** OAuth2 provider configuration. */ 1320 /** OAuth2 provider configuration. */
1304 core.List<IdpConfig> idpConfig; 1321 core.List<IdpConfig> idpConfig;
1305 /** Legacy reset password email template. */ 1322 /** Legacy reset password email template. */
1306 EmailTemplate legacyResetPasswordTemplate; 1323 EmailTemplate legacyResetPasswordTemplate;
1307 /** Project ID of the relying party. */ 1324 /** Project ID of the relying party. */
1308 core.String projectId; 1325 core.String projectId;
1309 /** Reset password email template. */ 1326 /** Reset password email template. */
1310 EmailTemplate resetPasswordTemplate; 1327 EmailTemplate resetPasswordTemplate;
(...skipping 10 matching lines...) Expand all
1321 } 1338 }
1322 if (_json.containsKey("apiKey")) { 1339 if (_json.containsKey("apiKey")) {
1323 apiKey = _json["apiKey"]; 1340 apiKey = _json["apiKey"];
1324 } 1341 }
1325 if (_json.containsKey("authorizedDomains")) { 1342 if (_json.containsKey("authorizedDomains")) {
1326 authorizedDomains = _json["authorizedDomains"]; 1343 authorizedDomains = _json["authorizedDomains"];
1327 } 1344 }
1328 if (_json.containsKey("changeEmailTemplate")) { 1345 if (_json.containsKey("changeEmailTemplate")) {
1329 changeEmailTemplate = new EmailTemplate.fromJson(_json["changeEmailTemplat e"]); 1346 changeEmailTemplate = new EmailTemplate.fromJson(_json["changeEmailTemplat e"]);
1330 } 1347 }
1348 if (_json.containsKey("dynamicLinksDomain")) {
1349 dynamicLinksDomain = _json["dynamicLinksDomain"];
1350 }
1331 if (_json.containsKey("enableAnonymousUser")) { 1351 if (_json.containsKey("enableAnonymousUser")) {
1332 enableAnonymousUser = _json["enableAnonymousUser"]; 1352 enableAnonymousUser = _json["enableAnonymousUser"];
1333 } 1353 }
1334 if (_json.containsKey("idpConfig")) { 1354 if (_json.containsKey("idpConfig")) {
1335 idpConfig = _json["idpConfig"].map((value) => new IdpConfig.fromJson(value )).toList(); 1355 idpConfig = _json["idpConfig"].map((value) => new IdpConfig.fromJson(value )).toList();
1336 } 1356 }
1337 if (_json.containsKey("legacyResetPasswordTemplate")) { 1357 if (_json.containsKey("legacyResetPasswordTemplate")) {
1338 legacyResetPasswordTemplate = new EmailTemplate.fromJson(_json["legacyRese tPasswordTemplate"]); 1358 legacyResetPasswordTemplate = new EmailTemplate.fromJson(_json["legacyRese tPasswordTemplate"]);
1339 } 1359 }
1340 if (_json.containsKey("projectId")) { 1360 if (_json.containsKey("projectId")) {
(...skipping 17 matching lines...) Expand all
1358 } 1378 }
1359 if (apiKey != null) { 1379 if (apiKey != null) {
1360 _json["apiKey"] = apiKey; 1380 _json["apiKey"] = apiKey;
1361 } 1381 }
1362 if (authorizedDomains != null) { 1382 if (authorizedDomains != null) {
1363 _json["authorizedDomains"] = authorizedDomains; 1383 _json["authorizedDomains"] = authorizedDomains;
1364 } 1384 }
1365 if (changeEmailTemplate != null) { 1385 if (changeEmailTemplate != null) {
1366 _json["changeEmailTemplate"] = (changeEmailTemplate).toJson(); 1386 _json["changeEmailTemplate"] = (changeEmailTemplate).toJson();
1367 } 1387 }
1388 if (dynamicLinksDomain != null) {
1389 _json["dynamicLinksDomain"] = dynamicLinksDomain;
1390 }
1368 if (enableAnonymousUser != null) { 1391 if (enableAnonymousUser != null) {
1369 _json["enableAnonymousUser"] = enableAnonymousUser; 1392 _json["enableAnonymousUser"] = enableAnonymousUser;
1370 } 1393 }
1371 if (idpConfig != null) { 1394 if (idpConfig != null) {
1372 _json["idpConfig"] = idpConfig.map((value) => (value).toJson()).toList(); 1395 _json["idpConfig"] = idpConfig.map((value) => (value).toJson()).toList();
1373 } 1396 }
1374 if (legacyResetPasswordTemplate != null) { 1397 if (legacyResetPasswordTemplate != null) {
1375 _json["legacyResetPasswordTemplate"] = (legacyResetPasswordTemplate).toJso n(); 1398 _json["legacyResetPasswordTemplate"] = (legacyResetPasswordTemplate).toJso n();
1376 } 1399 }
1377 if (projectId != null) { 1400 if (projectId != null) {
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1838 } 1861 }
1839 1862
1840 /** 1863 /**
1841 * Request to signup new user, create anonymous user or anonymous user reauth. 1864 * Request to signup new user, create anonymous user or anonymous user reauth.
1842 */ 1865 */
1843 class IdentitytoolkitRelyingpartySignupNewUserRequest { 1866 class IdentitytoolkitRelyingpartySignupNewUserRequest {
1844 /** The captcha challenge. */ 1867 /** The captcha challenge. */
1845 core.String captchaChallenge; 1868 core.String captchaChallenge;
1846 /** Response to the captcha. */ 1869 /** Response to the captcha. */
1847 core.String captchaResponse; 1870 core.String captchaResponse;
1871 /** Whether to disable the user. Only can be used by service account. */
1872 core.bool disabled;
1848 /** The name of the user. */ 1873 /** The name of the user. */
1849 core.String displayName; 1874 core.String displayName;
1850 /** The email of the user. */ 1875 /** The email of the user. */
1851 core.String email; 1876 core.String email;
1877 /**
1878 * Mark the email as verified or not. Only can be used by service account.
1879 */
1880 core.bool emailVerified;
1852 /** The GITKit token of the authenticated user. */ 1881 /** The GITKit token of the authenticated user. */
1853 core.String idToken; 1882 core.String idToken;
1854 /** Instance id token of the app. */ 1883 /** Instance id token of the app. */
1855 core.String instanceId; 1884 core.String instanceId;
1856 /** The new password of the user. */ 1885 /** The new password of the user. */
1857 core.String password; 1886 core.String password;
1887 /** The photo url of the user. */
1888 core.String photoUrl;
1858 1889
1859 IdentitytoolkitRelyingpartySignupNewUserRequest(); 1890 IdentitytoolkitRelyingpartySignupNewUserRequest();
1860 1891
1861 IdentitytoolkitRelyingpartySignupNewUserRequest.fromJson(core.Map _json) { 1892 IdentitytoolkitRelyingpartySignupNewUserRequest.fromJson(core.Map _json) {
1862 if (_json.containsKey("captchaChallenge")) { 1893 if (_json.containsKey("captchaChallenge")) {
1863 captchaChallenge = _json["captchaChallenge"]; 1894 captchaChallenge = _json["captchaChallenge"];
1864 } 1895 }
1865 if (_json.containsKey("captchaResponse")) { 1896 if (_json.containsKey("captchaResponse")) {
1866 captchaResponse = _json["captchaResponse"]; 1897 captchaResponse = _json["captchaResponse"];
1867 } 1898 }
1899 if (_json.containsKey("disabled")) {
1900 disabled = _json["disabled"];
1901 }
1868 if (_json.containsKey("displayName")) { 1902 if (_json.containsKey("displayName")) {
1869 displayName = _json["displayName"]; 1903 displayName = _json["displayName"];
1870 } 1904 }
1871 if (_json.containsKey("email")) { 1905 if (_json.containsKey("email")) {
1872 email = _json["email"]; 1906 email = _json["email"];
1873 } 1907 }
1908 if (_json.containsKey("emailVerified")) {
1909 emailVerified = _json["emailVerified"];
1910 }
1874 if (_json.containsKey("idToken")) { 1911 if (_json.containsKey("idToken")) {
1875 idToken = _json["idToken"]; 1912 idToken = _json["idToken"];
1876 } 1913 }
1877 if (_json.containsKey("instanceId")) { 1914 if (_json.containsKey("instanceId")) {
1878 instanceId = _json["instanceId"]; 1915 instanceId = _json["instanceId"];
1879 } 1916 }
1880 if (_json.containsKey("password")) { 1917 if (_json.containsKey("password")) {
1881 password = _json["password"]; 1918 password = _json["password"];
1882 } 1919 }
1920 if (_json.containsKey("photoUrl")) {
1921 photoUrl = _json["photoUrl"];
1922 }
1883 } 1923 }
1884 1924
1885 core.Map toJson() { 1925 core.Map toJson() {
1886 var _json = new core.Map(); 1926 var _json = new core.Map();
1887 if (captchaChallenge != null) { 1927 if (captchaChallenge != null) {
1888 _json["captchaChallenge"] = captchaChallenge; 1928 _json["captchaChallenge"] = captchaChallenge;
1889 } 1929 }
1890 if (captchaResponse != null) { 1930 if (captchaResponse != null) {
1891 _json["captchaResponse"] = captchaResponse; 1931 _json["captchaResponse"] = captchaResponse;
1892 } 1932 }
1933 if (disabled != null) {
1934 _json["disabled"] = disabled;
1935 }
1893 if (displayName != null) { 1936 if (displayName != null) {
1894 _json["displayName"] = displayName; 1937 _json["displayName"] = displayName;
1895 } 1938 }
1896 if (email != null) { 1939 if (email != null) {
1897 _json["email"] = email; 1940 _json["email"] = email;
1898 } 1941 }
1942 if (emailVerified != null) {
1943 _json["emailVerified"] = emailVerified;
1944 }
1899 if (idToken != null) { 1945 if (idToken != null) {
1900 _json["idToken"] = idToken; 1946 _json["idToken"] = idToken;
1901 } 1947 }
1902 if (instanceId != null) { 1948 if (instanceId != null) {
1903 _json["instanceId"] = instanceId; 1949 _json["instanceId"] = instanceId;
1904 } 1950 }
1905 if (password != null) { 1951 if (password != null) {
1906 _json["password"] = password; 1952 _json["password"] = password;
1907 } 1953 }
1954 if (photoUrl != null) {
1955 _json["photoUrl"] = photoUrl;
1956 }
1908 return _json; 1957 return _json;
1909 } 1958 }
1910 } 1959 }
1911 1960
1912 /** Request to upload user account in batch. */ 1961 /** Request to upload user account in batch. */
1913 class IdentitytoolkitRelyingpartyUploadAccountRequest { 1962 class IdentitytoolkitRelyingpartyUploadAccountRequest {
1963 /** Whether allow overwrite existing account when user local_id exists. */
1964 core.bool allowOverwrite;
1914 /** 1965 /**
1915 * GCP project number of the requesting delegated app. Currently only intended 1966 * GCP project number of the requesting delegated app. Currently only intended
1916 * for Firebase V1 migration. 1967 * for Firebase V1 migration.
1917 */ 1968 */
1918 core.String delegatedProjectNumber; 1969 core.String delegatedProjectNumber;
1919 /** The password hash algorithm. */ 1970 /** The password hash algorithm. */
1920 core.String hashAlgorithm; 1971 core.String hashAlgorithm;
1921 /** Memory cost for hash calculation. Used by scrypt similar algorithms. */ 1972 /** Memory cost for hash calculation. Used by scrypt similar algorithms. */
1922 core.int memoryCost; 1973 core.int memoryCost;
1923 /** Rounds for hash calculation. Used by scrypt and similar algorithms. */ 1974 /** Rounds for hash calculation. Used by scrypt and similar algorithms. */
1924 core.int rounds; 1975 core.int rounds;
1925 /** The salt separator. */ 1976 /** The salt separator. */
1926 core.String saltSeparator; 1977 core.String saltSeparator;
1927 core.List<core.int> get saltSeparatorAsBytes { 1978 core.List<core.int> get saltSeparatorAsBytes {
1928 return convert.BASE64.decode(saltSeparator); 1979 return convert.BASE64.decode(saltSeparator);
1929 } 1980 }
1930 1981
1931 void set saltSeparatorAsBytes(core.List<core.int> _bytes) { 1982 void set saltSeparatorAsBytes(core.List<core.int> _bytes) {
1932 saltSeparator = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAl l("+", "-"); 1983 saltSeparator = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAl l("+", "-");
1933 } 1984 }
1985 /**
1986 * If true, backend will do sanity check(including duplicate email and
1987 * federated id) when uploading account.
1988 */
1989 core.bool sanityCheck;
1934 /** The key for to hash the password. */ 1990 /** The key for to hash the password. */
1935 core.String signerKey; 1991 core.String signerKey;
1936 core.List<core.int> get signerKeyAsBytes { 1992 core.List<core.int> get signerKeyAsBytes {
1937 return convert.BASE64.decode(signerKey); 1993 return convert.BASE64.decode(signerKey);
1938 } 1994 }
1939 1995
1940 void set signerKeyAsBytes(core.List<core.int> _bytes) { 1996 void set signerKeyAsBytes(core.List<core.int> _bytes) {
1941 signerKey = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+ ", "-"); 1997 signerKey = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+ ", "-");
1942 } 1998 }
1999 /**
2000 * Specify which project (field value is actually project id) to operate. Only
2001 * used when provided credential.
2002 */
2003 core.String targetProjectId;
1943 /** The account info to be stored. */ 2004 /** The account info to be stored. */
1944 core.List<UserInfo> users; 2005 core.List<UserInfo> users;
1945 2006
1946 IdentitytoolkitRelyingpartyUploadAccountRequest(); 2007 IdentitytoolkitRelyingpartyUploadAccountRequest();
1947 2008
1948 IdentitytoolkitRelyingpartyUploadAccountRequest.fromJson(core.Map _json) { 2009 IdentitytoolkitRelyingpartyUploadAccountRequest.fromJson(core.Map _json) {
2010 if (_json.containsKey("allowOverwrite")) {
2011 allowOverwrite = _json["allowOverwrite"];
2012 }
1949 if (_json.containsKey("delegatedProjectNumber")) { 2013 if (_json.containsKey("delegatedProjectNumber")) {
1950 delegatedProjectNumber = _json["delegatedProjectNumber"]; 2014 delegatedProjectNumber = _json["delegatedProjectNumber"];
1951 } 2015 }
1952 if (_json.containsKey("hashAlgorithm")) { 2016 if (_json.containsKey("hashAlgorithm")) {
1953 hashAlgorithm = _json["hashAlgorithm"]; 2017 hashAlgorithm = _json["hashAlgorithm"];
1954 } 2018 }
1955 if (_json.containsKey("memoryCost")) { 2019 if (_json.containsKey("memoryCost")) {
1956 memoryCost = _json["memoryCost"]; 2020 memoryCost = _json["memoryCost"];
1957 } 2021 }
1958 if (_json.containsKey("rounds")) { 2022 if (_json.containsKey("rounds")) {
1959 rounds = _json["rounds"]; 2023 rounds = _json["rounds"];
1960 } 2024 }
1961 if (_json.containsKey("saltSeparator")) { 2025 if (_json.containsKey("saltSeparator")) {
1962 saltSeparator = _json["saltSeparator"]; 2026 saltSeparator = _json["saltSeparator"];
1963 } 2027 }
2028 if (_json.containsKey("sanityCheck")) {
2029 sanityCheck = _json["sanityCheck"];
2030 }
1964 if (_json.containsKey("signerKey")) { 2031 if (_json.containsKey("signerKey")) {
1965 signerKey = _json["signerKey"]; 2032 signerKey = _json["signerKey"];
1966 } 2033 }
2034 if (_json.containsKey("targetProjectId")) {
2035 targetProjectId = _json["targetProjectId"];
2036 }
1967 if (_json.containsKey("users")) { 2037 if (_json.containsKey("users")) {
1968 users = _json["users"].map((value) => new UserInfo.fromJson(value)).toList (); 2038 users = _json["users"].map((value) => new UserInfo.fromJson(value)).toList ();
1969 } 2039 }
1970 } 2040 }
1971 2041
1972 core.Map toJson() { 2042 core.Map toJson() {
1973 var _json = new core.Map(); 2043 var _json = new core.Map();
2044 if (allowOverwrite != null) {
2045 _json["allowOverwrite"] = allowOverwrite;
2046 }
1974 if (delegatedProjectNumber != null) { 2047 if (delegatedProjectNumber != null) {
1975 _json["delegatedProjectNumber"] = delegatedProjectNumber; 2048 _json["delegatedProjectNumber"] = delegatedProjectNumber;
1976 } 2049 }
1977 if (hashAlgorithm != null) { 2050 if (hashAlgorithm != null) {
1978 _json["hashAlgorithm"] = hashAlgorithm; 2051 _json["hashAlgorithm"] = hashAlgorithm;
1979 } 2052 }
1980 if (memoryCost != null) { 2053 if (memoryCost != null) {
1981 _json["memoryCost"] = memoryCost; 2054 _json["memoryCost"] = memoryCost;
1982 } 2055 }
1983 if (rounds != null) { 2056 if (rounds != null) {
1984 _json["rounds"] = rounds; 2057 _json["rounds"] = rounds;
1985 } 2058 }
1986 if (saltSeparator != null) { 2059 if (saltSeparator != null) {
1987 _json["saltSeparator"] = saltSeparator; 2060 _json["saltSeparator"] = saltSeparator;
1988 } 2061 }
2062 if (sanityCheck != null) {
2063 _json["sanityCheck"] = sanityCheck;
2064 }
1989 if (signerKey != null) { 2065 if (signerKey != null) {
1990 _json["signerKey"] = signerKey; 2066 _json["signerKey"] = signerKey;
1991 } 2067 }
2068 if (targetProjectId != null) {
2069 _json["targetProjectId"] = targetProjectId;
2070 }
1992 if (users != null) { 2071 if (users != null) {
1993 _json["users"] = users.map((value) => (value).toJson()).toList(); 2072 _json["users"] = users.map((value) => (value).toJson()).toList();
1994 } 2073 }
1995 return _json; 2074 return _json;
1996 } 2075 }
1997 } 2076 }
1998 2077
1999 /** Request to verify the IDP assertion. */ 2078 /** Request to verify the IDP assertion. */
2000 class IdentitytoolkitRelyingpartyVerifyAssertionRequest { 2079 class IdentitytoolkitRelyingpartyVerifyAssertionRequest {
2001 /** 2080 /**
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
2386 } 2465 }
2387 if (userIp != null) { 2466 if (userIp != null) {
2388 _json["userIp"] = userIp; 2467 _json["userIp"] = userIp;
2389 } 2468 }
2390 return _json; 2469 return _json;
2391 } 2470 }
2392 } 2471 }
2393 2472
2394 /** Response of resetting the password. */ 2473 /** Response of resetting the password. */
2395 class ResetPasswordResponse { 2474 class ResetPasswordResponse {
2396 /** The user's email. */ 2475 /**
2476 * The user's email. If the out-of-band code is for email recovery, the user's
2477 * original email.
2478 */
2397 core.String email; 2479 core.String email;
2398 /** The fixed string "identitytoolkit#ResetPasswordResponse". */ 2480 /** The fixed string "identitytoolkit#ResetPasswordResponse". */
2399 core.String kind; 2481 core.String kind;
2482 /** If the out-of-band code is for email recovery, the user's new email. */
2483 core.String newEmail;
2484 /** The request type. */
2485 core.String requestType;
2400 2486
2401 ResetPasswordResponse(); 2487 ResetPasswordResponse();
2402 2488
2403 ResetPasswordResponse.fromJson(core.Map _json) { 2489 ResetPasswordResponse.fromJson(core.Map _json) {
2404 if (_json.containsKey("email")) { 2490 if (_json.containsKey("email")) {
2405 email = _json["email"]; 2491 email = _json["email"];
2406 } 2492 }
2407 if (_json.containsKey("kind")) { 2493 if (_json.containsKey("kind")) {
2408 kind = _json["kind"]; 2494 kind = _json["kind"];
2409 } 2495 }
2496 if (_json.containsKey("newEmail")) {
2497 newEmail = _json["newEmail"];
2498 }
2499 if (_json.containsKey("requestType")) {
2500 requestType = _json["requestType"];
2501 }
2410 } 2502 }
2411 2503
2412 core.Map toJson() { 2504 core.Map toJson() {
2413 var _json = new core.Map(); 2505 var _json = new core.Map();
2414 if (email != null) { 2506 if (email != null) {
2415 _json["email"] = email; 2507 _json["email"] = email;
2416 } 2508 }
2417 if (kind != null) { 2509 if (kind != null) {
2418 _json["kind"] = kind; 2510 _json["kind"] = kind;
2419 } 2511 }
2512 if (newEmail != null) {
2513 _json["newEmail"] = newEmail;
2514 }
2515 if (requestType != null) {
2516 _json["requestType"] = requestType;
2517 }
2420 return _json; 2518 return _json;
2421 } 2519 }
2422 } 2520 }
2423 2521
2424 class SetAccountInfoResponseProviderUserInfo { 2522 class SetAccountInfoResponseProviderUserInfo {
2425 /** The user's display name at the IDP. */ 2523 /** The user's display name at the IDP. */
2426 core.String displayName; 2524 core.String displayName;
2427 /** User's identifier at IDP. */ 2525 /** User's identifier at IDP. */
2428 core.String federatedId; 2526 core.String federatedId;
2429 /** The user's photo url at the IDP. */ 2527 /** The user's photo url at the IDP. */
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
2727 /** The user's photo url at the IDP. */ 2825 /** The user's photo url at the IDP. */
2728 core.String photoUrl; 2826 core.String photoUrl;
2729 /** 2827 /**
2730 * The IdP ID. For white listed IdPs it's a short domain name, e.g., 2828 * The IdP ID. For white listed IdPs it's a short domain name, e.g.,
2731 * google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the 2829 * google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the
2732 * OP identifier. 2830 * OP identifier.
2733 */ 2831 */
2734 core.String providerId; 2832 core.String providerId;
2735 /** User's raw identifier directly returned from IDP. */ 2833 /** User's raw identifier directly returned from IDP. */
2736 core.String rawId; 2834 core.String rawId;
2737 /** Raw IDP-returned user info. */ 2835 /** User's screen name at Twitter or login name at Github. */
2738 core.String rawUserInfo;
2739 /** User's screen name at Twitter. */
2740 core.String screenName; 2836 core.String screenName;
2741 2837
2742 UserInfoProviderUserInfo(); 2838 UserInfoProviderUserInfo();
2743 2839
2744 UserInfoProviderUserInfo.fromJson(core.Map _json) { 2840 UserInfoProviderUserInfo.fromJson(core.Map _json) {
2745 if (_json.containsKey("displayName")) { 2841 if (_json.containsKey("displayName")) {
2746 displayName = _json["displayName"]; 2842 displayName = _json["displayName"];
2747 } 2843 }
2748 if (_json.containsKey("email")) { 2844 if (_json.containsKey("email")) {
2749 email = _json["email"]; 2845 email = _json["email"];
2750 } 2846 }
2751 if (_json.containsKey("federatedId")) { 2847 if (_json.containsKey("federatedId")) {
2752 federatedId = _json["federatedId"]; 2848 federatedId = _json["federatedId"];
2753 } 2849 }
2754 if (_json.containsKey("photoUrl")) { 2850 if (_json.containsKey("photoUrl")) {
2755 photoUrl = _json["photoUrl"]; 2851 photoUrl = _json["photoUrl"];
2756 } 2852 }
2757 if (_json.containsKey("providerId")) { 2853 if (_json.containsKey("providerId")) {
2758 providerId = _json["providerId"]; 2854 providerId = _json["providerId"];
2759 } 2855 }
2760 if (_json.containsKey("rawId")) { 2856 if (_json.containsKey("rawId")) {
2761 rawId = _json["rawId"]; 2857 rawId = _json["rawId"];
2762 } 2858 }
2763 if (_json.containsKey("rawUserInfo")) {
2764 rawUserInfo = _json["rawUserInfo"];
2765 }
2766 if (_json.containsKey("screenName")) { 2859 if (_json.containsKey("screenName")) {
2767 screenName = _json["screenName"]; 2860 screenName = _json["screenName"];
2768 } 2861 }
2769 } 2862 }
2770 2863
2771 core.Map toJson() { 2864 core.Map toJson() {
2772 var _json = new core.Map(); 2865 var _json = new core.Map();
2773 if (displayName != null) { 2866 if (displayName != null) {
2774 _json["displayName"] = displayName; 2867 _json["displayName"] = displayName;
2775 } 2868 }
2776 if (email != null) { 2869 if (email != null) {
2777 _json["email"] = email; 2870 _json["email"] = email;
2778 } 2871 }
2779 if (federatedId != null) { 2872 if (federatedId != null) {
2780 _json["federatedId"] = federatedId; 2873 _json["federatedId"] = federatedId;
2781 } 2874 }
2782 if (photoUrl != null) { 2875 if (photoUrl != null) {
2783 _json["photoUrl"] = photoUrl; 2876 _json["photoUrl"] = photoUrl;
2784 } 2877 }
2785 if (providerId != null) { 2878 if (providerId != null) {
2786 _json["providerId"] = providerId; 2879 _json["providerId"] = providerId;
2787 } 2880 }
2788 if (rawId != null) { 2881 if (rawId != null) {
2789 _json["rawId"] = rawId; 2882 _json["rawId"] = rawId;
2790 } 2883 }
2791 if (rawUserInfo != null) {
2792 _json["rawUserInfo"] = rawUserInfo;
2793 }
2794 if (screenName != null) { 2884 if (screenName != null) {
2795 _json["screenName"] = screenName; 2885 _json["screenName"] = screenName;
2796 } 2886 }
2797 return _json; 2887 return _json;
2798 } 2888 }
2799 } 2889 }
2800 2890
2801 /** Template for an individual account info. */ 2891 /** Template for an individual account info. */
2802 class UserInfo { 2892 class UserInfo {
2803 /** User creation timestamp. */ 2893 /** User creation timestamp. */
2804 core.String createdAt; 2894 core.String createdAt;
2895 /** Whether the user is authenticated by the developer. */
2896 core.bool customAuth;
2805 /** Whether the user is disabled. */ 2897 /** Whether the user is disabled. */
2806 core.bool disabled; 2898 core.bool disabled;
2807 /** The name of the user. */ 2899 /** The name of the user. */
2808 core.String displayName; 2900 core.String displayName;
2809 /** The email of the user. */ 2901 /** The email of the user. */
2810 core.String email; 2902 core.String email;
2811 /** Whether the email has been verified. */ 2903 /** Whether the email has been verified. */
2812 core.bool emailVerified; 2904 core.bool emailVerified;
2813 /** last login timestamp. */ 2905 /** last login timestamp. */
2814 core.String lastLoginAt; 2906 core.String lastLoginAt;
2815 /** The local ID of the user. */ 2907 /** The local ID of the user. */
2816 core.String localId; 2908 core.String localId;
2817 /** The user's hashed password. */ 2909 /** The user's hashed password. */
2818 core.String passwordHash; 2910 core.String passwordHash;
2819 core.List<core.int> get passwordHashAsBytes { 2911 core.List<core.int> get passwordHashAsBytes {
2820 return convert.BASE64.decode(passwordHash); 2912 return convert.BASE64.decode(passwordHash);
2821 } 2913 }
2822 2914
2823 void set passwordHashAsBytes(core.List<core.int> _bytes) { 2915 void set passwordHashAsBytes(core.List<core.int> _bytes) {
2824 passwordHash = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll ("+", "-"); 2916 passwordHash = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll ("+", "-");
2825 } 2917 }
2826 /** The timestamp when the password was last updated. */ 2918 /** The timestamp when the password was last updated. */
2827 core.double passwordUpdatedAt; 2919 core.double passwordUpdatedAt;
2828 /** The URL of the user profile photo. */ 2920 /** The URL of the user profile photo. */
2829 core.String photoUrl; 2921 core.String photoUrl;
2830 /** The IDP of the user. */ 2922 /** The IDP of the user. */
2831 core.List<UserInfoProviderUserInfo> providerUserInfo; 2923 core.List<UserInfoProviderUserInfo> providerUserInfo;
2924 /** The user's plain text password. */
2925 core.String rawPassword;
2832 /** The user's password salt. */ 2926 /** The user's password salt. */
2833 core.String salt; 2927 core.String salt;
2834 core.List<core.int> get saltAsBytes { 2928 core.List<core.int> get saltAsBytes {
2835 return convert.BASE64.decode(salt); 2929 return convert.BASE64.decode(salt);
2836 } 2930 }
2837 2931
2838 void set saltAsBytes(core.List<core.int> _bytes) { 2932 void set saltAsBytes(core.List<core.int> _bytes) {
2839 salt = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 2933 salt = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
2840 } 2934 }
2841 /** User's screen name at Twitter. */ 2935 /** User's screen name at Twitter or login name at Github. */
2842 core.String screenName; 2936 core.String screenName;
2843 /** Timestamp in seconds for valid login token. */ 2937 /** Timestamp in seconds for valid login token. */
2844 core.String validSince; 2938 core.String validSince;
2845 /** Version of the user's password. */ 2939 /** Version of the user's password. */
2846 core.int version; 2940 core.int version;
2847 2941
2848 UserInfo(); 2942 UserInfo();
2849 2943
2850 UserInfo.fromJson(core.Map _json) { 2944 UserInfo.fromJson(core.Map _json) {
2851 if (_json.containsKey("createdAt")) { 2945 if (_json.containsKey("createdAt")) {
2852 createdAt = _json["createdAt"]; 2946 createdAt = _json["createdAt"];
2853 } 2947 }
2948 if (_json.containsKey("customAuth")) {
2949 customAuth = _json["customAuth"];
2950 }
2854 if (_json.containsKey("disabled")) { 2951 if (_json.containsKey("disabled")) {
2855 disabled = _json["disabled"]; 2952 disabled = _json["disabled"];
2856 } 2953 }
2857 if (_json.containsKey("displayName")) { 2954 if (_json.containsKey("displayName")) {
2858 displayName = _json["displayName"]; 2955 displayName = _json["displayName"];
2859 } 2956 }
2860 if (_json.containsKey("email")) { 2957 if (_json.containsKey("email")) {
2861 email = _json["email"]; 2958 email = _json["email"];
2862 } 2959 }
2863 if (_json.containsKey("emailVerified")) { 2960 if (_json.containsKey("emailVerified")) {
(...skipping 10 matching lines...) Expand all
2874 } 2971 }
2875 if (_json.containsKey("passwordUpdatedAt")) { 2972 if (_json.containsKey("passwordUpdatedAt")) {
2876 passwordUpdatedAt = _json["passwordUpdatedAt"]; 2973 passwordUpdatedAt = _json["passwordUpdatedAt"];
2877 } 2974 }
2878 if (_json.containsKey("photoUrl")) { 2975 if (_json.containsKey("photoUrl")) {
2879 photoUrl = _json["photoUrl"]; 2976 photoUrl = _json["photoUrl"];
2880 } 2977 }
2881 if (_json.containsKey("providerUserInfo")) { 2978 if (_json.containsKey("providerUserInfo")) {
2882 providerUserInfo = _json["providerUserInfo"].map((value) => new UserInfoPr oviderUserInfo.fromJson(value)).toList(); 2979 providerUserInfo = _json["providerUserInfo"].map((value) => new UserInfoPr oviderUserInfo.fromJson(value)).toList();
2883 } 2980 }
2981 if (_json.containsKey("rawPassword")) {
2982 rawPassword = _json["rawPassword"];
2983 }
2884 if (_json.containsKey("salt")) { 2984 if (_json.containsKey("salt")) {
2885 salt = _json["salt"]; 2985 salt = _json["salt"];
2886 } 2986 }
2887 if (_json.containsKey("screenName")) { 2987 if (_json.containsKey("screenName")) {
2888 screenName = _json["screenName"]; 2988 screenName = _json["screenName"];
2889 } 2989 }
2890 if (_json.containsKey("validSince")) { 2990 if (_json.containsKey("validSince")) {
2891 validSince = _json["validSince"]; 2991 validSince = _json["validSince"];
2892 } 2992 }
2893 if (_json.containsKey("version")) { 2993 if (_json.containsKey("version")) {
2894 version = _json["version"]; 2994 version = _json["version"];
2895 } 2995 }
2896 } 2996 }
2897 2997
2898 core.Map toJson() { 2998 core.Map toJson() {
2899 var _json = new core.Map(); 2999 var _json = new core.Map();
2900 if (createdAt != null) { 3000 if (createdAt != null) {
2901 _json["createdAt"] = createdAt; 3001 _json["createdAt"] = createdAt;
2902 } 3002 }
3003 if (customAuth != null) {
3004 _json["customAuth"] = customAuth;
3005 }
2903 if (disabled != null) { 3006 if (disabled != null) {
2904 _json["disabled"] = disabled; 3007 _json["disabled"] = disabled;
2905 } 3008 }
2906 if (displayName != null) { 3009 if (displayName != null) {
2907 _json["displayName"] = displayName; 3010 _json["displayName"] = displayName;
2908 } 3011 }
2909 if (email != null) { 3012 if (email != null) {
2910 _json["email"] = email; 3013 _json["email"] = email;
2911 } 3014 }
2912 if (emailVerified != null) { 3015 if (emailVerified != null) {
(...skipping 10 matching lines...) Expand all
2923 } 3026 }
2924 if (passwordUpdatedAt != null) { 3027 if (passwordUpdatedAt != null) {
2925 _json["passwordUpdatedAt"] = passwordUpdatedAt; 3028 _json["passwordUpdatedAt"] = passwordUpdatedAt;
2926 } 3029 }
2927 if (photoUrl != null) { 3030 if (photoUrl != null) {
2928 _json["photoUrl"] = photoUrl; 3031 _json["photoUrl"] = photoUrl;
2929 } 3032 }
2930 if (providerUserInfo != null) { 3033 if (providerUserInfo != null) {
2931 _json["providerUserInfo"] = providerUserInfo.map((value) => (value).toJson ()).toList(); 3034 _json["providerUserInfo"] = providerUserInfo.map((value) => (value).toJson ()).toList();
2932 } 3035 }
3036 if (rawPassword != null) {
3037 _json["rawPassword"] = rawPassword;
3038 }
2933 if (salt != null) { 3039 if (salt != null) {
2934 _json["salt"] = salt; 3040 _json["salt"] = salt;
2935 } 3041 }
2936 if (screenName != null) { 3042 if (screenName != null) {
2937 _json["screenName"] = screenName; 3043 _json["screenName"] = screenName;
2938 } 3044 }
2939 if (validSince != null) { 3045 if (validSince != null) {
2940 _json["validSince"] = validSince; 3046 _json["validSince"] = validSince;
2941 } 3047 }
2942 if (version != null) { 3048 if (version != null) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
3044 * aol.com, live.net and yahoo.com. If the "providerId" param is set to OpenID 3150 * aol.com, live.net and yahoo.com. If the "providerId" param is set to OpenID
3045 * OP identifer other than the whilte listed IdPs the OP identifier is 3151 * OP identifer other than the whilte listed IdPs the OP identifier is
3046 * returned. If the "identifier" param is federated ID in the createAuthUri 3152 * returned. If the "identifier" param is federated ID in the createAuthUri
3047 * request. The domain part of the federated ID is returned. 3153 * request. The domain part of the federated ID is returned.
3048 */ 3154 */
3049 core.String providerId; 3155 core.String providerId;
3050 /** Raw IDP-returned user info. */ 3156 /** Raw IDP-returned user info. */
3051 core.String rawUserInfo; 3157 core.String rawUserInfo;
3052 /** If idToken is STS id token, then this field will be refresh token. */ 3158 /** If idToken is STS id token, then this field will be refresh token. */
3053 core.String refreshToken; 3159 core.String refreshToken;
3054 /** The screen_name of a Twitter user. */ 3160 /** The screen_name of a Twitter user or the login name at Github. */
3055 core.String screenName; 3161 core.String screenName;
3056 /** The timezone of the user. */ 3162 /** The timezone of the user. */
3057 core.String timeZone; 3163 core.String timeZone;
3058 /** 3164 /**
3059 * When action is 'map', contains the idps which can be used for confirmation. 3165 * When action is 'map', contains the idps which can be used for confirmation.
3060 */ 3166 */
3061 core.List<core.String> verifiedProvider; 3167 core.List<core.String> verifiedProvider;
3062 3168
3063 VerifyAssertionResponse(); 3169 VerifyAssertionResponse();
3064 3170
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
3459 } 3565 }
3460 if (refreshToken != null) { 3566 if (refreshToken != null) {
3461 _json["refreshToken"] = refreshToken; 3567 _json["refreshToken"] = refreshToken;
3462 } 3568 }
3463 if (registered != null) { 3569 if (registered != null) {
3464 _json["registered"] = registered; 3570 _json["registered"] = registered;
3465 } 3571 }
3466 return _json; 3572 return _json;
3467 } 3573 }
3468 } 3574 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/iam/v1.dart ('k') | generated/googleapis/lib/logging/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698