deleteType method

Future<void> deleteType({
  1. required String apiId,
  2. required String typeName,
})

Deletes a Type object.

May throw BadRequestException. May throw ConcurrentModificationException. May throw InternalFailureException. May throw NotFoundException. May throw UnauthorizedException.

Parameter apiId : The API ID.

Parameter typeName : The type name.

Implementation

Future<void> deleteType({
  required String apiId,
  required String typeName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v1/apis/${Uri.encodeComponent(apiId)}/types/${Uri.encodeComponent(typeName)}',
    exceptionFnMap: _exceptionFns,
  );
}