Google Cloud Storage v1 API - Enum UploadValidationMode (5.0.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

Name Description
DeleteAndThrow

Obsolete. Use RejectAndThrow instead. Previously, the object was uploaded and then deleted if the hash mismatched. The server now rejects mismatched objects automatically before creation.

None

The upload is not validated.

RejectAndThrow

The server validates the object hash during upload. If a hash mismatch is detected, the server rejects the upload entirely, preventing the object from being created.