@azure-tools/typespec-azure-resource-manager 0.62.0-dev.1 → 0.62.0-dev.2

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.
@@ -138,11 +138,12 @@ interface PrivateEndpoints<PrivateEndpointResource extends PrivateEndpointConnec
138
138
  LroHeaders
139
139
  >,
140
140
  Error extends {} = ErrorResponse
141
- > is ArmCreateOperation<
142
- ResourceInstanceParameters<ParentResource, BaseParameters> &
143
- KeysOf<PrivateEndpointConnectionParameter> &
144
- Parameters,
141
+ > is Azure.ResourceManager.Private.PrivateEndpoints.CreateOrUpdateAsync<
142
+ ParentResource,
145
143
  Resource,
144
+ BaseParameters,
145
+ LroHeaders,
146
+ Parameters,
146
147
  Response,
147
148
  Error
148
149
  >;
@@ -200,7 +201,7 @@ interface PrivateEndpoints<PrivateEndpointResource extends PrivateEndpointConnec
200
201
  LroHeaders
201
202
  >,
202
203
  Error extends {} = ErrorResponse
203
- > is PrivateEndpoints.CreateOrUpdateAsync<
204
+ > is Azure.ResourceManager.Private.PrivateEndpoints.CreateOrUpdateAsync<
204
205
  ParentResource,
205
206
  Resource,
206
207
  BaseParameters,
@@ -304,7 +305,7 @@ interface PrivateEndpoints<PrivateEndpointResource extends PrivateEndpointConnec
304
305
  Parameters extends {} = {},
305
306
  Response extends {} = ArmDeleteAcceptedLroResponse<LroHeaders> | ArmDeletedNoContentResponse,
306
307
  Error extends {} = ErrorResponse
307
- > is PrivateEndpoints.DeleteAsyncBase<
308
+ > is Azure.ResourceManager.Private.PrivateEndpoints.DeleteAsyncBase<
308
309
  ParentResource,
309
310
  Response,
310
311
  Resource,
@@ -361,11 +362,14 @@ interface PrivateEndpoints<PrivateEndpointResource extends PrivateEndpointConnec
361
362
  BaseParameters = DefaultBaseParameters<ParentResource>,
362
363
  Parameters extends {} = {},
363
364
  Error extends {} = ErrorResponse
364
- >(
365
- ...ResourceInstanceParameters<ParentResource, BaseParameters>,
366
- ...KeysOf<PrivateEndpointConnectionParameter>,
367
- ...Parameters,
368
- ): Response | Error;
365
+ > is Azure.ResourceManager.Private.PrivateEndpoints.DeleteAsyncBase<
366
+ ParentResource,
367
+ Response,
368
+ Resource,
369
+ BaseParameters,
370
+ Parameters,
371
+ Error
372
+ >;
369
373
  }
370
374
 
371
375
  /** PATCH model for private endpoint connections */
@@ -377,3 +381,71 @@ model PrivateEndpointConnectionUpdate
377
381
  /** The private endpoint connection properties */
378
382
  properties?: OptionalProperties<UpdateableProperties<CommonTypes.PrivateEndpointConnectionProperties>>;
379
383
  }
384
+
385
+ namespace Private {
386
+ namespace PrivateEndpoints {
387
+ /**
388
+ * @dev Delete a PrivateEndpointConnection to a resource asynchronously
389
+ * @template ParentResource The parent resource of the PrivateEndpointConnection
390
+ * @template Response The response type for the operation
391
+ * @template Resource Optional. The PrivateEndpointConnection resource being deleted
392
+ * @template BaseParameters Optional. Allows overriding the parameters for the operation
393
+ * @template Parameters Optional. Additional parameters after the path parameters
394
+ * @template Error Optional. The error response, if non-standard.
395
+ */
396
+ @autoRoute
397
+ @doc("Delete a {name} PrivateEndpointConnection", ParentResource)
398
+ @armResourceDelete(Resource)
399
+ @Private.enforceConstraint(ParentResource, Foundations.Resource)
400
+ @delete
401
+ op DeleteAsyncBase<
402
+ ParentResource extends Foundations.SimpleResource,
403
+ Response,
404
+ Resource extends PrivateEndpointConnectionResource,
405
+ BaseParameters = DefaultBaseParameters<ParentResource>,
406
+ Parameters extends {} = {},
407
+ Error extends {} = ErrorResponse
408
+ >(
409
+ ...ResourceInstanceParameters<ParentResource, BaseParameters>,
410
+ ...KeysOf<PrivateEndpointConnectionParameter>,
411
+ ...Parameters,
412
+ ): Response | Error;
413
+
414
+ /**
415
+ * @dev A long-running resource CreateOrUpdate (PUT) for a PrivateEndpointConnection to a resource
416
+ * @template ParentResource the parent resource of the PrivateEndpointConnection
417
+ * @template Resource the PrivateEndpointConnection resource being created or updated
418
+ * @template BaseParameters Optional. Allows overriding the operation parameters
419
+ * @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
420
+ * @template Parameters Optional. Additional parameters after the path parameters
421
+ * @template Response Optional. The success response for the createOrUpdate operation
422
+ * @template Error Optional. The error response, if non-standard.
423
+ */
424
+ @autoRoute
425
+ @doc("Create a {name} PrivateEndpointConnection", ParentResource)
426
+ @armResourceCreateOrUpdate(Resource)
427
+ @Private.enforceConstraint(ParentResource, Foundations.Resource)
428
+ @Azure.Core.Foundations.Private.defaultFinalStateVia(#["location", "azure-async-operation"])
429
+ @put
430
+ op CreateOrUpdateAsync<
431
+ ParentResource extends Foundations.SimpleResource,
432
+ Resource extends PrivateEndpointConnectionResource,
433
+ BaseParameters = DefaultBaseParameters<ParentResource>,
434
+ LroHeaders extends TypeSpec.Reflection.Model = ArmAsyncOperationHeader<FinalResult = Resource> &
435
+ Azure.Core.Foundations.RetryAfterHeader,
436
+ Parameters extends {} = {},
437
+ Response extends {} = ArmResourceUpdatedResponse<Resource> | ArmResourceCreatedResponse<
438
+ Resource,
439
+ LroHeaders
440
+ >,
441
+ Error extends {} = ErrorResponse
442
+ > is ArmCreateOperation<
443
+ ResourceInstanceParameters<ParentResource, BaseParameters> &
444
+ KeysOf<PrivateEndpointConnectionParameter> &
445
+ Parameters,
446
+ Resource,
447
+ Response,
448
+ Error
449
+ >;
450
+ }
451
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-azure-resource-manager",
3
- "version": "0.62.0-dev.1",
3
+ "version": "0.62.0-dev.2",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Azure Resource Manager library",
6
6
  "homepage": "https://azure.github.io/typespec-azure",