diff --git a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md index b3bc6176c4b0..ba6b5695a66e 100644 --- a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md @@ -2,6 +2,7 @@ ## 12.18.0-beta.1 (Unreleased) - Added support for service version 2023-05-03 and 2023-08-03. +- Added RehydratePendingToCold value to ArchiveStatus enum. ## 12.17.0 (2023-07-11) - Includes all features from 12.17.0-beta.1. 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 4a17149eb4ef..22ee2d383324 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 @@ -311,6 +311,7 @@ public enum ArchiveStatus { RehydratePendingToHot = 0, RehydratePendingToCool = 1, + RehydratePendingToCold = 2, } public partial class BlobAccessPolicy { 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 4a17149eb4ef..22ee2d383324 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 @@ -311,6 +311,7 @@ public enum ArchiveStatus { RehydratePendingToHot = 0, RehydratePendingToCool = 1, + RehydratePendingToCold = 2, } public partial class BlobAccessPolicy { 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 4a17149eb4ef..22ee2d383324 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 @@ -311,6 +311,7 @@ public enum ArchiveStatus { RehydratePendingToHot = 0, RehydratePendingToCool = 1, + RehydratePendingToCold = 2, } public partial class BlobAccessPolicy { diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ArchiveStatus.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ArchiveStatus.Serialization.cs index 0c29872df21b..e9a9ca7e8e26 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ArchiveStatus.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ArchiveStatus.Serialization.cs @@ -15,6 +15,7 @@ internal static partial class ArchiveStatusExtensions { ArchiveStatus.RehydratePendingToHot => "rehydrate-pending-to-hot", ArchiveStatus.RehydratePendingToCool => "rehydrate-pending-to-cool", + ArchiveStatus.RehydratePendingToCold => "rehydrate-pending-to-cold", _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArchiveStatus value.") }; @@ -22,6 +23,7 @@ public static ArchiveStatus ToArchiveStatus(this string value) { if (StringComparer.OrdinalIgnoreCase.Equals(value, "rehydrate-pending-to-hot")) return ArchiveStatus.RehydratePendingToHot; if (StringComparer.OrdinalIgnoreCase.Equals(value, "rehydrate-pending-to-cool")) return ArchiveStatus.RehydratePendingToCool; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "rehydrate-pending-to-cold")) return ArchiveStatus.RehydratePendingToCold; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArchiveStatus value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Models/ArchiveStatus.cs b/sdk/storage/Azure.Storage.Blobs/src/Models/ArchiveStatus.cs index 533c6620dad6..a25a20d8f16e 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Models/ArchiveStatus.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Models/ArchiveStatus.cs @@ -9,6 +9,8 @@ public enum ArchiveStatus /// rehydrate-pending-to-hot. RehydratePendingToHot, /// rehydrate-pending-to-cool. - RehydratePendingToCool + RehydratePendingToCool, + /// rehydrate-pending-to-cold. + RehydratePendingToCold } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/autorest.md b/sdk/storage/Azure.Storage.Blobs/src/autorest.md index d85dc1d2ae67..6005ca4ac9e4 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/autorest.md +++ b/sdk/storage/Azure.Storage.Blobs/src/autorest.md @@ -4,7 +4,7 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml input-file: - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/3e6f238a1f74d77ba6970f297c77995a9f1f374e/specification/storage/data-plane/Microsoft.BlobStorage/preview/2021-12-02/blob.json + - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a32d0b2423d19835246bb2ef92941503bfd5e734/specification/storage/data-plane/Microsoft.BlobStorage/preview/2021-12-02/blob.json generation1-convenience-client: true # https://github.com/Azure/autorest/issues/4075 skip-semantics-validation: true