getEvidence method

Future<GetEvidenceResponse> getEvidence({
  1. required String assessmentId,
  2. required String controlSetId,
  3. required String evidenceFolderId,
  4. required String evidenceId,
})

Gets information about a specified evidence item.

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

Parameter assessmentId : The unique identifier for the assessment.

Parameter controlSetId : The unique identifier for the control set.

Parameter evidenceFolderId : The unique identifier for the folder that the evidence is stored in.

Parameter evidenceId : The unique identifier for the evidence.

Implementation

Future<GetEvidenceResponse> getEvidence({
  required String assessmentId,
  required String controlSetId,
  required String evidenceFolderId,
  required String evidenceId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/assessments/${Uri.encodeComponent(assessmentId)}/controlSets/${Uri.encodeComponent(controlSetId)}/evidenceFolders/${Uri.encodeComponent(evidenceFolderId)}/evidence/${Uri.encodeComponent(evidenceId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetEvidenceResponse.fromJson(response);
}