deleteDeployment method

Future<void> deleteDeployment({
  1. required String apiId,
  2. required String deploymentId,
})

Deletes a Deployment.

May throw NotFoundException. May throw TooManyRequestsException.

Parameter apiId : The API identifier.

Parameter deploymentId : The deployment ID.

Implementation

Future<void> deleteDeployment({
  required String apiId,
  required String deploymentId,
}) async {
  ArgumentError.checkNotNull(apiId, 'apiId');
  ArgumentError.checkNotNull(deploymentId, 'deploymentId');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v2/apis/${Uri.encodeComponent(apiId)}/deployments/${Uri.encodeComponent(deploymentId)}',
    exceptionFnMap: _exceptionFns,
  );
}