updateMultiplexProgram method
Update a program in a multiplex.
May throw BadGatewayException.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw GatewayTimeoutException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw UnprocessableEntityException.
Parameter multiplexId :
The ID of the multiplex of the program to update.
Parameter programName :
The name of the program to update.
Parameter multiplexProgramSettings :
The new settings for a multiplex program.
Implementation
Future<UpdateMultiplexProgramResponse> updateMultiplexProgram({
required String multiplexId,
required String programName,
MultiplexProgramSettings? multiplexProgramSettings,
}) async {
final $payload = <String, dynamic>{
if (multiplexProgramSettings != null)
'multiplexProgramSettings': multiplexProgramSettings,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/prod/multiplexes/${Uri.encodeComponent(multiplexId)}/programs/${Uri.encodeComponent(programName)}',
exceptionFnMap: _exceptionFns,
);
return UpdateMultiplexProgramResponse.fromJson(response);
}