deleteFunction method
Deletes a Function
.
May throw ConcurrentModificationException. May throw NotFoundException. May throw UnauthorizedException. May throw InternalFailureException.
Parameter apiId
:
The GraphQL API ID.
Parameter functionId
:
The Function
ID.
Implementation
Future<void> deleteFunction({
required String apiId,
required String functionId,
}) async {
ArgumentError.checkNotNull(apiId, 'apiId');
ArgumentError.checkNotNull(functionId, 'functionId');
_s.validateStringLength(
'functionId',
functionId,
1,
65536,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/v1/apis/${Uri.encodeComponent(apiId)}/functions/${Uri.encodeComponent(functionId)}',
exceptionFnMap: _exceptionFns,
);
}