deleteFunctionsByName method

Future<Object?> deleteFunctionsByName(
  1. String name
)

Removes one of the caller org's functions and answers 204.

Removes one of the caller org's functions and answers 204. A name this org does not hold is 404 — never a silent success — and a name belonging to another tenant is the same 404, because the delete is predicated on the validated org.

Parameters:

  • String name (required): Name is the function the URL names.

Implementation

Future<Object?> deleteFunctionsByName(String name,) async {
  final response = await deleteFunctionsByNameWithHttpInfo(name,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
  // When a remote server returns no body with a status of 204, we shall not decode it.
  // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  // FormatException when trying to decode an empty string.
  if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
    return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'Object',) as Object;

  }
  return null;
}