-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Search: Handle selected properties for List operations #11393
Comments
An alternative to exposing this parameter on the client would be to have |
/cc @tg-msft @sima-zhu @xirzec @xiangyan99 @bryevdv I like that idea. I noticed several properties couldn't even be specified in |
I was thinking about this last night and got to thinking about a compromise between the difficulty in properly maintaining allowed property names, discoverability and understanding of using that, and performance. Instead of I think we should still keep Though, as long as we end up separating out "sub-clients", having the |
@heaths A parameter like |
Good point. With |
Is there any way to check how customers are actually using this from telemetry? I think it's fine to offer |
Fixes Azure#11393. For now, there's very little practical value for passing $select given restrictions in which fields can even be specified (limited) and that they may be cased differently than models (Search is case-sensitive). But the server does have an optimized code path for returning just names, so we expose those methods instead.
* Add Get{Resource}Names methods and remove $select support Fixes #11393. For now, there's very little practical value for passing $select given restrictions in which fields can even be specified (limited) and that they may be cased differently than models (Search is case-sensitive). But the server does have an optimized code path for returning just names, so we expose those methods instead.
Adding API to support generating access token for ApplicationInsights Profiler (Azure#11393) * Adds base for updating Microsoft.Insights from version preview/2020-10-05-preview to version 2020-10-26-preview * Updates readme * Updates API version in new specs and examples * Update readme to pointing to profilerToken_API.json * Update operations list * Add profiler token getter * Wire up the defintions * Fix error: additonal property of liveToken * Append post action * Update api-version for example * Fix some small issues * Update readme for the resolving autorest check issue * From profilertoken to profilerToken * Ran prettier * Appending back missing readme for 2020-10 tag * Fix some mistakes * Use common error response * Tag secret with x-ms-secret * Remove list operations * Clean up packages * Making 2 post operations for token * Remove unused operations_list.json example * Align with official master * Resolve conflicts * Add x-ms-secret for the token * Update error response schema ref * Update operation ids * Remove unused error response
Many of our List operations for
SearchServiceClient
accept an optional list of property names, but for .NET this isn't as intuitive since model property names likeName
won't actually work (server error):name
is required. Additionally, whileetag
is also not recognized,@odata.etag
(theunderlying property name) causes a different server error: that@odata.etag
is not allowed in$select
or$expand
query parameters.The text was updated successfully, but these errors were encountered: