Skip to content

Commit 2b5c3bf

Browse files
committed
update
1 parent c2b96ed commit 2b5c3bf

10 files changed

Lines changed: 114 additions & 0 deletions

specification/sql/resource-manager/Microsoft.Sql/SQL/DeletedServer.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ alias DeletedServersOps = Azure.ResourceManager.Legacy.LegacyOperations<
3636
@path
3737
@segment("locations")
3838
@key
39+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
3940
locationName: string;
4041
},
4142
{

specification/sql/resource-manager/Microsoft.Sql/SQL/InstanceFailoverGroup.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ alias InstanceFailoverGroupsOps = Azure.ResourceManager.Legacy.LegacyOperations<
3737
@path
3838
@segment("locations")
3939
@key
40+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
4041
locationName: string;
4142
},
4243
{

specification/sql/resource-manager/Microsoft.Sql/SQL/LongTermRetentionBackup.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ alias LongTermRetentionBackupOps = Azure.ResourceManager.Legacy.LegacyOperations
4141
@path
4242
@segment("locations")
4343
@key
44+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
4445
locationName: string;
4546

4647
/** The name of the server */
@@ -199,6 +200,7 @@ alias LongTermRetentionBackupOperationGroupOps = Azure.ResourceManager.Legacy.Le
199200
@path
200201
@segment("locations")
201202
@key
203+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
202204
locationName: string;
203205

204206
/** The name of the server */

specification/sql/resource-manager/Microsoft.Sql/SQL/ManagedDatabaseMoveOperationResult.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ alias ManagedDatabaseMoveOperationResultsOps = Azure.ResourceManager.Legacy.Lega
3737
@path
3838
@segment("locations")
3939
@key
40+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
4041
locationName: string;
4142
},
4243
{

specification/sql/resource-manager/Microsoft.Sql/SQL/ManagedInstanceLongTermRetentionBackup.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ alias ManagedInstanceLongTermRetentionBackupOps = Azure.ResourceManager.Legacy.L
4343
@path
4444
@segment("locations")
4545
@key
46+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
4647
locationName: string;
4748

4849
/** The name of the managed instance. */
@@ -121,6 +122,7 @@ alias LongTermRetentionManagedInstanceBackupOps = Azure.ResourceManager.Legacy.L
121122
@path
122123
@segment("locations")
123124
@key
125+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
124126
locationName: string;
125127

126128
/** The name of the managed instance. */

specification/sql/resource-manager/Microsoft.Sql/SQL/ServerTrustGroup.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ alias ServerTrustGroupsOps = Azure.ResourceManager.Legacy.LegacyOperations<
3737
@path
3838
@segment("locations")
3939
@key
40+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
4041
locationName: string;
4142
},
4243
{

specification/sql/resource-manager/Microsoft.Sql/SQL/SubscriptionUsage.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ alias SubscriptionUsagesOps = Azure.ResourceManager.Legacy.LegacyOperations<
3636
@path
3737
@segment("locations")
3838
@key
39+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
3940
locationName: string;
4041
},
4142
{

specification/sql/resource-manager/Microsoft.Sql/SQL/TimeZone.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ alias TimeZonesOps = Azure.ResourceManager.Legacy.LegacyOperations<
3535
@path
3636
@segment("locations")
3737
@key
38+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
3839
locationName: string;
3940
},
4041
{

specification/sql/resource-manager/Microsoft.Sql/SQL/client.tsp

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,11 @@ using Microsoft.Sql;
11721172
"csharp"
11731173
);
11741174
@@clientName(ElasticPools.listByElasticPool, "GetDatabases", "csharp");
1175+
@@clientName(
1176+
ElasticPools.elasticPoolOperationsListByElasticPool,
1177+
"GetElasticPoolOperations",
1178+
"csharp"
1179+
);
11751180
@@clientName(
11761181
Servers.serverOperationsListByServer,
11771182
"GetServerOperations",
@@ -1303,6 +1308,7 @@ union SqlNameAvailabilityResourceType {
13031308
"csharp"
13041309
);
13051310

1311+
@@usage(EndpointCertificate, Azure.ClientGenerator.Core.Usage.input, "csharp");
13061312
@@usage(DatabaseColumn, Azure.ClientGenerator.Core.Usage.input, "csharp");
13071313
@@clientName(
13081314
DatabaseColumnProperties.memoryOptimized,
@@ -1321,3 +1327,91 @@ union SqlNameAvailabilityResourceType {
13211327
"CreateOrUpdateDataMaskingRule",
13221328
"csharp"
13231329
);
1330+
@@clientName(InstancePools.listByInstancePool, "GetManagedInstances", "csharp");
1331+
@@clientName(InstancePools.usagesListByInstancePool, "GetUsages", "csharp");
1332+
@@usage(
1333+
LongTermRetentionBackup,
1334+
Azure.ClientGenerator.Core.Usage.input,
1335+
"csharp"
1336+
);
1337+
@@usage(
1338+
MaintenanceWindowOptions,
1339+
Azure.ClientGenerator.Core.Usage.input,
1340+
"csharp"
1341+
);
1342+
@@clientName(
1343+
SensitivityLabels.disableRecommendation,
1344+
"DisableRecommendationManagedDatabaseSensitivityLabel",
1345+
"csharp"
1346+
);
1347+
@@clientName(
1348+
SensitivityLabels.enableRecommendation,
1349+
"EnableRecommendationManagedDatabaseSensitivityLabel",
1350+
"csharp"
1351+
);
1352+
@@clientName(
1353+
ManagedDatabases.listCurrentByDatabase,
1354+
"GetCurrentManagedDatabaseSensitivityLabels",
1355+
"csharp"
1356+
);
1357+
@@clientName(
1358+
ManagedDatabases.listRecommendedByDatabase,
1359+
"GetRecommendedManagedDatabaseSensitivityLabels",
1360+
"csharp"
1361+
);
1362+
@@clientName(
1363+
ManagedDatabases.managedDatabaseSensitivityLabelsListByDatabase,
1364+
"GetManagedDatabaseSensitivityLabelsByDatabase",
1365+
"csharp"
1366+
);
1367+
@@clientName(
1368+
ManagedDatabases.listByDatabase,
1369+
"GetManagedDatabaseColumnsByDatabase",
1370+
"csharp"
1371+
);
1372+
@@clientName(ManagedInstanceQueries.get, "GetManagedDatabaseQuery", "csharp");
1373+
@@clientName(
1374+
ManagedDatabases.managedDatabaseSecurityEventsListByDatabase,
1375+
"GetManagedDatabaseSecurityEventsByDatabase",
1376+
"csharp"
1377+
);
1378+
@@clientName(
1379+
ManagedInstanceQueries.listByQuery,
1380+
"GetQueryStatistics",
1381+
"csharp"
1382+
);
1383+
@@clientName(
1384+
ManagedDatabases.managedDatabaseSensitivityLabelsUpdate,
1385+
"UpdateManagedDatabaseSensitivityLabel",
1386+
"csharp"
1387+
);
1388+
@@alternateType(ManagedInstanceOperation.name, uuid, "csharp");
1389+
@@alternateType(InstancePoolOperation.name, uuid, "csharp");
1390+
@@clientName(ElasticPools.cancel, "CancelElasticPoolOperation", "csharp");
1391+
@@clientName(
1392+
ManagedInstancePrivateEndpointConnectionProperties.privateLinkServiceConnectionState,
1393+
"ConnectionState",
1394+
"csharp"
1395+
);
1396+
@@clientName(
1397+
ManagedInstances.create,
1398+
"CreateManagedInstanceTdeCertificate",
1399+
"csharp"
1400+
);
1401+
@@clientName(
1402+
LongTermRetentionBackups.changeAccessTier::parameters.body,
1403+
"content",
1404+
"csharp"
1405+
);
1406+
@@clientName(
1407+
LongTermRetentionBackupOperationGroup.changeAccessTierByResourceGroup::parameters.body,
1408+
"content",
1409+
"csharp"
1410+
);
1411+
1412+
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
1413+
@@Azure.ClientGenerator.Core.Legacy.hierarchyBuilding(
1414+
RestorableDroppedDatabase,
1415+
Azure.ResourceManager.Foundations.TrackedResource,
1416+
"csharp"
1417+
);

specification/sql/resource-manager/Microsoft.Sql/SQL/routes.tsp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ interface CapabilitiesOperationGroup {
5353
*/
5454
@path
5555
@segment("locations")
56+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
5657
locationName: string;
5758

5859
/**
@@ -86,6 +87,7 @@ interface LongTermRetentionBackupsOperationGroup {
8687
*/
8788
@path
8889
@segment("locations")
90+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
8991
locationName: string;
9092

9193
/**
@@ -118,6 +120,7 @@ interface LongTermRetentionBackupsOperationGroup {
118120
*/
119121
@path
120122
@segment("locations")
123+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
121124
locationName: string;
122125

123126
/**
@@ -157,6 +160,7 @@ interface LongTermRetentionBackupsOperationGroup {
157160
*/
158161
@path
159162
@segment("locations")
163+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
160164
locationName: string;
161165

162166
/**
@@ -189,6 +193,7 @@ interface LongTermRetentionBackupsOperationGroup {
189193
*/
190194
@path
191195
@segment("locations")
196+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
192197
locationName: string;
193198

194199
/**
@@ -237,6 +242,7 @@ interface LongTermRetentionManagedInstanceBackupsOperationGroup {
237242
*/
238243
@path
239244
@segment("locations")
245+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
240246
locationName: string;
241247

242248
/**
@@ -287,6 +293,7 @@ interface LongTermRetentionManagedInstanceBackupsOperationGroup {
287293
*/
288294
@path
289295
@segment("locations")
296+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
290297
locationName: string;
291298

292299
/**
@@ -326,6 +333,7 @@ interface LongTermRetentionManagedInstanceBackupsOperationGroup {
326333
*/
327334
@path
328335
@segment("locations")
336+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
329337
locationName: string;
330338

331339
/**
@@ -376,6 +384,7 @@ interface LongTermRetentionManagedInstanceBackupsOperationGroup {
376384
*/
377385
@path
378386
@segment("locations")
387+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
379388
locationName: string;
380389

381390
/**
@@ -439,6 +448,7 @@ interface SyncGroupsOperationGroup {
439448
*/
440449
@path
441450
@segment("locations")
451+
@Azure.ClientGenerator.Core.alternateType(Azure.Core.azureLocation) // The type of this parameter is Azure location.
442452
locationName: string;
443453
}
444454
>;

0 commit comments

Comments
 (0)