deleteBackupSelection method

Future<void> deleteBackupSelection({
  1. required String backupPlanId,
  2. required String selectionId,
})

Deletes the resource selection associated with a backup plan that is specified by the SelectionId.

May throw ResourceNotFoundException. May throw InvalidParameterValueException. May throw MissingParameterValueException. May throw ServiceUnavailableException.

Parameter backupPlanId : Uniquely identifies a backup plan.

Parameter selectionId : Uniquely identifies the body of a request to assign a set of resources to a backup plan.

Implementation

Future<void> deleteBackupSelection({
  required String backupPlanId,
  required String selectionId,
}) async {
  ArgumentError.checkNotNull(backupPlanId, 'backupPlanId');
  ArgumentError.checkNotNull(selectionId, 'selectionId');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/backup/plans/${Uri.encodeComponent(backupPlanId)}/selections/${Uri.encodeComponent(selectionId)}',
    exceptionFnMap: _exceptionFns,
  );
}