updateInputDevice method

Future<UpdateInputDeviceResponse> updateInputDevice({
  1. required String inputDeviceId,
  2. InputDeviceConfigurableSettings? hdDeviceSettings,
  3. String? name,
  4. InputDeviceConfigurableSettings? uhdDeviceSettings,
})

Updates the parameters for the input device.

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

Parameter inputDeviceId : The unique ID of the input device. For example, hd-123456789abcdef.

Parameter hdDeviceSettings : The settings that you want to apply to the HD input device.

Parameter name : The name that you assigned to this input device (not the unique ID).

Parameter uhdDeviceSettings : The settings that you want to apply to the UHD input device.

Implementation

Future<UpdateInputDeviceResponse> updateInputDevice({
  required String inputDeviceId,
  InputDeviceConfigurableSettings? hdDeviceSettings,
  String? name,
  InputDeviceConfigurableSettings? uhdDeviceSettings,
}) async {
  ArgumentError.checkNotNull(inputDeviceId, 'inputDeviceId');
  final $payload = <String, dynamic>{
    if (hdDeviceSettings != null) 'hdDeviceSettings': hdDeviceSettings,
    if (name != null) 'name': name,
    if (uhdDeviceSettings != null) 'uhdDeviceSettings': uhdDeviceSettings,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/prod/inputDevices/${Uri.encodeComponent(inputDeviceId)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateInputDeviceResponse.fromJson(response);
}