Skip to content

Azure.Storage.DataMovement.Files.Shares_12.0.0

Compare
Choose a tag to compare
@azure-sdk azure-sdk released this 11 Feb 18:09
c442676

12.0.0 (2025-02-11)

Breaking Changes

  • Changed ShareFileStorangeResourceOptions.FilePermissions from DataTransferProperty to bool?
  • Changed the following types from DataTranferProperty<string> to string
    • ShareFileStorageResourceOptions.ContentType
    • ShareFileStorageResourceOptions.ContentDisposition
    • ShareFileStorageResourceOptions.CacheControl
  • Changed the following types from DataTransferProperty<string[]> to string[]
    • ShareFileStorageResourceOptions.ContentEncoding
    • ShareFileStorageResourceOptions.ContentLanguage
  • Changed the following types from DataTransferProperty<IDictionary<string, string>> to IDictionary<string, string>
    • ShareFileStorageResourceOptions.FileMetadata
    • ShareFileStorageResourceOptions.DirectoryMetadata
  • Changed the following types from DataTransferProperty<DateTimeOffset?> to DateTimeOffset?
    • ShareFileStorageResourceOptions.FileCreatedOn
    • ShareFileStorageResourceOptions.FileLastWrittenOn
    • ShareFileStorageResourceOptions.FileChangedOn
  • Changed ShareDirectoryClient.StartUploadDirectoryAsync to ShareDirectoryClient.UploadDirectoryAsync and added a required waitUntil parameter.
  • Changed ShareDirectoryClient.StartDownloadToDirectoryAsync to ShareDirectoryClient.DownloadToDirectoryAsync and added a required waitUntil parameter.
  • Several refactors to ShareFilesStorageResourceProvider:
    • Removed nested delegates GetStorageSharedKeyCredential, GetTokenCredential, and GetAzureSasCredential.
    • Removed default constructor.
    • Removed constructor overload for GetTokenCredential entirely.
    • Changed constructor overloads for GetStorageSharedKeyCredential and GetAzureSasCredential to use Func. These callbacks are also now async, returning a ValueTask, and the readOnly parameter was removed.
    • Changed FromFile and FromDirectory to async, returning a ValueTask, and renamed to FromFileAsync and FromDirectoryAsync respectively.
    • Changed FromClient methods to static methods.

Bugs Fixed

  • Fixed File Attributes with ReadOnly does not transfer / copy correctly bug #2167