Skip to content

Commit

Permalink
Make Error model internal (#7785)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLove-msft authored Sep 28, 2019
1 parent dbc5310 commit 34f00aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
22 changes: 1 addition & 21 deletions sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18980,7 +18980,7 @@ namespace Azure.Storage.Blobs.Models
/// <summary>
/// The service error response object.
/// </summary>
public partial class Error
internal partial class Error
{
/// <summary>
/// The service error code.
Expand Down Expand Up @@ -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);
}

/// <summary>
/// BlobsModelFactory provides utilities for mocking.
/// </summary>
public static partial class BlobsModelFactory
{
/// <summary>
/// Creates a new Error instance for mocking.
/// </summary>
public static Error Error(
string code = default,
string message = default)
{
return new Error()
{
Code = code,
Message = message,
};
}
}
}
#endregion class Error
#endregion Models
Expand Down
6 changes: 5 additions & 1 deletion sdk/storage/Azure.Storage.Blobs/swagger/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ directive:
$["x-az-disable-warnings"] = "CA1724";
```
### Hide StorageError
### Hide Error models
``` yaml
directive:
- from: swagger-document
Expand All @@ -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
Expand Down

0 comments on commit 34f00aa

Please sign in to comment.