updateOrganizationConfiguration method
Future<void>
updateOrganizationConfiguration({
- required bool autoEnable,
- required String detectorId,
- OrganizationDataSourceConfigurations? dataSources,
Updates the delegated administrator account with the values provided.
May throw BadRequestException. May throw InternalServerErrorException.
Parameter autoEnable
:
Indicates whether to automatically enable member accounts in the
organization.
Parameter detectorId
:
The ID of the detector to update the delegated administrator for.
Parameter dataSources
:
Describes which data sources will be updated.
Implementation
Future<void> updateOrganizationConfiguration({
required bool autoEnable,
required String detectorId,
OrganizationDataSourceConfigurations? dataSources,
}) async {
ArgumentError.checkNotNull(autoEnable, 'autoEnable');
ArgumentError.checkNotNull(detectorId, 'detectorId');
_s.validateStringLength(
'detectorId',
detectorId,
1,
300,
isRequired: true,
);
final $payload = <String, dynamic>{
'autoEnable': autoEnable,
if (dataSources != null) 'dataSources': dataSources,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/detector/${Uri.encodeComponent(detectorId)}/admin',
exceptionFnMap: _exceptionFns,
);
}