deleteStage method

Future<void> deleteStage({
  1. required String restApiId,
  2. required String stageName,
})

Deletes a Stage resource.

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

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

Parameter stageName : Required The name of the Stage resource to delete.

Implementation

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