batchDeleteThreatModels method

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

Deletes one or more threat models from an agent space.

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

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

Implementation

Future<BatchDeleteThreatModelsOutput> batchDeleteThreatModels({
  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: '/BatchDeleteThreatModels',
    exceptionFnMap: _exceptionFns,
  );
  return BatchDeleteThreatModelsOutput.fromJson(response);
}