-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a property resultSegments
in lroMetadata
to show the downstream how to get the final result of a lro
#2102
Conversation
All changed packages have been documented.
Show changes
|
You can try these changes here
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with .resultPath
we were trying to point users to how to get to the actual result (which is shown in the method's result
). How does .resultProperties
tell us how to get to the result, instead of what the result is. I hear what you're saying though about confusion over whether the property name is the client name / encoded name etc.
this To make your statement more precise:
it will be: FYI I am also planning to do the same on paging as well. |
oh I see, I got the wrong idea from your PR. Yes this makes sense, so it's a |
resultProperties
in lroMetadata
to show the downstream how to get the final result of a lroresultSegments
in lroMetadata
to show the downstream how to get the final result of a lro
Fixes #2072
The
resultPath
inLroMetadata
usesstring
as its type.A
string
type could mean many things, in this case, for a property, it could have three names (at least): its name in typespec, itsclientName
, itsencodedName
.This PR adds a new property in that model to replace this string type property to avoid such confusion to reference the corresponding property, instead use one specific name of the property.
We could have future work items of changing pageable result in similar ways.