batchGetSchemaAnalysisRule method

Future<BatchGetSchemaAnalysisRuleOutput> batchGetSchemaAnalysisRule({
  1. required String collaborationIdentifier,
  2. required List<SchemaAnalysisRuleRequest> schemaAnalysisRuleRequests,
})

Retrieves multiple analysis rule schemas.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter collaborationIdentifier : The unique identifier of the collaboration that contains the schema analysis rule.

Parameter schemaAnalysisRuleRequests : The information that's necessary to retrieve a schema analysis rule.

Implementation

Future<BatchGetSchemaAnalysisRuleOutput> batchGetSchemaAnalysisRule({
  required String collaborationIdentifier,
  required List<SchemaAnalysisRuleRequest> schemaAnalysisRuleRequests,
}) async {
  final $payload = <String, dynamic>{
    'schemaAnalysisRuleRequests': schemaAnalysisRuleRequests,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/collaborations/${Uri.encodeComponent(collaborationIdentifier)}/batch-schema-analysis-rule',
    exceptionFnMap: _exceptionFns,
  );
  return BatchGetSchemaAnalysisRuleOutput.fromJson(response);
}