azure-sdk-for-go
azure-sdk-for-go copied to clipboard
Read Only Fields in DenyAssignmentProperties and Missing Clients
Bug Report
-
import path of package in question:
- "github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization"
- And other apiversions as well.
-
SDK version e.g.
master
- master
-
output of
go version
- go version go1.18.2 linux/amd64
-
What happened?
-
What did you expect or want to happen?
- Making the principal field non read-only. Now, upon put we need to copy the definition of DenyAssignmentProperties as otherwise the principal field will be dropped when MarshalJSON().
- Now we have to put/get deny assignments via generic armresource client. It'd be great if it can have a dedicated client in track 2.
@wenjungaogaogao We have deprecated github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-09-01-preview/authorization
. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization. See Migration Guide for guidance on upgrading. Refer to our deprecation policy for more details.
@tadelesh Thanks for the quick response. However DenyAssignment related model and client are not available in the auth sdk.
@Alancere Please help to release a new version for authorization with tag package-2022-04-01
.
Meanwhile, @wenjungaogaogao feel free to share your experience using the Azure SDK in this survey.
Please try new version: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/[email protected]