From fdc5bbfad07b6a02f06095736d5da273e0e6cd54 Mon Sep 17 00:00:00 2001 From: Sean McCullough <44180881+seanmcc-msft@users.noreply.github.com> Date: Tue, 16 Nov 2021 17:26:12 -0800 Subject: [PATCH] Hide misspelled BlobErrorCode (#25363) --- .../api/Azure.Storage.Blobs.netstandard2.0.cs | 1 + sdk/storage/Azure.Storage.Blobs/src/Models/BlobErrorCode.cs | 2 ++ 2 files changed, 3 insertions(+) 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 91920bb5b960e..893ca410be9b6 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 @@ -633,6 +633,7 @@ public BlobDownloadToOptions() { } public static Azure.Storage.Blobs.Models.BlobErrorCode SequenceNumberConditionNotMet { get { throw null; } } public static Azure.Storage.Blobs.Models.BlobErrorCode SequenceNumberIncrementTooLarge { get { throw null; } } public static Azure.Storage.Blobs.Models.BlobErrorCode ServerBusy { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Storage.Blobs.Models.BlobErrorCode SnaphotOperationRateExceeded { get { throw null; } } public static Azure.Storage.Blobs.Models.BlobErrorCode SnapshotCountExceeded { get { throw null; } } public static Azure.Storage.Blobs.Models.BlobErrorCode SnapshotOperationRateExceeded { get { throw null; } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Models/BlobErrorCode.cs b/sdk/storage/Azure.Storage.Blobs/src/Models/BlobErrorCode.cs index 4e636130b0972..f8ff26eb4f896 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Models/BlobErrorCode.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Models/BlobErrorCode.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.ComponentModel; using Azure.Core; namespace Azure.Storage.Blobs.Models @@ -14,6 +15,7 @@ public partial struct BlobErrorCode private const string SnaphotOperationRateExceededValue = "SnaphotOperationRateExceeded"; /// SnaphotOperationRateExceeded. + [EditorBrowsable(EditorBrowsableState.Never)] public static BlobErrorCode SnaphotOperationRateExceeded { get; } = new BlobErrorCode(SnaphotOperationRateExceededValue); } }