ManageIQ / azure-armrest

Ruby interface for Azure using the new REST API
Apache License 2.0
15 stars 36 forks source link

Add list_by_location to VirtualMachineService #380

Closed djberg96 closed 5 years ago

djberg96 commented 5 years ago

This PR adds the list_by_location method to the VirtualMachineService model.

Normally the Azure REST API does not allow you to filter by location. They did add a separate method that filters by location, but it only seems to apply to VM's. It's not (yet) a general method for all resources.

https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/listbylocation

This could help in the Azure provider repo where we currently have to pull all VM's and then filter after the fact.

miq-bot commented 5 years ago

Checked commits https://github.com/djberg96/azure-armrest/compare/2e6b2443ace89da8a2bdac157fa91a75cd82b14b~...7b4fbe54bd877f180ccddf467efef1dddbfdbd94 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 2 files checked, 0 offenses detected Everything looks fine. :cake: