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 {
ArgumentError.checkNotNull(apiId, 'apiId');
ArgumentError.checkNotNull(functionId, 'functionId');
_s.validateStringLength(
'functionId',
functionId,
1,
65536,
isRequired: true,
);
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);
}