updateMultiplex method
Future<UpdateMultiplexResponse>
updateMultiplex({
- required String multiplexId,
- MultiplexSettings? multiplexSettings,
- String? name,
Updates 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
:
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,
}) async {
ArgumentError.checkNotNull(multiplexId, 'multiplexId');
final $payload = <String, dynamic>{
if (multiplexSettings != null) 'multiplexSettings': multiplexSettings,
if (name != null) 'name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/prod/multiplexes/${Uri.encodeComponent(multiplexId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateMultiplexResponse.fromJson(response);
}