Make Code for InstanceViewStatus an enum in the API
I am using the vmss API, and working with the PowerState codes. In order to deal with this I have created my own consts that map to all of the PowerState codes here:
However, it would be nice if I could use a list of values from the API instead of defining my own.
Code location for current API:
Purely relying on documetion can be conflicting. For instance the documentation here does not contain the PowerState/unknown status:
If this was implemented on its own this would require every other status within the statuses field to have its values defined in the possible values for the enum as well as they share the same InstanceViewStatus struct definition.
My suggested implementation would be to combine with with the following request as well, so we would have the PowerStatus defined at its own member variable where its code would be an enum for all of its possible values: