Skip to content

Commit 5f98733

Browse files
authored
Add ManagedServiceIdentityV4 to known management types list. (#53851)
* add ManagedServiceIdentityV4 to known management types list. * update test project.
1 parent 4d52302 commit 5f98733

File tree

6 files changed

+2504
-2238
lines changed

6 files changed

+2504
-2238
lines changed

eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Primitives/KnownManagementTypes.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ internal class KnownManagementTypes
4242
["Azure.ResourceManager.CommonTypes.ExtendedLocation"] = typeof(ExtendedLocation),
4343
["Azure.ResourceManager.CommonTypes.ExtendedLocationType"] = typeof(ExtendedLocationType),
4444
["Azure.ResourceManager.CommonTypes.ManagedServiceIdentity"] = typeof(ManagedServiceIdentity),
45+
["Azure.ResourceManager.Legacy.ManagedServiceIdentityV4"] = typeof(ManagedServiceIdentity),
4546
["Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType"] = typeof(ManagedServiceIdentityType),
4647
["Azure.ResourceManager.CommonTypes.OperationStatusResult"] = typeof(OperationStatusResult),
4748
["Azure.ResourceManager.CommonTypes.SystemData"] = typeof(SystemData),

eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/foo.tsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ model Foo is TrackedResource<FooProperties, false> {
1616
...ResourceNameParameter<Foo, SegmentName = "foos">;
1717

1818
...ExtendedLocationProperty;
19+
20+
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Existing usage of legacy type"
21+
...Azure.ResourceManager.Legacy.ManagedServiceIdentityV4Property;
1922
}
2023

2124
@useSystemTextJsonConverter("csharp")

eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooData.Serialization.cs

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

eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooData.cs

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

eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecTestsModelFactory.cs

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)