Skip to content

Commit 55e4588

Browse files
author
tadelesh
committed
fix TCGC override
1 parent 651003c commit 55e4588

9 files changed

Lines changed: 90 additions & 2 deletions

File tree

  • specification
    • apimanagement/resource-manager/Microsoft.ApiManagement/ApiManagement
    • botservice/resource-manager/Microsoft.BotService/BotService
    • cognitiveservices/CognitiveServices.Management
    • iothub/resource-manager/Microsoft.Devices/IoTHub
    • policyinsights/resource-manager/Microsoft.PolicyInsights/PolicyInsights
    • quota/resource-manager/Microsoft.Quota/Quota
    • recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/RecoveryServicesBackup
    • security/resource-manager/Microsoft.Security/Security
    • storage/Storage.Management

specification/apimanagement/resource-manager/Microsoft.ApiManagement/ApiManagement/client.tsp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import "./main.tsp";
2+
import "@typespec/http";
23
import "@azure-tools/typespec-client-generator-core";
34

45
using Azure.ClientGenerator.Core;
@@ -197,7 +198,11 @@ op replaceGetByName(
197198
...ApiVersionParameter,
198199
...SubscriptionIdParameter,
199200
...Azure.ResourceManager.Legacy.Provider,
201+
202+
@path
200203
serviceName: string,
204+
205+
@path
201206
location: Azure.Core.azureLocation,
202207
):
203208
| Azure.ResourceManager.ArmResponse<Microsoft.ApiManagement.DeletedServiceContract>
@@ -218,7 +223,11 @@ op replacePurge(
218223
...ApiVersionParameter,
219224
...SubscriptionIdParameter,
220225
...Azure.ResourceManager.Legacy.Provider,
226+
227+
@path
221228
serviceName: string,
229+
230+
@path
222231
location: Azure.Core.azureLocation,
223232
):
224233
| ArmDeletedResponse

specification/botservice/resource-manager/Microsoft.BotService/BotService/client.tsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,10 @@ namespace Customizations {
505505
...SubscriptionIdParameter,
506506
...ResourceGroupParameter,
507507
...Azure.ResourceManager.Legacy.Provider,
508+
509+
@path
508510
resourceName: string,
511+
509512
properties?: Microsoft.BotService.BotProperties,
510513

511514
@visibility(Lifecycle.Read)

specification/cognitiveservices/CognitiveServices.Management/client.tsp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import "@azure-tools/typespec-client-generator-core";
22
import "./main.tsp";
3+
import "@typespec/http";
34
import "@typespec/rest";
45

5-
using TypeSpec.Http;
6+
using Http;
67
using TypeSpec.Rest;
78
using Azure.Core;
89
using Azure.ClientGenerator.Core;
@@ -71,7 +72,10 @@ op checkSkuAvailabilityCustom(
7172
...SubscriptionIdParameter,
7273
...SubscriptionActionScope,
7374
...Azure.ResourceManager.Legacy.Provider,
75+
76+
@path
7477
location: string,
78+
7579
skus: string[],
7680
type: string,
7781
kind: string,

specification/iothub/resource-manager/Microsoft.Devices/IoTHub/client.tsp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import "@azure-tools/typespec-client-generator-core";
2+
import "@typespec/http";
23
import "@azure-tools/typespec-azure-resource-manager";
34
import "./main.tsp";
45

@@ -345,7 +346,10 @@ using Http;
345346
op replaceManualFailover(
346347
...ApiVersionParameter,
347348
...SubscriptionIdParameter,
349+
350+
@path
348351
iotHubName: string,
352+
349353
...Azure.ResourceManager.ResourceGroupParameter,
350354
...Azure.ResourceManager.Legacy.Provider,
351355
@body body: Microsoft.Devices.FailoverInput,
@@ -369,7 +373,10 @@ op replaceManualFailover(
369373
op replaceTestAllRoutes(
370374
...ApiVersionParameter,
371375
...SubscriptionIdParameter,
376+
377+
@path
372378
iotHubName: string,
379+
373380
...Azure.ResourceManager.ResourceGroupParameter,
374381
...Azure.ResourceManager.Legacy.Provider,
375382
@body body: Microsoft.Devices.TestAllRoutesInput,
@@ -388,7 +395,10 @@ op replaceTestAllRoutes(
388395
op replaceTestRoute(
389396
...ApiVersionParameter,
390397
...SubscriptionIdParameter,
398+
399+
@path
391400
iotHubName: string,
401+
392402
...Azure.ResourceManager.ResourceGroupParameter,
393403
...Azure.ResourceManager.Legacy.Provider,
394404
@body body: Microsoft.Devices.TestRouteInput,

specification/policyinsights/resource-manager/Microsoft.PolicyInsights/PolicyInsights/client.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,6 +1454,8 @@ op remediationsListDeploymentsAtManagementGroup(
14541454
#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
14551455
op remediationsListForManagementGroup(
14561456
...ApiVersionParameter,
1457+
1458+
@path
14571459
managementGroupsNamespace: ManagementGroupsNamespaceType,
14581460

14591461
@path

specification/quota/resource-manager/Microsoft.Quota/Quota/client.tsp

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import "./main.tsp";
22
import "@azure-tools/typespec-client-generator-core";
3+
import "@typespec/http";
34

45
using Azure.ClientGenerator.Core;
6+
using Http;
57
using Microsoft.Quota;
68

79
// csharp
@@ -89,12 +91,19 @@ using Microsoft.Quota;
8991
op currentQuotaLimitBasesCreateOrUpdate(
9092
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
9193
apiVersion: string,
94+
9295
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
96+
@path
9397
extensionProvider: "Microsoft.Quota",
98+
9499
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
100+
@path
95101
resourceName: string,
102+
96103
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
104+
@path
97105
scope: string,
106+
98107
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
99108
createQuotaRequest: CurrentQuotaLimitBase,
100109
): CurrentQuotaLimitBase;
@@ -110,11 +119,17 @@ op currentQuotaLimitBasesCreateOrUpdate(
110119
op currentQuotaLimitBasesGet(
111120
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
112121
apiVersion: string,
122+
113123
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
124+
@path
114125
extensionProvider: "Microsoft.Quota",
126+
115127
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
128+
@path
116129
resourceName: string,
130+
117131
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
132+
@path
118133
scope: string,
119134
): CurrentQuotaLimitBase;
120135

@@ -129,12 +144,19 @@ op currentQuotaLimitBasesGet(
129144
op currentQuotaLimitBasesUpdate(
130145
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
131146
apiVersion: string,
147+
132148
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
149+
@path
133150
extensionProvider: "Microsoft.Quota",
151+
134152
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
153+
@path
135154
resourceName: string,
155+
136156
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
157+
@path
137158
scope: string,
159+
138160
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
139161
createQuotaRequest: CurrentQuotaLimitBase,
140162
): CurrentQuotaLimitBase;
@@ -150,11 +172,17 @@ op currentQuotaLimitBasesUpdate(
150172
op quotaRequestStatusGet(
151173
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
152174
apiVersion: string,
175+
153176
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
177+
@path
154178
extensionProvider: "Microsoft.Quota",
179+
155180
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
181+
@path
156182
id: string,
183+
157184
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
185+
@path
158186
scope: string,
159187
): QuotaRequestDetails;
160188

@@ -169,11 +197,17 @@ op quotaRequestStatusGet(
169197
op currentUsagesBasesGet(
170198
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
171199
apiVersion: string,
200+
172201
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
202+
@path
173203
extensionProvider: "Microsoft.Quota",
204+
174205
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
206+
@path
175207
resourceName: string,
208+
176209
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
210+
@path
177211
scope: string,
178212
): CurrentUsagesBase;
179213

specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/RecoveryServicesBackup/client.tsp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,9 @@ op protectionIntentResourcesCreateOrUpdate(
17421742
fabricName: string,
17431743

17441744
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
1745+
@path
17451746
intentObjectName: string,
1747+
17461748
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
17471749
parameters: ProtectionIntentResource,
17481750
): ProtectionIntentResource;
@@ -1771,6 +1773,7 @@ op protectionIntentResourcesDelete(
17711773
fabricName: string,
17721774

17731775
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
1776+
@path
17741777
intentObjectName: string,
17751778
): ArmDeletedNoContentResponse;
17761779

@@ -1798,6 +1801,7 @@ op protectionIntentResourcesGet(
17981801
fabricName: string,
17991802

18001803
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
1804+
@path
18011805
intentObjectName: string,
18021806
): ProtectionIntentResource;
18031807

specification/security/resource-manager/Microsoft.Security/Security/client.tsp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ import "./StandardsAPI/main.tsp";
3131
import "./SubAssessmentsAPI/main.tsp";
3232
import "./TasksAPI/main.tsp";
3333
import "@azure-tools/typespec-client-generator-core";
34+
import "@typespec/http";
3435
import "@typespec/versioning";
3536

3637
using Azure.ClientGenerator.Core;
3738
using TypeSpec.Versioning;
38-
using TypeSpec.Http;
39+
using Http;
3940
using TypeSpec.Rest;
4041
using Azure.ResourceManager;
4142
using Azure.Core;
@@ -258,6 +259,7 @@ op privateEndpointConnectionsGetCustomization(
258259
@query
259260
privateLinkName: `private-link-parameters`,
260261

262+
@path
261263
privateEndpointConnectionName: string,
262264
): ArmResponse<Azure.ResourceManager.PrivateEndpointConnection> | ErrorResponse;
263265

@@ -280,7 +282,9 @@ op privateEndpointConnectionsCreateOrUpdateCustomization(
280282
privateLinkName: `private-link-parameters`,
281283

282284
#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
285+
@path
283286
privateEndpointConnectionName: string,
287+
284288
#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
285289
resource: PrivateLinksAPI.PrivateEndpointConnection,
286290
):
@@ -316,6 +320,7 @@ op privateEndpointConnectionsDeleteCustomization(
316320
privateLinkName: `private-link-parameters`,
317321

318322
#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
323+
@path
319324
privateEndpointConnectionName: string,
320325
):
321326
| ArmDeleteAcceptedLroResponse<ArmAsyncOperationHeader &
@@ -361,6 +366,7 @@ op privateLinkResourcesGetCustomization(
361366
privateLinkName: `private-link-parameters`,
362367

363368
#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
369+
@path
364370
groupId: string,
365371
): ArmResponse<PrivateLinkGroupResource> | ErrorResponse;
366372

specification/storage/Storage.Management/client.tsp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import "@azure-tools/typespec-client-generator-core";
2+
import "@typespec/http";
23
import "./main.tsp";
34

45
using Azure.ClientGenerator.Core;
56
using Azure.ClientGenerator.Core.Legacy;
67
using Azure.Core;
8+
using TypeSpec.Http;
79
using Microsoft.Storage;
810

911
@@clientName(ProvisioningState, "StorageAccountProvisioningState", "csharp");
@@ -378,9 +380,16 @@ union CSharpBlobInventoryPolicyName {
378380
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
379381
op getDeletedAccountCustomized(
380382
apiVersion: string,
383+
384+
@path
381385
deletedAccountName: string,
386+
387+
@path
382388
location: Azure.Core.azureLocation,
389+
383390
...Azure.ResourceManager.ProviderNamespace<Microsoft.Storage.DeletedAccount>,
391+
392+
@path
384393
subscriptionId: Azure.Core.uuid,
385394
):
386395
| Azure.ResourceManager.ArmResponse<Microsoft.Storage.DeletedAccount>
@@ -394,9 +403,16 @@ op getDeletedAccountCustomized(
394403
#suppress "@azure-tools/typespec-azure-core/documentation-required" "override"
395404
op getDeletedAccountCustomizedForJs(
396405
...Azure.ResourceManager.ApiVersionParameter,
406+
407+
@path
397408
deletedAccountName: string,
409+
410+
@path
398411
location: Azure.Core.azureLocation,
412+
399413
...Azure.ResourceManager.ProviderNamespace<Microsoft.Storage.DeletedAccount>,
414+
415+
@path
400416
subscriptionId: Azure.Core.uuid,
401417
):
402418
| Azure.ResourceManager.ArmResponse<Microsoft.Storage.DeletedAccount>

0 commit comments

Comments
 (0)