Skip to content

Commit a9b095e

Browse files
authored
fix(elasticsan): resolve Go SDK breaking changes by moving restoreVolume to Management client (Azure#35969)
- Add @clientLocation decorator to move restoreVolume operation to Management client for Go - This maintains backward compatibility for existing Go SDK consumers - Resolves 3 breaking changes identified during TypeSpec migration: * ClientFactory.NewManagementClient removal * NewManagementClient removal * ManagementClient.BeginRestoreVolume removal - Follows Pattern 4 (Client Organization Changes) from breaking changes guide
1 parent bbf2047 commit a9b095e

File tree

1 file changed

+3
-0
lines changed
  • specification/elasticsan/ElasticSan.Management

1 file changed

+3
-0
lines changed

specification/elasticsan/ElasticSan.Management/client.tsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,6 @@ using Azure.Core;
6767
@@clientName(PrivateLinkResource, "ElasticSanPrivateLinkResource", "csharp");
6868
@@usage(PrivateLinkResource, Usage.input, "csharp");
6969
@@clientName(restoreVolume, "RestoreVolume", "csharp");
70+
71+
// Move restoreVolume operation to Management client for Go to maintain compatibility
72+
@@clientLocation(Microsoft.ElasticSan.restoreVolume, "Management", "go");

0 commit comments

Comments
 (0)