OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.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 manage your data across Google Cloud Platform services */ |
| 21 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
| 22 |
20 /** View and administer all your Firebase data and settings */ | 23 /** View and administer all your Firebase data and settings */ |
21 static const FirebaseScope = "https://www.googleapis.com/auth/firebase"; | 24 static const FirebaseScope = "https://www.googleapis.com/auth/firebase"; |
22 | 25 |
23 | 26 |
24 final commons.ApiRequester _requester; | 27 final commons.ApiRequester _requester; |
25 | 28 |
26 RelyingpartyResourceApi get relyingparty => new RelyingpartyResourceApi(_reque
ster); | 29 RelyingpartyResourceApi get relyingparty => new RelyingpartyResourceApi(_reque
ster); |
27 | 30 |
28 IdentitytoolkitApi(http.Client client, {core.String rootUrl: "https://www.goog
leapis.com/", core.String servicePath: "identitytoolkit/v3/relyingparty/"}) : | 31 IdentitytoolkitApi(http.Client client, {core.String rootUrl: "https://www.goog
leapis.com/", core.String servicePath: "identitytoolkit/v3/relyingparty/"}) : |
29 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 32 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 * for Firebase V1 migration. | 1221 * for Firebase V1 migration. |
1219 */ | 1222 */ |
1220 core.String delegatedProjectNumber; | 1223 core.String delegatedProjectNumber; |
1221 /** The max number of results to return in the response. */ | 1224 /** The max number of results to return in the response. */ |
1222 core.int maxResults; | 1225 core.int maxResults; |
1223 /** | 1226 /** |
1224 * The token for the next page. This should be taken from the previous | 1227 * The token for the next page. This should be taken from the previous |
1225 * response. | 1228 * response. |
1226 */ | 1229 */ |
1227 core.String nextPageToken; | 1230 core.String nextPageToken; |
| 1231 /** |
| 1232 * Specify which project (field value is actually project id) to operate. Only |
| 1233 * used when provided credential. |
| 1234 */ |
| 1235 core.String targetProjectId; |
1228 | 1236 |
1229 IdentitytoolkitRelyingpartyDownloadAccountRequest(); | 1237 IdentitytoolkitRelyingpartyDownloadAccountRequest(); |
1230 | 1238 |
1231 IdentitytoolkitRelyingpartyDownloadAccountRequest.fromJson(core.Map _json) { | 1239 IdentitytoolkitRelyingpartyDownloadAccountRequest.fromJson(core.Map _json) { |
1232 if (_json.containsKey("delegatedProjectNumber")) { | 1240 if (_json.containsKey("delegatedProjectNumber")) { |
1233 delegatedProjectNumber = _json["delegatedProjectNumber"]; | 1241 delegatedProjectNumber = _json["delegatedProjectNumber"]; |
1234 } | 1242 } |
1235 if (_json.containsKey("maxResults")) { | 1243 if (_json.containsKey("maxResults")) { |
1236 maxResults = _json["maxResults"]; | 1244 maxResults = _json["maxResults"]; |
1237 } | 1245 } |
1238 if (_json.containsKey("nextPageToken")) { | 1246 if (_json.containsKey("nextPageToken")) { |
1239 nextPageToken = _json["nextPageToken"]; | 1247 nextPageToken = _json["nextPageToken"]; |
1240 } | 1248 } |
| 1249 if (_json.containsKey("targetProjectId")) { |
| 1250 targetProjectId = _json["targetProjectId"]; |
| 1251 } |
1241 } | 1252 } |
1242 | 1253 |
1243 core.Map toJson() { | 1254 core.Map toJson() { |
1244 var _json = new core.Map(); | 1255 var _json = new core.Map(); |
1245 if (delegatedProjectNumber != null) { | 1256 if (delegatedProjectNumber != null) { |
1246 _json["delegatedProjectNumber"] = delegatedProjectNumber; | 1257 _json["delegatedProjectNumber"] = delegatedProjectNumber; |
1247 } | 1258 } |
1248 if (maxResults != null) { | 1259 if (maxResults != null) { |
1249 _json["maxResults"] = maxResults; | 1260 _json["maxResults"] = maxResults; |
1250 } | 1261 } |
1251 if (nextPageToken != null) { | 1262 if (nextPageToken != null) { |
1252 _json["nextPageToken"] = nextPageToken; | 1263 _json["nextPageToken"] = nextPageToken; |
1253 } | 1264 } |
| 1265 if (targetProjectId != null) { |
| 1266 _json["targetProjectId"] = targetProjectId; |
| 1267 } |
1254 return _json; | 1268 return _json; |
1255 } | 1269 } |
1256 } | 1270 } |
1257 | 1271 |
1258 /** Request to get the account information. */ | 1272 /** Request to get the account information. */ |
1259 class IdentitytoolkitRelyingpartyGetAccountInfoRequest { | 1273 class IdentitytoolkitRelyingpartyGetAccountInfoRequest { |
1260 /** | 1274 /** |
1261 * GCP project number of the requesting delegated app. Currently only intended | 1275 * GCP project number of the requesting delegated app. Currently only intended |
1262 * for Firebase V1 migration. | 1276 * for Firebase V1 migration. |
1263 */ | 1277 */ |
(...skipping 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3565 } | 3579 } |
3566 if (refreshToken != null) { | 3580 if (refreshToken != null) { |
3567 _json["refreshToken"] = refreshToken; | 3581 _json["refreshToken"] = refreshToken; |
3568 } | 3582 } |
3569 if (registered != null) { | 3583 if (registered != null) { |
3570 _json["registered"] = registered; | 3584 _json["registered"] = registered; |
3571 } | 3585 } |
3572 return _json; | 3586 return _json; |
3573 } | 3587 } |
3574 } | 3588 } |
OLD | NEW |