batchDelete method

Future<BatchDeleteResponse> batchDelete({
  1. List<String>? channelIds,
  2. List<String>? inputIds,
  3. List<String>? inputSecurityGroupIds,
  4. List<String>? multiplexIds,
})

Starts delete of resources.

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

Parameter channelIds : List of channel IDs

Parameter inputIds : List of input IDs

Parameter inputSecurityGroupIds : List of input security group IDs

Parameter multiplexIds : List of multiplex IDs

Implementation

Future<BatchDeleteResponse> batchDelete({
  List<String>? channelIds,
  List<String>? inputIds,
  List<String>? inputSecurityGroupIds,
  List<String>? multiplexIds,
}) async {
  final $payload = <String, dynamic>{
    if (channelIds != null) 'channelIds': channelIds,
    if (inputIds != null) 'inputIds': inputIds,
    if (inputSecurityGroupIds != null)
      'inputSecurityGroupIds': inputSecurityGroupIds,
    if (multiplexIds != null) 'multiplexIds': multiplexIds,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/prod/batch/delete',
    exceptionFnMap: _exceptionFns,
  );
  return BatchDeleteResponse.fromJson(response);
}