stopChannel method
Stops a running channel
May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw BadGatewayException. May throw NotFoundException. May throw GatewayTimeoutException. May throw TooManyRequestsException. May throw ConflictException.
Parameter channelId
:
A request to stop a running channel
Implementation
Future<StopChannelResponse> stopChannel({
required String channelId,
}) async {
ArgumentError.checkNotNull(channelId, 'channelId');
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri: '/prod/channels/${Uri.encodeComponent(channelId)}/stop',
exceptionFnMap: _exceptionFns,
);
return StopChannelResponse.fromJson(response);
}