deleteStage method
Deletes a Stage.
May throw NotFoundException. May throw TooManyRequestsException.
Parameter apiId
:
The API identifier.
Parameter stageName
:
The stage name. Stage names can only contain alphanumeric characters,
hyphens, and underscores. Maximum length is 128 characters.
Implementation
Future<void> deleteStage({
required String apiId,
required String stageName,
}) async {
ArgumentError.checkNotNull(apiId, 'apiId');
ArgumentError.checkNotNull(stageName, 'stageName');
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/v2/apis/${Uri.encodeComponent(apiId)}/stages/${Uri.encodeComponent(stageName)}',
exceptionFnMap: _exceptionFns,
);
}