riskCreateDataset method

Future<RiskDataset?> riskCreateDataset(
  1. RiskDatasetSpec riskDatasetSpec
)

Declare the next version of a dataset

Declares the next version of a dataset from a bound query over this org's own feature surface. It mints a VERSION and writes no rows: a version is declared, then materialised once, then never rewritten. Version numbers are monotone and never reused, so "version 3 of signups" means one thing forever — which is the whole reason a model can cite one. The window is bounded by the source's retention, the horizon by a year, the rows by the plane's cap, and the number of datasets and versions per org by their own limits. Every refusal names which bound it hit.

Parameters:

Implementation

Future<RiskDataset?> riskCreateDataset(RiskDatasetSpec riskDatasetSpec,) async {
  final response = await riskCreateDatasetWithHttpInfo(riskDatasetSpec,);
  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), 'RiskDataset',) as RiskDataset;

  }
  return null;
}