deleteMultiplexProgram method

Future<DeleteMultiplexProgramResponse> deleteMultiplexProgram({
  1. required String multiplexId,
  2. required String programName,
})

Delete a program from a multiplex.

May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw BadGatewayException. May throw NotFoundException. May throw GatewayTimeoutException. May throw TooManyRequestsException. May throw ConflictException.

Parameter multiplexId : The ID of the multiplex that the program belongs to.

Parameter programName : The multiplex program name.

Implementation

Future<DeleteMultiplexProgramResponse> deleteMultiplexProgram({
  required String multiplexId,
  required String programName,
}) async {
  ArgumentError.checkNotNull(multiplexId, 'multiplexId');
  ArgumentError.checkNotNull(programName, 'programName');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/prod/multiplexes/${Uri.encodeComponent(multiplexId)}/programs/${Uri.encodeComponent(programName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteMultiplexProgramResponse.fromJson(response);
}