deleteModel method
Deletes a model.
May throw UnauthorizedException. May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException. May throw ConflictException.
Parameter modelName
:
Required
The name of the model to delete.
Parameter restApiId
:
Required
The string identifier of the associated RestApi.
Implementation
Future<void> deleteModel({
required String modelName,
required String restApiId,
}) async {
ArgumentError.checkNotNull(modelName, 'modelName');
ArgumentError.checkNotNull(restApiId, 'restApiId');
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/restapis/${Uri.encodeComponent(restApiId)}/models/${Uri.encodeComponent(modelName)}',
exceptionFnMap: _exceptionFns,
);
}