[Resources] `ManagementLockProperties` contains Azure-internal `owner` property
jiasli opened this issue · comments
Jiashuo Li commented
The swagger of locks
's ManagementLockProperties
contains an owner
property which is only for Azure internal usage according to Azure/azure-cli#22528:
This makes the owner
property publicly available in
- REST API doc: https://docs.microsoft.com/en-us/rest/api/resources/management-locks/create-or-update-at-resource-group-level#managementlockobject
- ARM template doc: https://docs.microsoft.com/en-us/azure/templates/microsoft.authorization/locks?tabs=json
- Python SDK: https://github.com/Azure/azure-sdk-for-python/blob/830ccf6ab129bdd6b7343cfae39e4e8e4b3bfd4d/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/_models_py3.py#L68-L69
The swagger should either hide this property or clarifies its internal usage.