@azure-tools/typespec-azure-resource-manager 0.30.0-dev.11 → 0.30.0-dev.12
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.
- package/lib/interfaces.tsp +48 -0
- package/package.json +1 -1
package/lib/interfaces.tsp
CHANGED
|
@@ -138,6 +138,10 @@ interface ResourceCollectionOperations<
|
|
|
138
138
|
* @template TResource The ArmResource that provides these operations
|
|
139
139
|
*/
|
|
140
140
|
interface ResourceListBySubscription<TResource extends ArmResource> {
|
|
141
|
+
/**
|
|
142
|
+
* List resources by subscription.
|
|
143
|
+
* @template TResource The ArmResource to list.
|
|
144
|
+
*/
|
|
141
145
|
listBySubscription is ArmListBySubscription<TResource>;
|
|
142
146
|
}
|
|
143
147
|
|
|
@@ -154,6 +158,13 @@ interface ResourceListByParent<
|
|
|
154
158
|
TParentName = "",
|
|
155
159
|
TParentFriendlyName = ""
|
|
156
160
|
> {
|
|
161
|
+
/**
|
|
162
|
+
* List resources by parent.
|
|
163
|
+
* @template TResource The ArmResource to list.
|
|
164
|
+
* @template TBaseParameters The http parameters that are part of the request
|
|
165
|
+
* @template TParentName The name of the parent resource
|
|
166
|
+
* @template TParentFriendlyName The friendly name of the parent resource
|
|
167
|
+
*/
|
|
157
168
|
listByParent is ArmResourceListByParent<
|
|
158
169
|
TResource,
|
|
159
170
|
TBaseParameters,
|
|
@@ -168,6 +179,11 @@ interface ResourceListByParent<
|
|
|
168
179
|
* @template TBaseParameters The http parameters that are part of the request
|
|
169
180
|
*/
|
|
170
181
|
interface ResourceRead<TResource extends ArmResource, TBaseParameters = BaseParameters<TResource>> {
|
|
182
|
+
/**
|
|
183
|
+
* Retrieve a resource.
|
|
184
|
+
* @template TResource The ArmResource to retrieve.
|
|
185
|
+
* @template TBaseParameters The http parameters that are part of the request
|
|
186
|
+
*/
|
|
171
187
|
get is ArmResourceRead<TResource, TBaseParameters>;
|
|
172
188
|
}
|
|
173
189
|
|
|
@@ -180,6 +196,11 @@ interface ResourceCreateSync<
|
|
|
180
196
|
TResource extends ArmResource,
|
|
181
197
|
TBaseParameters = BaseParameters<TResource>
|
|
182
198
|
> {
|
|
199
|
+
/**
|
|
200
|
+
* Create or update a resource using the synchronous call pattern.
|
|
201
|
+
* @template TResource The ArmResource to create or update.
|
|
202
|
+
* @template TBaseParameters The http parameters that are part of the request
|
|
203
|
+
*/
|
|
183
204
|
createOrUpdate is ArmResourceCreateOrUpdateSync<TResource, TBaseParameters>;
|
|
184
205
|
}
|
|
185
206
|
|
|
@@ -192,6 +213,11 @@ interface ResourceCreateAsync<
|
|
|
192
213
|
TResource extends ArmResource,
|
|
193
214
|
TBaseParameters = BaseParameters<TResource>
|
|
194
215
|
> {
|
|
216
|
+
/**
|
|
217
|
+
* Create or update a resource using the asynchronous call pattern.
|
|
218
|
+
* @template TResource The ArmResource to create or update.
|
|
219
|
+
* @template TBaseParameters The http parameters that are part of the request
|
|
220
|
+
*/
|
|
195
221
|
createOrUpdate is ArmResourceCreateOrUpdateAsync<TResource, TBaseParameters>;
|
|
196
222
|
}
|
|
197
223
|
|
|
@@ -205,6 +231,11 @@ interface ResourceDeleteAsync<
|
|
|
205
231
|
TResource extends ArmResource,
|
|
206
232
|
TBaseParameters = BaseParameters<TResource>
|
|
207
233
|
> {
|
|
234
|
+
/**
|
|
235
|
+
* Delete a resource using the asynchronous call pattern.
|
|
236
|
+
* @template TResource The ArmResource to delete.
|
|
237
|
+
* @template TBaseParameters The http parameters that are part of the request
|
|
238
|
+
*/
|
|
208
239
|
delete is ArmResourceDeleteAsync<TResource, TBaseParameters>;
|
|
209
240
|
}
|
|
210
241
|
|
|
@@ -218,6 +249,11 @@ interface ResourceDeleteSync<
|
|
|
218
249
|
TResource extends ArmResource,
|
|
219
250
|
TBaseParameters = BaseParameters<TResource>
|
|
220
251
|
> {
|
|
252
|
+
/**
|
|
253
|
+
* Delete a resource using the synchronous call pattern.
|
|
254
|
+
* @template TResource The ArmResource to delete.
|
|
255
|
+
* @template TBaseParameters The http parameters that are part of the request
|
|
256
|
+
*/
|
|
221
257
|
delete is ArmResourceDeleteSync<TResource, TBaseParameters>;
|
|
222
258
|
}
|
|
223
259
|
|
|
@@ -233,6 +269,12 @@ interface ResourceUpdateAsync<
|
|
|
233
269
|
TProperties extends object,
|
|
234
270
|
TBaseParameters = BaseParameters<TResource>
|
|
235
271
|
> {
|
|
272
|
+
/**
|
|
273
|
+
* Update a resource using the asynchronous call pattern.
|
|
274
|
+
* @template TResource The ArmResource to update.
|
|
275
|
+
* @template TProperties RP-specific property bag for the resource
|
|
276
|
+
* @template TBaseParameters The http parameters that are part of the request
|
|
277
|
+
*/
|
|
236
278
|
update is ArmCustomPatchAsync<
|
|
237
279
|
TResource,
|
|
238
280
|
ResourceUpdateModel<TResource, TProperties>,
|
|
@@ -252,6 +294,12 @@ interface ResourceUpdateSync<
|
|
|
252
294
|
TProperties extends object,
|
|
253
295
|
TBaseParameters = BaseParameters<TResource>
|
|
254
296
|
> {
|
|
297
|
+
/**
|
|
298
|
+
* Update a resource using the synchronous call pattern.
|
|
299
|
+
* @template TResource The ArmResource to update.
|
|
300
|
+
* @template TProperties RP-specific property bag for the resource
|
|
301
|
+
* @template TBaseParameters The http parameters that are part of the request
|
|
302
|
+
*/
|
|
255
303
|
update is ArmCustomPatchSync<
|
|
256
304
|
TResource,
|
|
257
305
|
ResourceUpdateModel<TResource, TProperties>,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.30.0-dev.
|
|
3
|
+
"version": "0.30.0-dev.12",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|