getRevision method
This operation returns information about a revision.
May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException. May throw InternalServerException.
Parameter dataSetId
:
The unique identifier for a data set.
Parameter revisionId
:
The unique identifier for a revision.
Implementation
Future<GetRevisionResponse> getRevision({
required String dataSetId,
required String revisionId,
}) async {
ArgumentError.checkNotNull(dataSetId, 'dataSetId');
ArgumentError.checkNotNull(revisionId, 'revisionId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v1/data-sets/${Uri.encodeComponent(dataSetId)}/revisions/${Uri.encodeComponent(revisionId)}',
exceptionFnMap: _exceptionFns,
);
return GetRevisionResponse.fromJson(response);
}