listSchemaExtensions method
Lists all schema extensions applied to a Microsoft AD Directory.
May throw InvalidNextTokenException. May throw EntityDoesNotExistException. May throw ClientException. May throw ServiceException.
Parameter directoryId
:
The identifier of the directory from which to retrieve the schema
extension information.
Parameter limit
:
The maximum number of items to return.
Parameter nextToken
:
The ListSchemaExtensions.NextToken
value from a previous call
to ListSchemaExtensions
. Pass null if this is the first call.
Implementation
Future<ListSchemaExtensionsResult> listSchemaExtensions({
required String directoryId,
int? limit,
String? nextToken,
}) async {
ArgumentError.checkNotNull(directoryId, 'directoryId');
_s.validateNumRange(
'limit',
limit,
0,
1152921504606846976,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DirectoryService_20150416.ListSchemaExtensions'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DirectoryId': directoryId,
if (limit != null) 'Limit': limit,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListSchemaExtensionsResult.fromJson(jsonResponse.body);
}