@azure-tools/typespec-azure-resource-manager 0.56.0-dev.5 → 0.56.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -83,6 +83,10 @@ export type ArmRenameListByOperationDecorator = (context: DecoratorContext, targ
83
83
  * This decorator is used to adjust optionality on ARM Resource's `properties` field for brownfield service conversion.
84
84
  */
85
85
  export type ArmResourcePropertiesOptionalityDecorator = (context: DecoratorContext, target: ModelProperty, isOptional: boolean) => void;
86
+ /**
87
+ * designates a parameter as an explicit bodyRoot and sets the optionality of the parameter
88
+ */
89
+ export type ArmBodyRootDecorator = (context: DecoratorContext, target: ModelProperty, isOptional: boolean) => void;
86
90
  export type AzureResourceManagerPrivateDecorators = {
87
91
  resourceParameterBaseFor: ResourceParameterBaseForDecorator;
88
92
  resourceBaseParametersOf: ResourceBaseParametersOfDecorator;
@@ -96,5 +100,6 @@ export type AzureResourceManagerPrivateDecorators = {
96
100
  enforceConstraint: EnforceConstraintDecorator;
97
101
  armRenameListByOperation: ArmRenameListByOperationDecorator;
98
102
  armResourcePropertiesOptionality: ArmResourcePropertiesOptionalityDecorator;
103
+ armBodyRoot: ArmBodyRootDecorator;
99
104
  };
100
105
  //# sourceMappingURL=Azure.ResourceManager.Private.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Azure.ResourceManager.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAElG;;;;;GAKG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,IAAI,KACT,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EA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E,MAAM,EACvB,sBAAsB,CAAC,EAAE,MAAM,EAC/B,oBAAoB,CAAC,EAAE,OAAO,KAC3B,IAAI,CAAC;AAEV;;;GAGG;AACH,MAAM,MAAM,yCAAyC,GAAG,CACtD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,OAAO,KAChB,IAAI,CAAC;AAEV,MAAM,MAAM,qCAAqC,GAAG;IAClD,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,WAAW,EAAE,oBAAoB,CAAC;IAClC,uBAAuB,EAAE,gCAAgC,CAAC;IAC1D,0BAA0B,EAAE,mCAAmC,CAAC;IAChE,mBAAmB,EAAE,4BAA4B,CAAC;IAClD,6BAA6B,EAAE,sCAAsC,CAAC;IACtE,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,gCAAgC,EAAE,yCAAyC,CAAC;CAC7E,CAAC"}
1
+ {"version":3,"file":"Azure.ResourceManager.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAElG;;;;;GAKG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,IAAI,KACT,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,YAAY,EAAE,KAAK,KAChB,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,0BAA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AS,CAEhC;AAwBD,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,GAAG,OAAO,CAG9E;AAeD,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,CAGzF"}
@@ -1,4 +1,5 @@
1
1
  import { $key, addVisibilityModifiers, clearVisibilityModifiersForClass, getKeyName, getLifecycleVisibilityEnum, getTypeName, sealVisibilityModifiers, } from "@typespec/compiler";
2
+ import { $bodyRoot } from "@typespec/http";
2
3
  import { $segment, getSegment } from "@typespec/rest";
3
4
  import { camelCase } from "change-case";
4
5
  import pluralize from "pluralize";
@@ -288,6 +289,10 @@ const $armResourcePropertiesOptionality = (context, target, isOptional) => {
288
289
  target.optional = isOptional;
289
290
  }
290
291
  };
292
+ const $armBodyRoot = (context, target, isOptional) => {
293
+ target.optional = isOptional;
294
+ context.call($bodyRoot, target);
295
+ };
291
296
  /** @internal */
292
297
  export const $decorators = {
293
298
  "Azure.ResourceManager.Private": {
@@ -303,6 +308,7 @@ export const $decorators = {
303
308
  enforceConstraint: $enforceConstraint,
304
309
  armRenameListByOperation: $armRenameListByOperation,
305
310
  armResourcePropertiesOptionality: $armResourcePropertiesOptionality,
311
+ armBodyRoot: $armBodyRoot,
306
312
  },
307
313
  };
308
314
  //# sourceMappingURL=private.decorators.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"private.decorators.js","sourceRoot":"","sources":["../../src/private.decorators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAUJ,sBAAsB,EACtB,gCAAgC,EAChC,UAAU,EACV,0BAA0B,EAC1B,WAAW,EACX,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,SAAS,MAAM,WAAW,CAAC;AAgBlC,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E,MAAqB;IAC9E,MAAM,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACvF,OAAO,OAAO,IAAI,KAAK,CAAC;AAC1B,CAAC;AAED,MAAM,yBAAyB,GAAsC,CACnE,OAAyB,EACzB,MAAiB,EACjB,YAAmB,EACnB,cAAuB,EACvB,sBAA+B,EAC/B,oBAA8B,EAC9B,EAAE;IACF,gCAAgC,CAC9B,OAAO,EACP,MAAM,EACN,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,oBAAoB,CACrB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,iCAAiC,GAA8C,CACnF,OAAyB,EACzB,MAAqB,EACrB,UAAmB,EACnB,EAAE;IACF,IAAI,MAAM,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;QACjC,MAAM,CAAC,QAAQ,GAAG,UAAU,CAAC;IAC/B,CAAC;AACH,CAAC,CAAC;AAEF,gBAAgB;AAChB,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,+BAA+B,EAAE;QAC/B,wBAAwB,EAAE,yBAAyB;QACnD,wBAAwB,EAAE,yBAAyB;QACnD,iBAAiB,EAAE,kBAAkB;QACrC,WAAW,EAAE,YAAY;QACzB,wBAAwB,EAAE,yBAAyB;QACnD,uBAAuB,EAAE,wBAAwB;QACjD,0BAA0B,EAAE,2BAA2B;QACvD,mBAAmB,EAAE,oBAAoB;QACzC,6BAA6B,EAAE,8BAA8B;QAC7D,iBAAiB,EAAE,kBAAkB;QACrC,wBAAwB,EAAE,yBAAyB;QACnD,gCAAgC,EAAE,iCAAiC;KACpB;CAClD,CAAC"}
1
+ {"version":3,"file":"private.decorators.js","sourceRoot":"","sources":["../../src/private.decorators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAUJ,sBAAsB,EACtB,gCAAgC,EAChC,UAAU,EACV,0BAA0B,EAC1B,WAAW,EACX,uBAAuB,G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Y;QACzB,wBAAwB,EAAE,yBAAyB;QACnD,uBAAuB,EAAE,wBAAwB;QACjD,0BAA0B,EAAE,2BAA2B;QACvD,mBAAmB,EAAE,oBAAoB;QACzC,6BAA6B,EAAE,8BAA8B;QAC7D,iBAAiB,EAAE,kBAAkB;QACrC,wBAAwB,EAAE,yBAAyB;QACnD,gCAAgC,EAAE,iCAAiC;QACnE,WAAW,EAAE,YAAY;KACsB;CAClD,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const armLegacyOperationsDiscourage: import("@typespec/compiler").LinterRuleDefinition<"arm-legacy-operations-discourage", {
2
+ readonly default: "Avoid using the LegacyOperations interface unless migrating a brownfield service.";
3
+ }>;
4
+ //# sourceMappingURL=arm-legacy-operations-discourage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arm-legacy-operations-discourage.d.ts","sourceRoot":"","sources":["../../../src/rules/arm-legacy-operations-discourage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B;;EA2BxC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { createRule, getNamespaceFullName } from "@typespec/compiler";
2
+ export const armLegacyOperationsDiscourage = createRule({
3
+ name: "arm-legacy-operations-discourage",
4
+ severity: "warning",
5
+ description: "Verify the usage of LegacyOperations interface.",
6
+ messages: {
7
+ default: `Avoid using the LegacyOperations interface unless migrating a brownfield service.`,
8
+ },
9
+ create(context) {
10
+ return {
11
+ interface: (iFace) => {
12
+ if (iFace.sourceInterfaces.length > 0 &&
13
+ iFace.sourceInterfaces.some((i) => i.name === "LegacyOperations" &&
14
+ i.namespace &&
15
+ getNamespaceFullName(i.namespace) === "Azure.ResourceManager.Legacy")) {
16
+ context.reportDiagnostic({
17
+ code: "arm-legacy-operations-discourage",
18
+ target: iFace,
19
+ });
20
+ }
21
+ },
22
+ };
23
+ },
24
+ });
25
+ //# sourceMappingURL=arm-legacy-operations-discourage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arm-legacy-operations-discourage.js","sourceRoot":"","sources":["../../../src/rules/arm-legacy-operations-discourage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAa,MAAM,oBAAoB,CAAC;AAEjF,MAAM,CAAC,MAAM,6BAA6B,GAAG,UAAU,CAAC;IACtD,IAAI,EAAE,kCAAkC;IACxC,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE;QACR,OAAO,EAAE,mFAAmF;KAC7F;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,SAAS,EAAE,CAAC,KAAgB,EAAE,EAAE;gBAC9B,IACE,KAAK,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC;oBACjC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CACzB,CAAC,CAAC,EAAE,EAAE,CACJ,CAAC,CAAC,IAAI,KAAK,kBAAkB;wBAC7B,CAAC,CAAC,SAAS;wBACX,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,8BAA8B,CACvE,EACD,CAAC;oBACD,OAAO,CAAC,gBAAgB,CAAC;wBACvB,IAAI,EAAE,kCAAkC;wBACxC,MAAM,EAAE,KAAK;qBACd,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
1
  import "./managed-identity.tsp";
2
2
  import "./decorator.tsp";
3
+ import "./operations.tsp";
@@ -0,0 +1,384 @@
1
+ import "@typespec/rest";
2
+ import "@typespec/http";
3
+
4
+ namespace Azure.ResourceManager.Legacy;
5
+
6
+ using Http;
7
+ using Azure.ResourceManager.Foundations;
8
+ using Azure.ResourceManager.Private;
9
+ using Rest;
10
+
11
+ /**
12
+ * An operation template used to build resource operations in which the same resource type
13
+ * is accessible at multiple, fixed resource paths.
14
+ * @template ParentParameters The path parameters for the resource parent
15
+ * @template ResourceTypeParameter The path parameter for the resource name
16
+ * @template ErrorType Optional. The type of error models used in operations created form this template
17
+ */
18
+ @doc("")
19
+ interface LegacyOperations<
20
+ ParentParameters extends {},
21
+ ResourceTypeParameter extends {},
22
+ ErrorType extends {} = ErrorResponse
23
+ > {
24
+ /**
25
+ * A long-running resource CreateOrUpdate (PUT)
26
+ * @template Resource the resource being created or updated
27
+ * @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
28
+ * @template Parameters Optional. Additional parameters after the path parameters
29
+ * @template Response Optional. The success response(s) for the PUT operation
30
+ * @template OptionalRequestBody Optional. Indicates whether the request body is optional
31
+ */
32
+ @autoRoute
33
+ @doc("Create a {name}", Resource)
34
+ @armResourceCreateOrUpdate(Resource)
35
+ @Azure.Core.Foundations.Private.defaultFinalStateVia(#["location", "azure-async-operation"])
36
+ @put
37
+ CreateOrUpdateAsync<
38
+ Resource extends Azure.ResourceManager.CommonTypes.Resource,
39
+ LroHeaders extends TypeSpec.Reflection.Model = ArmAsyncOperationHeader<FinalResult = Resource> &
40
+ Azure.Core.Foundations.RetryAfterHeader,
41
+ Parameters extends {} = {},
42
+ Response extends {} = ArmResourceUpdatedResponse<Resource> | ArmResourceCreatedResponse<
43
+ Resource,
44
+ LroHeaders
45
+ >,
46
+ OptionalRequestBody extends valueof boolean = false
47
+ >(
48
+ ...ParentParameters,
49
+ ...ResourceTypeParameter,
50
+ ...Parameters,
51
+ @doc("Resource create parameters.") @armBodyRoot(OptionalRequestBody) body: Resource,
52
+ ): Response | ErrorType;
53
+
54
+ /**
55
+ * A synchronous resource CreateOrUpdate (PUT)
56
+ * @template Resource the resource being created or updated
57
+ * @template Parameters Optional. Additional parameters after the path parameters
58
+ * @template Response Optional. The success response(s) for the PUT operation
59
+ * @template OptionalRequestBody Optional. Indicates whether the request body is optional
60
+ */
61
+ #suppress "@azure-tools/typespec-azure-core/no-private-usage"
62
+ @autoRoute
63
+ @doc("Create a {name}", Resource)
64
+ @armResourceCreateOrUpdate(Resource)
65
+ @put
66
+ CreateOrUpdateSync<
67
+ Resource extends Azure.ResourceManager.CommonTypes.Resource,
68
+ Parameters extends {} = {},
69
+ Response extends {} = ArmResourceUpdatedResponse<Resource> | ArmResourceCreatedSyncResponse<Resource>,
70
+ OptionalRequestBody extends valueof boolean = false
71
+ >(
72
+ ...ParentParameters,
73
+ ...ResourceTypeParameter,
74
+ ...Parameters,
75
+ @doc("Resource create parameters.") @armBodyRoot(OptionalRequestBody) body: Resource,
76
+ ): Response | ErrorType;
77
+
78
+ /**
79
+ * A long-running resource Update (PATCH)
80
+ * @template Resource the resource being created or updated
81
+ * @template PatchModel the PATCH request model
82
+ * @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
83
+ * @template Parameters Optional. Additional parameters after the path parameters
84
+ * @template Response Optional. The success response(s) for the PATCH operation
85
+ * @template OptionalRequestBody Optional. Indicates whether the request body is optional
86
+ */
87
+ @autoRoute
88
+ @doc("Update a {name}", Resource)
89
+ @armResourceUpdate(Resource)
90
+ @patch(#{ implicitOptionality: false })
91
+ CustomPatchAsync<
92
+ Resource extends Azure.ResourceManager.CommonTypes.Resource,
93
+ PatchModel extends {} = Azure.ResourceManager.Foundations.TagsUpdateModel<Resource>,
94
+ LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader<
95
+ Azure.Core.StatusMonitorPollingOptions<ArmOperationStatus>,
96
+ Resource,
97
+ string
98
+ > &
99
+ Azure.Core.Foundations.RetryAfterHeader,
100
+ Parameters extends {} = {},
101
+ Response extends {} = ArmResponse<Resource> | ArmAcceptedLroResponse<
102
+ "Resource update request accepted.",
103
+ LroHeaders
104
+ >,
105
+ OptionalRequestBody extends valueof boolean = false
106
+ >(
107
+ ...ParentParameters,
108
+ ...ResourceTypeParameter,
109
+ ...Parameters,
110
+ @doc("Resource create parameters.") @armBodyRoot(OptionalRequestBody) body: PatchModel,
111
+ ): Response | ErrorType;
112
+
113
+ /**
114
+ * A synchronous resource Update (PATCH)
115
+ * @template Resource the resource being created or updated
116
+ * @template PatchModel the PATCH request model
117
+ * @template Parameters Optional. Additional parameters after the path parameters
118
+ * @template Response Optional. The success response(s) for the PATCH operation
119
+ * @template OptionalRequestBody Optional. Indicates whether the request body is optional
120
+ */
121
+ @autoRoute
122
+ @doc("Update a {name}", Resource)
123
+ @armResourceUpdate(Resource)
124
+ @patch(#{ implicitOptionality: false })
125
+ CustomPatchSync<
126
+ Resource extends Azure.ResourceManager.CommonTypes.Resource,
127
+ PatchModel extends {} = Azure.ResourceManager.Foundations.TagsUpdateModel<Resource>,
128
+ Parameters extends {} = {},
129
+ Response extends {} = ArmResponse<Resource>,
130
+ OptionalRequestBody extends valueof boolean = false
131
+ >(
132
+ ...ParentParameters,
133
+ ...ResourceTypeParameter,
134
+ ...Parameters,
135
+ @doc("Resource create parameters.") @armBodyRoot(OptionalRequestBody) body: PatchModel,
136
+ ): Response | ErrorType;
137
+
138
+ /**
139
+ * Delete a resource asynchronously
140
+ * @template Resource The resource being deleted
141
+ * @template LroHeaders The lro headers for the operation
142
+ * @template Parameters Optional. Additional parameters after the path parameters
143
+ * @template Response Optional. The success response(s) for the delete operation
144
+ */
145
+ #suppress "@azure-tools/typespec-azure-core/no-response-body" "Valid"
146
+ @autoRoute
147
+ @doc("Delete a {name}", Resource)
148
+ @delete
149
+ @deletesResource(Resource)
150
+ @armResourceDelete(Resource)
151
+ DeleteAsync<
152
+ Resource extends Azure.ResourceManager.CommonTypes.Resource,
153
+ LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader &
154
+ Azure.Core.Foundations.RetryAfterHeader,
155
+ Parameters extends {} = {},
156
+ Response extends {} = ArmDeleteAcceptedLroResponse<LroHeaders> | ArmDeletedNoContentResponse
157
+ >(...ParentParameters, ...ResourceTypeParameter, ...Parameters): Response | ErrorType;
158
+
159
+ /**
160
+ * Delete a resource synchronously
161
+ * @template Resource The resource being deleted
162
+ * @template Parameters Optional. Additional parameters after the path parameters
163
+ * @template Response Optional. The success response(s) for the delete operation
164
+ */
165
+ #suppress "@azure-tools/typespec-azure-core/no-response-body" "Valid"
166
+ @autoRoute
167
+ @doc("Delete a {name}", Resource)
168
+ @delete
169
+ @deletesResource(Resource)
170
+ @armResourceDelete(Resource)
171
+ DeleteSync<
172
+ Resource extends Azure.ResourceManager.CommonTypes.Resource,
173
+ Parameters extends {} = {},
174
+ Response extends {} = ArmDeletedResponse | ArmDeletedNoContentResponse
175
+ >(...ParentParameters, ...ResourceTypeParameter, ...Parameters): Response | ErrorType;
176
+
177
+ /**
178
+ * @dev Get a resource
179
+ * @template Resource The resource being read
180
+ * @template Parameters Optional. Additional parameters after the path parameters
181
+ * @template Response Optional. The success response for a get operation.
182
+ */
183
+ @autoRoute
184
+ @doc("Get a {name}", Resource)
185
+ @get
186
+ @readsResource(Resource)
187
+ @armResourceRead(Resource)
188
+ Read<
189
+ Resource extends Azure.ResourceManager.CommonTypes.Resource,
190
+ Parameters extends {} = {},
191
+ Response extends {} = ArmResponse<Resource>
192
+ >(...ParentParameters, ...ResourceTypeParameter, ...Parameters): Response | ErrorType;
193
+
194
+ /**
195
+ * List a resource
196
+ * @template Resource The resource being listed
197
+ * @template Parameters Optional. Additional parameters after the path parameters
198
+ * @template Response Optional. The response returned by the list
199
+ */
200
+ @autoRoute
201
+ @doc("List a {name}", Resource)
202
+ @get
203
+ @listsResource(Resource)
204
+ @segmentOf(Resource)
205
+ @armResourceList(Resource)
206
+ List<
207
+ Resource extends Azure.ResourceManager.CommonTypes.Resource,
208
+ Parameters extends {} = {},
209
+ Response extends {} = ArmResponse<ResourceListResult<Resource>>
210
+ >(...ParentParameters, ...Parameters): Response | ErrorType;
211
+
212
+ /**
213
+ * A synchronous resource action.
214
+ * @template Resource The resource being acted upon
215
+ * @template Request The request model for the action
216
+ * @template Response The response model for the action
217
+ * @template Parameters Optional. Additional parameters after the path parameters
218
+ * @template OptionalRequestBody Optional. Indicates whether the request body is optional
219
+ */
220
+ @doc("")
221
+ @autoRoute
222
+ @armResourceAction(Resource)
223
+ @Private.enforceConstraint(Resource, Foundations.Resource)
224
+ @post
225
+ @returnsDoc("Azure operation completed successfully.")
226
+ ActionSync<
227
+ Resource extends Foundations.Resource,
228
+ Request extends TypeSpec.Reflection.Model | void,
229
+ Response extends TypeSpec.Reflection.Model | void,
230
+ Parameters extends {} = {},
231
+ OptionalRequestBody extends valueof boolean = false
232
+ >(
233
+ ...ParentParameters,
234
+ ...ResourceTypeParameter,
235
+ ...Parameters,
236
+
237
+ @doc("The content of the action request")
238
+ @armBodyRoot(OptionalRequestBody)
239
+ body: Request,
240
+ ): Response | ErrorType;
241
+
242
+ /**
243
+ * A long-running resource action.
244
+ * @template Resource The resource being acted upon
245
+ * @template Request The request model for the action
246
+ * @template LroHeaders Optional. Allows overriding the headers returned in the Accepted response
247
+ * @template Response The response model for the action
248
+ * @template Parameters Optional. Additional parameters after the path parameters
249
+ * @template OptionalRequestBody Optional. Indicates whether the request body is optional
250
+ */
251
+ #suppress "@azure-tools/typespec-azure-core/no-response-body" "ARM"
252
+ @doc("")
253
+ @autoRoute
254
+ @armResourceAction(Resource)
255
+ @Private.enforceConstraint(Resource, Foundations.Resource)
256
+ @post
257
+ @returnsDoc("Azure operation completed successfully.")
258
+ ActionAsync<
259
+ Resource extends Foundations.Resource,
260
+ Request extends TypeSpec.Reflection.Model | void,
261
+ Result extends TypeSpec.Reflection.Model | void,
262
+ LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader<
263
+ Azure.Core.StatusMonitorPollingOptions<ArmOperationStatus>,
264
+ Result,
265
+ string
266
+ > &
267
+ Azure.Core.Foundations.RetryAfterHeader,
268
+ Parameters extends {} = {},
269
+ Response extends {} | void = ArmAcceptedLroResponse<
270
+ "Resource operation accepted.",
271
+ LroHeaders
272
+ > | Result,
273
+ OptionalRequestBody extends valueof boolean = false
274
+ >(
275
+ ...ParentParameters,
276
+ ...ResourceTypeParameter,
277
+ ...Parameters,
278
+
279
+ @doc("The content of the action request")
280
+ @armBodyRoot(OptionalRequestBody)
281
+ body: Request,
282
+ ): Response | ErrorType;
283
+ }
284
+ /**
285
+ * @dev Get the provider namespace key-value pair
286
+ * @template Resource Optional. The resource to get the provider namespace for.
287
+ */
288
+ model Provider<Resource extends {} = TenantActionScope> {
289
+ ...ProviderNamespace<Resource>;
290
+ }
291
+
292
+ /**
293
+ * A long-running resource update using a custom PATCH payload (Asynchronous)
294
+ * @template Resource the resource being patched
295
+ * @template PatchModel The input model for the PATCH request
296
+ * @template BaseParameters Optional. Allows overriding the operation parameters
297
+ * @template LroHeaders Optional. Allows overriding the lro headers returned in the Accepted response
298
+ * @template Parameters Optional. Additional parameters after the path parameters
299
+ * @template Response Optional. The success response for the patch operation
300
+ * @template Error Optional. The error response, if non-standard.
301
+ * @template OptionalRequestBody Optional. Indicates whether the request body is optional
302
+ */
303
+ @autoRoute
304
+ @doc("Update a {name}", Resource)
305
+ @armResourceUpdate(Resource)
306
+ @Private.enforceConstraint(Resource, Foundations.Resource)
307
+ @patch(#{ implicitOptionality: true })
308
+ op CustomPatchAsync<
309
+ Resource extends Foundations.Resource,
310
+ PatchModel extends TypeSpec.Reflection.Model = TagsUpdateModel<Resource>,
311
+ BaseParameters = DefaultBaseParameters<Resource>,
312
+ LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader<
313
+ Azure.Core.StatusMonitorPollingOptions<ArmOperationStatus>,
314
+ Resource,
315
+ string
316
+ > &
317
+ Azure.Core.Foundations.RetryAfterHeader,
318
+ Parameters extends {} = {},
319
+ Response extends {} = ArmResponse<Resource> | ArmAcceptedLroResponse<
320
+ "Resource update request accepted.",
321
+ LroHeaders
322
+ >,
323
+ Error extends {} = ErrorResponse,
324
+ OptionalRequestBody extends valueof boolean = false
325
+ > is UpdateOperation<
326
+ ResourceInstanceParameters<Resource, BaseParameters> & Parameters,
327
+ PatchModel,
328
+ Response,
329
+ Error,
330
+ OptionalRequestBody
331
+ >;
332
+
333
+ /**
334
+ * A resource update using a custom PATCH payload (synchronous)
335
+ * @template Resource the resource being patched
336
+ * @template PatchModel The input model for the PATCH request
337
+ * @template BaseParameters Optional. Allows overriding the operation parameters
338
+ * @template Parameters Optional. Additional parameters after the path parameters
339
+ * @template Response Optional. The success response for the patch operation
340
+ * @template Error Optional. The error response, if non-standard.
341
+ * @template OptionalRequestBody Optional. Indicates whether the request body is optional
342
+ */
343
+ @autoRoute
344
+ @doc("Update a {name}", Resource)
345
+ @armResourceUpdate(Resource)
346
+ @Private.enforceConstraint(Resource, Foundations.Resource)
347
+ @patch(#{ implicitOptionality: true })
348
+ op CustomPatchSync<
349
+ Resource extends Foundations.Resource,
350
+ PatchModel extends TypeSpec.Reflection.Model = TagsUpdateModel<Resource>,
351
+ BaseParameters = DefaultBaseParameters<Resource>,
352
+ Parameters extends {} = {},
353
+ Response extends {} = ArmResponse<Resource>,
354
+ Error extends {} = ErrorResponse,
355
+ OptionalRequestBody extends valueof boolean = false
356
+ > is UpdateOperation<
357
+ ResourceInstanceParameters<Resource, BaseParameters> & Parameters,
358
+ PatchModel,
359
+ Response,
360
+ Error,
361
+ OptionalRequestBody
362
+ >;
363
+
364
+ /**
365
+ * @dev The base template for Legacy Azure Resource Manager PATCH Operations.
366
+ * @template HttpParameters The parameter object for the operation.
367
+ * @template BodyParameter The body parameter
368
+ * @template Response The response or union of responses for success.
369
+ * @template ErrorResponse The error response.
370
+ * @template OptionalRequestBody Optional. Indicates whether the request body is optional
371
+ */
372
+ op UpdateOperation<
373
+ HttpParameters extends {},
374
+ BodyParameter extends {},
375
+ Response extends {},
376
+ ErrorResponse extends {},
377
+ OptionalRequestBody extends valueof boolean = false
378
+ >(
379
+ ...HttpParameters,
380
+
381
+ @doc("The resource properties to be updated.")
382
+ @armBodyRoot(OptionalRequestBody)
383
+ properties: BodyParameter,
384
+ ): Response | ErrorResponse;
@@ -163,17 +163,17 @@ namespace Azure.ResourceManager.CommonTypes;
163
163
  );
164
164
 
165
165
  /** PrivateLinkResourceListResult */
166
- @@armCommonDefinition(PrivateEndpointConnectionListResultV5,
166
+ @@armCommonDefinition(PrivateLinkResourceListResultV5,
167
167
  "PrivateLinkResourceListResult",
168
168
  Azure.ResourceManager.CommonTypes.Versions.v3,
169
169
  "privatelinks.json"
170
170
  );
171
- @@armCommonDefinition(PrivateEndpointConnectionListResultV5,
171
+ @@armCommonDefinition(PrivateLinkResourceListResultV5,
172
172
  "PrivateLinkResourceListResult",
173
173
  Azure.ResourceManager.CommonTypes.Versions.v4,
174
174
  "privatelinks.json"
175
175
  );
176
- @@armCommonDefinition(PrivateEndpointConnectionListResultV5,
176
+ @@armCommonDefinition(PrivateLinkResourceListResultV5,
177
177
  "PrivateLinkResourceListResult",
178
178
  Azure.ResourceManager.CommonTypes.Versions.v5,
179
179
  "privatelinks.json"
@@ -228,9 +228,9 @@ op checkNameAvailability<
228
228
 
229
229
  /**
230
230
  * @dev The base template for Azure Resource Manager GET and HEAD Operations.
231
- * @param Parameters The parameter object for the operation.
232
- * @param Response The response or union of responses for success.
233
- * @param ErrorResponse The error response.
231
+ * @template Parameters The parameter object for the operation.
232
+ * @template Response The response or union of responses for success.
233
+ * @template ErrorResponse The error response.
234
234
  */
235
235
  op ArmReadOperation<Parameters extends {}, Response extends {}, ErrorResponse extends {}>(
236
236
  ...Parameters,
@@ -238,10 +238,10 @@ op ArmReadOperation<Parameters extends {}, Response extends {}, ErrorResponse ex
238
238
 
239
239
  /**
240
240
  * @dev The base template for Azure Resource Manager PUT Operations.
241
- * @param HttpParameters The parameter object for the operation.
242
- * @param BodyParameter The body parameter
243
- * @param Response The response or union of responses for success.
244
- * @param ErrorResponse The error response.
241
+ * @template HttpParameters The parameter object for the operation.
242
+ * @template BodyParameter The body parameter
243
+ * @template Response The response or union of responses for success.
244
+ * @template ErrorResponse The error response.
245
245
  */
246
246
  op ArmCreateOperation<
247
247
  HttpParameters extends {},
@@ -255,10 +255,11 @@ op ArmCreateOperation<
255
255
 
256
256
  /**
257
257
  * @dev The base template for Azure Resource Manager PATCH Operations.
258
- * @param HttpParameters The parameter object for the operation.
259
- * @param BodyParameter The body parameter
260
- * @param Response The response or union of responses for success.
261
- * @param ErrorResponse The error response.
258
+ * @template HttpParameters The parameter object for the operation.
259
+ * @template BodyParameter The body parameter
260
+ * @template Response The response or union of responses for success.
261
+ * @template ErrorResponse The error response.
262
+ * @template RequestBody Optional. ENables changing the name, documentation, or optionality of the request body parameter
262
263
  */
263
264
  op ArmUpdateOperation<
264
265
  HttpParameters extends {},
@@ -1,6 +1,7 @@
1
1
  using Http;
2
2
  using Rest;
3
3
  using Azure.ResourceManager.Foundations;
4
+ using Azure.ResourceManager.Private;
4
5
 
5
6
  namespace Azure.ResourceManager;
6
7
 
@@ -251,6 +252,7 @@ op ArmResourceCreateOrReplaceAsync<
251
252
  /**
252
253
  * @dev A long-running resource update that only allows updating resource tags (the minimum)
253
254
  * @template Resource the resource being patched
255
+ * @template Properties Optional. Exists for parallelism with ArmResourcePatch.
254
256
  * @template BaseParameters Optional. Allows overriding the operation parameters
255
257
  * @template LroHeaders Optional. Allows overriding the lro headers that appear in the Accepted response
256
258
  * @template Parameters Optional. Additional parameters after the path parameters
@@ -482,6 +484,7 @@ op ArmResourceDeleteSync<
482
484
  * @template BaseParameters Optional. Allows overriding the parameters for the operation
483
485
  * @template Parameters Optional. Additional parameters after the path parameters
484
486
  * @template Error Optional. The error response, if non-standard.
487
+ * @template OptionalRequestBody Optional. Indicates whether the request body is optional.
485
488
  */
486
489
  @autoRoute
487
490
  @armResourceAction(Resource)
@@ -493,13 +496,14 @@ op ArmResourceActionAsyncBase<
493
496
  Response extends TypeSpec.Reflection.Model | void,
494
497
  BaseParameters extends TypeSpec.Reflection.Model,
495
498
  Parameters extends {} = {},
496
- Error extends {} = ErrorResponse
499
+ Error extends {} = ErrorResponse,
500
+ OptionalRequestBody extends valueof boolean = false
497
501
  >(
498
502
  ...ResourceInstanceParameters<Resource, BaseParameters>,
499
503
  ...Parameters,
500
504
 
501
505
  @doc("The content of the action request")
502
- @bodyRoot
506
+ @armBodyRoot(OptionalRequestBody)
503
507
  body: Request,
504
508
  ): Response | Error;
505
509
 
@@ -512,6 +516,7 @@ op ArmResourceActionAsyncBase<
512
516
  * @template LroHeaders Optional. Allows overriding the headers returned in the Accepted response
513
517
  * @template Parameters Optional. Additional parameters after the path parameters
514
518
  * @template Error Optional. The error response, if non-standard.
519
+ * @template OptionalRequestBody Optional. Indicates whether the body parameter is optional.
515
520
  */
516
521
  @returnsDoc("Azure operation completed successfully.")
517
522
  @Private.enforceConstraint(Resource, Foundations.Resource)
@@ -527,14 +532,16 @@ op ArmResourceActionAsync<
527
532
  > &
528
533
  Azure.Core.Foundations.RetryAfterHeader,
529
534
  Parameters extends {} = {},
530
- Error extends {} = ErrorResponse
535
+ Error extends {} = ErrorResponse,
536
+ OptionalRequestBody extends valueof boolean = false
531
537
  > is ArmResourceActionAsyncBase<
532
538
  Resource,
533
539
  Request,
534
540
  ArmAcceptedLroResponse<"Resource operation accepted.", LroHeaders> | Response,
535
541
  BaseParameters,
536
542
  Parameters,
537
- Error
543
+ Error,
544
+ OptionalRequestBody
538
545
  >;
539
546
 
540
547
  /**
@@ -545,6 +552,7 @@ op ArmResourceActionAsync<
545
552
  * @template BaseParameters Optional. Allows overriding the parameters for the operation
546
553
  * @template Parameters Optional. Additional parameters after the path parameters
547
554
  * @template Error Optional. The error response, if non-standard.
555
+ * @template OptionalRequestBody Optional. Indicates whether the body parameter is optional.
548
556
  */
549
557
  @autoRoute
550
558
  @armResourceAction(Resource)
@@ -557,13 +565,14 @@ op ArmResourceActionSync<
557
565
  Response extends TypeSpec.Reflection.Model | void,
558
566
  BaseParameters = DefaultBaseParameters<Resource>,
559
567
  Parameters extends {} = {},
560
- Error extends {} = ErrorResponse
568
+ Error extends {} = ErrorResponse,
569
+ OptionalRequestBody extends valueof boolean = false
561
570
  >(
562
571
  ...ResourceInstanceParameters<Resource, BaseParameters>,
563
572
  ...Parameters,
564
573
 
565
574
  @doc("The content of the action request")
566
- @bodyRoot
575
+ @armBodyRoot(OptionalRequestBody)
567
576
  body: Request,
568
577
  ): Response | Error;
569
578
 
@@ -575,6 +584,7 @@ op ArmResourceActionSync<
575
584
  * @template LroHeaders Optional. Allows overriding the headers returned in the Accepted response
576
585
  * @template Parameters Optional. Additional parameters after the path parameters
577
586
  * @template Error Optional. The error response, if non-standard.
587
+ * @template OptionalRequestBody Optional. Indicates whether the body parameter is optional.
578
588
  */
579
589
  @Private.enforceConstraint(Resource, Foundations.Resource)
580
590
  op ArmResourceActionNoContentAsync<
@@ -584,7 +594,8 @@ op ArmResourceActionNoContentAsync<
584
594
  LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader &
585
595
  Azure.Core.Foundations.RetryAfterHeader,
586
596
  Parameters extends {} = {},
587
- Error extends {} = ErrorResponse
597
+ Error extends {} = ErrorResponse,
598
+ OptionalRequestBody extends valueof boolean = false
588
599
  > is ArmResourceActionAsyncBase<
589
600
  Resource,
590
601
  Request,
@@ -594,7 +605,8 @@ op ArmResourceActionNoContentAsync<
594
605
  > | ArmNoContentResponse<"Action completed successfully.">,
595
606
  BaseParameters,
596
607
  Parameters,
597
- Error
608
+ Error,
609
+ OptionalRequestBody
598
610
  >;
599
611
 
600
612
  /**
@@ -602,9 +614,10 @@ op ArmResourceActionNoContentAsync<
602
614
  * @template Resource The resource being acted upon
603
615
  * @template Request The request model for the action
604
616
  * @template BaseParameters Optional. Allows overriding the parameters for the operation
605
- * @template Headers Optional. Allows overriding the headers returned in the Accepted response
617
+ * @template LroHeaders Optional. Allows overriding the headers returned in the Accepted response
606
618
  * @template Parameters Optional. Additional parameters after the path parameters
607
619
  * @template Error Optional. The error response, if non-standard.
620
+ * @template OptionalRequestBody Optional. Indicates whether the body parameter is optional.
608
621
  */
609
622
  @Private.enforceConstraint(Resource, Foundations.Resource)
610
623
  op ArmResourceActionNoResponseContentAsync<
@@ -618,14 +631,16 @@ op ArmResourceActionNoResponseContentAsync<
618
631
  > &
619
632
  Azure.Core.Foundations.RetryAfterHeader,
620
633
  Parameters extends {} = {},
621
- Error extends {} = ErrorResponse
634
+ Error extends {} = ErrorResponse,
635
+ OptionalRequestBody extends valueof boolean = false
622
636
  > is ArmResourceActionAsyncBase<
623
637
  Resource,
624
638
  Request,
625
639
  ArmAcceptedLroResponse<"Resource operation accepted.", LroHeaders>,
626
640
  BaseParameters,
627
641
  Parameters,
628
- Error
642
+ Error,
643
+ OptionalRequestBody
629
644
  >;
630
645
 
631
646
  /**
@@ -635,6 +650,7 @@ op ArmResourceActionNoResponseContentAsync<
635
650
  * @template BaseParameters Optional. Allows overriding the parameters for the operation
636
651
  * @template Parameters Optional. Additional parameters after the path parameters
637
652
  * @template Error Optional. The error response, if non-standard.
653
+ * @template OptionalRequestBody Optional. Indicates whether the request body is optional.
638
654
  */
639
655
  @autoRoute
640
656
  @armResourceAction(Resource)
@@ -645,13 +661,14 @@ op ArmResourceActionNoContentSync<
645
661
  Request extends TypeSpec.Reflection.Model | void,
646
662
  BaseParameters = DefaultBaseParameters<Resource>,
647
663
  Parameters extends {} = {},
648
- Error extends {} = ErrorResponse
664
+ Error extends {} = ErrorResponse,
665
+ OptionalRequestBody extends valueof boolean = false
649
666
  >(
650
667
  ...ResourceInstanceParameters<Resource, BaseParameters>,
651
668
  ...Parameters,
652
669
 
653
670
  @doc("The content of the action request")
654
- @bodyRoot
671
+ @armBodyRoot(OptionalRequestBody)
655
672
  body: Request,
656
673
  ): ArmNoContentResponse<"Action completed successfully."> | Error;
657
674
 
@@ -702,6 +719,7 @@ op checkLocalNameAvailability<
702
719
  * @template Scope The scope of the action (SubscriptionActionScope or TenantActionScope)
703
720
  * @template Parameters Optional. Additional parameters after the path parameters (e.g. Location)
704
721
  * @template Error Optional. The error response, if non-standard.
722
+ * @template OptionalRequestBody Optional. Indicates whether the request body is optional.
705
723
  */
706
724
  @post
707
725
  @action
@@ -712,14 +730,15 @@ op ArmProviderActionSync<
712
730
  Response extends {} | void = void,
713
731
  Scope extends {} = TenantActionScope,
714
732
  Parameters extends {} = {},
715
- Error extends {} = ErrorResponse
733
+ Error extends {} = ErrorResponse,
734
+ OptionalRequestBody extends valueof boolean = false
716
735
  >(
717
736
  ...Azure.ResourceManager.Foundations.DefaultBaseParameters<Scope>,
718
737
  ...ProviderNamespace<Scope>,
719
738
  ...Parameters,
720
739
 
721
740
  /** The request body */
722
- @bodyRoot body: Request,
741
+ @armBodyRoot(OptionalRequestBody) body: Request,
723
742
  ): Response | Error;
724
743
 
725
744
  /**
@@ -730,6 +749,7 @@ op ArmProviderActionSync<
730
749
  * @template Parameters Optional. Additional parameters after the path parameters (e.g. Location)
731
750
  * @template LroHeaders Optional. Allows overriding the lro headers returned in the Accepted response
732
751
  * @template Error Optional. The error response, if non-standard.
752
+ * @template OptionalRequestBody Optional. Indicates whether the request body is optional.
733
753
  */
734
754
  @post
735
755
  @action
@@ -746,12 +766,13 @@ op ArmProviderActionAsync<
746
766
  string
747
767
  > &
748
768
  Azure.Core.Foundations.RetryAfterHeader,
749
- Error extends {} = ErrorResponse
769
+ Error extends {} = ErrorResponse,
770
+ OptionalRequestBody extends valueof boolean = false
750
771
  >(
751
772
  ...Azure.ResourceManager.Foundations.DefaultBaseParameters<Scope>,
752
773
  ...ProviderNamespace<Scope>,
753
774
  ...Parameters,
754
775
 
755
776
  /** The request body */
756
- @bodyRoot body: Request,
777
+ @armBodyRoot(OptionalRequestBody) body: Request,
757
778
  ): ArmAcceptedLroResponse<"Resource operation accepted.", LroHeaders> | Response | Error;
@@ -70,6 +70,8 @@ model ResourceGroupLocationResource is ArmLocationResource<"ResourceGroup">;
70
70
 
71
71
  /**
72
72
  * Template for ARM location resources. Use the parameter to specify
73
+ * the parent of the location resource.
74
+ * @template BaseType The parent of the location, one of "Subscription", "Tenant", "ResourceGroup", or "Extension".
73
75
  */
74
76
  @friendlyName("Location")
75
77
  @armVirtualResource
@@ -103,3 +103,6 @@ extern dec armRenameListByOperation(
103
103
  * This decorator is used to adjust optionality on ARM Resource's `properties` field for brownfield service conversion.
104
104
  */
105
105
  extern dec armResourcePropertiesOptionality(target: ModelProperty, isOptional: valueof boolean);
106
+
107
+ /** designates a parameter as an explicit bodyRoot and sets the optionality of the parameter */
108
+ extern dec armBodyRoot(target: ModelProperty, isOptional: valueof boolean);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-azure-resource-manager",
3
- "version": "0.56.0-dev.5",
3
+ "version": "0.56.1",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Azure Resource Manager library",
6
6
  "homepage": "https://azure.github.io/typespec-azure",
@@ -44,30 +44,30 @@
44
44
  "pluralize": "^8.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
- "@azure-tools/typespec-azure-core": "^0.55.0 || >=0.56.0-dev <0.56.0",
48
- "@typespec/compiler": "^1.0.0-rc.1",
49
- "@typespec/http": "^1.0.0-rc.1",
50
- "@typespec/openapi": "^1.0.0-rc.1",
51
- "@typespec/rest": "^0.69.0 || >=0.70.0-dev <0.70.0",
52
- "@typespec/versioning": "^0.69.0 || >=0.70.0-dev <0.70.0"
47
+ "@azure-tools/typespec-azure-core": "^0.56.0",
48
+ "@typespec/compiler": "^1.0.0",
49
+ "@typespec/openapi": "^1.0.0",
50
+ "@typespec/http": "^1.0.1",
51
+ "@typespec/rest": "^0.70.0",
52
+ "@typespec/versioning": "^0.70.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@azure-tools/typespec-azure-core": "^0.55.0 || >=0.56.0-dev <0.56.0",
56
55
  "@types/node": "~22.13.11",
57
56
  "@types/pluralize": "^0.0.33",
58
- "@typespec/compiler": "^1.0.0-rc.1",
59
- "@typespec/http": "^1.0.0-rc.1",
60
- "@typespec/library-linter": "^0.69.0 || >=0.70.0-dev <0.70.0",
61
- "@typespec/openapi": "^1.0.0-rc.1",
62
- "@typespec/rest": "^0.69.0 || >=0.70.0-dev <0.70.0",
63
- "@typespec/tspd": "^0.69.0 || >=0.70.0-dev <0.70.0",
64
- "@typespec/versioning": "^0.69.0 || >=0.70.0-dev <0.70.0",
65
57
  "@vitest/coverage-v8": "^3.1.2",
66
58
  "@vitest/ui": "^3.1.2",
67
59
  "c8": "^10.1.3",
68
60
  "rimraf": "~6.0.1",
69
61
  "typescript": "~5.8.2",
70
- "vitest": "^3.1.2"
62
+ "vitest": "^3.1.2",
63
+ "@azure-tools/typespec-azure-core": "^0.56.0",
64
+ "@typespec/http": "^1.0.1",
65
+ "@typespec/library-linter": "^0.70.0",
66
+ "@typespec/compiler": "^1.0.0",
67
+ "@typespec/openapi": "^1.0.0",
68
+ "@typespec/rest": "^0.70.0",
69
+ "@typespec/tspd": "^0.70.0",
70
+ "@typespec/versioning": "^0.70.0"
71
71
  },
72
72
  "scripts": {
73
73
  "clean": "rimraf ./dist ./temp",