deletePublishingDestination method

Future<void> deletePublishingDestination({
  1. required String destinationId,
  2. required String detectorId,
})

Deletes the publishing definition with the specified destinationId.

May throw BadRequestException. May throw InternalServerErrorException.

Parameter destinationId : The ID of the publishing destination to delete.

Parameter detectorId : The unique ID of the detector associated with the publishing destination to delete.

Implementation

Future<void> deletePublishingDestination({
  required String destinationId,
  required String detectorId,
}) async {
  ArgumentError.checkNotNull(destinationId, 'destinationId');
  ArgumentError.checkNotNull(detectorId, 'detectorId');
  _s.validateStringLength(
    'detectorId',
    detectorId,
    1,
    300,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/detector/${Uri.encodeComponent(detectorId)}/publishingDestination/${Uri.encodeComponent(destinationId)}',
    exceptionFnMap: _exceptionFns,
  );
}