| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
| 1 library googleapis.identitytoolkit.v3; | 3 library googleapis.identitytoolkit.v3; |
| 2 | 4 |
| 3 import "dart:core" as core; | 5 import 'dart:core' as core; |
| 4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
| 5 import "dart:async" as async; | 7 import 'dart:async' as async; |
| 6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; |
| 7 | 9 |
| 8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 11 import 'package:crypto/crypto.dart' as crypto; |
| 9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | |
| 11 import '../common/common.dart' as common; | |
| 12 | 13 |
| 13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 14 export '../common/common.dart' show DetailedApiRequestError; | 15 ApiRequestError, DetailedApiRequestError; |
| 16 |
| 17 const core.String USER_AGENT = 'dart-api-client identitytoolkit/v3'; |
| 15 | 18 |
| 16 /** Help the third party sites to implement federated login. */ | 19 /** Help the third party sites to implement federated login. */ |
| 17 class IdentitytoolkitApi { | 20 class IdentitytoolkitApi { |
| 18 | 21 |
| 19 final common_internal.ApiRequester _requester; | 22 final commons.ApiRequester _requester; |
| 20 | 23 |
| 21 RelyingpartyResourceApi get relyingparty => new RelyingpartyResourceApi(_reque
ster); | 24 RelyingpartyResourceApi get relyingparty => new RelyingpartyResourceApi(_reque
ster); |
| 22 | 25 |
| 23 IdentitytoolkitApi(http.Client client, {core.String rootUrl: "https://www.goog
leapis.com/", core.String servicePath: "identitytoolkit/v3/relyingparty/"}) : | 26 IdentitytoolkitApi(http.Client client, {core.String rootUrl: "https://www.goog
leapis.com/", core.String servicePath: "identitytoolkit/v3/relyingparty/"}) : |
| 24 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 27 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 25 } | 28 } |
| 26 | 29 |
| 27 | 30 |
| 28 /** Not documented yet. */ | |
| 29 class RelyingpartyResourceApi { | 31 class RelyingpartyResourceApi { |
| 30 final common_internal.ApiRequester _requester; | 32 final commons.ApiRequester _requester; |
| 31 | 33 |
| 32 RelyingpartyResourceApi(common_internal.ApiRequester client) : | 34 RelyingpartyResourceApi(commons.ApiRequester client) : |
| 33 _requester = client; | 35 _requester = client; |
| 34 | 36 |
| 35 /** | 37 /** |
| 36 * Creates the URI used by the IdP to authenticate the user. | 38 * Creates the URI used by the IdP to authenticate the user. |
| 37 * | 39 * |
| 38 * [request] - The metadata request object. | 40 * [request] - The metadata request object. |
| 39 * | 41 * |
| 40 * Request parameters: | 42 * Request parameters: |
| 41 * | 43 * |
| 42 * Completes with a [CreateAuthUriResponse]. | 44 * Completes with a [CreateAuthUriResponse]. |
| 43 * | 45 * |
| 44 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 46 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 45 * error. | 47 * error. |
| 46 * | 48 * |
| 47 * If the used [http.Client] completes with an error when making a REST call, | 49 * If the used [http.Client] completes with an error when making a REST call, |
| 48 * this method will complete with the same error. | 50 * this method will complete with the same error. |
| 49 */ | 51 */ |
| 50 async.Future<CreateAuthUriResponse> createAuthUri(IdentitytoolkitRelyingpartyC
reateAuthUriRequest request) { | 52 async.Future<CreateAuthUriResponse> createAuthUri(IdentitytoolkitRelyingpartyC
reateAuthUriRequest request) { |
| 51 var _url = null; | 53 var _url = null; |
| 52 var _queryParams = new core.Map(); | 54 var _queryParams = new core.Map(); |
| 53 var _uploadMedia = null; | 55 var _uploadMedia = null; |
| 54 var _uploadOptions = null; | 56 var _uploadOptions = null; |
| 55 var _downloadOptions = common.DownloadOptions.Metadata; | 57 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 56 var _body = null; | 58 var _body = null; |
| 57 | 59 |
| 58 if (request != null) { | 60 if (request != null) { |
| 59 _body = convert.JSON.encode((request).toJson()); | 61 _body = convert.JSON.encode((request).toJson()); |
| 60 } | 62 } |
| 61 | 63 |
| 62 | 64 |
| 63 _url = 'createAuthUri'; | 65 _url = 'createAuthUri'; |
| 64 | 66 |
| 65 var _response = _requester.request(_url, | 67 var _response = _requester.request(_url, |
| 66 "POST", | 68 "POST", |
| 67 body: _body, | 69 body: _body, |
| 68 queryParams: _queryParams, | 70 queryParams: _queryParams, |
| 69 uploadOptions: _uploadOptions, | 71 uploadOptions: _uploadOptions, |
| 70 uploadMedia: _uploadMedia, | 72 uploadMedia: _uploadMedia, |
| 71 downloadOptions: _downloadOptions); | 73 downloadOptions: _downloadOptions); |
| 72 return _response.then((data) => new CreateAuthUriResponse.fromJson(data)); | 74 return _response.then((data) => new CreateAuthUriResponse.fromJson(data)); |
| 73 } | 75 } |
| 74 | 76 |
| 75 /** | 77 /** |
| 76 * Delete user account. | 78 * Delete user account. |
| 77 * | 79 * |
| 78 * [request] - The metadata request object. | 80 * [request] - The metadata request object. |
| 79 * | 81 * |
| 80 * Request parameters: | 82 * Request parameters: |
| 81 * | 83 * |
| 82 * Completes with a [DeleteAccountResponse]. | 84 * Completes with a [DeleteAccountResponse]. |
| 83 * | 85 * |
| 84 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 86 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 85 * error. | 87 * error. |
| 86 * | 88 * |
| 87 * If the used [http.Client] completes with an error when making a REST call, | 89 * If the used [http.Client] completes with an error when making a REST call, |
| 88 * this method will complete with the same error. | 90 * this method will complete with the same error. |
| 89 */ | 91 */ |
| 90 async.Future<DeleteAccountResponse> deleteAccount(IdentitytoolkitRelyingpartyD
eleteAccountRequest request) { | 92 async.Future<DeleteAccountResponse> deleteAccount(IdentitytoolkitRelyingpartyD
eleteAccountRequest request) { |
| 91 var _url = null; | 93 var _url = null; |
| 92 var _queryParams = new core.Map(); | 94 var _queryParams = new core.Map(); |
| 93 var _uploadMedia = null; | 95 var _uploadMedia = null; |
| 94 var _uploadOptions = null; | 96 var _uploadOptions = null; |
| 95 var _downloadOptions = common.DownloadOptions.Metadata; | 97 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 96 var _body = null; | 98 var _body = null; |
| 97 | 99 |
| 98 if (request != null) { | 100 if (request != null) { |
| 99 _body = convert.JSON.encode((request).toJson()); | 101 _body = convert.JSON.encode((request).toJson()); |
| 100 } | 102 } |
| 101 | 103 |
| 102 | 104 |
| 103 _url = 'deleteAccount'; | 105 _url = 'deleteAccount'; |
| 104 | 106 |
| 105 var _response = _requester.request(_url, | 107 var _response = _requester.request(_url, |
| 106 "POST", | 108 "POST", |
| 107 body: _body, | 109 body: _body, |
| 108 queryParams: _queryParams, | 110 queryParams: _queryParams, |
| 109 uploadOptions: _uploadOptions, | 111 uploadOptions: _uploadOptions, |
| 110 uploadMedia: _uploadMedia, | 112 uploadMedia: _uploadMedia, |
| 111 downloadOptions: _downloadOptions); | 113 downloadOptions: _downloadOptions); |
| 112 return _response.then((data) => new DeleteAccountResponse.fromJson(data)); | 114 return _response.then((data) => new DeleteAccountResponse.fromJson(data)); |
| 113 } | 115 } |
| 114 | 116 |
| 115 /** | 117 /** |
| 116 * Batch download user accounts. | 118 * Batch download user accounts. |
| 117 * | 119 * |
| 118 * [request] - The metadata request object. | 120 * [request] - The metadata request object. |
| 119 * | 121 * |
| 120 * Request parameters: | 122 * Request parameters: |
| 121 * | 123 * |
| 122 * Completes with a [DownloadAccountResponse]. | 124 * Completes with a [DownloadAccountResponse]. |
| 123 * | 125 * |
| 124 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 126 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 125 * error. | 127 * error. |
| 126 * | 128 * |
| 127 * If the used [http.Client] completes with an error when making a REST call, | 129 * If the used [http.Client] completes with an error when making a REST call, |
| 128 * this method will complete with the same error. | 130 * this method will complete with the same error. |
| 129 */ | 131 */ |
| 130 async.Future<DownloadAccountResponse> downloadAccount(IdentitytoolkitRelyingpa
rtyDownloadAccountRequest request) { | 132 async.Future<DownloadAccountResponse> downloadAccount(IdentitytoolkitRelyingpa
rtyDownloadAccountRequest request) { |
| 131 var _url = null; | 133 var _url = null; |
| 132 var _queryParams = new core.Map(); | 134 var _queryParams = new core.Map(); |
| 133 var _uploadMedia = null; | 135 var _uploadMedia = null; |
| 134 var _uploadOptions = null; | 136 var _uploadOptions = null; |
| 135 var _downloadOptions = common.DownloadOptions.Metadata; | 137 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 136 var _body = null; | 138 var _body = null; |
| 137 | 139 |
| 138 if (request != null) { | 140 if (request != null) { |
| 139 _body = convert.JSON.encode((request).toJson()); | 141 _body = convert.JSON.encode((request).toJson()); |
| 140 } | 142 } |
| 141 | 143 |
| 142 | 144 |
| 143 _url = 'downloadAccount'; | 145 _url = 'downloadAccount'; |
| 144 | 146 |
| 145 var _response = _requester.request(_url, | 147 var _response = _requester.request(_url, |
| 146 "POST", | 148 "POST", |
| 147 body: _body, | 149 body: _body, |
| 148 queryParams: _queryParams, | 150 queryParams: _queryParams, |
| 149 uploadOptions: _uploadOptions, | 151 uploadOptions: _uploadOptions, |
| 150 uploadMedia: _uploadMedia, | 152 uploadMedia: _uploadMedia, |
| 151 downloadOptions: _downloadOptions); | 153 downloadOptions: _downloadOptions); |
| 152 return _response.then((data) => new DownloadAccountResponse.fromJson(data)); | 154 return _response.then((data) => new DownloadAccountResponse.fromJson(data)); |
| 153 } | 155 } |
| 154 | 156 |
| 155 /** | 157 /** |
| 156 * Returns the account info. | 158 * Returns the account info. |
| 157 * | 159 * |
| 158 * [request] - The metadata request object. | 160 * [request] - The metadata request object. |
| 159 * | 161 * |
| 160 * Request parameters: | 162 * Request parameters: |
| 161 * | 163 * |
| 162 * Completes with a [GetAccountInfoResponse]. | 164 * Completes with a [GetAccountInfoResponse]. |
| 163 * | 165 * |
| 164 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 166 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 165 * error. | 167 * error. |
| 166 * | 168 * |
| 167 * If the used [http.Client] completes with an error when making a REST call, | 169 * If the used [http.Client] completes with an error when making a REST call, |
| 168 * this method will complete with the same error. | 170 * this method will complete with the same error. |
| 169 */ | 171 */ |
| 170 async.Future<GetAccountInfoResponse> getAccountInfo(IdentitytoolkitRelyingpart
yGetAccountInfoRequest request) { | 172 async.Future<GetAccountInfoResponse> getAccountInfo(IdentitytoolkitRelyingpart
yGetAccountInfoRequest request) { |
| 171 var _url = null; | 173 var _url = null; |
| 172 var _queryParams = new core.Map(); | 174 var _queryParams = new core.Map(); |
| 173 var _uploadMedia = null; | 175 var _uploadMedia = null; |
| 174 var _uploadOptions = null; | 176 var _uploadOptions = null; |
| 175 var _downloadOptions = common.DownloadOptions.Metadata; | 177 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 176 var _body = null; | 178 var _body = null; |
| 177 | 179 |
| 178 if (request != null) { | 180 if (request != null) { |
| 179 _body = convert.JSON.encode((request).toJson()); | 181 _body = convert.JSON.encode((request).toJson()); |
| 180 } | 182 } |
| 181 | 183 |
| 182 | 184 |
| 183 _url = 'getAccountInfo'; | 185 _url = 'getAccountInfo'; |
| 184 | 186 |
| 185 var _response = _requester.request(_url, | 187 var _response = _requester.request(_url, |
| 186 "POST", | 188 "POST", |
| 187 body: _body, | 189 body: _body, |
| 188 queryParams: _queryParams, | 190 queryParams: _queryParams, |
| 189 uploadOptions: _uploadOptions, | 191 uploadOptions: _uploadOptions, |
| 190 uploadMedia: _uploadMedia, | 192 uploadMedia: _uploadMedia, |
| 191 downloadOptions: _downloadOptions); | 193 downloadOptions: _downloadOptions); |
| 192 return _response.then((data) => new GetAccountInfoResponse.fromJson(data)); | 194 return _response.then((data) => new GetAccountInfoResponse.fromJson(data)); |
| 193 } | 195 } |
| 194 | 196 |
| 195 /** | 197 /** |
| 196 * Get a code for user action confirmation. | 198 * Get a code for user action confirmation. |
| 197 * | 199 * |
| 198 * [request] - The metadata request object. | 200 * [request] - The metadata request object. |
| 199 * | 201 * |
| 200 * Request parameters: | 202 * Request parameters: |
| 201 * | 203 * |
| 202 * Completes with a [GetOobConfirmationCodeResponse]. | 204 * Completes with a [GetOobConfirmationCodeResponse]. |
| 203 * | 205 * |
| 204 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 206 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 205 * error. | 207 * error. |
| 206 * | 208 * |
| 207 * If the used [http.Client] completes with an error when making a REST call, | 209 * If the used [http.Client] completes with an error when making a REST call, |
| 208 * this method will complete with the same error. | 210 * this method will complete with the same error. |
| 209 */ | 211 */ |
| 210 async.Future<GetOobConfirmationCodeResponse> getOobConfirmationCode(Relyingpar
ty request) { | 212 async.Future<GetOobConfirmationCodeResponse> getOobConfirmationCode(Relyingpar
ty request) { |
| 211 var _url = null; | 213 var _url = null; |
| 212 var _queryParams = new core.Map(); | 214 var _queryParams = new core.Map(); |
| 213 var _uploadMedia = null; | 215 var _uploadMedia = null; |
| 214 var _uploadOptions = null; | 216 var _uploadOptions = null; |
| 215 var _downloadOptions = common.DownloadOptions.Metadata; | 217 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 216 var _body = null; | 218 var _body = null; |
| 217 | 219 |
| 218 if (request != null) { | 220 if (request != null) { |
| 219 _body = convert.JSON.encode((request).toJson()); | 221 _body = convert.JSON.encode((request).toJson()); |
| 220 } | 222 } |
| 221 | 223 |
| 222 | 224 |
| 223 _url = 'getOobConfirmationCode'; | 225 _url = 'getOobConfirmationCode'; |
| 224 | 226 |
| 225 var _response = _requester.request(_url, | 227 var _response = _requester.request(_url, |
| 226 "POST", | 228 "POST", |
| 227 body: _body, | 229 body: _body, |
| 228 queryParams: _queryParams, | 230 queryParams: _queryParams, |
| 229 uploadOptions: _uploadOptions, | 231 uploadOptions: _uploadOptions, |
| 230 uploadMedia: _uploadMedia, | 232 uploadMedia: _uploadMedia, |
| 231 downloadOptions: _downloadOptions); | 233 downloadOptions: _downloadOptions); |
| 232 return _response.then((data) => new GetOobConfirmationCodeResponse.fromJson(
data)); | 234 return _response.then((data) => new GetOobConfirmationCodeResponse.fromJson(
data)); |
| 233 } | 235 } |
| 234 | 236 |
| 235 /** | 237 /** |
| 236 * Get token signing public key. | 238 * Get token signing public key. |
| 237 * | 239 * |
| 238 * Request parameters: | 240 * Request parameters: |
| 239 * | 241 * |
| 240 * Completes with a [IdentitytoolkitRelyingpartyGetPublicKeysResponse]. | 242 * Completes with a [IdentitytoolkitRelyingpartyGetPublicKeysResponse]. |
| 241 * | 243 * |
| 242 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 244 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 243 * error. | 245 * error. |
| 244 * | 246 * |
| 245 * If the used [http.Client] completes with an error when making a REST call, | 247 * If the used [http.Client] completes with an error when making a REST call, |
| 246 * this method will complete with the same error. | 248 * this method will complete with the same error. |
| 247 */ | 249 */ |
| 248 async.Future<IdentitytoolkitRelyingpartyGetPublicKeysResponse> getPublicKeys()
{ | 250 async.Future<IdentitytoolkitRelyingpartyGetPublicKeysResponse> getPublicKeys()
{ |
| 249 var _url = null; | 251 var _url = null; |
| 250 var _queryParams = new core.Map(); | 252 var _queryParams = new core.Map(); |
| 251 var _uploadMedia = null; | 253 var _uploadMedia = null; |
| 252 var _uploadOptions = null; | 254 var _uploadOptions = null; |
| 253 var _downloadOptions = common.DownloadOptions.Metadata; | 255 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 254 var _body = null; | 256 var _body = null; |
| 255 | 257 |
| 256 | 258 |
| 257 | 259 |
| 258 _url = 'publicKeys'; | 260 _url = 'publicKeys'; |
| 259 | 261 |
| 260 var _response = _requester.request(_url, | 262 var _response = _requester.request(_url, |
| 261 "GET", | 263 "GET", |
| 262 body: _body, | 264 body: _body, |
| 263 queryParams: _queryParams, | 265 queryParams: _queryParams, |
| 264 uploadOptions: _uploadOptions, | 266 uploadOptions: _uploadOptions, |
| 265 uploadMedia: _uploadMedia, | 267 uploadMedia: _uploadMedia, |
| 266 downloadOptions: _downloadOptions); | 268 downloadOptions: _downloadOptions); |
| 267 return _response.then((data) => new IdentitytoolkitRelyingpartyGetPublicKeys
Response.fromJson(data)); | 269 return _response.then((data) => new IdentitytoolkitRelyingpartyGetPublicKeys
Response.fromJson(data)); |
| 268 } | 270 } |
| 269 | 271 |
| 270 /** | 272 /** |
| 271 * Reset password for a user. | 273 * Reset password for a user. |
| 272 * | 274 * |
| 273 * [request] - The metadata request object. | 275 * [request] - The metadata request object. |
| 274 * | 276 * |
| 275 * Request parameters: | 277 * Request parameters: |
| 276 * | 278 * |
| 277 * Completes with a [ResetPasswordResponse]. | 279 * Completes with a [ResetPasswordResponse]. |
| 278 * | 280 * |
| 279 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 281 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 280 * error. | 282 * error. |
| 281 * | 283 * |
| 282 * If the used [http.Client] completes with an error when making a REST call, | 284 * If the used [http.Client] completes with an error when making a REST call, |
| 283 * this method will complete with the same error. | 285 * this method will complete with the same error. |
| 284 */ | 286 */ |
| 285 async.Future<ResetPasswordResponse> resetPassword(IdentitytoolkitRelyingpartyR
esetPasswordRequest request) { | 287 async.Future<ResetPasswordResponse> resetPassword(IdentitytoolkitRelyingpartyR
esetPasswordRequest request) { |
| 286 var _url = null; | 288 var _url = null; |
| 287 var _queryParams = new core.Map(); | 289 var _queryParams = new core.Map(); |
| 288 var _uploadMedia = null; | 290 var _uploadMedia = null; |
| 289 var _uploadOptions = null; | 291 var _uploadOptions = null; |
| 290 var _downloadOptions = common.DownloadOptions.Metadata; | 292 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 291 var _body = null; | 293 var _body = null; |
| 292 | 294 |
| 293 if (request != null) { | 295 if (request != null) { |
| 294 _body = convert.JSON.encode((request).toJson()); | 296 _body = convert.JSON.encode((request).toJson()); |
| 295 } | 297 } |
| 296 | 298 |
| 297 | 299 |
| 298 _url = 'resetPassword'; | 300 _url = 'resetPassword'; |
| 299 | 301 |
| 300 var _response = _requester.request(_url, | 302 var _response = _requester.request(_url, |
| 301 "POST", | 303 "POST", |
| 302 body: _body, | 304 body: _body, |
| 303 queryParams: _queryParams, | 305 queryParams: _queryParams, |
| 304 uploadOptions: _uploadOptions, | 306 uploadOptions: _uploadOptions, |
| 305 uploadMedia: _uploadMedia, | 307 uploadMedia: _uploadMedia, |
| 306 downloadOptions: _downloadOptions); | 308 downloadOptions: _downloadOptions); |
| 307 return _response.then((data) => new ResetPasswordResponse.fromJson(data)); | 309 return _response.then((data) => new ResetPasswordResponse.fromJson(data)); |
| 308 } | 310 } |
| 309 | 311 |
| 310 /** | 312 /** |
| 311 * Set account info for a user. | 313 * Set account info for a user. |
| 312 * | 314 * |
| 313 * [request] - The metadata request object. | 315 * [request] - The metadata request object. |
| 314 * | 316 * |
| 315 * Request parameters: | 317 * Request parameters: |
| 316 * | 318 * |
| 317 * Completes with a [SetAccountInfoResponse]. | 319 * Completes with a [SetAccountInfoResponse]. |
| 318 * | 320 * |
| 319 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 321 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 320 * error. | 322 * error. |
| 321 * | 323 * |
| 322 * If the used [http.Client] completes with an error when making a REST call, | 324 * If the used [http.Client] completes with an error when making a REST call, |
| 323 * this method will complete with the same error. | 325 * this method will complete with the same error. |
| 324 */ | 326 */ |
| 325 async.Future<SetAccountInfoResponse> setAccountInfo(IdentitytoolkitRelyingpart
ySetAccountInfoRequest request) { | 327 async.Future<SetAccountInfoResponse> setAccountInfo(IdentitytoolkitRelyingpart
ySetAccountInfoRequest request) { |
| 326 var _url = null; | 328 var _url = null; |
| 327 var _queryParams = new core.Map(); | 329 var _queryParams = new core.Map(); |
| 328 var _uploadMedia = null; | 330 var _uploadMedia = null; |
| 329 var _uploadOptions = null; | 331 var _uploadOptions = null; |
| 330 var _downloadOptions = common.DownloadOptions.Metadata; | 332 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 331 var _body = null; | 333 var _body = null; |
| 332 | 334 |
| 333 if (request != null) { | 335 if (request != null) { |
| 334 _body = convert.JSON.encode((request).toJson()); | 336 _body = convert.JSON.encode((request).toJson()); |
| 335 } | 337 } |
| 336 | 338 |
| 337 | 339 |
| 338 _url = 'setAccountInfo'; | 340 _url = 'setAccountInfo'; |
| 339 | 341 |
| 340 var _response = _requester.request(_url, | 342 var _response = _requester.request(_url, |
| 341 "POST", | 343 "POST", |
| 342 body: _body, | 344 body: _body, |
| 343 queryParams: _queryParams, | 345 queryParams: _queryParams, |
| 344 uploadOptions: _uploadOptions, | 346 uploadOptions: _uploadOptions, |
| 345 uploadMedia: _uploadMedia, | 347 uploadMedia: _uploadMedia, |
| 346 downloadOptions: _downloadOptions); | 348 downloadOptions: _downloadOptions); |
| 347 return _response.then((data) => new SetAccountInfoResponse.fromJson(data)); | 349 return _response.then((data) => new SetAccountInfoResponse.fromJson(data)); |
| 348 } | 350 } |
| 349 | 351 |
| 350 /** | 352 /** |
| 351 * Batch upload existing user accounts. | 353 * Batch upload existing user accounts. |
| 352 * | 354 * |
| 353 * [request] - The metadata request object. | 355 * [request] - The metadata request object. |
| 354 * | 356 * |
| 355 * Request parameters: | 357 * Request parameters: |
| 356 * | 358 * |
| 357 * Completes with a [UploadAccountResponse]. | 359 * Completes with a [UploadAccountResponse]. |
| 358 * | 360 * |
| 359 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 361 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 360 * error. | 362 * error. |
| 361 * | 363 * |
| 362 * If the used [http.Client] completes with an error when making a REST call, | 364 * If the used [http.Client] completes with an error when making a REST call, |
| 363 * this method will complete with the same error. | 365 * this method will complete with the same error. |
| 364 */ | 366 */ |
| 365 async.Future<UploadAccountResponse> uploadAccount(IdentitytoolkitRelyingpartyU
ploadAccountRequest request) { | 367 async.Future<UploadAccountResponse> uploadAccount(IdentitytoolkitRelyingpartyU
ploadAccountRequest request) { |
| 366 var _url = null; | 368 var _url = null; |
| 367 var _queryParams = new core.Map(); | 369 var _queryParams = new core.Map(); |
| 368 var _uploadMedia = null; | 370 var _uploadMedia = null; |
| 369 var _uploadOptions = null; | 371 var _uploadOptions = null; |
| 370 var _downloadOptions = common.DownloadOptions.Metadata; | 372 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 371 var _body = null; | 373 var _body = null; |
| 372 | 374 |
| 373 if (request != null) { | 375 if (request != null) { |
| 374 _body = convert.JSON.encode((request).toJson()); | 376 _body = convert.JSON.encode((request).toJson()); |
| 375 } | 377 } |
| 376 | 378 |
| 377 | 379 |
| 378 _url = 'uploadAccount'; | 380 _url = 'uploadAccount'; |
| 379 | 381 |
| 380 var _response = _requester.request(_url, | 382 var _response = _requester.request(_url, |
| 381 "POST", | 383 "POST", |
| 382 body: _body, | 384 body: _body, |
| 383 queryParams: _queryParams, | 385 queryParams: _queryParams, |
| 384 uploadOptions: _uploadOptions, | 386 uploadOptions: _uploadOptions, |
| 385 uploadMedia: _uploadMedia, | 387 uploadMedia: _uploadMedia, |
| 386 downloadOptions: _downloadOptions); | 388 downloadOptions: _downloadOptions); |
| 387 return _response.then((data) => new UploadAccountResponse.fromJson(data)); | 389 return _response.then((data) => new UploadAccountResponse.fromJson(data)); |
| 388 } | 390 } |
| 389 | 391 |
| 390 /** | 392 /** |
| 391 * Verifies the assertion returned by the IdP. | 393 * Verifies the assertion returned by the IdP. |
| 392 * | 394 * |
| 393 * [request] - The metadata request object. | 395 * [request] - The metadata request object. |
| 394 * | 396 * |
| 395 * Request parameters: | 397 * Request parameters: |
| 396 * | 398 * |
| 397 * Completes with a [VerifyAssertionResponse]. | 399 * Completes with a [VerifyAssertionResponse]. |
| 398 * | 400 * |
| 399 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 401 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 400 * error. | 402 * error. |
| 401 * | 403 * |
| 402 * If the used [http.Client] completes with an error when making a REST call, | 404 * If the used [http.Client] completes with an error when making a REST call, |
| 403 * this method will complete with the same error. | 405 * this method will complete with the same error. |
| 404 */ | 406 */ |
| 405 async.Future<VerifyAssertionResponse> verifyAssertion(IdentitytoolkitRelyingpa
rtyVerifyAssertionRequest request) { | 407 async.Future<VerifyAssertionResponse> verifyAssertion(IdentitytoolkitRelyingpa
rtyVerifyAssertionRequest request) { |
| 406 var _url = null; | 408 var _url = null; |
| 407 var _queryParams = new core.Map(); | 409 var _queryParams = new core.Map(); |
| 408 var _uploadMedia = null; | 410 var _uploadMedia = null; |
| 409 var _uploadOptions = null; | 411 var _uploadOptions = null; |
| 410 var _downloadOptions = common.DownloadOptions.Metadata; | 412 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 411 var _body = null; | 413 var _body = null; |
| 412 | 414 |
| 413 if (request != null) { | 415 if (request != null) { |
| 414 _body = convert.JSON.encode((request).toJson()); | 416 _body = convert.JSON.encode((request).toJson()); |
| 415 } | 417 } |
| 416 | 418 |
| 417 | 419 |
| 418 _url = 'verifyAssertion'; | 420 _url = 'verifyAssertion'; |
| 419 | 421 |
| 420 var _response = _requester.request(_url, | 422 var _response = _requester.request(_url, |
| 421 "POST", | 423 "POST", |
| 422 body: _body, | 424 body: _body, |
| 423 queryParams: _queryParams, | 425 queryParams: _queryParams, |
| 424 uploadOptions: _uploadOptions, | 426 uploadOptions: _uploadOptions, |
| 425 uploadMedia: _uploadMedia, | 427 uploadMedia: _uploadMedia, |
| 426 downloadOptions: _downloadOptions); | 428 downloadOptions: _downloadOptions); |
| 427 return _response.then((data) => new VerifyAssertionResponse.fromJson(data)); | 429 return _response.then((data) => new VerifyAssertionResponse.fromJson(data)); |
| 428 } | 430 } |
| 429 | 431 |
| 430 /** | 432 /** |
| 431 * Verifies the user entered password. | 433 * Verifies the user entered password. |
| 432 * | 434 * |
| 433 * [request] - The metadata request object. | 435 * [request] - The metadata request object. |
| 434 * | 436 * |
| 435 * Request parameters: | 437 * Request parameters: |
| 436 * | 438 * |
| 437 * Completes with a [VerifyPasswordResponse]. | 439 * Completes with a [VerifyPasswordResponse]. |
| 438 * | 440 * |
| 439 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 441 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 440 * error. | 442 * error. |
| 441 * | 443 * |
| 442 * If the used [http.Client] completes with an error when making a REST call, | 444 * If the used [http.Client] completes with an error when making a REST call, |
| 443 * this method will complete with the same error. | 445 * this method will complete with the same error. |
| 444 */ | 446 */ |
| 445 async.Future<VerifyPasswordResponse> verifyPassword(IdentitytoolkitRelyingpart
yVerifyPasswordRequest request) { | 447 async.Future<VerifyPasswordResponse> verifyPassword(IdentitytoolkitRelyingpart
yVerifyPasswordRequest request) { |
| 446 var _url = null; | 448 var _url = null; |
| 447 var _queryParams = new core.Map(); | 449 var _queryParams = new core.Map(); |
| 448 var _uploadMedia = null; | 450 var _uploadMedia = null; |
| 449 var _uploadOptions = null; | 451 var _uploadOptions = null; |
| 450 var _downloadOptions = common.DownloadOptions.Metadata; | 452 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 451 var _body = null; | 453 var _body = null; |
| 452 | 454 |
| 453 if (request != null) { | 455 if (request != null) { |
| 454 _body = convert.JSON.encode((request).toJson()); | 456 _body = convert.JSON.encode((request).toJson()); |
| 455 } | 457 } |
| 456 | 458 |
| 457 | 459 |
| 458 _url = 'verifyPassword'; | 460 _url = 'verifyPassword'; |
| 459 | 461 |
| 460 var _response = _requester.request(_url, | 462 var _response = _requester.request(_url, |
| (...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1397 _json["email"] = email; | 1399 _json["email"] = email; |
| 1398 } | 1400 } |
| 1399 if (kind != null) { | 1401 if (kind != null) { |
| 1400 _json["kind"] = kind; | 1402 _json["kind"] = kind; |
| 1401 } | 1403 } |
| 1402 return _json; | 1404 return _json; |
| 1403 } | 1405 } |
| 1404 } | 1406 } |
| 1405 | 1407 |
| 1406 | 1408 |
| 1407 /** Not documented yet. */ | |
| 1408 class SetAccountInfoResponseProviderUserInfo { | 1409 class SetAccountInfoResponseProviderUserInfo { |
| 1409 /** The user's display name at the IDP. */ | 1410 /** The user's display name at the IDP. */ |
| 1410 core.String displayName; | 1411 core.String displayName; |
| 1411 | 1412 |
| 1412 /** The user's photo url at the IDP. */ | 1413 /** The user's photo url at the IDP. */ |
| 1413 core.String photoUrl; | 1414 core.String photoUrl; |
| 1414 | 1415 |
| 1415 /** | 1416 /** |
| 1416 * The IdP ID. For whitelisted IdPs it's a short domain name, e.g., | 1417 * The IdP ID. For whitelisted IdPs it's a short domain name, e.g., |
| 1417 * google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the | 1418 * google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1503 _json["kind"] = kind; | 1504 _json["kind"] = kind; |
| 1504 } | 1505 } |
| 1505 if (providerUserInfo != null) { | 1506 if (providerUserInfo != null) { |
| 1506 _json["providerUserInfo"] = providerUserInfo.map((value) => (value).toJson
()).toList(); | 1507 _json["providerUserInfo"] = providerUserInfo.map((value) => (value).toJson
()).toList(); |
| 1507 } | 1508 } |
| 1508 return _json; | 1509 return _json; |
| 1509 } | 1510 } |
| 1510 } | 1511 } |
| 1511 | 1512 |
| 1512 | 1513 |
| 1513 /** Not documented yet. */ | |
| 1514 class UploadAccountResponseError { | 1514 class UploadAccountResponseError { |
| 1515 /** The index of the malformed account, starting from 0. */ | 1515 /** The index of the malformed account, starting from 0. */ |
| 1516 core.int index; | 1516 core.int index; |
| 1517 | 1517 |
| 1518 /** Detailed error message for the account info. */ | 1518 /** Detailed error message for the account info. */ |
| 1519 core.String message; | 1519 core.String message; |
| 1520 | 1520 |
| 1521 | 1521 |
| 1522 UploadAccountResponseError(); | 1522 UploadAccountResponseError(); |
| 1523 | 1523 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1569 _json["error"] = error.map((value) => (value).toJson()).toList(); | 1569 _json["error"] = error.map((value) => (value).toJson()).toList(); |
| 1570 } | 1570 } |
| 1571 if (kind != null) { | 1571 if (kind != null) { |
| 1572 _json["kind"] = kind; | 1572 _json["kind"] = kind; |
| 1573 } | 1573 } |
| 1574 return _json; | 1574 return _json; |
| 1575 } | 1575 } |
| 1576 } | 1576 } |
| 1577 | 1577 |
| 1578 | 1578 |
| 1579 /** Not documented yet. */ | |
| 1580 class UserInfoProviderUserInfo { | 1579 class UserInfoProviderUserInfo { |
| 1581 /** The user's display name at the IDP. */ | 1580 /** The user's display name at the IDP. */ |
| 1582 core.String displayName; | 1581 core.String displayName; |
| 1583 | 1582 |
| 1584 /** User's identifier at IDP. */ | 1583 /** User's identifier at IDP. */ |
| 1585 core.String federatedId; | 1584 core.String federatedId; |
| 1586 | 1585 |
| 1587 /** The user's photo url at the IDP. */ | 1586 /** The user's photo url at the IDP. */ |
| 1588 core.String photoUrl; | 1587 core.String photoUrl; |
| 1589 | 1588 |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2115 } | 2114 } |
| 2116 if (photoUrl != null) { | 2115 if (photoUrl != null) { |
| 2117 _json["photoUrl"] = photoUrl; | 2116 _json["photoUrl"] = photoUrl; |
| 2118 } | 2117 } |
| 2119 if (registered != null) { | 2118 if (registered != null) { |
| 2120 _json["registered"] = registered; | 2119 _json["registered"] = registered; |
| 2121 } | 2120 } |
| 2122 return _json; | 2121 return _json; |
| 2123 } | 2122 } |
| 2124 } | 2123 } |
| 2125 | |
| 2126 | |
| OLD | NEW |