Enum UploadValidationMode (4.1.0)

Stay organized with collections Save and categorize content based on your preferences.
public 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.