deleteResolver method

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

Deletes a Resolver object.

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

Parameter apiId : The API ID.

Parameter fieldName : The resolver field name.

Parameter typeName : The name of the resolver type.

Implementation

Future<void> deleteResolver({
  required String apiId,
  required String fieldName,
  required String typeName,
}) async {
  ArgumentError.checkNotNull(apiId, 'apiId');
  ArgumentError.checkNotNull(fieldName, 'fieldName');
  _s.validateStringLength(
    'fieldName',
    fieldName,
    1,
    65536,
    isRequired: true,
  );
  ArgumentError.checkNotNull(typeName, 'typeName');
  _s.validateStringLength(
    'typeName',
    typeName,
    1,
    65536,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v1/apis/${Uri.encodeComponent(apiId)}/types/${Uri.encodeComponent(typeName)}/resolvers/${Uri.encodeComponent(fieldName)}',
    exceptionFnMap: _exceptionFns,
  );
}