Google Cloud Storage v1 API - Enum UploadValidationMode (4.2.0)

public enum UploadValidationMode

Reference documentation and code samples for the Google Cloud Storage v1 API enum UploadValidationMode.

Describes the validation behavior when uploading data.

Namespace

Google.Cloud.Storage.V1

Assembly

Google.Cloud.Storage.V1.dll

Fields

NameDescription
DeleteAndThrow

The hash of the data is computed while uploading, and if the resulting object has a different hash, an attempt is made to delete the object. Whether the deletion fails or not, an UploadValidationException is thrown. If the deletion fails, that failure can be examined via AdditionalFailures

None

The upload is not validated.

ThrowOnly

The hash of the data is computed while uploading, and if the resulting object has a different hash, an UploadValidationException is thrown, but the object remains present in Storage.