GenesysGo / shadow-drive

Apache License 2.0
71 stars 22 forks source link

Add version type to storage account info response #66

Closed bntzio closed 1 year ago

bntzio commented 2 years ago

This adds the version property to the StorageAccountInfo type, which is missing.

It can be either V1 or V2.

CleanShot 2022-10-01 at 22 12 26@2x

It would be a good idea to return it as lowercase from the server to have the version as uniform as possible throughout the codebase and to avoid comparison issues, but for now this type works at least to detect and be aware of the expected response.

CleanShot 2022-10-01 at 22 11 45@2x

This also fixes an incorrect property name, delet_request_epoch to delete_request_epoch 👍