getFunction method
Get a Function.
May throw ConcurrentModificationException.
May throw NotFoundException.
May throw UnauthorizedException.
Parameter apiId :
The GraphQL API ID.
Parameter functionId :
The Function ID.
Implementation
Future<GetFunctionResponse> getFunction({
required String apiId,
required String functionId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v1/apis/${Uri.encodeComponent(apiId)}/functions/${Uri.encodeComponent(functionId)}',
exceptionFnMap: _exceptionFns,
);
return GetFunctionResponse.fromJson(response);
}