batchDelete method
- GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest request,
- String targetProjectId, {
- String? $fields,
Batch deletes multiple accounts.
For accounts that fail to be deleted, error info is contained in the response. The method ignores accounts that do not exist or are duplicated in the request. This method requires a Google OAuth 2.0 credential with proper permissions. (https://cloud.google.com/identity-platform/docs/access-control)
request
- The metadata request object.
Request parameters:
targetProjectId
- If tenant_id
is specified, the ID of the Google
Cloud project that the Identity Platform tenant belongs to. Otherwise, the
ID of the Google Cloud project that accounts belong to.
Value must have pattern ^\[^/\]+$
.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse>
batchDelete(
GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest request,
core.String targetProjectId, {
core.String? $fields,
}) async {
final _body = convert.json.encode(request);
final _queryParams = <core.String, core.List<core.String>>{
if ($fields != null) 'fields': [$fields],
};
final _url = 'v1/projects/' +
core.Uri.encodeFull('$targetProjectId') +
'/accounts:batchDelete';
final _response = await _requester.request(
_url,
'POST',
body: _body,
queryParams: _queryParams,
);
return GoogleCloudIdentitytoolkitV1BatchDeleteAccountsResponse.fromJson(
_response as core.Map<core.String, core.dynamic>);
}