updateMultiplex method
Updates 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 :
ID of the multiplex to update.
Parameter multiplexSettings :
The new settings for a multiplex.
Parameter name :
Name of the multiplex.
Implementation
Future<UpdateMultiplexResponse> updateMultiplex({
required String multiplexId,
MultiplexSettings? multiplexSettings,
String? name,
Map<String, MultiplexProgramPacketIdentifiersMap>? packetIdentifiersMapping,
}) async {
final $payload = <String, dynamic>{
if (multiplexSettings != null) 'multiplexSettings': multiplexSettings,
if (name != null) 'name': name,
if (packetIdentifiersMapping != null)
'packetIdentifiersMapping': packetIdentifiersMapping,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/prod/multiplexes/${Uri.encodeComponent(multiplexId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateMultiplexResponse.fromJson(response);
}