updateMultiplexProgram method
Future<UpdateMultiplexProgramResponse>
updateMultiplexProgram({
- required String multiplexId,
- required String programName,
- MultiplexProgramSettings? multiplexProgramSettings,
Update a program in a multiplex.
May throw BadRequestException. May throw UnprocessableEntityException. May throw InternalServerErrorException. May throw ForbiddenException. May throw BadGatewayException. May throw NotFoundException. May throw GatewayTimeoutException. May throw ConflictException.
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 {
ArgumentError.checkNotNull(multiplexId, 'multiplexId');
ArgumentError.checkNotNull(programName, 'programName');
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);
}