describeComputationModel method
Retrieves information about a computation model.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter computationModelId :
The ID of the computation model.
Parameter computationModelVersion :
The version of the computation model.
Implementation
Future<DescribeComputationModelResponse> describeComputationModel({
required String computationModelId,
String? computationModelVersion,
}) async {
final $query = <String, List<String>>{
if (computationModelVersion != null)
'computationModelVersion': [computationModelVersion],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/computation-models/${Uri.encodeComponent(computationModelId)}',
queryParams: $query,
hostPrefix: 'api.',
exceptionFnMap: _exceptionFns,
);
return DescribeComputationModelResponse.fromJson(response);
}