deleteDocumentationPart method

Future<void> deleteDocumentationPart({
  1. required String documentationPartId,
  2. required String restApiId,
})

May throw UnauthorizedException. May throw NotFoundException. May throw TooManyRequestsException. May throw ConflictException. May throw BadRequestException.

Parameter documentationPartId : Required The identifier of the to-be-deleted documentation part.

Parameter restApiId : Required The string identifier of the associated RestApi.

Implementation

Future<void> deleteDocumentationPart({
  required String documentationPartId,
  required String restApiId,
}) async {
  ArgumentError.checkNotNull(documentationPartId, 'documentationPartId');
  ArgumentError.checkNotNull(restApiId, 'restApiId');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/restapis/${Uri.encodeComponent(restApiId)}/documentation/parts/${Uri.encodeComponent(documentationPartId)}',
    exceptionFnMap: _exceptionFns,
  );
}