Skip to content

Commit 2bd52ba

Browse files
authored
[Storage] Fix issue Azure#49612 (Azure#49616)
1 parent 9f29b21 commit 2bd52ba

File tree

4 files changed

+33
-8
lines changed

4 files changed

+33
-8
lines changed

sdk/storage/Azure.ResourceManager.Storage/CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# Release History
22

3-
## 1.5.0-beta.1 (Unreleased)
4-
5-
### Features Added
3+
## 1.4.2 (2025-04-25)
64

75
### Breaking Changes
86

9-
### Bugs Fixed
10-
11-
### Other Changes
7+
- Fixed issue https://github.com/Azure/azure-sdk-for-net/issues/49612.
128

139
## 1.4.1 (2025-04-24)
1410

sdk/storage/Azure.ResourceManager.Storage/src/Azure.ResourceManager.Storage.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<Version>1.5.0-beta.1</Version>
3+
<Version>1.4.2</Version>
44
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
55
<ApiCompatVersion>1.4.1</ApiCompatVersion>
66
<PackageId>Azure.ResourceManager.Storage</PackageId>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using System;
7+
using System.Runtime.CompilerServices;
8+
using System.Text.Json;
9+
using Azure.Core;
10+
11+
namespace Azure.ResourceManager.Storage.Models
12+
{
13+
[CodeGenSerialization(nameof(DomainGuid), DeserializationValueHook = nameof(DeserializeNullableGuid))]
14+
public partial class StorageActiveDirectoryProperties
15+
{
16+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
17+
private static void DeserializeNullableGuid(JsonProperty property, ref Guid domainGuid)
18+
{
19+
if (string.IsNullOrEmpty(property.Value.GetString()))
20+
{
21+
domainGuid = Guid.Empty;
22+
}
23+
else
24+
{
25+
domainGuid = property.Value.GetGuid();
26+
}
27+
}
28+
}
29+
}

sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageActiveDirectoryProperties.Serialization.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)