deleteChannelNamespace method

Future<void> deleteChannelNamespace({
  1. required String apiId,
  2. required String name,
})

Deletes a ChannelNamespace.

May throw AccessDeniedException. May throw BadRequestException. May throw ConcurrentModificationException. May throw InternalFailureException. May throw NotFoundException. May throw UnauthorizedException.

Parameter apiId : The ID of the Api associated with the ChannelNamespace.

Parameter name : The name of the ChannelNamespace.

Implementation

Future<void> deleteChannelNamespace({
  required String apiId,
  required String name,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v2/apis/${Uri.encodeComponent(apiId)}/channelNamespaces/${Uri.encodeComponent(name)}',
    exceptionFnMap: _exceptionFns,
  );
}