configureLogs method
Future<ConfigureLogsResponse>
configureLogs({
- required String id,
- EgressAccessLogs? egressAccessLogs,
- IngressAccessLogs? ingressAccessLogs,
Changes the Channel's properities to configure log subscription
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw TooManyRequestsException.
May throw UnprocessableEntityException.
Parameter id :
The ID of the channel to log subscription.
Implementation
Future<ConfigureLogsResponse> configureLogs({
required String id,
EgressAccessLogs? egressAccessLogs,
IngressAccessLogs? ingressAccessLogs,
}) async {
final $payload = <String, dynamic>{
if (egressAccessLogs != null) 'egressAccessLogs': egressAccessLogs,
if (ingressAccessLogs != null) 'ingressAccessLogs': ingressAccessLogs,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/channels/${Uri.encodeComponent(id)}/configure_logs',
exceptionFnMap: _exceptionFns,
);
return ConfigureLogsResponse.fromJson(response);
}