@@ -1415,3 +1415,242 @@ union SqlNameAvailabilityResourceType {
14151415 Azure .ResourceManager .Foundations .TrackedResource ,
14161416 "csharp"
14171417);
1418+
1419+ // --- Property type alternates (string -> ResourceIdentifier / AzureLocation) ---
1420+ @@ alternateType (
1421+ DatabaseProperties .failoverGroupId ,
1422+ armResourceIdentifier ,
1423+ "csharp"
1424+ );
1425+ @@ alternateType (
1426+ DatabaseProperties .maintenanceConfigurationId ,
1427+ armResourceIdentifier ,
1428+ "csharp"
1429+ );
1430+ @@ alternateType (
1431+ DatabaseProperties .defaultSecondaryLocation ,
1432+ azureLocation ,
1433+ "csharp"
1434+ );
1435+ @@ alternateType (
1436+ DatabaseUpdateProperties .failoverGroupId ,
1437+ armResourceIdentifier ,
1438+ "csharp"
1439+ );
1440+ @@ alternateType (
1441+ DatabaseUpdateProperties .maintenanceConfigurationId ,
1442+ armResourceIdentifier ,
1443+ "csharp"
1444+ );
1445+ @@ alternateType (
1446+ DatabaseUpdateProperties .defaultSecondaryLocation ,
1447+ azureLocation ,
1448+ "csharp"
1449+ );
1450+
1451+ // --- Enum value renames to match v1.4.0 contract ---
1452+ @@ clientName (CatalogCollationType .DATABASE_DEFAULT , "DatabaseDefault" , "csharp" );
1453+ @@ clientName (
1454+ CatalogCollationType .SQL_Latin1_General_CP1_CI_AS ,
1455+ "SqlLatin1GeneralCp1CiAs" ,
1456+ "csharp"
1457+ );
1458+
1459+ @@ clientName (DiffBackupIntervalInHours .`12` , "Twelve" , "csharp" );
1460+ @@ clientName (DiffBackupIntervalInHours .`24` , "TwentyFour" , "csharp" );
1461+
1462+ // =====================================================================
1463+ // Restore parameterless ctor + setters for output-only models
1464+ // (v1.4.0 ApiCompat mitigations)
1465+ //
1466+ // Marking these models as `Usage.input` makes the C# generator emit them
1467+ // as roundtrippable (Input | Output), which restores the public
1468+ // parameterless constructor and writable property setters that the
1469+ // v1.4.0 contract exposed.
1470+ // =====================================================================
1471+ @@ usage (DatabaseOperation , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1472+ @@ usage (DatabaseUsage , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1473+ @@ usage (
1474+ DatabaseVulnerabilityAssessmentScansExport ,
1475+ Azure .ClientGenerator .Core .Usage .input ,
1476+ "csharp"
1477+ );
1478+ @@ usage (ElasticPoolOperation , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1479+ @@ usage (
1480+ ImportExportExtensionsOperationResult ,
1481+ Azure .ClientGenerator .Core .Usage .input ,
1482+ "csharp"
1483+ );
1484+ @@ usage (
1485+ ImportExportOperationResult ,
1486+ Azure .ClientGenerator .Core .Usage .input ,
1487+ "csharp"
1488+ );
1489+ @@ usage (
1490+ LongTermRetentionBackupOperationResult ,
1491+ Azure .ClientGenerator .Core .Usage .input ,
1492+ "csharp"
1493+ );
1494+ @@ usage (
1495+ UpdateVirtualClusterDnsServersOperation ,
1496+ Azure .ClientGenerator .Core .Usage .input ,
1497+ "csharp"
1498+ );
1499+ @@ usage (
1500+ RefreshExternalGovernanceStatusOperationResult ,
1501+ Azure .ClientGenerator .Core .Usage .input ,
1502+ "csharp"
1503+ );
1504+ @@ usage (SecurityEvent , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1505+ @@ usage (ServerOperation , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1506+ @@ usage (InstancePoolOperation , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1507+ @@ usage (
1508+ RefreshExternalGovernanceStatusOperationResultMI ,
1509+ Azure .ClientGenerator .Core .Usage .input ,
1510+ "csharp"
1511+ );
1512+ @@ usage (NSPConfigAccessRule , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1513+ @@ usage (
1514+ NSPConfigAccessRuleProperties ,
1515+ Azure .ClientGenerator .Core .Usage .input ,
1516+ "csharp"
1517+ );
1518+ @@ usage (NSPConfigAssociation , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1519+ @@ usage (NSPConfigPerimeter , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1520+ @@ usage (NSPConfigProfile , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1521+ @@ usage (
1522+ NSPConfigNetworkSecurityPerimeterRule ,
1523+ Azure .ClientGenerator .Core .Usage .input ,
1524+ "csharp"
1525+ );
1526+ @@ usage (
1527+ NetworkSecurityPerimeterConfiguration ,
1528+ Azure .ClientGenerator .Core .Usage .input ,
1529+ "csharp"
1530+ );
1531+ @@ usage (NSPProvisioningIssue , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1532+ @@ usage (
1533+ NSPProvisioningIssueProperties ,
1534+ Azure .ClientGenerator .Core .Usage .input ,
1535+ "csharp"
1536+ );
1537+ @@ usage (PrivateLinkResource , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1538+ @@ usage (RestorePoint , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1539+ @@ usage (ServerDnsAlias , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1540+ @@ usage (JobExecution , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1541+ @@ usage (JobVersion , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1542+ @@ usage (ServerUsage , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1543+ @@ usage (SynapseLinkWorkspace , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1544+ @@ usage (
1545+ SynapseLinkWorkspaceInfoProperties ,
1546+ Azure .ClientGenerator .Core .Usage .input ,
1547+ "csharp"
1548+ );
1549+ @@ usage (TimeZone , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1550+ @@ usage (
1551+ DatabaseSqlVulnerabilityAssessmentBaselineSet ,
1552+ Azure .ClientGenerator .Core .Usage .input ,
1553+ "csharp"
1554+ );
1555+ @@ usage (
1556+ DatabaseSqlVulnerabilityAssessmentRuleBaseline ,
1557+ Azure .ClientGenerator .Core .Usage .input ,
1558+ "csharp"
1559+ );
1560+ @@ usage (
1561+ SqlVulnerabilityAssessmentScanRecord ,
1562+ Azure .ClientGenerator .Core .Usage .input ,
1563+ "csharp"
1564+ );
1565+ @@ usage (
1566+ SqlVulnerabilityAssessmentScanResults ,
1567+ Azure .ClientGenerator .Core .Usage .input ,
1568+ "csharp"
1569+ );
1570+ @@ usage (SubscriptionUsage , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1571+ @@ usage (SyncAgentLinkedDatabase , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1572+ @@ usage (
1573+ VulnerabilityAssessmentScanRecord ,
1574+ Azure .ClientGenerator .Core .Usage .input ,
1575+ "csharp"
1576+ );
1577+
1578+ // Standalone setter regressions: input models / input contents whose
1579+ // containing model already has a ctor in v1.4.0 but lost individual
1580+ // setters because codegen no longer sees them as inputs.
1581+ @@ usage (DatabaseExtensions , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1582+ @@ usage (TdeCertificate , Azure .ClientGenerator .Core .Usage .input , "csharp" );
1583+ @@ usage (
1584+ DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput ,
1585+ Azure .ClientGenerator .Core .Usage .input ,
1586+ "csharp"
1587+ );
1588+ @@ usage (
1589+ DatabaseSqlVulnerabilityAssessmentRuleBaselineInput ,
1590+ Azure .ClientGenerator .Core .Usage .input ,
1591+ "csharp"
1592+ );
1593+
1594+ @@ clientName (AvailabilityZoneType .`1` , "One" , "csharp" );
1595+ @@ clientName (AvailabilityZoneType .`2` , "Two" , "csharp" );
1596+ @@ clientName (AvailabilityZoneType .`3` , "Three" , "csharp" );
1597+
1598+ @@ clientName (ManagedDatabaseStatus .DbCopying , "DBCopying" , "csharp" );
1599+ @@ clientName (ManagedDatabaseStatus .DbMoving , "DBMoving" , "csharp" );
1600+
1601+ @@ clientName (
1602+ ManagedInstanceDatabaseFormat .SQLServer2022 ,
1603+ "SqlServer2022" ,
1604+ "csharp"
1605+ );
1606+ @@ clientName (
1607+ ManagedInstanceDatabaseFormat .SQLServer2025 ,
1608+ "SqlServer2025" ,
1609+ "csharp"
1610+ );
1611+
1612+ @@ clientName (PerformanceLevelUnit .DTU , "Dtu" , "csharp" );
1613+
1614+ @@ clientName (ReplicationState .PENDING , "Pending" , "csharp" );
1615+ @@ clientName (ReplicationState .SEEDING , "Seeding" , "csharp" );
1616+ @@ clientName (ReplicationState .CATCH_UP , "CatchUp" , "csharp" );
1617+ @@ clientName (ReplicationState .SUSPENDED , "Suspended" , "csharp" );
1618+
1619+ @@ clientName (ReplicationLinkType .GEO , "Geo" , "csharp" );
1620+ @@ clientName (ReplicationLinkType .NAMED , "Named" , "csharp" );
1621+ @@ clientName (ReplicationLinkType .STANDBY , "Standby" , "csharp" );
1622+
1623+ @@ clientName (ColumnDataType .hierarchyid , "HierarchyId" , "csharp" );
1624+
1625+ @@ clientName (ReplicaConnectedState .CONNECTED , "Connected" , "csharp" );
1626+ @@ clientName (ReplicaConnectedState .DISCONNECTED , "Disconnected" , "csharp" );
1627+
1628+ @@ clientName (ReplicaSynchronizationHealth .HEALTHY , "Healthy" , "csharp" );
1629+ @@ clientName (
1630+ ReplicaSynchronizationHealth .PARTIALLY_HEALTHY ,
1631+ "PartiallyHealthy" ,
1632+ "csharp"
1633+ );
1634+
1635+ @@ clientName (StorageCapabilityStorageAccountType .GRS , "Grs" , "csharp" );
1636+ @@ clientName (StorageCapabilityStorageAccountType .LRS , "Lrs" , "csharp" );
1637+ @@ clientName (StorageCapabilityStorageAccountType .ZRS , "Zrs" , "csharp" );
1638+ @@ clientName (StorageCapabilityStorageAccountType .GZRS , "Gzrs" , "csharp" );
1639+
1640+ // --- Property casing fixes (IP/IPv6 capitalization, etc.) ---
1641+ @@ clientName (
1642+ ServerFirewallRuleProperties .startIpAddress ,
1643+ "StartIPAddress" ,
1644+ "csharp"
1645+ );
1646+ @@ clientName (
1647+ ServerFirewallRuleProperties .endIpAddress ,
1648+ "EndIPAddress" ,
1649+ "csharp"
1650+ );
1651+ @@ clientName (SecurityEventProperties .clientIp , "ClientIP" , "csharp" );
1652+ @@ clientName (
1653+ ManagedInstanceDtcSecuritySettings .snaLu6point2TransactionsEnabled ,
1654+ "SnaLu6Point2TransactionsEnabled" ,
1655+ "csharp"
1656+ );
0 commit comments