batchGetThreatModels method

Future<BatchGetThreatModelsOutput> batchGetThreatModels({
  1. required String agentSpaceId,
  2. required List<String> threatModelIds,
})

Retrieves information about one or more threat models in an agent space.

Parameter agentSpaceId : The unique identifier of the agent space that contains the threat models.

Parameter threatModelIds : The list of threat model identifiers to retrieve.

Implementation

Future<BatchGetThreatModelsOutput> batchGetThreatModels({
  required String agentSpaceId,
  required List<String> threatModelIds,
}) async {
  final $payload = <String, dynamic>{
    'agentSpaceId': agentSpaceId,
    'threatModelIds': threatModelIds,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/BatchGetThreatModels',
    exceptionFnMap: _exceptionFns,
  );
  return BatchGetThreatModelsOutput.fromJson(response);
}