-
Notifications
You must be signed in to change notification settings - Fork 4k
Update Compute library to Swagger-generated one #1579
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
Conversation
…swagger Conflicts: src/ResourceManager/Compute/Commands.Compute.Test/packages.config src/ResourceManager/Compute/Commands.Compute/RemoteDesktop/GetAzureRemoteDesktopFileCommand.cs src/ResourceManager/Compute/Commands.Compute/packages.config
…swagger Conflicts: src/ResourceManager/Compute/Commands.Compute.Test/packages.config src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj src/ResourceManager/Compute/Commands.Compute/packages.config
} | ||
|
||
List<PSVirtualMachineSize> psResultList = new List<PSVirtualMachineSize>(); | ||
foreach (var item in result.VirtualMachineSizes) | ||
foreach (var item in result.Body) |
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.
The converted field's name Body
is weird... Is it possible to define VirtualMachineSizes
?
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.
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.
You're getting Body because you're using ListWithHttpMessagesAsync(). If you were to use just List() you would get a collection right away.
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.
OK, but List
doesn't contain the operation info that we want.
Will it be feasible to return a named collection in the async method? [feature request]
LGTM, in case the |
Update Compute library to Swagger-generated one
No description provided.