riskDisposeLabels method

Future<RiskDisposeOut?> riskDisposeLabels(
  1. RiskDisposeIn riskDisposeIn
)

Dispose of this tenant's expired assertions, whole records only

Applies this tenant's retention, and only this tenant's. It is bounded three ways, each a compliance property rather than a convenience. It refuses a boundary younger than the platform floor, because a label can be the input to an adverse action and five years is what the retention ledger holds such a record for. It never touches a record under litigation hold. And it disposes of whole records rather than redacting fields. It removes the derived columnar copy BEFORE the record, and refuses the whole disposal if the warehouse cannot be reached. The other order would leave rows in the warehouse that nothing can identify any more, which is a disposal that did not happen and says it did.

Parameters:

Implementation

Future<RiskDisposeOut?> riskDisposeLabels(RiskDisposeIn riskDisposeIn,) async {
  final response = await riskDisposeLabelsWithHttpInfo(riskDisposeIn,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
  // When a remote server returns no body with a status of 204, we shall not decode it.
  // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  // FormatException when trying to decode an empty string.
  if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
    return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'RiskDisposeOut',) as RiskDisposeOut;

  }
  return null;
}