putSipMediaApplicationLoggingConfiguration method

Future<PutSipMediaApplicationLoggingConfigurationResponse> putSipMediaApplicationLoggingConfiguration({
  1. required String sipMediaApplicationId,
  2. SipMediaApplicationLoggingConfiguration? sipMediaApplicationLoggingConfiguration,
})

Updates the logging configuration for the specified SIP media application.

May throw UnauthorizedClientException. May throw NotFoundException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter sipMediaApplicationId : The ID of the specified SIP media application

Parameter sipMediaApplicationLoggingConfiguration : The actual logging configuration.

Implementation

Future<PutSipMediaApplicationLoggingConfigurationResponse>
    putSipMediaApplicationLoggingConfiguration({
  required String sipMediaApplicationId,
  SipMediaApplicationLoggingConfiguration?
      sipMediaApplicationLoggingConfiguration,
}) async {
  ArgumentError.checkNotNull(sipMediaApplicationId, 'sipMediaApplicationId');
  final $payload = <String, dynamic>{
    if (sipMediaApplicationLoggingConfiguration != null)
      'SipMediaApplicationLoggingConfiguration':
          sipMediaApplicationLoggingConfiguration,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/sip-media-applications/${Uri.encodeComponent(sipMediaApplicationId)}/logging-configuration',
    exceptionFnMap: _exceptionFns,
  );
  return PutSipMediaApplicationLoggingConfigurationResponse.fromJson(
      response);
}