getChannelNamespace method

Future<GetChannelNamespaceResponse> getChannelNamespace({
  1. required String apiId,
  2. required String name,
})

Retrieves the channel namespace for a specified Api.

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

Parameter apiId : The Api ID.

Parameter name : The name of the ChannelNamespace.

Implementation

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