From 1a7a69b442acff392f8481dd9e459ab1841818e2 Mon Sep 17 00:00:00 2001 From: Sean McCullough Date: Tue, 8 Oct 2024 19:36:45 -0500 Subject: [PATCH] Added STG 97 x-ms-version --- .../tests/ChangeFeedTestBase.cs | 1 + .../Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs | 1 + .../api/Azure.Storage.Blobs.netstandard2.0.cs | 1 + .../api/Azure.Storage.Blobs.netstandard2.1.cs | 1 + sdk/storage/Azure.Storage.Blobs/src/BlobClientOptions.cs | 7 ++++++- .../tests/BlobsClientTestFixtureAttribute.cs | 1 + .../api/Azure.Storage.Common.net6.0.cs | 2 +- .../api/Azure.Storage.Common.netstandard2.0.cs | 2 +- sdk/storage/Azure.Storage.Common/src/Shared/Constants.cs | 2 +- .../src/Shared/StorageVersionExtensions.cs | 5 ++++- sdk/storage/Azure.Storage.Common/tests/CommonTestBase.cs | 5 +++-- .../api/Azure.Storage.Files.DataLake.net6.0.cs | 1 + .../api/Azure.Storage.Files.DataLake.netstandard2.0.cs | 1 + .../src/DataLakeClientOptions.cs | 7 ++++++- .../tests/DataLakeClientTestFixtureAttribute.cs | 1 + .../api/Azure.Storage.Files.Shares.net6.0.cs | 1 + .../api/Azure.Storage.Files.Shares.netstandard2.0.cs | 1 + .../Azure.Storage.Files.Shares/src/ShareClientOptions.cs | 7 ++++++- .../tests/ShareClientTestFixtureAttribute.cs | 1 + .../api/Azure.Storage.Queues.net6.0.cs | 1 + .../api/Azure.Storage.Queues.netstandard2.0.cs | 1 + .../api/Azure.Storage.Queues.netstandard2.1.cs | 1 + sdk/storage/Azure.Storage.Queues/src/QueueClientOptions.cs | 7 ++++++- .../tests/QueueClientTestFixtureAttribute.cs | 1 + 24 files changed, 49 insertions(+), 10 deletions(-) diff --git a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/tests/ChangeFeedTestBase.cs b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/tests/ChangeFeedTestBase.cs index d65ba1264ce66..1edae8044c6aa 100644 --- a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/tests/ChangeFeedTestBase.cs +++ b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/tests/ChangeFeedTestBase.cs @@ -33,6 +33,7 @@ namespace Azure.Storage.Blobs.ChangeFeed.Tests BlobClientOptions.ServiceVersion.V2024_08_04, BlobClientOptions.ServiceVersion.V2024_11_04, BlobClientOptions.ServiceVersion.V2025_01_05, + BlobClientOptions.ServiceVersion.V2025_05_05, StorageVersionExtensions.LatestVersion, StorageVersionExtensions.MaxVersion, RecordingServiceVersion = StorageVersionExtensions.MaxVersion, diff --git a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs index d93de39ce28c0..8707ec2108684 100644 --- a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs +++ b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs @@ -88,6 +88,7 @@ public enum ServiceVersion V2024_08_04 = 23, V2024_11_04 = 24, V2025_01_05 = 25, + V2025_05_05 = 26, } } public partial class BlobContainerClient diff --git a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs index d93de39ce28c0..8707ec2108684 100644 --- a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs @@ -88,6 +88,7 @@ public enum ServiceVersion V2024_08_04 = 23, V2024_11_04 = 24, V2025_01_05 = 25, + V2025_05_05 = 26, } } public partial class BlobContainerClient diff --git a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.1.cs b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.1.cs index d93de39ce28c0..8707ec2108684 100644 --- a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.1.cs +++ b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.1.cs @@ -88,6 +88,7 @@ public enum ServiceVersion V2024_08_04 = 23, V2024_11_04 = 24, V2025_01_05 = 25, + V2025_05_05 = 26, } } public partial class BlobContainerClient diff --git a/sdk/storage/Azure.Storage.Blobs/src/BlobClientOptions.cs b/sdk/storage/Azure.Storage.Blobs/src/BlobClientOptions.cs index b16cefc83a535..0f90cb42066d2 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/BlobClientOptions.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/BlobClientOptions.cs @@ -156,7 +156,12 @@ public enum ServiceVersion /// /// The 2025-01-05 service version. /// - V2025_01_05 = 25 + V2025_01_05 = 25, + + /// + /// The 2025-05-05 service version. + /// + V2025_05_05 = 26 #pragma warning restore CA1707 // Identifiers should not contain underscores } diff --git a/sdk/storage/Azure.Storage.Blobs/tests/BlobsClientTestFixtureAttribute.cs b/sdk/storage/Azure.Storage.Blobs/tests/BlobsClientTestFixtureAttribute.cs index d0372ab20cf47..b5fa207562666 100644 --- a/sdk/storage/Azure.Storage.Blobs/tests/BlobsClientTestFixtureAttribute.cs +++ b/sdk/storage/Azure.Storage.Blobs/tests/BlobsClientTestFixtureAttribute.cs @@ -36,6 +36,7 @@ public BlobsClientTestFixtureAttribute(params object[] additionalParameters) BlobClientOptions.ServiceVersion.V2024_08_04, BlobClientOptions.ServiceVersion.V2024_11_04, BlobClientOptions.ServiceVersion.V2025_01_05, + BlobClientOptions.ServiceVersion.V2025_05_05, StorageVersionExtensions.LatestVersion, StorageVersionExtensions.MaxVersion }, diff --git a/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.net6.0.cs b/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.net6.0.cs index 121838723ee4f..aebd7cfb6a16d 100644 --- a/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.net6.0.cs +++ b/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.net6.0.cs @@ -183,7 +183,7 @@ public enum SasProtocol } public partial class SasQueryParameters { - public const string DefaultSasVersion = "2025-01-05"; + public const string DefaultSasVersion = "2025-05-05"; protected SasQueryParameters() { } protected SasQueryParameters(System.Collections.Generic.IDictionary values) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] diff --git a/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.netstandard2.0.cs b/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.netstandard2.0.cs index 9b59550e809d0..73d1004bbb02a 100644 --- a/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.Common/api/Azure.Storage.Common.netstandard2.0.cs @@ -182,7 +182,7 @@ public enum SasProtocol } public partial class SasQueryParameters { - public const string DefaultSasVersion = "2025-01-05"; + public const string DefaultSasVersion = "2025-05-05"; protected SasQueryParameters() { } protected SasQueryParameters(System.Collections.Generic.IDictionary values) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] diff --git a/sdk/storage/Azure.Storage.Common/src/Shared/Constants.cs b/sdk/storage/Azure.Storage.Common/src/Shared/Constants.cs index 3e00882188fba..c16ed90ead55b 100644 --- a/sdk/storage/Azure.Storage.Common/src/Shared/Constants.cs +++ b/sdk/storage/Azure.Storage.Common/src/Shared/Constants.cs @@ -25,7 +25,7 @@ internal static class Constants /// Gets the default service version to use when building shared access /// signatures. /// - public const string DefaultSasVersion = "2025-01-05"; + public const string DefaultSasVersion = "2025-05-05"; /// /// Max download range size while requesting a transactional hash. diff --git a/sdk/storage/Azure.Storage.Common/src/Shared/StorageVersionExtensions.cs b/sdk/storage/Azure.Storage.Common/src/Shared/StorageVersionExtensions.cs index 44c0973ea9be1..3b4b0a4cafd92 100644 --- a/sdk/storage/Azure.Storage.Common/src/Shared/StorageVersionExtensions.cs +++ b/sdk/storage/Azure.Storage.Common/src/Shared/StorageVersionExtensions.cs @@ -56,7 +56,7 @@ internal static class StorageVersionExtensions /// internal const ServiceVersion MaxVersion = #if BlobSDK || QueueSDK || FileSDK || DataLakeSDK || ChangeFeedSDK || DataMovementSDK || BlobDataMovementSDK || ShareDataMovementSDK - ServiceVersion.V2025_01_05; + ServiceVersion.V2025_05_05; #else ERROR_STORAGE_SERVICE_NOT_DEFINED; #endif @@ -95,6 +95,7 @@ public static string ToVersionString(this ServiceVersion version) => ServiceVersion.V2024_08_04 => "2024-08-04", ServiceVersion.V2024_11_04 => "2024-11-04", ServiceVersion.V2025_01_05 => "2025-01-05", + ServiceVersion.V2025_05_05 => "2025-05-05", #endif _ => throw Errors.VersionNotSupported(nameof(version)) }; @@ -158,6 +159,8 @@ public static Azure.Storage.Blobs.BlobClientOptions.ServiceVersion AsBlobsVersio Azure.Storage.Blobs.BlobClientOptions.ServiceVersion.V2024_11_04, Azure.Storage.Files.DataLake.DataLakeClientOptions.ServiceVersion.V2025_01_05 => Azure.Storage.Blobs.BlobClientOptions.ServiceVersion.V2025_01_05, + Azure.Storage.Files.DataLake.DataLakeClientOptions.ServiceVersion.V2025_05_05 => + Azure.Storage.Blobs.BlobClientOptions.ServiceVersion.V2025_05_05, _ => throw Errors.VersionNotSupported(nameof(version)) }; #endif diff --git a/sdk/storage/Azure.Storage.Common/tests/CommonTestBase.cs b/sdk/storage/Azure.Storage.Common/tests/CommonTestBase.cs index 5694c805d3550..80d95bab47932 100644 --- a/sdk/storage/Azure.Storage.Common/tests/CommonTestBase.cs +++ b/sdk/storage/Azure.Storage.Common/tests/CommonTestBase.cs @@ -35,8 +35,9 @@ namespace Azure.Storage.Test BlobClientOptions.ServiceVersion.V2024_08_04, BlobClientOptions.ServiceVersion.V2024_11_04, BlobClientOptions.ServiceVersion.V2025_01_05, - RecordingServiceVersion = BlobClientOptions.ServiceVersion.V2025_01_05, - LiveServiceVersions = new object[] { BlobClientOptions.ServiceVersion.V2024_11_04, })] + BlobClientOptions.ServiceVersion.V2025_05_05, + RecordingServiceVersion = BlobClientOptions.ServiceVersion.V2025_05_05, + LiveServiceVersions = new object[] { BlobClientOptions.ServiceVersion.V2025_01_05, })] public abstract class CommonTestBase : StorageTestBase { protected readonly BlobClientOptions.ServiceVersion _serviceVersion; diff --git a/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs b/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs index c5b8a7798a0cf..a09b75e4ef259 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.net6.0.cs @@ -36,6 +36,7 @@ public enum ServiceVersion V2024_08_04 = 23, V2024_11_04 = 24, V2025_01_05 = 25, + V2025_05_05 = 26, } } public partial class DataLakeDirectoryClient : Azure.Storage.Files.DataLake.DataLakePathClient diff --git a/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.netstandard2.0.cs b/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.netstandard2.0.cs index c5b8a7798a0cf..a09b75e4ef259 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.netstandard2.0.cs @@ -36,6 +36,7 @@ public enum ServiceVersion V2024_08_04 = 23, V2024_11_04 = 24, V2025_01_05 = 25, + V2025_05_05 = 26, } } public partial class DataLakeDirectoryClient : Azure.Storage.Files.DataLake.DataLakePathClient diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeClientOptions.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeClientOptions.cs index 5f8fd0849ba0f..5fcb4ca03f06d 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeClientOptions.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeClientOptions.cs @@ -156,7 +156,12 @@ public enum ServiceVersion /// /// The 2025-01-05 service version. /// - V2025_01_05 = 25 + V2025_01_05 = 25, + + /// + /// The 2025-05-05 service version. + /// + V2025_05_05 = 26 #pragma warning restore CA1707 // Identifiers should not contain underscores } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/DataLakeClientTestFixtureAttribute.cs b/sdk/storage/Azure.Storage.Files.DataLake/tests/DataLakeClientTestFixtureAttribute.cs index eab0498c5dfcc..8d1b0227c208a 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/tests/DataLakeClientTestFixtureAttribute.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/DataLakeClientTestFixtureAttribute.cs @@ -34,6 +34,7 @@ public DataLakeClientTestFixtureAttribute() DataLakeClientOptions.ServiceVersion.V2024_08_04, DataLakeClientOptions.ServiceVersion.V2024_11_04, DataLakeClientOptions.ServiceVersion.V2025_01_05, + DataLakeClientOptions.ServiceVersion.V2025_05_05, StorageVersionExtensions.LatestVersion, StorageVersionExtensions.MaxVersion) { diff --git a/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.net6.0.cs b/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.net6.0.cs index b1b355dda471c..430c0b16d2ebe 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.net6.0.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.net6.0.cs @@ -149,6 +149,7 @@ public enum ServiceVersion V2024_08_04 = 23, V2024_11_04 = 24, V2025_01_05 = 25, + V2025_05_05 = 26, } } public partial class ShareDirectoryClient diff --git a/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.netstandard2.0.cs b/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.netstandard2.0.cs index b1b355dda471c..430c0b16d2ebe 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.netstandard2.0.cs @@ -149,6 +149,7 @@ public enum ServiceVersion V2024_08_04 = 23, V2024_11_04 = 24, V2025_01_05 = 25, + V2025_05_05 = 26, } } public partial class ShareDirectoryClient diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/ShareClientOptions.cs b/sdk/storage/Azure.Storage.Files.Shares/src/ShareClientOptions.cs index 30c5ab3b05155..e536e194a80d7 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/ShareClientOptions.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/ShareClientOptions.cs @@ -153,7 +153,12 @@ public enum ServiceVersion /// /// The 2025-01-05 service version. /// - V2025_01_05 = 25 + V2025_01_05 = 25, + + /// + /// The 2025-05-05 service version. + /// + V2025_05_05 = 26 #pragma warning restore CA1707 // Identifiers should not contain underscores } diff --git a/sdk/storage/Azure.Storage.Files.Shares/tests/ShareClientTestFixtureAttribute.cs b/sdk/storage/Azure.Storage.Files.Shares/tests/ShareClientTestFixtureAttribute.cs index 7d078484201bc..7daa231516799 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/tests/ShareClientTestFixtureAttribute.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/tests/ShareClientTestFixtureAttribute.cs @@ -38,6 +38,7 @@ public ShareClientTestFixtureAttribute(params object[] additionalParameters) ShareClientOptions.ServiceVersion.V2024_08_04, ShareClientOptions.ServiceVersion.V2024_11_04, ShareClientOptions.ServiceVersion.V2025_01_05, + ShareClientOptions.ServiceVersion.V2025_05_05, StorageVersionExtensions.LatestVersion, StorageVersionExtensions.MaxVersion }, diff --git a/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.net6.0.cs b/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.net6.0.cs index 9f440eb3639d7..3bcbeb0dc9fb1 100644 --- a/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.net6.0.cs +++ b/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.net6.0.cs @@ -108,6 +108,7 @@ public enum ServiceVersion V2024_08_04 = 23, V2024_11_04 = 24, V2025_01_05 = 25, + V2025_05_05 = 26, } } public partial class QueueMessageDecodingFailedEventArgs : Azure.SyncAsyncEventArgs diff --git a/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.netstandard2.0.cs b/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.netstandard2.0.cs index 9f440eb3639d7..3bcbeb0dc9fb1 100644 --- a/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.netstandard2.0.cs @@ -108,6 +108,7 @@ public enum ServiceVersion V2024_08_04 = 23, V2024_11_04 = 24, V2025_01_05 = 25, + V2025_05_05 = 26, } } public partial class QueueMessageDecodingFailedEventArgs : Azure.SyncAsyncEventArgs diff --git a/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.netstandard2.1.cs b/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.netstandard2.1.cs index 9f440eb3639d7..3bcbeb0dc9fb1 100644 --- a/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.netstandard2.1.cs +++ b/sdk/storage/Azure.Storage.Queues/api/Azure.Storage.Queues.netstandard2.1.cs @@ -108,6 +108,7 @@ public enum ServiceVersion V2024_08_04 = 23, V2024_11_04 = 24, V2025_01_05 = 25, + V2025_05_05 = 26, } } public partial class QueueMessageDecodingFailedEventArgs : Azure.SyncAsyncEventArgs diff --git a/sdk/storage/Azure.Storage.Queues/src/QueueClientOptions.cs b/sdk/storage/Azure.Storage.Queues/src/QueueClientOptions.cs index 9468a41cc15e5..14bdcc581726e 100644 --- a/sdk/storage/Azure.Storage.Queues/src/QueueClientOptions.cs +++ b/sdk/storage/Azure.Storage.Queues/src/QueueClientOptions.cs @@ -159,7 +159,12 @@ public enum ServiceVersion /// /// The 2025-01-05 service version. /// - V2025_01_05 = 25 + V2025_01_05 = 25, + + /// + /// The 2025-05-05 service version. + /// + V2025_05_05 = 26 #pragma warning restore CA1707 // Identifiers should not contain underscores } diff --git a/sdk/storage/Azure.Storage.Queues/tests/QueueClientTestFixtureAttribute.cs b/sdk/storage/Azure.Storage.Queues/tests/QueueClientTestFixtureAttribute.cs index b053e71cdf051..ef4a9a5e0bde5 100644 --- a/sdk/storage/Azure.Storage.Queues/tests/QueueClientTestFixtureAttribute.cs +++ b/sdk/storage/Azure.Storage.Queues/tests/QueueClientTestFixtureAttribute.cs @@ -37,6 +37,7 @@ public QueueClientTestFixtureAttribute(params object[] additionalParameters) QueueClientOptions.ServiceVersion.V2024_08_04, QueueClientOptions.ServiceVersion.V2024_11_04, QueueClientOptions.ServiceVersion.V2025_01_05, + QueueClientOptions.ServiceVersion.V2025_05_05, StorageVersionExtensions.LatestVersion, StorageVersionExtensions.MaxVersion },