detachFunction method

Future<DetachFunctionResponse> detachFunction({
  1. required String name,
  2. bool? deleteOutput,
})

Detaches a function from this collection.

name - The name of the attached function to detach (required). deleteOutput - Whether to delete the output collection.

Returns whether the detach operation was successful.

Implementation

Future<DetachFunctionResponse> detachFunction({
  required String name,
  bool? deleteOutput,
}) {
  if (_functions == null) {
    throw StateError('Functions resource not available');
  }
  return _functions.detach(name: name, deleteOutput: deleteOutput);
}