From 34f00aabcf1b553c43ad7a3dfabceddc451dc6fe Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Fri, 27 Sep 2019 17:01:48 -0700 Subject: [PATCH] Make Error model internal (#7785) --- .../src/Generated/BlobRestClient.cs | 22 +------------------ .../Azure.Storage.Blobs/swagger/readme.md | 6 ++++- 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs index 15a30be14ecfb..a56f1c689bf76 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs @@ -18980,7 +18980,7 @@ namespace Azure.Storage.Blobs.Models /// /// The service error response object. /// - public partial class Error + internal partial class Error { /// /// The service error code. @@ -19024,26 +19024,6 @@ internal static Azure.Storage.Blobs.Models.Error FromXml(System.Xml.Linq.XElemen static partial void CustomizeFromXml(System.Xml.Linq.XElement element, Azure.Storage.Blobs.Models.Error value); } - - /// - /// BlobsModelFactory provides utilities for mocking. - /// - public static partial class BlobsModelFactory - { - /// - /// Creates a new Error instance for mocking. - /// - public static Error Error( - string code = default, - string message = default) - { - return new Error() - { - Code = code, - Message = message, - }; - } - } } #endregion class Error #endregion Models diff --git a/sdk/storage/Azure.Storage.Blobs/swagger/readme.md b/sdk/storage/Azure.Storage.Blobs/swagger/readme.md index 6f1f204028461..b28c221cb3e7c 100644 --- a/sdk/storage/Azure.Storage.Blobs/swagger/readme.md +++ b/sdk/storage/Azure.Storage.Blobs/swagger/readme.md @@ -989,7 +989,7 @@ directive: $["x-az-disable-warnings"] = "CA1724"; ``` -### Hide StorageError +### Hide Error models ``` yaml directive: - from: swagger-document @@ -1001,6 +1001,10 @@ directive: where: $.definitions.DataLakeStorageError transform: > $["x-az-public"] = false; +- from: swagger-document + where: $.definitions.DataLakeStorageError.properties["error"] + transform: > + $["x-az-public"] = false; ``` ### Fix doc comments