Skip to content

Commit cbd2f64

Browse files
authored
Add missing attribute of internal buildable types (#5373)
* Add back internal buildable models * Add back the internal buildable types
1 parent d326cb1 commit cbd2f64

File tree

13 files changed

+75
-63
lines changed

13 files changed

+75
-63
lines changed

samples/AzureSample.ResourceManager.Sample/src/Generated/Models/AzureSampleResourceManagerSampleContext.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ namespace AzureSample.ResourceManager.Sample
1616
/// Context class which will be filled in by the System.ClientModel.SourceGeneration.
1717
/// For more information see 'https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/System.ClientModel/src/docs/ModelReaderWriterContext.md'
1818
/// </summary>
19+
[ModelReaderWriterBuildable(typeof(AdditionalCapabilities))]
1920
[ModelReaderWriterBuildable(typeof(AdditionalUnattendContent))]
2021
[ModelReaderWriterBuildable(typeof(ApiError))]
2122
[ModelReaderWriterBuildable(typeof(ApiErrorBase))]
2223
[ModelReaderWriterBuildable(typeof(AutomaticOSUpgradePolicy))]
24+
[ModelReaderWriterBuildable(typeof(AutomaticOSUpgradeProperties))]
2325
[ModelReaderWriterBuildable(typeof(AutomaticRepairsPolicy))]
2426
[ModelReaderWriterBuildable(typeof(AvailabilitySetData))]
2527
[ModelReaderWriterBuildable(typeof(AvailabilitySetListResult))]
@@ -30,13 +32,16 @@ namespace AzureSample.ResourceManager.Sample
3032
[ModelReaderWriterBuildable(typeof(AzureSampleResourceManagerSampleSku))]
3133
[ModelReaderWriterBuildable(typeof(AzureSampleResourceManagerSampleUsage))]
3234
[ModelReaderWriterBuildable(typeof(AzureSampleResourceManagerSampleUsageName))]
35+
[ModelReaderWriterBuildable(typeof(BillingProfile))]
3336
[ModelReaderWriterBuildable(typeof(BootDiagnostics))]
3437
[ModelReaderWriterBuildable(typeof(BootDiagnosticsInstanceView))]
3538
[ModelReaderWriterBuildable(typeof(DataDisk))]
3639
[ModelReaderWriterBuildable(typeof(DataDiskImage))]
3740
[ModelReaderWriterBuildable(typeof(DedicatedHostAllocatableVm))]
41+
[ModelReaderWriterBuildable(typeof(DedicatedHostAvailableCapacity))]
3842
[ModelReaderWriterBuildable(typeof(DedicatedHostData))]
3943
[ModelReaderWriterBuildable(typeof(DedicatedHostGroupData))]
44+
[ModelReaderWriterBuildable(typeof(DedicatedHostGroupInstanceView))]
4045
[ModelReaderWriterBuildable(typeof(DedicatedHostGroupListResult))]
4146
[ModelReaderWriterBuildable(typeof(DedicatedHostGroupPatch))]
4247
[ModelReaderWriterBuildable(typeof(DedicatedHostGroupResource))]
@@ -45,10 +50,13 @@ namespace AzureSample.ResourceManager.Sample
4550
[ModelReaderWriterBuildable(typeof(DedicatedHostListResult))]
4651
[ModelReaderWriterBuildable(typeof(DedicatedHostPatch))]
4752
[ModelReaderWriterBuildable(typeof(DedicatedHostResource))]
53+
[ModelReaderWriterBuildable(typeof(DiagnosticsProfile))]
4854
[ModelReaderWriterBuildable(typeof(DiffDiskSettings))]
55+
[ModelReaderWriterBuildable(typeof(DisallowedConfiguration))]
4956
[ModelReaderWriterBuildable(typeof(DiskEncryptionSettings))]
5057
[ModelReaderWriterBuildable(typeof(DiskInstanceView))]
5158
[ModelReaderWriterBuildable(typeof(ExtendedLocation))]
59+
[ModelReaderWriterBuildable(typeof(HardwareProfile))]
5260
[ModelReaderWriterBuildable(typeof(ImageData))]
5361
[ModelReaderWriterBuildable(typeof(ImageDataDisk))]
5462
[ModelReaderWriterBuildable(typeof(ImageDisk))]
@@ -67,14 +75,18 @@ namespace AzureSample.ResourceManager.Sample
6775
[ModelReaderWriterBuildable(typeof(ListUsagesResult))]
6876
[ModelReaderWriterBuildable(typeof(LogAnalytics))]
6977
[ModelReaderWriterBuildable(typeof(LogAnalyticsInputBase))]
78+
[ModelReaderWriterBuildable(typeof(LogAnalyticsOutput))]
7079
[ModelReaderWriterBuildable(typeof(MaintenanceRedeployStatus))]
7180
[ModelReaderWriterBuildable(typeof(ManagedDiskParameters))]
7281
[ModelReaderWriterBuildable(typeof(ManagedServiceIdentity))]
7382
[ModelReaderWriterBuildable(typeof(NetworkInterfaceReference))]
83+
[ModelReaderWriterBuildable(typeof(NetworkProfile))]
7484
[ModelReaderWriterBuildable(typeof(OrchestrationServiceStateContent))]
7585
[ModelReaderWriterBuildable(typeof(OrchestrationServiceSummary))]
7686
[ModelReaderWriterBuildable(typeof(OSDisk))]
87+
[ModelReaderWriterBuildable(typeof(OSDiskImage))]
7788
[ModelReaderWriterBuildable(typeof(OSProfile))]
89+
[ModelReaderWriterBuildable(typeof(PatchSettings))]
7890
[ModelReaderWriterBuildable(typeof(ProximityPlacementGroupData))]
7991
[ModelReaderWriterBuildable(typeof(ProximityPlacementGroupListResult))]
8092
[ModelReaderWriterBuildable(typeof(ProximityPlacementGroupPatch))]
@@ -87,6 +99,10 @@ namespace AzureSample.ResourceManager.Sample
8799
[ModelReaderWriterBuildable(typeof(RollingUpgradePolicy))]
88100
[ModelReaderWriterBuildable(typeof(RollingUpgradeProgressInfo))]
89101
[ModelReaderWriterBuildable(typeof(RollingUpgradeRunningStatus))]
102+
[ModelReaderWriterBuildable(typeof(ScaleInPolicy))]
103+
[ModelReaderWriterBuildable(typeof(ScheduledEventsProfile))]
104+
[ModelReaderWriterBuildable(typeof(SecurityProfile))]
105+
[ModelReaderWriterBuildable(typeof(SshConfiguration))]
90106
[ModelReaderWriterBuildable(typeof(SshPublicKeyData))]
91107
[ModelReaderWriterBuildable(typeof(SshPublicKeyGenerateKeyPairResult))]
92108
[ModelReaderWriterBuildable(typeof(SshPublicKeyInfo))]
@@ -110,6 +126,7 @@ namespace AzureSample.ResourceManager.Sample
110126
[ModelReaderWriterBuildable(typeof(UserAssignedIdentity))]
111127
[ModelReaderWriterBuildable(typeof(VaultCertificate))]
112128
[ModelReaderWriterBuildable(typeof(VaultSecretGroup))]
129+
[ModelReaderWriterBuildable(typeof(VirtualHardDisk))]
113130
[ModelReaderWriterBuildable(typeof(VirtualMachineAgentInstanceView))]
114131
[ModelReaderWriterBuildable(typeof(VirtualMachineAssessPatchesResult))]
115132
[ModelReaderWriterBuildable(typeof(VirtualMachineCaptureContent))]
@@ -121,7 +138,9 @@ namespace AzureSample.ResourceManager.Sample
121138
[ModelReaderWriterBuildable(typeof(VirtualMachineExtensionImageResource))]
122139
[ModelReaderWriterBuildable(typeof(VirtualMachineExtensionInstanceView))]
123140
[ModelReaderWriterBuildable(typeof(VirtualMachineExtensionResource))]
141+
[ModelReaderWriterBuildable(typeof(VirtualMachineExtensionsListResult))]
124142
[ModelReaderWriterBuildable(typeof(VirtualMachineExtensionUpdate))]
143+
[ModelReaderWriterBuildable(typeof(VirtualMachineHealthStatus))]
125144
[ModelReaderWriterBuildable(typeof(VirtualMachineImage))]
126145
[ModelReaderWriterBuildable(typeof(VirtualMachineImageResource))]
127146
[ModelReaderWriterBuildable(typeof(VirtualMachineInstanceView))]
@@ -138,6 +157,7 @@ namespace AzureSample.ResourceManager.Sample
138157
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetExtensionProfile))]
139158
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetExtensionResource))]
140159
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetInstanceView))]
160+
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetInstanceViewStatusesSummary))]
141161
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetIPConfiguration))]
142162
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetIPTag))]
143163
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetListOSUpgradeHistory))]
@@ -146,11 +166,13 @@ namespace AzureSample.ResourceManager.Sample
146166
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetListWithLinkResult))]
147167
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetManagedDiskParameters))]
148168
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetNetworkConfiguration))]
169+
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetNetworkConfigurationDnsSettings))]
149170
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetNetworkProfile))]
150171
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetOSDisk))]
151172
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetOSProfile))]
152173
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetPatch))]
153174
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetPublicIPAddressConfiguration))]
175+
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings))]
154176
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetReimageContent))]
155177
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetResource))]
156178
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetRollingUpgradeData))]
@@ -173,6 +195,7 @@ namespace AzureSample.ResourceManager.Sample
173195
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetVmInstanceRequiredIds))]
174196
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetVmInstanceView))]
175197
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetVmListResult))]
198+
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetVmNetworkProfileConfiguration))]
176199
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetVmProfile))]
177200
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetVmProtectionPolicy))]
178201
[ModelReaderWriterBuildable(typeof(VirtualMachineScaleSetVmReimageContent))]
@@ -183,6 +206,7 @@ namespace AzureSample.ResourceManager.Sample
183206
[ModelReaderWriterBuildable(typeof(VirtualMachineStatusCodeCount))]
184207
[ModelReaderWriterBuildable(typeof(VmScaleSetConvertToSinglePlacementGroupContent))]
185208
[ModelReaderWriterBuildable(typeof(WindowsConfiguration))]
209+
[ModelReaderWriterBuildable(typeof(WinRMConfiguration))]
186210
[ModelReaderWriterBuildable(typeof(WinRMListener))]
187211
[ModelReaderWriterBuildable(typeof(WritableSubResource))]
188212
public partial class AzureSampleResourceManagerSampleContext : ModelReaderWriterContext

src/AutoRest.CSharp/Common/Output/PostProcessing/PostProcessor.cs

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ public async Task<Project> InternalizeAsync(Project project)
144144
var modelNamesToRemove = nodesToInternalize.Keys.Select(item => item.Identifier.Text).Concat(suppressedTypeNames);
145145
var modelFullNamesToRemove = nodesToInternalize.Keys.Select(item => GetFullName(item)).ToHashSet();
146146
project = await RemoveMethodsFromModelFactoryAsync(project, definitions, modelNamesToRemove.ToHashSet());
147-
project = await RemoveAttributesFromModelRreaderWriterContext(project, modelFullNamesToRemove);
148147

149148
return project;
150149

@@ -159,68 +158,6 @@ string GetFullName(BaseTypeDeclarationSyntax item)
159158
}
160159
}
161160

162-
private async Task<Project> RemoveAttributesFromModelRreaderWriterContext(Project project, HashSet<string> namesToRemove)
163-
{
164-
if (_mrwContextTypeSymbol is null)
165-
{
166-
return project;
167-
}
168-
169-
var updatedAttributeLists = new List<AttributeListSyntax>();
170-
var mrwContextClassNode = _mrwContextTypeSymbol.DeclaringSyntaxReferences.FirstOrDefault()?.GetSyntax() as ClassDeclarationSyntax;
171-
if (mrwContextClassNode is null)
172-
{
173-
return project;
174-
}
175-
176-
var root = await mrwContextClassNode.SyntaxTree.GetRootAsync();
177-
var updated = false;
178-
foreach (var attributeList in mrwContextClassNode!.AttributeLists)
179-
{
180-
var updatedAttributes = new List<AttributeSyntax>();
181-
foreach (var attribute in attributeList.Attributes)
182-
{
183-
if (!ShouldRemoveAttribute(attribute))
184-
{
185-
updatedAttributes.Add(attribute);
186-
}
187-
}
188-
189-
if (updatedAttributes.Count != attributeList.Attributes.Count)
190-
{
191-
updated = true;
192-
if (updatedAttributes.Count == 0)
193-
{
194-
continue; // skip empty attribute lists
195-
}
196-
updatedAttributeLists.Add(SyntaxFactory.AttributeList(SyntaxFactory.SeparatedList(updatedAttributes)));
197-
}
198-
else
199-
{
200-
updatedAttributeLists.Add(attributeList);
201-
}
202-
}
203-
204-
if (updated)
205-
{
206-
var leadingTrivia = mrwContextClassNode.GetLeadingTrivia();
207-
var newClassNode = mrwContextClassNode.WithAttributeLists(SyntaxFactory.List(updatedAttributeLists)).WithLeadingTrivia(leadingTrivia);
208-
var newRoot = root.ReplaceNode(mrwContextClassNode, newClassNode);
209-
210-
var mrwContextDocument = project.GetDocument(mrwContextClassNode.SyntaxTree)!;
211-
mrwContextDocument = mrwContextDocument.WithSyntaxRoot(newRoot);
212-
return mrwContextDocument.Project;
213-
}
214-
215-
return project;
216-
217-
bool ShouldRemoveAttribute(AttributeSyntax attr)
218-
{
219-
var attributeArgumentNames = attr.ArgumentList?.Arguments.Select(x => ((x.Expression as TypeOfExpressionSyntax)?.Type as QualifiedNameSyntax)?.ToString());
220-
return attributeArgumentNames != null && attributeArgumentNames.Any(name => name is not null && namesToRemove.Contains(name));
221-
}
222-
}
223-
224161
private async Task<Project> RemoveMethodsFromModelFactoryAsync(Project project, TypeSymbols definitions, HashSet<string> namesToRemove)
225162
{
226163
var modelFactorySymbol = definitions.ModelFactorySymbol;

test/CadlRanchProjects/azure/client-generator-core/access/src/Generated/Models/_Specs_AzureClientGeneratorCoreAccessContext.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ namespace _Specs_.Azure.ClientGenerator.Core.Access
1414
/// Context class which will be filled in by the System.ClientModel.SourceGeneration.
1515
/// For more information see 'https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/System.ClientModel/src/docs/ModelReaderWriterContext.md'
1616
/// </summary>
17+
[ModelReaderWriterBuildable(typeof(AbstractModel))]
18+
[ModelReaderWriterBuildable(typeof(BaseModel))]
19+
[ModelReaderWriterBuildable(typeof(InnerModel))]
1720
[ModelReaderWriterBuildable(typeof(InternalDecoratorModelInInternal))]
21+
[ModelReaderWriterBuildable(typeof(NoDecoratorModelInInternal))]
1822
[ModelReaderWriterBuildable(typeof(NoDecoratorModelInPublic))]
23+
[ModelReaderWriterBuildable(typeof(OuterModel))]
1924
[ModelReaderWriterBuildable(typeof(PublicDecoratorModelInInternal))]
2025
[ModelReaderWriterBuildable(typeof(PublicDecoratorModelInPublic))]
26+
[ModelReaderWriterBuildable(typeof(RealModel))]
2127
[ModelReaderWriterBuildable(typeof(SharedModel))]
2228
[ModelReaderWriterBuildable(typeof(UnknownAbstractModel))]
2329
public partial class _Specs_AzureClientGeneratorCoreAccessContext : ModelReaderWriterContext

test/CadlRanchProjects/azure/resource-manager/common-properties/src/Generated/Models/_AzureResourceManagerCommonPropertiesContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace _Azure.ResourceManager.CommonProperties
2121
[ModelReaderWriterBuildable(typeof(ConfidentialResourceProperties))]
2222
[ModelReaderWriterBuildable(typeof(ManagedIdentityTrackedResource))]
2323
[ModelReaderWriterBuildable(typeof(ManagedIdentityTrackedResourceData))]
24+
[ModelReaderWriterBuildable(typeof(ManagedIdentityTrackedResourceProperties))]
2425
[ModelReaderWriterBuildable(typeof(ManagedServiceIdentity))]
2526
[ModelReaderWriterBuildable(typeof(ResponseError))]
2627
[ModelReaderWriterBuildable(typeof(SystemData))]

test/CadlRanchProjects/azure/resource-manager/resources/src/Generated/Models/_AzureResourceManagerResourcesContext.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,26 @@ namespace _Azure.ResourceManager.Resources
1818
/// </summary>
1919
[ModelReaderWriterBuildable(typeof(ExtensionsResource))]
2020
[ModelReaderWriterBuildable(typeof(ExtensionsResourceData))]
21+
[ModelReaderWriterBuildable(typeof(ExtensionsResourceListResult))]
2122
[ModelReaderWriterBuildable(typeof(ExtensionsResourceProperties))]
2223
[ModelReaderWriterBuildable(typeof(LocationResource))]
2324
[ModelReaderWriterBuildable(typeof(LocationResourceData))]
25+
[ModelReaderWriterBuildable(typeof(LocationResourceListResult))]
2426
[ModelReaderWriterBuildable(typeof(LocationResourceProperties))]
2527
[ModelReaderWriterBuildable(typeof(NestedProxyResource))]
2628
[ModelReaderWriterBuildable(typeof(NestedProxyResourceData))]
29+
[ModelReaderWriterBuildable(typeof(NestedProxyResourceListResult))]
2730
[ModelReaderWriterBuildable(typeof(NestedProxyResourceProperties))]
2831
[ModelReaderWriterBuildable(typeof(NotificationDetails))]
2932
[ModelReaderWriterBuildable(typeof(ResponseError))]
3033
[ModelReaderWriterBuildable(typeof(SingletonTrackedResource))]
3134
[ModelReaderWriterBuildable(typeof(SingletonTrackedResourceData))]
35+
[ModelReaderWriterBuildable(typeof(SingletonTrackedResourceListResult))]
3236
[ModelReaderWriterBuildable(typeof(SingletonTrackedResourceProperties))]
3337
[ModelReaderWriterBuildable(typeof(SystemData))]
3438
[ModelReaderWriterBuildable(typeof(TopLevelTrackedResource))]
3539
[ModelReaderWriterBuildable(typeof(TopLevelTrackedResourceData))]
40+
[ModelReaderWriterBuildable(typeof(TopLevelTrackedResourceListResult))]
3641
[ModelReaderWriterBuildable(typeof(TopLevelTrackedResourceProperties))]
3742
public partial class _AzureResourceManagerResourcesContext : ModelReaderWriterContext
3843
{

test/CadlRanchProjects/parameters/basic/src/Generated/Models/ParametersBasicContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace Parameters.Basic
1414
/// Context class which will be filled in by the System.ClientModel.SourceGeneration.
1515
/// For more information see 'https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/System.ClientModel/src/docs/ModelReaderWriterContext.md'
1616
/// </summary>
17+
[ModelReaderWriterBuildable(typeof(SimpleRequest))]
1718
[ModelReaderWriterBuildable(typeof(User))]
1819
public partial class ParametersBasicContext : ModelReaderWriterContext
1920
{

test/CadlRanchProjects/parameters/spread/src/Generated/Models/ParametersSpreadContext.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ namespace Parameters.Spread
1515
/// For more information see 'https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/System.ClientModel/src/docs/ModelReaderWriterContext.md'
1616
/// </summary>
1717
[ModelReaderWriterBuildable(typeof(BodyParameter))]
18+
[ModelReaderWriterBuildable(typeof(SpreadAsRequestBodyRequest))]
19+
[ModelReaderWriterBuildable(typeof(SpreadAsRequestParameterRequest))]
20+
[ModelReaderWriterBuildable(typeof(SpreadCompositeRequestMixRequest))]
21+
[ModelReaderWriterBuildable(typeof(SpreadParameterWithInnerAliasRequest))]
22+
[ModelReaderWriterBuildable(typeof(SpreadParameterWithInnerModelRequest))]
23+
[ModelReaderWriterBuildable(typeof(SpreadWithMultipleParametersRequest))]
1824
public partial class ParametersSpreadContext : ModelReaderWriterContext
1925
{
2026
}

test/CadlRanchProjects/type/union/src/Generated/Models/_TypeUnionContext.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ namespace _Type.Union
2929
[ModelReaderWriterBuildable(typeof(GetResponse9))]
3030
[ModelReaderWriterBuildable(typeof(MixedLiteralsCases))]
3131
[ModelReaderWriterBuildable(typeof(MixedTypesCases))]
32+
[ModelReaderWriterBuildable(typeof(SendRequest))]
33+
[ModelReaderWriterBuildable(typeof(SendRequest1))]
34+
[ModelReaderWriterBuildable(typeof(SendRequest2))]
35+
[ModelReaderWriterBuildable(typeof(SendRequest3))]
36+
[ModelReaderWriterBuildable(typeof(SendRequest4))]
37+
[ModelReaderWriterBuildable(typeof(SendRequest5))]
38+
[ModelReaderWriterBuildable(typeof(SendRequest6))]
39+
[ModelReaderWriterBuildable(typeof(SendRequest7))]
40+
[ModelReaderWriterBuildable(typeof(SendRequest8))]
41+
[ModelReaderWriterBuildable(typeof(SendRequest9))]
3242
[ModelReaderWriterBuildable(typeof(StringAndArrayCases))]
3343
public partial class _TypeUnionContext : ModelReaderWriterContext
3444
{

test/CadlRanchProjectsNonAzure/parameters/spread/src/Generated/Models/ScmParametersSpreadContext.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ namespace Scm.Parameters.Spread
1212
/// For more information see 'https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/System.ClientModel/src/docs/ModelReaderWriterContext.md'
1313
/// </summary>
1414
[ModelReaderWriterBuildable(typeof(BodyParameter))]
15+
[ModelReaderWriterBuildable(typeof(SpreadAsRequestBodyRequest))]
16+
[ModelReaderWriterBuildable(typeof(SpreadAsRequestParameterRequest))]
17+
[ModelReaderWriterBuildable(typeof(SpreadCompositeRequestMixRequest))]
18+
[ModelReaderWriterBuildable(typeof(SpreadParameterWithInnerAliasRequest))]
19+
[ModelReaderWriterBuildable(typeof(SpreadParameterWithInnerModelRequest))]
20+
[ModelReaderWriterBuildable(typeof(SpreadWithMultipleParametersRequest))]
1521
public partial class ScmParametersSpreadContext : ModelReaderWriterContext
1622
{
1723
}

test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/Scm_TypeUnionContext.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ namespace Scm._Type.Union
2626
[ModelReaderWriterBuildable(typeof(GetResponse9))]
2727
[ModelReaderWriterBuildable(typeof(MixedLiteralsCases))]
2828
[ModelReaderWriterBuildable(typeof(MixedTypesCases))]
29+
[ModelReaderWriterBuildable(typeof(SendRequest))]
30+
[ModelReaderWriterBuildable(typeof(SendRequest1))]
31+
[ModelReaderWriterBuildable(typeof(SendRequest2))]
32+
[ModelReaderWriterBuildable(typeof(SendRequest3))]
33+
[ModelReaderWriterBuildable(typeof(SendRequest4))]
34+
[ModelReaderWriterBuildable(typeof(SendRequest5))]
35+
[ModelReaderWriterBuildable(typeof(SendRequest6))]
36+
[ModelReaderWriterBuildable(typeof(SendRequest7))]
37+
[ModelReaderWriterBuildable(typeof(SendRequest8))]
38+
[ModelReaderWriterBuildable(typeof(SendRequest9))]
2939
[ModelReaderWriterBuildable(typeof(StringAndArrayCases))]
3040
public partial class Scm_TypeUnionContext : ModelReaderWriterContext
3141
{

0 commit comments

Comments
 (0)