deleteFeatureValues method
- DeleteFeatureValuesRequest request
Delete Feature values from Featurestore.
The progress of the deletion is tracked by the returned operation. The deleted feature values are guaranteed to be invisible to subsequent read operations after the operation is marked as successfully done.
If a delete feature values operation fails, the feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same delete request again and wait till the new operation returned is marked as successfully done.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a StatusException if the API failed with a
Status message. Throws a ServiceException for any other failure.
Returns an Operation representing the status of the long-running
operation.
When complete, Operation.done will be true. If successful,
Operation.responseAsMessage will contain the operation's result.
Implementation
Future<
Operation<DeleteFeatureValuesResponse, DeleteFeatureValuesOperationMetadata>
>
deleteFeatureValues(DeleteFeatureValuesRequest request) async {
final url = Uri.https(
_host,
'/v1beta1/${request.entityType}:deleteFeatureValues',
);
final response = await _client.post(url, body: request);
return Operation.fromJson(
response,
OperationHelper(
DeleteFeatureValuesResponse.fromJson,
DeleteFeatureValuesOperationMetadata.fromJson,
),
);
}