forked from Azure/typespec-azure
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce more usages to describe things related with the states of L…
…RO (Azure#1887) Remove this workaround since Azure#311 is closed. Fixes Azure#1752 Fixes Azure#1530 This PR adds three new usage flags: `LroInitial`, `LroPolling`, `LroFinalEnvelope`. These new usage flags are previously represented by `Output`, now the `Output` flag no longer contain the semantics of these usages. Therefore, if a model's usage is only `LroInitial`, this means it is only used as the initial response of an LRO. if a model has both `LroInitial` and `Output`, this means it is used as the initial response of an LRO, and it also used as a normal output in other places. The final result will not have above new usages unless it participates as those roles as well. It will have output usage.
- Loading branch information
1 parent
453ed42
commit ac694cc
Showing
6 changed files
with
308 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking | ||
changeKind: feature | ||
packages: | ||
- "@azure-tools/typespec-client-generator-core" | ||
--- | ||
|
||
1. Introduce new usage: `LroInitial`, `LroPolling`, `LroFinalEnvelope`. | ||
2. usage and access now properly propagate on polling model, final result and final envelop result of `lroMetadata`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.