deleteDocumentationVersion method
May throw UnauthorizedException. May throw NotFoundException. May throw BadRequestException. May throw ConflictException. May throw TooManyRequestsException.
Parameter documentationVersion
:
Required
The version identifier of a to-be-deleted documentation
snapshot.
Parameter restApiId
:
Required
The string identifier of the associated RestApi.
Implementation
Future<void> deleteDocumentationVersion({
required String documentationVersion,
required String restApiId,
}) async {
ArgumentError.checkNotNull(documentationVersion, 'documentationVersion');
ArgumentError.checkNotNull(restApiId, 'restApiId');
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/restapis/${Uri.encodeComponent(restApiId)}/documentation/versions/${Uri.encodeComponent(documentationVersion)}',
exceptionFnMap: _exceptionFns,
);
}