Interface BlobServiceProperties.UpdateStages.WithBlobVersioning
- All Known Subinterfaces:
BlobServiceProperties.Update
- Enclosing interface:
- BlobServiceProperties.UpdateStages
-
Method Summary
Modifier and TypeMethodDescriptionDisables blob versioning.Enables blob versioning.
-
Method Details
-
withBlobVersioningEnabled
BlobServiceProperties.Update withBlobVersioningEnabled()Enables blob versioning.When blob versioning is enabled, you can access earlier versions of a blob to recover your data if it is modified or deleted.
For optimal protection for your blob data, Microsoft recommends enabling all of the following data protection features:
- containerDeleteRetentionPolicy (Container soft delete)
- Blob versioning
- deleteRetentionPolicy (Blob soft delete)
- Returns:
- the next update stage
-
withBlobVersioningDisabled
BlobServiceProperties.Update withBlobVersioningDisabled()Disables blob versioning.After versioning is disabled, the first time you modify the blob with current version will result in creating a new blob that has no version. All subsequent updates will go to this new blob and overwrite its data without saving the previous state. All existing versions stay unaffected.
You can still list a blob's versions after versioning is disabled, or read or delete a specific version of the blob using the version ID.
For optimal protection for your blob data, Microsoft recommends enabling all of the following data protection features:
- containerDeleteRetentionPolicy (Container soft delete)
- Blob versioning
- deleteRetentionPolicy (Blob soft delete)
- Returns:
- the next update stage
-