@azure-tools/typespec-azure-core 0.31.0-dev.4 → 0.31.0-dev.5

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.
Files changed (2) hide show
  1. package/lib/operations.tsp +28 -0
  2. package/package.json +1 -1
@@ -34,6 +34,34 @@ op RpcOperation<
34
34
  TErrorResponse
35
35
  >;
36
36
 
37
+ /**
38
+ * A long-running remote procedure call (RPC) operation.
39
+ * @template TParams Object describing the parameters of the operation.
40
+ * @template TResponse Object describing the response of the operation.
41
+ * @template TStatusResult Object describing the status result of the operation.
42
+ * @template TStatusError Error response of the status operation. If not specified, the default error response is used.
43
+ * @template Traits Object describing the traits of the operation.
44
+ * @template TErrorResponse Error response of the operation. If not specified, the default error response is used.
45
+ */
46
+ @Foundations.Private.needsRoute
47
+ @post
48
+ op LongRunningRpcOperation<
49
+ TParams,
50
+ TResponse,
51
+ TStatusResult,
52
+ TStatusError = Foundations.Error,
53
+ Traits extends object = {},
54
+ TErrorResponse = Azure.Core.Foundations.ErrorResponse
55
+ > is Foundations.Operation<
56
+ TParams & TraitProperties<Traits, TraitLocation.Parameters>,
57
+ AcceptedResponse &
58
+ ResourceOperationStatus<TResponse, TStatusResult, TStatusError> &
59
+ Foundations.LongRunningStatusLocation<TStatusResult> &
60
+ TraitProperties<Traits, TraitLocation.Response>,
61
+ Traits,
62
+ TErrorResponse
63
+ >;
64
+
37
65
  // Standard Resource Lifecycle Operations
38
66
 
39
67
  alias ExpectedResourceOperationTraits = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-azure-core",
3
- "version": "0.31.0-dev.4",
3
+ "version": "0.31.0-dev.5",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Azure Core library",
6
6
  "homepage": "https://azure.github.io/typespec-azure",