Closed joe-pll closed 7 years ago
Hi @joe-pll I'm not sure of what you are trying to do, but this lib is not intented to be used directly and is not very user-friendly. Could you describe your scenario? You want a dict version of your VM object?
Hi @lmazuel, thanks for your reply. I am using this library in order to have a dict version of the VM object. I'll have at the end a list of dict each one representing the VM. For the object NetworkInterface the serialization works like a charm but for the VirtualMachine it doen't. For the moment I implemented my own serialization for the VM but it's not the best solution. What do you suggest?
Dict version of a model is now available with to_dict
:
https://github.com/Azure/msrest-for-python/wiki/msrest-0.4.12---Serialization-change
Hi,
when serializing a virtual machine object I get an exception, in particular when it tries to serialize the Enum objects such as CachingTypes for the attribute storage_profile of the class azure.mgmt.compute.models.virtual_machine.VirtualMachine.
It tries to serialize using the attribute _attribute_map, not present in the enumeration objects.
Here the stacktrace i get
Am I doing something wrong?