configureLogs method
Future<ConfigureLogsResponse>
configureLogs({
- required String id,
- EgressAccessLogs? egressAccessLogs,
- IngressAccessLogs? ingressAccessLogs,
Changes the Channel's properities to configure log subscription
May throw UnprocessableEntityException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.
Parameter id
:
The ID of the channel to log subscription.
Implementation
Future<ConfigureLogsResponse> configureLogs({
required String id,
EgressAccessLogs? egressAccessLogs,
IngressAccessLogs? ingressAccessLogs,
}) async {
ArgumentError.checkNotNull(id, 'id');
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);
}