updateMemberDetectors method
Future<UpdateMemberDetectorsResponse>
updateMemberDetectors({
- required List<
String> accountIds, - required String detectorId,
- DataSourceConfigurations? dataSources,
Contains information on member accounts to be updated.
May throw BadRequestException. May throw InternalServerErrorException.
Parameter accountIds
:
A list of member account IDs to be updated.
Parameter detectorId
:
The detector ID of the administrator account.
Parameter dataSources
:
Describes which data sources will be updated.
Implementation
Future<UpdateMemberDetectorsResponse> updateMemberDetectors({
required List<String> accountIds,
required String detectorId,
DataSourceConfigurations? dataSources,
}) async {
ArgumentError.checkNotNull(accountIds, 'accountIds');
ArgumentError.checkNotNull(detectorId, 'detectorId');
_s.validateStringLength(
'detectorId',
detectorId,
1,
300,
isRequired: true,
);
final $payload = <String, dynamic>{
'accountIds': accountIds,
if (dataSources != null) 'dataSources': dataSources,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/detector/${Uri.encodeComponent(detectorId)}/member/detector/update',
exceptionFnMap: _exceptionFns,
);
return UpdateMemberDetectorsResponse.fromJson(response);
}