getDataSource method
Retrieves a DataSource object.
May throw BadRequestException.
May throw ConcurrentModificationException.
May throw InternalFailureException.
May throw NotFoundException.
May throw UnauthorizedException.
Parameter apiId :
The API ID.
Parameter name :
The name of the data source.
Implementation
Future<GetDataSourceResponse> getDataSource({
required String apiId,
required String name,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v1/apis/${Uri.encodeComponent(apiId)}/datasources/${Uri.encodeComponent(name)}',
exceptionFnMap: _exceptionFns,
);
return GetDataSourceResponse.fromJson(response);
}