Azure-Samples / virtual-machines-python-manage

An example illustrating how to use Python to manage your Azure Virtual Machines
MIT License
104 stars 84 forks source link

The 'raw' is not working #6

Closed v-v-vishnevskiy closed 5 years ago

v-v-vishnevskiy commented 7 years ago

'raw' parameter for azure.mgmt.compute.operations.VirtualMachinesOperations.list(...) method is not working.

lmazuel commented 7 years ago

Hi @v-v-vishnevskiy Actually, it's subtle for a list operation, because a "list" operation returns an iterable and when your iterate, we call the next page until it's done. So one Python call, several RestAPI call. So, you have access to a "raw" attribute in the iterable Page object you get, with the current HTTP call. This correspond to this code: https://github.com/Azure/msrest-for-python/blob/3189c98f8d0c62829a5bab0de5605d6c1aaeb192/msrest/paging.py#L85-L94

lmazuel commented 5 years ago

Closing, since answered and no activity