Skip to content

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

Merged
merged 6 commits into from
Jan 6, 2016

Conversation

hyonholee
Copy link
Contributor

No description provided.

…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)
Copy link
Contributor

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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.

Copy link
Contributor

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]

@huangpf
Copy link
Contributor

huangpf commented Jan 5, 2016

LGTM, in case the FilterExpression test case concern is addressed. Thanks @hyonholee!!

stankovski added a commit that referenced this pull request Jan 6, 2016
Update Compute library to Swagger-generated one
@stankovski stankovski merged commit b5e60b7 into Azure:dev Jan 6, 2016
@hyonholee hyonholee deleted the swagger branch March 16, 2016 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants