batchGetSchema method

Future<BatchGetSchemaOutput> batchGetSchema({
  1. required String collaborationIdentifier,
  2. required List<String> names,
})

Retrieves multiple schemas by their identifiers.

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

Parameter collaborationIdentifier : A unique identifier for the collaboration that the schemas belong to. Currently accepts collaboration ID.

Parameter names : The names for the schema objects to retrieve.

Implementation

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